aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2021-03-14 12:08:55 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2021-03-14 12:08:55 +0000
commita9a9e661059557e5bb6ab3e756e007b8e5d231ce (patch)
treeb4fba4f5b8c4f985ade395b460936a7447e8d499
parent55c95407aa64d98cdd8edf18990d89e5b86db96c (diff)
downloaddoc-a9a9e66105.tar.gz
doc-a9a9e66105.zip
Use correct syntax markup for shell
Approved by: carlavilla
-rw-r--r--documentation/content/bd/articles/new-users/_index.adoc38
-rw-r--r--documentation/content/da/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/de/articles/contributing/_index.adoc8
-rw-r--r--documentation/content/de/articles/freebsd-update-server/_index.adoc40
-rw-r--r--documentation/content/de/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/de/articles/linux-users/_index.adoc20
-rw-r--r--documentation/content/de/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/de/articles/new-users/_index.adoc38
-rw-r--r--documentation/content/de/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/de/books/developers-handbook/ipv6/chapter.adoc28
-rw-r--r--documentation/content/de/books/developers-handbook/kernelbuild/chapter.adoc8
-rw-r--r--documentation/content/de/books/developers-handbook/kerneldebug/chapter.adoc68
-rw-r--r--documentation/content/de/books/developers-handbook/policies/chapter.adoc22
-rw-r--r--documentation/content/de/books/developers-handbook/tools/chapter.adoc70
-rw-r--r--documentation/content/de/books/developers-handbook/x86/chapter.adoc56
-rw-r--r--documentation/content/de/books/faq/_index.adoc112
-rw-r--r--documentation/content/de/books/handbook/advanced-networking/_index.adoc212
-rw-r--r--documentation/content/de/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/de/books/handbook/basics/_index.adoc100
-rw-r--r--documentation/content/de/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/de/books/handbook/bsdinstall/_index.adoc8
-rw-r--r--documentation/content/de/books/handbook/config/_index.adoc92
-rw-r--r--documentation/content/de/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/de/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/de/books/handbook/disks/_index.adoc232
-rw-r--r--documentation/content/de/books/handbook/dtrace/_index.adoc12
-rw-r--r--documentation/content/de/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/de/books/handbook/firewalls/_index.adoc98
-rw-r--r--documentation/content/de/books/handbook/geom/_index.adoc142
-rw-r--r--documentation/content/de/books/handbook/jails/_index.adoc124
-rw-r--r--documentation/content/de/books/handbook/kernelconfig/_index.adoc24
-rw-r--r--documentation/content/de/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/de/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/de/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/de/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/de/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/de/books/handbook/multimedia/_index.adoc108
-rw-r--r--documentation/content/de/books/handbook/network-servers/_index.adoc128
-rw-r--r--documentation/content/de/books/handbook/ports/_index.adoc134
-rw-r--r--documentation/content/de/books/handbook/ppp-and-slip/_index.adoc52
-rw-r--r--documentation/content/de/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/de/books/handbook/printing/_index.adoc54
-rw-r--r--documentation/content/de/books/handbook/security/_index.adoc134
-rw-r--r--documentation/content/de/books/handbook/serialcomms/_index.adoc38
-rw-r--r--documentation/content/de/books/handbook/usb-device-mode/_index.adoc22
-rw-r--r--documentation/content/de/books/handbook/virtualization/_index.adoc102
-rw-r--r--documentation/content/de/books/handbook/x11/_index.adoc80
-rw-r--r--documentation/content/de/books/handbook/zfs/_index.adoc226
-rw-r--r--documentation/content/de/books/porters-handbook/plist/chapter.adoc14
-rw-r--r--documentation/content/de/books/porters-handbook/port-upgrading/chapter.adoc10
-rw-r--r--documentation/content/de/books/porters-handbook/security/chapter.adoc12
-rw-r--r--documentation/content/de/books/porters-handbook/testing/chapter.adoc4
-rw-r--r--documentation/content/el/articles/contributing/_index.adoc8
-rw-r--r--documentation/content/el/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/el/articles/gjournal-desktop/_index.adoc42
-rw-r--r--documentation/content/el/articles/greek-language-support/_index.adoc10
-rw-r--r--documentation/content/el/articles/linux-users/_index.adoc22
-rw-r--r--documentation/content/el/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/el/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/el/articles/new-users/_index.adoc36
-rw-r--r--documentation/content/el/articles/problem-reports/_index.adoc4
-rw-r--r--documentation/content/el/articles/releng/_index.adoc12
-rw-r--r--documentation/content/el/books/faq/_index.adoc194
-rw-r--r--documentation/content/el/books/handbook/advanced-networking/_index.adoc126
-rw-r--r--documentation/content/el/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/el/books/handbook/basics/_index.adoc74
-rw-r--r--documentation/content/el/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/el/books/handbook/bsdinstall/_index.adoc14
-rw-r--r--documentation/content/el/books/handbook/config/_index.adoc62
-rw-r--r--documentation/content/el/books/handbook/cutting-edge/_index.adoc144
-rw-r--r--documentation/content/el/books/handbook/desktop/_index.adoc100
-rw-r--r--documentation/content/el/books/handbook/disks/_index.adoc212
-rw-r--r--documentation/content/el/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/el/books/handbook/filesystems/_index.adoc94
-rw-r--r--documentation/content/el/books/handbook/firewalls/_index.adoc50
-rw-r--r--documentation/content/el/books/handbook/geom/_index.adoc78
-rw-r--r--documentation/content/el/books/handbook/install/_index.adoc120
-rw-r--r--documentation/content/el/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/el/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/el/books/handbook/l10n/_index.adoc8
-rw-r--r--documentation/content/el/books/handbook/linuxemu/_index.adoc52
-rw-r--r--documentation/content/el/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/el/books/handbook/mail/_index.adoc38
-rw-r--r--documentation/content/el/books/handbook/mirrors/_index.adoc22
-rw-r--r--documentation/content/el/books/handbook/multimedia/_index.adoc104
-rw-r--r--documentation/content/el/books/handbook/network-servers/_index.adoc72
-rw-r--r--documentation/content/el/books/handbook/ports/_index.adoc88
-rw-r--r--documentation/content/el/books/handbook/ppp-and-slip/_index.adoc78
-rw-r--r--documentation/content/el/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/el/books/handbook/printing/_index.adoc94
-rw-r--r--documentation/content/el/books/handbook/security/_index.adoc134
-rw-r--r--documentation/content/el/books/handbook/serialcomms/_index.adoc40
-rw-r--r--documentation/content/el/books/handbook/users/_index.adoc22
-rw-r--r--documentation/content/el/books/handbook/virtualization/_index.adoc18
-rw-r--r--documentation/content/el/books/handbook/x11/_index.adoc56
-rw-r--r--documentation/content/en/articles/committers-guide/_index.adoc162
-rw-r--r--documentation/content/en/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/en/articles/cups/_index.adoc4
-rw-r--r--documentation/content/en/articles/filtering-bridges/_index.adoc2
-rw-r--r--documentation/content/en/articles/fonts/_index.adoc36
-rw-r--r--documentation/content/en/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/en/articles/freebsd-releng/_index.adoc22
-rw-r--r--documentation/content/en/articles/freebsd-update-server/_index.adoc40
-rw-r--r--documentation/content/en/articles/gjournal-desktop/_index.adoc42
-rw-r--r--documentation/content/en/articles/hubs/_index.adoc8
-rw-r--r--documentation/content/en/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/en/articles/ldap-auth/_index.adoc18
-rw-r--r--documentation/content/en/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/en/articles/linux-users/_index.adoc20
-rw-r--r--documentation/content/en/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/en/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/en/articles/new-users/_index.adoc28
-rw-r--r--documentation/content/en/articles/pam/_index.adoc6
-rw-r--r--documentation/content/en/articles/rc-scripting/_index.adoc10
-rw-r--r--documentation/content/en/articles/releng/_index.adoc12
-rw-r--r--documentation/content/en/articles/remote-install/_index.adoc28
-rw-r--r--documentation/content/en/articles/serial-uart/_index.adoc16
-rw-r--r--documentation/content/en/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/en/articles/vinum/_index.adoc14
-rw-r--r--documentation/content/en/books/arch-handbook/boot/chapter.adoc12
-rw-r--r--documentation/content/en/books/arch-handbook/driverbasics/chapter.adoc4
-rw-r--r--documentation/content/en/books/developers-handbook/ipv6/chapter.adoc16
-rw-r--r--documentation/content/en/books/developers-handbook/kernelbuild/chapter.adoc8
-rw-r--r--documentation/content/en/books/developers-handbook/kerneldebug/chapter.adoc92
-rw-r--r--documentation/content/en/books/developers-handbook/policies/chapter.adoc30
-rw-r--r--documentation/content/en/books/developers-handbook/sockets/chapter.adoc16
-rw-r--r--documentation/content/en/books/developers-handbook/tools/chapter.adoc94
-rw-r--r--documentation/content/en/books/developers-handbook/x86/chapter.adoc56
-rw-r--r--documentation/content/en/books/faq/_index.adoc108
-rw-r--r--documentation/content/en/books/fdp-primer/asciidoctor-primer/chapter.adoc4
-rw-r--r--documentation/content/en/books/fdp-primer/doc-build/chapter.adoc12
-rw-r--r--documentation/content/en/books/fdp-primer/editor-config/chapter.adoc8
-rw-r--r--documentation/content/en/books/fdp-primer/manual-pages/chapter.adoc12
-rw-r--r--documentation/content/en/books/fdp-primer/overview/chapter.adoc10
-rw-r--r--documentation/content/en/books/fdp-primer/po-translations/chapter.adoc24
-rw-r--r--documentation/content/en/books/fdp-primer/preface/chapter.adoc4
-rw-r--r--documentation/content/en/books/fdp-primer/rosetta/chapter.adoc2
-rw-r--r--documentation/content/en/books/fdp-primer/translations/chapter.adoc6
-rw-r--r--documentation/content/en/books/fdp-primer/working-copy/chapter.adoc14
-rw-r--r--documentation/content/en/books/handbook/advanced-networking/_index.adoc214
-rw-r--r--documentation/content/en/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/en/books/handbook/basics/_index.adoc100
-rw-r--r--documentation/content/en/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/en/books/handbook/bsdinstall/_index.adoc8
-rw-r--r--documentation/content/en/books/handbook/config/_index.adoc90
-rw-r--r--documentation/content/en/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/en/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/en/books/handbook/disks/_index.adoc248
-rw-r--r--documentation/content/en/books/handbook/dtrace/_index.adoc12
-rw-r--r--documentation/content/en/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/en/books/handbook/firewalls/_index.adoc92
-rw-r--r--documentation/content/en/books/handbook/geom/_index.adoc142
-rw-r--r--documentation/content/en/books/handbook/jails/_index.adoc124
-rw-r--r--documentation/content/en/books/handbook/kernelconfig/_index.adoc24
-rw-r--r--documentation/content/en/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/en/books/handbook/linuxemu/_index.adoc30
-rw-r--r--documentation/content/en/books/handbook/mac/_index.adoc50
-rw-r--r--documentation/content/en/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/en/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/en/books/handbook/multimedia/_index.adoc108
-rw-r--r--documentation/content/en/books/handbook/network-servers/_index.adoc130
-rw-r--r--documentation/content/en/books/handbook/ports/_index.adoc134
-rw-r--r--documentation/content/en/books/handbook/ppp-and-slip/_index.adoc52
-rw-r--r--documentation/content/en/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/en/books/handbook/printing/_index.adoc56
-rw-r--r--documentation/content/en/books/handbook/security/_index.adoc144
-rw-r--r--documentation/content/en/books/handbook/serialcomms/_index.adoc34
-rw-r--r--documentation/content/en/books/handbook/usb-device-mode/_index.adoc24
-rw-r--r--documentation/content/en/books/handbook/virtualization/_index.adoc102
-rw-r--r--documentation/content/en/books/handbook/wine/_index.adoc44
-rw-r--r--documentation/content/en/books/handbook/x11/_index.adoc84
-rw-r--r--documentation/content/en/books/handbook/zfs/_index.adoc226
-rw-r--r--documentation/content/en/books/porters-handbook/makefiles/chapter.adoc24
-rw-r--r--documentation/content/en/books/porters-handbook/quick-porting/chapter.adoc6
-rw-r--r--documentation/content/en/books/porters-handbook/security/chapter.adoc12
-rw-r--r--documentation/content/en/books/porters-handbook/slow-porting/chapter.adoc8
-rw-r--r--documentation/content/en/books/porters-handbook/special/chapter.adoc28
-rw-r--r--documentation/content/en/books/porters-handbook/testing/chapter.adoc56
-rw-r--r--documentation/content/en/books/porters-handbook/upgrading/chapter.adoc16
-rw-r--r--documentation/content/es/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/es/articles/cups/_index.adoc4
-rw-r--r--documentation/content/es/articles/filtering-bridges/_index.adoc2
-rw-r--r--documentation/content/es/articles/fonts/_index.adoc36
-rw-r--r--documentation/content/es/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/es/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/es/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/es/articles/linux-users/_index.adoc20
-rw-r--r--documentation/content/es/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/es/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/es/articles/releng/_index.adoc12
-rw-r--r--documentation/content/es/articles/remote-install/_index.adoc28
-rw-r--r--documentation/content/es/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/es/books/faq/_index.adoc112
-rw-r--r--documentation/content/es/books/handbook/advanced-networking/_index.adoc170
-rw-r--r--documentation/content/es/books/handbook/basics/_index.adoc74
-rw-r--r--documentation/content/es/books/handbook/boot/_index.adoc16
-rw-r--r--documentation/content/es/books/handbook/desktop/_index.adoc66
-rw-r--r--documentation/content/es/books/handbook/disks/_index.adoc190
-rw-r--r--documentation/content/es/books/handbook/eresources/_index.adoc6
-rw-r--r--documentation/content/es/books/handbook/geom/_index.adoc46
-rw-r--r--documentation/content/es/books/handbook/install/_index.adoc154
-rw-r--r--documentation/content/es/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/es/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/es/books/handbook/l10n/_index.adoc6
-rw-r--r--documentation/content/es/books/handbook/linuxemu/_index.adoc102
-rw-r--r--documentation/content/es/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/es/books/handbook/multimedia/_index.adoc90
-rw-r--r--documentation/content/es/books/handbook/ports/_index.adoc84
-rw-r--r--documentation/content/es/books/handbook/ppp-and-slip/_index.adoc46
-rw-r--r--documentation/content/es/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/es/books/handbook/security/_index.adoc140
-rw-r--r--documentation/content/es/books/handbook/serialcomms/_index.adoc42
-rw-r--r--documentation/content/es/books/handbook/users/_index.adoc18
-rw-r--r--documentation/content/es/books/handbook/x11/_index.adoc52
-rw-r--r--documentation/content/fr/articles/committers-guide/_index.adoc2
-rw-r--r--documentation/content/fr/articles/contributing/_index.adoc8
-rw-r--r--documentation/content/fr/articles/filtering-bridges/_index.adoc2
-rw-r--r--documentation/content/fr/articles/fonts/_index.adoc48
-rw-r--r--documentation/content/fr/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/fr/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/fr/articles/linux-users/_index.adoc22
-rw-r--r--documentation/content/fr/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/fr/articles/new-users/_index.adoc44
-rw-r--r--documentation/content/fr/articles/pam/_index.adoc6
-rw-r--r--documentation/content/fr/articles/problem-reports/_index.adoc4
-rw-r--r--documentation/content/fr/books/developers-handbook/driverbasics/chapter.adoc6
-rw-r--r--documentation/content/fr/books/developers-handbook/tools/chapter.adoc72
-rw-r--r--documentation/content/fr/books/faq/_index.adoc2
-rw-r--r--documentation/content/fr/books/handbook/advanced-networking/_index.adoc126
-rw-r--r--documentation/content/fr/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/fr/books/handbook/basics/_index.adoc56
-rw-r--r--documentation/content/fr/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/fr/books/handbook/bsdinstall/_index.adoc8
-rw-r--r--documentation/content/fr/books/handbook/config/_index.adoc74
-rw-r--r--documentation/content/fr/books/handbook/cutting-edge/_index.adoc110
-rw-r--r--documentation/content/fr/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/fr/books/handbook/disks/_index.adoc206
-rw-r--r--documentation/content/fr/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/fr/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/fr/books/handbook/geom/_index.adoc54
-rw-r--r--documentation/content/fr/books/handbook/jails/_index.adoc8
-rw-r--r--documentation/content/fr/books/handbook/kernelconfig/_index.adoc18
-rw-r--r--documentation/content/fr/books/handbook/l10n/_index.adoc8
-rw-r--r--documentation/content/fr/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/fr/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/fr/books/handbook/mirrors/_index.adoc32
-rw-r--r--documentation/content/fr/books/handbook/multimedia/_index.adoc90
-rw-r--r--documentation/content/fr/books/handbook/network-servers/_index.adoc74
-rw-r--r--documentation/content/fr/books/handbook/ports/_index.adoc86
-rw-r--r--documentation/content/fr/books/handbook/ppp-and-slip/_index.adoc28
-rw-r--r--documentation/content/fr/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/fr/books/handbook/printing/_index.adoc56
-rw-r--r--documentation/content/fr/books/handbook/security/_index.adoc140
-rw-r--r--documentation/content/fr/books/handbook/users/_index.adoc20
-rw-r--r--documentation/content/fr/books/handbook/vinum/_index.adoc4
-rw-r--r--documentation/content/fr/books/handbook/virtualization/_index.adoc22
-rw-r--r--documentation/content/fr/books/handbook/x11/_index.adoc78
-rw-r--r--documentation/content/hu/articles/cups/_index.adoc6
-rw-r--r--documentation/content/hu/articles/gjournal-desktop/_index.adoc42
-rw-r--r--documentation/content/hu/articles/linux-users/_index.adoc22
-rw-r--r--documentation/content/hu/books/faq/_index.adoc178
-rw-r--r--documentation/content/hu/books/handbook/advanced-networking/_index.adoc196
-rw-r--r--documentation/content/hu/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/hu/books/handbook/basics/_index.adoc72
-rw-r--r--documentation/content/hu/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/hu/books/handbook/config/_index.adoc76
-rw-r--r--documentation/content/hu/books/handbook/cutting-edge/_index.adoc130
-rw-r--r--documentation/content/hu/books/handbook/desktop/_index.adoc76
-rw-r--r--documentation/content/hu/books/handbook/disks/_index.adoc210
-rw-r--r--documentation/content/hu/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/hu/books/handbook/filesystems/_index.adoc64
-rw-r--r--documentation/content/hu/books/handbook/firewalls/_index.adoc50
-rw-r--r--documentation/content/hu/books/handbook/geom/_index.adoc64
-rw-r--r--documentation/content/hu/books/handbook/install/_index.adoc194
-rw-r--r--documentation/content/hu/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/hu/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/hu/books/handbook/l10n/_index.adoc8
-rw-r--r--documentation/content/hu/books/handbook/linuxemu/_index.adoc104
-rw-r--r--documentation/content/hu/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/hu/books/handbook/mail/_index.adoc38
-rw-r--r--documentation/content/hu/books/handbook/mirrors/_index.adoc22
-rw-r--r--documentation/content/hu/books/handbook/multimedia/_index.adoc98
-rw-r--r--documentation/content/hu/books/handbook/network-servers/_index.adoc100
-rw-r--r--documentation/content/hu/books/handbook/ports/_index.adoc88
-rw-r--r--documentation/content/hu/books/handbook/ppp-and-slip/_index.adoc78
-rw-r--r--documentation/content/hu/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/hu/books/handbook/printing/_index.adoc100
-rw-r--r--documentation/content/hu/books/handbook/security/_index.adoc154
-rw-r--r--documentation/content/hu/books/handbook/serialcomms/_index.adoc40
-rw-r--r--documentation/content/hu/books/handbook/users/_index.adoc22
-rw-r--r--documentation/content/hu/books/handbook/vinum/_index.adoc18
-rw-r--r--documentation/content/hu/books/handbook/virtualization/_index.adoc12
-rw-r--r--documentation/content/hu/books/handbook/x11/_index.adoc58
-rw-r--r--documentation/content/it/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/it/books/handbook/basics/_index.adoc56
-rw-r--r--documentation/content/it/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/it/books/handbook/config/_index.adoc66
-rw-r--r--documentation/content/it/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/it/books/handbook/geom/_index.adoc46
-rw-r--r--documentation/content/it/books/handbook/install/_index.adoc144
-rw-r--r--documentation/content/it/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/it/books/handbook/kernelconfig/_index.adoc18
-rw-r--r--documentation/content/it/books/handbook/l10n/_index.adoc8
-rw-r--r--documentation/content/it/books/handbook/linuxemu/_index.adoc102
-rw-r--r--documentation/content/it/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/it/books/handbook/mirrors/_index.adoc32
-rw-r--r--documentation/content/it/books/handbook/multimedia/_index.adoc92
-rw-r--r--documentation/content/it/books/handbook/network-servers/_index.adoc74
-rw-r--r--documentation/content/it/books/handbook/ports/_index.adoc46
-rw-r--r--documentation/content/it/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/it/books/handbook/serialcomms/_index.adoc40
-rw-r--r--documentation/content/it/books/handbook/vinum/_index.adoc16
-rw-r--r--documentation/content/it/books/handbook/x11/_index.adoc46
-rw-r--r--documentation/content/ja/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/ja/articles/fonts/_index.adoc38
-rw-r--r--documentation/content/ja/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/ja/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/ja/books/faq/_index.adoc234
-rw-r--r--documentation/content/ja/books/handbook/advanced-networking/_index.adoc162
-rw-r--r--documentation/content/ja/books/handbook/basics/_index.adoc56
-rw-r--r--documentation/content/ja/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/ja/books/handbook/bsdinstall/_index.adoc8
-rw-r--r--documentation/content/ja/books/handbook/config/_index.adoc8
-rw-r--r--documentation/content/ja/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/ja/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/ja/books/handbook/disks/_index.adoc156
-rw-r--r--documentation/content/ja/books/handbook/kernelconfig/_index.adoc24
-rw-r--r--documentation/content/ja/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/ja/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/ja/books/handbook/mail/_index.adoc14
-rw-r--r--documentation/content/ja/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/ja/books/handbook/multimedia/_index.adoc108
-rw-r--r--documentation/content/ja/books/handbook/ports/_index.adoc134
-rw-r--r--documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc42
-rw-r--r--documentation/content/ja/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/ja/books/handbook/printing/_index.adoc96
-rw-r--r--documentation/content/ja/books/handbook/security/_index.adoc124
-rw-r--r--documentation/content/ja/books/handbook/serialcomms/_index.adoc42
-rw-r--r--documentation/content/ja/books/handbook/users/_index.adoc24
-rw-r--r--documentation/content/ja/books/handbook/x11/_index.adoc84
-rw-r--r--documentation/content/ja/books/porters-handbook/porting-autoplist/chapter.adoc10
-rw-r--r--documentation/content/ja/books/porters-handbook/testing/chapter.adoc2
-rw-r--r--documentation/content/ko/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/mn/books/handbook/advanced-networking/_index.adoc204
-rw-r--r--documentation/content/mn/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/mn/books/handbook/basics/_index.adoc76
-rw-r--r--documentation/content/mn/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/mn/books/handbook/bsdinstall/_index.adoc16
-rw-r--r--documentation/content/mn/books/handbook/config/_index.adoc74
-rw-r--r--documentation/content/mn/books/handbook/cutting-edge/_index.adoc142
-rw-r--r--documentation/content/mn/books/handbook/desktop/_index.adoc100
-rw-r--r--documentation/content/mn/books/handbook/disks/_index.adoc222
-rw-r--r--documentation/content/mn/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/mn/books/handbook/filesystems/_index.adoc94
-rw-r--r--documentation/content/mn/books/handbook/firewalls/_index.adoc50
-rw-r--r--documentation/content/mn/books/handbook/geom/_index.adoc116
-rw-r--r--documentation/content/mn/books/handbook/install/_index.adoc122
-rw-r--r--documentation/content/mn/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/mn/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/mn/books/handbook/l10n/_index.adoc10
-rw-r--r--documentation/content/mn/books/handbook/linuxemu/_index.adoc52
-rw-r--r--documentation/content/mn/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/mn/books/handbook/mail/_index.adoc38
-rw-r--r--documentation/content/mn/books/handbook/mirrors/_index.adoc28
-rw-r--r--documentation/content/mn/books/handbook/multimedia/_index.adoc102
-rw-r--r--documentation/content/mn/books/handbook/network-servers/_index.adoc108
-rw-r--r--documentation/content/mn/books/handbook/ports/_index.adoc146
-rw-r--r--documentation/content/mn/books/handbook/ppp-and-slip/_index.adoc78
-rw-r--r--documentation/content/mn/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/mn/books/handbook/printing/_index.adoc96
-rw-r--r--documentation/content/mn/books/handbook/security/_index.adoc98
-rw-r--r--documentation/content/mn/books/handbook/serialcomms/_index.adoc38
-rw-r--r--documentation/content/mn/books/handbook/users/_index.adoc22
-rw-r--r--documentation/content/mn/books/handbook/vinum/_index.adoc14
-rw-r--r--documentation/content/mn/books/handbook/virtualization/_index.adoc20
-rw-r--r--documentation/content/mn/books/handbook/x11/_index.adoc56
-rw-r--r--documentation/content/nl/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/nl/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/nl/articles/problem-reports/_index.adoc4
-rw-r--r--documentation/content/nl/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/nl/books/handbook/advanced-networking/_index.adoc208
-rw-r--r--documentation/content/nl/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/nl/books/handbook/basics/_index.adoc74
-rw-r--r--documentation/content/nl/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/nl/books/handbook/config/_index.adoc74
-rw-r--r--documentation/content/nl/books/handbook/cutting-edge/_index.adoc142
-rw-r--r--documentation/content/nl/books/handbook/desktop/_index.adoc100
-rw-r--r--documentation/content/nl/books/handbook/disks/_index.adoc230
-rw-r--r--documentation/content/nl/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/nl/books/handbook/filesystems/_index.adoc94
-rw-r--r--documentation/content/nl/books/handbook/firewalls/_index.adoc50
-rw-r--r--documentation/content/nl/books/handbook/geom/_index.adoc116
-rw-r--r--documentation/content/nl/books/handbook/install/_index.adoc122
-rw-r--r--documentation/content/nl/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/nl/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/nl/books/handbook/l10n/_index.adoc10
-rw-r--r--documentation/content/nl/books/handbook/linuxemu/_index.adoc52
-rw-r--r--documentation/content/nl/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/nl/books/handbook/mail/_index.adoc38
-rw-r--r--documentation/content/nl/books/handbook/mirrors/_index.adoc22
-rw-r--r--documentation/content/nl/books/handbook/multimedia/_index.adoc102
-rw-r--r--documentation/content/nl/books/handbook/network-servers/_index.adoc110
-rw-r--r--documentation/content/nl/books/handbook/ports/_index.adoc102
-rw-r--r--documentation/content/nl/books/handbook/ppp-and-slip/_index.adoc78
-rw-r--r--documentation/content/nl/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/nl/books/handbook/printing/_index.adoc98
-rw-r--r--documentation/content/nl/books/handbook/security/_index.adoc98
-rw-r--r--documentation/content/nl/books/handbook/serialcomms/_index.adoc40
-rw-r--r--documentation/content/nl/books/handbook/users/_index.adoc22
-rw-r--r--documentation/content/nl/books/handbook/virtualization/_index.adoc20
-rw-r--r--documentation/content/nl/books/handbook/x11/_index.adoc56
-rw-r--r--documentation/content/pl/articles/filtering-bridges/_index.adoc2
-rw-r--r--documentation/content/pl/articles/new-users/_index.adoc38
-rw-r--r--documentation/content/pl/books/handbook/advanced-networking/_index.adoc214
-rw-r--r--documentation/content/pl/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/pl/books/handbook/basics/_index.adoc52
-rw-r--r--documentation/content/pl/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/pl/books/handbook/config/_index.adoc90
-rw-r--r--documentation/content/pl/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/pl/books/handbook/desktop/_index.adoc68
-rw-r--r--documentation/content/pl/books/handbook/disks/_index.adoc232
-rw-r--r--documentation/content/pl/books/handbook/dtrace/_index.adoc12
-rw-r--r--documentation/content/pl/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/pl/books/handbook/firewalls/_index.adoc92
-rw-r--r--documentation/content/pl/books/handbook/geom/_index.adoc142
-rw-r--r--documentation/content/pl/books/handbook/install/_index.adoc144
-rw-r--r--documentation/content/pl/books/handbook/jails/_index.adoc124
-rw-r--r--documentation/content/pl/books/handbook/kernelconfig/_index.adoc26
-rw-r--r--documentation/content/pl/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/pl/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/pl/books/handbook/mac/_index.adoc50
-rw-r--r--documentation/content/pl/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/pl/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/pl/books/handbook/multimedia/_index.adoc108
-rw-r--r--documentation/content/pl/books/handbook/network-servers/_index.adoc120
-rw-r--r--documentation/content/pl/books/handbook/ports/_index.adoc80
-rw-r--r--documentation/content/pl/books/handbook/ppp-and-slip/_index.adoc52
-rw-r--r--documentation/content/pl/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/pl/books/handbook/printing/_index.adoc56
-rw-r--r--documentation/content/pl/books/handbook/security/_index.adoc134
-rw-r--r--documentation/content/pl/books/handbook/serialcomms/_index.adoc34
-rw-r--r--documentation/content/pl/books/handbook/usb-device-mode/_index.adoc30
-rw-r--r--documentation/content/pl/books/handbook/users/_index.adoc20
-rw-r--r--documentation/content/pl/books/handbook/virtualization/_index.adoc102
-rw-r--r--documentation/content/pl/books/handbook/x11/_index.adoc44
-rw-r--r--documentation/content/pl/books/handbook/zfs/_index.adoc226
-rw-r--r--documentation/content/pt-br/articles/committers-guide/_index.adoc152
-rw-r--r--documentation/content/pt-br/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/pt-br/articles/cups/_index.adoc4
-rw-r--r--documentation/content/pt-br/articles/filtering-bridges/_index.adoc2
-rw-r--r--documentation/content/pt-br/articles/fonts/_index.adoc36
-rw-r--r--documentation/content/pt-br/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/pt-br/articles/freebsd-releng/_index.adoc22
-rw-r--r--documentation/content/pt-br/articles/freebsd-update-server/_index.adoc40
-rw-r--r--documentation/content/pt-br/articles/gjournal-desktop/_index.adoc42
-rw-r--r--documentation/content/pt-br/articles/hubs/_index.adoc8
-rw-r--r--documentation/content/pt-br/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/pt-br/articles/ldap-auth/_index.adoc18
-rw-r--r--documentation/content/pt-br/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/pt-br/articles/linux-users/_index.adoc20
-rw-r--r--documentation/content/pt-br/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/pt-br/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/pt-br/articles/new-users/_index.adoc28
-rw-r--r--documentation/content/pt-br/articles/pam/_index.adoc6
-rw-r--r--documentation/content/pt-br/articles/rc-scripting/_index.adoc10
-rw-r--r--documentation/content/pt-br/articles/releng/_index.adoc12
-rw-r--r--documentation/content/pt-br/articles/remote-install/_index.adoc28
-rw-r--r--documentation/content/pt-br/articles/serial-uart/_index.adoc16
-rw-r--r--documentation/content/pt-br/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/pt-br/articles/vinum/_index.adoc14
-rw-r--r--documentation/content/pt-br/books/faq/_index.adoc108
-rw-r--r--documentation/content/pt-br/books/handbook/advanced-networking/_index.adoc214
-rw-r--r--documentation/content/pt-br/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/pt-br/books/handbook/basics/_index.adoc100
-rw-r--r--documentation/content/pt-br/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/pt-br/books/handbook/bsdinstall/_index.adoc8
-rw-r--r--documentation/content/pt-br/books/handbook/config/_index.adoc90
-rw-r--r--documentation/content/pt-br/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/pt-br/books/handbook/desktop/_index.adoc72
-rw-r--r--documentation/content/pt-br/books/handbook/disks/_index.adoc232
-rw-r--r--documentation/content/pt-br/books/handbook/dtrace/_index.adoc12
-rw-r--r--documentation/content/pt-br/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/pt-br/books/handbook/firewalls/_index.adoc92
-rw-r--r--documentation/content/pt-br/books/handbook/geom/_index.adoc142
-rw-r--r--documentation/content/pt-br/books/handbook/jails/_index.adoc124
-rw-r--r--documentation/content/pt-br/books/handbook/kernelconfig/_index.adoc24
-rw-r--r--documentation/content/pt-br/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/pt-br/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/pt-br/books/handbook/mac/_index.adoc50
-rw-r--r--documentation/content/pt-br/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/pt-br/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/pt-br/books/handbook/multimedia/_index.adoc106
-rw-r--r--documentation/content/pt-br/books/handbook/network-servers/_index.adoc130
-rw-r--r--documentation/content/pt-br/books/handbook/ports/_index.adoc138
-rw-r--r--documentation/content/pt-br/books/handbook/ppp-and-slip/_index.adoc52
-rw-r--r--documentation/content/pt-br/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/pt-br/books/handbook/printing/_index.adoc56
-rw-r--r--documentation/content/pt-br/books/handbook/security/_index.adoc140
-rw-r--r--documentation/content/pt-br/books/handbook/serialcomms/_index.adoc34
-rw-r--r--documentation/content/pt-br/books/handbook/usb-device-mode/_index.adoc24
-rw-r--r--documentation/content/pt-br/books/handbook/virtualization/_index.adoc102
-rw-r--r--documentation/content/pt-br/books/handbook/x11/_index.adoc84
-rw-r--r--documentation/content/pt-br/books/handbook/zfs/_index.adoc226
-rw-r--r--documentation/content/pt-br/books/porters-handbook/makefiles/chapter.adoc22
-rw-r--r--documentation/content/pt-br/books/porters-handbook/quick-porting/chapter.adoc6
-rw-r--r--documentation/content/pt-br/books/porters-handbook/security/chapter.adoc10
-rw-r--r--documentation/content/pt-br/books/porters-handbook/slow-porting/chapter.adoc8
-rw-r--r--documentation/content/pt-br/books/porters-handbook/special/chapter.adoc28
-rw-r--r--documentation/content/pt-br/books/porters-handbook/testing/chapter.adoc56
-rw-r--r--documentation/content/pt-br/books/porters-handbook/upgrading/chapter.adoc16
-rw-r--r--documentation/content/ru/articles/committers-guide/_index.adoc52
-rw-r--r--documentation/content/ru/articles/contributing/_index.adoc4
-rw-r--r--documentation/content/ru/articles/cups/_index.adoc4
-rw-r--r--documentation/content/ru/articles/fonts/_index.adoc38
-rw-r--r--documentation/content/ru/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/ru/articles/gjournal-desktop/_index.adoc42
-rw-r--r--documentation/content/ru/articles/hubs/_index.adoc4
-rw-r--r--documentation/content/ru/articles/ipsec-must/_index.adoc4
-rw-r--r--documentation/content/ru/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/ru/articles/new-users/_index.adoc28
-rw-r--r--documentation/content/ru/articles/pam/_index.adoc6
-rw-r--r--documentation/content/ru/articles/pr-guidelines/_index.adoc6
-rw-r--r--documentation/content/ru/articles/problem-reports/_index.adoc4
-rw-r--r--documentation/content/ru/articles/releng/_index.adoc12
-rw-r--r--documentation/content/ru/articles/solid-state/_index.adoc28
-rw-r--r--documentation/content/ru/books/arch-handbook/driverbasics/chapter.adoc6
-rw-r--r--documentation/content/ru/books/developers-handbook/kerneldebug/chapter.adoc72
-rw-r--r--documentation/content/ru/books/faq/_index.adoc112
-rw-r--r--documentation/content/ru/books/handbook/advanced-networking/_index.adoc124
-rw-r--r--documentation/content/ru/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/ru/books/handbook/basics/_index.adoc98
-rw-r--r--documentation/content/ru/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/ru/books/handbook/bsdinstall/_index.adoc16
-rw-r--r--documentation/content/ru/books/handbook/config/_index.adoc54
-rw-r--r--documentation/content/ru/books/handbook/cutting-edge/_index.adoc120
-rw-r--r--documentation/content/ru/books/handbook/desktop/_index.adoc66
-rw-r--r--documentation/content/ru/books/handbook/disks/_index.adoc216
-rw-r--r--documentation/content/ru/books/handbook/filesystems/_index.adoc64
-rw-r--r--documentation/content/ru/books/handbook/firewalls/_index.adoc42
-rw-r--r--documentation/content/ru/books/handbook/geom/_index.adoc66
-rw-r--r--documentation/content/ru/books/handbook/install/_index.adoc118
-rw-r--r--documentation/content/ru/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/ru/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/ru/books/handbook/linuxemu/_index.adoc102
-rw-r--r--documentation/content/ru/books/handbook/mac/_index.adoc76
-rw-r--r--documentation/content/ru/books/handbook/mail/_index.adoc34
-rw-r--r--documentation/content/ru/books/handbook/mirrors/_index.adoc22
-rw-r--r--documentation/content/ru/books/handbook/multimedia/_index.adoc90
-rw-r--r--documentation/content/ru/books/handbook/network-servers/_index.adoc84
-rw-r--r--documentation/content/ru/books/handbook/ports/_index.adoc146
-rw-r--r--documentation/content/ru/books/handbook/ppp-and-slip/_index.adoc82
-rw-r--r--documentation/content/ru/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/ru/books/handbook/printing/_index.adoc86
-rw-r--r--documentation/content/ru/books/handbook/security/_index.adoc128
-rw-r--r--documentation/content/ru/books/handbook/serialcomms/_index.adoc38
-rw-r--r--documentation/content/ru/books/handbook/x11/_index.adoc58
-rw-r--r--documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc2
-rw-r--r--documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc2
-rw-r--r--documentation/content/ru/books/porters-handbook/security/chapter.adoc14
-rw-r--r--documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc6
-rw-r--r--documentation/content/ru/books/porters-handbook/special/chapter.adoc2
-rw-r--r--documentation/content/ru/books/porters-handbook/testing/chapter.adoc6
-rw-r--r--documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc10
-rw-r--r--documentation/content/zh-cn/articles/contributing/_index.adoc8
-rw-r--r--documentation/content/zh-cn/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/zh-cn/articles/linux-users/_index.adoc22
-rw-r--r--documentation/content/zh-cn/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/zh-cn/articles/rc-scripting/_index.adoc10
-rw-r--r--documentation/content/zh-cn/articles/remote-install/_index.adoc26
-rw-r--r--documentation/content/zh-cn/books/arch-handbook/boot/chapter.adoc10
-rw-r--r--documentation/content/zh-cn/books/arch-handbook/driverbasics/chapter.adoc6
-rw-r--r--documentation/content/zh-cn/books/arch-handbook/pccard/chapter.adoc2
-rw-r--r--documentation/content/zh-cn/books/handbook/advanced-networking/_index.adoc220
-rw-r--r--documentation/content/zh-cn/books/handbook/audit/_index.adoc8
-rw-r--r--documentation/content/zh-cn/books/handbook/basics/_index.adoc74
-rw-r--r--documentation/content/zh-cn/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/zh-cn/books/handbook/bsdinstall/_index.adoc16
-rw-r--r--documentation/content/zh-cn/books/handbook/config/_index.adoc72
-rw-r--r--documentation/content/zh-cn/books/handbook/cutting-edge/_index.adoc144
-rw-r--r--documentation/content/zh-cn/books/handbook/desktop/_index.adoc90
-rw-r--r--documentation/content/zh-cn/books/handbook/disks/_index.adoc222
-rw-r--r--documentation/content/zh-cn/books/handbook/dtrace/_index.adoc16
-rw-r--r--documentation/content/zh-cn/books/handbook/filesystems/_index.adoc64
-rw-r--r--documentation/content/zh-cn/books/handbook/firewalls/_index.adoc50
-rw-r--r--documentation/content/zh-cn/books/handbook/geom/_index.adoc78
-rw-r--r--documentation/content/zh-cn/books/handbook/install/_index.adoc126
-rw-r--r--documentation/content/zh-cn/books/handbook/jails/_index.adoc42
-rw-r--r--documentation/content/zh-cn/books/handbook/kernelconfig/_index.adoc20
-rw-r--r--documentation/content/zh-cn/books/handbook/l10n/_index.adoc8
-rw-r--r--documentation/content/zh-cn/books/handbook/linuxemu/_index.adoc26
-rw-r--r--documentation/content/zh-cn/books/handbook/mac/_index.adoc52
-rw-r--r--documentation/content/zh-cn/books/handbook/mail/_index.adoc38
-rw-r--r--documentation/content/zh-cn/books/handbook/mirrors/_index.adoc22
-rw-r--r--documentation/content/zh-cn/books/handbook/multimedia/_index.adoc96
-rw-r--r--documentation/content/zh-cn/books/handbook/network-servers/_index.adoc100
-rw-r--r--documentation/content/zh-cn/books/handbook/ports/_index.adoc88
-rw-r--r--documentation/content/zh-cn/books/handbook/ppp-and-slip/_index.adoc78
-rw-r--r--documentation/content/zh-cn/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/zh-cn/books/handbook/printing/_index.adoc96
-rw-r--r--documentation/content/zh-cn/books/handbook/security/_index.adoc96
-rw-r--r--documentation/content/zh-cn/books/handbook/serialcomms/_index.adoc40
-rw-r--r--documentation/content/zh-cn/books/handbook/users/_index.adoc22
-rw-r--r--documentation/content/zh-cn/books/handbook/vinum/_index.adoc14
-rw-r--r--documentation/content/zh-cn/books/handbook/virtualization/_index.adoc12
-rw-r--r--documentation/content/zh-cn/books/handbook/x11/_index.adoc58
-rw-r--r--documentation/content/zh-cn/books/porters-handbook/plist/chapter.adoc14
-rw-r--r--documentation/content/zh-cn/books/porters-handbook/port-upgrading/chapter.adoc10
-rw-r--r--documentation/content/zh-cn/books/porters-handbook/security/chapter.adoc12
-rw-r--r--documentation/content/zh-cn/books/porters-handbook/testing/chapter.adoc4
-rw-r--r--documentation/content/zh-tw/articles/contributing/_index.adoc8
-rw-r--r--documentation/content/zh-tw/articles/freebsd-questions/_index.adoc2
-rw-r--r--documentation/content/zh-tw/articles/hubs/_index.adoc8
-rw-r--r--documentation/content/zh-tw/articles/leap-seconds/_index.adoc2
-rw-r--r--documentation/content/zh-tw/articles/mailing-list-faq/_index.adoc2
-rw-r--r--documentation/content/zh-tw/articles/nanobsd/_index.adoc14
-rw-r--r--documentation/content/zh-tw/articles/pr-guidelines/_index.adoc6
-rw-r--r--documentation/content/zh-tw/articles/problem-reports/_index.adoc4
-rw-r--r--documentation/content/zh-tw/articles/remote-install/_index.adoc26
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/ipv6/chapter.adoc16
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/kernelbuild/chapter.adoc8
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/kerneldebug/chapter.adoc92
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/policies/chapter.adoc20
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/sockets/chapter.adoc16
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/tools/chapter.adoc88
-rw-r--r--documentation/content/zh-tw/books/developers-handbook/x86/chapter.adoc56
-rw-r--r--documentation/content/zh-tw/books/faq/_index.adoc114
-rw-r--r--documentation/content/zh-tw/books/handbook/advanced-networking/_index.adoc212
-rw-r--r--documentation/content/zh-tw/books/handbook/audit/_index.adoc10
-rw-r--r--documentation/content/zh-tw/books/handbook/basics/_index.adoc100
-rw-r--r--documentation/content/zh-tw/books/handbook/boot/_index.adoc20
-rw-r--r--documentation/content/zh-tw/books/handbook/bsdinstall/_index.adoc10
-rw-r--r--documentation/content/zh-tw/books/handbook/config/_index.adoc96
-rw-r--r--documentation/content/zh-tw/books/handbook/cutting-edge/_index.adoc92
-rw-r--r--documentation/content/zh-tw/books/handbook/desktop/_index.adoc78
-rw-r--r--documentation/content/zh-tw/books/handbook/disks/_index.adoc232
-rw-r--r--documentation/content/zh-tw/books/handbook/dtrace/_index.adoc12
-rw-r--r--documentation/content/zh-tw/books/handbook/filesystems/_index.adoc4
-rw-r--r--documentation/content/zh-tw/books/handbook/firewalls/_index.adoc92
-rw-r--r--documentation/content/zh-tw/books/handbook/geom/_index.adoc142
-rw-r--r--documentation/content/zh-tw/books/handbook/jails/_index.adoc118
-rw-r--r--documentation/content/zh-tw/books/handbook/kernelconfig/_index.adoc24
-rw-r--r--documentation/content/zh-tw/books/handbook/l10n/_index.adoc14
-rw-r--r--documentation/content/zh-tw/books/handbook/linuxemu/_index.adoc28
-rw-r--r--documentation/content/zh-tw/books/handbook/mac/_index.adoc50
-rw-r--r--documentation/content/zh-tw/books/handbook/mail/_index.adoc36
-rw-r--r--documentation/content/zh-tw/books/handbook/mirrors/_index.adoc18
-rw-r--r--documentation/content/zh-tw/books/handbook/multimedia/_index.adoc106
-rw-r--r--documentation/content/zh-tw/books/handbook/network-servers/_index.adoc124
-rw-r--r--documentation/content/zh-tw/books/handbook/ports/_index.adoc130
-rw-r--r--documentation/content/zh-tw/books/handbook/ppp-and-slip/_index.adoc52
-rw-r--r--documentation/content/zh-tw/books/handbook/preface/_index.adoc6
-rw-r--r--documentation/content/zh-tw/books/handbook/printing/_index.adoc56
-rw-r--r--documentation/content/zh-tw/books/handbook/security/_index.adoc128
-rw-r--r--documentation/content/zh-tw/books/handbook/serialcomms/_index.adoc34
-rw-r--r--documentation/content/zh-tw/books/handbook/usb-device-mode/_index.adoc30
-rw-r--r--documentation/content/zh-tw/books/handbook/virtualization/_index.adoc102
-rw-r--r--documentation/content/zh-tw/books/handbook/x11/_index.adoc84
-rw-r--r--documentation/content/zh-tw/books/handbook/zfs/_index.adoc226
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/makefiles/chapter.adoc22
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/quick-porting/chapter.adoc2
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/security/chapter.adoc10
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/slow-porting/chapter.adoc8
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/special/chapter.adoc32
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/testing/chapter.adoc56
-rw-r--r--documentation/content/zh-tw/books/porters-handbook/upgrading/chapter.adoc16
-rw-r--r--website/content/en/releases/9.1R/hardware.adoc2
666 files changed, 17924 insertions, 17924 deletions
diff --git a/documentation/content/bd/articles/new-users/_index.adoc b/documentation/content/bd/articles/new-users/_index.adoc
index 3c487934db..ee6444aaff 100644
--- a/documentation/content/bd/articles/new-users/_index.adoc
+++ b/documentation/content/bd/articles/new-users/_index.adoc
@@ -32,7 +32,7 @@ toc::[]
লগ আউট করে প্রতিবার নতুন একটি `login:` প্রম্পট পেতে হলে লিখুন -
-[source,bash]
+[source,shell]
....
# exit
....
@@ -41,21 +41,21 @@ toc::[]
কম্পিউটার বন্ধ (shut down) করতে চাইলে লিখুন -
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
আর রিবুট করতে চাইলে লিখুন -
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
অথবা
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -66,7 +66,7 @@ toc::[]
ইনস্টলেশনের সময় যদি কোন অ্যাকাউন্ট তৈরী করে না থাকেন এবং এখন root হিসেবে লগ ইন করে থাকেন, তবে একটি অ্যাকাউন্ট তৈরীর সময় হয়েছে। এজন্য লিখুন -
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -75,7 +75,7 @@ toc::[]
নতুন কোন ব্যবহারকারীর জন্য অ্যাকাউন্ট তৈরীর একটি উদাহরণ এখন দেয়া হচ্ছে যেখানে _জ্যাক বেনিম্বলের জন্য জ্যাক_ নামে একটি অ্যাকাউন্ট তৈরী করা হয়। নিরাপত্তার ব্যাপারটি বেশ গুরুত্বপূর্ণ হলে জ্যাককে একটি পাসওয়ার্ডও দিতে হবে। জ্যাককে অন্যকোন গ্রুপের অন্তর্ভুক্ত করা হবে কিনা জানতে চাইলে লিখুন `wheel`
-[source,bash]
+[source,shell]
....
Login group is "jack". Invite jack into other groups: wheel
....
@@ -151,7 +151,7 @@ _text_ নামক ফাইলটিকে খুজে বের করার
হয়তো কিছু কমান্ড আপনার সিস্টেমে ভালভাবে কাজ করছে না। `locate` এবং `whatis` উভয়ই একটি ডাটাবেসের ওপর নির্ভর করে যা প্রতি সপ্তাহে নতুন করে তৈরী করা হয়। যদি আপনার কম্পিউটারটি সাপ্তাহিক ছুটির দিনে বন্ধ থাকে কিংবা ঐ দিন FreeBSD চালানো না হয়, তবে দৈনিক, সাপ্তাহিক কিংবা মাসিক কাজগুলো যেকোন সময়ই করতে পারেন। পরবর্তি কমান্ডগুলো আপনাকে এই ব্যবস্থা করে দেবে; root হিসেবে কমান্ডগুলো চালান এবং একটি কমান্ডের কাজ শেষ হলেই কেবল পরের কমান্ডটি প্রয়োগ করুন।
-[source,bash]
+[source,shell]
....
# periodic daily
সংশ্লিষ্ট আউটপুট
@@ -171,14 +171,14 @@ _text_ নামক ফাইলটিকে খুজে বের করার
এডিট করার পূর্বে প্রতিটি ফাইলের একটি ব্যাকআপ কপি রাখা উচিত্‍। যদি আপনি [.filename]#/etc/rc.conf# ফাইলটি এডিট করতে চান তবে `cd /etc` লিখে [.filename]#/etc# ডিরেক্টরিতে প্রবেশ করুন এবং লিখুন
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
এর ফলে [.filename]#rc.conf# ফাইলের [.filename]#rc.conf.orig# নামক একটি কপি তৈরী হবে। পরে যদি কোন কারণে [.filename]#rc.conf# এর মূল কপি ব্যবহারের প্রয়োজন হয় তবে [.filename]#rc.conf.orig# কে [.filename]#rc.conf# এ কপি করা যাবে। তবে সবচেয়ে ভাল হয় [.filename]#rc.conf# এর নাম পরিবর্তন করে [.filename]#rc.conf.orig# করার পর [.filename]#rc.conf.orig# কে [.filename]#rc.conf# এ কপি করলে:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -186,7 +186,7 @@ _text_ নামক ফাইলটিকে খুজে বের করার
এরকম করার কারণ হল, `mv` কমান্ডের সাহায্যে ফাইলের নাম পরির্বতন করলেও ফাইল সংক্রান্ত বিভিন্ন তথ্য, যেমন- তারিখ, মালিকানা ইত্যাদি অপরিবর্তিত থাকে। এখন [.filename]#rc.conf# কে এডিট করতে পারেন। কোন কারণে এডিটপূর্ব [.filename]#rc.conf# এর প্রয়োজন হলে প্রথমে বর্তমান [.filename]#rc.conf# এর নাম পরিবর্তন করে [.filename]#rc.conf.myedit# করুন (কারণ আপনার এডিটকৃত [.filename]#rc.conf#'কেও হয়তো ভবিষ্যতে প্রয়োজন হতে পারে) ঃ
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -195,7 +195,7 @@ _text_ নামক ফাইলটিকে খুজে বের করার
কোন ফাইল এডিট করতে চাইলে লিখুন,
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -248,14 +248,14 @@ kbd:[Ctrl+b] এবং kbd:[Ctrl+f]::
এ অবস্থায় সম্ভবত আপনার প্রিন্টার কাজ করছে না। তাই কোন ম্যানুয়াল পেজকে ফ্লপিতে করে ডস-এ নিয়ে কিভাবে প্রিন্ট করবেন তার বর্ণনা এখানে দেয়া হল। মনে করুন আপনি কোন ফাইল ব্যবহারের অনুমতি পরিবর্তনের প্রক্রিয়া ভালভাবে পড়তে চাইছেন (এটি যথেষ্ট গুরুত্বপূর্ণ একটি ব্যাপার)। `man chmod` কমান্ড ব্যবহার করে আপনি এসম্পর্কে পড়তে পারবেন,
-[source,bash]
+[source,shell]
....
% man chmod | col -b > chmod.txt
....
এই কমান্ডটি `chmod` এর ম্যানুয়াল পেজকে স্ক্রীনে না দেখিয়ে [.filename]#chmod.txt# ফাইলে লিখে দেবে। এখন ফ্লপি ড্রাইভে একটি ডস ফরম্যাটের ফ্লপি রাখুন, `su` কমান্ড ব্যবহার করে root হোন এবং লিখুন
-[source,bash]
+[source,shell]
....
# /sbin/mount -t msdos /dev/fd0 /mnt
....
@@ -264,7 +264,7 @@ kbd:[Ctrl+b] এবং kbd:[Ctrl+f]::
এখন যে ডিরেক্টরিতে [.filename]#chmod.txt# নামের ফাইলটি তৈরী করেছেন সেখানে গিয়ে [.filename]#chmod.txt# কে ফ্লপিতে কপি করতে পারেন (এজন্য root হিসেবে কাজ করার কোন প্রয়োজন নেই, তাই `exit` লিখে অনায়াসে `jack` হিসেবে কাজকর্ম চালিয়ে যেতে পারেন)।
-[source,bash]
+[source,shell]
....
% cp chmod.txt /mnt
....
@@ -273,7 +273,7 @@ kbd:[Ctrl+b] এবং kbd:[Ctrl+f]::
আপনি বিশেষ করে [.filename]#/sbin/dmesg# কমান্ডের আউটপুটকে একটি ফাইলে লিখে রাখার প্রয়োজনীয়তা অনুভব করতে পারেনঃ
-[source,bash]
+[source,shell]
....
% /sbin/dmesg > dmesg.txt
....
@@ -282,7 +282,7 @@ kbd:[Ctrl+b] এবং kbd:[Ctrl+f]::
এখন আপনি root হিসেবে ফ্লপিড্রাইভকে ডিসমাউন্ট করতে পারেন,
-[source,bash]
+[source,shell]
....
# /sbin/umount /mnt
....
@@ -316,7 +316,7 @@ _dir_ নামের ডিরেক্টরি ও তার অন্তর
`find` কমান্ড ব্যবহার করে [.filename]#/usr# ডিরেক্টরির কোন ফাইলকে এভাবে খুঁজে পেতে পারেন,
-[source,bash]
+[source,shell]
....
# find /usr -name "filename"
....
@@ -333,7 +333,7 @@ _dir_ নামের ডিরেক্টরি ও তার অন্তর
যে পোর্টটি ইনস্টল করবেন তা প্রথমে খুজে বের করুন। মনে করুন পোর্টটির নাম Kermit। সিডিরমের ভেতর Kermit এর জন্য একটি ডিরেক্টরি থাকবে। এই ডিরেক্টরিকে [.filename]#/usr/local# ডিরেক্টরিতে কপি করুন ( যেসকল সফটওয়ার সিস্টেমের সকল ব্যবহারকারীই চালাবে সেগুলো ইনস্টল করার জন্য [.filename]#/usr/local# একটি ভাল জায়গা)ঃ
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -344,7 +344,7 @@ _dir_ নামের ডিরেক্টরি ও তার অন্তর
এখন `cd` কমান্ড ব্যবহার করে [.filename]#/usr/local/kermit# ডিরেক্টরিতে প্রবেশ করুন। এখানে [.filename]#Makefile# নামে একটি ফাইল থাকবে। এবার লিখুন,
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/da/articles/ipsec-must/_index.adoc b/documentation/content/da/articles/ipsec-must/_index.adoc
index b8cadaf4bc..19ea3c41b1 100644
--- a/documentation/content/da/articles/ipsec-must/_index.adoc
+++ b/documentation/content/da/articles/ipsec-must/_index.adoc
@@ -59,7 +59,7 @@ Vi har også brug for en måde at opsamle de rå netværksdata. Et program kalde
Kommandoen
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -78,7 +78,7 @@ Her er eksperimentet:
. I det "sikre" vindue, køres UNIX(R) kommandoen man:yes[1], hvilket vil streame `y` karakteren. Stop dette efter et stykke tid. Skift til det usikre vindue, og gentag. Stop igen efter et stykke tid.
. Kør nu <<code>> på de opfangede pakker. Du skulle se noget lignende det følgende. Det vigtige at notere sig er, at den sikre forbindelse har 93% (6,7) af den ventede værdi (7.18), og den "normale" forbindelse har 29% (2.1) af den ventede værdi.
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
% uliscan ipsecdemo.bin
diff --git a/documentation/content/de/articles/contributing/_index.adoc b/documentation/content/de/articles/contributing/_index.adoc
index f207b29ed8..2fa43e3832 100644
--- a/documentation/content/de/articles/contributing/_index.adoc
+++ b/documentation/content/de/articles/contributing/_index.adoc
@@ -116,14 +116,14 @@ Das bevorzugte man:diff[1]-Format für das Versenden von Patches ist das sogenan
Dazu ein Beispiel:
-[source,bash]
+[source,shell]
....
% diff -c oldfile newfile
....
oder
-[source,bash]
+[source,shell]
....
% diff -c -r olddir newdir
....
@@ -132,14 +132,14 @@ würde einen solchen Satz von Differenzen für die angegebene Verzeichnishierarc
Genauso hätte
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
oder
-[source,bash]
+[source,shell]
....
% diff -u -r olddir newdir
....
diff --git a/documentation/content/de/articles/freebsd-update-server/_index.adoc b/documentation/content/de/articles/freebsd-update-server/_index.adoc
index 85037a59f0..b70d36587a 100644
--- a/documentation/content/de/articles/freebsd-update-server/_index.adoc
+++ b/documentation/content/de/articles/freebsd-update-server/_index.adoc
@@ -66,7 +66,7 @@ Als Minimum, muss das zu verteilende Ziel-Release auf einer gleichen, oder höhe
Laden Sie die https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] Software durch die Installation von package:devel/subversion[] sowie package:security/ca_root_nss[], und starten Sie:
-[source,bash]
+[source,shell]
....
% svn co https://svn.freebsd.org/base/user/cperciva/freebsd-update-build freebsd-update-server
....
@@ -108,7 +108,7 @@ Anpassungen am `fetchiso()` Code können Sie vornehmen, indem Sie das Standardsk
<.> Der Name des Build-Hosts. Auf aktualisierten Systemen können Sie diese Information wie folgt ausgeben:
+
-[source,bash]
+[source,shell]
....
% uname -v
....
@@ -126,7 +126,7 @@ Die Standard [.filename]#build.conf#, die mit den `freebsd-update-server` Quelle
====
. Erstellen Sie eine Bau-Umgebung für amd64:
+
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/scripts/7.2-RELEASE/amd64
....
@@ -151,7 +151,7 @@ export EOL=1275289200 <.>
<.> Der man:sha256[1] Fingerabdruck für die gewünschte Version wird innerhalb der jeweiligen link:https://www.FreeBSD.org/releases/[Release-Ankündigung] veröffentlicht.
<.> Um die "End of Life" Nummer für die [.filename]#build.conf# zu generieren, beziehen Sie sich bitte auf "Estimated EOL" auf der link:https://www.FreeBSD.org/security/security/[FreeBSD Security Webseite]. Der Wert für `EOL` kann aus dem Datum, das auf der Webseite veröffentlicht ist, abgeleitet werden. Benutzen Sie dafür das Werkzeug man:date[1]. Dazu ein Beispiel:
+
-[source,bash]
+[source,shell]
....
% date -j -f '%Y%m%d-%H%M%S' '20090401-000000' '+%s'
....
@@ -162,7 +162,7 @@ export EOL=1275289200 <.>
Der erste Schritt ist das Ausführen von [.filename]#scripts/make.sh#. Dieses Skript baut einige Binärdateien, erstellt Verzeichnisse und einen RSA Signaturschlüssel für die Genehmigung des Bau. In diesem Schritt müssen Sie auch eine Passphrase für die Erstellung des Signaturschlüssels angeben.
-[source,bash]
+[source,shell]
....
# sh scripts/make.sh
cc -O2 -fno-strict-aliasing -pipe findstamps.c -o findstamps
@@ -192,7 +192,7 @@ Notieren Sie sich den Fingerabdruck des erzeugten Schlüssels. Dieser Wert wird
An dieser Stelle sind wir bereit, den Bauprozess zu starten.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/init.sh amd64 7.2-RELEASE
@@ -200,7 +200,7 @@ An dieser Stelle sind wir bereit, den Bauprozess zu starten.
Hier folgt ein Beispiel für einen _ersten_ Bauprozess.
-[source,bash]
+[source,shell]
....
# sh scripts/init.sh amd64 7.2-RELEASE
Mon Aug 24 16:04:36 PDT 2009 Starting fetch for FreeBSD/amd64 7.2-RELEASE
@@ -249,7 +249,7 @@ Anschließend wird das Basissystem mit den dazugehörigen Patches erneut gebaut.
Während der zweiten Bauphase wird der Network Time Protocol Dienst, man:ntpd[8], ausgeschaltet. Per `{cperciva}`, emeritierter Security Officer von FreeBSD, "Der https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] Code muss Zeitstempel, welche in Dateien gespeichert sind, identifizieren, sodass festgestellt werden kann, welche Dateien aktualisiert werden müssen. Dies geschieht, indem zwei Builds erstellt werden die 400 Tage auseinander liegen und anschließend die Ergebnisse verglichen werden."
====
-[source,bash]
+[source,shell]
....
Mon Aug 24 17:54:07 PDT 2009 Extracting world+src for FreeBSD/amd64 7.2-RELEASE
Wed Sep 29 00:54:34 UTC 2010 Building world for FreeBSD/amd64 7.2-RELEASE
@@ -288,7 +288,7 @@ world|base|/usr/lib/libalias_ftp.a
Schlussendlich wird der Bauprozess fertiggestellt.
-[source,bash]
+[source,shell]
....
Values of build stamps, excluding library archive headers:
v1.2 (Aug 25 2009 00:40:36)
@@ -326,13 +326,13 @@ to sign the release.
Genehmigen Sie den Bau, wenn alles korrekt ist. Weitere Informationen zur korrekten Bestimmung finden Sie in der Quelldatei namens [.filename]#USAGE#. Führen Sie, wie angegeben [.filename]#scripts/approve.sh# aus. Dieser Schritt unterschreibt das Release und verschiebt die Komponenten an einen Sammelpunkt, wo sie für den Upload verwendet werden können.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/mountkey.sh
....
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.2-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.2-RELEASE
@@ -344,7 +344,7 @@ Wed Aug 26 12:50:07 PDT 2009 Cleaning staging area for FreeBSD/amd64 7.2-RELEASE
Nachdem der Genehmigungsprozess abgeschlossen ist, kann der Upload gestartet werden.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.2-RELEASE
@@ -354,7 +354,7 @@ Nachdem der Genehmigungsprozess abgeschlossen ist, kann der Upload gestartet wer
====
Wenn der Update-Code erneut hochgeladen werden muss, kann dies durch die Änderung des öffentlichen Distributionsverzeichnisses für das Ziel-Release und der Aktualisierung der Attribute für die _hochgeladene_ Datei geschehen.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server/pub/7.2-RELEASE/amd64
# touch -t 200801010101.01 uploaded
@@ -388,7 +388,7 @@ Für den Bau eines anderen Release werden ein paar Annahmen getroffen:
Erstellen Sie das Korrekturverzeichnis des jeweiligen Releases unter [.filename]#/usr/local/freebsd-update-server/patches/#.
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/patches/7.1-RELEASE/
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE
@@ -398,7 +398,7 @@ Als Beispiel nehmen Sie die Korrektur für man:named[8]. Lesen Sie den Hinweis u
In der https://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.asc[Sicherheits Anweisung], nennt sich dieser Hinweis `SA-09:12.bind`. Nach dem Herunterladen der Datei, ist es erforderlich, die Datei auf einen geeigneten Patch-Level umzubenennen. Es steht Ihnen frei den Namen frei zu wählen, es wird jedoch nahegelegt, diesen im Einklang mit dem offiziellen FreeBSD Patch-Level zu halten. Für diesen Bau folgen wir der derzeit gängigen Praxis von FreeBSD und benennen sie `p7`. Benennen Sie die Datei um:
-[source,bash]
+[source,shell]
....
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE/; mv bind.patch 7-SA-09:12.bind
....
@@ -417,7 +417,7 @@ Es liegt in der Verantwortung des Administrators des FreeBSD Update Server geeig
An dieser Stelle sind wir bereit, einen _Diff_ zu bauen. Die Software prüft zunächst, ob [.filename]#scripts/init.sh# für das jeweilige Release gelaufen ist, bevor mit dem Bau des Diff begonnen wird.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/diff.sh amd64 7.1-RELEASE 7
@@ -425,7 +425,7 @@ An dieser Stelle sind wir bereit, einen _Diff_ zu bauen. Die Software prüft zun
Es folgt ein Beispiel für einen _Diff_ Bauprozess.
-[source,bash]
+[source,shell]
....
# sh -e scripts/diff.sh amd64 7.1-RELEASE 7
Wed Aug 26 10:09:59 PDT 2009 Extracting world+src for FreeBSD/amd64 7.1-RELEASE-p7
@@ -502,7 +502,7 @@ Wed Aug 26 17:20:39 UTC 2009
Die Updates werden angezeigt und warten auf Genehmigung.
-[source,bash]
+[source,shell]
....
New updates:
kernel|generic|/GENERIC/kernel.symbols|f|0|0|0555|0|7c8dc176763f96ced0a57fc04e7c1b8d793f27e006dd13e0b499e1474ac47e10|
@@ -524,7 +524,7 @@ to sign the build.
Folgen Sie dem zuvor erwähnten Verfahren für die Genehmigung des Bauprozesses:
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.1-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.1-RELEASE
@@ -542,7 +542,7 @@ the new builds.
Nachdem Sie den Bau genehmigt haben, starten Sie den Upload der Software:
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.1-RELEASE
diff --git a/documentation/content/de/articles/leap-seconds/_index.adoc b/documentation/content/de/articles/leap-seconds/_index.adoc
index 5abf330d1e..d080b2b00d 100644
--- a/documentation/content/de/articles/leap-seconds/_index.adoc
+++ b/documentation/content/de/articles/leap-seconds/_index.adoc
@@ -63,7 +63,7 @@ Bitte stellen Sie sicher, dass nichts schreckliches wegen der Schaltsekunde pass
Es ist möglich, zu überprüfen, ob eine Schaltsekunde verwendet wird. Aufgrund der Art und Weise wie NTP arbeitet, funktioniert der Test möglicherweise bis zu 24 Stunden vor der Schaltsekunde. Manche Hauptreferenzuhrzeitquellen kündigen Schaltsekunden erst eine Stunde vor dem Ereignis an. Fragen Sie den NTP-Dienst ab:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/de/articles/linux-users/_index.adoc b/documentation/content/de/articles/linux-users/_index.adoc
index fa96d10e68..983de0c0f3 100644
--- a/documentation/content/de/articles/linux-users/_index.adoc
+++ b/documentation/content/de/articles/linux-users/_index.adoc
@@ -71,7 +71,7 @@ Eine vollständige Liste aller Ports und Pakete finden Sie http://www.freebsd.or
Pakete sind vorkompilierte Anwendungen, sozusagen FreeBSD-Äquivalente von [.filename]#.deb#-Dateien unter Debian/Ubuntu basierten Systemen und [.filename]#.rpm#-Dateien von Red Hat/Fedora basierten Systemen. Pakete werden mit `pkg` installiert. Das folgende Kommando installiert beispielsweise Apache 2.4:
-[source,bash]
+[source,shell]
....
# pkg install apache24
....
@@ -87,7 +87,7 @@ Die Ports-Sammlung, oder einfach Ports genannt, kann mit man:portsnap[8] nach [.
Um einen Port zu kompilieren, wechseln Sie in das Verzeichnis des Ports und starten Sie den Bau-Prozess. Das folgende Beispiel installiert Apache 2.4 aus der Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make install clean
@@ -95,7 +95,7 @@ Um einen Port zu kompilieren, wechseln Sie in das Verzeichnis des Ports und star
Ein Vorteil von Ports bei der Installation von Software ist die Möglichkeit, die Installationsoptionen anzupassen. In diesem Beispiel wird spezifiziert, dass zusätzlich das Modul mod_ldap installiert werden soll:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make WITH_LDAP="YES" install clean
@@ -127,7 +127,7 @@ apache24_flags="-DSSL"
Sobald ein Dienst in [.filename]#/etc/rc.conf# aktiviert ist, kann er ohne einen Neustart des Systems gestartet werden:
-[source,bash]
+[source,shell]
....
# service sshd start
# service apache24 start
@@ -135,7 +135,7 @@ Sobald ein Dienst in [.filename]#/etc/rc.conf# aktiviert ist, kann er ohne einen
Wenn ein Dienst nicht aktiviert wurde, kann er auf der Kommandozeile mit `onestart` gestartet werden:
-[source,bash]
+[source,shell]
....
# service sshd onestart
....
@@ -145,7 +145,7 @@ Wenn ein Dienst nicht aktiviert wurde, kann er auf der Kommandozeile mit `onesta
Anstelle einer allgemeinen __ethX__-Kennzeichnung, die von Linux(R) benutzt wird, um Netzwerkschnittstellen zu identifizieren, verwendet FreeBSD den Treibernamen gefolgt von einer Nummer. Die folgende Ausgabe von man:ifconfig[8] zeigt zwei Intel(R)Pro 1000 Netzwerkschnittstellen ([.filename]#em0# und [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
@@ -245,7 +245,7 @@ In einigen Linux(R)-Distributionen kann man in [.filename]#/proc/sys/net/ipv4/ip
Auf einem FreeBSD-System kann der folgende Befehl benutzt werden, um festzustellen ob IP-Weiterleitung aktiviert ist:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -253,14 +253,14 @@ net.inet.ip.forwarding: 0
Benutzen Sie `-a` um alle Einstellungen des Systems anzuzeigen:
-[source,bash]
+[source,shell]
....
% sysctl -a | more
....
Wenn eine Anwendung procfs benötigt, fügen Sie den folgenden Eintrag in [.filename]#/etc/fstab# ein:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -269,7 +269,7 @@ Die Option `noauto` verhindert, dass [.filename]#/proc# beim Booten automatisch
Das Dateisystem kann ohne Neustart eingehängt werden:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/de/articles/nanobsd/_index.adoc b/documentation/content/de/articles/nanobsd/_index.adoc
index 462467c458..825e00ed3e 100644
--- a/documentation/content/de/articles/nanobsd/_index.adoc
+++ b/documentation/content/de/articles/nanobsd/_index.adoc
@@ -68,7 +68,7 @@ Die Partition der Konfigurationsdatei besteht unter dem [.filename]#/cfg# Verzei
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -92,7 +92,7 @@ Ein NanoBSD Abbild wird über ein einfaches [.filename]#nanobsd.sh# Shell-Skript
Die folgenden Kommandos sind notwendig um ein NanoBSD Abbild zu erstellen:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -114,7 +114,7 @@ Dies ist wahrscheinlich das wichtigste und interessanteste Merkmal von NanoBSD.
Der Aufruf des folgenden Kommandos wird [.filename]#nanobsd.sh# dazu zwingen, seine Konfiguration aus [.filename]#myconf.nano# aus dem aktuellen Verzeichnis zu lesen:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -264,7 +264,7 @@ In Abhängigkeit davon welche Dienste der Host, der das NanoBSD Abbild anbietet,
Wenn die Übertragungsgeschwindigkeit an erster Stelle steht, verwenden Sie dieses Beispiel:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -274,7 +274,7 @@ get _.disk.image "| sh updatep1"
Wenn eine sichere Übertragung bevorzugt wird, sollten Sie die Verwendung dieses Beispiels in Betracht ziehen:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -287,7 +287,7 @@ Verwenden Sie dieses Beispiel, wenn auf dem Remote-Host kein man:ftpd[8] oder ma
====
. Zunächst öffnen Sie eine TCP-Listener auf dem Host der das Abbild bereitstellt und zum Client sendet:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -298,7 +298,7 @@ Stellen Sie sicher das der benutzte Port nicht blockiert wird, um eingehende Ver
======
. Verbinden Sie sich zum Host der das Abbild bereitstellt und führen Sie das [.filename]#updatep1# Skript aus:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/de/articles/new-users/_index.adoc b/documentation/content/de/articles/new-users/_index.adoc
index 03e1c8bd91..cdcaf55611 100644
--- a/documentation/content/de/articles/new-users/_index.adoc
+++ b/documentation/content/de/articles/new-users/_index.adoc
@@ -42,7 +42,7 @@ Melden Sie sich (wenn `login:` am Bildschirm erscheint) als derjenige Benutzer,
Um sich abzumelden, geben Sie
-[source,bash]
+[source,shell]
....
# exit
....
@@ -51,7 +51,7 @@ so oft wie nötig ein (und zwar bis wieder `login:` erscheint). Drücken Sie nac
Um den Rechner herunterzufahren, geben Sie
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
@@ -60,14 +60,14 @@ ein.
Um den Rechner neu zu starten, geben Sie
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
ein, oder Sie rufen einfach
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -81,7 +81,7 @@ Sie können natürlich auch den Rechner mit kbd:[Strg+Alt+Entf] neu starten. War
Falls Sie während der Installation des Systems keine Benutzer angelegt haben und noch als `root` angemeldet sind, sollten Sie mit
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -92,7 +92,7 @@ Wenn Sie `adduser` das erste Mal ausführen, werden Sie gefragt, ob Sie einige S
Angenommen, Sie möchten den Benutzer `jack` mit dem vollständigen Namen _Jack Benimble_ anlegen. Weisen Sie `jack` auf jeden Fall ein Passwort zu (auch Kinder, die auf der Tastatur spielen, können ein Problem darstellen). Wenn Sie gefragt werden, ob `jack` Mitglied in anderen Gruppen sein soll, geben Sie `wheel` ein.
-[source,bash]
+[source,shell]
....
Login group is "jack". Invite jack into other groups: wheel
....
@@ -165,7 +165,7 @@ Rufen Sie nun `whatis` mit einigen nützlichen Befehlen wie `cat`, `more`, `grep
Funktioniert der eine oder andere Aufruf bei Ihnen nicht? Sowohl man:locate[1], als auch man:whatis[1] sind von einer Datenbank abhängig, die wöchentlich aktualisiert wird. Falls Ihr Rechner nicht ständig läuft, können Sie die täglichen, wöchentlichen und monatlichen Aktualisierungen auch manuell starten. Melden Sie sich dazu als `root` an. Warten Sie jeweils auf das Ende eines Befehls, bevor Sie den nächsten Befehl eingeben.
-[source,bash]
+[source,shell]
....
# periodic daily
output omitted
@@ -184,14 +184,14 @@ Um Ihr System konfigurieren zu können, müssen Sie häufig Textdateien bearbeit
Bevor Sie eine Datei bearbeiten, sollten Sie eine Sicherheitskopie der Datei anlegen. Wenn Sie beispielsweise [.filename]#/etc/rc.conf# bearbeiten möchten, wechseln Sie mit `cd /etc` nach [.filename]#/etc# und geben Folgendes ein:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
Dadurch wird eine Kopie von [.filename]#rc.conf# mit dem Namen [.filename]#rc.conf.orig# angelegt, mit der Sie notfalls das Original wiederherstellen können, indem Sie [.filename]#etc.conf.orig# nach [.filename]#etc.conf# kopieren. Noch besser ist es, die Datei zuerst zu verschieben (umzubenennen) und dann zu kopieren:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -199,7 +199,7 @@ Dadurch wird eine Kopie von [.filename]#rc.conf# mit dem Namen [.filename]#rc.co
weil bei der Verwendung von `mv` das Datum und der Besitzer der Datei erhalten bleiben. Danach können Sie die Datei [.filename]#rc.conf# bearbeiten. Möchten Sie die Originaldatei wiederherstellen, geben Sie `mv rc.conf rc.conf.myedit` (falls Sie die bearbeitete Version erhalten möchten), gefolgt von:
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -208,7 +208,7 @@ ein, um den Originalzustand wiederherzustellen.
Um eine Datei zu bearbeiten, geben Sie
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -264,14 +264,14 @@ Danach können Sie mit `cd` nach [.filename]#/etc# wechseln, mit `su` zu `root`
Bis zu diesem Zeitpunkt haben Sie wahrscheinlich noch keinen Drucker eingerichtet, daher zeigen wir Ihnen, wie man eine Datei aus einer Manualpage erzeugt, diese auf eine Diskette kopiert und dann unter DOS ausdruckt. Möchten Sie etwa nachlesen, wie Sie Dateirechte verändern können (was sehr wichtig ist), rufen Sie mit `man chmod` die entsprechende Manualpage auf. Der Befehl
-[source,bash]
+[source,shell]
....
% man chmod | col -b > chmod.txt
....
entfernt alle Formatierungen und leitet die Ausgabe der Manualpage nach [.filename]#chmod.txt# um, statt diese auf dem Bildschirm anzuzeigen. Legen Sie danach eine DOS-formatierte Diskette in Ihr Diskettenlaufwerk [.filename]#a# ein und geben Sie `su` ein, um zu `root` zu werden. Tippen Sie nun
-[source,bash]
+[source,shell]
....
# /sbin/mount -t msdosfs /dev/fd0 /mnt
....
@@ -280,7 +280,7 @@ ein, um das Diskettenlaufwerk unter [.filename]#/mnt# einzuhängen.
Da Sie ab nun keine `root`-Rechte mehr benötigen, werden Sie durch die Eingabe von `exit` wieder zu `jack` und wechseln dann in das Verzeichnis, in dem sich [.filename]#chmod.txt# befindet, und kopieren diese Datei mit
-[source,bash]
+[source,shell]
....
% cp chmod.txt /mnt
....
@@ -289,7 +289,7 @@ auf Ihre Diskette. Zeigen Sie mit `ls /mnt` den Inhalt von [.filename]#/mnt# an.
Leiten Sie nun die Ausgabe von `/sbin/dmesg` in eine Datei um, indem Sie
-[source,bash]
+[source,shell]
....
% /sbin/dmesg > dmesg.txt
....
@@ -298,7 +298,7 @@ eingeben und diese Datei ebenfalls auf die Diskette kopieren. Mit `/sbin/dmesg`
Anschließend können Sie das Diskettenlaufwerk wieder aus dem Verzeichnisbaum aushängen (unmounten), um die Diskette zu entfernen. Dies funktioniert natürlich nur als `root`:
-[source,bash]
+[source,shell]
....
# /sbin/umount /mnt
....
@@ -333,7 +333,7 @@ die Manualpage des UNIX(R)-Dateisystems.
Nutzen Sie `find`, um unter [.filename]#/usr# oder anderen Verzeichnissen nach [.filename]#dateiname# zu suchen:
-[source,bash]
+[source,shell]
....
% find /usr -name "dateiname>"
....
@@ -351,7 +351,7 @@ Falls Ihnen die Beschreibung zur Installation von Ports von der CD-ROM im Handbu
Suchen Sie zuerst den Port, den Sie installieren möchten, etwa `kermit`. Auf der CD-ROM sollte dafür ein entsprechendes Verzeichnis vorhanden sein. Kopieren Sie dieses Unterverzeichnis nach [.filename]#/usr/local# (ein guter Platz für Programme, die hinzugefügt werden und allen Benutzern zugänglich sein sollen):
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -362,7 +362,7 @@ Danach legen Sie mit `mkdir` das Verzeichnis [.filename]#/usr/ports/distfiles# a
Wechseln Sie nun mit `cd` nach [.filename]#/usr/local/kermit#. In diesem Verzeichnis befindet sich bereits ein [.filename]#Makefile#. Geben Sie hier Folgendes ein:
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/de/articles/solid-state/_index.adoc b/documentation/content/de/articles/solid-state/_index.adoc
index e1efc391bb..3b641aef4c 100644
--- a/documentation/content/de/articles/solid-state/_index.adoc
+++ b/documentation/content/de/articles/solid-state/_index.adoc
@@ -88,14 +88,14 @@ Ein paar Anwendungen im normalen System werden sofort nach dieser Änderung ausf
Eine wichtige Sache, an die man sich erinnern sollte, ist, dass ein Dateisystem, welches als nur lesend in [.filename]#/etc/fstab# eingebunden wurde, jederzeit als schreibend durch das folgende Kommando eingehängt werden kann:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partition
....
und auch wieder zurück auf nur lesend durch den Befehl:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partition
....
@@ -117,7 +117,7 @@ Wählen Sie nach dem Starten der Kern- und mfsroot-Disketten, `custom` aus dem I
+
Verlassen Sie das Installationsmenü und wählen Sie aus dem Hauptinstallationsmenü die Option `fixit`. In der fixit-Umgebung angelangt, geben Sie den folgenden Befehl ein:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -131,7 +131,7 @@ a: 123456 0 4.2BSD 0 0
+
Wobei _123456_ eine Zahl darstellt, die exakt der gleichen Zahl in der bestehenden Zeile mit dem `c:`-Eintrag entspricht. Sie kopieren quasi die bestehende Zeile `c:` als eine neue Zeile `a:` und stellen sicher, dass fstype `4.2BSD` entspricht. Speichern Sie die Datei und verlassen Sie den Editor.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -141,14 +141,14 @@ Wobei _123456_ eine Zahl darstellt, die exakt der gleichen Zahl in der bestehend
+
Hängen Sie das neu erstellte Flash-Medium ein:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
+
Verbinden Sie diese Maschine mit dem Netzwerk, um die tar-Datei zu übertragen und extrahieren Sie es auf das Dateisystem des Flash-Mediums. Ein Beispiel dazu wäre folgendes:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -156,21 +156,21 @@ Verbinden Sie diese Maschine mit dem Netzwerk, um die tar-Datei zu übertragen u
+
Jetzt da die Maschine ans Netzwerk angeschlossen ist, kopieren Sie die tar-Datei. An diesem Punkt werden Sie möglicherweise mit einem Dilemma konfrontiert - sollte Ihr Flash-Speicher beispielsweise 128 MB gross sein und Ihre tar-Datei grösser als 64 MB, können Sie ihre tar-Datei auf dem Flash-Speicher nicht entpacken - Ihnen wird vorher der Speicherplatz ausgehen. Eine Lösung für dieses Problem, sofern Sie FTP verwenden, ist, dass Sie die Datei entpacken können, während es von FTP übertragen wird. Wenn Sie die Übertragung auf diese Weise durchführen, haben Sie niemals die tar-Datei und deren Inhalt zur gleichen Zeit auf Ihrem Medium:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| tar xvf -"
....
+
Sollte Ihre tar-Datei gezippt sein, können Sie dies ebenso bewerkstelligen:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| zcat | tar xvf -"
....
+
Nachdem der Inhalt Ihrer tar-Datei auf dem Dateisystem des Flash-Mediums abgelegt wurden, können Sie den Flash-Speicher aushängen und neu starten:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -195,7 +195,7 @@ Jedoch löst das noch nicht das Problem, Crontabs über Neustarts des Systems hi
Die Datei [.filename]#syslog.conf# spezifiziert den Ort von bestimmten Logdateien, welche in [.filename]#/var/log# existieren. Diese Dateien werden nicht von [.filename]#/etc/rc.d/var# während der Systeminitialisierung erstellt. Aus diesem Grund müssen Sie irgendwo in [.filename]#/etc/rc.d/var# nach dem Abschnitt, der die Verzeichnisse in [.filename]#/var# erstellt, eine Zeile ähnlich der folgenden hinzufügen:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -209,14 +209,14 @@ Um es zu ermöglichen, in das Ports-Verzeichnis zu wechseln und erfolgreich make
Erstellen Sie zuerst ein Verzeichnis für die Paketdatenbank. Normalerweise ist dies [.filename]#/var/db/pkg#, jedoch können wir es dort nicht unterbringen, da es jedesmal verschwinden wird, wenn das System neu gestartet wird.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Fügen Sie nun eine Zeile in [.filename]#/etc/rc.d/var# hinzu, welche das [.filename]#/etc/pkg#-Verzeichnis mit [.filename]#/var/db/pkg# verknüpft. Ein Beispiel:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -236,7 +236,7 @@ Fügen Sie zuerst das Verzeichnis `log/apache` zu der Liste von Verzeichnissen h
Danach tragen Sie die folgenden Befehle in [.filename]#/etc/rc.d/var# nach dem Abschnitt zum Erstellen der Verzeichnisse ein:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -244,7 +244,7 @@ Danach tragen Sie die folgenden Befehle in [.filename]#/etc/rc.d/var# nach dem A
Schliesslich löschen Sie das bestehende [.filename]#apache_log_dir# Verzeichnis und ersetzen es mit einer Verknüpfung:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_dir
# ln -s /var/log/apache apache_log_dir
diff --git a/documentation/content/de/books/developers-handbook/ipv6/chapter.adoc b/documentation/content/de/books/developers-handbook/ipv6/chapter.adoc
index e658b60db9..8657754234 100644
--- a/documentation/content/de/books/developers-handbook/ipv6/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/ipv6/chapter.adoc
@@ -165,7 +165,7 @@ Gewöhnliche Userland-Anwendungen sollten die erweiterte Programmierschnittstell
Im Kernel ist ein Schnittstellenindex für link-local scoped-Adressen in das zweite 16bit-Wort (drittes und viertes Byte) der IPv6-Adresse eingebettet. Zum Beispiel sieht man folgendes
-[source,bash]
+[source,shell]
....
fe80:1::200:f8ff:fe01:6317
....
@@ -191,7 +191,7 @@ Die IPv6 link-local-Adresse wird aus einer IEEE802-Adresse (Ethernet MAC address
Hier ist eine Ausgabe des netstat-Kommandos:
-[source,bash]
+[source,shell]
....
Internet6:
Destination Gateway Flags Netif Expire
@@ -222,7 +222,7 @@ Deshalb ist es unklug, net.inet6.ip6.accept_rtadv bei Routern oder bei Hosts mit
Eine Zusammenfassung des sysctl-Angaben:
-[source,bash]
+[source,shell]
....
accept_rtadv forwarding Rolle des Knotens
--- --- ---
@@ -285,7 +285,7 @@ und dann kompiliere den Kernel neu.
Dann kann man die Jumbo-Payloads mittels man:ping6[8]-Kommando mit den Optionen -b und -s testen. Die Option -b muss angegeben werden, um die Größe des Socket-Puffers zu erhön, und die Option -s gibt die Größe des Pakets an, die größer als 65.535 sein sollte. Beispielsweise gibt man folgendes ein:
-[source,bash]
+[source,shell]
....
% ping6 -b 70000 -s 68000 ::1
....
@@ -294,7 +294,7 @@ Die IPv6-Spezifikation verlangt, dass die Jumbo-Payload-Option nicht in einem Pa
Wenn ein IPv6-Paket empfangen wird, dann wird die Rahmenlänge geprüft und sie wird mit der Größe verglichen, die im Datenfeld für die Paketgröße des IPv6-Headers oder im Wert für die Jumbo-Payload-Option angegeben ist, sofern vorhanden. Falls ersterer kleiner als letzterer ist, dann wird das Paket abgelehnt und die Statistiken werden erhöht. Man kann die Statistik als Ausgabe des man:netstat[8]-Kommandos mit der ``-s -p ip6``-Option sehen:
-[source,bash]
+[source,shell]
....
% netstat -s -p ip6
ip6:
@@ -342,7 +342,7 @@ Um IP6-Header, Extension-Header und Transport-Headers leichter verarbeiten zu k
`netstat -s -p ip6` ermittelt, ob der Treiber sich nach solchen Erfordernissen richtet, oder nicht. Im folgenden Beispiel verletzt "cce0" dies Erfordernisse (Für weitere Informationen, siehe Abschnitt 2.).
-[source,bash]
+[source,shell]
....
Mbuf statistics:
317 one mbuf
@@ -371,7 +371,7 @@ Man kann einen Wildcard-Bind auf demselben Port bei beiden Adressfamilien durchf
Die folgende Tabelle zeigt das Verhalten von FreeBSD 4.x.
-[source,bash]
+[source,shell]
....
Hörende Seite Beginnende Seite
(AF_INET6-Wildcard- (Verbindung zu ::ffff:10.1.1.1)
@@ -397,7 +397,7 @@ Um nur IPv6-Datenverkehr portabel an AF_INET6 wildcard gebundenen Socket zu unte
Um diesen Punkt leichter lösen zu können, gibt es für man:setsockopt[2] die System abhängige Option IPV6_BINDV6ONLY, die wie folgt benutzt wird.
-[source,bash]
+[source,shell]
....
int on;
@@ -435,7 +435,7 @@ Die Plattform kann für eine Unterstützung von IPv4-mapped-Adressen konfigurier
Jeder Socket kann für eine Unterstützung eines speziellen AF_INET6 wildcard bind (Standardmäßig eingeschaltet) konfiguriert werden. Man kann es auf Socket-Basis mit man:setsockopt[2] wie unten beschrieben abschalten.
-[source,bash]
+[source,shell]
....
int on;
@@ -460,7 +460,7 @@ Als RFC2553 kurz vor der Vollendung stand, gab es eine Diskussion, wie struct so
Als Ergebnis definiert RFC2553 die Struktur sockaddr_storage wie folgt:
-[source,bash]
+[source,shell]
....
struct sockaddr_storage {
u_char __ss_len; /* address length */
@@ -471,7 +471,7 @@ Als Ergebnis definiert RFC2553 die Struktur sockaddr_storage wie folgt:
Im Gegensatz dazu definiert der XNET-Entwurf die Struktur wie folgt:
-[source,bash]
+[source,shell]
....
struct sockaddr_storage {
u_char ss_len; /* address length */
@@ -490,7 +490,7 @@ Wenn man mehrere IPv6-Implementierungen betrachtet, wird man beide Definitionen
. Man benutzet -Dss_family=__ss_family um alle Vorkommen (einschließlich der Header-Files) zu __ss_family zu vereinheitlichen, oder
. Man benutzt niemals __ss_family. Man führe einen Typecast nach sockaddr * durch und verwendet sa_family wie folgt:
+
-[source,bash]
+[source,shell]
....
struct sockaddr_storage ss;
family = ((struct sockaddr *)&ss)->sa_family
@@ -524,7 +524,7 @@ Das FAITH-System benutzt mit Hilfe des Kernels den man:faithd[8] genannten TCP-R
Wenn beispielsweise der IPv6-Präfix 2001:0DB8:0200:ffff:: ist und das IPv6-Ziel für TCP-Verbindungen 2001:0DB8:0200:ffff::163.221.202.12 ist, dann wird die Verbindung an das IPv4-Ziel 163.221.202.12 weitergeleitet.
-[source,bash]
+[source,shell]
....
IPv4-Ziel-Knoten (163.221.202.12)
^
@@ -647,7 +647,7 @@ Beachte, dass dieses Verhalten per-node konfigurierbar ist und nicht per-SA (dra
Das Verhalten ist wie folgt zusammengefaßt (man beachte auch den Quelltext für weitere Details):
-[source,bash]
+[source,shell]
....
encapsulate decapsulate
--- ---
diff --git a/documentation/content/de/books/developers-handbook/kernelbuild/chapter.adoc b/documentation/content/de/books/developers-handbook/kernelbuild/chapter.adoc
index 1f80480a2b..c3c03f6047 100644
--- a/documentation/content/de/books/developers-handbook/kernelbuild/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/kernelbuild/chapter.adoc
@@ -50,21 +50,21 @@ Bis FreeBSD 4.X wurde dieser Weg zum Bau eines angepassten Kernels empfohlen. Si
====
. Erzeugen Sie den Kernel-Quellcode mit man:config[8]:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/config MYKERNEL
....
+
. Wechseln Sie in das Build-Verzeichnis. man:config[8] gibt den Namen dieses Verzeichnisses aus, wenn die Erzeugung des Kernel-Quellcodes im vorherigen Schritt erfolgreich abgeschlossen wurde.
+
-[source,bash]
+[source,shell]
....
# cd ../compile/MYKERNEL
....
+
. Kompilieren Sie den neuen Kernel:
+
-[source,bash]
+[source,shell]
....
# make depend
# make
@@ -72,7 +72,7 @@ Bis FreeBSD 4.X wurde dieser Weg zum Bau eines angepassten Kernels empfohlen. Si
+
. Installieren Sie den neuen Kernel:
+
-[source,bash]
+[source,shell]
....
# make install
....
diff --git a/documentation/content/de/books/developers-handbook/kerneldebug/chapter.adoc b/documentation/content/de/books/developers-handbook/kerneldebug/chapter.adoc
index e59118f16f..8e3fefbea8 100644
--- a/documentation/content/de/books/developers-handbook/kerneldebug/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/kerneldebug/chapter.adoc
@@ -64,7 +64,7 @@ Vergleichen Sie [.filename]#/etc/fstab# oder man:swapinfo[8] für eine Liste der
====
Stellen Sie sicher, dass das in man:rc.conf[5] festgelegte `dumpdir` vor einem Kernel-Absturz vorhanden ist.
-[source,bash]
+[source,shell]
....
# mkdir /var/crash
# chmod 700 /var/crash
@@ -85,7 +85,7 @@ In dem Fall, dass bereits eine Datei mit dem Namen [.filename]#vmcore.0# in [.fi
Falls Sie einen neuen Kernel testen, aber einen anderen starten müssen, um Ihr System wieder in Gang zu bringen, starten Sie es nur in den Singleuser-Modus, indem Sie das `-s`-Flag an der Boot-Eingabeaufforderung benutzen, und nehmen dann folgende Schritte vor:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -a -t ufs # make sure /var/crash is writable
@@ -108,7 +108,7 @@ Sobald ein Speicherauszug zur Verfügung steht, ist es recht einfach nützliche
Um in den Debugger zu gelangen und mit dem Informationserhalt aus dem Speicherauszug zu beginnen, sind zumindest folgende Schritte nötig:
-[source,bash]
+[source,shell]
....
# cd /usr/obj/usr/src/sys/KERNCONF
# kgdb kernel.debug /var/crash/vmcore.0
@@ -118,7 +118,7 @@ Sie können Fehler im Speicherauszug nach dem Absturz suchen, indem Sie die Kern
Dieser erste Speicherauszug ist aus einem 5.2-BETA-Kernel und der Absturz ist tief im Kernel begründet. Die Ausgabe unten wurde dahingehend bearbeitet, dass sie nun Zeilennummern auf der linken Seite einschließt. Diese erste Ablaufverfolgung (Trace) untersucht den Befehlszeiger (Instruction-Pointer) und beschafft eine Zurückverfolgung (Back-Trace). Die Adresse, die in Zeile 41 für den `list`-Befehl benutzt wird, ist der Befehlszeiger und kann in Zeile 17 gefunden werden. Die meisten Entwickler wollen zumindest dies zugesendet bekommen, falls Sie das Problem nicht selber untersuchen und beheben können. Falls Sie jedoch das Problem lösen, stellen Sie sicher, dass Ihr Patch seinen Weg in den Quellbaum mittels eines Fehlerberichts, den Mailinglisten oder ihres Privilegs, zu committen, findet!
-[source,bash]
+[source,shell]
....
1:# cd /usr/obj/usr/src/sys/KERNCONF
2:# kgdb kernel.debug /var/crash/vmcore.0
@@ -214,7 +214,7 @@ Dieser erste Speicherauszug ist aus einem 5.2-BETA-Kernel und der Absturz ist ti
Diese nächste Ablaufverfolgung ist ein älterer Speicherauszug aus FreeBSD 2-Zeiten, aber ist komplizierter und zeigt mehr der `gdb`-Funktionen. Lange Zeilen wurden gefaltet, um die Lesbarkeit zu verbessern, und die Zeilen wurden zur Verweisung nummeriert. Trotzdem ist es eine reale Fehlerverfolgung (Error-Trace), die während der Entwicklung des pcvt-Konsolentreibers entstanden ist.
-[source,bash]
+[source,shell]
....
1:Script started on Fri Dec 30 23:15:22 1994
2:# cd /sys/compile/URIAH
@@ -323,7 +323,7 @@ Falls Ihr System regelmäßig abstürzt und und Sie bald keinen freien Speicherp
Die Untersuchung eines Speicherauszugs nach einem Kernel-Absturz mit einem grafischen Debugger wie `ddd` ist auch möglich (Sie müssen den package:devel/ddd[]-Port installieren, um den `ddd`-Debugger benutzen zu können). Nehmen Sie die `-k` mit in die `ddd`-Kommandozeile auf, die Sie normalerweise benutzen würden. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# ddd --debugger kgdb kernel.debug /var/crash/vmcore.0
....
@@ -359,7 +359,7 @@ Sobald Ihr Kernel mit DDB startet, gibt es mehrere Wege, um in DDB zu gelangen.
Das zweite Szenario ist der Gang in den Debugger, sobald das System schon gestartet ist. Es gibt zwei einfache Wege dies zu erreichen. Falls Sie von der Eingabeaufforderung aus in den Debugger gelangen möchten, geben Sie einfach folgenden Befehl ab:
-[source,bash]
+[source,shell]
....
# sysctl debug.kdb.enter=1
....
@@ -368,7 +368,7 @@ Das zweite Szenario ist der Gang in den Debugger, sobald das System schon gestar
====
Um eine schnelle Panic zu erzwingen, geben Sie das folgende Kommando ein:
-[source,bash]
+[source,shell]
....
# sysctl debug.kdb.panic=1
....
@@ -390,7 +390,7 @@ der Kernel-Konfigurationsdatei hinzu und bauen/installieren Sie den Kernel neu.
Die DDB-Befehle ähneln grob einigen `gdb`-Befehlen. Das Erste, das Sie vermutlich tun müssen, ist einen Breakpoint zu setzen:
-[source,bash]
+[source,shell]
....
break function-name address
....
@@ -399,14 +399,14 @@ Zahlen werden standardmäßig hexadezimal angegeben, aber um sie von Symbolnamen
Um den Debugger zu verlassen und mit der Abarbeitung fortzufahren, geben Sie ein:
-[source,bash]
+[source,shell]
....
continue
....
Um eine Stack-Ablaufverfolgung zu erhalten, benutzen Sie:
-[source,bash]
+[source,shell]
....
trace
....
@@ -418,7 +418,7 @@ Beachten Sie, dass wenn Sie DDB mittels einer Schnelltaste betreten, der Kernel
Falls Sie einen Breakpoint entfernen möchten, benutzen Sie
-[source,bash]
+[source,shell]
....
del
del address-expression
@@ -426,28 +426,28 @@ Falls Sie einen Breakpoint entfernen möchten, benutzen Sie
Die erste Form wird direkt, nachdem ein Breakpoint anschlug, angenommen und entfernt den aktuellen Breakpoint. Die zweite kann jeden Breakpoint löschen, aber Sie müssen die genaue Adresse angeben; diese kann bezogen werden durch:
-[source,bash]
+[source,shell]
....
show b
....
oder:
-[source,bash]
+[source,shell]
....
show break
....
Um den Kernel in Einzelschritten auszuführen, probieren Sie:
-[source,bash]
+[source,shell]
....
s
....
Dies springt in Funktionen, aber Sie können DDB veranlassen, diese schrittweise zu verfolgen, bis die passende Rückkehranweisung (Return-Statement) erreicht ist. Nutzen Sie hierzu:
-[source,bash]
+[source,shell]
....
n
....
@@ -459,7 +459,7 @@ Dies ist nicht das gleiche wie die ``next``-Anweisung von ``gdb``; es ist wie ``
Um Daten aus dem Speicher zu untersuchen, benutzen Sie (zum Beispiel):
-[source,bash]
+[source,shell]
....
x/wx 0xf0133fe0,40
x/hd db_symtab_space
@@ -469,14 +469,14 @@ x/s stringbuf
für Word/Halfword/Byte-Zugriff und Hexadezimal/Dezimal/Character/String-Ausgabe. Die Zahl nach dem Komma ist der Objektzähler. Um die nächsten 0x10 Objekte anzuzeigen benutzen Sie einfach:
-[source,bash]
+[source,shell]
....
x ,10
....
Gleichermaßen benutzen Sie
-[source,bash]
+[source,shell]
....
x/ia foofunc,10
....
@@ -485,7 +485,7 @@ um die ersten 0x10 Anweisungen aus `foofunc` zu zerlegen (disassemble) und Sie z
Um Speicher zu verändern benutzen Sie den Schreibbefehl:
-[source,bash]
+[source,shell]
....
w/b termbuf 0xa 0xb 0
w/w 0xf0010030 0 0
@@ -495,28 +495,28 @@ Die Befehlsoption (`b`/`h`/`w`) legt die Größe der Daten fest, die geschrieben
Falls Sie die aktuellen Register wissen möchten, benutzen Sie:
-[source,bash]
+[source,shell]
....
show reg
....
Alternativ können Sie den Inhalt eines einzelnen Registers ausgeben mit z.B.
-[source,bash]
+[source,shell]
....
p $eax
....
und ihn bearbeiten mit:
-[source,bash]
+[source,shell]
....
set $eax new-value
....
Sollten Sie irgendeine Kernel-Funktion aus DDB heraus aufrufen wollen, geben Sie einfach ein:
-[source,bash]
+[source,shell]
....
call func(arg1, arg2, ...)
....
@@ -525,28 +525,28 @@ Der Rückgabewert wird ausgegeben.
Für eine Zusammenfassung aller laufenden Prozesse im Stil von man:ps[1] benutzen Sie:
-[source,bash]
+[source,shell]
....
ps
....
Nun haben Sie herausgefunden, warum Ihr Kernel fehlschlägt, und möchten neu starten. Denken Sie daran, dass, abhängig von der Schwere vorhergehender Störungen, nicht alle Teile des Kernels wie gewohnt funktionieren könnten. Führen Sie eine der folgenden Aktionen durch, um Ihr System herunterzufahren und neu zu starten:
-[source,bash]
+[source,shell]
....
panic
....
Dies wird Ihren Kernel dazu veranlassen abzustürzen, einen Speicherauszug abzulegen und neu zu starten, sodass Sie den Kernspeicherauszug später auf höherer Ebene mit `gdb` auswerten können. Diesem Befehl muss normalerweise eine weitere `continue`-Anweisung folgen.
-[source,bash]
+[source,shell]
....
call boot(0)
....
Dürfte ein guter Weg sein, um das laufende System sauber herunterzufahren, alle Festplatten mittels `sync()` zu schreiben und schließlich, in manchen Fällen, neu zu starten. Solange die Festplatten- und Dateisystemschnittstellen des Kernels nicht beschädigt sind, könnte dies ein guter Weg für ein beinahe sauberes Abschalten sein.
-[source,bash]
+[source,shell]
....
call cpu_reset()
....
@@ -555,7 +555,7 @@ Dies ist der letzte Ausweg aus der Katastrophe und kommt beinahe dem Drücken de
Falls Sie eine kurze Zusammenfassung aller Befehle benötigen, geben Sie einfach ein:
-[source,bash]
+[source,shell]
....
help
....
@@ -571,7 +571,7 @@ GDB unterstützt _die Fehlersuche von einem entfernten System aus_ bereits einig
Sie sollten den Kernel im Zweifelsfall mit `config -g` konfigurieren, `DDB` in die Konfiguration aufnehmen und den Kernel, wie sonst auch, kompilieren. Dies ergibt, aufgrund der zusätzlichen Informationen zur Fehlersuche, eine umfangreiche Binärdatei. Kopieren Sie diesen Kernel auf das Zielsystem, entfernen Sie die Symbole zur Fehlersuche mit `strip -x` und starten Sie ihn mit der `-d`-Boot-Option. Stellen Sie die serielle Verbindung zwischen dem Zielsystem, welches "flags 80" für dessen sio-Gerät gesetzt hat, und dem Hostsystem, welches die Fehlersuche übernimmt, her. Nun wechseln Sie auf dem Hostsystem in das Bauverzeichnis des Ziel-Kernels und starten `gdb`:
-[source,bash]
+[source,shell]
....
% kgdb kernel
GDB is free software and you are welcome to distribute copies of it
@@ -584,14 +584,14 @@ Copyright 1996 Free Software Foundation, Inc...
Stellen Sie die entfernte Sitzung zur Fehlersuche ein mit (angenommen, der erste serielle Port ist in Verwendung):
-[source,bash]
+[source,shell]
....
(kgdb) target remote /dev/cuaa0
....
Jetzt geben Sie auf dem Zielsystem, welches noch vor Beginn der Gerätesuche in DDB gelangt ist, ein:
-[source,bash]
+[source,shell]
....
Debugger("Boot flags requested debugger")
Stopped at Debugger+0x35: movb $0, edata+0x51bc
@@ -600,14 +600,14 @@ db> gdb
DDB antwortet dann mit:
-[source,bash]
+[source,shell]
....
Next trap will enter GDB remote protocol mode
....
Jedesmal wenn Sie `gdb` eingeben, wird zwischen dem lokalen DDB und entfernten GDB umgeschaltet. Um einen nächsten Trap sofort zu erzwingen, geben Sie einfach `s` (step) ein. Ihr GDB auf dem Hostsystem erhält nun die Kontrolle über den Ziel-Kernel:
-[source,bash]
+[source,shell]
....
Remote debugging using /dev/cuaa0
Debugger (msg=0xf01b0383 "Boot flags requested debugger")
diff --git a/documentation/content/de/books/developers-handbook/policies/chapter.adoc b/documentation/content/de/books/developers-handbook/policies/chapter.adoc
index c013720887..99f8996f67 100644
--- a/documentation/content/de/books/developers-handbook/policies/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/policies/chapter.adoc
@@ -144,7 +144,7 @@ ru@FreeBSD.org - 20 October 2005
Eine weitere Möglichkeit ist es, eine Liste von Dateien, die nicht enthalten sein sollen zu pflegen, was besonders dann sehr hilfreich sein kann, wenn die Liste ziemlich gross oder kompliziert ist bzw. Imports sehr häufig stattfinden. Durch erstellen einer Datei namens [.filename]#FREEBSD-Xlist# im gleichen Verzeichnis, in welches das Herstellerverzeichnis importiert werden soll, die eine Liste von auszuschliessenden Dateinamen-Mustern pro Zeile enthält, können zukünftige Imports folgendermassen durchgeführt werden:
-[source,bash]
+[source,shell]
....
% tar -X FREEBSD-Xlist -xzf vendor-source.tgz
....
@@ -181,7 +181,7 @@ Wenn dies Ihr erster Import nach dem Wechsel zu SVN ist, sollen Sie den Herstell
+
Während der Konvertierung von CVS zu SVN wurden Herstellerzweige mit der gleichen Struktur wie der Hauptzweig importiert. Beispielsweise wurden die foo Herstellerquellen in [.filename]#vendor/foo/dist/contrib/foo# abgelegt, jedoch ist dies unpraktisch und zwecklos. Was wir wirklich wollen, ist dass die Herstellerquellen direkt in [.filename]#vendor/foo/dist# liegen, beispielsweise so:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/dist/contrib/foo
% svn move $(svn list) ../..
@@ -200,7 +200,7 @@ Sie werden wahrscheinlich die Tags genauso verflachen wollen. Die Prozedur dafü
+
Prüfen Sie den [.filename]#dist#-Baum und führen Sie alle nötigen Aufräumarbeiten durch, die Sie für sinnvoll erachten. Sie werden möglicherweise die Erweiterung von Schlüsselwörtern deaktivieren wollen, da dies auf unmodifizierten Quellen keinen Sinn ergibt. In machen Fällen kann dies sogar schädlich sein.
+
-[source,bash]
+[source,shell]
....
% svn propdel svn:keywords -R .
% svn commit
@@ -208,7 +208,7 @@ Prüfen Sie den [.filename]#dist#-Baum und führen Sie alle nötigen Aufräumarb
+
Bootstrappen der `svn:mergeinfo` auf dem Zielverzeichnis (des Hauptzweiges) auf die Revision die mit der letzten Änderung, die im Herstellerzweig vor dem Import der neuen Quellen durchgeführt wurde, korrespondiert, wird ebenso benötigt:
+
-[source,bash]
+[source,shell]
....
% cd head/contrib/foo
% svn merge --record-only svn_base/vendor/foo/dist@12345678 .
@@ -223,7 +223,7 @@ Bereiten Sie einen kompletten, sauberen Baum mit Herstellerquellen vor. Mit SVN
+
Beachten Sie, dass Sie alle Dateien, die seit dem letzten Herstellerimport hinzugefügt wurden, auch einbeziehen und diejenigen, welche entfernt wurden, auch löschen müssen. Um dies zu bewerkstelligen, sollten Sie sortierte Listen der Bestandteile des Herstellerbaums und von den Quellen, Sie die vorhaben zu importieren, vorbereiten:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/dist
% svn list -R | grep -v '/$' | sort > ../old
@@ -233,21 +233,21 @@ Beachten Sie, dass Sie alle Dateien, die seit dem letzten Herstellerimport hinzu
+
Mit diesen beiden Dateien, wird Ihnen das folgende Kommando alle Dateien auflisten, die entfernt wurden (nur die Dateien in [.filename]#old#):
+
-[source,bash]
+[source,shell]
....
% comm -23 ../old ../new
....
+
Der folgende Befehl wird die hinzugefügten Dateien auflisten (nur diejenigen Dateien in [.filename]#new#):
+
-[source,bash]
+[source,shell]
....
% comm -13 ../old ../new
....
+
Wir führen dies nun zusammen:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/foo-9.9
% tar cf - . | tar xf - -C ../dist
@@ -276,7 +276,7 @@ Sie sind bereit, zu committen, jedoch sollten Sie zuerst die Ausgabe von `svn st
+
Sobald Sie den die neue Release-Version des Herstellers committed haben, sollten Sie Ihn für zukünftige Referenzen taggen. Die beste und schnellste Methode ist, dies direkt im Repository zu tun:
+
-[source,bash]
+[source,shell]
....
% svn copy svn_base/vendor/foo/dist svn_base/vendor/foo/9.9
....
@@ -292,7 +292,7 @@ Wenn Sie lieber die Kopie in der ausgecheckten Kopie durchführen wollen, verges
+
Nachdem Sie Ihren Import vorbereitet haben, wird es Zeit zu mergen. Die Option `--accept=postpone` weist SVN an, noch keine merge-Konflikte aufzulösen, weil wir uns um diese manuell kümmern werden:
+
-[source,bash]
+[source,shell]
....
% cd head/contrib/foo
% svn update
@@ -301,7 +301,7 @@ Nachdem Sie Ihren Import vorbereitet haben, wird es Zeit zu mergen. Die Option `
+
Lösen Sie die Konflikte und stellen Sie sicher, dass alle Dateien, die im Herstellerzweig hinzugefügt oder entfernt wurden, auch sauber im Hauptzweig hinzugefügt bzw. gelöscht wurden. Es ist immer ratsam, diese Unterschiede gegen den Herstellerbaum zu prüfen:
+
-[source,bash]
+[source,shell]
....
% svn diff --no-diff-deleted --old=svn_base/vendor/foo/dist --new=.
....
diff --git a/documentation/content/de/books/developers-handbook/tools/chapter.adoc b/documentation/content/de/books/developers-handbook/tools/chapter.adoc
index 9175b8f6c2..599080b478 100644
--- a/documentation/content/de/books/developers-handbook/tools/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/tools/chapter.adoc
@@ -151,14 +151,14 @@ Das Wort _kompilieren_ wird häufig für die Schritte 1 bis 4 verwendet-die ande
Glücklicherweise werden alle diese Details vor Ihnen verborgen, da `cc` ein Frontend ist, welches sich um die Ausführung all dieser Programme mit den richtigen Argumenten für Sie kümmert; einfaches eingeben von
-[source,bash]
+[source,shell]
....
% cc foobar.c
....
führt zur Übersetzung von [.filename]#foobar.c# durch alle bereits erwähnten Schritte. Wenn Sie mehr als eine Datei übersetzen wollen müssen Sie etwas wie folgt eingeben
-[source,bash]
+[source,shell]
....
% cc foo.c bar.c
....
@@ -170,7 +170,7 @@ Es gibt haufenweise Optionen für `cc`, die alle in der zugehörigen Manualpage
`-o _filename_`::
Die Name der Ausgabedatei. Wenn Sie diese Option nicht verwenden erstellt `cc` eine Datei mit dem Namen [.filename]#a.out#.
+
-[source,bash]
+[source,shell]
....
% cc foobar.c executable is a.out
% cc -o foobar foobar.c executable is foobar
@@ -179,7 +179,7 @@ Die Name der Ausgabedatei. Wenn Sie diese Option nicht verwenden erstellt `cc` e
`-c`::
Dies kompiliert die Datei nur, verlinkt sie jedoch nicht. Nützlich für Spielereien, um die Syntax auf Korrektheit zu überprüfen, oder falls Sie ein [.filename]#Makefile# verwenden.
+
-[source,bash]
+[source,shell]
....
% cc -c foobar.c
....
@@ -189,7 +189,7 @@ Dieser Befehl erzeugt eine _Objektdatei_ (nicht ausführbar) mit den Namen [.fil
`-g`::
Diese Option erzeugt die Debug-Version einer ausführbaren Datei. Dabei fügt der Compiler zusätzliche Informationen darüber, welcher Funktionsaufruf zu welcher Zeile im Quelltext gehört, der ausführbaren Datei hinzu. Ein Debugger kann Ihnen mit Hilfe dieser Information den zugehörigen Quelltext anzeigen, während Sie den Programmverlauf schrittweise verfolgen, was _sehr_ hilfreich sein kann; der Nachteil dabei ist, daß durch die zusätzlichen Informationen das Programm viel größer wird. Normalerweise verwendet man die Option `-g` während der Entwicklung eines Programms, und für die "Release-Version", wenn man von der Korrektheit des Programms überzeugt ist, kompiliert man das Programm dann ohne diese Option.
+
-[source,bash]
+[source,shell]
....
% cc -g foobar.c
....
@@ -201,7 +201,7 @@ Diese Option erzeugt eine optimierte Version der ausführbaren Datei. Der Compil
+
Optimierungen werden normalerweise nur beim Kompilieren von Release-Versionen aktiviert.
+
-[source,bash]
+[source,shell]
....
% cc -O -o foobar foobar.c
....
@@ -223,7 +223,7 @@ Ohne diese Flags wird Ihnen der `cc` die Verwendung eigener Erweiterungen des St
Im Allgemeinen sollten Sie versuchen, Ihren Code so portabel wie möglich zu schreiben, da Sie ansonsten eventuell das gesamte Programm noch einmal neu schreiben müssen, falls dieser in einer anderen Umgebung laufen soll-und wer weiß schon was er in ein paar Jahren verwenden wird?
-[source,bash]
+[source,shell]
....
% cc -Wall -ansi -pedantic -o foobar foobar.c
....
@@ -237,7 +237,7 @@ Das am häufigsten auftretende Beispiel dieser Option ist die Übersetzung eines
+
Angenommen eine Bibliothek heißt [.filename]#libirgendwas.a#, dann müssen Sie dem `cc` als Argument `-l _irgendwas_` übergeben. Zum Beispiel heißt die Mathematik-Bibliothek [.filename]#libm.a#, und daher müssen Sie dem `cc` als Argument `-lm` übergeben. Ein typisches "Manko" der Mathematik-Bibliothek ist, daß diese immer die letzte Bibliothek auf der Kommandozeile sein muß.
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -246,7 +246,7 @@ Durch diesen Befehl werden die Funktionen aus der Mathematik-Bibliothek in [.fil
+
Wenn Sie {c-plus-plus-command} -Code kompilieren wollen, müssen Sie {lg-plus-plus}, bzw. {lstdc-plus-plus} falls Sie FreeBSD 2.2 oder neuer verwenden, zu Ihrer Kommandozeile hinzufügen, um Ihr Programm gegen die Funktionen der C++ Bibliothek zu linken. Alternativ können Sie anstatt cc auch {c-plus-plus-command} aufrufen, welcher dies für Sie erledigt. C++ kann unter FreeBSD auch als {gcc-plus-plus} aufgerufen werden.
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.cc -lg++ Bei FreeBSD 2.1.6 oder älter
% cc -o foobar foobar.cc -lstdc++ Bei FreeBSD 2.2 und neuer
@@ -261,7 +261,7 @@ Beide Varianten erzeugen eine ausführbare [.filename]##foobar## aus der {c-plus
Wenn Sie mathematische Funktionen wie `sin()` verwenden wollen, müssen Sie den `cc` anweisen, die Mathematik-Bibliothek wie folgt zu verlinken:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -285,7 +285,7 @@ int main() {
Nach erneutem Compilieren sollte das Folgende bei der Ausführung ausgegeben werden:
-[source,bash]
+[source,shell]
....
% ./a.out
2.1 ^ 6 = 85.766121
@@ -297,7 +297,7 @@ Wenn Sie irgendwelche mathematischen Funktionen verwenden sollten Sie _immer_ di
Denken Sie daran, daß der `cc` die ausführbare Datei [.filename]#a.out# nennt, wenn Sie nicht explizit einen Namen angeben. Verwenden Sie in solch einem Fall die Option `-o _filename_`:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c
....
@@ -306,7 +306,7 @@ Denken Sie daran, daß der `cc` die ausführbare Datei [.filename]#a.out# nennt,
Im Gegensatz zu MS-DOS(R) sucht UNIX(R) nicht im aktuellen Verzeichnis nach einem ausführbaren Programm, das Sie versuchen auszuführen, solange Sie dies nicht explizit mit angeben. Sie können entweder `./foobar` eingeben, was soviel bedeutet wie "führe eine Datei namens [.filename]#foobar# im aktuellen Verzeichnis aus", oder Sie können Ihre Umgebungsvariable `PATH` so erweitern, daß sie ähnlich wie folgt aussieht
-[source,bash]
+[source,shell]
....
bin:/usr/bin:/usr/local/bin:.
....
@@ -317,7 +317,7 @@ Der Punkt am Ende bedeutet "siehe im aktuellen Verzeichnis nach, wenn es in kein
Bei den meisten UNIX(R)-Systeme existiert bereits ein Programm mit dem Namen `test` im Verzeichnis [.filename]#/usr/bin#, und die Shell nimmt dieses, bevor sie im aktuellen Verzeichnis nachsieht. Sie können entweder den folgenden Befehl eingeben:
-[source,bash]
+[source,shell]
....
% ./test
....
@@ -399,14 +399,14 @@ Nein, glücklicherweise nicht (es sei denn Sie haben wirklich ein Hardwareproble
Ja, nehmen sie einfach eine andere Konsole oder XTerm und führen Sie
-[source,bash]
+[source,shell]
....
% ps
....
aus, um die Prozess-ID Ihres Programms herauszufinden. Führen Sie anschließend
-[source,bash]
+[source,shell]
....
% kill -ABRT pid
....
@@ -426,7 +426,7 @@ Wenn Sie einen core dump von außerhalb Ihres Programms erzeugen wollen, ohne da
Wenn Sie an einem einfachen Programm mit nur einer oder zwei Quelltextdateien arbeiten, ist die Eingabe von
-[source,bash]
+[source,shell]
....
% cc file1.c file2.c
....
@@ -435,7 +435,7 @@ zwar nicht aufwendig, wird aber mit zunehmender Anzahl der Quelltextdateien sehr
Eine Möglichkeit dies zu umgehen besteht in der Verwendung von Objektdateien, wobei man nur die Quelltextdateien neu kompiliert, die verändert wurden. So könnten wir etwa folgendes erhalten:
-[source,bash]
+[source,shell]
....
% cc file1.o file2.o … file37.c …
....
@@ -483,7 +483,7 @@ install:
Wir können make sagen welches Ziel wir erzeugt haben wollen, indem wir etwas wie folgt eingeben:
-[source,bash]
+[source,shell]
....
% make target
....
@@ -573,7 +573,7 @@ Falls Sie einen Blick in die makefiles des Systems werfen möchten, finden Sie d
Die Version von make, die in FreeBSD enthalten ist, ist Berkeley make; es gibt eine Anleitung dazu in [.filename]#/usr/shared/doc/psd/12.make#. Um sich diese anzusehen, müssen Sie
-[source,bash]
+[source,shell]
....
% zmore paper.ascii.gz
....
@@ -598,14 +598,14 @@ in die Datei. Nachdem Sie dies getan haben können Sie `info` eingeben und dann
Der Debugger bei FreeBSD heißt `gdb` (GNU debugger). Sie können Ihn durch die Eingabe von
-[source,bash]
+[source,shell]
....
% gdb progname
....
starten, wobei viele Leute ihn vorzugsweise innerhalb von Emacs aufrufen. Sie erreichen dies durch die Eingabe von:
-[source,bash]
+[source,shell]
....
M-x gdb RET progname RET
....
@@ -622,7 +622,7 @@ Dieser Abschnitt ist als Einführung in die Verwendung des `gdb` gedacht und bei
Sie müssen das Programm mit der Option `-g` kompiliert haben um den `gdb` effektiv einsetzen zu können. Es geht auch ohne diese Option, allerdings werden Sie dann nur den Namen der Funktion sehen, in der Sie sich gerade befinden, anstatt direkt den zugehörigen Quelltext. Falls Sie eine Meldung wie die folgende sehen:
-[source,bash]
+[source,shell]
....
… (no debugging symbols found) …
....
@@ -659,7 +659,7 @@ Dieses Programm setzt i auf den Wert `5` und übergibt dies einer Funktion `bazz
Wenn wir das Programm kompilieren und ausführen erhalten wir
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -669,7 +669,7 @@ anint = 4231
Das ist nicht was wir erwartet hatten! Es ist Zeit, daß wir sehen was hier passiert!
-[source,bash]
+[source,shell]
....
% gdb temp
GDB is free software and you are welcome to distribute copies of it
@@ -691,7 +691,7 @@ bazz (anint=4231) at temp.c:17 gdb displays stack frame
Halt mal! Wieso hat denn anint den Wert `4231`? Haben wir dieser Variablen nicht in `main()` den Wert `5` zugewiesen? Gehen wir mal zurück zu `main()` und schauen dort nach.
-[source,bash]
+[source,shell]
....
(gdb) up Move up call stack
#1 0x1625 in main () at temp.c:11 gdb displays stack frame
@@ -725,7 +725,7 @@ Eine Kernspeicherdatei ist im Prinzip eine Datei, die den vollständigen Zustand
Um eine Kernspeicherdatei zu untersuchen müssen Sie den `gdb` wie gewohnt starten. An Stelle von `break` oder `run` müssen Sie das Folgende eingeben
-[source,bash]
+[source,shell]
....
(gdb) core progname.core
....
@@ -734,7 +734,7 @@ Wenn Sie sich nicht in demselben Verzeichnis befinden wie die Kernspeicherdatei
Sie sollten dann etwas wie folgt sehen:
-[source,bash]
+[source,shell]
....
% gdb a.out
GDB is free software and you are welcome to distribute copies of it
@@ -753,7 +753,7 @@ In diesem Fall hieß das Programm [.filename]#a.out#, weshalb die Kernspeicherda
Manchmal ist es ganz nützlich zu sehen, wie eine Funktion aufgerufen wurde, da bei komplexen Programmen das eigentliche Problem schon sehr viel weiter oben auf dem Aufruf-Stack aufgetreten sein könnte. Der Befehl `bt` veranlaßt den `gdb` dazu, einen Backtrace des Aufruf-Stacks auszugeben:
-[source,bash]
+[source,shell]
....
(gdb) bt
#0 0x164a in bazz (anint=0x5) at temp.c:17
@@ -770,7 +770,7 @@ Eine der tollsten Features des `gdb` ist die Möglichkeit, damit bereits laufend
Was Sie an solch einer Stelle machen ist, Sie starten einen weiteren `gdb`, ermitteln mit Hilfe von `ps` die Prozess-ID des Kindprozesses, und geben
-[source,bash]
+[source,shell]
....
(gdb) attach pid
....
@@ -779,7 +779,7 @@ im `gdb` ein, und können dann wie üblich mit der Fehlersuche fortfahren.
"Das ist zwar alles sehr schön," werden Sie jetzt vielleicht denken, "aber in der Zeit, in der ich diese Schritte durchführe, ist der Kindprozess schon längst über alle Berge". Fürchtet euch nicht, edler Leser, denn Ihr müßt wie folgt vorgehen (freundlicherweise zur Verfügung gestellt von den Info-Seite des `gdb`):
-[source,bash]
+[source,shell]
....
if ((pid = fork()) < 0) /* _Always_ check this */
@@ -858,7 +858,7 @@ Bedauerlicherweise gibt es hier viel zu viel, um es im Detail zu erklären; es g
* Emacs hat bereits eine vordefinierte Funktion mit dem Namen `next-error`. Diese erlaubt es einem, in einem Fenster mit der Kompilierungsausgabe mittels `M-n` von einem zum nächsten Kompilierungsfehler zu springen; wir definieren eine komplementäre Funktion `previous-error`, die es uns erlaubt, mittels `M-p` von einem zum vorherigen Kompilierungsfehler zu springen. Das schönste Feature von allen ist, daß mittels `C-c C-c` die Quelltextdatei, in der der Fehler aufgetreten ist, geöffnet und die betreffende Zeile direkt angesprungen wird.
* Wir aktivieren die Möglichkeit von Emacs als Server zu agieren, so daß wenn Sie etwas außerhalb von Emacs machen und eine Datei editieren möchten, Sie einfach das folgende eingeben können
+
-[source,bash]
+[source,shell]
....
% emacsclient filename
....
@@ -1163,7 +1163,7 @@ Das ist jetzt alles sehr schön wenn Sie ausschließlich in einer der Sprachen p
Als erstes muß festgestellt werden, ob whizbang mit irgendwelchen Dateien daherkommt, die Emacs etwas über die Sprache sagen. Diese enden üblicherweise auf [.filename]#.el#, der Kurzform für "Emacs Lisp". Falls whizbang zum Beispiel ein FreeBSD Port ist, könnten wir diese Dateien mittels
-[source,bash]
+[source,shell]
....
% find /usr/ports/lang/whizbang -name "*.el" -print
....
@@ -1172,14 +1172,14 @@ finden und durch Kopieren in das Emacs-seitige Lisp-Verzeichnis installieren. Un
Wenn zum Beispiel die Ausgabe des find-Befehls wie folgt war
-[source,bash]
+[source,shell]
....
/usr/ports/lang/whizbang/work/misc/whizbang.el
....
könnten wir das folgende tun
-[source,bash]
+[source,shell]
....
# cp /usr/ports/lang/whizbang/work/misc/whizbang.el /usr/local/shared/emacs/site-lisp
....
diff --git a/documentation/content/de/books/developers-handbook/x86/chapter.adoc b/documentation/content/de/books/developers-handbook/x86/chapter.adoc
index 99e318beaa..0f4fef2cb8 100644
--- a/documentation/content/de/books/developers-handbook/x86/chapter.adoc
+++ b/documentation/content/de/books/developers-handbook/x86/chapter.adoc
@@ -136,7 +136,7 @@ Diese Konvention hat einen großen Nachteil gegenüber der von UNIX(R), was die
Wenn Sie sich für die Linux-Konvention entscheiden, müssen Sie es das System wissen lassen. Nachdem ihr Programm übersetzt und gebunden wurde, müssen Sie die ausführbare Datei kennzeichnen:
-[source,bash]
+[source,shell]
....
%
brandelf -t Linux
@@ -507,7 +507,7 @@ Geben Sie den Code (außer den Zeilennummern) in einen Editor ein und speichern
Wenn Sie nasm noch nicht installiert haben geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
% su
Password:your root password
@@ -528,7 +528,7 @@ Wenn es sich bei Ihrem System nicht um FreeBSD handelt, müssen Sie nasm von des
Nun können Sie den Code assemblieren, binden und ausführen:
-[source,bash]
+[source,shell]
....
% nasm -f elf hello.asm
% ld -s -o hello hello.o
@@ -606,7 +606,7 @@ Wenn die gesamte Eingabe verarbeitet ist, bitten wie das System unser Programm z
Fahren Sie fort und speichern Sie den Code in eine Datei namens [.filename]#hex.asm#. Geben Sie danach folgendes ein (`^D` bedeutet, dass Sie die Steuerungstaste drücken und dann `D` eingeben, während Sie Steuerung gedrückt halten):
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -681,7 +681,7 @@ Das bedeutet, dass wir `CL` nur einmal setzen müssen. Dafür haben wir ein neue
Nachdem Sie [.filename]#hex.asm# entsprechend der Neuerungen geändert haben, geben Sie Folgendes ein:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -809,7 +809,7 @@ Wir verwenden `EDI` und `ESI` als Zeiger auf das nächste zu lesende oder schrei
Lassen Sie uns sehen, wie es funktioniert:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -925,7 +925,7 @@ write:
Lassen Sie uns jetzt einen Blick darauf werfen, wie es funktioniert.
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -1464,7 +1464,7 @@ Dieser Code erzeugt eine 1.396-Byte große Binärdatei. Das meiste davon sind Da
Assemblieren Sie es wie immer:
-[source,bash]
+[source,shell]
....
% nasm -f elf webvars.asm
% ld -s -o webvars webvars.o
@@ -1485,7 +1485,7 @@ Eines der ersten Programme die ich für UNIX(R) schrieb war link:ftp://ftp.int80
Ich habe tuc sehr oft benutzt, aber nur von irgendeinem anderen OS nach UNIX(R) zu konvertieren, niemals anders herum. Ich habe mir immer gewünscht das die Datei einfach überschrieben wird anstatt das ich die Ausgabe in eine andere Datei senden muss. Meistens, habe ich diesen Befehl verwendet:
-[source,bash]
+[source,shell]
....
% tuc myfile tempfile
% mv tempfile myfile
@@ -1493,7 +1493,7 @@ Ich habe tuc sehr oft benutzt, aber nur von irgendeinem anderen OS nach UNIX(R)
Es wäre schö ein ftuc zu haben, also, _fast tuc_, und es so zu benutzen:
-[source,bash]
+[source,shell]
....
% ftuc myfile
....
@@ -2052,7 +2052,7 @@ Diesmal entschied ich mich dazu, etwas mehr Arbeit zu investieren, als man norma
Hier ist ein Beispiel für seine Nutzung:
-[source,bash]
+[source,shell]
....
Usage: csv [-t<delim>] [-c<comma>] [-p] [-o <outfile>] [-i <infile>]
....
@@ -2071,7 +2071,7 @@ Ich habe sichergestellt, daß sowohl [parameter]#-i filename# und [parameter]#-i
Um das elfte Feld jeden Datensatzes zu erhalten kann ich nun folgendes eingeben:
-[source,bash]
+[source,shell]
....
% csv '-t;' data.csv | awk '-F;' '{print $11}'
....
@@ -2576,7 +2576,7 @@ Das pinhole-Programm dagegen kann nicht nur mit einzelnen Zeichen arbeiten, sond
Wenn wir z.B. möchten, daß unser Programm den Lochblendendurchmesser (und weitere Werte, die wir später noch diskutieren werden) für die Brennweiten [constant]#100 mm#, [constant]#150 mm# und [constant]#210 mm# berechnet, wollen wir etwa folgendes eingeben:
-[source,bash]
+[source,shell]
....
100, 150, 210
....
@@ -2591,7 +2591,7 @@ Ich persönlich mag es einfach. Entweder etwas ist eine Zahl, dann wird es verar
Zusätzlich erlaubt es mir, die Monotonie des Tippens zu durchbrechen, und eine Anfrage anstelle einer simplen Zahl zu stellen:
-[source,bash]
+[source,shell]
....
Was ist der beste Lochblendendurchmesser
bei einer Brennweite von 150?
@@ -2599,7 +2599,7 @@ Zusätzlich erlaubt es mir, die Monotonie des Tippens zu durchbrechen, und eine
Es gibt keinen Grund dafür, die Ausgabe mehrerer Fehlermeldungen aufzuteilen:
-[source,bash]
+[source,shell]
....
Syntax error: Was
Syntax error: ist
@@ -2690,7 +2690,7 @@ Es macht also wohl Sinn, jede Zeile mit einer durch den Benutzer eingegebenen Br
Halt! Nicht, wie der Benutzer die Daten eingegeben hat. Was passiert, wenn der Benutzer etwas wie folgt eingibt:
-[source,bash]
+[source,shell]
....
00000000150
....
@@ -2703,7 +2703,7 @@ Aber...
Was ist, wenn der Benutzer etwas wie folgt eingibt:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423
....
@@ -2720,7 +2720,7 @@ Was werden wir tun?
Wir werden ihn ohrfeigen, gewissermaßen:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423 ??? ??? ??? ??? ???
....
@@ -2745,7 +2745,7 @@ Es bleibt immer noch eine Möglichkeit unberücksichtigt: Wenn der Benutzer eine
Wir können solch einen Fall immer anhand des Zählerstandes feststellen, welcher dann immer bei [constant]#0# bleibt. In diesem Fall müssen wir einfach eine [constant]#0# an die Ausgabe senden, und anschließend dem Benutzer erneut eine "Ohrfeige" verpassen:
-[source,bash]
+[source,shell]
....
0 ??? ??? ??? ??? ???
....
@@ -3672,7 +3672,7 @@ Angenommen, wir wollten eine Lochkamera für einen 4x5 Zoll Film bauen. Die stan
Unsere Sitzung könnte wie folgt aussehen:
-[source,bash]
+[source,shell]
....
% pinhole
@@ -3742,7 +3742,7 @@ Da ein 120er Film ein Film mittlerer Größe ist, könnten wir die Datei medium
Wir können die Datei ausführbar machen und dann aufrufen, als wäre es ein Programm:
-[source,bash]
+[source,shell]
....
% chmod 755 medium
% ./medium
@@ -3750,14 +3750,14 @@ Wir können die Datei ausführbar machen und dann aufrufen, als wäre es ein Pro
UNIX(R) wird den letzten Befehl wie folgt interpretieren:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium
....
Es wird den Befehl ausführen und folgendes ausgeben:
-[source,bash]
+[source,shell]
....
80 358 224 256 1562 11
30 219 137 128 586 9
@@ -3772,21 +3772,21 @@ Es wird den Befehl ausführen und folgendes ausgeben:
Lassen Sie uns nun das folgende eingeben:
-[source,bash]
+[source,shell]
....
% ./medium -c
....
UNIX(R) wird dieses wie folgt behandeln:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium -c
....
Dadurch erhält das Programm zwei widersprüchliche Optionen: [parameter]#-b# und [parameter]#-c# (Verwende Benders Konstante und verwende Connors Konstante). Wir haben unser Programm so geschrieben, daß später eingelesene Optionen die vorheringen überschreiben-unser Programm wird also Connors Konstante für die Berechnungen verwenden:
-[source,bash]
+[source,shell]
....
80 331 242 256 1826 11
30 203 148 128 685 9
@@ -3801,7 +3801,7 @@ Dadurch erhält das Programm zwei widersprüchliche Optionen: [parameter]#-b# un
Wir entscheiden uns am Ende doch für Benders Konstante. Wir wollen die Ergebnisse im CSV-Format in einer Datei speichern:
-[source,bash]
+[source,shell]
....
% ./medium -b -e > bender
% cat bender
@@ -3845,7 +3845,7 @@ Es gibt einen wichtigen Unterschied in der Design-Philosophie zwischen MS-DOS(R)
Dies ist NIEMALS garantiert unter UNIX(R). Es ist sehr verbreitet für ein UNIX(R), daß der Nutzer seine Aus- und Eingaben kanalisiert und umleitet:
-[source,bash]
+[source,shell]
....
% program1 | program2 | program3 > file1
....
diff --git a/documentation/content/de/books/faq/_index.adoc b/documentation/content/de/books/faq/_index.adoc
index d5317ce836..3898d3b3df 100644
--- a/documentation/content/de/books/faq/_index.adoc
+++ b/documentation/content/de/books/faq/_index.adoc
@@ -340,7 +340,7 @@ Nachdem Sie das Format und das Kompressionsverfahren ausgewählt haben, müssen
Zum Beispiel finden Sie die mit man:bzip2[1] gepackte `split-html` Version der englischen FAQ in [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2#. Um diese Datei herunterzuladen und auszupacken, sind die folgenden Schritte notwendig:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.de.FreeBSD.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -442,14 +442,14 @@ Ja, vorausgesetzt Sie installieren zuerst Windows(TM). Der Bootmanager von FreeB
Das hängt vom Bootmanager ab. Der FreeBSD Bootmanager kann mit man:boot0cfg[8] neu installiert werden. Benutzen Sie bspw. folgendes Kommando, um den auf der Platte _ada0_ wiederherzustellen:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
Der MBR Bootloader kann mit man:gpart[8] installiert werden:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -587,7 +587,7 @@ FreeBSD unterstützt zudem jedes SCSI CD-R- oder CD-RW-Laufwerk. Installieren Si
Falls Sie den Konsolentreiber man:syscons[4] benutzen, können Sie den Mauszeiger auf Textkonsolen zum Kopieren und Einfügen von Text verwenden. Starten Sie den Mausdaemon man:moused[8] und schalten Sie den Mauszeiger auf der virtuellen Konsole ein:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -638,7 +638,7 @@ Weitere Informationen zu diesem Thema finden Sie auf http://www.ibb.net/\~anne/k
Einige Soundkarten setzen die Lautstärke bei jedem Systemstart auf 0. In diesem Fall müssen Sie nach jedem Bootvorgang den folgenden Befehl ausführen:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -740,7 +740,7 @@ Der Rechner verfügt über mehr als eine Uhr und FreeBSD benutzt leider die fals
Starten Sie man:dmesg[8] und achten Sie auf die Zeilen, in denen das Wort `Timecounter` vorkommt. Die von FreeBSD benutzte Uhr findet sich in der Zeile mit dem höchsten quality-Wert.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -751,7 +751,7 @@ Timecounters tick every 1.000 msec
Sie können das überprüfen, indem Sie den Wert der man:sysctl[3]-Variablen `kern.timecounter.hardware` abfragen.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -768,7 +768,7 @@ Es ist aber auch durchaus möglich, dass das BIOS die TSC-Uhr ändert, um beispi
In diesem Beispiel ist die Uhr `i8254` ebenfalls verfügbar; um sie auszuwählen, muss ihr Name in die man:sysctl[3]-Variable `kern.timecounter.hardware` geschrieben werden.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -873,7 +873,7 @@ Wir haben bei der vorliegenden Implementierung versucht, möglichst viele dieser
Installieren Sie zuerst den Port package:audio/timidity[]. Danach müssen Sie manuell die GUS-Patche von Eric A. Welsh von http://alleg.sourceforge.net/digmid.html[http://alleg.sourceforge.net/digmid.html]. installieren. Wenn TiMidity++ richtig installiert wurde, können Sie mit dem folgenden Kommando MIDI-Dateien in das WAV-Format konvertieren:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -947,7 +947,7 @@ Es gibt eine Reihe von möglichen Ursachen für dieses Problem:
Der Name des aktuell verwendeten Schedulers steht in der sysctl-Variablen `kern.sched.name`:
-[source,bash]
+[source,shell]
....
sysctl`kern.sched.name`
kern.sched.name: ULE
@@ -983,7 +983,7 @@ Wenn die Festplatten mit UFS formatiert sind, verwenden Sie ausschließlich man:
Wenn Sie zum Beispiel das Root-Dateisystem auf [.filename]#/dev/ad1s1a# verschieben wollen und diese derzeit auf [.filename]#/mnt# gemountet ist, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -993,7 +993,7 @@ Wenn Sie zum Beispiel das Root-Dateisystem auf [.filename]#/dev/ad1s1a# verschie
Wenn Sie Partitionen mit `dump` umorganisieren wollen, bedeutet dies etwas mehr Arbeit. Wenn Sie eine Partition wie [.filename]#/var# in die übergeordnete Partition verschieben wollen, müssen Sie zunächst eine neue Partition erzeugen, die die beiden alten Partitionen aufnehmen kann. Der zweite Schritt ist, wie oben beschrieben die übergeordnete Partition in die neue Partition zu verschieben. Im dritten und letzten Schritt verschieben Sie dann die untergeordnete Partition in das leere Verzeichnis, das im zweiten Schritt entstanden ist:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -1005,7 +1005,7 @@ Wenn Sie Partitionen mit `dump` umorganisieren wollen, bedeutet dies etwas mehr
Wenn Sie ein Verzeichnis aus einer Partition herauslösen wollen, also z.B. [.filename]#/var# auf eine eigene Partition verlegen wollen, dann müssen Sie zunächst beide Partitionen anlegen. Danach müssen Sie die untergeordnete Partition im passenden Verzeichnis unterhalb des temporären mount points mounten und zum Abschluß die alte Partition verschieben:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -1061,7 +1061,7 @@ FreeBSD unterstützt auch das Netzwerk-Dateisystem NFS. Die FreeBSD Ports-Sammlu
Die erweiterten DOS-Partitionen befinden sich hinter _allen_ primären Partitionen. Wenn sich zum Beispiel eine Partition `E` als sekundäre DOS-Partition auf einem zweiten SCSI-Laufwerk befindet, wird eine Gerätedatei für `Slice 5` in [.filename]#/dev# erstellt. Um diese zu mounten:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1097,14 +1097,14 @@ Ohne den Boot-Manager neu zu schreiben, gar nicht. Allerdings gibt es in der Kat
Wenn auf dem Laufwerk bereits ein Dateisystem existiert, können Sie folgendes Kommando benutzen:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
Wenn das Laufwerk nur mit FreeBSD-Systemen verwendet wird, partitionieren Sie es mit UFS oder ZFS. Dies bietet Unterstützung für lange Dateinamen, eine verbesserte Leistung und Stabilität. Wenn das Laufwerk von anderen Betriebssystemen verwendet wird, ist bspw. msdosfs die bessere Wahl.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1113,14 +1113,14 @@ Wenn das Laufwerk nur mit FreeBSD-Systemen verwendet wird, partitionieren Sie es
Anschließend erstellen Sie ein neues Dateisystem:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
und mounten es:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1164,7 +1164,7 @@ Standardmäßig benutzt man:mount[8] den letzten (aktuellsten) Daten-Track der C
Setzen Sie als `root` die sysctl-Variable `vfs.usermount` auf `1`:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1184,7 +1184,7 @@ Wenn Sie zum Beispiel den Benutzern den Zugriff auf das erste USB-Laufwerk zu er
Alle Benutzer können nun Geräte, die sie lesen können, in ein Verzeichnis einbinden, das sie besitzen:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1192,7 +1192,7 @@ Alle Benutzer können nun Geräte, die sie lesen können, in ein Verzeichnis ein
Das Aushängen eines Gerätes ist einfach:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1268,7 +1268,7 @@ Deduplizierung kann auch zu einigen unerwarteten Situationen führen. Insbesonde
Die könnte passieren, wenn der Pool zu 100% belegt ist. ZFS benötigt Platz auf der Festplatte, um Transaktionsmetadaten zu speichern. Um den Pool wieder benutzbar zu machen, kürzen Sie einfach die zu löschende Datei:
-[source,bash]
+[source,shell]
....
% truncate -s 0 unimportant-file
....
@@ -1304,7 +1304,7 @@ ZFS TRIM funktioniert möglicherweise nicht in allen Konfigurationen, beispielsw
Wenn Sie zum Beispiel den mitgelieferten DNS-Server man:named[8] aktivieren wollen, können Sie das folgende Kommando eingeben:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1323,7 +1323,7 @@ Dies geschieht in der Regel, wenn sie die crontab des Systems verändern. Das is
Geben Sie das folgende ein um die zusätzliche, fehlerhafte crontab zu löschen:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1334,7 +1334,7 @@ Das ist ein Sicherheitsmerkmal Wenn Sie mit `su` zu `root` oder jedem anderen Ac
Um einem Benutzer zu erlauben, mit `su root` zu werden, müssen Sie ihn mit `pw` zur Gruppe `wheel` hinzufügen:
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1429,7 +1429,7 @@ options SC_DISABLE_REBOOT
Alternativ kann die folgende man:sysctl[8]-Variable gesetzt werden, ohne dass Sie das System dazu neu starten oder einen angepassten Kernel erstellen müssen:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -1443,7 +1443,7 @@ Die beiden oben genannten Methoden schließen sich gegenseitig aus: Diese man:sy
Benutzen Sie diesen man:perl[1]-Befehl:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1452,7 +1452,7 @@ Wobei _file(s)_ eine oder mehrere zu verarbeitende(n) Datei(en) ist/sind. Die Ä
Alternativ können Sie den Befehl man:tr[1] benutzen:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1465,7 +1465,7 @@ Die Verwendung von package:converters/dosunix[] aus der Ports-Sammlung stellt ei
Gehen Sie in den Single-User-Modus und dann zurück in den Multi-User-Modus:
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1488,7 +1488,7 @@ Kurze Antwort: die Sicherheitseinstellung (der securelevel) ist größer als 0.
Ausführliche Antwort: Wenn die Sicherheitseinstellung größer als 0 ist, erlaubt es FreeBSD nicht, die Systemeinstellungen zu ändern. Um den aktuellen Securelevel zu ermitteln, können Sie das folgende Kommando benutzen:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1501,7 +1501,7 @@ Kurze Antwort: Die Sicherheitseinstellung (der securelevel) ist größer als 1.
Ausführliche Antwort: Wenn die Sicherheitseinstellung größer als 1 ist, erlaubt es FreeBSD nicht, die Systemzeit zu ändern. Um den aktuellen Securelevel zu ermitteln, können Sie das folgende Kommando benutzen:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1546,7 +1546,7 @@ Das Verzeichnis [.filename]#/var/empty# wird von man:sshd[8] benötigt, wenn es
Um zu sehen wie man:newsyslog[8] reagiert, verwenden Sie das folgende Kommando:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1573,7 +1573,7 @@ Benutzen Sie package:x11/xorg-minimal[], der nur die benötigten Komponenten ins
Sie können Xorg auch als Paket installieren:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1618,7 +1618,7 @@ link sysmouse mouse
Die Verknüpfung kann durch Neustart von man:devfs[5] über das folgende Kommando (als `root`) erzeugt werden:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1686,7 +1686,7 @@ Aus Sicherheitsgründen verbietet der X-Server in der Voreinstellung Verbindunge
Starten Sie den X mit der Option `-listen_tcp`, wenn Sie Verbindungen von entfernten Systemen erlauben wollen:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1806,7 +1806,7 @@ Unter der Annahme, dass alle Windows-Tastaturen dem Standard entsprechen, lauten
Nach der folgenden Anweisung erzeugt die linke kbd:[Windows]-Taste ein Komma.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1886,14 +1886,14 @@ Ja. Wenn Sie NAT über eine User-PPP-Verbindung einsetzen wollen, lesen Sie den
Wenn sich die zweite Adresse im gleichen Subnetz befindet wie eine der Adressen, die bereits auf der Schnittstelle konfiguriert sind, benutzen Sie `netmask 0xffffffff` wie in diesem Beispiel:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Andernfalls geben sie die Adresse und die Netzmaske wie gewohnt an:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1904,7 +1904,7 @@ Weitere Informationen finden Sie im FreeBSD link:{handbook}#configtuning-virtual
Einige Versionen des Linux(TM) NFS-Codes akzeptieren Mount-Anfragen nur von einem privilegierten Port. Versuchen Sie den folgenden Befehl:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1927,7 +1927,7 @@ Wenn der Kernel mit der Option `IPFIREWALL` kompiliert wurde, müssen Sie beacht
Wenn die Firewall unabsichtlich falsch konfiguriert wurde, stellen Sie die Netzwerkfunktionalität wieder her, indem Sie Folgendes als `root` eingeben:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1940,7 +1940,7 @@ Weitere Informationen über die Konfiguration dieser Firewall finden Sie im Kapi
Wahrscheinlich benötigen Sie Network Address Translation (NAT) und nicht die einfache Weiterleitung von Paketen. Die "fwd"-Regel leitet lediglich Pakete weiter; die Daten in den Paketen werden aber nicht verändert. Ein Beispiel:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -1986,14 +1986,14 @@ Diese Kernelmeldung deutet darauf hin, dass irgend jemand versucht, die Generier
Die erste Zahl gibt an, wie viele Pakete vom Kernel ohne das Limit versendet worden wären; die zweite Zahl gibt das Limit an. Sie können das Limit mit der sysctl-Variable `net.inet.icmp.icmplim` einstellen. Im Beispiel wird das Limit auf `300` Pakete pro Sekunde gesetzt:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
Wenn Sie zwar die Begrenzung benutzen möchten, aber die Meldungen nicht in den Logdateien sehen möchten, können Sie die Meldungen mit der sysctl-Variable `net.inet.icmp.icmplim_output` abschalten:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -2046,7 +2046,7 @@ Sicherheitsstufen (`securelevel`) sind ein Sicherheitsmechanismus, der im Kernel
Das folgende Kommando kann benutzt werden, um die eingestellte Sicherheitsstufe eines aktiven Systems abzufragen:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -2227,7 +2227,7 @@ Falls der ISP hilfsbereit ist, sollte er in der Lage sein, an seinem Ende das Lo
In diesem Fall erstellen Sie am besten man:ppp[8] mit Debugging-Informationen neu und benutzen dann man:gdb[1], um von dem hängenden ppp-Prozess eine Aufzeichnung des Stacks zu erstellen. Um die ppp-Anwendung mit Debugging-Informationen zu übersetzen, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/ppp
# env DEBUG_FLAGS='-g' make clean
@@ -2236,7 +2236,7 @@ In diesem Fall erstellen Sie am besten man:ppp[8] mit Debugging-Informationen ne
Anschließend starten Sie ppp neu und warten darauf, dass es wieder hängt. Wenn die Debug-Version von ppp hängt, starten Sie gdb für den steckengebliebenen Prozess, indem Sie folgendes eingeben:
-[source,bash]
+[source,shell]
....
# gdb ppp `pgrep ppp`
....
@@ -2464,7 +2464,7 @@ Lesen Sie link:{handbook}#serialconsole-setup/[diesen Abschnitt] des Handbuchs.
Wenn der FreeBSD Kernel bootet, testet er die seriellen Schnittstellen, für die er konfiguriert wurde. Sie können entweder aufmerksam die Bootmeldungen verfolgen, oder Sie führen den folgenden Befehl aus, nachdem das System hochgefahren ist und läuft:
-[source,bash]
+[source,shell]
....
% dmesg | grep -E "^sio[0-9]"
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2531,7 +2531,7 @@ Die Programme man:tip[1] und man:cu[1] können auf das Verzeichnis [.filename]#/
Alternativ können Sie jeden Benutzer auf dem System man:tip[1] und man:cu[1] verwenden lassen, dazu müssen Sie folgendes eingeben:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2553,7 +2553,7 @@ Die Antwort ist ganz einfach: Freier Speicher ist verschwendeter Speicher. Der F
Für symbolische Links gibt es keine separaten Zugriffsrechte und standardmäßig folgt man:chmod[1] dem Link, wenn möglich; die Zugriffsrechte für die Datei, auf die der symbolische Link zeigt, werden also verändert. Wenn Sie eine Datei mit dem Namen [.filename]#foo# und einen auf diese Datei zeigenden symbolischen Link mit dem Namen [.filename]#bar# haben, wird das folgende Kommando niemals einen Fehler melden.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2567,7 +2567,7 @@ Wenn Sie die Zugriffsrechte in der Dateihierarchie an der Wurzeldatei anstatt de
Die Option `-R` bewirkt ein _rekursives_man:chmod[1]. Seien Sie vorsichtig, wenn Sie bei man:chmod[1] Verzeichnisse oder symbolische Links zu Verzeichnissen angeben. Wenn Sie die Zugriffsrechte eines Verzeichnisses ändern möchten, das durch einen symbolischen Link referenziert wird, benutzen Sie man:chmod[1] ohne irgendwelche Optionen und folgen dem symbolischen Link durch einen abschließenden Schrägstrich ([.filename]#/#). Wenn bspw. [.filename]#foo# ein symbolischer Link zum Verzeichnis [.filename]#bar# ist und Sie die Zugriffsrechte von [.filename]#foo# (tatsächlich [.filename]#bar#) ändern möchten, dann benutzen Sie etwas ähnliches wie:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2812,14 +2812,14 @@ Was Sie tun sollten, ist folgendes:
. Notieren Sie sich den Wert des Instruktionszeigers. Beachten Sie, dass der Teil `0x8:` am Anfang in diesem Fall nicht von Bedeutung ist; der Teil `0xf0xxxxxx` ist der, den wir wollen.
. Tun Sie folgendes, wenn das System rebootet:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxxx
....
+
wobei `0xf0xxxxxx` der Wert des Instruktionszeigers ist. Es besteht die Möglichkeit, dass Sie keinen exakten Treffer erzielen, weil die Symbole in der Symboltabelle des Kernels Funktionseinstiegspunkte sind und die Adresse des Instruktionszeigers irgendwo innerhalb einer Funktion liegen wird und nicht am Anfang. Falls sie keinen exakten Treffer erzielen, lassen Sie den letzten Teil des Werts des Instruktionszeigers weg und versuchen es noch einmal, z.B.:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -2842,21 +2842,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
. Wechseln Sie in das Verzeichnis [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Erstellen Sie den Kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Warten Sie, bis man:make[1] den Kernel fertig kompiliert hat.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2880,7 +2880,7 @@ FreeBSD Crash-Dumps sind für gewöhnlich genauso groß wie der physikalische Ha
Sobald der Crash-Dump wiederhergestellt wurde, können Sie den Stack zurückverfolgen:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/de/books/handbook/advanced-networking/_index.adoc b/documentation/content/de/books/handbook/advanced-networking/_index.adoc
index 6a58b85f11..3047f6fac5 100644
--- a/documentation/content/de/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/de/books/handbook/advanced-networking/_index.adoc
@@ -80,7 +80,7 @@ Dieser Abschnitt bietet einen Überblick über die Grundlagen des Routings. Er d
man:netstat[1] zeigt die Routingtabellen eines FreeBSD-Systems an:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -166,7 +166,7 @@ defaultrouter="10.20.30.1"
Die Standardroute kann mit `route` auch manuell gesetzt werden:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -202,7 +202,7 @@ image::static-routes.png[]
Bevor die statischen Routen hinzugefügt werden, sieht die Routingtabelle auf `RouterA` in etwa so aus:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -217,7 +217,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Mit dieser Routingtabelle hat `RouterA` keine Route zum Netzwerk `192.168.2.0/24`. Der folgende Befehl wird das interne Netz 2 in die Routingtabelle von `RouterA` aufnehmen und dabei `192.168.1.2` als nächsten Zwischenschritt (Hop) verwenden:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -299,7 +299,7 @@ Häufig soll ein Computer an ein vorhandenes Drahtlosnetzwerk angeschlossen werd
. Ermitteln Sie den drahtlosen Adapter. Der [.filename]#GENERIC#-Kernel von FreeBSD enthält Treiber für viele gängige Adapter. Wenn der drahtlose Adapter eines dieser Modelle ist, wird das in der Ausgabe von man:ifconfig[8] angezeigt:
+
-[source,bash]
+[source,shell]
....
% ifconfig | grep -B3 -i wireless
....
@@ -308,7 +308,7 @@ Häufig soll ein Computer an ein vorhandenes Drahtlosnetzwerk angeschlossen werd
In FreeBSD 11 und neueren Versionen verwenden Sie stattdessen diesen Befehl:
+
-[source,bash]
+[source,shell]
....
% sysctl net.wlan.devices
....
@@ -338,7 +338,7 @@ ifconfig_wlan0="WPA SYNCDHCP"
. Starten Sie den Computer oder den Netzwerkdienst neu, um sich mit dem Netzwerk zu verbinden:
+
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -402,7 +402,7 @@ Mit diesen Informationen in der Kernelkonfigurationsdatei kann der Kernel neu ge
Informationen über das drahtlose Gerät sollten in den Boot-Meldungen folgendermaßen angezeigt werden:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -415,14 +415,14 @@ Da die rechtliche Situation in verschiedenen Teilen der Welt unterschiedlich ist
Die verfügbaren Definitionen der Regionen finden Sie in [.filename]#/etc/regdomain.xml#. Um die Daten zur Laufzeit einzustellen, benutzen Sie `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 regdomain ETSI country AT
....
Um die Einstellungen beizubehalten, fügen Sie folgende Zeile in [.filename]#/etc/rc.conf# hinzu:
-[source,bash]
+[source,shell]
....
# sysrc create_args_wlan0="country AT regdomain ETSI"
....
@@ -437,7 +437,7 @@ Drahtlose Netzwerke werden in der Regel im Infrastruktur-Modus (BSS) betrieben.
Um nach verfügbaren drahtlosen Netzwerken zu suchen verwenden Sie man:ifconfig[8]. Dieser Scanvorgang kann einen Moment dauern, da jede verfügbare Frequenz auf verfügbare Access Points hin überprüft werden muss. Nur der Super-User kann einen Scanvorgang starten:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -477,7 +477,7 @@ Als Ergebnis erhalten Sie eine Liste mit allen gefundenen BSS/IBSS-Netzwerken. Z
Um eine Liste der bekannten Netzwerke auszugeben, verwenden Sie den folgenden Befehl:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -555,14 +555,14 @@ ifconfig_wlan0="DHCP"
Das drahtlose Gerät kann nun gestartet werden:
-[source,bash]
+[source,shell]
....
# service netif start
....
Nachdem das Gerät aktiviert wurde, kann mit man:ifconfig[8] der Status des Geräts [.filename]#ath0# abgefragt werden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -628,7 +628,7 @@ ifconfig_wlan0="WPA DHCP"
Nun kann das drahtlose Gerät aktiviert werden:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -652,7 +652,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Alternativ kann das drahtlose Gerät manuell, mit Hilfe der Informationen aus [.filename]#/etc/wpa_supplicant.conf# konfiguriert werden:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -663,7 +663,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
Im zweiten Schritt starten Sie nun man:dhclient[8], um eine IP-Adresse vom DHCP-Server zu beziehen:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -689,7 +689,7 @@ Enthält [.filename]#/etc/rc.conf# bereits die Zeile `ifconfig_wlan0="DHCP"`, wi
Sollte der Einsatz von DHCP nicht möglich oder nicht gewünscht sein, konfigurieren Sie eine statische IP-Adresse, nachdem man:wpa_supplicant[8] die Station authentifiziert hat:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -707,7 +707,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Falls DHCP nicht verwendet wird, müssen zusätzlich noch das Standard-Gateway sowie der Nameserver manuell festgelegt werden:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -767,7 +767,7 @@ ifconfig_wlan0="WPA DHCP"
Nun können Sie das drahtlose Gerät aktivieren:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -830,7 +830,7 @@ ifconfig_wlan0="WPA DHCP"
Nun kann das drahtlose Gerät aktiviert werden:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -902,7 +902,7 @@ ifconfig_ath0="WPA DHCP"
Nun kann das drahtlose Gerät aktiviert werden.
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -930,7 +930,7 @@ Wired Equivalent Privacy (WEP) ist Teil des ursprünglichen 802.11-Standards. Es
WEP kann über man:ifconfig[8] aktiviert werden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -961,7 +961,7 @@ network={
Danach müssen Sie das Programm noch aufrufen:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -974,7 +974,7 @@ Der IBSS-Modus, der auch als Ad-hoc-Modus bezeichnet wird, ist für Punkt-zu-Pun
Auf Rechner `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -993,7 +993,7 @@ Der `adhoc`-Parameter zeigt an, dass die Schnittstelle im IBSS-Modus läuft.
Rechner `B` sollte nun in der Lage sein, Rechner `A` zu finden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -1003,7 +1003,7 @@ Rechner `B` sollte nun in der Lage sein, Rechner `A` zu finden:
Der Wert `I` (Spalte CAPS) in dieser Ausgabe bestätigt, dass sich Rechner `A` im Ad-hoc-Modus befindet. Nun müssen Sie noch Rechner `B` eine andere IP-Adresse zuweisen:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1036,7 +1036,7 @@ Die Verwendung der NDIS Treiber für Windows(R) erlauben zur Zeit keinen AP-Modu
Nachdem die Netzwerkunterstützung geladen ist, überprüfen Sie, ob das Wireless-Gerät den hostbasierenden Access-Point Modus, der auch als hostap-Modus bekannt ist, unterstützt:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1048,14 +1048,14 @@ Diese Ausgabe zeigt die Eigenschaften der Karte. Das Wort `HOSTAP` bestätigt, d
Das Wireless-Gerät kann nur während der Erzeugung des Pseudo-Geräts in den hostap-Modus gesetzt werden. Zuvor erstellte Pseudo-Geräte müssen also vorher zerstört werden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
Danach muss das Gerät erneut erstellt werden, bevor die restlichen Netzwerkparameter konfiguriert werden können:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1063,7 +1063,7 @@ Danach muss das Gerät erneut erstellt werden, bevor die restlichen Netzwerkpara
Benutzen Sie danach erneut man:ifconfig[8], um den Status der [.filename]#wlan0#-Schnittstelle abzufragen:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1093,7 +1093,7 @@ Obwohl es nicht empfohlen wird, einen AP ohne jegliche Authentifizierung oder Ve
Nachdem der AP konfiguriert wurde, ist es möglich von einem anderen drahtlosen Computer eine Suche nach dem AP zu starten:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1103,7 +1103,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
Der Client-Rechner hat den AP gefunden und kann nun eine Verbindung aufbauen:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1173,12 +1173,12 @@ wpa_pairwise=CCMP <.>
Als nächstes wird hostapd gestartet:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1203,7 +1203,7 @@ Es ist nicht empfehlenswert, einen AP mit WEP zu konfigurieren, da es keine Auth
Das Wireless-Gerät kann nun in den hostap-Modus versetzt werden und mit der korrekten SSID und IP-Adresse konfiguriert werden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1215,7 +1215,7 @@ Das Wireless-Gerät kann nun in den hostap-Modus versetzt werden und mit der kor
Benutzen Sie man:ifconfig[8] um den Status der [.filename]#wlan0#-Schnittstelle erneut anzuzeigen:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1230,7 +1230,7 @@ Benutzen Sie man:ifconfig[8] um den Status der [.filename]#wlan0#-Schnittstelle
Es ist möglich, von einem anderen drahtlosen Computer eine Suche nach dem AP zu starten:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1259,7 +1259,7 @@ Für die Fehlersuche steht man:wpa_supplicant[8] zur Verfügung. Starten Sie das
* Sobald sich das Gerät mit dem Access Point verbinden kann, prüfen Sie die Netzwerkkonfiguration mit einfachen Werkzeugen wie man:ping[8].
* Zusätzlich gibt es auch zahlreiche Low-Level-Debugging-Werkzeuge. Die Ausgabe von Debugging-Informationen des 802.11 Protocol Support Layers lassen sich mit dem Programm man:wlandebug[8] aktivieren. Um beispielsweise während der Suche nach Access Points und des Aufbaus von 802.11-Verbindungen (Handshake) auftretende Systemmeldungen auf die Konsole auszugeben, verwenden Sie den folgenden Befehl:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i wlan0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1280,7 +1280,7 @@ Viele Mobiltelefone bieten die Möglichkeit, ihre Datenverbindung über USB (oft
Bevor Sie ein Gerät anschließen, laden Sie den entsprechenden Treiber in den Kernel:
-[source,bash]
+[source,shell]
....
# kldload if_urndis
# kldload if_cdce
@@ -1311,7 +1311,7 @@ Der Bluetooth-Stack von FreeBSD verwendet das man:netgraph[4]-Framework. Viele B
Bevor ein Gerät angeschlossen wird, muss der entsprechende Treiber in den Kernel geladen werden. Hier verwendet das Gerät den man:ng_ubt[4]-Treiber:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1325,7 +1325,7 @@ ng_ubt_load="YES"
Sobald der Treiber geladen ist, schließen Sie den USB-Adapter an. Eine Meldung ähnlich der folgenden wird auf der Konsole und in [.filename]#/var/log/messages# erscheinen:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1335,7 +1335,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
Verwenden Sie das Startskript zum Starten und Beenden des Bluetooth-Stacks. Es ist empfehlenswert, den Bluetooth-Stack zu beenden, bevor Sie den Adapter entfernen. Das Starten des Bluetooth-Stacks kann das Starten von man:hcsecd[8] erfordern. Wenn Sie den Bluetooth-Stack starten, erhalten Sie eine Meldung ähnlich der folgenden:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1357,7 +1357,7 @@ Das Host Controller Interface (HCI) bietet eine einheitliche Methode für den Zu
Eine der wichtigsten Aufgaben ist das Auffinden von sich in Reichweite befindenden Bluetooth-Geräten. Diese Funktion wird als _inquiry_ bezeichnet. Inquiry sowie andere mit HCI in Verbindung stehende Funktionen werden von man:hccontrol[8] zur Verfügung gestellt. Das folgende Beispiel zeigt, wie man herausfindet, welche Bluetooth-Geräte sich in Reichweite befinden. Eine solche Abfrage dauert nur wenige Sekunden. Beachten Sie, dass ein Gerät nur dann antwortet, wenn es sich im Modus _discoverable_ befindet.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1373,7 +1373,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` stellt, ähnlich der MAC-Adresse einer Netzwerkkarte, die eindeutige Adresse eines Bluetooth-Gerätes dar. Diese Adresse ist für die Kommunikation mit dem Gerät nötig. Es ist aber auch möglich, `BD_ADDR` einen Klartextnamen zuzuweisen. [.filename]#/etc/bluetooth/hosts# enthält Informationen über die bekannten Bluetooth-Rechner. Das folgende Beispiel zeigt, wie man den Klartextnamen eines entfernten Geräts in Erfahrung bringen kann:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1386,7 +1386,7 @@ Entfernten Geräten können Aliase in [.filename]#/etc/bluetooth/hosts# zugewies
Bluetooth ermöglicht Punkt-zu-Punkt-Verbindungen an denen nur zwei Bluetooth-Geräte beteiligt sind, aber auch Punkt-zu-Multipunkt-Verbindungen, bei denen eine Verbindung von mehreren Bluetooth-Geräten gemeinsam genutzt wird. Das folgende Beispiel zeigt, wie man eine Verbindung zu einem entferntem Gerät aufbauen kann:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci create_connection BT_ADDR
....
@@ -1395,7 +1395,7 @@ Bluetooth ermöglicht Punkt-zu-Punkt-Verbindungen an denen nur zwei Bluetooth-Ge
Das folgende Beispiel zeigt, wie man die aktiven Basisbandverbindungen des lokalen Gerätes anzeigen kann:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1404,7 +1404,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Ein _connection handle_ ist für die Beendigung einer Basisbandverbindung nützlich. Im Normalfall werden inaktive Verbindungen aber automatisch vom Bluetooth-Stack getrennt.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1460,7 +1460,7 @@ Diese Profile werden unter FreeBSD durch man:ppp[8] sowie man:rfcomm_pppd[8] imp
Dieses Beispiel verwendet man:rfcomm_pppd[8], um eine Verbindung zu einem entfernten Gerät mit der `BD_ADDR 00:80:37:29:19:a4` auf dem RFCOMM-Kanal `DUN` aufzubauen:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
@@ -1469,7 +1469,7 @@ Die aktuelle Kanalnummer des entfernten Geräts erhalten Sie über das SDP-Proto
Der man:sdpd[8]-Server muss laufen, damit ein Netzzugriff mit dem PPPLAN-Profil möglich ist. Außerdem muss für den LAN-Client ein neuer Eintrag in [.filename]#/etc/ppp/ppp.conf# erzeugt werden. Beispielkonfigurationen zu diesem Thema finden Sie in man:rfcomm_pppd[8]. Danach starten Sie den RFCOMMPPP-Server über eine gültige RFCOMM-Kanalnummer. Der RFCOMMPPP-Server bindet dadurch den Bluetooth-LAN-Dienst an den lokalen SDP-Daemon. Das folgende Beispiel zeigt, wie man den RFCOMMPPP-Server startet.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1488,7 +1488,7 @@ Unter FreeBSD wird eine netgraph-Gerätedatei vom Typ _l2cap_ für jedes einzeln
Ein nützlicher Befehl zum Anpingen von anderen Geräten ist man:l2ping[8]. Einige Bluetooth-Geräte senden allerdings nicht alle erhaltenen Daten zurück. Die Ausgabe `0 bytes` im folgenden Beispiel ist also kein Fehler:
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1499,7 +1499,7 @@ Ein nützlicher Befehl zum Anpingen von anderen Geräten ist man:l2ping[8]. Eini
Das Programm man:l2control[8] liefert Informationen über L2CAP-Dateien. Das folgende Beispiel zeigt, wie man die Liste der logischen Verbindungen (Kanäle) sowie die Liste der Basisbandverbindungen abfragen kann:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1513,7 +1513,7 @@ Remote BD_ADDR Handle Flags Pending State
man:btsockstat[1] ist ein weiteres Diagnoseprogramm. Es funktioniert ähnlich wie man:netstat[1], arbeitet aber mit Bluetooth-Datenstrukturen. Das folgende Beispiel zeigt die gleiche Liste der logischen Verbindungen wie man:l2control[8] im vorherigen Beispiel.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1547,7 +1547,7 @@ Normalerweise sucht ein SDP-Client nur nach Diensten, die bestimmte geforderte E
Der Bluetooth-SDP-Server man:sdpd[8] und der Kommandozeilenclient man:sdpcontrol[8] sind bereits in der Standardinstallation von FreeBSD enthalten. Das folgende Beispiel zeigt, wie eine SDP-Abfrage durchgeführt wird:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1575,7 +1575,7 @@ Bluetooth Profile Descriptor List:
Beachten Sie, dass jeder Dienst eine Liste seiner Eigenschaften, wie etwa den RFCOMM-Kanal, zurückgibt. Je nachdem, welche Dienste der Benutzer benötigt, sollten einige dieser Eigenschaften notiert werden. Einige Bluetooth-Implementationen unterstützen kein Service Browsing und geben daher eine leere Liste zurück. Ist dies der Fall, ist es dennoch möglich, nach einem bestimmten Dienst zu suchen. Das folgende Beispiel demonstriert die Suche nach dem OBEX Object Push (OPUSH) Dienst:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1589,7 +1589,7 @@ sdpd_enable="YES"
Nun kann der man:sdpd[8]-Daemon durch folgende Eingabe gestartet werden:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1598,7 +1598,7 @@ Der lokale Server, der den entfernten Clients Bluetooth-Dienste anbieten soll, b
Die Liste der vorhandenen Dienste, die am lokalen SDP-Server registriert sind, lässt sich durch eine SDP-Abfrage über einen lokalen Kontrollkanal abfragen:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1611,7 +1611,7 @@ Server und Client von OBEX werden durch obexapp bereitgestellt, das als Paket od
Mit dem OBEX-Client werden Objekte zum OBEX-Server geschickt oder angefordert. Ein Objekt kann etwa eine Visitenkarte oder ein Termin sein. Der OBEX-Client fordert über SDP die Nummer des RFCOMM-Kanals vom entfernten Gerät an. Dies kann auch durch die Verwendung des Servicenamens anstelle der RFCOMM-Kanalnummer erfolgen. Folgende Dienste werden unterstützt: `IrMC`, `FTRN` und `OPUSH`. Es ist möglich, den RFCOMM-Kanal als Nummer anzugeben. Es folgt ein Beispiel für eine OBEX-Sitzung, bei der ein Informationsobjekt vom Mobiltelefon angefordert und ein neues Objekt (hier eine Visitenkarte) an das Telefonbuch des Mobiltelefons geschickt wird:
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt
@@ -1624,7 +1624,7 @@ Success, response: OK, Success (0x20)
Um OBEX-Push-Dienste anbieten zu können, muss der sdpd-Server gestartet sein. Ein Wurzelverzeichnis, in dem alle ankommenden Objekte gespeichert werden, muss zusätzlich angelegt werden. In der Voreinstellung ist dies [.filename]#/var/spool/obex#. Starten Sie den OBEX-Server mit einer gültigen Kanalnummer. Der OBEX-Server registriert nun den OBEX-Push-Dienst mit dem lokalen SDP-Daemon. Das folgende Beispiel zeigt, wie der OBEX-Server gestartet wird:
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1635,7 +1635,7 @@ Das Serial Port Profile (SSP) ermöglicht es Bluetooth-Geräten eine serielle Ka
man:rfcomm_sppd[1] implementiert unter FreeBSD SSP und ein Pseudo-tty, das als virtuelle serielle Verbindung verwendet wird. Das folgende Beispiel zeigt, wie man eine Verbindung mit einem entfernten Serial-Port-Dienst herstellt. Ein RFCOMM-Kanal muss dabei nicht angegeben werden, da man:rfcomm_sppd[1] den Kanal über SDP abfragen kann. Um dies zu umgehen, geben Sie einen RFCOMM-Kanal auf der Kommandozeile an.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t
rfcomm_sppd[94692]: Starting on /dev/pts/6...
@@ -1644,7 +1644,7 @@ rfcomm_sppd[94692]: Starting on /dev/pts/6...
Sobald die Verbindung hergestellt ist, kann pseudo-tty als serieller Port verwenden werden.
-[source,bash]
+[source,shell]
....
# cu -l /dev/pts/6
....
@@ -1661,7 +1661,7 @@ cu -l $PTS
Wenn FreeBSD eine neue Verbindung akzeptiert, versucht es, die Rolle zu tauschen, um zum Master zu werden. Einige ältere Geräte, die dies nicht unterstützen, können keine Verbindung aufbauen. Da der Rollentausch ausgeführt wird sobald eine neue Verbindung aufgebaut wird, ist es nicht möglich, das entfernte Gerät zu fragen ob es den Rollentausch unterstützt. Es gibt jedoch eine HCI-Option, die dieses Verhalten deaktiviert:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1707,7 +1707,7 @@ In FreeBSD handelt es sich bei man:if_bridge[4] um ein Kernelmodul, das von man:
Eine Bridge wird durch das Klonen von Schnittstellen erzeugt. Um eine Bridge zu erzeugen, verwenden Sie:
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1723,7 +1723,7 @@ Wenn eine Bridge erzeugt wird, erhält sie automatisch eine zufällig generierte
Im nächsten Schritt werden die Schnittstellen, die die Bridge verbinden soll, zugewiesen. Damit die Bridge Datenpakete weiterleiten kann, müssen sowohl die Bridge als auch die Schnittstellen der zu verbindenden Netzwerksegmente aktiviert sein:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1742,7 +1742,7 @@ ifconfig_fxp1="up"
Wenn die Bridge eine IP-Adresse benötigt, muss diese der Schnittstelle der Bridge zugewiesen werden und nicht der Schnittstelle der gekoppelten Netzwerksegmente. Die IP-Adresse kann manuell gesetzt, oder über DHCP bezogen werden. Dieses Beispiel verwendet eine statische IP-Adresse:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1764,7 +1764,7 @@ Das Rapid Spanning Tree Protocol (RSTP oder 802.1w), ist abwärtskompatibel zum
STP kann auf den Schnittstellen der durch die Bridge verbundenen Netzwerksegmente mittels man:ifconfig[8] aktiviert werden. Für eine Bridge, die die Schnittstellen [.filename]#fxp0# und [.filename]#fxp1# verbindet, aktivieren Sie STP wie folgt:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1784,7 +1784,7 @@ Diese Bridge hat die Spanning-Tree-ID `00:01:02:4b:d4:50` und die Priorität `32
Auf einer anderen Bridge des Netzwerks ist STP ebenfalls aktiviert:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1811,7 +1811,7 @@ Eine private Schnittstelle leitet keine Daten an einen Port weiter, bei dem es s
span::
Ein Span Port übertragt eine Kopie jedes Ethernet-Rahmens, der an der Bridge ankommt. Auf einer Bridge können beliebig viele Span Ports festgelegt werden. Wird eine Schnittstelle als Span Port konfiguriert, kann sie nicht mehr als normaler Bridge-Port verwendet werden. Eine derartige Konfiguration ist beispielsweise sinnvoll, um den Datenverkehr, der in einem Netzwerk über die Bridge läuft, auf einen Rechner zu übertragen, der mit einem Span Port der Bridge verbunden ist. Um beispielsweise eine Kopie aller Ethernet-Rahmen über die Schnittstelle [.filename]#fxp0# zu übertragen:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1821,7 +1821,7 @@ Wenn die Schnittstelle eines über eine Bridge verbundenen Netzwerksegments als
+
Ein Beispiel für den Einsatz von Sticky-Adressen ist die Kombination einer Bridge mit mehreren VLANs, um einen Router zu konfigurieren, der einzelne Kundennetzwerke voneinander trennt, ohne dabei IP-Adressbereiche zu verschwenden. Für das folgende Beispiel nehmen wir an, dass sich der Client `CustomerA` im VLAN `vlan100` und der Client `CustomerB` im VLAN `vlan101` befinden. Die Bridge hat die IP-Adresse `192.168.0.1`:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1831,7 +1831,7 @@ In diesem Beispiel sehen beide Clients `192.168.0.1` als das Default-Gateway. Da
+
Sie können die Kommunikation zwischen den VLANs vollständig unterbinden, wenn Sie private Schnittstellen oder eine Firewall einsetzen:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1842,14 +1842,14 @@ Die maximale mögliche Anzahl an eindeutigen MAC-Adressen hinter einer Schnittst
+
Das folgende Beispiel setzt die maximale Anzahl von Netzgeräten für `CustomerA` für das VLAN `vlan100` auf 10.
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
Die Bridge unterstützt auch den Monitormodus. Dabei werden alle Pakete verworfen, nachdem sie von man:bpf[4] verarbeitet wurden. In diesem Modus erfolgt keine weitere Bearbeitung und auch keine Weiterleitung von Datenpaketen. Es ist daher möglich, die Eingabe von zwei oder mehr Netzwerkschnittstellen in einen einzigen gemeinsamen man:bpf[4]-Stream zu vereinen. Ein solcher Datenstrom ist beispielsweise nützlich, um den Datenverkehr für "network taps" zu rekonstruieren, die ihre RX/TX-Signale über verschiedene Schnittstellen senden. Um beispielsweise die Eingabe von vier Netzwerkschnittstellen in einzigen gemeinsamen Datenstrom zu vereinen:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1875,7 +1875,7 @@ bsnmpd_enable="YES"
Danach starten Sie man:bsnmpd[1]:
-[source,bash]
+[source,shell]
....
# service bsnmpd start
....
@@ -1890,7 +1890,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
Um eine einzelne Bridge über den IETF BRIDGE-MIB (RFC4188) zu überwachen:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1914,7 +1914,7 @@ Der Wert der Variable `dot1dStpTopChanges.0` ist hier 2, die STP-Topologie der B
Um mehrere Bridge-Schnittstellen zu überwachen, kann der private BEGEMOT-BRIDGE-MIB eingesetzt werden:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1935,7 +1935,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
Um die über den `mib-2.dot1dBridge`-Subtree überwachte Bridge-Schnittstelle zu ändern:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1976,7 +1976,7 @@ Da die Reihenfolge der Frames bei Ethernet zwingend eingehalten werden muss, fli
Fügen Sie auf dem Cisco(R)-Switch die Adapter _FastEthernet0/1_ und _FastEthernet0/2_ zu der channel-group _1_ hinzu:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1989,7 +1989,7 @@ interface FastEthernet0/2
Erstellen Sie auf der FreeBSD Maschine die man:lagg[4]-Schnittstelle unter Verwendung von _fxp0_ und _fxp1_ und starten Sie die Schnittstelle mit der IP-Adresse _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1999,7 +1999,7 @@ Erstellen Sie auf der FreeBSD Maschine die man:lagg[4]-Schnittstelle unter Verwe
Überprüfen Sie den Status der virtuellen Schnittstelle:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2017,7 +2017,7 @@ Ports, die als _ACTIVE_ markiert sind, sind Teil der aktiven Aggregations-Gruppe
Um den Status der Ports auf dem Switch anzuzeigen, benutzen Sie `show lacp neighbor`:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2054,7 +2054,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
====
Der ausfallsichere Modus kann verwendet werden, um zu einer zweiten Schnittstelle zu wechseln, sollte die Verbindung mit der Master-Schnittstelle ausfallen. Um den ausfallsicheren Modus zu konfigurieren, aktivieren Sie zunächst die zugrunde liegenden physikalischen Schnittstellen. Erstellen Sie dann die man:lagg[4]-Schnittstelle mit _fxp0_ als Master-Schnittstelle und _fxp1_ als sekundäre Schnittstelle. Der virtuellen Schnittstelle wird die IP-Adresse _10.0.0.15/24_ zugewiesen:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2064,7 +2064,7 @@ Der ausfallsichere Modus kann verwendet werden, um zu einer zweiten Schnittstell
Die virtuelle Schnittstelle sollte in etwa so aussehen:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2112,7 +2112,7 @@ Wenn der Treiber für die drahtlose Schnittstelle nicht im `GENERIC`-Kernel oder
In diesem Beispiel ist die Ethernet-Schnittstelle _re0_ der Master und die drahtlose Schnittstelle _wlan0_ der Failover. Die Schnittstelle _wlan0_ wurde aus der physischen Schnittstelle _ath0_ erstellt, und die Ethernet-Schnittstelle wird mit der MAC-Adresse der drahtlosen Schnittstelle konfiguriert. Im ersten Schritt wird die MAC-Adresse der drahtlosen Schnittstelle ermittelt:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2130,21 +2130,21 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Ersetzen Sie _ath0_ durch den Namen der drahtlosen Schnittstelle. Die `ether`-Zeile wird die MAC-Adresse der angegebenen Schnittstelle enthalten. Ändern Sie nun die MAC-Adresse der zugrunde liegenden Ethernet-Schnittstelle:
-[source,bash]
+[source,shell]
....
# ifconfig re0 ether b8:ee:65:5b:32:59
....
Starten Sie die drahtlose Schnittstelle, aber ohne eine IP-Adresse zu setzen. Ersetzen Sie _FR_ durch den entsprechenden Ländercode:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 country FR ssid my_router up
....
Stellen Sie sicher, dass die _re0_-Schnittstelle aktiv ist. Erstellen Sie die man:lagg[4]-Schnittstelle mit _re0_ als Master und _wlan0_ als Failover:
-[source,bash]
+[source,shell]
....
# ifconfig re0 up
# ifconfig lagg0 create
@@ -2153,7 +2153,7 @@ Stellen Sie sicher, dass die _re0_-Schnittstelle aktiv ist. Erstellen Sie die ma
Die virtuelle Schnittstelle sollte in etwa so aussehen:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2169,7 +2169,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Starten Sie dann den DHCP-Client, um eine IP-Adresse zu erhalten:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2217,7 +2217,7 @@ Die in diesem Abschnitt dargestellten Schritte konfigurieren die in FreeBSD enth
[.procedure]
. Erstellen Sie das Root-Verzeichnis, welches eine FreeBSD-Installation enthält und über NFS eingehangen werden kann:
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2239,7 +2239,7 @@ Exportieren Sie das Root-Verzeichnis über NFS, indem Sie folgende Zeile in [.fi
. Starten Sie den NFS-Server:
+
-[source,bash]
+[source,shell]
....
# service nfsd start
....
@@ -2265,7 +2265,7 @@ Einige PXE-Versionen benötigen die TCP-Version von TFTP. In diesem Fall können
. Starten Sie man:inetd[8]:
+
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -2273,7 +2273,7 @@ Einige PXE-Versionen benötigen die TCP-Version von TFTP. In diesem Fall können
. Installieren Sie das Basissystem nach [.filename]#${NFSROOTDIR}#, indem Sie die offiziellen Archive entpacken, oder ein neues Basissystem und einen FreeBSD-Kernel erstellen. Detaillierte Anweisungen hierzu finden Sie im crossref:cutting-edge[makeworld,“FreeBSD aus den Quellen aktualisieren”]. Vergessen Sie jedoch nicht `DESTDIR=_${NFSROOTDIR}_` hinzuzufügen, wenn Sie die Kommandos `make installkernel` und `make installworld` ausführen.
. Testen Sie den TFTP-Server und vergewissern Sie sich, dass Sie den Bootloader herunterladen können, der über PXE bereitgestellt wird:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2291,7 +2291,7 @@ Received 264951 bytes in 0.1 seconds
Ersetzen Sie _myhost.example.com_ durch den Hostnamen oder die IP-Adresse des NFS-Servers. In diesem Beispiel wird das Root-Dateisystem schreibgeschützt eingehangen, um ein potenzielles Löschen des Inhalts durch die NFS-Clients zu verhindern.
. Setzen Sie das root-Passwort in der PXE-Umgebung für Client-Maschinen, die über PXE starten:
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2302,7 +2302,7 @@ Ersetzen Sie _myhost.example.com_ durch den Hostnamen oder die IP-Adresse des NF
Booten Sie von einem NFS-Root-Volume, so erkennt [.filename]#/etc/rc# dies und startet daraufhin das [.filename]#/etc/rc.initdiskless# Skript. Lesen Sie die Kommentare in diesem Skript um zu verstehen, was dort vor sich geht. Weil das NFS-Root-Verzeichnis schreibgeschützt ist, wir aber Schreibzugriff für [.filename]#/etc# und [.filename]#/var# benötigen, müssen wir diese Verzeichnisse über Speicher-Dateisysteme (memory backed file system) einbinden.
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2357,7 +2357,7 @@ dhcpd_enable="YES"
Starten Sie anschließend den DHCP-Dienst:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -2376,7 +2376,7 @@ image::pxe-nfs.png[]
. Schauen Sie in [.filename]#/var/log/xferlog# auf dem TFTP-Server und vergewissern Sie sich, dass die [.filename]#pxeboot#-Datei von der richtigen Adresse heruntergeladen wurde. Um die obige Konfiguration von [.filename]#/usr/local/etc/dhcpd.conf# zu testen, geben Sie folgendes ein:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2386,7 +2386,7 @@ Received 264951 bytes in 0.1 seconds
Weitere Informationen finden Sie in man:tftpd[8] und man:tftp[1]. Die `BUGS`-Sektionen dieser Seiten dokumentieren einige Einschränkungen von TFTP.
. Achten Sie darauf, dass Sie das Root-Dateisystem über NFS einhängen können. Auch hier können Sie Ihre Einstellungen aus [.filename]#/usr/local/etc/dhcpd.conf# wie folgt testen:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2429,7 +2429,7 @@ Eine weitere Möglichkeit ist die Darstellung der letzten 32 Bit in der bekannte
Benutzen Sie man:ifconfig[8], um die IPv6-Adresse eines FreeBSD-Systems anzuzeigen:
-[source,bash]
+[source,shell]
....
# ifconfig
rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
@@ -2639,7 +2639,7 @@ carp_load="YES"
So laden Sie das Modul ohne Neustart:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2685,7 +2685,7 @@ Durch die beiden konfigurierten CARPVHIDs ist `hostc.example.org` in der Lage fe
====
Auch wenn der ursprüngliche Master-Server wieder verfügbar wird, gibt `hostc.example.org` die virtuelle IP-Adresse nicht automatisch wieder frei. Dazu muss Preemption aktiviert werden. Preemption ist standardmäßig deaktiviert und wird über die man:sysctl[8]-Variable `net.inet.carp.preempt` gesteuert. Der Administrator kann den Backup-Server zwingen, die IP-Adresse an den Master zurückzugeben:
-[source,bash]
+[source,shell]
....
# ifconfig em0 vhid 1 state backup
....
@@ -2710,7 +2710,7 @@ if_carp_load="YES"
So laden Sie das Modul ohne Neustart:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2724,7 +2724,7 @@ device carp
Als nächstes erstellen Sie auf jedem Rechner eine CARP-Schnittstelle:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2764,7 +2764,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
Preemption ist im [.filename]#GENERIC#-Kernel deaktiviert. Haben Sie jedoch Preemption in einem angepassten Kernel aktiviert, dass `hostc.example.org` die virtuelle IP-Adresse nicht wieder an den Master-Server zurückgibt. Der Administrator kann jedoch den Backup-Server dazu zwingen, die übernommene IP-Adresse wieder an den Master-Server zurückzugeben:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
@@ -2785,7 +2785,7 @@ Für die Konfiguration eines VLAN werden zwei Informationen benötigt: die verwe
Das folgende Kommando konfiguriert ein VLAN mit der Netzwerkschnittstelle `em0` und dem VLAN-Tag `5`:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24
....
@@ -2809,14 +2809,14 @@ Es ist sinnvoll, einer Schnittstelle einen symbolischen Namen zuzuweisen, so das
Der folgende Befehl konfiguriert VLAN `5` auf der Netzwerkkarte `em0`. Die Schnittstelle bekommt den Namen `cameras` und eine IP-Adresse `_192.168.20.20_` mit einem `24`-Bit Präfix.
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 name cameras inet 192.168.20.20/24
....
Dieser Befehl konfiguriert die Schnittstelle mit dem Namen `video`:
-[source,bash]
+[source,shell]
....
# ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24
....
diff --git a/documentation/content/de/books/handbook/audit/_index.adoc b/documentation/content/de/books/handbook/audit/_index.adoc
index eda461cb5f..af9d40ae77 100644
--- a/documentation/content/de/books/handbook/audit/_index.adoc
+++ b/documentation/content/de/books/handbook/audit/_index.adoc
@@ -96,7 +96,7 @@ auditd_enable="YES"
Starten Sie anschließend den Audit-Daemon:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -310,7 +310,7 @@ Weil Audit-Trails werden im binären BSM-Format gespeichert werden, gibt es vers
Der folgende Befehl schreibt den gesamten Inhalt einer angegebenen Audit-Protokolldatei in eine Textdatei:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -336,7 +336,7 @@ Die Ausgabe im XML-Format wird ebenfalls unterstützt und kann über die Option
Da Audit-Protokolldateien sehr groß sein können, kann mit Hilfe von `auditreduce` auch nur eine Teilmenge der Datensätze ausgewählt werden. Dieses Beispiel selektiert alle Datensätze des Benutzers `trhodes` aus der Datei [.filename]#AUDITFILE#:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -347,7 +347,7 @@ Mitglieder der Gruppe `audit` sind berechtigt, Audit-Pfade in [.filename]#/var/a
Audit-Pipes sind nachgebildete (geklonte) Pseudo-Geräte, welche es Applikationen erlauben, die laufenden Audit-Datensätze anzuzapfen. Dies ist vorrangig für Autoren von Intrusion Detection Software und Systemüberwachungsprogrammen von Bedeutung. Allerdings ist das Audit-Pipe-Gerät ein angenehmer Weg für den Administrator, aktive Überwachung zu gestatten, ohne Gefahr von Problemen durch Besitzerrechte der Audit-Pfad-Datei oder Unterbrechung des Stroms von Ereignissen durch Log-Rotation. Um den laufenden Audit-Ereignisstrom zu verfolgen, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -371,7 +371,7 @@ Es ist sehr leicht, Rückmeldungszyklen von Audit-Ereignissen hervorzurufen, in
Audit-Pfade werden vom Kernel geschrieben und vom Audit-Daemon man:auditd[8] verwaltet. Administratoren sollten nicht versuchen, man:newsyslog.conf[5] oder andere Werkzeuge zu benutzen, um Audit-Protokolldateien direkt zu rotieren. Stattdessen sollte `audit` benutzt werden, um die Auditierung zu beenden, das Audit-System neu zu konfigurieren und eine Log-Rotation durchzuführen. Der folgende Befehl veranlasst den Audit-Daemon, eine neue Protokolldatei anzulegen und dem Kernel zu signalisieren, die neue Datei zu nutzen. Die alte Datei wird beendet und umbenannt. Ab diesem Zeitpunkt kann sie vom Administrator bearbeitet werden:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/de/books/handbook/basics/_index.adoc b/documentation/content/de/books/handbook/basics/_index.adoc
index 792d30fc39..dd72d5e028 100644
--- a/documentation/content/de/books/handbook/basics/_index.adoc
+++ b/documentation/content/de/books/handbook/basics/_index.adoc
@@ -69,7 +69,7 @@ Dieser Abschnitt behandelt die folgenden Themen:
Wenn das FreeBSD-System so konfiguriert wurde, dass es ohne eine grafische Benutzeroberfläche startet, wird das System nach dem Start einen Anmeldeprompt ausgeben, wie in diesem Beispiel zu sehen:
-[source,bash]
+[source,shell]
....
FreeBSD/amd64 (pc3.example.org) (ttyv0)
@@ -147,21 +147,21 @@ __Setzen Sie `insecure` nicht leichtfertig ein__! Wenn das `root`-Passwort verge
Der Standard-Videomodus der FreeBSD-Konsole kann auf jeden Modus eingestellt werden, der von der Grafikkarte und dem Monitor unterstützt wird (beispielsweise 1024x768 oder 1280x1024). Um eine andere Einstellung zu verwenden, muss das `VESA`-Modul geladen werden:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
Um festzustellen, welche Video-Modi von der Hardware unterstützt werden, nutzen Sie man:vidcontrol[1]. Um eine Liste aller unterstützten Modi zu sehen, verwenden Sie diesen Befehl:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
Die Ausgabe dieses Befehls listet alle Videomodi, die von der Hardware unterstützt werden. Um einen neuen Video-Modi zu wählen, wird der entsprechende Modus als `root`-Benutzer an man:vidcontrol[1] übergeben:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -265,7 +265,7 @@ In diesem Beispiel wird der Benutzer nur zum Superuser, um `make install` auszuf
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -320,7 +320,7 @@ Das Werkzeug man:adduser[8] arbeitet interaktiv und führt durch die einzelnen S
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -384,7 +384,7 @@ Als Vorgabe wird ein interaktiver Modus benutzt.
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -416,7 +416,7 @@ In <<users-modifying-chpass-su>> hat der Superuser `chpass jru` eingegeben. Es w
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -442,7 +442,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/tcsh
@@ -469,7 +469,7 @@ Jeder Benutzer kann mit man:passwd[1] einfach sein Passwort ändern. Um eine ver
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -488,7 +488,7 @@ Der Superuser kann jedes beliebige Passwort ändern, indem er den Benutzernamen
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -523,7 +523,7 @@ Wenn Sie [.filename]#/etc/group# nicht von Hand editieren möchten, können Sie
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -538,7 +538,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -553,7 +553,7 @@ Als Argument von `-M` geben Sie eine Komma separierte Liste von Mitgliedern an,
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -568,7 +568,7 @@ Die Argumente zur Option `-m` ist eine durch Komma getrennte Liste von Benutzern
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
@@ -633,7 +633,7 @@ In Tabelle 4.1 sind die einzelnen nummerischen und alphabetischen Möglichkeiten
Benutzen Sie das Argument `-l` mit man:ls[1], um eine ausführliche Verzeichnisauflistung zu sehen, die in einer Spalte die Zugriffsrechte für den Besitzer, die Gruppe und alle anderen enthält. Die Ausgabe von `ls -l` könnte wie folgt aussehen:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -714,14 +714,14 @@ Symbolische Zugriffsrechte verwenden Zeichen anstelle von oktalen Werten, um die
Diese symbolischen Werte werden zusammen mit man:chmod[1] verwendet. Beispielsweise würde der folgende Befehl den Zugriff auf _FILE_ für alle anderen Benutzer verbieten:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Wenn Sie mehr als eine Änderung der Rechte einer Datei vornehmen wollen, können Sie eine durch Kommata getrennte Liste der Rechte angeben. Das folgende Beispiel entzieht der Gruppe und der Welt die Schreibberechtigung auf _FILE_ und fügt für jeden Ausführungsrechte hinzu:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -732,21 +732,21 @@ Zusätzlich zu den Zugriffsrechten unterstützt FreeBSD auch die Nutzung von "Da
Datei-Flags werden mit man:chflags[1] verändert. Um beispielsweise auf der Datei [.filename]#file1# das "unlöschbar"-Flag zu aktivieren, geben Sie folgenden Befehl ein:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Um dieses Flag zu deaktivieren, setzen Sie ein "no" vor `sunlink`:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Um die Flags einer Datei anzuzeigen, verwenden Sie man:ls[1] zusammen mit `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -768,7 +768,7 @@ Die reale Benutzer-ID ist die UID, welche den Prozess besitzt oder gestartet hat
Die setuid-Berechtigung kann durch das Voranstellen bei einer Berechtigungsgruppe mit der Nummer Vier (4) gesetzt werden, wie im folgenden Beispiel gezeigt wird:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -791,7 +791,7 @@ Um dies in Echtzeit zu beobachten, öffnen Sie zwei Terminals. Starten Sie auf e
Im Terminal A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -799,12 +799,12 @@ Old Password:
Im Terminal B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -816,14 +816,14 @@ Die `setgid`-Berechtigung führt die gleiche Aktion wie die `setuid`-Berechtigun
Um die `setgid`-Berechtigung auf einer Datei zu setzen, geben Sie man:chmod[1] eine führende Zwei (2) mit:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Beachten Sie in der folgenden Auflistung, dass das `s` sich jetzt in dem Feld befindet, das für die Berechtigungen der Gruppe bestimmt ist:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -837,19 +837,19 @@ Die `setuid` und `setgid` Berechtigungs-Bits können die Systemsicherheit verrin
Wenn das `sticky bit` auf einem Verzeichnis angewendet wird, erlaubt es das Löschen von Dateien nur durch den Besitzer der Datei. Dies ist nützlich, um die Löschung von Dateien in öffentlichen Verzeichnissen wie [.filename]#/tmp#, durch Benutzer denen diese Dateien nicht gehören, zu verhindern. Um diese Berechtigung anzuwenden, stellen Sie der Berechtigung eine Eins (1) voran:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Das `sticky bit` kann anhand des `t` ganz am Ende der Berechtigungen abgelesen werden.
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -1177,7 +1177,7 @@ Dateisysteme werden mit man:mount[8] eingehängt. In der grundlegenden Form wird
[example]
====
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -1242,7 +1242,7 @@ Um die Prozesse auf dem System zu sehen, benutzen Sie man:ps[1] und man:top[1].
In der Voreinstellung zeigt man:ps[1] nur die laufenden Prozesse, die dem Benutzer gehören. Zum Beispiel:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -1256,7 +1256,7 @@ man:ps[1] besitzt viele Optionen, um die angezeigten Informationen zu beeinfluss
Die Ausgabe von man:top[1] sieht in etwa so aus:
-[source,bash]
+[source,shell]
....
% top
last pid: 9609; load averages: 0.56, 0.45, 0.36 up 0+00:20:03 10:21:46
@@ -1309,7 +1309,7 @@ Das folgende Beispiel zeigt, wie Sie man:inetd[8] ein Signal schicken. Die Konfi
. Suchen Sie mit man:pgrep[1] die PID des Prozesses, dem Sie ein Signal schicken wollen. In diesem Beispiel ist die PID von man:inetd[8] 198:
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -1317,7 +1317,7 @@ Das folgende Beispiel zeigt, wie Sie man:inetd[8] ein Signal schicken. Die Konfi
. Benutzen Sie man:kill[1], um ein Signal zu senden. Da man:inetd[8] dem Benutzer `root` gehört, müssen Sie zuerst mit man:su[1] `root` werden:
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1396,14 +1396,14 @@ Ein weiteres Merkmal der Shell ist der Gebrauch von Umgebungsvariablen. Dies sin
Das Setzen von Umgebungsvariablen unterscheidet sich von Shell zu Shell. In man:tcsh[1] und man:csh[1] wird dazu `setenv` benutzt. man:sh[1] und `bash` benutzen `export` um Umgebungsvariablen zu setzen. Dieses Beispiel für die man:tcsh[1]-Shell setzt die Variable `EDITOR` auf [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Der entsprechende Befehl für `bash` wäre:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1421,7 +1421,7 @@ Der einfachste Weg die Standard Shell zu ändern, ist `chsh` zu benutzen. `chsh`
Alternativ setzt `chsh -s` die Shell, ohne dabei einen Editor aufzurufen. Um die Shell zum Beispiel auf `bash` zu ändern, geben Sie folgenden Befehl ein:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1430,7 +1430,7 @@ Alternativ setzt `chsh -s` die Shell, ohne dabei einen Editor aufzurufen. Um die
====
Die neue Shell _muss_ in [.filename]#/etc/shells# aufgeführt sein. Wurde die Shell aus der FreeBSD Ports-Sammlung installiert, so wie in crossref:ports[ports,Installieren von Anwendungen: Pakete und Ports] beschrieben, sollte sie automatisch zu dieser Datei hinzugefügt worden sein. Wenn der Eintrag fehlt, nutzen Sie folgenden Befehl, und ersetzen Sie den Pfad mit dem Pfad zur gewünschten Shell:
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash >> /etc/shells
....
@@ -1444,21 +1444,21 @@ Die UNIX(R)-Shell ist nicht nur ein Kommandozeileninterpreter, sie ist ein leist
Als Redirection bezeichnet man die Umleitung der Ein- oder Ausgabe in einen anderen Befehl oder Datei. Um beispielsweise die Ausgabe des Befehls man:ls[1] in eine Datei zu schreiben, muss die Ausgabe umgeleitet werden:
-[source,bash]
+[source,shell]
....
% ls > Verzeichnis_Ausgabe.txt
....
Die Datei [.filename]#Verzeichnis_Ausgabe.txt# enthält nun den Verzeichnisinhalt. Einige Befehle, wie beispielsweise man:sort[1], können verwendet werden um von der Eingabe zu lesen. Wenn Sie die Ausgabe sortieren möchten, müssen Sie die Eingabe umleiten:
-[source,bash]
+[source,shell]
....
% sort < Verzeichnis_Ausgabe.txt
....
Die Eingabe wird sortiert und auf dem Bildschirm ausgegeben. Um diese Ausgabe wiederum in eine Datei umzuleiten, kann die Ausgabe von man:sort[1] umgeleitet werden:
-[source,bash]
+[source,shell]
....
% sort < Verzeichnis_Ausgabe.txt > Sortierte_Ausgabe.txt
....
@@ -1469,7 +1469,7 @@ Die Verwendung von Deskriptoren erlaubt es der Shell, die Ein- und Ausgabe von v
Der UNIX(R) Pipe-Operator "|" wird verwendet, um die Ausgabe eines Kommandos an ein anderes Programm zu übergeben. Grundsätzlich bedeutet dies, dass die Standardausgabe eines Programms als Standardeingabe für ein weiteres Programm verwendet wird. Ein Beispiel:
-[source,bash]
+[source,shell]
....
% cat Verzeichnis_Auflistung.txt | sort | less
....
@@ -1504,14 +1504,14 @@ Auf die meisten Geräte wird unter FreeBSD über spezielle Gerätedateien im [.f
Die umfassendste Dokumentation rund um FreeBSD gibt es in Form von Manualpages. Annähernd jedes Programm im System bringt eine kurze Referenzdokumentation mit, die die grundsätzliche Funktion und verschiedene Parameter erklärt. Diese Manuals können mit `man` eingesehen werden:
-[source,bash]
+[source,shell]
....
% man Kommando
....
_Kommando_ ist der Name des Kommandos, über das man etwas erfahren will. Um beispielsweise mehr über das Kommando man:ls[1] zu erfahren, geben Sie ein:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1530,7 +1530,7 @@ Die Manualpages sind in nummerierte Sektionen unterteilt, die jeweils ein Thema
In einigen Fällen kann dasselbe Thema in mehreren Sektionen auftauchen. Es gibt zum Beispiel ein `chmod` Benutzerkommando und einen `chmod()` Systemaufruf. Um man:man[1] mitzuteilen, aus welcher Sektion die Information angezeigt werden soll, kann die Sektionsnummer mit angeben werden:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1539,7 +1539,7 @@ Dies wird Ihnen die Manualpage für das Benutzerkommando man:chmod[1] zeigen. Ve
Wenn das Kommando nicht bekannt ist, kann `man -k` benutzt werden, um nach Schlüsselbegriffen in den Kommandobeschreibungen zu suchen:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1548,7 +1548,7 @@ Dieser Befehl zeigt eine Liste von Kommandos, deren Beschreibung das Schlüsselw
Um die Beschreibungen der Kommandos in [.filename]#/usr/bin# zu lesen, geben Sie ein:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f * | more
@@ -1556,7 +1556,7 @@ Um die Beschreibungen der Kommandos in [.filename]#/usr/bin# zu lesen, geben Sie
Dasselbe erreichen Sie durch Eingabe von:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis * | more
@@ -1569,7 +1569,7 @@ FreeBSD enthält verschiedene Anwendungen und Utilities der Free Software Founda
Um man:info[1] zu benutzen, geben Sie ein:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/de/books/handbook/boot/_index.adoc b/documentation/content/de/books/handbook/boot/_index.adoc
index ce53d5e9e1..dd00ea098b 100644
--- a/documentation/content/de/books/handbook/boot/_index.adoc
+++ b/documentation/content/de/books/handbook/boot/_index.adoc
@@ -100,7 +100,7 @@ Der vom FreeBSD-Installationsprogramm in der Voreinstelung installierte MBR basi
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -112,7 +112,7 @@ Default: F2
Diverse Betriebssysteme überschreiben den existierenden MBR, wenn sie nach FreeBSD installiert werden. Falls dies passiert, kann mit folgendem Kommando der momentane MBR durch den FreeBSD-MBR ersetzt werden:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 Gerät
....
@@ -135,7 +135,7 @@ Die zweite Phase, [.filename]#boot2#, ist schon ein wenig umfangreicher und besi
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -146,7 +146,7 @@ boot:
Um das installierte [.filename]#boot1# und [.filename]#boot2# zu ersetzen, benutzen Sie `bsdlabel`, wobei _diskslice_ das Laufwerk und die Slice darstellt, von dem gebootet wird, beispielsweise [.filename]#ad0s1# für die erste Slice auf der ersten IDE-Festplatte:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -219,14 +219,14 @@ In der Voreinstellung wartet der loader 10 Sekunden lang auf eine Tastatureingab
Hier ein paar praktische Beispiele für die Bedienung des Loaders. Um den gewöhnlichen Kernel im Single-User Modus zu starten:
-[source,bash]
+[source,shell]
....
boot -s
....
Um alle gewöhnlichen Kernelmodule zu entladen und dann den alten, oder einen anderen Kernel zu laden:
-[source,bash]
+[source,shell]
....
unload
/pfad/zur/kerneldatei
@@ -236,7 +236,7 @@ Verwenden Sie [.filename]#/boot/GENERIC/kernel#, um auf den allgemeinen Kernel z
Der folgende Befehl lädt die gewöhnlichen Module mit einem anderen Kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="meinkernel"
@@ -245,7 +245,7 @@ boot-conf
Um ein automatisiertes Kernelkonfigurations-Skript zu laden, geben Sie ein:
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -380,14 +380,14 @@ Nach dem Systemstart können alle Variablen mit man:kenv[1] angezeigt werden.
Pro Zeile enthält [.filename]#/boot/device.hints# eine Variable. Kommentare werden durch `#` eingeleitet. Die verwendete Syntax lautet:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
Der Boot-Loader verwendet die nachstehende Syntax:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/de/books/handbook/bsdinstall/_index.adoc b/documentation/content/de/books/handbook/bsdinstall/_index.adoc
index bfdf27f03a..642107ce91 100644
--- a/documentation/content/de/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/de/books/handbook/bsdinstall/_index.adoc
@@ -197,7 +197,7 @@ Dieses Beispiel verwendet [.filename]#/dev/da0# als das Zielgerät, auf welches
====
. Das Werkzeug man:dd[1] steht unter BSD, Linux(R) und Mac OS(R)-Systemen zur Verfügung. Um das Image zu brennen, verbinden Sie den USB-Stick mit dem System und bestimmen Sie dessen Gerätenamen. Geben Sie dann den Namen der Installationsdatei und den Gerätenamen des USB-Sticks an. Dieses Beispiel schreibt die Installation für amd64 auf das erste USB-Gerät im FreeBSD-System.
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-12.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -259,7 +259,7 @@ Falls der Computer wie normal startet und das bestehende Betriebssystem lädt, b
Auf den meisten Maschinen können Sie kbd:[C] auf der Tastatur gedrückt halten, um von der CD zu starten. Andernfalls, halten Sie kbd:[Command+Option+O+F], oder kbd:[Windows+Alt+O+F] auf nicht-Apple(R) Tastaturen gedrückt. Geben Sie an der `0 >`-Eingabeaufforderung folgendes ein:
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -888,7 +888,7 @@ Um Nachrichten, die während des Bootens angezeigt wurden, zu sehen, aktivieren
Wenn sshd in <<bsdinstall-config-serv>> aktiviert wurde, ist der erste Start ein bisschen langsamer, weil das System die RSA- und DSA-Schlüssel erzeugen muss. Die nachfolgenden Startvorgänge werden dann wieder schneller sein. Wie in diesem Beispiel zu sehen ist, werden die Fingerabdrücke der Schlüssel am Bildschirm ausgegeben:
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1043,7 +1043,7 @@ Hersteller raten meist von einer Aktualisierung des Mainboard-BIOS ab, außer es
Wenn das System während der Geräteerkennung beim Starten hängt oder sich während der Installation merkwürdig verhält, ist ACPI vielleicht der Übeltäter. FreeBSD macht auf i386- und amd64-Plattformen starken Gebrauch vom ACPI-Dienst, um dem System bei der Konfiguration während des Startvorgangs zu helfen. Leider existieren immer noch Fehler im ACPI-Treiber, in den Mainboards und der BIOS-Firmware. ACPI kann durch setzen der Einstellung `hint.acpi.0.disabled` im dritten Teil des Bootloaders deaktiviert werden:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/de/books/handbook/config/_index.adoc b/documentation/content/de/books/handbook/config/_index.adoc
index f4fbe909a0..5ae1e236c3 100644
--- a/documentation/content/de/books/handbook/config/_index.adoc
+++ b/documentation/content/de/books/handbook/config/_index.adoc
@@ -158,7 +158,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <.>
Rufen Sie `crontab` im Editor-Modus auf, um eine Benutzer-crontab zu erstellen:
-[source,bash]
+[source,shell]
....
% crontab -e
....
@@ -187,7 +187,7 @@ Fügen Sie dann für jedes Kommando oder Skript eine Zeile hinzu, mit der Angabe
Bevor Sie ein eigenes Skript verwenden, stellen Sie sicher, dass es ausführbar ist und dass es mit den wenigen Umgebungsvariablen von cron funktioniert. Um die Umgebung nachzubilden, die der obige cron-Eintrag bei der Ausführung verwenden würde, benutzen Sie dieses Kommando:
-[source,bash]
+[source,shell]
....
% env -i SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/home/dru LOGNAME=dru /usr/home/dru/bin/mycustomscript.sh
....
@@ -197,7 +197,7 @@ Die Umgebung von cron wird in man:crontab[5] beschrieben. Es ist wichtig, dass s
Wenn Sie mit der Bearbeitung der crontab fertig sind, speichern Sie die Datei. Sie wird automatisch installiert und cron wird die darin enthalten Cronjobs zu den angegebenen Zeiten ausführen. Um die Cronjobs in einer crontab aufzulisten, verwenden Sie diesen Befehl:
-[source,bash]
+[source,shell]
....
% crontab -l
0 14 * * * /usr/home/dru/bin/mycustomscript.sh
@@ -205,7 +205,7 @@ Wenn Sie mit der Bearbeitung der crontab fertig sind, speichern Sie die Datei. S
Um alle Cronjobs einer Benutzer-crontab zu löschen, verwenden Sie diesen Befehl:
-[source,bash]
+[source,shell]
....
% crontab -r
remove crontab for dru? y
@@ -216,7 +216,7 @@ remove crontab for dru? y
FreeBSD verwendet die vom man:rc[8]-System bereit gestellten Startskripten beim Systemstart und für die Verwaltung von Diensten. Die Skripte sind in [.filename]#/etc/rc.d# abgelegt und bieten grundlegende Dienste an, die über die Optionen `start`, `stop` und `restart` des man:service[8] Kommandos kontrolliert werden können. Beispielsweise kann man:sshd[8] mit dem nachstehenden Kommando neu gestartet werden:
-[source,bash]
+[source,shell]
....
# service sshd restart
....
@@ -232,14 +232,14 @@ Wenn dort bereits die Zeile `natd_enable="NO"` existiert, ändern Sie `NO` in `Y
Da das man:rc[8]-System primär zum automatischen Starten und Stoppen von Systemdiensten dient, funktionieren die Optionen `start`, `stop` und `restart` nur, wenn die entsprechenden Variablen in [.filename]#/etc/rc.conf# gesetzt sind. Beispielsweise funktioniert `sshd restart` nur dann, wenn in [.filename]#/etc/rc.conf# die Variable `sshd_enable` auf `YES` gesetzt wurde. Wenn Sie die Optionen `start`, `stop` oder `restart` unabhängig von den Einstellungen in [.filename]#/etc/rc.conf# benutzen wollen, müssen Sie den Optionen mit dem Präfix "one" verwenden. Um beispielsweise `sshd` unabhängig von den Einstellungen in [.filename]#/etc/rc.conf# neu zu starten, benutzen Sie das nachstehende Kommando:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
Ob ein Dienst in [.filename]#/etc/rc.conf# aktiviert ist, können Sie herausfinden, indem Sie das entsprechende man:rc[8]-Skript mit der Option `rcvar` aufrufen. Dieses Beispiel prüft, ob der `sshd`-Dienst in [.filename]#/etc/rc.conf# aktiviert ist:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -255,7 +255,7 @@ Die Zeile `# sshd` wird von dem Kommando ausgegeben; sie kennzeichnet nicht die
Ob ein Dienst läuft, kann mit `status` abgefragt werden. Das folgende Kommando überprüft, ob `sshd` auch wirklich gestartet wurde:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -265,7 +265,7 @@ Einige Dienste können über die Option `reload` neu initialisiert werden. Dazu
Die meisten Systemdienste werden beim Systemstart vom man:rc[8]-System gestartet. Zum Beispiel aktiviert das Skript [.filename]#/etc/rc.d/bgfsck# die Prüfung von Dateisystemen im Hintergrund. Das Skript gibt die folgende Meldung aus, wenn es gestartet wird:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -336,7 +336,7 @@ Wenn die Karte unterstützt wird, müssen Sie den Treiber für die Karte bestimm
Die Treiber für gebräuchliche Netzwerkkarten sind schon im [.filename]#GENERIC#-Kernel enthalten, so dass die Karte während des Systemstarts erkannt werden sollte. Die Systemmeldungen können Sie sich mit `more /var/run/dmesg.boot` ansehen. Mit der Leertaste können Sie durch den Text blättern. In diesem Beispiel findet das System zwei Karten, die den man:dc[4]-Treiber benutzen:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -378,21 +378,21 @@ Die Architektur des Treibers muss zur jeweiligen Version von FreeBSD passen. Ben
Als Nächstes kompilieren Sie den binären Treiber, um ein Kernelmodul zu erzeugen. Dazu rufen Sie als `root` man:ndisgen[8] auf:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
Dieses Kommando arbeitet interaktiv, benötigt es weitere Informationen, so fragt es Sie danach. Das Ergebnis ist ein neu erzeugtes Kernelmodul im aktuellen Verzeichnis. Benutzen Sie man:kldload[8] um das neue Modul zu laden:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER.ko
....
Neben dem erzeugten Kernelmodul müssen auch die Kernelmodule [.filename]#ndis.ko# und [.filename]#if_ndis.ko# geladen werden. Dies passiert automatisch, wenn Sie ein von man:ndis[4] abhängiges Modul laden. Andernfalls können die Module mit den folgenden Kommandos manuell geladen werden:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -402,7 +402,7 @@ Der erste Befehl lädt den man:ndis[4]-Miniport-Treiber, der zweite das tatsäch
Überprüfen Sie die Ausgabe von man:dmesg[8] auf eventuelle Fehler während des Ladevorgangs. Gab es dabei keine Probleme, sollte die Ausgabe wie folgt aussehen:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -426,7 +426,7 @@ Nachdem der richtige Treiber für die Karte geladen ist, muss die Karte konfigur
Das nachstehende Kommando zeigt die Konfiguration der Netzwerkkarten an:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -469,7 +469,7 @@ Der Adapter [.filename]#dc0# aus dem Beispiel ist aktiv. Sie erkennen das an den
Wäre die Karte nicht konfiguriert, würde die Ausgabe von man:ifconfig[8] so aussehen:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -510,7 +510,7 @@ Wenn das Netzwerk kein DNS benutzt, können Sie in [.filename]#/etc/hosts# die N
====
Falls kein DHCP-Server zur Verfügung steht, Sie aber Zugang zum Internet benötigen, müssen Sie das Standard-Gateway und die Nameserver manuell konfigurieren:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="Ihr_Default_Gateway"' >> /etc/rc.conf
# echo 'nameserver Ihr_DNS_Server' >> /etc/resolv.conf
@@ -523,7 +523,7 @@ Falls kein DHCP-Server zur Verfügung steht, Sie aber Zugang zum Internet benöt
Nachdem die notwendigen Änderungen in [.filename]#/etc/rc.conf# gespeichert wurden, kann das System neu gestartet werden, um die Konfiguration zu testen und zu überprüfen, ob das System ohne Fehler neu gestartet wurde. Alternativ können Sie mit folgenden Befehl die Netzwerkeinstellungen neu initialisieren:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -532,7 +532,7 @@ Nachdem die notwendigen Änderungen in [.filename]#/etc/rc.conf# gespeichert wur
====
Falls in [.filename]#/etc/rc.conf# ein Default-Gateway definiert wurde, müssen Sie auch den folgenden Befehl ausführen:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -547,7 +547,7 @@ Um zu prüfen, ob die Ethernet-Karte richtig konfiguriert ist, testen Sie zunäc
Zuerst, der Test des Adapters:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -562,7 +562,7 @@ PING 192.168.1.3 (192.168.1.3): 56 data bytes
round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
....
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -805,14 +805,14 @@ Mehrere `-a`-Optionen können angegeben werden, um die Protokollierung von mehre
Zum Schluss muss die Protokolldatei erstellt werden:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
Zu diesem Zeitpunkt sollte `syslogd` neu gestartet und überprüft werden:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -843,14 +843,14 @@ Als nächstes muss der Protokollserver in der [.filename]#/etc/syslog.conf# des
Nachdem die Änderungs gespeichert wurden, muss `syslogd` neu gestartet werden, damit die Änderungen wirksam werden:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Um zu testen, ob Protokollnachrichten über das Netzwerk gesendet werden, kann man:logger[1] auf dem Client benutzt werden, um eine Nachricht an syslogd zu schicken:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -868,14 +868,14 @@ Wenn sich die Hosts gegenseitig mit `ping` erreichen können, der Server aber im
syslogd_flags="-d -a logclient.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Informationen wie diese werden sofort nach dem Neustart auf der Konsole erscheinen:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -889,7 +889,7 @@ rejected in rule 0 due to name mismatch.
In diesem Beispiel werden die Nachrichten aufgrund eines fehlerhaften Namens abgewiesen. Der Hostname sollte `logclient` und nicht `logclien` sein. Beheben Sie den Tippfehler, starten Sie den Dienst neu und überprüfen Sie das Ergebnis:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
@@ -1050,14 +1050,14 @@ Der Hauptzweck von man:sysctl[8] besteht darin, Systemeinstellungen zu lesen und
Alle auslesbaren Variablen werden wie folgt angezeigt:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Um eine spezielle Variable zu lesen, geben Sie den Namen an:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -1065,7 +1065,7 @@ kern.maxproc: 1044
Um eine Variable zu setzen, benutzen Sie die Syntax _Variable_= _Wert_:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -1099,7 +1099,7 @@ Wenn schreibgeschützte man:sysctl[8]-Variablen verändert werden, ist ein Neust
Beispielsweise hat man:cardbus[4] auf einigen Laptops Schwierigkeiten, Speicherbereiche zu erkennen. Es treten dann Fehlermeldungen wie die folgende auf:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1147,7 +1147,7 @@ Mit der Kerneloption `SCSI_DELAY` kann die Dauer des Systemstarts verringert wer
Mit man:tunefs[8] lassen sich Feineinstellungen an Dateisystemen vornehmen. Das Programm hat verschiedene Optionen. Soft Updates werden wie folgt ein- und ausgeschaltet:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1233,7 +1233,7 @@ Ein vnode ist die interne Darstellung einer Datei oder eines Verzeichnisses. Die
Um die Anzahl der derzeit verwendeten vnodes zu sehen, geben Sie Folgendes ein:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1241,7 +1241,7 @@ vfs.numvnodes: 91349
Die maximal mögliche Anzahl der vnodes erhalten Sie durch die Eingabe von:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1263,7 +1263,7 @@ Das Hinzufügen einer neuen Festplatte für den Swap-Bereich bietet eine bessere
Benutzen Sie `swapon` um eine Swap-Partition zum System hinzuzufügen. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1297,14 +1297,14 @@ Die Verwendung von Swap-Dateien macht es erforderlich, dass das Modul man:md[4]
[.procedure]
. Erstellen Sie die Swap-Datei:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=512
....
. Setzen Sie die richtigen Berechtigungen für die neue Datei:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1320,7 +1320,7 @@ Das man:md[4] Gerät [.filename]#md99# wird verwendet, damit die niedrigeren Ger
. Der Swap-Speicher wird nun automatisch beim Systemstart hinzugefügt. Benutzen Sie man:swapon[8] um den Swap-Speicher direkt zu aktivieren:
+
-[source,bash]
+[source,shell]
....
# swapon -aL
....
@@ -1375,7 +1375,7 @@ ACPI kennt drei Suspend-to-RAM-Zustände (STR), `S1`-`S3` sowie einen Suspend-to
Benutzen Sie `sysctl hw.acpi` um die Suspend-Zustände zu ermitteln. Diese Beispielausgabe stammt von einem Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1387,7 +1387,7 @@ Wenn Sie die Suspend- und Resume-Funktionen testen, fangen Sie mit dem `S1`-Zust
Ein häufiges Problem mit Suspend/Resume ist, dass viele Gerätetreiber ihre Firmware, Register und Gerätespeicher nicht korrekt speichern, wiederherstellen und/oder reinitialisieren. Um dieses Problem zu lösen, sollten Sie zuerst die folgenden Befehle ausführen:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1427,7 +1427,7 @@ Setzen Sie zuerst `hw.acpi.disable_on_poweroff="0"` in [.filename]#/boot/loader.
Einige BIOS-Hersteller liefern einen fehlerhaften Bytecode aus. Dies erkennen Sie an Kernelmeldungen wie diesen:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1443,7 +1443,7 @@ Es ist das Ziel von FreeBSD, dass ACPI ohne Eingriffe des Benutzers läuft. Zurz
Um bei der Fehlersuche zu helfen und das Problem möglicherweise zu beheben, kann eine Kopie der ASL gemacht werden. Dazu nutzen Sie `acpidump` zusammen mit `-t`, um den Inhalt der Tabelle anzuzeigen und `-d`, um die AML zu zerlegen:
-[source,bash]
+[source,shell]
....
# acpidump -td > my.asl
....
@@ -1452,7 +1452,7 @@ Einige AMLs gehen davon aus, dass der Anwender eine Windows(R)-Versionen benutzt
Manche Abhilfen erfordern eine Anpassung von [.filename]#my.asl#. Wenn diese Datei bearbeitet wird, erstellen Sie die neue ASL mit dem folgenden Befehl. Warnung können meistens ignoriert werden, aber Fehler verhindern die ordnungsgemäße Funktion von ACPI.
-[source,bash]
+[source,shell]
....
# iasl -f my.asl
....
@@ -1476,7 +1476,7 @@ Der ACPI-Treiber besitzt flexible Möglichkeiten zur Fehlersuche. Sie können so
Die Ausgaben zur Fehlersuche sind in der Voreinstellung nicht aktiviert. Wenn ACPI im Kernel enthalten ist, fügen Sie `options ACPI_DEBUG` zur Kernelkonfigurationsdatei hinzu. Sie können die Ausgaben zur Fehlersuche global aktivieren, indem Sie in der Datei [.filename]#/etc/make.conf# die Zeile `ACPI_DEBUG=1` einfügen. Das Modul [.filename]#acpi.ko# können Sie wie folgt neu übersetzen:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi && make clean && make ACPI_DEBUG=1
....
@@ -1506,7 +1506,7 @@ Wenn Sie einen Fehlerbericht einsenden, fügen Sie bitte die folgenden Informati
* Die Ausgabe von `sysctl hw.acpi`. Dieses Kommando zeigt die vom System unterstützten ACPI-Funktionen an.
* Die URL, unter der die ASL liegt. Schicken Sie bitte _nicht_ die ASL an die Mailingliste, da die ASL sehr groß sein kann. Eine Kopie der ASL erstellen Sie mit dem nachstehenden Befehl:
+
-[source,bash]
+[source,shell]
....
# acpidump -td > name-system.asl
....
diff --git a/documentation/content/de/books/handbook/cutting-edge/_index.adoc b/documentation/content/de/books/handbook/cutting-edge/_index.adoc
index d8abfad222..0f10b96083 100644
--- a/documentation/content/de/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/de/books/handbook/cutting-edge/_index.adoc
@@ -151,7 +151,7 @@ Das Einspielen von FreeBSD Sicherheitskorrekturen wurde dahingehend vereinfacht,
Sicherheitskorrekturen für FreeBSD können wie folgt heruntergeladen und installiert werden. Das erste Kommando prüft, ob noch ausstehende Korrekturen verfügbar sind, und wenn dass der Fall ist, zeigt es welche Dateien davon betroffen wären. Das zweite Kommando wird die Korrekturen auf das System anwenden.
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -175,7 +175,7 @@ Wenn Korrekturen existieren, werden diese automatisch heruntergeladen, aber nich
Wenn etwas schief geht, kann `freebsd-update` den letzten Satz von Änderungen mit folgendem Befehl rückgängig machen:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -206,14 +206,14 @@ Wenn auf dem System ein angepasster Kernel eingesetzt wird, stellen Sie sicher,
Wenn Sie das folgende Kommando auf einem System mit FreeBSD 9.0 ausführen, wird das System auf FreeBSD 9.1 aktualisiert:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
Nach der Eingabe des Kommandos überprüft `freebsd-update` die Konfigurationsdatei und das aktuelle System, um die nötigen Informationen für die Systemaktualisierung zu sammeln. Eine Bildschirmausgabe wird anzeigen, welche Komponenten erkannt und welche nicht erkannt wurden. Zum Beispiel:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -237,7 +237,7 @@ An diesem Punkt wird `freebsd-update` versuchen, alle notwendigen Dateien für d
Wenn ein angepasster Kernel benutzt wird, produziert der vorherige Schritt eine Warnung ähnlich zu der folgenden:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "
MYKERNEL" kernel, which is not a
@@ -254,7 +254,7 @@ Nachdem alle Korrekturen auf das lokale System heruntergeladen wurden, werden di
====
Das System ist zu diesem Zeitpunkt noch nicht verändert worden, da alle Korrekturen und Vereinigungen in einem anderen Verzeichnis vorgenommen wurden. Wenn alle Korrekturen erfolgreich eingespielt, alle Konfigurationsdateien zusammengefügt wurden und es den Anschein hat, dass der Prozess problemlos verlaufen wird, müssen die Änderungen vom Anwender noch angewendet und auf die Platte geschrieben werden:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -263,7 +263,7 @@ Das System ist zu diesem Zeitpunkt noch nicht verändert worden, da alle Korrekt
Der Kernel und die Module werden zuerst aktualisiert. Wenn das System einen angepassten Kernel verwendet, benutzen Sie man:nextboot[8], um den Kernel für den nächsten Neustart auf [.filename]#/boot/GENERIC# zu setzen:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -276,14 +276,14 @@ Bevor das System mit dem [.filename]#GENERIC#-Kernel neu gestartet wird, vergewi
Die Maschine sollte nun mit dem aktualisierten Kernel neu gestartet werden:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Sobald das System wieder hochgefahren ist, muss `freebsd-update` erneut gestartet werden. Da der Zustand des Prozesses zuvor gesichert wurde, wird `freebsd-update` nicht von vorne beginnen, sondern mit der nächsten Phase fortfahren und alle alten Bibliotheken und Objektdateien löschen.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -302,7 +302,7 @@ Stellen Sie vor der ersten Benutzung von `freebsd-update` sicher, dass eine Kopi
Wenn bereits mehrfach ein angepasster Kernel gebaut wurde, oder nicht bekannt ist wie oft ein angepasster Kernel gebaut wurde, behalten Sie besser eine Kopie des [.filename]#GENERIC#-Kernels, welcher mit der aktuellen Version des Betriebssystems übereinstimmt. Wenn ein direkter Zugriff auf die Maschine möglich ist, kann eine Kopie des [.filename]#GENERIC#-Kernels von den Installationsmedien installiert werden:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -311,7 +311,7 @@ Wenn bereits mehrfach ein angepasster Kernel gebaut wurde, oder nicht bekannt is
Alternativ kann der [.filename]#GENERIC#-Kernel aus den Quellen neu gebaut und installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -328,14 +328,14 @@ In der Regel funktionieren nach einer Aktualisierung einer Unterversion die inst
Bei einer erzwungenen Aktualisierung aller installierten Pakete, werden diese durch eine neue Version aus dem Repository ersetzt, sogar dann, wenn sich die Versionsnummer nicht erhöht hat. Dieser Schritt ist erforderlich, da sich die ABI bei einer Aktualisierung der Hauptversion von FreeBSD verändert hat. Eine erzwungene Aktualisierung aller installierten Pakete geschieht wie folgt:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
Ein Neubau der installierten Ports führen Sie mit diesem Kommando durch:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -344,7 +344,7 @@ Dieser Befehl wird die Konfigurationen für jede Anwendung anzeigen, und der Ben
Sobald dies abgeschlossen ist, beenden Sie den Aktualisierungsprozess mit einem letzten Aufruf von `freebsd-update`. Geben Sie den folgenden Befehl ein, um alle losen Enden des Aktualisierungsprozesses miteinander zu verknüpfen:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -366,7 +366,7 @@ Dieses Programm ist kein Ersatz für ein echtes IDS-System wie package:security/
Beginnen Sie den Vergleich, indem Sie das Programm starten und eine Ausgabedatei festlegen:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -375,7 +375,7 @@ Das System wird nun überprüft. Dabei wird eine lange Liste von Dateien zusamme
Die Zeilen in der Ausgabe sind extrem lang, aber das Ausgabeformat kann einfach verarbeitet werden. Um beispielsweise eine Liste von allen Dateien zu erhalten, die sich vom aktuellen Release unterscheiden, geben Sie das folgende Kommando ein:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -402,7 +402,7 @@ Der Bau der FreeBSD Dokumentation aus den Quellen erfordert einige Werkzeuge, di
Benutzen Sie nach der Installation svnlite, um eine saubere Kopie der Dokumentationsquellen zu holen:
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -411,7 +411,7 @@ Es dauert eine Weile, bis die Quellen das allererste Mal heruntergeladen werden.
Zukünftige Aktualisierungen der Dokumentationsquellen können wie folgt durchgeführt werden:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -420,7 +420,7 @@ Sobald ein aktueller Schnappschuss der Dokumentationsquellen nach [.filename]#/u
Eine komplette Aktualisierung aller Sprachen kann durch folgende Eingabe erreicht werden:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -428,7 +428,7 @@ Eine komplette Aktualisierung aller Sprachen kann durch folgende Eingabe erreich
Wenn nur eine Aktualisierung einer bestimmten Sprache gewünscht wird, kann `make` in einem sprachspezifischen Unterverzeichnis von [.filename]#/usr/doc# aufgerufen werden:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -436,14 +436,14 @@ Wenn nur eine Aktualisierung einer bestimmten Sprache gewünscht wird, kann `mak
Alternativ kann der folgende Befehl in [.filename]#/usr/doc# oder einem sprachspezifischen Unterverzeichnis abgesetzt werden, um die Dokumentation zu aktualisieren:
-[source,bash]
+[source,shell]
....
# make update
....
Die zu installierenden Ausgabeformate können durch das Setzen von `FORMATS` angegeben werden:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -482,7 +482,7 @@ Die Dokumentations-Ports sind wie folgt organisiert:
Wenn Sie Pakete benutzen, wird die FreeBSD-Dokumentation in allen verfügbaren Formaten der jeweiligen Sprache installiert. Das folgende Beispiel wird das aktuelle Paket der ungarischen Dokumentation installieren:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -494,7 +494,7 @@ Pakete verwenden ein Format, welches sich von dem Namen des dazugehörigen Ports
Um das Format der Dokumentation zu bestimmen, muss anstelle des Pakets der Port gebaut werden. Das folgende Beispiel baut und installiert die englische Dokumentation:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -515,7 +515,7 @@ Legt den Pfad fest, wohin die Dokumentation installiert werden soll. Die Voreins
Dieses Beispiel verwendet Variablen, um die ungarische Dokumentation als PDF in ein bestimmtes Verzeichnis zu installieren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -523,7 +523,7 @@ Dieses Beispiel verwendet Variablen, um die ungarische Dokumentation als PDF in
Dokumentations-Ports oder -Pakete können nach den Anweisungen in crossref:ports[ports,Installieren von Anwendungen: Pakete und Ports ] aktualisiert werden. Beispielsweise aktualisiert das folgende Kommando die installierte ungarische Dokumentation mittels package:ports-mgmt/portmaster[] unter Verwendung von Paketen:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -598,7 +598,7 @@ Diese kurze Referenz zeigt die typischen Schritte um FreeBSD aus den Quellen zu
====
* Aktualisierung und Bauprozess*
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -639,7 +639,7 @@ Lesen Sie [.filename]#/usr/src/UPDATING#. Jeder manuelle Schritt, welcher vor od
Der Quellcode von FreeBSD befindet sich in [.filename]#/usr/src/#. Die bevorzugte Methode zur Aktualisierung dieser Quellen ist über das Versionskontrollsystem Subversion. Sie sollten sicherstellen, dass der Quellcode unter Versionskontrolle steht:
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -649,7 +649,7 @@ Working Copy Root Path: /usr/src
Dies ist ein Hinweis darauf, dass [.filename]#/usr/src/# unter Versionskontrolle steht und mit man:svnlite[1] aktualisiert werden kann.
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -689,7 +689,7 @@ STABLE-Zweige haben gelegentlich Fehler und Inkompatibilitäten, welche den Benu
Ermitteln Sie mit man:uname[1] die verwendete FreeBSD-Version:
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -697,7 +697,7 @@ Ermitteln Sie mit man:uname[1] die verwendete FreeBSD-Version:
Basierend auf <<updating-src-obtaining-src-repopath>> ist `base/releng/10.3` der Repository-Pfad zur Aktualisierung von `10.3-RELEASE`. Dieser Pfad wird beim Auschecken der Quellen benutzt:
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -713,7 +713,7 @@ Basierend auf <<updating-src-obtaining-src-repopath>> ist `base/releng/10.3` der
Die Welt, also das gesamte Basissystem mit Ausnahme des Kernels, wird zuerst übersetzt, um aktuelle Werkzeuge zum Erstellen des Kernels bereitzustellen. Anschließend wird der Kernel gebaut:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -729,7 +729,7 @@ Dies sind die grundlegenden Schritte. Weitere Optionen zur Kontrolle des Bauproz
Einige Versionen von FreeBSD hinterlassen bereits übersetzten Code im temporären Objektverzeichnis [.filename]#/usr/obj#. Dies kann nachfolgende Bauprozesse beschleunigen, da Code, der nicht verändert wurde, nicht neu übersetzt werden muss. Um eine saubere Umgebung für den Bauprozess zu schaffen, benutzen Sie `cleanworld` bevor Sie mit dem Bau beginnen.
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -745,7 +745,7 @@ Eine höhere Anzahl an Prozessen kann die Geschwindigkeit auf Mehrprozessor-Syst
====
Das Basissystem und den Kernel mit vier Prozessen bauen:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -757,7 +757,7 @@ Das Basissystem und den Kernel mit vier Prozessen bauen:
Wenn sich der Quellcode verändert hat, muss ein `buildworld` ausgeführt werden. Danach kann der Kernel mit `buildkernel` übersetzt werden. Um lediglich den Kernel zu übersetzen:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -780,7 +780,7 @@ Die Kernelkonfigurationsdateien befinden sich in [.filename]#/usr/src/sys/arch/c
Eine benutzerdefinierte Konfigurationsdatei kann durch Kopieren der [.filename]#GENERIC#-Konfigurationsdatei erstellt werden. In diesem Beispiel ist der neue Kernel für einen Speicherserver, heißt also [.filename]#STORAGESERVER#:
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -791,7 +791,7 @@ Jetzt kann [.filename]#/root/STORAGESERVER# bearbeitet werden. Die Manualpage ma
Der angepasste Kernel wird mit der Variablen `KERNCONF`, die auf die Kernelkonfigurationsdatei verweist, übersetzt:
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -801,7 +801,7 @@ Der angepasste Kernel wird mit der Variablen `KERNCONF`, die auf die Kernelkonfi
Nachdem die Schritte `buildworld` und `buildkernel` abgeschlossen sind, wird der neue Kernel und die Welt installiert:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -813,7 +813,7 @@ Nachdem die Schritte `buildworld` und `buildkernel` abgeschlossen sind, wird der
Wenn ein angepasster Kernel erstellt wurde, muss zusätzlich die Variable `KERNCONF` gesetzt werden:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -835,7 +835,7 @@ man:mergemaster[8] bietet einen einfachen Weg, um die Konfigurationsdateien des
Mit der Option `-Ui` aktualisiert man:mergemaster[8] automatisch Dateien, welche nicht vom Benutzer verändert wurden und installiert neue Dateien, die noch nicht vorhanden sind:
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -847,28 +847,28 @@ Wenn eine Datei manuell zusammengeführt werden muss, erlaubt eine interaktive A
Nach einer Aktualisierung können sich immer noch veraltete Dateien und Verzeichnisse im System befinden. Diese lassen sich mit folgendem Kommando auflisten:
-[source,bash]
+[source,shell]
....
# make check-old
....
und löschen:
-[source,bash]
+[source,shell]
....
# make delete-old
....
Einige veraltete Bibliotheken können ebenfalls noch vorhanden sein. Diese werden mit folgenden Kommando aufgelistet:
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
und wie folgt gelöscht:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -880,7 +880,7 @@ Programme, die diese alten Bibliotheken noch verwenden, werden nicht mehr funkti
Wenn Sie sich sicher sind, dass alle Dateien und Verzeichnisse gelöscht werden können, dann setzen Sie `BATCH_DELETE_OLD_FILES`, um nicht jede einzelne Datei mit kbd:[y] und kbd:[Enter] bestätigen zu müssen. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -892,7 +892,7 @@ Wenn Sie sich sicher sind, dass alle Dateien und Verzeichnisse gelöscht werden
Zum Abschluss der Aktualisierung muss das System neu gestartet werden, damit alle Änderungen wirksam werden:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/de/books/handbook/desktop/_index.adoc b/documentation/content/de/books/handbook/desktop/_index.adoc
index e888626549..bde4370074 100644
--- a/documentation/content/de/books/handbook/desktop/_index.adoc
+++ b/documentation/content/de/books/handbook/desktop/_index.adoc
@@ -102,21 +102,21 @@ Firefox ist ein Open-Source Browser. Er bietet eine dem HTML-Standard konforme A
Installieren Sie das Paket der aktuellen Release-Version von Firefox:
-[source,bash]
+[source,shell]
....
# pkg install firefox
....
Um stattdessen die Extended Support Release (ESR) Version zu installieren, benutzen Sie:
-[source,bash]
+[source,shell]
....
# pkg install firefox-esr
....
Alternativ kann auch die Ports-Sammlung verwendet werden, um die gewünschte Version von Firefox aus dem Quellcode zu installieren. Dieses Beispiel baut package:www/firefox[], wobei sich `firefox` durch die ESR oder die lokalisierte Version ersetzen lässt.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -128,14 +128,14 @@ Konqueror ist mehr als nur ein Webbrowser, da es ebenfalls Dateimanager und Mult
Das Konqueror-Paket wird wie folgt installiert:
-[source,bash]
+[source,shell]
....
# pkg install konqueror
....
Alternativ können Sie den Port installieren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/konqueror
# make install clean
@@ -147,14 +147,14 @@ Chromium ist ein quelloffenes Browserprojekt mit dem Ziel ein sicheres, schnelle
Chromium kann als Paket durch die Eingabe des folgenden Befehls installiert werden:
-[source,bash]
+[source,shell]
....
# pkg install chromium
....
Als Alternative kann Chromium aus dem Quellcode durch die Ports Collection übersetzt werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -212,14 +212,14 @@ Die KDE-Gemeinschaft stellt ein Office-Paket bereit, das auch separat von KDE ei
In FreeBSD kann package:editors/calligra[] als Paket oder Port installiert werden. Um das Paket zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install calligra
....
Wenn das Paket nicht verfügbar ist, benutzen Sie stattdessen die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/calligra
# make install clean
@@ -233,14 +233,14 @@ AbiWord kann viele Dateiformate importieren oder exportieren, unter anderem auch
Das AbiWord-Paket installieren Sie wie folgt:
-[source,bash]
+[source,shell]
....
# pkg install abiword
....
Sollte das Paket nicht zur Verfügung stehen, kann es über die Ports-Sammlung installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -252,14 +252,14 @@ The GIMP ist ein ausgereiftes Bildverarbeitungsprogramm mit dem Bilder erstellt
Um das Paket zu installieren, geben Sie ein:
-[source,bash]
+[source,shell]
....
# pkg install gimp
....
Benutzen Sie alternativ die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -275,14 +275,14 @@ Die Textverarbeitung von Apache OpenOffice speichert Dateien im XML-Format. Dadu
Apache OpenOffice installieren Sie wie folgt:
-[source,bash]
+[source,shell]
....
# pkg install apache-openoffice
....
Nachdem das Paket installiert ist, geben Sie folgenden ein, um Apache OpenOffice zu starten:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -291,7 +291,7 @@ wobei _X.Y.Z_ die Versionsnummer von Apache OpenOffice darstellt. Nach dem erste
Falls das gewünschte Apache OpenOffice-Paket nicht verfügbar ist, kann immer noch der Port übersetzt werden. Es erfordert jedoch eine Menge Plattenplatz und ziemlich viel Zeit um die Quellen zu übersetzten.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-4
# make install clean
@@ -301,7 +301,7 @@ Falls das gewünschte Apache OpenOffice-Paket nicht verfügbar ist, kann immer n
====
Um eine lokalisierte Version zu bauen, ersetzen Sie den letzten Befehl durch:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=Ihre_Sprache install clean
....
@@ -317,7 +317,7 @@ Das Textverarbeitungsprogramm von LibreOffice benutzt ein natives XML-Dateiforma
Um die englische Version von LibreOffice als Paket zu installieren, geben Sie folgenden Befehl ein:
-[source,bash]
+[source,shell]
....
# pkg install libreoffice
....
@@ -326,7 +326,7 @@ Die Kategorie _editors_ (https://www.FreeBSD.org/ports/[freebsd.org/ports/]) der
Wenn das Paket installiert ist, geben Sie folgendes Kommando ein, um LibreOffice zu starten:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -335,7 +335,7 @@ Während des ersten Starts werden einige Fragen gestellt. Außerdem wird im Heim
Falls das gewünschte LibreOffice-Paket nicht verfügbar ist, kann immer noch der Port übersetzt werden. Es erfordert jedoch eine Menge Plattenplatz und ziemlich viel Zeit um die Quellen zu übersetzten. Dieses Beispiel übersetzt die englische Version:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -393,14 +393,14 @@ Für Benutzer, die einen schnellen PDF-Betrachter bevorzugen, bietet Xpdf eine s
Um das Xpdf-Paket zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install xpdf
....
Wenn das Paket nicht verfügbar ist, benutzen Sie die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -414,14 +414,14 @@ gv kann PostScript(R)- und PDF-Dokumente anzeigen. Es stammt von ghostview ab, h
Installieren Sie das gv-Paket wie folgt:
-[source,bash]
+[source,shell]
....
# pkg install gv
....
Benutzen Sie die Ports-Sammlung, wenn das Paket nicht zur Verfügung steht:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -433,14 +433,14 @@ Geeqie ist ein Fork des nicht mehr betreuten GQview Projekts, mit dem Ziel die E
Um das Geeqie-Paket zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install geeqie
....
Wenn das Paket nicht verfügbar ist, benutzen Sie die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/geeqie
# make install clean
@@ -452,14 +452,14 @@ ePDFView ist ein leichtgewichtiger PDF-Betrachter, der nur die Gtk+- und Poppler
Um das Paket ePDFView zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install epdfview
....
Benutzen Sie die Ports-Sammlung, falls das Paket nicht verfügbar ist:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/epdfview
# make install clean
@@ -471,14 +471,14 @@ Okular ist ein universeller Dokumentbetrachter der auf KPDF für KDE basiert. Es
Um das Paket Okular zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install okular
....
Benutzen Sie die Ports-Sammlung, falls das Paket nicht verfügbar ist:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/okular
# make install clean
@@ -523,14 +523,14 @@ GnuCash stellt ein Register, ähnlich dem in einem Scheckheft und ein hierarchis
Das GnuCash-Paket installieren Sie wie folgt:
-[source,bash]
+[source,shell]
....
# pkg install gnucash
....
Wenn das Paket nicht zur Verfügung steht, benutzen Sie die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -542,14 +542,14 @@ Gnumeric ist eine Tabellenkalkulation, die von der GNOME-Gemeinschaft entwickelt
Installieren Sie das Gnumeric-Paket mit folgendem Kommando:
-[source,bash]
+[source,shell]
....
# pkg install gnumeric
....
Wenn das Paket nicht zur Verfügung steht, benutzen Sie die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -561,14 +561,14 @@ KMyMoney ist ein Programm zur Verwaltung der persönlichen Finanzen, das von der
Um das Paket KMyMoney zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install kmymoney-kde4
....
Sollte das Paket nicht verfügbar sein, benutzen Sie die Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2-kde4
# make install clean
diff --git a/documentation/content/de/books/handbook/disks/_index.adoc b/documentation/content/de/books/handbook/disks/_index.adoc
index d99c5bcbfd..71a29caae5 100644
--- a/documentation/content/de/books/handbook/disks/_index.adoc
+++ b/documentation/content/de/books/handbook/disks/_index.adoc
@@ -82,7 +82,7 @@ Wenn die hinzugefügte Festplatte nicht leer ist, können alte Partitionsinforma
Zuerst wird das Partitionsschema erstellt und dann eine einzelne Partition angefügt. Zur Verbesserung der Leistung auf neueren Festplatten mit größeren Blockgrößen, wird die Partition an einer Megabyte-Grenze ausgerichtet:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
@@ -92,7 +92,7 @@ Je nach Anwendung kann es wünschenswert sein, mehrere kleinere Partitionen zu h
Informationen über die Partitionen der Festplatte werden mit `gpart show` angezeigt:
-[source,bash]
+[source,shell]
....
% gpart show ada1
=> 34 1465146988 ada1 GPT (699G)
@@ -103,14 +103,14 @@ Informationen über die Partitionen der Festplatte werden mit `gpart show` angez
Ein Dateisystem wird in der neuen Partition erstellt:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
Ein leeres Verzeichnis wird als Mountpunkt erstellt, also ein Speicherort für die Montage der neuen Festplatte im originalen Dateisystem:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -124,7 +124,7 @@ Abschließend wird ein Eintrag in [.filename]#/etc/fstab# hinzugefügt, damit di
Die neue Festplatte kann manuell montiert werden, ohne das System neu zu starten:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -138,7 +138,7 @@ Die Kapazität einer Festplatte kann sich ohne Änderungen an bereits vorhandene
Um die aktuelle Konfiguration der Partitionen auf der Festplatte anzuzeigen:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 83886013 ada0 GPT (48G) [CORRUPT]
@@ -152,7 +152,7 @@ Um die aktuelle Konfiguration der Partitionen auf der Festplatte anzuzeigen:
====
Wenn die Festplatte mit dem http://en.wikipedia.org/wiki/GUID_Partition_Table[ GPT]-Partitionsschema formatiert wurde kann es vorkommen, dass sie als "corrupted" angezeigt wird, weil sich die Sicherung der GPT-Partitionstabellen nicht mehr am Ende des Laufwerks befinden. Reparieren Sie in so einem Fall die Partitionstabelle mit `gpart`:
-[source,bash]
+[source,shell]
....
# gpart recover ada0
ada0 recovered
@@ -162,7 +162,7 @@ ada0 recovered
Nun steht der zusätzliche Speicherplatz zur Verfügung und kann verwendet werden, um eine neue Partition anzulegen oder eine bestehende Partition zu erweitern:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 102399933 ada0 GPT (48G)
@@ -176,14 +176,14 @@ Partitionen können nur auf zusammenhängenden, freien Speicherplatz vergrößer
Deaktivieren Sie Swap-Speicher Partition:
-[source,bash]
+[source,shell]
....
# swapoff /dev/ada0p3
....
Löschen Sie die dritte Partition, angegeben mit dem Schalter `-i`, der Festplatte _ada0_:
-[source,bash]
+[source,shell]
....
# gpart delete -i 3 ada0
ada0p3 deleted
@@ -199,7 +199,7 @@ ada0p3 deleted
Es besteht die Gefahr von Datenverlust, wenn die Partitionstabelle eines eingehangenen Dateisystems verändert wird. Es empfiehlt sich daher, die folgenden Schritte auf einem ausgehangenen Dateisystem durchzuführen, während die Umsetzung über eine Live-CD-ROM oder von einem USB-Gerät erfolgt. Wenn es jedoch absolut notwendig ist, kann ein eingehangenes Dateisystem auch vergrößert werden, nachdem die Sicherheitsfunktionen von GEOM deaktiviert wurden:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -208,7 +208,7 @@ Es besteht die Gefahr von Datenverlust, wenn die Partitionstabelle eines eingeha
Vergrößern Sie die Partition und lassen Sie Platz, um die Swap-Partition in der gewünschten Größe neu erstellen zu können. Die zu ändernde Partition wird mit `-i` und die neue gewünschte Größe mit `-s` angegeben. Optional wird die Ausrichtung der Partition mit `-a` festgelegt. Dieser Schritt ändert nur die Größe der Partition. Das Dateisystem innerhalb der Partition wird in einem separaten Schritt erweitert.
-[source,bash]
+[source,shell]
....
# gpart resize -i 2 -s 47G -a 4k ada0
ada0p2 resized
@@ -221,7 +221,7 @@ ada0p2 resized
Erstellen Sie die Swap-Partition neu und aktivieren Sie sie:
-[source,bash]
+[source,shell]
....
# gpart add -t freebsd-swap -a 4k ada0
ada0p3 added
@@ -235,7 +235,7 @@ ada0p3 added
Erweitern Sie das UFS-Dateisystem, um die Kapazität der vergrößerten Partition zu nutzen:
-[source,bash]
+[source,shell]
....
# growfs /dev/ada0p2
Device is mounted read-write; resizing will result in temporary write suspension for /.
@@ -248,7 +248,7 @@ super-block backups (for fsck -b #) at:
Wenn das Dateisystem ZFS ist, wird die Größenänderung mit dem Unterkommando `online` und `-e` ausgelöst:
-[source,bash]
+[source,shell]
....
# zfs online -e zroot /dev/ada0p2
....
@@ -289,7 +289,7 @@ Der übrige Abschnitt beschreibt, wie Sie überprüfen können ob ein USB-Gerät
Um die USB-Konfiguration zu testen, schließen Sie das USB-Gerät an. Verwenden Sie `dmesg` um zu überprüfen, ob das Gerät in den Systemmeldungen erscheint. Dies sollte in etwa so aussehen:
-[source,bash]
+[source,shell]
....
umass0: <STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x0100
@@ -306,7 +306,7 @@ Fabrikat, Gerätedatei ([.filename]#da0#), Geschwindigkeit und Kapazität werden
Da ein USB-Gerät als SCSI-Gerät erkannt wird, kann `camcontrol` benutzt werden, um die mit dem System verbundenen USB-Massenspeicher anzuzeigen:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<STECH Simple Drive 1.04> at scbus4 target 0 lun 0 (pass3,da0)
@@ -314,7 +314,7 @@ Da ein USB-Gerät als SCSI-Gerät erkannt wird, kann `camcontrol` benutzt werden
Alternativ kann `usbconfig` benutzt werden, um die Geräte aufzulisten. Weitere Informationen zu diesem Kommando finden Sie in man:usbconfig[8].
-[source,bash]
+[source,shell]
....
# usbconfig
ugen0.3: <Simple Drive STECH> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
@@ -364,7 +364,7 @@ vfs.usermount=1
Da diese Einstellung erst nach einem Neustart wirksam wird, können Sie diese Variable mit `sysctl` auch direkt setzen:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -372,7 +372,7 @@ vfs.usermount: 0 -> 1
Zuletzt müssen Sie noch ein Verzeichnis anlegen, in das das USB-Laufwerk eingehängt werden soll. Dieses Verzeichnis muss dem Benutzer gehören, der das USB-Laufwerk in den Verzeichnisbaum einhängen will. Dazu legen Sie als `root` ein Unterverzeichnis [.filename]#/mnt/username# an, wobei Sie _username_ durch den Login des jeweiligen Benutzers sowie _usergroup_ durch die primäre Gruppe des Benutzers ersetzen:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -380,21 +380,21 @@ Zuletzt müssen Sie noch ein Verzeichnis anlegen, in das das USB-Laufwerk eingeh
Wenn Sie nun beispielsweise einen USB-Stick anschließen, wird automatisch die Gerätedatei [.filename]#/dev/da0s1# erzeugt. Ist das Gerät mit einem FAT-Dateisystem formatiert, kann es der Benutzer mit dem folgenden Befehl in den Verzeichnisbaum einhängen:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Bevor das Gerät entfernt werden kann, _muss_ es abgehängt werden:
-[source,bash]
+[source,shell]
....
# umount /mnt/username
....
Nach Entfernen des Geräts stehen in den Systemmeldungen Einträge, ähnlich der folgenden:
-[source,bash]
+[source,shell]
....
umass0: at uhub3, port 2, addr 3 (disconnected)
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
@@ -406,14 +406,14 @@ da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
Damit USB-Geräte automatisch eingehängt werden, muss der Kommentar für folgende Zeile in [.filename]#/etc/auto_master# entfernt werden:
-[source,bash]
+[source,shell]
....
/media -media -nosuid
....
Anschließend fügen Sie folgende Zeilen in [.filename]#/etc/devd.conf# hinzu:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "GEOM";
@@ -424,7 +424,7 @@ notify 100 {
Falls man:autofs[5] und man:devd[8] bereits ausgeführt werden, müssen Sie die Konfiguration neu einlesen:
-[source,bash]
+[source,shell]
....
# service automount restart
# service devd restart
@@ -441,7 +441,7 @@ Damit man:autofs[5] funktioniert, muss man:devd[8] aktiviert sein, was aber in d
Starten Sie jetzt die Dienste:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -453,7 +453,7 @@ Jedes Dateisystem, das automatisch eingehängt werden kann, erscheint als ein Ve
Das Dateisystem wird transparent beim ersten Zugriff in den Verzeichnisbaum eingehängt und auch nach gewisser Zeit der Inaktivität wieder ausgehängt. Laufwerke können auch manuell ausgehängt werden:
-[source,bash]
+[source,shell]
....
# automount -fu
....
@@ -529,7 +529,7 @@ Hierzu ist ein Neustart des Systems erforderlich, da dieser Treiber nur beim Boo
Mit `dmesg` können Sie prüfen, ob das Gerät von FreeBSD erkannt wurde. Unter FreeBSD Versionen kleiner 10.x lautet der Gerätename [.filename]#acd0# anstelle von [.filename]#cd0#.
-[source,bash]
+[source,shell]
....
% dmesg | grep cd
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
@@ -546,14 +546,14 @@ Unter FreeBSD kann `cdrecord` zum Brennen von CDs benutzt werden. Dieses Program
Obwohl `cdrecord` viele Optionen besitzt, ist die grundlegende Benutzung sehr einfach. Geben Sie den Namen der zu brennenden ISO-Datei an. Wenn das System über mehrere Brenner verfügt, müssen Sie auch den Namen des Gerätes angeben:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
Benutzen Sie `-scanbus` um den Gerätenamen des Brenners zu bestimmen. Die Ausgabe könnte wie folgt aussehen:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 Jörg Schilling
@@ -582,7 +582,7 @@ Benutzen Sie die drei durch Kommas separierten Zahlen, die für den CD-Brenner a
Alternativ können Sie den folgenden Befehl ausführen, um die Geräteadresse des Brenners zu ermitteln:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (cd0,pass0)
@@ -595,7 +595,7 @@ Verwenden Sie die numerischen Werte für `scbus`, `target` und `lun`. Für diese
Die Datendateien müssen vorbereitet sein, bevor sie auf eine CD gebrannt werden. In FreeBSD wird `mkisofs` vom Paket oder Port package:sysutils/cdrtools[] installiert. Dieses Programm kann aus einem UNIX(R) Verzeichnisbaum ein ISO 9660-Dateisystem erzeugen. Im einfachsten Fall müssen Sie lediglich den Namen der zu erzeugenden ISO-Datei und den Pfad zu den Dateien angeben, die auf dem ISO 9660-Dateisystem platziert werden:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -608,14 +608,14 @@ Für CDs, die nur auf FreeBSD-Systemen verwendet werden sollen, kann `-U` genutz
Die letzte übliche Option ist `-b`. Sie wird benutzt, um den Ort eines Bootimages einer "El Torito" bootbaren CD anzugeben. Das Argument zu dieser Option ist der Pfad zu einem Bootimage ausgehend von der Wurzel des Baumes, der auf die CD geschrieben werden soll. In der Voreinstellung erzeugt `mkisofs` ein ISO-Image im "Diskettenemulations"-Modus. Dabei muss das Image genau 1200, 1440 oder 2880 KB groß sein. Einige Bootloader, darunter der auf den FreeBSD Installationsmedien verwendete, kennen keinen Emulationsmodus. Daher sollte in diesen Fällen `-no-emul-boot` verwendet werden. Wenn [.filename]#/tmp/myboot# ein bootbares FreeBSD-System enthält, dessen Bootimage sich in [.filename]#/tmp/myboot/boot/cdboot# befindet, dann würde folgendes Kommando [.filename]#/tmp/bootable.iso# erstellen:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
Das resultierende ISO-Abbild kann als speicherbasiertes Laufwerk eingehängt werden:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -629,7 +629,7 @@ Sie können das Verhalten von `mkisofs` mit einer Vielzahl von Optionen beeinflu
====
Es ist möglich eine Daten-CD in eine Datei zu kopieren, die einem Image entspricht, das mit `mkisofs` erstellt wurde. Verwenden Sie dazu `dd` mit dem Gerätenamen als Eingabedatei und den Namen der ISO als Ausgabedatei:
-[source,bash]
+[source,shell]
....
# dd if=/dev/cd0 of=file.iso bs=2048
....
@@ -642,7 +642,7 @@ Das resultierende Abbild kann auf eine CD gebrannt werden, wie in <<cdrecord>> b
Sobald ein Abbild auf eine CD gebrannt wurde, kann es durch Angabe des Dateisystemtyp, des CD-Laufwerks und des Mountpunktes eingehangen werden:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
@@ -680,7 +680,7 @@ Es ist möglich eine Datei auch direkt auf eine CD zu brennen, ohne vorher auf i
Eine auf diese Weise gefertigte Daten-CD kann nicht in das Dateisystem eingehangen werden. Um auf die Daten einer solchen CD zuzugreifen, müssen die Daten vom rohen Gerät gelesen werden. Beispielsweise würde dieser Befehl eine komprimierte tar-Datei auf dem zweiten CD-Laufwerk in das aktuelle Verzeichnis extrahieren:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/cd1
....
@@ -700,7 +700,7 @@ Um eine Kopie einer Audio-CD zu erstellen, kopieren Sie die Stücke der CD in ei
. Der Port oder das Paket package:sysutils/cdrtools[] installiert `cdda2wav`. Mit diesem Kommando können Audiodaten in das aktuelle Verzeichnis extrahiert werden, wobei jede Datei in eine separate WAV-Datei geschrieben wird:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -B -Owav
....
@@ -710,7 +710,7 @@ Wenn das System nur über ein CD-Laufwerk verfügt, muss der Gerätename nicht a
. Die erzeugten [.filename]#.wav# Dateien schreiben Sie mit `cdrecord` auf eine leere CD:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -764,7 +764,7 @@ man:growisofs[1] erstellt mit dem Programm <<mkisofs,mkisofs>> das Dateisystem u
Wenn Sie von den Daten im Verzeichnis [.filename]#/path/to/data# eine DVD+R oder eine DVD-R brennen wollen, benutzen Sie das nachstehende Kommando:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -775,7 +775,7 @@ Die Option `-Z` wird für die erste Aufnahme einer Single- oder Multisession ben
Um ein vorher erstelltes Abbild der Daten zu brennen, beispielsweise _imagefile.iso_, verwenden Sie:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -788,14 +788,14 @@ Um größere Dateien als 4.38GB zu unterstützen, ist es notwendig ein UDF/ISO-9
Um diese Art von ISO-Datei zu erstellen:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
Um Daten direkt auf eine DVD zu brennen, geben Sie den folgenden Befehl ein:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -811,7 +811,7 @@ Ein DVD-Video ist eine spezielle Anordnung von Dateien, die auf den ISO-9660 und
Ist bereits ein Abbild des Dateisystems eines DVD-Videos vorhanden, kann es auf die gleiche Weise wie jedes andere Abbild gebrannt werden. Wenn `dvdauthor` verwendet wurde, um die DVD zu erstellen und die Resultate in [.filename]#/path/to/video# liegen, kann das folgende Kommando verwendet werden, um ein DVD-Video zu brennen:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -822,7 +822,7 @@ Ist bereits ein Abbild des Dateisystems eines DVD-Videos vorhanden, kann es auf
Im Gegensatz zu CD-RW-Medien müssen DVD+RW-Medien erst formatiert werden, bevor sie benutzt werden können. Es wird _empfohlen_ man:growisofs[1] einzusetzen, da das Programm Medien automatisch formatiert, wenn es erforderlich ist. Es ist jedoch möglich, auch `dvd+rw-format` zu nutzen, um die DVD+RW zu formatieren:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -831,7 +831,7 @@ Dieser Vorgang muss nur einmal durchgeführt werden. Denken Sie daran, dass nur
Wenn Sie auf einer DVD+RW ein neues Dateisystem erstellen wollen, brauchen Sie die DVD+RW vorher nicht zu löschen. Überschreiben Sie einfach das vorige Dateisystem indem Sie eine neue Session anlegen:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -840,7 +840,7 @@ Das DVD+RW-Format erlaubt es, Daten an eine vorherige Aufnahme anzuhängen. Dazu
Das folgende Kommando fügt weitere Daten zu einer vorher erstellten DVD+RW hinzu:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -854,7 +854,7 @@ Verwenden Sie `-dvd-compat`, um bessere Kompatibilität mit DVD-ROM-Laufwerken z
Um das Medium zu löschen, verwenden Sie:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -867,7 +867,7 @@ Eine neue DVD-RW kann direkt beschrieben werden; sie muss nicht vorher formatier
Der folgende Befehl löscht eine DVD-RW im Sequential-Recording-Modus:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -876,7 +876,7 @@ Der folgende Befehl löscht eine DVD-RW im Sequential-Recording-Modus:
====
Das vollständige Löschen mit `-blank=full` dauert mit einem 1x Medium ungefähr eine Stunde. Wenn die DVD-RW im Disk-At-Once-Modus (DAO) aufgenommen wurde, kann sie mit `-blank` schneller gelöscht werden. Um eine DVD-RW im DAO-Modus zu brennen, benutzen Sie das folgende Kommando:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -888,7 +888,7 @@ Der Restricted-Overwrite-Modus sollte mit jeder DVD-RW verwendet werden, da er f
Um Daten auf eine DVD-RW im Sequential-Recording-Modus zu schreiben, benutzen Sie dasselbe Kommando wie für die anderen DVD-Formate:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -899,14 +899,14 @@ Eine DVD-RW im Restricted-Overwrite-Modus muss nicht gelöscht werden, um eine n
Benutzen sie das nachstehende Kommando, um den Restricted-Overwrite-Modus einzustellen:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Das folgende Kommando stellt den Modus wieder auf Sequential-Recording zurück:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -917,7 +917,7 @@ Nur wenige DVD-ROM-Laufwerke unterstützen Multi-Session-DVDs und lesen meist nu
Wenn das Medium noch nicht geschlossen ist, erstellt das nachstehende Kommando eine neue Session auf einer DVD+R, DVD-R oder DVD-RW im Sequential-Recording-Modus:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -952,7 +952,7 @@ hw.ata.atapi_dma="1"
Eine DVD-RAM kann mit einer Wechselplatte verglichen werden. Wie diese, muss auch eine DVD-RAM vor dem ersten Einsatz formatiert werden. In diesem Beispiel wird das gesamte Medium mit dem Standard-UFS2-Dateisystem formatiert:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -963,7 +963,7 @@ Denken Sie dabei daran, dass Sie gegebenenfalls die Gerätedatei (hier [.filenam
Nachdem die DVD-RAM formatiert ist, kann sie wie eine normale Festplatte gemountet werden:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -983,7 +983,7 @@ Bevor eine Diskette benutzt werden kann, muss sie (low-level) formatiert werden,
. Um eine Diskette zu formatieren, legen Sie eine 3,5 Zoll Diskette in das erste Diskettenlaufwerk ein und führen das folgende Kommando aus:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -992,7 +992,7 @@ Bevor eine Diskette benutzt werden kann, muss sie (low-level) formatiert werden,
+
Erstellen Sie nun das Label mit man:bsdlabel[8]:
+
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1001,7 +1001,7 @@ Erstellen Sie nun das Label mit man:bsdlabel[8]:
+
Um die Diskette mit FAT zu formatieren, geben Sie folgendes Kommando ein:
+
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1046,7 +1046,7 @@ Verwenden Sie stattdessen `dump` und `restore` in einer sichereren Weise über e
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1060,7 +1060,7 @@ In diesem Beispiel wird `RSH` gesetzt, um über eine SSH-Verbindung eine Sicheru
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f tatargetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1079,7 +1079,7 @@ In diesem Beispiel wird eine komprimierte Sicherung des aktuellen Verzeichnisses
[example]
====
-[source,bash]
+[source,shell]
....
# tar czvf /tmp/mybackup.tgz .
....
@@ -1092,7 +1092,7 @@ Um eine komplette Sicherung wiederherzustellen, wechseln Sie mit `cd` in das Ver
[example]
====
-[source,bash]
+[source,shell]
....
# tar xzvf /tmp/mybackup.tgz
....
@@ -1109,7 +1109,7 @@ So kann beispielsweise eine Liste von Dateien mit `ls` oder `find` erzeugt werde
[example]
====
-[source,bash]
+[source,shell]
....
# ls -R | cpio -ovF /tmp/mybackup.cpio
....
@@ -1124,7 +1124,7 @@ Für die vorangegangenen Beispiele wäre ein äquivalenter Aufruf von `pax`:
[example]
====
-[source,bash]
+[source,shell]
....
# pax -wf /tmp/mybackup.pax .
....
@@ -1140,7 +1140,7 @@ Für SCSI-Bandlaufwerke nutzt FreeBSD den man:sa[4] Treiber, der die Schnittstel
FreeBSD nutzt `mt` für die Steuerung der Operationen des Bandlaufwerks, wie die Suche nach Dateien auf einem Band, oder um Kontrollmarkierungen auf ein Band zu schreiben. Beispielsweise können die ersten drei Dateien auf einem Band erhalten bleiben, indem sie übersprungen werden, bevor eine neue Datei auf das Band geschrieben wird
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1149,28 +1149,28 @@ Dieses Werkzeug unterstützt viele Operationen. Weitere Einzelheiten finden Sie
Um eine Datei mit `tar` auf ein Band zu schreiben, geben Sie den Namen des Bandlaufwerks und den Dateinamen an:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
Wiederherstellung von Dateien aus dem `tar`-Archiv von Band in das aktuelle Verzeichnis:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
Benutzen Sie `dump`, um ein UFS-Dateisystem zu sichern. Dieses Beispiel sichert [.filename]#/usr#, ohne danach das Band zurückzuspulen:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
Interaktive Wiederherstellung von Dateien aus einer man:dump[8]-Datei von Band in das aktuelle Verzeichnis:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1220,7 +1220,7 @@ device md
Um ein bestehendes Abbild eines Dateisystems einzuhängen, verwenden Sie `mdconfig` zusammen mit dem Namen der ISO-Datei und einer freien Gerätenummer. Benutzen Sie dann diese Gerätenummer, um das Abbild in einen existierenden Mountpunkt einzuhängen. Sobald dies erledigt ist, erscheinen die Dateien des Abbildes unterhalb des Mountpunktes. Dieses Beispiel wird [.filename]#diskimage.iso# an das speicherbasierte Laufwerk [.filename]#/dev/md0# binden und dann in [.filename]#/mnt# einhängen:
-[source,bash]
+[source,shell]
....
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -1230,7 +1230,7 @@ Beachten Sie, dass `-t cd9660` benutzt wurde, um ein ISO-Format einzuhängen. We
Wenn ein speicherbasiertes Laufwerk nicht mehr in Gebrauch ist, sollten seine belegten Ressourcen wieder an das System zurückgegeben werden. Hängen Sie zuerst das Dateisystem aus, dann verwenden Sie `mdconfig`, um die Platte vom System zu trennen und die Ressourcen freizugeben.
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 0
@@ -1245,7 +1245,7 @@ FreeBSD unterstützt auch speicherbasierte Laufwerke, bei denen der verwendete S
Um ein speicherbasiertes Dateisystem zu erstellen, geben Sie den Typ `swap` sowie die gewünschte Größe des Laufwerks an. Dieses Beispiel erzeugt ein 5 MB großes Laufwerk an der Gerätenummer `1`. Das Laufwerk wird mit dem UFS-Dateisystem formatiert, bevor es eingehängt wird:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1262,7 +1262,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Um ein dateibasiertes Dateisystem zu erstellen, muss zunächst ein Stück Speicher auf der Festplatte reserviert werden. Dieses Beispiel erzeugt eine 5 MB große Datei namens [.filename]#newimage#:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1271,7 +1271,7 @@ Um ein dateibasiertes Dateisystem zu erstellen, muss zunächst ein Stück Speich
Als nächstes muss diese Datei an ein speicherbasiertes Laufwerk gebunden, gelabelt und mit dem UFS-Dateisystem formatiert werden. Danach können Sie das Laufwerk einhängen und die Größe überprüfen:
-[source,bash]
+[source,shell]
....
# mdconfig -f newimage -u 0
# bsdlabel -w md0 auto
@@ -1288,14 +1288,14 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Es benötigt mehrere Befehle, um ein datei- oder speicherbasiertes Dateisystem mit `mdconfig` zu erstellen. FreeBSD enthält auch `mdmfs`, das ein speicherbasiertes Laufwerk automatisch konfigurieren, formatieren und einhängen kann. Nachdem beispielsweise [.filename]#newimage# mit `dd` erstellt wurde, hätte auch der folgende Befehl benutzt werden können, anstelle der oben verwendeten Kommandos `bsdlabel`, `newfs` und `mount`:
-[source,bash]
+[source,shell]
....
# mdmfs -F newimage -s 5m md0 /mnt
....
Um hingegen ein speicherbasiertes Laufwerk mit `mdmfs` zu erstellen, wird dieser Befehl benutzt:
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md1 /mnt
....
@@ -1313,21 +1313,21 @@ Das unveränderliche `Snapshot`-Dateiflag wird nach der Erstellung des Snapshots
Schnappschüsse werden mit man:mount[8] erstellt. Das folgende Kommando legt einen Schnappschuss von [.filename]#/var# in [.filename]#/var/snapshot/snap# ab:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternativ kann der Schnappschuss auch mit man:mksnap_ffs[8] erstellt werden.
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Um Schnappschüsse auf einem Dateisystem, beispielsweise [.filename]#/var# zu finden, kann man man:find[1] verwenden:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1340,7 +1340,7 @@ Nachdem ein Schnappschuss erstellt wurde, können Sie ihn für verschiedene Zwec
* Sie können einen Schnappschuss in den Verzeichnisbaum einhängen und sich dann den Zustand des Dateisystems zu dem Zeitpunkt ansehen, an dem der Schnappschuss erstellt wurde. Der folgende Befehl hängt den Schnappschuss [.filename]#/var/snapshot/snap# ein:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1348,7 +1348,7 @@ Nachdem ein Schnappschuss erstellt wurde, können Sie ihn für verschiedene Zwec
Der eingefrorene Stand des [.filename]#/var#-Dateisystems ist nun unterhalb von [.filename]#/mnt# verfügbar. Mit Ausnahme der früheren Schnappschüsse, die als leere Dateien auftauchen, wird zu Beginn alles so aussehen, wie zum Zeitpunkt der Erstellung des Schnappschusses. Der Schnappschuss kann wie folgt abgehängt werden:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1367,7 +1367,7 @@ Dieser Abschnitt beschreibt die Konfiguration von Disk Quotas für UFS-Dateisyst
Prüfen Sie zunächst, ob der FreeBSD-Kernel Disk Quotas unterstützt:
-[source,bash]
+[source,shell]
....
% sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
@@ -1418,7 +1418,7 @@ Normalerweise brauchen die Kommandos man:quotacheck[8], man:quotaon[8] oder man:
Stellen Sie sicher, dass Quotas auch tatsächlich aktiviert sind:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1435,7 +1435,7 @@ Softlimits können für eine befristete Zeit überschritten werden. Diese Frist
Im folgenden Beispiel wird das Quota des Benutzerkonto `test` bearbeitet. Wenn `edquota` aufgerufen wird, wird der in `EDITOR` definierte Editor aufgerufen, um die Quota-Limts zu konfigurieren. Der Standard-Editor ist vi.
-[source,bash]
+[source,shell]
....
# edquota -u test
@@ -1458,7 +1458,7 @@ Die neuen Limits sind wirksam, sobald der Editor verlassen wird.
Manchmal ist es wünschenswert, die Limits für eine Reihe von Benutzern zu setzen. Dazu weisen Sie zunächst einem Benutzer das gewünschte Quota-Limit zu. Anschließend benutzen Sie `-p`, um das Quota auf einen bestimmten Bereich von Benutzer-IDs (UID) zu duplizieren. Der folgende Befehl dupliziert die Quota-Limits auf die UIDs `10000` bis `19999`:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1494,7 +1494,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Anschließend starten Sie `inetd` neu:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1516,7 +1516,7 @@ man:gbde[4] besitzt einige Funktionen um die Daten, die in einem Sektor gespeich
FreeBSD enthält ein Kernelmodul für gbde, das wie folgt geladen werden kann:
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1533,7 +1533,7 @@ Das folgende Beispiel beschreibt, wie eine Partition auf einer neuen Festplatte
+
Installieren Sie die Festplatte wie in <<disks-adding>> beschrieben. Im Beispiel wird die Partition [.filename]#/dev/ad4s1c# verwendet. Die Gerätedateien [.filename]#/dev/ad0s1*# sind Standard-Partitionen des FreeBSD-Systems.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1543,7 +1543,7 @@ Installieren Sie die Festplatte wie in <<disks-adding>> beschrieben. Im Beispiel
. Verzeichnis für gbde-Lock-Dateien anlegen
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1553,7 +1553,7 @@ Die Lock-Dateien sind für den Zugriff von gbde auf verschlüsselte Partitionen
+
Eine von gbde benutzte Partition muss einmalig initialisiert werden, bevor sie benutzt werden kann. Das Programm öffnet eine Vorlage im Standard-Editor, um verschiedene Optionen zu konfigurieren. Setzen Sie `sector_size` auf `2048`, wenn Sie UFS benutzen:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
$FreeBSD: src/sbin/gbde/template.txt,v 1.1.36.1 2009/08/03 08:13:06 kensmith Exp $
@@ -1579,14 +1579,14 @@ Lock-Dateien müssen immer zusammen mit den verschlüsselten Dateisystemen gesic
. Einbinden der verschlüsselten Partition in den Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Dieses Kommando fragt die Passphrase ab, die bei der Initialisierung der verschlüsselten Partition eingegeben wurde. Das neue verschlüsselte Gerät erscheint danach in [.filename]#/dev# als [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1598,7 +1598,7 @@ Dieses Kommando fragt die Passphrase ab, die bei der Initialisierung der verschl
+
Nachdem die verschlüsselte Partition im Kernel eingebunden ist, kann ein Dateisystem erstellt werden. Dieses Beispiel erstellt ein UFS-Dateisystem mit aktivierten Soft Updates. Achten Sie darauf, die Partition mit der Erweiterung [.filename]#*.bde# zu benutzen:
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -1607,7 +1607,7 @@ Nachdem die verschlüsselte Partition im Kernel eingebunden ist, kann ein Dateis
+
Legen Sie einen Mountpunkt für das verschlüsselte Dateisystem an. Hängen Sie anschließend das Dateisystem ein:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
# mount /dev/ad4s1c.bde /private
@@ -1617,7 +1617,7 @@ Legen Sie einen Mountpunkt für das verschlüsselte Dateisystem an. Hängen Sie
+
Das verschlüsselte Dateisystem sollte jetzt erkannt und benutzt werden können:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1644,7 +1644,7 @@ Durch diese Argumente muss beim Systemstart auf der Konsole die Passphrase einge
====
sysinstall ist nicht kompatibel mit gbde-verschlüsselten Geräten. Bevor sysinstall gestartet wird, müssen alle [.filename]#*.bde# Geräte vom Kernel getrennt werden, da sonst der Kernel bei der ersten Suche nach Geräten abstürzt. Um das verschlüsselte Gerät aus dem Beispiel zu trennen, benutzen Sie das folgende Kommando:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1681,7 +1681,7 @@ geom_eli_load="YES"
+
Um das Modul direkt zu laden:
+
-[source,bash]
+[source,shell]
....
# kldload geom_eli
....
@@ -1698,7 +1698,7 @@ device crypto
+
Die folgenden Befehle erzeugen einen Master-Key, mit dem alle Daten verschlüsselt werden. Dieser Schlüssel kann niemals geändert werden. Anstatt ihn direkt zu benutzen, wird er mit einem oder mehrere Schlüsseln verschlüsselt. Die Schlüssel bestehen aus einer optionalen Kombination von zufälligen Bytes aus einer Datei, [.filename]#/root/da2.key#, und/oder einer Passphrase. In diesem Fall ist die Datenquelle der Schlüsseldatei [.filename]#/dev/random#. Dieser Befehl konfiguriert auch die Sektorgröße des Providers ([.filename]#/dev/da2.eli#) mit 4 KB, um eine bessere Leistung zu erzielen:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -K /root/da2.key -s 4096 /dev/da2
@@ -1710,7 +1710,7 @@ Es ist nicht zwingend nötig, sowohl eine Passphrase als auch eine Schlüsseldat
+
Wird für die Schlüsseldatei "-" angegeben, wird dafür die Standardeingabe verwendet. Das folgende Kommando erzeugt beispielsweise drei Schlüsseldateien:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
@@ -1719,7 +1719,7 @@ Wird für die Schlüsseldatei "-" angegeben, wird dafür die Standardeingabe ver
+
Um den Provider zu aktivieren, geben Sie die Schlüsseldatei, den Namen des Laufwerks und die Passphrase an:
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1727,7 +1727,7 @@ Enter passphrase:
+
Dadurch wird ein neues Gerät mit der Erweiterung [.filename]#.eli# angelegt:
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1737,7 +1737,7 @@ Dadurch wird ein neues Gerät mit der Erweiterung [.filename]#.eli# angelegt:
+
Als nächstes muss das Gerät mit dem UFS-Dateisystem formatiert und an einen vorhandenen Mountpunkt eingehängt werden:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1746,7 +1746,7 @@ Als nächstes muss das Gerät mit dem UFS-Dateisystem formatiert und an einen vo
+
Das verschlüsselte Dateisystem sollte jetzt erkannt und benutzt werden können:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1760,7 +1760,7 @@ Filesystem Size Used Avail Capacity Mounted on
Wenn Sie nicht mehr mit dem verschlüsselten Dateisystem arbeiten und die unter [.filename]#/private# eingehängte Partition daher nicht mehr benötigen, sollten Sie diese unmounten und den `geli`-Verschlüsselungs-Provider wieder deaktivieren:
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1787,7 +1787,7 @@ Dieser Abschnitt zeigt die Konfiguration eines verschlüsselten Auslagerungsspei
Swap-Partitionen werden standardmäßig nicht verschlüsselt. Sie sollten daher alle sensiblen Daten im Auslagerungsspeicher löschen, bevor Sie fortfahren. Führen Sie folgenden Befehl aus, um die Swap-Partition mit Zufallsdaten zu überschreiben:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ada0s1b bs=1m
....
@@ -1836,7 +1836,7 @@ Nachdem das System neu gestartet wurde, kann die korrekte Funktion des verschlü
Wenn Sie man:gbde[8] einsetzen, erhalten Sie eine Meldung ähnlich der folgenden:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1845,7 +1845,7 @@ Device 1K-blocks Used Avail Capacity
Wenn Sie man:geli[8] einsetzen, erhalten Sie hingegen eine Ausgabe ähnlich der folgenden:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1942,7 +1942,7 @@ Es ist ebenfalls möglich, den Hostnamen in den `remote`-Anweisungen zu verwende
Sobald die Konfiguration auf beiden Rechnern vorhanden ist, kann ein HAST-Pool erstellt werden. Lassen Sie diese Kommandos auf beiden Knoten ablaufen, um die initialen Metadaten auf die lokale Platte zu schreiben und starten Sie anschließend man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -1955,21 +1955,21 @@ Es ist _nicht_ möglich, GEOM-Provider mit einem bereits bestehenden Dateisystem
Die Rolle eines HAST Knotens, `primary` oder `secondary`, wird vom einem Administrator, oder einer Software wie Heartbeat, mittels man:hastctl[8] festgelegt. Auf dem primären Knoten `hasta` geben Sie diesen Befehl ein:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Geben Sie folgendes Kommando auf dem sekundären Knoten `hastb` ein:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
Überprüfen Sie das Ergebnis mit `hastctl` auf beiden Knoten:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -1978,7 +1978,7 @@ Geben Sie folgendes Kommando auf dem sekundären Knoten `hastb` ein:
Der nächste Schritt ist, ein Dateisystem auf dem GEOM-Provider anzulegen und dieses ins System einzuhängen. Dies muss auf dem `primary`-Knoten durchgeführt werden. Die Erstellung des Dateisystems kann ein paar Minuten dauern, abhängig von der Größe der Festplatte. Dieses Beispiel erstellt ein UFS-Dateisystem auf [.filename]#/dev/hast/test#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2028,7 +2028,7 @@ Wenn auf dem System FreeBSD 10 oder höher eingesetzt wird, ersetzen Sie [.filen
Starten Sie man:devd[8] auf beiden Knoten neu, um die neue Konfiguration wirksam werden zu lassen:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2161,7 +2161,7 @@ Für die Fehlersuche bei HAST sollte die Anzahl an Debugging-Meldungen von man:h
Der Administrator muss entscheiden, welcher Knoten die wichtigeren Änderungen besitzt, oder die Zusammenführung manuell durchführen. Anschließend kann HAST die volle Synchronisation mit dem Knoten durchführen, der die beschädigten Daten enthält. Um dies zu tun, geben Sie folgende Befehle auf dem Knoten ein, der neu synchronisiert werden muss:
-[source,bash]
+[source,shell]
....
# hastctl role init test
# hastctl create test
diff --git a/documentation/content/de/books/handbook/dtrace/_index.adoc b/documentation/content/de/books/handbook/dtrace/_index.adoc
index d66ae24ae9..89aa0479ac 100644
--- a/documentation/content/de/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/de/books/handbook/dtrace/_index.adoc
@@ -77,7 +77,7 @@ Diese Funktion ist als experimentell anzusehen. Manche Einstellungen enthalten m
Obwohl DTrace in FreeBSD sehr ähnlich zu dem in Solaris(TM) ist, existieren doch Unterschiede. Der Hauptunterschied besteht darin, dass in FreeBSD DTrace als eine Menge von Kernelmodulen implementiert ist und DTrace nicht verwendet werden kann, bis diese Module geladen wurden. Um alle nötigen Module zu laden, geben Sie ein:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
@@ -132,7 +132,7 @@ DTrace-Skripte bestehen aus einer Liste von einer oder mehreren _Sonden_ oder In
Um alle Sonden anzuzeigen, kann der Administrator nun den folgenden Befehl eingeben:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -143,7 +143,7 @@ Die Beispiele in diesem Abschnitt geben einen Überblick, wie man zwei dieser vo
Das [.filename]#hotkernel# Skript wurde entworfen, um zu identifizieren, welche Funktion die meiste Kernelzeit beansprucht. Es wird es Ausgaben ähnlich der Folgenden produzieren:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/dtrace-toolkit
# ./hotkernel
@@ -152,7 +152,7 @@ Sampling... Hit Ctrl-C to end.
Verwenden Sie wie angegeben die Tastenkombination kbd:[Ctrl+C] drücken, um den Prozess zu stoppen. Nach dem Abbruch wird das Skript eine Liste von Kernelfunktionen und Zeitmessungen ausgeben, aufsteigend sortiert nach den Zeiten:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -184,7 +184,7 @@ kernel`sched_idletd 137 0.3%
Dieses Skript funktioniert auch mit Kernelmodulen. Um diese Eigenschaft zu verwenden, starten Sie das Skript mit `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -206,7 +206,7 @@ kernel 874 0.4%
Das [.filename]#procsystime# Skript fängt die Systemaufruf-Zeiten für eine gegebene Prozess-ID (PID) oder einen Prozessnamen ab und gibt diese aus. Im folgenden Beispiel wurde eine neue Instanz von [.filename]#/bin/csh# erzeugt. Dann wurde [.filename]#procsystime# ausgeführt und verbleibt so, während ein paar Befehle in die andere Instanz von `csh` eingegeben werden. Dies sind die Ergebnisse dieses Versuchs:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/de/books/handbook/filesystems/_index.adoc b/documentation/content/de/books/handbook/filesystems/_index.adoc
index d2c930b3c2..3d98f866ce 100644
--- a/documentation/content/de/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/de/books/handbook/filesystems/_index.adoc
@@ -84,14 +84,14 @@ Dieser Treiber kann auch für den Zugriff auf ext3 und ext4 Dateisysteme verwend
Um auf ein ext-Dateisystem zuzugreifen, muss zuerst das entsprechende Kernelmodul geladen werden:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Mounten Sie anschließend das ext-Volume unter Angabe des FreeBSD Partitionsnamens und eines existierenden Mountpunktes. Dieses Beispiel hängt [.filename]#/dev/ad1s1# nach [.filename]#/mnt# ein:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/de/books/handbook/firewalls/_index.adoc b/documentation/content/de/books/handbook/firewalls/_index.adoc
index ee62201001..afe1e675db 100644
--- a/documentation/content/de/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/de/books/handbook/firewalls/_index.adoc
@@ -143,7 +143,7 @@ Um PF zu benutzen, muss zunächst das Kernelmodul geladen werden. Dieser Abschni
Beginnen Sie damit `pf_enable=yes` in [.filename]#/etc/rc.conf# hinzuzufügen:
-[source,bash]
+[source,shell]
....
# sysrc pf_enable=yes
....
@@ -164,7 +164,7 @@ pf_rules="/path/to/pf.conf"
Protokollierungsfunktionen für PF werden von man:pflog[4] zur Verfügung gestellt. Fügen Sie `pflog_enable=yes` in [.filename]#/etc/rc.conf# ein, um diese Funktion zu aktivieren:
-[source,bash]
+[source,shell]
....
# sysrc pflog_enable=yes
....
@@ -186,7 +186,7 @@ gateway_enable="YES" # Enable as LAN gateway
Nachdem die Änderungen gespeichert wurden, kann PF mit Unterstützung für Protokollierung gestartet werden:
-[source,bash]
+[source,shell]
....
# service pf start
# service pflog start
@@ -241,7 +241,7 @@ pass out all keep state
Die erste Regel blockiert jeglichen eingehenden Datenverkehr. Die zweite Regel erlaubt ausgehende Verbindungen von diesem Rechner, während die Zustandsinformationen dieser Verbindungen gespeichert werden. Diese Zustandsinformationen machen es möglich, den Antwortverkehr für diese Verbindungen zu erlauben. Der Regelsatz wird mit dem folgenden Befehl geladen:
-[source,bash]
+[source,shell]
....
# pfctl -e ; pfctl -f /etc/pf.conf
....
@@ -269,14 +269,14 @@ Obwohl UDP als zustandsloses Protokoll betrachtet wird, ist PF in der Lage einig
Nachdem der Regelsatz verändert wurde, muss er neu geladen werden:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
Wenn keine Syntaxfehler festgestellt werden, wird `pfctl` keine Ausgabe erzeugen. Die Syntax kann auch getestet werden, bevor der Regelsatz geladen wird:
-[source,bash]
+[source,shell]
....
# pfctl -nf /etc/pf.conf
....
@@ -296,21 +296,21 @@ Dieser Abschnitt zeigt wie ein FreeBSD-System mit PF als Gateway konfiguriert wi
Aktivieren Sie zunächst das Gateway, damit der Rechner den Netzwerkverkehr von einer Schnittstelle zur nächsten weiterleiten kann. Diese sysctl-Einstellung sorgt dafür, dass IPv4-Pakete weitergeleitet werden:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.ip.forwarding=1
....
So leiten Sie IPv6-Datenverkehr weiter:
-[source,bash]
+[source,shell]
....
# sysctl net.inet6.ip6.forwarding=1
....
Um diese Einstellungen beim Systemstart zu aktivieren, fügen Sie sie mit Hilfe von man:sysrc[8] in [.filename]#/etc/rc.conf# ein:
-[source,bash]
+[source,shell]
....
# sysrc gateway_enable=yes
# sysrc ipv6_gateway_enable=yes
@@ -451,7 +451,7 @@ pass out proto tcp from $proxy to any port ftp
Speichern Sie [.filename]#/etc/pf.conf# und laden Sie die Regeln neu. Prüfen Sie von einem Client, ob die FTP-Verbindungen funktionieren:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
@@ -563,14 +563,14 @@ pass inet proto tcp from <clients> to any port $client_out flags S/SA keep state
Die Inhalte einer Tabelle können mit `pfctl` direkt verändert werden. Dieses Beispiel fügt ein weiteres Netzwerk zur Tabelle hinzu:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T add 192.168.1.0/16
....
Beachten Sie, dass auf diese Weise vorgenommene Änderungen direkt übernommen werden, jedoch bei einem Neustart des Systems oder bei einem Stromausfall verloren gehen. Um die Änderungen dauerhaft zu speichern, müssen sie in der Definition der Tabelle oder in der Datei, auf die sich die Tabelle bezieht, bearbeitet werden. Mit einem man:cron[8] Job und einem Befehl wie `pfctl -t clients -T show >/etc/clients` können Sie auch eine Kopie der Tabelle auf Platte speichern und dann in regelmäßigen Abständen aktualisieren. Alternativ kann [.filename]#/etc/clients# auch mit den Tabelleneinträgen, die sich aktuell im Speicher befinden, aktualisiert werden.
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T replace -f /etc/clients
....
@@ -649,7 +649,7 @@ Im Laufe der Zeit werden die Tabellen durch die `overload`-Regeln immer größer
Für solche Situationen bietet `pfctl` die Möglichkeit, Tabelleneinträge auslaufen zu lassen. Dieses Kommando würde beispielsweise Einträge aus der Tabelle `<bruteforce>` löschen, die seit `86400` Sekunden nicht mehr referenziert wurden:
-[source,bash]
+[source,shell]
....
# pfctl -t bruteforce -T expire 86400
....
@@ -687,7 +687,7 @@ fdescfs /dev/fd fdescfs rw 0 0
+
Danach hängen Sie das Dateisystem ein:
+
-[source,bash]
+[source,shell]
....
# mount fdescfs
....
@@ -781,7 +781,7 @@ spamd_grey="YES" # use spamd greylisting if YES
Lesen Sie die Manualpage von spamd für Beschreibungen von zusätzlichen Parametern.
. Starten Sie die Dienste, um die Konfiguration von Greylisting abzuschließen:
+
-[source,bash]
+[source,shell]
....
# service obspamd restart
# service spamlogd start
@@ -902,14 +902,14 @@ Wenn Sie eine statische Unterstützung für IPFW in den Kernel kompilieren wolle
Um IPFW beim Systemstart zu aktivieren, fügen Sie `firewall_enable="YES"` in [.filename]#/etc/rc.conf# ein:
-[source,bash]
+[source,shell]
....
# sysrc firewall_enable="YES"
....
Wenn Sie einen der von FreeBSD zur Verfügung gestellten Firewall-Profile benutzen möchten, fügen Sie eine weitere Zeile hinzu, in der Sie das Profil bestimmen:
-[source,bash]
+[source,shell]
....
# sysrc firewall_type="open"
....
@@ -930,14 +930,14 @@ Beachten Sie, dass das Profil `filename` verwendet wird, um ein benutzerdefinier
Eine alternative Möglichkeit, um ein benutzerdefiniertes Regelwerk zu laden, bietet die Variable `firewall_script`. Setzen Sie die Variable auf den absoluten Pfad eines _ausführbaren Skripts_, welches die Befehle für IPFW enthält. Die Beispiele in diesem Abschnitt gehen davon aus, dass `firewall_script` auf [.filename]#/etc/ipfw.rules# gesetzt ist.
-[source,bash]
+[source,shell]
....
# sysrc firewall_script="/etc/ipfw.rules"
....
Die Protokollierung wird mit diesem Befehl aktiviert:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logging="YES"
....
@@ -950,21 +950,21 @@ Es werden nur Firewallregeln mit der Option `log` protokolliert. Die voreingeste
Es existiert keine Variable für [.filename]#/etc/rc.conf#, um die Protokollierung zu begrenzen. Um die Anzahl der Protokoll-Nachrichten pro Verbindungsversuch zu begrenzen, legen Sie die Anzahl der Einträge in [.filename]#/etc/sysctl.conf# fest:
-[source,bash]
+[source,shell]
....
# echo "net.inet.ip.fw.verbose_limit=5" >> /etc/sysctl.conf
....
Um die Protokollierung über die spezielle Schnittstelle `ipfw0` zu aktivieren, fügen Sie stattdessen folgende Zeile in [.filename]#/etc/rc.conf# hinzu:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logif="YES"
....
Benutzen Sie dann tcpdump, um zu sehen, was protokolliert wird:
-[source,bash]
+[source,shell]
....
# tcpdump -t -n -i ipfw0
....
@@ -977,7 +977,7 @@ Durch die Protokollierung entsteht kein Aufwand, es sei denn, tcpdump wird an di
Nachdem Sie die Änderungen vorgenommen haben, können Sie die Firewall starten. Um auch die Anzahl der Protokoll-Nachrichten zu konfigurieren, setzen Sie mit `sysctl` den gewünschten Wert:
-[source,bash]
+[source,shell]
....
# service firewall start
# sysctl net.inet.ip.fw.verbose_limit=5
@@ -1398,49 +1398,49 @@ redirect_address 192.168.0.3 128.1.1.3
Eine Auflistung aller geladenen Regeln erhalten Sie mit:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Eine Auflistung aller Regeln inklusive des letzten Treffers erhalten Sie mit:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
Das nächste Beispiel zeigt Informationen über die Anzahl der Pakete, die von einer Regel gefiltert wurden sowie die Regel selbst. Der erste Spalte zeigt die Nummer der Regel, gefolgt von der Anzahl der gefilterten Pakete und der Anzahl der Pakete in Bytes. Zum Schluss steht die Regel selbst:
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Das folgende Kommando zeigt zusätzlich alle dynamischen Regeln an:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
Um diese Auflistung um die "abgelaufenen" Regeln zu erweitern, geben Sie folgendes Kommando ein:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
Hiermit werden alle Zähler auf Null zurückgesetzt:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Es ist auch möglich, einen spezifischen Zähler zurückzusetzen:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1492,7 +1492,7 @@ Die Regeln in diesem Beispiel sind nicht wichtig. Wichtig ist es, zu zeigen, wie
Wenn dieses Beispiel in [.filename]#etc/ipfw.rules# gespeichert wurde, so könnten alle Regeln durch die Ausführung des folgenden Kommandos neu geladen werden:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1501,7 +1501,7 @@ Anstelle von [.filename]#/etc/ipfw.rules# kann ein beliebig anderer Name oder Sp
Alternativ können die einzelnen Befehle dieses Skripts auch von Hand eingegeben werden:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
@@ -1590,14 +1590,14 @@ ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat
Jetzt können Sie IPF starten:
-[source,bash]
+[source,shell]
....
# service ipfilter start
....
Um die Firewallregeln zu laden, übergeben Sie den Namen des Regelwerks an `ipf`. Mit dem folgenden Kommando ersetzen Sie alle aktuell geladenen Regeln:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -1920,28 +1920,28 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Nachdem die Datei mit den NAT-Regeln bearbeitet wurde, führen Sie `ipnat` mit `-CF` aus, um die aktuellen NAT-Regeln und den Inhalt der dynamischen Zuordnungstabelle zu löschen. Geben Sie `-f` zusammen mit dem NAT-Regelsatz an:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
Statistiken zu NAT lassen sich wie folgt anzeigen:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
Die aktuellen Zuordnungen der NAT-Tabelle geben Sie mit diesem Kommando aus:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
Ausführliche Informationen erhalten Sie mit:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1952,7 +1952,7 @@ IPF enthält mit man:ipfstat[8] ein Werkzeug, mit dem Statistiken abgerufen und
Die Ausgabe von `ifstat` sieht in etwa wie folgt aus:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -1975,7 +1975,7 @@ Packet log flags set: (0)
Es stehen viele Optionen zur Verfügung. Wird entweder `-i` (eingehend) oder `-o` (ausgehend) angegeben, wird der Befehl die entsprechende Liste mit den derzeit vom Kernel benutzten Filterregeln anzeigen. Um auch die Regelnummern zu sehen, muss `-n` angegeben werden. Zum Beispiel zeigt `ipfstat -on` die Tabelle für ausgehende Regeln und die Regelnummer an:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -1984,7 +1984,7 @@ Es stehen viele Optionen zur Verfügung. Wird entweder `-i` (eingehend) oder `-o
Wenn Sie der Regel ein `-h` voranstellen, wird der Zähler für die jeweilige Regel ausgegeben. Zum Beispiel gibt `ipfstat -oh` die ausgehenden Regeln inklusive der Zähler aus:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -2013,7 +2013,7 @@ Nachdem die Protokollierung in [.filename]#/etc/rc.conf# aktiviert und mit `serv
In der Voreinstellung verwendet `ipmon -Ds local0` als Protokoll-Facility. Die folgenden Level können verwendet werden, um die erfassten Daten weiter aufzuspalten:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -2023,7 +2023,7 @@ LOG_ERR - packets which have been logged and which can be considered short due t
Damit IPF alle Daten protokolliert, legen Sie zunächst eine neue Datei [.filename]#/var/log/ipfilter.log# an:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -2065,14 +2065,14 @@ In diesem Kapitel wird die Einrichtung und Konfiguration von blacklistd besproch
Die Konfiguration für blacklistd wird in man:blacklistd.conf[5] gespeichert. Um das Laufzeitverhalten von blacklistd zu beeinflussen, sind verschiedene Kommandozeilenoptionen verfügbar. Die permanente Konfiguration über Neustarts hinweg sollte in [.filename]#/etc/blacklistd.conf# gespeichert werden. Um den Daemon während des Systemstarts zu aktivieren, fügen Sie eine Zeile `blacklistd_enable` in [.filename]#/etc/rc.conf# hinzu:
-[source,bash]
+[source,shell]
....
# sysrc blacklistd_enable=yes
....
Sie können den Daemon auch manuell starten:
-[source,bash]
+[source,shell]
....
# service blacklistd start
....
@@ -2188,7 +2188,7 @@ Das ist alles, was benötigt wird, damit diese Programme mit blacklist kommunizi
Blacklistd stellt dem Benutzer das Verwaltungswerkzeug man:blacklistctl[8] zur Verfügung. Es zeigt blockierte Adressen und Netzwerke an, die nach den in man:blacklistd.conf[5] definierten Regeln auf der Blacklist stehen. Um die Liste der aktuell blockierten Rechner anzuzeigen, benutzen Sie `dump` zusammen mit der Option `-b`:
-[source,bash]
+[source,shell]
....
# blacklistctl dump -b
address/ma:port id nfail last access
@@ -2199,7 +2199,7 @@ Dieses Beispiel zeigt, dass es sechs von drei erlaubten Anmeldeversuchen auf Por
Um die verbleibende Zeit zu sehen, die sich dieser Rechner auf der Blacklist befindet, fügen Sie `-r` zum vorherigen Befehl hinzu:
-[source,bash]
+[source,shell]
....
# blacklistctl dump -br
address/ma:port id nfail remaining time
@@ -2212,7 +2212,7 @@ In diesem Beispiel bleiben noch 36 Sekunden, bis dieser Rechner nicht mehr block
Manchmal ist es notwendig, einen Rechner aus der Blocklist zu entfernen, bevor die verbleibende Zeit abgelaufen ist. Leider bietet blacklistd keine Möglichkeit dies zu tun. Es ist jedoch möglich, die Adresse mit `pfctl` aus der PF-Tabelle zu entfernen. Für den blockierten Port gibt es einen untergeordneten Anker innerhalb des definierten blacklistd-Ankers in [.filename]#/etc/pf.conf#. Wenn es beispielsweise einen untergeordneten Anker zum Blockieren von Port 22 gibt, wird dieser als `blacklistd/22` bezeichnet. In diesem untergeordneten Anker befindet sich eine Tabelle, die die blockierten Adressen enthält. Diese Tabelle wird Port genannt, gefolgt von der Portnummer. In diesem Beispiel würde es `port22` heißen. Mit diesen Informationen und man:pfctl[8] ist es nun möglich, alle geblockten Adressen anzuzeigen:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T show
...
@@ -2222,7 +2222,7 @@ Manchmal ist es notwendig, einen Rechner aus der Blocklist zu entfernen, bevor d
Nachdem Sie die entsprechende Adresse ermittelt wurde, kann sie mit folgendem Befehl aus der Liste entfernt werden:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T delete 213.0.123.128/25
....
diff --git a/documentation/content/de/books/handbook/geom/_index.adoc b/documentation/content/de/books/handbook/geom/_index.adoc
index 0ce67d2899..7294119468 100644
--- a/documentation/content/de/books/handbook/geom/_index.adoc
+++ b/documentation/content/de/books/handbook/geom/_index.adoc
@@ -87,7 +87,7 @@ Die Erstellung eines GEOM-basierten RAID0 auf einem FreeBSD-System wird im folge
. Laden Sie das [.filename]#geom_stripe.ko#-Modul:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
@@ -95,7 +95,7 @@ Die Erstellung eines GEOM-basierten RAID0 auf einem FreeBSD-System wird im folge
. Stellen Sie sicher, dass ein geeigneter Mountpunkt existiert. Falls dieser Datenträger eine Root-Partition werden soll, dann nutzen Sie zeitweise einen anderen Mountpunkt, beispielsweise [.filename]#/mnt#.
. Bestimmen Sie die Gerätenamen derjenigen Platten, welche gestriped werden sollen, und erzeugen Sie ein neues Stripe-Gerät. Das folgende Beispiel verwendet zwei unbenutzte und unpartitionierte ATA-Platten, die gestriped werden sollen. Die Gerätenamen lauten [.filename]#/dev/ad2# und [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -105,14 +105,14 @@ Done.
. Schreiben Sie einen Standard-Label (auch als Partitions-Tabelle bekannt) auf den neuen Datenträger und installieren Sie den normalen Bootstrap-Code:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
. Dieser Prozess sollte zwei weitere Geräte im Verzeichnis [.filename]#/dev/stripe# (zusätzlich zum Gerät [.filename]#st0#) erzeugt haben. Diese schliessen [.filename]#st0a# und [.filename]#st0c# ein. Nun kann mit `newfs` ein UFS-Dateisystem auf dem Gerät [.filename]#st0a# erzeugt werden:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -120,14 +120,14 @@ Done.
Viele Zahlen rauschen nun über den Bildschirm und nach ein paar Sekunden wird der Prozess abgeschlossen sein. Der Datenträger wurde erzeugt und kann in den Verzeichnisbaum eingehängt werden.
. Um das erzeugte Stripe manuell zu mounten:
+
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
. Um das erzeugte Dateisystem automatisch während des Startvorgangs zu mounten, muss die Datenträgerinformation in [.filename]#/etc/fstab# eingetragen werden. In diesem Beispiel wird ein permanenter Mountpunkt namens [.filename]#stripe# erstellt:
+
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -136,7 +136,7 @@ Viele Zahlen rauschen nun über den Bildschirm und nach ein paar Sekunden wird d
. Das [.filename]#geom_stripe.ko#-Modul muss ebenfalls automatisch beim Systemstart geladen werden (durch die Aufnahme der folgenden Zeile in die Datei [.filename]#/boot/loader.conf#):
+
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -170,21 +170,21 @@ Viele Plattensysteme speichern Metadaten am Ende der Platte. Alte Metadaten soll
GPT-Metadaten können mit man:gpart[8] gelöscht werden. Dieses Beispiel löscht sowohl die primären, als auch die GPT-Partitionstabelle von der Festplatte [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
Mit man:gmirror[8] kann eine Platte aus einem aktiven Spiegel entfernt und gleichzeitig die Metadaten gelöscht werden. In diesem Beispiel wird die Platte [.filename]#ada8# aus dem aktiven Spiegel [.filename]#gm4# entfernt:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
Wenn der Spiegel nicht aktiv ist, sich jedoch noch alte Metadaten auf der Festplatte befinden, benutzen Sie `gmirror clear`, um die Metadaten zu entfernen:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -198,14 +198,14 @@ In diesem Beispiel wurde FreeBSD bereits auf der vorhandenen Festplatte [.filena
Das Kernelmodul [.filename]#geom_mirror.ko# muss entweder in den Kernel eingebaut, oder zur Laufzeit geladen werden. Sie können das Modul manuell laden:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Erstellen Sie den Spiegel mit den beiden neuen Festplatten:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -216,7 +216,7 @@ MBR- und bsdlabel-Partitionstabellen können jetzt auf dem neuen Spiegel erzeugt
Die Partitionen auf dem Spiegel müssen nicht zwingend die gleiche Größe wie die auf der Festplatte haben, aber sie müssen groß genug sein, um alle Daten aufnehmen zu können, die bereits auf [.filename]#ada0# gespeichert sind.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -227,7 +227,7 @@ Die Partitionen auf dem Spiegel müssen nicht zwingend die gleiche Größe wie d
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -248,7 +248,7 @@ Die Partitionen auf dem Spiegel müssen nicht zwingend die gleiche Größe wie d
Damit von dem Spiegel gebootet werden kann, muss der Bootcode in den MBR installiert, ein bsdlabel erstellt und die aktive Partition gesetzt werden:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -257,7 +257,7 @@ Damit von dem Spiegel gebootet werden kann, muss der Bootcode in den MBR install
Erstellen Sie die Dateisysteme auf dem neuen Spiegel und aktivieren Sie Soft-Updates:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -267,7 +267,7 @@ Erstellen Sie die Dateisysteme auf dem neuen Spiegel und aktivieren Sie Soft-Upd
Die Dateisysteme der vorhandenen Platte [.filename]#ada0# können jetzt mit man:dump[8] und man:restore[8] auf den Spiegel kopiert werden.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -311,14 +311,14 @@ In diesem Beispiel wurde FreeBSD bereits auf der Festplatte [.filename]#ada0# in
Laden Sie das Kernelmodul [.filename]#geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Prüfen Sie mit `diskinfo` die Mediengröße der vorhandenen Festplatte:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -328,7 +328,7 @@ Prüfen Sie mit `diskinfo` die Mediengröße der vorhandenen Festplatte:
Jetzt können Sie den Spiegel auf der neuen Festplatte erzeugen. Um sicherzustellen, dass die Kapazität nicht größer ist, als die Kapazität der vorhandenen Platte [.filename]#ada0#, benutzen Sie man:gnop[8] um eine Platte mit der exakt gleichen Größe zu imitieren. Diese Platte speichert keine Daten und wird nur verwendet, um die Größe des Spiegels zu begrenzen. man:gmirror[8] wird die Kapazität des Spiegels auf die Größe von [.filename]#gzero.nop# beschränken, auch wenn die neue Festplatte [.filename]#ada1# mehr Platz zur Verfügung hätte. Beachten Sie, dass _1000204821504_ in der zweiten Zeile der ermittelten Mediengröße von `diskinfo` entspricht.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -342,7 +342,7 @@ Sehen Sie sich nach der Erstellung von [.filename]#gm0# die Partitionstabelle vo
Falls jedoch der gesamte Speicherplatz auf der Platte zugeordnet ist, dann gibt es keinen Platz mehr für die 512 Byte Metadaten für den Spiegel am Ende der Platte, wie in dieser Auflistung zu sehen.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -353,7 +353,7 @@ In diesem Fall muss die Partitionstabelle bearbeitet werden, um die Kapazität v
In beiden Fällen sollte die Partitionstabelle der primären Platte mit `gpart backup` gesichert werden.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -361,14 +361,14 @@ In beiden Fällen sollte die Partitionstabelle der primären Platte mit `gpart b
Diese Kommandos erstellen zwei Dateien, [.filename]#table.ada0# und [.filename]#table.ada0s1#. Das Beispiel verwendet eine 1 TB Festplatte:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -382,14 +382,14 @@ BSD 8
Wenn am Ende der Platte kein Platz vorhanden ist, muss die Größe des Slice und der letzten Partition verringert werden. Bearbeiten Sie die beiden Dateien, und verringern Sie die Größe der Slice und der Partition jeweils um eins. Dies bezieht sich auf die letzten Zahlen in der Liste.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -405,7 +405,7 @@ Wenn mindestens ein Sektor der Platte nicht zugewiesen wurde, kann die Platte oh
Jetzt kann die Partitionstabelle auf [.filename]#mirror/gm0# wiederhergestellt werden:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -413,7 +413,7 @@ Jetzt kann die Partitionstabelle auf [.filename]#mirror/gm0# wiederhergestellt w
Prüfen Sie die Partitionstabellen mit `gpart show`. Dieses Beispiel nutzt [.filename]#gm0s1a# für [.filename]#/#, [.filename]#gm0s1d# für [.filename]#/var#, [.filename]#gm0s1e# für [.filename]#/usr#, [.filename]#gm0s1f# für [.filename]#/data1# und [.filename]#gm0s1g# für [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -435,7 +435,7 @@ Sowohl die Slice, als auch die letzte Partition, muss mindestens einen freien Bl
Erstellen Sie Dateisysteme auf diesen neuen Partitionen:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -446,7 +446,7 @@ Erstellen Sie Dateisysteme auf diesen neuen Partitionen:
Damit Sie von dem Spiegel booten können, müssen Sie den Bootcode in den MBR installieren, ein bsdlabel anlegen und das aktive Slice setzen:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -455,7 +455,7 @@ Damit Sie von dem Spiegel booten können, müssen Sie den Bootcode in den MBR in
Bearbeiten Sie [.filename]#/etc/fstab#, um die neuen Partitionen auf dem Spiegel nutzen zu können. Speichern Sie zunächst eine Kopie der Datei unter [.filename]#/etc/fstab.orig#:
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -482,7 +482,7 @@ geom_mirror_load="YES"
Die Dateisysteme der ursprünglichen Platte können jetzt mit man:dump[8] und man:restore[8] auf den Spiegel kopiert werden. Wenn Sie das Dateisystem mit `dump -L` sichern, wird zunächst ein Snapshot des Dateisystems erstellt, was einige Zeit dauern kann.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -507,7 +507,7 @@ Nachdem erfolgreich von [.filename]#mirror/gm0# gebootet wurde, besteht der letz
Wenn Sie [.filename]#ada0# in den Spiegel einfügen, wird der Inhalt der Platte mit den Daten aus dem Spiegel überschrieben. Sie müssen sicherstellen, das [.filename]#mirror/gm0# den gleichen Inhalt wie [.filename]#ada0# hat, bevor Sie [.filename]#ada0# zum Spiegel hinzufügen. Falls der zuvor mit man:dump[8] und man:restore[8] kopierte Inhalt nicht mit dem von [.filename]#ada0# identisch ist, machen Sie die Änderungen an [.filename]#/etc/fstab# rückgängig, starten Sie das System neu und beginnen Sie die Prozedur von vorn.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -515,7 +515,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
Die Synchronisation zwischen den beiden Platten wird direkt gestartet. Verwenden Sie `gmirror status` um den Fortschritt zu beobachten.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -525,7 +525,7 @@ girror/gm0 DEGRADED ada1 (ACTIVE)
Nach einer Weile wird die Wiederherstellung abgeschlossen sein.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -543,7 +543,7 @@ Falls das System nicht mehr startet, müssen möglicherweise die BIOS-Einstellun
Wenn der Bootvorgang mit der folgenden Meldung abbricht, ist irgendwas mit dem Spiegel nicht in Ordnung:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -570,7 +570,7 @@ mountroot>
Dieses Problem kann durch ein nicht geladenes Kernelmodul [.filename]#geom_mirror.ko# in [.filename]#/boot/loader.conf# verursacht werden. Um das Problem zu beheben, booten Sie von einem FreeBSD-Installationsmedium und wählen Sie `Shell` an der Eingabeaufforderung. Laden Sie dann das Modul und hängen Sie den Spiegel ein:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -587,7 +587,7 @@ Speichern Sie die Datei und starten Sie das System neu.
Andere Probleme, die `error 19` verursachen können, sind nur mit mehr Aufwand zu beheben. Obwohl das System von [.filename]#ada0# booten sollte, wird ein weiterer Prompt erscheinen, wenn [.filename]#/etc/fstab# fehlerhaft ist. Geben Sie am Loader-Prompt `ufs:/dev/ada0s1a` ein und drücken Sie kbd:[Enter]. Machen Sie die Änderungen an [.filename]#/etc/fstab# rückgängig und hängen Sie anstelle des Spiegels die originale Festplatte ([.filename]#ada0#) ein. Starten Sie dann das System neu und versuchen Sie den Vorgang erneut.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -602,14 +602,14 @@ Um das ausgefallene Laufwerk zu ersetzen, muss das System heruntergefahren werde
Nachdem der Rechner wieder eingeschaltet ist, wird der Spiegel im "degraded" Modus ausgeführt werden. Der Spiegel wird angewiesen, Laufwerke zu vergessen, die noch nicht verbunden sind:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Alte Metadaten sollten von der Ersatzfestplatte nach den Anweisungen in <<geom-mirror-metadata>> gelöscht werden. Anschließend kann die Ersatzfestplatte, in diesem Beispiel [.filename]#ada4#, in den Spiegel eingefügt werden:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -639,28 +639,28 @@ In FreeBSD wird die Unterstützung für RAID3 über die GEOM-Klasse man:graid3[8
[.procedure]
. Laden Sie zunächst das Modul [.filename]#geom_raid3.ko# mit einem der folgenden Befehle:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
oder:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3
....
. Stellen Sie sicher, dass ein geeigneter Mountpunkt existiert. Dieser Befehl erstellt ein neues Verzeichnis, welches als Mountpunkt verwendet werden kann:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
. Bestimmen Sie die Gerätenamen der Festplatten, die dem Array hinzugefügt werden und erstellen Sie ein neues RAID3 Gerät. Das letzte aufgeführte Gerät wird als dediziertes Paritätslaufwerk verwendet. Dieses Beispiel verwendet drei unpartionierte ATA-Platten: [.filename]#ada1# und [.filename]#ada2# für die Daten, sowie [.filename]#ada3# für die Parität.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -671,7 +671,7 @@ Done.
. Partitionieren Sie das neu erstelle Gerät [.filename]#gr0# und erstellen Sie darauf ein UFS-Dateisystem:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -680,7 +680,7 @@ Done.
+
Viele Zahlen rauschen nun über den Bildschirm und nach einer gewissen Zeit ist der Vorgang abgeschlossen. Das Volume wurde erstellt und kann jetzt in den Verzeichnisbaum eingehangen werden:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -725,7 +725,7 @@ Geräte mit Software-RAID haben oft ein Menü, das über eine bestimmte Tastenko
Bei der Erstellung des Arrays wird etwas Platz auf den Laufwerken überschrieben. Sichern Sie zuvor alle vorhandenen Daten!
====
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 ada1
GEOM_RAID: Intel-a29ea104: Array Intel-a29ea104 created.
@@ -741,7 +741,7 @@ GEOM_RAID: Intel-a29ea104: Provider raid/r0 for volume gm0 created.
Eine Statusabfrage zeigt, dass der neue Spiegel einsatzbereit ist:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -753,7 +753,7 @@ Das Array-Gerät erscheint in [.filename]#/dev/raid/#. Das erste Gerät heißt [
Das BIOS-Menü einiger Geräte erstellt Arrays mit Sonderzeichen im Namen. Um Probleme mit diesen Sonderzeichen zu vermeiden, werden einfache numerische Namen wie [.filename]#r0# vergeben. Um das tatsächliche Label anzuzeigen, wie [.filename]#gm0# im obigen Beispiel, benutzen Sie man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.raid.name_format=1
....
@@ -763,7 +763,7 @@ Das BIOS-Menü einiger Geräte erstellt Arrays mit Sonderzeichen im Namen. Um Pr
Einige Software-RAID Geräte unterstützen mehr als ein _Volume_ pro Array. Volumes funktionieren wie Festplatten, dass heißt der Platz auf den Laufwerken kann auf unterschiedliche Weise geteilt und genutzt werden. Intels Software-RAID Geräte unterstützen beispielsweise zwei Volumes. In diesem Beispiel wird ein 40 GB Spiegel verwendet um das Betriebssystem zu speichern, gefolgt von einem 20 GB RAID0 (Stripe) Volume für die schnelle Speicherung von temporären Daten.
-[source,bash]
+[source,shell]
....
# graid label -S 40G Intel gm0 RAID1 ada0 ada1
# graid add -S 20G gm0 RAID0
@@ -783,14 +783,14 @@ Unter bestimmten Umständen ist es möglich, ein bestehendes Laufwerk ohne Neufo
Wenn das Laufwerk diese Anforderungen erfüllt, erstellen Sie zuerst eine vollständige Sicherung. Erzeugen Sie dann einen Spiegel mit diesem einen Laufwerk:
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 NONE
....
Die Metadaten von man:graid[8] werden in den ungenutzten Raum am Ende des Laufwerks geschrieben. Ein zweites Laufwerk kann nun in den Spiegel eingefügt werden:
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
....
@@ -804,7 +804,7 @@ Laufwerke in einem Array können für ausgefallene oder fehlende Laufwerke einge
Das Array in diesem Beispiel beginnt sofort damit, die Daten auf das neu hinzugefügte Laufwerk zu kopieren. Alle vorhandenen Daten auf dem neuen Laufwerk werden überschrieben.
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from NONE to ACTIVE.
@@ -818,7 +818,7 @@ GEOM_RAID: Intel-a29ea104: Subdisk gm0:1-ada1 rebuild start at 0.
Einzelne Laufwerke können permanent aus dem Array entfernt werden. Die Metadaten werden dabei gelöscht:
-[source,bash]
+[source,shell]
....
# graid remove raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from ACTIVE to OFFLINE.
@@ -831,7 +831,7 @@ GEOM_RAID: Intel-a29ea104: Volume gm0 state changed from OPTIMAL to DEGRADED.
Ein Array kann angehalten werden, ohne die Metadaten von den Laufwerken zu löschen. Das Array wird wieder anlaufen, wenn das System neu gestartet wird.
-[source,bash]
+[source,shell]
....
# graid stop raid/r0
....
@@ -841,7 +841,7 @@ Ein Array kann angehalten werden, ohne die Metadaten von den Laufwerken zu lösc
Der Status des Arrays kann jederzeit überprüft werden. Nachdem ein Laufwerk zum Array hinzugefügt wurde, werden die Daten vom ursprünglichen Laufwerk auf das neue Laufwerk kopiert:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -851,7 +851,7 @@ raid/r0 DEGRADED ada0 (ACTIVE (ACTIVE))
Andere Arten von Arrays, wie `RAID0` oder `CONCAT`, werden den Status eines fehlgeschlagenen Laufwerks vielleicht nicht anzeigen. Um diese teilweise ausgefallenen Arrays anzuzeigen, fügen Sie `-ga` hinzu:
-[source,bash]
+[source,shell]
....
# graid status -ga
Name Status Components
@@ -863,7 +863,7 @@ Intel-e2d07d9a BROKEN ada6 (ACTIVE (ACTIVE))
Arrays werden zerstört, indem alle Volumes gelöscht werden. Wenn das letzte Volume gelöscht wird, wird das Array gestoppt und die Metadaten von den Laufwerken entfernt:
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -876,7 +876,7 @@ Laufwerke können unerwartete man:graid[8] Metadaten enthalten, entweder aus fr
[.procedure]
. Booten Sie das System. Im Boot-Menü wählen Sie `2` für den Loader-Prompt. Geben Sie dann folgendes ein:
+
-[source,bash]
+[source,shell]
....
OK set kern.geom.raid.enable=0
OK boot
@@ -895,7 +895,7 @@ in [.filename]#/boot/loader.conf# hinzugefügt wird.
+
Um die man:graid[8] Metadaten von dem entsprechenden Laufwerk zu entfernen, booten Sie vom FreeBSD Installationsmedium und wählen Sie `Shell` aus. Benutzen Sie `status`, um den Namen des Arrays zu bestimmten, typischerweise `raid/r0`:
+
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -905,7 +905,7 @@ raid/r0 OPTIMAL ada0 (ACTIVE (ACTIVE))
+
Löschen Sie das Volume:
+
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -928,7 +928,7 @@ GEOM unterstützt einen einfachen Mechanismus für den Zugriff auf entfernte Ger
Bevor das Gerät exportiert werden kann, müssen Sie sicherstellen, dass es nicht bereits gemountet ist. Anschließend starten Sie ggated.
-[source,bash]
+[source,shell]
....
# ggated
....
@@ -937,7 +937,7 @@ Es stehen mehrere Optionen bereit, mit denen zum Beispiel ein alternativer Port
Damit ein Client auf das exportierte Gerät zugreifen kann, benutzten Sie ggatec zusammen mit der IP-Adresse des Servers und dem entsprechenden Gerätenamen. Wenn dies erfolgreich ist, zeigt dieser Befehl einen `ggate`-Gerätenamen. Hängen Sie dieses Gerät in einen freien Mountpunkt ein. Dieses Beispiel verbindet sich mit der Partition [.filename]#/dev/da0s4d# auf `192.168.1.1` und hängt [.filename]#/dev/ggate0# in [.filename]#/mnt# ein:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -975,7 +975,7 @@ Temporäre Label werden beim nächsten Systemstart zerstört. Diese Label werden
Um ein permanentes Label auf einem UFS2-Dateisystem ohne Löschung von Daten zu erzeugen, kann man folgenden Befehl verwenden:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -994,7 +994,7 @@ Das Dateisystem darf nicht gemountet sein beim Versuch, `tunefs` auszuführen.
Nun kann das Dateisystem eingehängt werden:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -1005,7 +1005,7 @@ Dateisysteme können auch mit einem Standard-Label erzeugt werden (mittels des F
Der folgende Befehl kann genutzt werden, um das Label zu beseitigen:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -1019,7 +1019,7 @@ Durch das Erstellen von permanenten Labeln für die Partitionen einer Bootplatte
Starten Sie das System neu. Am man:loader[8]-Prompt drücken Sie die Taste kbd:[4], um in den Single-User-Modus zu gelangen. Dort führen Sie die folgenden Befehle aus:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -1048,7 +1048,7 @@ Das System startet daraufhin in den Multi-User-Modus. Nachdem der Startvorgang a
Starten Sie das System neu. Treten keine Probleme auf, wird das System normal hochfahren und Sie erhalten die folgende Ausgabe, wenn Sie den Befehl `mount` ausführen:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -1062,7 +1062,7 @@ devfs on /dev (devfs, local)
man:glabel[8] unterstützt einen Labeltyp für UFS-Dateisysteme. Dieser basiert auf der eindeutigen Dateisystem-ID `ufsid`. Derartige Label finden sich in [.filename]#/dev/ufsid# und werden während des Systemstarts automatisch erzeugt. Es ist möglich, diese `ufsid`-Label zum automatischen Einhängen von Partitionen in [.filename]#/etc/fstab# einzusetzen. Verwenden Sie `glabel status`, um eine Liste aller Dateisysteme und ihrer `ufsid`-Label zu erhalten:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -1105,7 +1105,7 @@ options GEOM_JOURNAL
Sobald das Modul geladen ist, kann ein Journal auf einem neuen Dateisystem erstellt werden. In diesem Beispiel ist [.filename]#da4# die neue SCSI-Platte:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -1115,7 +1115,7 @@ Diese Befehle laden das Modul und erstellen die Gerätedatei [.filename]#/dev/da
Nun kann auf dem neuen Gerät ein UFS-Dateisystem erstellt werden, welches dann in den Verzeichnisbaum eingehängt wird:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
# mount /dev/da4.journal /mnt
diff --git a/documentation/content/de/books/handbook/jails/_index.adoc b/documentation/content/de/books/handbook/jails/_index.adoc
index 66d1ee9a8c..df78a87de2 100644
--- a/documentation/content/de/books/handbook/jails/_index.adoc
+++ b/documentation/content/de/books/handbook/jails/_index.adoc
@@ -109,7 +109,7 @@ Einige Administratoren unterscheiden zwei verschiedene Jail-Arten: "Komplette" J
Der Werkzeug man:bsdinstall[8] kann verwendet werden, um die für eine Jail benötigten Binärdateien zu holen und zu installieren. Dies geht durch die Auswahl eines Spiegelservers, welche Distributionen in das Zielverzeichnis installiert werden sollen, sowie die grundlegende Konfiguration einer Jail:
-[source,bash]
+[source,shell]
....
# bsdinstall jail /pfad/zur/jail
....
@@ -123,7 +123,7 @@ Um das Basissystem von Installationsmedien zu installieren, erstellen Sie zunäc
Starten Sie eine Shell und legen Sie `DESTDIR` fest:
-[source,bash]
+[source,shell]
....
# sh
# export DESTDIR=/hier/ist/die/jail
@@ -131,7 +131,7 @@ Starten Sie eine Shell und legen Sie `DESTDIR` fest:
Hängen Sie das Installationsmedium wie in man:mdconfig[8] beschrieben ein, wenn Sie von einem ISO-Abbild installieren:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
# cd /mnt/usr/freebsd-dist/
@@ -141,14 +141,14 @@ Extrahieren Sie die Binärdateien aus den Archiven des Installationsmediums in d
Um lediglich das Basissystem zu installieren, führen Sie dieses Kommando aus:
-[source,bash]
+[source,shell]
....
# tar -xf base.txz -C $DESTDIR
....
Führen Sie folgendes Kommando aus, um alles außer den Kernel zu installieren:
-[source,bash]
+[source,shell]
....
# for set in base ports; do tar -xf $set.txz -C $DESTDIR ; done
....
@@ -158,7 +158,7 @@ Führen Sie folgendes Kommando aus, um alles außer den Kernel zu installieren:
Die Manualpage man:jail[8] beschreibt die Erstellung einer Jail wie folgt:
-[source,bash]
+[source,shell]
....
# setenv D /hier/ist/die/jail
# mkdir -p $D <.>
@@ -217,7 +217,7 @@ Eine vollständige Liste der Optionen findet sich in der Manualpage man:jail.con
man:service[8] kann zum manuellen Starten und Stoppen der Jail genutzt werden, wenn ein Eintrag in [.filename]#jail.conf# angelegt wurde:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -225,7 +225,7 @@ man:service[8] kann zum manuellen Starten und Stoppen der Jail genutzt werden, w
Jails können mit man:jexec[8] heruntergefahren werden. Führen Sie zunächst man:jls[8] aus, um die `JID` der Jail ausfindig zu machen. Anschließend können Sie man:jexec[8] benutzen, um das Shutdown-Skript in der Jail auszuführen.
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -263,7 +263,7 @@ Das FreeBSD-Basissystem enthält einen Basissatz an Werkzeugen, um Informationen
* Das Anzeigen einer Liste der aktiven Jails und ihrer zugehörigen Jail Identifier (JID), ihrer IP-Adresse, ihres Hostnames und ihres Pfades.
* Das Herstellen einer Verbindung mit einer laufenden Jail, das Starten eines Befehls aus dem Gastsystem heraus oder das Ausführen einer administrativen Aufgabe innerhalb der Jail selbst. Dies ist insbesondere dann nützlich, wenn der Benutzer `root` die Jail sauber herunterfahren möchte. man:jexec[8] kann auch zum Starten einer Shell innerhalb der Jail genutzt werden, um administrative Aufgaben durchzuführen:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -280,7 +280,7 @@ Jails sollten immer vom Host-System auf dem neuesten Stand gehalten werden, da e
Um die Jail auf das neueste Patch-Release der bereits installierten FreeBSD-Version zu aktualisieren, führen Sie auf dem Host die folgenden Befehle aus:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /hier/ist/die/jail fetch
# freebsd-update -b /hier/ist/die/jail install
@@ -288,7 +288,7 @@ Um die Jail auf das neueste Patch-Release der bereits installierten FreeBSD-Vers
Um die Jail auf eine neue Haupt- oder Unterversion zu aktualisieren, wird zunächst eine Aktualisierung des Host-Systems durchgeführt, wie in crossref:cutting-edge[freebsdupdate-upgrade,“Aktualisierungen an Haupt- und Unterversionen”] beschrieben. Nachdem der Host aktualisiert und neu gestartet wurde, kann die Jail aktualisiert werden. Führen Sie folgende Befehle auf dem Host aus, um von 12.0-RELEASE auf 12.1-RELEASE zu aktualisieren:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /hier/ist/die/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade
# freebsd-update -b /hier/ist/die/jail install
@@ -298,7 +298,7 @@ Um die Jail auf eine neue Haupt- oder Unterversion zu aktualisieren, wird zunäc
Wenn es sich um eine Aktualisierung einer Hauptversion handelte, installieren Sie alle installierten Pakete neu und starten Sie die Jail erneut. Dies ist notwendig, da sich die ABI-Version bei einer Aktualisierung zwischen Hauptversionen von FreeBSD ändert. Führen Sie folgende Befehle auf dem Host-System aus:
-[source,bash]
+[source,shell]
....
# pkg -j mymail upgrade -f
# service jail restart myjail
@@ -347,7 +347,7 @@ Es wird empfohlen, zunächst das FreeBSD Host-System nach den Anweisungen in cro
[.procedure]
. Zuerst erstellen wir eine Verzeichnisstruktur für das read-only-Dateisystem, das die FreeBSD-Binärdateien für die Jails enthalten wird. Anschließend wechseln wir in den FreeBSD-Quellcodebaum und installieren das read-only-Dateisystem in die (Vorlage-)Jail.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -356,7 +356,7 @@ Es wird empfohlen, zunächst das FreeBSD Host-System nach den Anweisungen in cro
. Als nächstes bereiten wir die Ports-Sammlung für die Jails vor und kopieren den FreeBSD Quellcodebaum in die Jail, da dieser für mergemaster benötigt wird:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -366,7 +366,7 @@ Es wird empfohlen, zunächst das FreeBSD Host-System nach den Anweisungen in cro
. Danach wird die Struktur für den read/write-Bereich des Systems erstellt:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -378,7 +378,7 @@ Es wird empfohlen, zunächst das FreeBSD Host-System nach den Anweisungen in cro
. Nutzen Sie mergemaster, um fehlende Konfigurationsdateien zu installieren. Anschließend werden die von mergemaster erstellten Extra-Verzeichnisse entfernt:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -387,7 +387,7 @@ Es wird empfohlen, zunächst das FreeBSD Host-System nach den Anweisungen in cro
. Nun wird das read/write-Dateisystem mit dem read-only-Dateisystem verlinkt. Vergewissern Sie sich, dass die symbolischen Links an den korrekten [.filename]#s/# Positionen erstellt werden, weil echte Verzeichnisse oder an falschen Positionen erstellte Verzeichnisse die Installation fehlschlagen lassen.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -453,14 +453,14 @@ jail_www_devfs_enable="YES"
Die Variable `jail__name__rootdir` zeigt nach [.filename]#/usr/home# statt nach [.filename]#/home#, da der physikalische Pfad von [.filename]#/home# unter FreeBSD [.filename]#/usr/home# lautet. Die Variable `jail__name__rootdir` darf im Pfad aber _keinen symbolischen Link_ enthalten, weil die Jail ansonsten nicht gestartet werden kann.
. Erstellen Sie die notwendigen Mountpunkte für die nur lesbaren Bereiche jeder Jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
. Installieren Sie mit package:sysutils/cpdup[] die read/write-Vorlage in jede Jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -470,7 +470,7 @@ Die Variable `jail__name__rootdir` zeigt nach [.filename]#/usr/home# statt nach
. An dieser Stelle werden die Jails erstellt und für den Betrieb vorbereitet. Mounten Sie zuerst die notwendigen Dateisysteme für jede Jail. Danach starten Sie die Jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -478,7 +478,7 @@ Die Variable `jail__name__rootdir` zeigt nach [.filename]#/usr/home# statt nach
Die Jails sollten nun laufen. Um zu prüfen, ob sie korrekt gestartet wurden, verwenden Sie `jls`. Die Ausgabe sollte ähnlich der folgenden sein:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -489,7 +489,7 @@ Die Jails sollten nun laufen. Um zu prüfen, ob sie korrekt gestartet wurden, ve
An diesem Punkt sollte es möglich sein, sich an jeder Jail anzumelden, Benutzer anzulegen und Dienste zu konfigurieren. Die Spalte `JID` gibt die Jail-Identifikationsnummer jeder laufenden Jail an. Nutzen Sie den folgenden Befehl, um administrative Aufgaben in der Jail mit der `JID``3` durchzuführen:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -502,7 +502,7 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
[.procedure]
. Im ersten Schritt wird das Host-System aktualisiert. Anschließend wird eine temporäre neue read-only Vorlage [.filename]#/home/j/mroot2# erstellt.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -514,7 +514,7 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
+
`installworld` erzeugt einige unnötige Verzeichnisse, die nun entfernt werden sollten:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -522,7 +522,7 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
. Erzeugen Sie neue symbolische Links für das Hauptdateisystem:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -535,14 +535,14 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
. Nun können die Jails gestoppt werden:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
. Hängen Sie die originalen Dateisysteme aus, da die read/write-Systeme an das read-only System ([.filename]#/s#) angeschlossen sind:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -554,7 +554,7 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
. Verschieben Sie das alte read-only-Dateisystem und ersetzen Sie es durch das neue Dateisystem. Das alte Dateisystem kann so als Backup dienen, falls etwas schief geht. Die Namensgebung entspricht hier derjenigen bei der Erstellung eines neuen read-only-Dateisystems. Verschieben Sie die originale FreeBSD Ports-Sammlung in das neue Dateisystem, um Platz und Inodes zu sparen:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -564,7 +564,7 @@ Das Design dieses Aufbaus bietet einen einfachen Weg, bestehende Jails zu aktual
. Nun ist die neue read-only-Vorlage fertig. Sie müssen daher nur noch die Dateisysteme erneut mounten und die Jails starten:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -594,7 +594,7 @@ cloned_interfaces="lo1"
+
Die zusätzliche Schnittstelle `lo1` wird erstellt, wenn das System neu gestartet wird. Die Schnittstelle kann auch ohne Neustart manuell erstellt werden:
+
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -607,7 +607,7 @@ Der Zugang zur Loopback-Adresse `127.0.0.1` wird an die erste IP-Adresse umgelei
Teilen Sie jedem Jail eine Loopback-Adresse aus dem Netzblock `127.0.0.0``/8` zu.
. Installieren Sie package:sysutils/ezjail[]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/ezjail
# make install clean
@@ -622,7 +622,7 @@ ezjail_enable="YES"
. Der Dienst wird automatisch gestartet, wenn das System bootet. Er kann auch direkt für die aktuelle Sitzung gestartet werden:
+
-[source,bash]
+[source,shell]
....
# service ezjail start
....
@@ -641,7 +641,7 @@ In diesen beiden Beispielen wird `-p` verwendet, um die Ports-Sammlung mit man:p
+
Benutzen Sie `install`, wenn das FreeBSD-RELEASE für die Jail der Version auf dem Host-System entspricht. Wenn beispielsweise auf dem Host-System FreeBSD 10-STABLE installiert ist, wird in der Jail das neueste RELEASE von FreeBSD-10 installiert:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin install -p
....
@@ -652,7 +652,7 @@ Mit `ezjail-admin update` kann die Basejail mit den Binärdateien aus dem Host-S
+
In diesem Beispiel wird FreeBSD 10-STABLE aus den Quellen gebaut. Die Verzeichnisse für die Jail wurden bereits erstellt. Anschließend wird `installworld` ausgeführt, das [.filename]#/usr/obj# aus dem Host-System in die Basejail installiert.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i -p
....
@@ -688,7 +688,7 @@ Neue Jails werden mit `ezjail-admin create` erstellt. In diesen Beispielen wird
.Procedure: Eine neue Jail erstellen und starten
. Geben Sie bei der Erstellung der Jail einen Namen und die verwendeten Loopback- und Netzwerk-Schnittstellen mit den IP-Adressen an. In diesem Beispiel trägt die Jail den Namen `dnsjail`.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin create dnsjail 'lo1|127.0.1.1,em0|192.168.1.50'
....
@@ -708,14 +708,14 @@ Aktivieren Sie keine Netzwerk-Sockets, solange die Dienste im Jail sie nicht tat
. Starten Sie die Jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin start dnsjail
....
. Starten Sie eine Konsole in der Jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
....
@@ -727,7 +727,7 @@ Die Jail ist jetzt in Betrieb und die zusätzliche Konfiguration kann nun abgesc
+
Verbinden Sie sich mit der Jail und setzen Sie das Passwort für den Benutzer `root`:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
# passwd
@@ -767,14 +767,14 @@ Da das Basissystem der Basejail von den anderen Jails gemeinsam genutzt wird, we
Um das Basissystem auf dem Host-System zu bauen und in der Basejail zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -b
....
Wenn das Basissystem bereits auf dem Host-System gebaut wurde, kann es in der Basejail installiert werden:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i
....
@@ -783,14 +783,14 @@ Binär-Updates verwenden man:freebsd-update[8]. Das Update unterliegt dabei den
Aktualisieren Sie die Basejail auf die neueste FreeBSD-Version des Host-Systems. Zum Beispiel von RELEASE-p1 auf RELEASE-p2.
-[source,bash]
+[source,shell]
....
# ezjail-admin update -u
....
Damit das Basejail aktualisiert werden kann, muss zunächst das Host-System, wie in crossref:cutting-edge[freebsdupdate-upgrade,“Aktualisierungen an Haupt- und Unterversionen”] beschrieben, aktualisiert werden. Sobald das Host-System aktualisiert und neu gestartet wurde, kann die Basejail aktualisiert werden. Da man:freebsd-update[8] keine Möglichkeit besitzt, die derzeit installierte Version der Basejail zu bestimmen, muss die ursprüngliche Version beim Aufruf mit angegeben werden. Benutzen Sie man:file[1] um die ursprüngliche Version der Basejail zu bestimmen:
-[source,bash]
+[source,shell]
....
# file /usr/jails/basejail/bin/sh
/usr/jails/basejail/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.3, stripped
@@ -798,7 +798,7 @@ Damit das Basejail aktualisiert werden kann, muss zunächst das Host-System, wie
Nutzen Sie diese Information, um die Aktualisierung von `9.3-RELEASE` auf die aktuelle Version des Host-Systems durchzuführen:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -U -s 9.3-RELEASE
....
@@ -813,7 +813,7 @@ Wie man:mergemaster[8] verwendet wird, hängt stark vom Zweck und Vertrauenswür
====
Entfernen Sie die Verknüpfung von [.filename]#/usr/src# des Jails zur Basejail und erstellen Sie ein neues [.filename]#/usr/src# als Mountpunkt für die Jail. Hängen Sie [.filename]#/usr/src# vom Host-System schreibgeschützt in den Mountpunkt für die Jail ein:
-[source,bash]
+[source,shell]
....
# rm /usr/jails/jailname/usr/src
# mkdir /usr/jails/jailname/usr/src
@@ -822,14 +822,14 @@ Entfernen Sie die Verknüpfung von [.filename]#/usr/src# des Jails zur Basejail
Öffnen Sie eine Konsole in der Jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin console jailname
....
Innerhalb der Jail führen Sie dann man:mergemaster[8] aus. Danach verlassen Sie die Konsole:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# mergemaster -U
@@ -838,7 +838,7 @@ Innerhalb der Jail führen Sie dann man:mergemaster[8] aus. Danach verlassen Sie
Abschließend können Sie [.filename]#/usr/src# aus der Jail aushängen:
-[source,bash]
+[source,shell]
....
# umount /usr/jails/jailname/usr/src
....
@@ -851,7 +851,7 @@ Abschließend können Sie [.filename]#/usr/src# aus der Jail aushängen:
====
Wenn den Benutzern und den Diensten in der Jail vertraut wird, kann man:mergemaster[8] auf dem Host-System ausgeführt werden:
-[source,bash]
+[source,shell]
....
# mergemaster -U -D /usr/jails/jailname
....
@@ -863,7 +863,7 @@ Wenn den Benutzern und den Diensten in der Jail vertraut wird, kann man:mergemas
Nach einem größeren Versionsupdate empfiehlt package:sysutils/ezjail[], sicherzustellen, dass `pkg` die richtige Version hat. Geben Sie dazu den folgenden Befehl ein, um auf die entsprechende Version zu aktualisieren:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f pkg
....
@@ -877,7 +877,7 @@ Die Ports-Sammlung der Basejail wird von den anderen Jails gemeinsam genutzt. So
Die Ports-Sammlung der Basejail wird mit man:portsnap[8] aktualisiert:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -P
....
@@ -890,7 +890,7 @@ Die Ports-Sammlung der Basejail wird mit man:portsnap[8] aktualisiert:
ezjail startet automatisch alle Jails, wenn das System hochfährt. Jails können auch manuell mit `stop` und `start` gestoppt und neu gestartet werden:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop sambajail
Stopping jails: sambajail
@@ -898,7 +898,7 @@ Stopping jails: sambajail
In der Voreinstellung werden die Jails automatisch gestartet, wenn das Host-System hochfährt. Der automatische Start kann mit `config` deaktiviert werden:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r norun seldomjail
....
@@ -907,7 +907,7 @@ Diese Einstellung wird nach einem Neustart des Host-Systems aktiviert. Eine Jail
Der automatische Start kann auch aktiviert werden:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r run oftenjail
....
@@ -921,7 +921,7 @@ Die Archivdatei kann an anderer Stelle als Sicherung gespeichert werden, oder ei
Die Jail `wwwserver` stoppen und archivieren:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop wwwserver
Stopping jails: wwwserver.
@@ -932,7 +932,7 @@ wwwserver-201407271153.13.tar.gz
Erstellen Sie aus dem eben erzeugten Archiv eine neue Jail namens `wwwserver-clone`. Verwenden Sie die Schnittstelle [.filename]#em1# und weisen Sie eine neue IP-Adresse zu, um einen Konflikt mit dem Original zu vermeiden:
-[source,bash]
+[source,shell]
....
# ezjail-admin create -a /usr/jails/ezjail_archives/wwwserver-201407271153.13.tar.gz wwwserver-clone 'lo1|127.0.3.1,em1|192.168.1.51'
....
@@ -960,7 +960,7 @@ cloned_interfaces="lo1"
Erzeugen Sie jetzt die Loopback-Schnittstelle:
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interface: lo1
@@ -968,14 +968,14 @@ Created clone interface: lo1
Erstellen Sie die Jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin create dns1 'lo1|127.0.2.1,re0|192.168.1.240'
....
Starten Sie die Jail, verbinden Sie sich mit der Konsole und führen Sie die grundlegende Konfiguration durch:
-[source,bash]
+[source,shell]
....
# ezjail-admin start dns1
# ezjail-admin console dns1
@@ -998,7 +998,7 @@ nameserver 10.0.0.62
Immer noch in der Konsole der Jail, installieren Sie package:dns/bind99[].
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/dns/bind99 install clean
....
@@ -1052,7 +1052,7 @@ named_enable="YES"
Starten und testen Sie den Nameserver:
-[source,bash]
+[source,shell]
....
# service named start
wrote key file "/usr/local/etc/namedb/rndc.key"
@@ -1062,14 +1062,14 @@ Starting named.
Beinhaltet die Antwort
-[source,bash]
+[source,shell]
....
;; Got answer;
....
dann funktioniert der Nameserver. Eine längere Verzögerung, gefolgt von der Antwort
-[source,bash]
+[source,shell]
....
;; connection timed out; no servers could be reached
....
diff --git a/documentation/content/de/books/handbook/kernelconfig/_index.adoc b/documentation/content/de/books/handbook/kernelconfig/_index.adoc
index e1763c4def..7ebe7ce585 100644
--- a/documentation/content/de/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/de/books/handbook/kernelconfig/_index.adoc
@@ -79,7 +79,7 @@ Bevor Sie einen angepassten Kernel erstellen, überlegen Sie sich bitte, warum S
Kernelmodule existieren in [.filename]#/boot/kernel# und können mit man:kldload[8] dynamisch in den laufenden Kernel geladen werden. Die meisten Kerneltreiber verfügen über ein ladbares Modul und eine Manualpage. Der drahtlose Ethernet-Treiber man:ath[4] hat die folgenden Informationen in seiner Manualpage:
-[source,bash,subs="macros"]
+[source,shell,subs="macros"]
....
Alternatively, to load the driver as a module at boot time, place the
following line in loader.conf(5):
@@ -103,7 +103,7 @@ Einige Versionen von Microsoft(R) Windows(R) verfügen über ein System-Icon auf
Wenn FreeBSD das einzige installierte Betriebssystem ist, dann listet man:dmesg[8] die Hardware auf, die während des Systemstarts gefunden wurde. Die meisten FreeBSD-Gerätetreiber haben eine eigene Manualpage, die Informationen über die unterstützte Hardware enthält. Die folgenden Zeilen zeigen beispielsweise an, dass der man:psm[4]-Treiber eine angeschlossene Maus gefunden hat:
-[source,bash]
+[source,shell]
....
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
@@ -117,7 +117,7 @@ Wenn `dmesg` keine Informationen zur gefundenen Hardware anzeigt, können diese
Ein weiteres Werkzeug für die Suche nach Hardware ist man:pciconf[8], das ausführliche Informationen bereitstellt. Ein Beispiel:
-[source,bash]
+[source,shell]
....
% pciconf -lv
ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01 hdr=0x00
@@ -131,7 +131,7 @@ Die Ausgabe zeigt, dass der Treiber [.filename]#ath# eine drahtlose Ethernetkart
Die Option `-k` von man:man[1] kann verwendet werden, um nützliche Informationen zu erhalten. Um beispielsweise eine Liste von Manualpages zu erhalten, welche ein spezifisches Wort enthalten:
-[source,bash]
+[source,shell]
....
# man -k Atheros
ath(4) - Atheros IEEE 802.11 wireless network driver
@@ -151,7 +151,7 @@ Sobald die Quellen installiert sind, können Sie sich einen Überblick über [.f
Bearbeiten Sie [.filename]#GENERIC# nicht direkt. Kopieren Sie stattdessen die Datei unter einem anderen Namen und machen dann die Änderungen an dieser Kopie. Traditionell besteht der Name des Kernels immer aus Großbuchstaben. Wenn Sie mehrere FreeBSD-Maschinen mit unterschiedlicher Hardware betreuen, ist es eine gute Idee, die Konfigurationsdatei nach den Hostnamen der Maschinen zu benennen. In diesem Beispiel wird eine Kopie der [.filename]#GENERIC# Kernelkonfigurationsdatei, namens [.filename]#MYKERNEL#, für die [.filename]#amd64#-Architektur erstellt:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
@@ -170,7 +170,7 @@ Wenn Sie die Kernelkonfigurationsdatei fertig bearbeitet haben, sollten Sie eine
Alternativ kann die Kernelkonfigurationsdatei an anderer Stelle gespeichert, und ein symbolischer Link auf die Datei erstellt werden:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernels
@@ -199,7 +199,7 @@ Diese Methode zeigt die Unterschiede der lokalen Konfigurationsdatei zu einem [.
====
Um einen Kernel mit allen möglichen Optionen zu bauen, führen Sie als `root` die folgenden Befehle aus:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/arch/conf && make LINT
....
@@ -217,21 +217,21 @@ Nachdem die Änderungen an der angepassten Kernelkonfigurationsdatei gespeichert
. Wechseln Sie das Verzeichnis:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
. Bauen Sie den Kernel, indem Sie den Namen der Kernelkonfigurationsdatei angeben:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
. Installieren Sie den neuen Kernel. Dieser Befehl wird den neuen Kernel nach [.filename]#/boot/kernel/kernel# kopieren, und den alten Kernel nach [.filename]#/boot/kernel.old/kernel# speichern:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -265,7 +265,7 @@ Es gibt vier Hauptfehlerquellen beim Erstellen eines angepassten Kernels:
`config` verursacht Fehler:::
Wenn `config` fehlschlägt, zeigt es die Nummer der Zeile an, die das Problem verursacht. Bei der folgenden Fehlermeldung sollten Sie die angegebene Zeile mit [.filename]#GENERIC# oder [.filename]#NOTES# vergleichen und sicherstellen, dass das Schlüsselwort in Zeile 17 richtig geschrieben ist:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -282,7 +282,7 @@ Nun kann die Konfiguration noch einmal überprüft und der Kernel neu kompiliert
====
Wenn Sie Probleme beim Kernelbau bekommen, heben Sie sich immer eine Kopie von [.filename]#GENERIC# oder einen anderen Kernel, der garantiert bootet, auf. Dies ist sehr wichtig, weil jedes Mal, wenn ein neuer Kernel installiert wird, [.filename]#kernel.old# mit dem zuletzt installierten Kernel überschrieben wird und dieser möglicherweise nicht bootfähig ist. Verschieben Sie daher den funktionierenden Kernel so schnell wie möglich, indem Sie das Verzeichnis mit dem funktionierenden Kernel umbenennen:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/de/books/handbook/l10n/_index.adoc b/documentation/content/de/books/handbook/l10n/_index.adoc
index 923cc67c25..70534cb72a 100644
--- a/documentation/content/de/books/handbook/l10n/_index.adoc
+++ b/documentation/content/de/books/handbook/l10n/_index.adoc
@@ -94,14 +94,14 @@ _Sprachcode_ und _Ländercode_ werden verwendet, um das Land und die spezifische
Eine vollständige Liste der verfügbaren Lokalisierungen erhalten Sie durch die Eingabe von:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
Die aktuelle Ländereinstellung erhalten Sie mit:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -182,7 +182,7 @@ Weitere Einzelheiten über diese Variablen finden Sie in man:login.conf[5]. Beac
Jedes Mal, wenn [.filename]#/etc/login.conf# bearbeitet wurde, muss die Datenbank mit dem folgenden Kommando aktualisiert werden:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -209,28 +209,28 @@ Falls alle Benutzer die gleiche Sprache benutzen, setzen Sie `defaultclass=_Spra
Wenn Sie diese Einstellung beim Anlegen des Benutzers überschreiben wollen, geben Sie entweder die gewünschte Login-Klasse am Prompt ein:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
oder übergeben Sie die Login-Klasse beim Aufruf von `adduser`:
-[source,bash]
+[source,shell]
....
# adduser -class Sprache
....
Wenn Sie neue Benutzer mit `pw` anlegen, geben Sie die Login-Klasse wie folgt an:
-[source,bash]
+[source,shell]
....
# pw useradd Benutzername -L Sprache
....
Um die Login-Klasse eines bestehenden Benutzers zu ändern, kann `chpass` verwendet werden. Rufen Sie das Kommando als Superuser auf und geben Sie als Argument den entsprechenden Benutzernamen mit:
-[source,bash]
+[source,shell]
....
# chpass Benutzername
....
diff --git a/documentation/content/de/books/handbook/linuxemu/_index.adoc b/documentation/content/de/books/handbook/linuxemu/_index.adoc
index 47c6e4466c..fc6450328e 100644
--- a/documentation/content/de/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/de/books/handbook/linuxemu/_index.adoc
@@ -71,21 +71,21 @@ Die Linux(R)-Binärkompatibilität ist per Voreinstellung nicht aktiviert und au
Bevor Sie versuchen den Port zu bauen, laden Sie das Linux(R)-Kernelmodul, da ansonsten der Bau fehlschlägt:
-[source,bash]
+[source,shell]
....
# kldload linux
....
Für 64-Bit Kompatibilität:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
Prüfen Sie, ob das Modul geladen wurde:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -95,7 +95,7 @@ Id Refs Address Size Name
Der einfachste Weg um einen Basissatz von Linux(R)-Bibliotheken und Binärdateien auf einem FreeBSD-System zu installieren, ist über den Port oder das Paket package:emulators/linux_base-c7[]. So installieren Sie das Paket:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -118,7 +118,7 @@ Wenn sich eine Linux(R)-Anwendung über fehlende Bibliotheken beschwert nachdem
Mit `ldd` können Sie unter Linux(R) bestimmen, welche gemeinsam benutzten Bibliotheken eine Anwendung benötigt. Wenn Sie herausfinden wollen, welche Bibliotheken `linuxdoom` benötigt, können Sie folgenden Befehl auf einem Linux(R)-System ausführen, welches Doom installiert hat:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -128,7 +128,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Kopieren Sie alle Dateien aus der letzten Spalte der Ausgabe von einem Linux(R)-System auf das FreeBSD-System in das Verzeichnis [.filename]#/compat/linux#. Nach dem Kopieren erstellen Sie symbolische Links auf die Namen in der ersten Spalte. In diesem Beispiel werden folgende Dateien auf dem FreeBSD-System installiert:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -142,7 +142,7 @@ Wenn Sie bereits eine Linux(R)-Bibliothek einer zur ersten Spalte passenden Haup
Folgende Bibliotheken existieren bereits auf dem FreeBSD-System:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27$
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -150,14 +150,14 @@ Folgende Bibliotheken existieren bereits auf dem FreeBSD-System:
`ldd` zeigt an, dass eine Anwendung eine neuere Version benötigt:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Wenn diese Bibliotheken sich nur um ein oder zwei Stellen in der Unterversionsnummer unterscheiden, sollte das Programm dennoch mit der älteren Version funktionieren. Wenn Sie wollen, können Sie die bestehende [.filename]#libc.so# durch die neuere Version ersetzen:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -169,7 +169,7 @@ Der Mechanismus der symbolischen Links wird nur für Linux(R)-Binärdateien ben
ELF-Binärdateien benötigen manchmal eine zusätzliche "Kennzeichnung". Wenn Sie versuchen, eine nicht gekennzeichnete ELF-Binärdatei auszuführen, werden Sie eine Fehlermeldung ähnlich der folgenden erhalten:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -178,7 +178,7 @@ Abort
Damit der FreeBSD-Kernel eine Linux(R)-ELF-Datei von einer FreeBSD-ELF-Datei unterscheiden kann, gibt es das Werkzeug man:brandelf[1].
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -189,7 +189,7 @@ Die GNU Werkzeuge schreiben nun automatisch die passende Kennzeichnungsinformati
Wenn Sie eine Linux(R) RPM-basierte Anwendung installieren möchten, installieren Sie zunächst den Port oder das Paket package:archivers/rpm4[]. Anschließend kann der Superuser das folgende Kommando benutzen, um ein [.filename]#.rpm# zu installieren:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /pfad/zum/linux.archiv.rpm | cpio -id
@@ -201,7 +201,7 @@ Fall notwendig, benutzen Sie `brandelf` auf den installierten ELF-Binärdateien.
Wenn DNS nicht funktioniert, oder die folgende Fehlermeldung erscheint:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -236,7 +236,7 @@ Für die Linux(R) ABI-Unterstützung erkennt FreeBSD die magische Zahl als ELF-B
Damit Linux(R)-Binärdateien unter FreeBSD funktionieren, müssen sie mit man:brandelf[1] als `Linux` _gekennzeichnet_ werden:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/de/books/handbook/mac/_index.adoc b/documentation/content/de/books/handbook/mac/_index.adoc
index 7e4b914b30..805fc7c4ec 100644
--- a/documentation/content/de/books/handbook/mac/_index.adoc
+++ b/documentation/content/de/books/handbook/mac/_index.adoc
@@ -155,14 +155,14 @@ Gewissermaßen alle Aspekte der Labelkonfiguration werden durch Werkzeuge das Ba
Mit den beiden Kommandos man:setfmac[8] und man:setpmac[8] kann man eigentlich schon alles machen. Das Kommando `setfmac` wird verwendet, um ein MAC-Label auf einem Systemobjekt zu setzen, `setpmac` hingegen zum Setzen von Labels auf Systemsubjekte. Als Beispiel soll hier dienen:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
Wenn bei der Ausführung dieses Kommandos keine Fehler aufgetreten sind, gelangt man zur Eingabeaufforderung zurück. Nur wenn ein Fehler auftritt, verhalten sich diese Kommandos nicht still, ganz wie auch die Kommandos man:chmod[1] und man:chown[8]. In einigen Fällen wird dieser Fehler `Permission denied` lauten und gewöhnlich dann auftreten, wenn ein Label an einem Objekt angebracht oder verändert werden soll, das bereits (Zugriffs-)Beschränkungen unterliegt. Der Systemadministrator kann so eine Situation mit Hilfe der folgenden Kommandos überwinden:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -252,7 +252,7 @@ Labels können auch, wenn man sie an Netzwerkschittstellen vergibt, helfen, den
Die Option `maclabel` wird via `ifconfig` übergeben. Zum Beispiel
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -275,7 +275,7 @@ Man sollte sich dessen bewußt sein, dass die Verwendung der Option `multilabel`
Das folgende Kommando aktiviert `multilabel` für ein Dateisystem. Dies funktioniert nur im Einzelbenutzermodus:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -350,21 +350,21 @@ Bei der Arbeit mit diesem Modul ist äußerste Vorsicht geboten - falscher Gebra
Nachdem das Modul man:mac_bsdextended[4] erfolgreich geladen wurde, zeigt das folgende Kommando die gegenwärtig aktiven Regeln an:
-[source,bash]
+[source,shell]
....
# ugidfw list 0 slots, 0 rules
....
Wie erwartet, sind keine Regeln definiert. Das bedeutet, das auf alle Teile des Dateisystems zugegriffen werden kann. Um eine Regel zu definieren, die jeden Zugriff durch Nutzer blockiert und nur die Rechte von `root` unangetastet läßt, muß lediglich dieses Kommando ausgeführt werden:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
Das ist allerdings keine gute Idee, da nun allen Nutzern der Zugriff auf selbst die einfachsten Programme wie `ls` untersagt wird. Angemessener wäre etwas wie:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -433,7 +433,7 @@ Weiterführende Informationen entnehmen Sie bitte den unten aufgeführten Beispi
Die folgenden Beispiele sollten ein wenig Licht in die obige Diskussion bringen:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -441,21 +441,21 @@ Die folgenden Beispiele sollten ein wenig Licht in die obige Diskussion bringen:
Zunächst bestimmen wir, dass man:mac_portacl[4] für alle privilegierten Ports gelten soll und deaktivieren die normale UNIX(R)-Beschränkung.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
Da `root` von dieser Richtlinie nicht beeinträchtigt werden soll, setzen wir hier `security.mac.portacl.suser_exempt` auf einen Wert ungleich Null. Das Modul man:mac_portacl[4] ist nun so eingerichtet, wie es UNIX(R)-artige Betriebssysteme normal ebenfalls tun.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
Nun erlauben wir dem Nutzer mit der UID 80, normalerweise dem Nutzer `www`, den Port 80 zu verwenden. Dadurch kann der Nutzer `www` einen Webserver betreiben, ohne dafür mit `root`-Privilegien ausgestattet zu sein.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -483,7 +483,7 @@ Sobald diese Richtlinie aktiv ist, sehen Nutzer nur noch ihre eigenen Prozesse,
Um einen Befehl einer Prozeß-Partition zuzuordnen, muß dieser durch das Kommando `setpmac` mit einem Label versehen werden:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -494,14 +494,14 @@ Diese Zeile fügt das Kommando `top` dem Labelsatz für Nutzer der Klasse `insec
Der folgende Befehl listet die vergebenen Label für Prozeß-Partitionen und die laufenden Prozesse auf.
-[source,bash]
+[source,shell]
....
# ps Zax
....
Das nächste Kommando liefert das Label der Prozeß-Partition eines anderen Nutzers `trhodes` und dessen gegenwärtig laufenden Prozesse zurück.
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -553,14 +553,14 @@ Nachfolgend werden die `sysctl`-Variablen vorgestellt, die für die Einrichtung
Um die Labels der MLS Richtlinie zu bearbeiten verwendet man man:setfmac[8]. Um ein Objekt zu kennzeichnen, benutzen Sie folgendes Kommando:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
Um das MLS-Label der Datei [.filename]#test# auszulesen, verwenden Sie dieses Kommando:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -615,7 +615,7 @@ Folgende `sysctl` Parameter werden zur Nutzung der Biba-Richtlinie angeboten:
Um Einstellungen der Biba Richtlinie für Systemobjekte zu verändern werden die Befehle `setfmac` und `getfmac` verwendet:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -651,7 +651,7 @@ Die MAC Richtlinie `LOMAC` beruht auf einer durchgängigen Etikettierung aller S
Wie schon bei den Richtlinien Biba und MLS werden die Befehle `setfmac` und `setpmac` verwendet, um die Labels an den Systemobjekten zu setzen:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -706,7 +706,7 @@ Zusätzlich fügen wir beim Standardnutzer folgende Zeile hinzu:
Anschließend muß die Datenbank neu erstellt werden:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -725,14 +725,14 @@ mac_seeotheruids_load="YES"
Ordnen Sie den Superuser `root` der Klasse `default` zu:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
Alle Nutzerkonten, die weder `root` noch Systemkonten sind, brauchen nun eine Loginklasse, da sie sonst keinen Zugriff auf sonst übliche Befehle erhalten, wie bspw. man:vi[1]. Das folgende `sh` Skript wird diese Aufgabe erledigen:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -740,12 +740,12 @@ Alle Nutzerkonten, die weder `root` noch Systemkonten sind, brauchen nun eine Lo
Verschieben Sie die Nutzer `nagios` und `www` in die `insecure` Klasse:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -796,7 +796,7 @@ Die Richtlinie erzwingt Sicherheit, indem der Informationsfluß Einschränkungen
Die Kontextdatei kann nun vom System eingelesen werden, indem folgender Befehl ausgeführt wird:
-[source,bash]
+[source,shell]
....
# setfmac -ef /etc/policy.contexts /
# setfmac -ef /etc/policy.contexts /
@@ -839,7 +839,7 @@ Versichern Sie sich, dass der Webserver und Nagios nicht automatisch geladen wer
Wenn alles gut aussieht, können Nagios, Apache und Sendmail gestartet werden - allerdings auf eine Weise, die unserer Richtlinie gerecht wird. Zum Beispiel durch die folgenden Kommandos:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -852,7 +852,7 @@ Versichern Sie sich lieber doppelt, dass alles ordentlich läuft. Wenn nicht, pr
====
Der Superuser kann den Vollzug der Richtlinie schalten und die Konfiguration ohne Furcht verändern. Folgender Befehl stuft eine neu gestartete Shell herunter:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/de/books/handbook/mail/_index.adoc b/documentation/content/de/books/handbook/mail/_index.adoc
index 4fefe36a7a..1fdb417141 100644
--- a/documentation/content/de/books/handbook/mail/_index.adoc
+++ b/documentation/content/de/books/handbook/mail/_index.adoc
@@ -109,7 +109,7 @@ Im DNS werden Rechnernamen auf IP-Adressen abgebildet. Daneben werden spezielle
Mit man:host[1] können die MX-Einträge für eine Domäne abgefragt werden:
+
-[source,bash]
+[source,shell]
....
# host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -153,7 +153,7 @@ Um die Datenbank zu konfigurieren, verwenden Sie das im Beispiel gezeigte Format
+
Immer wenn diese Datei verändert wurde, muss die Datenbank aktualisiert und Sendmail neu gestartet werden:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -195,7 +195,7 @@ postmaster@example.com postmaster@noc.example.net
+
Diese Datei wird nach dem ersten übereinstimmenden Eintrag durchsucht. Wenn eine E-Mail-Adresse mit der Adresse auf der linken Seite übereinstimmt, wird sie dem Eintrag auf der rechten Seite zugeordnet. Der erste Eintrag in diesem Beispiel ordnet eine bestimmte E-Mail-Adresse einer lokalen Mailbox zu, während der zweite Eintrag eine bestimmte E-Mail-Adresse einer entfernten Mailbox zuordnet. Zuletzt wird jede E-Mail-Adresse von `example.com`, welche nicht mit einem der vorherigen Einträge übereinstimmt, mit dem letzten Eintrag übereinstimmen und der lokalen Mailbox `joe` zugeordnet. Benutzen Sie dieses Format, wenn Sie neue Einträge in [.filename]#/etc/mail/virtusertable# hinzufügen. Jedes Mal, wenn diese Datei bearbeitet wurde, muss die Datenbank aktualisiert und Sendmail neu gestartet werden:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virusertable
# service sendmail restart
@@ -259,7 +259,7 @@ Weitere Informationen zu den Startoptionen von Sendmail finden Sie in der Manual
Wenn ein neuer MTA über die Ports-Sammlung installiert wird, werden auch die Startskripten installiert. Die Anweisungen zum starten dieser Skripte werden in den Paketnachrichten erwähnt. Bevor Sie den neuen MTA in Betrieb nehmen, stoppen Sie alle laufenden Sendmail-Prozesse. In diesem Beispiel werden alle notwendigen Dienste gestoppt und danach der Postfix Dienst gestartet:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -445,7 +445,7 @@ Jede der erwähnten Konfigurationsmöglichkeiten erlaubt es, E-Mails direkt auf
Versuchen Sie das:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -458,7 +458,7 @@ In diesem Beispiel sollte es funktionieren, E-Mails direkt an mailto:yourlogin@e
In diesem Beispiel:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -530,7 +530,7 @@ Weiterhin kann es sein, dass die Bestimmungen des Internetzugangs es verbieten,
Um die hier beschriebenen Anforderungen zu erfüllen, installieren Sie einfach den Port package:mail/ssmtp[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -634,7 +634,7 @@ saslauthd_enable="YES"
+
Abschließend starten Sie den saslauthd-Dämon:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -651,7 +651,7 @@ SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
Beim Übersetzen von Sendmail werden damit die package:cyrus-sasl2[]-Bibliotheken benutzt. Stellen Sie daher vor dem Übersetzen von Sendmail sicher, dass package:cyrus-sasl2[] installiert ist.
. Übersetzen Sie Sendmail mit den nachstehenden Kommandos:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -692,14 +692,14 @@ Das standardmäßig unter FreeBSD installierte E-Mail-Programm ist man:mail[1].
Um E-Mails zu versenden oder zu empfangen, starten Sie einfach `mail` wie im nachstehenden Beispiel:
-[source,bash]
+[source,shell]
....
% mail
....
`mail` liest automatisch den Inhalt des Benutzer-Postfachs im Verzeichnis [.filename]#/var/mail#. Sollte das Postfach leer sein, beendet sich `mail` mit der Nachricht, dass keine E-Mails vorhanden sind. Wenn E-Mails vorhanden sind, wird die Benutzeroberfläche gestartet und eine Liste der E-Mails angezeigt. Die E-Mails werden automatisch nummeriert wie im folgenden Beispiel gezeigt:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -710,7 +710,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Einzelne Nachrichten können nun durch Eingabe von kbd:[t] gefolgt von der Nummer der Nachricht gelesen werden. Im nachstehenden Beispiel wird die erste E-Mail gelesen:
-[source,bash]
+[source,shell]
....
&
t 1
@@ -730,7 +730,7 @@ Wie in diesem Beispiel zu sehen ist, wird die Nachricht zusammen mit dem vollst
Um auf eine E-Mail zu antworten, benutzen Sie entweder kbd:[R] oder kbd:[r]. kbd:[R] weist `mail` an, dem Versender der Nachricht zu antworten, während mit kbd:[r] allen Empfängern der Nachricht geantwortet wird. Den Kommandos kann die Zahl der E-Mail, auf die geantwortet werden soll, mitgegeben werden. Nachdem die Antwort E-Mail verfasst worden ist, sollte die Eingabe mit einem einzelnen Punkt (kbd:[.]) auf einer neuen Zeile abgeschlossen werden. Hierzu ein Beispiel:
-[source,bash]
+[source,shell]
....
&
R 1
@@ -743,7 +743,7 @@ EOT
Neue E-Mails können mit kbd:[m], gefolgt von der E-Mail-Adresse des Empfängers verschickt werden. Mehrere Empfänger werden durch Kommata (kbd:[,]) getrennt, angegeben. Der Betreff (subject) der Nachricht kann dann, gefolgt vom Inhalt der Nachricht eingegeben werden. Die Nachricht wird dann mit einem einzelnen Punkt (kbd:[.]) auf einer neuen Zeile abgeschlossen.
-[source,bash]
+[source,shell]
....
&
mail root@localhost
@@ -777,7 +777,7 @@ Mehr über mutt erfahren Sie auf der Seite http://www.mutt.org[ http://www.mutt.
mutt kann über den Port package:mail/mutt[] installiert werden. Nachdem der Port installiert ist, kann mutt mit dem folgenden Befehl gestartet werden:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -816,7 +816,7 @@ In der Vergangenheit wurden in alpine mehrere Schwachstellen gefunden. Die Schwa
Der Port package:mail/alpine[] enthält die aktuelle Version von alpine. Nach der Installation können Sie alpine mit dem nachstehenden Kommando starten:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -857,7 +857,7 @@ fetchmail ist ein vollwertiger IMAP- und POP-Client. Mit fetchmail können Benut
Dieser Abschnitt erklärt einige grundlegende Funktionen von fetchmail. Das Programm benötigt eine Konfigurationsdatei [.filename]#.fetchmailrc# im Heimatverzeichnis des Benutzers. In dieser Datei werden Informationen über Server wie auch Benutzerdaten und Passwörter hinterlegt. Wegen des kritischen Inhalts dieser Datei ist es ratsam, diese nur für den Benutzer lesbar zu machen:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -882,7 +882,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail kann als Dämon gestartet werden. Verwendet wird dazu die Kommandozeilenoption `-d` gefolgt von einer Zeitspanne in Sekunden, die angibt, wie oft die Server aus [.filename]#.fetchmailrc# abgefragt werden sollen. Mit dem nachstehenden Befehl fragt fetchmail die Server alle 600 Sekunden ab:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/de/books/handbook/mirrors/_index.adoc b/documentation/content/de/books/handbook/mirrors/_index.adoc
index 485962abd6..ceb2f70959 100644
--- a/documentation/content/de/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/de/books/handbook/mirrors/_index.adoc
@@ -409,7 +409,7 @@ Dieser Abschnitt zeigt, wie Subversion unter FreeBSD installiert wird und wie Si
Die Installation von package:security/ca_root_nss[] erlaubt es Subversion die Identität des HTTPS-Repository-Servers zu überprüfen. Die SSL Root-Zertifikate können aus der Ports-Sammlung installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -417,7 +417,7 @@ Die Installation von package:security/ca_root_nss[] erlaubt es Subversion die Id
Alternativ kann das Paket installiert werden:
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -436,7 +436,7 @@ Falls `svnlite` nicht verfügbar ist, oder die komplette Version von Subversion
Subversion kann aus der Ports-Sammlung installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -444,7 +444,7 @@ Subversion kann aus der Ports-Sammlung installiert werden:
Subversion kann auch als Paket installiert werden:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -466,7 +466,7 @@ In Subversion werden URLs in der Form von _protocol://hostname/path_ verwendet,
Das Auschecken aus einem bestimmten Repository kann wie folgt durchgeführt werden:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lcwdir
....
@@ -479,7 +479,7 @@ wobei:
Dieses Beispiel checkt die Ports-Sammlung aus dem Repositroy über das HTTPS-Protokoll aus, und speichert die Arbeitskopie unter [.filename]#/usr/ports#. Wenn [.filename]#/usr/ports# bereits vorhanden ist, aber nicht von `svn` erstellt wurde, denken Sie vor dem Auschecken daran, das Verzeichnis umzubenennen oder zu löschen.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -488,14 +488,14 @@ Dies kann eine Weile dauern, da beim ersten Auschecken der komplette Zweig vom e
Nach dem ersten Auschecken können Sie Ihre lokale Arbeitskopie wie folgt aktualisieren:
-[source,bash]
+[source,shell]
....
# svn update lcwdir
....
Um [.filename]#/usr/ports# aus dem oben erstellten Beispiel zu aktualisieren, benutzen Sie:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -504,7 +504,7 @@ Das Update ist viel schneller als ein Auschecken, da nur die Dateien übertragen
Eine alternative Möglichkeit zur Aktualisierung Ihrer Arbeitskopie nach dem Auschecken ist es, das bestehende [.filename]#Makefile# in den Verzeichnissen [.filename]#/usr/ports#, [.filename]#/usr/src#, und [.filename]#/usr/doc# zu nutzen. Setzen Sie dazu `SVN_UPDATE` und benutzen Sie das `update` Ziel. Zum Beispiel, um [.filename]#/usr/src# zu aktualisieren:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/de/books/handbook/multimedia/_index.adoc b/documentation/content/de/books/handbook/multimedia/_index.adoc
index 1bf122a55e..99f8211fd2 100644
--- a/documentation/content/de/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/de/books/handbook/multimedia/_index.adoc
@@ -77,7 +77,7 @@ Bevor Sie die Konfiguration beginnen, sollten Sie in Erfahrung bringen welches S
Um die Soundkarte benutzen zu können, muss der richtige Gerätetreiber geladen werden. Am einfachsten ist es, das Kernelmodul für die Soundkarte mit man:kldload[8] zu laden. Dieses Beispiel lädt den Treiber für einen integrierten Chipsatz, basierend auf der Intel Spezifikation:
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -91,7 +91,7 @@ snd_hda_load="YES"
Weitere ladbare Soundmodule sind in [.filename]#/boot/defaults/loader.conf# aufgeführt. Wenn Sie nicht sicher sind, welchen Gerätetreiber Sie laden müssen, laden Sie das Modul [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -148,7 +148,7 @@ Das Beispiel verwendet die vorgegebenen Werte. Falls die Karteneinstellungen and
Nachdem Sie den neuen Kernel gestartet oder das erforderliche Modul geladen haben, sollte die Soundkarte erkannt werden. Führen Sie `dmesg | grep pcm` aus, um dies zu überprüfen. Diese Ausgabe stammt von einem System mit einem integrierten Conexant CX20590 Chipsatz:
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -157,7 +157,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
Der Status der Karte kann auch mit diesem Kommando geprüft werden:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -171,7 +171,7 @@ Die Ausgabe kann für jede Soundkarte anders aussehen. Wenn das Gerät [.filenam
Jetzt sollte die Soundkarte unter FreeBSD funktionieren. Wenn ein CD- oder DVD-Laufwerk an die Soundkarte angeschlossen ist, können Sie jetzt mit man:cdcontrol[1] eine CD abspielen:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -186,7 +186,7 @@ Es gibt viele Anwendungen, wie package:audio/workman[], die eine bessere Benutze
Eine weitere schnelle Möglichkeit die Karte zu prüfen, ist es, Daten an das Gerät [.filename]#/dev/dsp# zu senden:
-[source,bash]
+[source,shell]
....
% cat Datei > /dev/dsp
....
@@ -205,28 +205,28 @@ Die Verbindung zu einem Bluetooth-Gerät wird in diesem Abschnitt nicht erläute
Damit Bluetooth zusammen mit dem Soundsystem von FreeBSD funktioniert, müssen Benutzer zuerst package:audio/virtual_oss[] installieren:
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] setzt voraus, dass `cuse` in den Kernel geladen wird:
-[source,bash]
+[source,shell]
....
# kldload cuse
....
Führen Sie folgenden Befehl aus, damit `cuse` beim Systemstart automatisch geladen wird:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
Um Kopfhörer mit package:audio/virtual_oss[] zu benutzten, muss nach der Verbindung mit einem Bluetooth-Audiogerät ein virtuelles Gerät erstellt werden:
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -296,7 +296,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
In diesem Beispiel wurde die Grafikkarte (`NVidia`) vor der Soundkarte (`Realtek ALC889`) aufgeführt. Um die Soundkarte als Standardabspielgerät einzusetzen, ändern Sie `hw.snd.default_unit` auf die Einheit, welche für das Abspielen benutzt werden soll:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -315,7 +315,7 @@ Oft sollen mehrere Tonquellen gleichzeitig abgespielt werden. FreeBSD verwendet
Drei man:sysctl[8] Optionen stehen zur Konfiguration der virtuellen Kanäle zur Verfügung:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -354,7 +354,7 @@ Ein beliebter graphischer MP3-Player ist Audacious, welcher WinAmp-Skins und zus
Das Paket package:audio/mpg123[] ist ein alternativer, kommandozeilenorientierter MP3-Player. Nach der Installation kann die abzuspielende MP3-Datei auf der Kommandozeile angegeben werden. Geben Sie auch das entsprechende Soundkarte an, falls das System über mehrere Audiogeräte verfügt:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3
@@ -376,7 +376,7 @@ Die Anwendung `cdda2wav`, die im package:sysutils/cdrtools[] Paket enthalten ist
Wenn die Audio CD in dem Laufwerk liegt, kann der folgende Befehl als `root` ausgeführt werden, um eine ganze CD in einzelne WAV-Dateien zu rippen:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -385,21 +385,21 @@ In diesem Beispiel bezieht sich der Schalter `-D _0,1,0_` auf das SCSI-Gerät [.
Um einzelne Tracks zu rippen, benutzen Sie `-t` wie folgt:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Um mehrere Tracks zu rippen, zum Beispiel die Tracks eins bis sieben, können Sie wie folgt einen Bereich angeben:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
Wenn Sie von einem ATAPI (IDE) CD-ROM-Laufwerk rippen, geben Sie den Gerätenamen anstelle der SCSI-Gerätenummer an. Dieses Beispiel rippt Track 7 von einem IDE-Laufwerk:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -413,7 +413,7 @@ Lame ist ein weitverbreiteter MP3-Encoder, der als Port package:audio/lame[] ins
Der folgende Befehl konvertiert die gerippte WAV-Datei [.filename]#audio01.wav# in [.filename]#audio01.mp3# um:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "Foo Liedtietel" --ta "FooBar Künstler" --tl "FooBar Album" \
--ty "2014" --tc "Gerippt und kodiert von Foo" --tg "Musikrichtung" audio01.wav audio01.mp3
@@ -425,7 +425,7 @@ Um aus MP3-Dateien eine Audio CD zu erstellen, müssen diese zuerst in ein nicht
Um [.filename]#audio01.mp3# mit mpg123 umzuwandeln, geben Sie den Namen der PCM-Datei an:
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -446,7 +446,7 @@ So verwenden Sie XMMS um eine MP3-Datei in das WAV-Format zu konvertieren:
cdrecord kann mit beiden Formaten Audio-CDs erstellen. Der Dateikopf von WAV-Dateien erzeugt am Anfang des Stücks ein Knacken. Der Dateikopf mit dem Port oder Paket package:audio/sox[] entfernt werden:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -460,7 +460,7 @@ Bevor Sie beginnen, sollten Sie das Modell und den benutzten Chip der Videokarte
Halten Sie eine kurze MPEG-Datei bereit, mit der Sie Wiedergabeprogramme und deren Optionen testen können. Da einige DVD-Spieler in der Voreinstellung das DVD-Gerät mit [.filename]#/dev/dvd# ansprechen oder diesen Namen fest einkodiert haben, ist es vielleicht hilfreich symbolische Links auf die richtigen Geräte anzulegen:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
....
@@ -500,14 +500,14 @@ Gebräuchliche Video-Schnittstellen sind:
Ob die Erweiterung läuft, entnehmen Sie der Ausgabe von `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo wird untertsützt, wenn die Ausgabe in etwa wie folgt aussieht:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -583,7 +583,7 @@ Einige der aufgeführten Formate, wie YUV2 oder YUV12 existieren in machen XVide
XVideo wird wahrscheinlich von der Karte nicht unterstützt, wenn die Ausgabe wie folgt aussieht:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -614,27 +614,27 @@ Dieser Abschnitt beschreibt nur ein paar wenige Anwendungsmöglichkeiten. Eine v
Um die Datei [.filename]#testfile.avi# abzuspielen, geben Sie die Video-Schnittstelle mit `-vo` an:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -643,7 +643,7 @@ Es lohnt sich, alle Option zu testen. Die erzielte Geschwindigkeit hängt von vi
Wenn Sie eine DVD abspielen wollen, ersetzen Sie [.filename]#testfile.avi# durch `-dvd://__N Gerät__`. `_N_` ist die Nummer des Stücks, das Sie abspielen wollen und [.filename]#Gerät# gibt den Gerätenamen der DVD an. Das nachstehende Kommando spielt das dritte Stück von [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo dga -dvd://3 /dev/dvd
....
@@ -668,7 +668,7 @@ zoom=yes
`mplayer` kann verwendet werden, um DVD-Stücke in [.filename]#.vob#-Dateien zu rippen. Das zweite Stück einer DVD wandeln Sie wie folgt in eine Datei um:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob -dvd://2 /dev/dvd
....
@@ -681,7 +681,7 @@ Vor der Verwendung von `mencoder` ist es hilfreich, sich mit den auf http://www.
Hier ist ein Beispiel für eine einfache Kopie:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -690,7 +690,7 @@ Wenn Sie in eine Datei rippen, benutzen Sie die Option `-dumpfile` von `mplayer`
Um [.filename]#input.avi# nach MPEG4 mit MPEG3 für den Ton zu konvertieren, muss zunächst der Port package:audio/lame[] installiert werden. Aus lizenzrechtlichen Gründen ist ein Paket nicht verfügbar. Wenn der Port installiert ist, geben Sie ein:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -711,7 +711,7 @@ In der Voreinstellung startet xine eine grafische Benutzeroberfläche. Über die
Alternativ kann xine auch über die Kommandozeile aufgerufen werden, um Dateien direkt wiederzugeben:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -727,7 +727,7 @@ Unter FreeBSD kann Transcode als Paket oder Port package:multimedia/transcode[]
Dieses Beispiel zeigt, wie eine DivX-Datei in eine PAL MPEG-1-Datei konvertiert wird:
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -786,7 +786,7 @@ options OVERRIDE_TUNER=6
Alternativ können Sie man:sysctl[8] benutzen:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -828,14 +828,14 @@ Die https://wiki.freebsd.org/HTPC[ wiki.freebsd.org/HTPC] enthält eine Liste vo
Geben Sie folgendes ein, um MythTV als Binärpaket zu installieren:
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
Alternativ können Sie den Port installieren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -843,21 +843,21 @@ Alternativ können Sie den Port installieren:
Richten Sie anschließend die MythTV-Datenbank ein:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Konfigurieren Sie dann das Backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Zum Schluss starten Sie das Backend:
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -888,7 +888,7 @@ device xhci
Um zu überprüfen ob der Scanner erkannt wird, schließen Sie den USB-Scanner an. Prüfen Sie dann mit man:dmesg[8], ob der Scanner in den Systemmeldungen erscheint:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -905,7 +905,7 @@ device pass
Nachdem Sie einen Kernel gebaut und installiert haben, sollte der Scanner beim Neustart in den Systemmeldungen erscheinen:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -914,7 +914,7 @@ pass2: 3.300MB/s transfers
Wenn der Scanner während des Systemstarts ausgeschaltet war, können Sie die Geräteerkennung erzwingen, indem Sie den SCSI-Bus erneut absuchen. Verwenden Sie dazu `camcontrol`:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -925,7 +925,7 @@ Re-scan of bus 3 was successful
Der Scanner sollte jetzt in der SCSI-Geräteliste erscheinen:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -942,14 +942,14 @@ Das SANE-System ermöglicht den Zugriff auf den Scanner über Backends (package:
Installieren Sie die Backends als Paket:
-[source,bash]
+[source,shell]
....
# pkg install sane-backends
....
Alternativ können Sie die Backends aus der Ports-Sammlung installieren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-backends
# make install clean
@@ -957,7 +957,7 @@ Alternativ können Sie die Backends aus der Ports-Sammlung installieren:
Nachdem Sie den Port oder das Paket package:graphics/sane-backends[] installiert haben, können Sie mit dem Befehl `sane-find-scanner` prüfen, ob SANE den Scanner erkennt:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -972,7 +972,7 @@ Bei einigen USB-Scannern muss die Firmware geladen werden. Lesen Sie sane-find-s
Als nächstes müssen Sie prüfen, ob der Scanner vom Frontend erkannt wird. Die SANE-Backends werden mit dem Kommandozeilenwerkzeug `scanimage` geliefert. Mit diesem Werkzeug können Sie sich Scanner anzeigen lassen und den Scan-Prozess von der Kommandozeile starten. Die Option `-L` zeigt die Scanner an. Das erste Beispiel ist für einen SCSI-Scanner, das zweite ist für einen USB-Scanner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -984,7 +984,7 @@ Im zweiten Beispiel ist `epson2` der Backend-Name. `libusb:000:002` bedeutet, da
Wenn `scanimage` den Scanner nicht erkennen kann, erscheint folgende Meldung:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1003,7 +1003,7 @@ usb /dev/ugen0.2
Speichern Sie die Änderungen und prüfen Sie, ob der Scanner mit dem richtigen Backend und Gerätenamen erkannt wird:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
@@ -1019,7 +1019,7 @@ Wenn andere Benutzer den Scanner benutzen sollen, müssen sie Lese- und Schreibr
Dieses Beispiel erstellt eine Gruppe namens `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1057,14 +1057,14 @@ devfs_system_ruleset="system"
Starten Sie anschließend das man:devfs[8]-System neu:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
Jetzt müssen nur noch Benutzer zur Gruppe `_usb_` hinzugefügt werden, um ihnen den Zugriff auf den Scanner zu erlauben:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/de/books/handbook/network-servers/_index.adoc b/documentation/content/de/books/handbook/network-servers/_index.adoc
index a4ca903282..faf84ad068 100644
--- a/documentation/content/de/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/de/books/handbook/network-servers/_index.adoc
@@ -92,7 +92,7 @@ inetd_enable="YES"
Starten Sie jetzt inetd, so dass er Verbindungen für die von Ihnen konfigurierten Dienste entgegennimmt:
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -104,7 +104,7 @@ Sobald inetd gestartet ist, muss der Dienst benachrichtigt werden, wenn eine Än
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -329,14 +329,14 @@ mountd_enable="YES"
Der Server kann jetzt mit diesem Kommando gestartet werden:
-[source,bash]
+[source,shell]
....
# service nfsd start
....
Wenn der NFS-Server startet, wird auch mountd automatisch gestartet. Allerdings liest mountd [.filename]#/etc/exports# nur, wenn der Server gestartet wird. Um nachfolgende Änderungen an [.filename]#/etc/exports# wirksam werden zu lassen, kann mountd angewiesen werden, die Datei neu einzulesen:
-[source,bash]
+[source,shell]
....
# service mountd reload
....
@@ -352,7 +352,7 @@ nfs_client_enable="YES"
Der Client ist nun in der Lage, ein entferntes Dateisystem einzuhängen. In diesen Beispielen ist der Name des Servers `server` und der Name des Clients `client`. Fügen Sie folgenden Befehl aus, um das Verzeichnis [.filename]#/home# vom `server` auf dem `client` ins Verzeichnis [.filename]#/mnt# einzuhängen:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -380,7 +380,7 @@ rpc_statd_enable="YES"
Danach starten Sie die beiden Anwendungen:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -411,7 +411,7 @@ Eine spezielle Automounter Zuordnung wird in [.filename]#/net# eingehängt. Wenn
====
In diesem Beispiel zeigt `showmount -e` die exportierten Dateisysteme des NFS-Servers `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -433,7 +433,7 @@ autofs_enable="YES"
Danach kann man:autofs[5] gestartet werden:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -575,7 +575,7 @@ nis_client_flags="-S test-domain,server" <.>
Nachdem die Parameter konfiguriert wurden, muss noch `/etc/netstart` ausgeführt werden, um alles entsprechend den Vorgaben in [.filename]#/etc/rc.conf# einzurichten. Bevor die NIS-Maps einrichtet werden können, muss der man:ypserv[8]-Daemon manuell gestartet werden:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -584,7 +584,7 @@ Nachdem die Parameter konfiguriert wurden, muss noch `/etc/netstart` ausgeführt
NIS-Maps Sie werden am NIS-Masterserver aus den Konfigurationsdateien unter [.filename]#/etc# erzeugt. Einzige Ausnahme: [.filename]#/etc/master.passwd#. Dies verhindert, dass die Passwörter für `root`- oder andere Administratorkonten an alle Server in der NIS-Domäne verteilt werden. Deshalb werden die primären Passwort-Dateien konfiguriert, bevor die NIS-Maps initialisiert werden:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -600,7 +600,7 @@ Stellen Sie sicher, dass [.filename]#/var/yp/master.passwd# weder von der Gruppe
Nun können die NIS-Maps initialisiert werden. FreeBSD verwendet dafür das Skript man:ypinit[8]. Geben Sie `-m` und den NIS-Domänennamen an, wenn Sie NIS-Maps für den Masterserver erzeugen:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -638,7 +638,7 @@ NOPUSH = "True"
Jedes Mal, wenn ein neuer Benutzer angelegt wird, muss er am NIS-Masterserver hinzugefügt und die NIS-Maps anschließend neu erzeugt werden. Wird dieser Punkt vergessen, kann sich der neue Benutzer _nur_ am NIS-Masterserver anmelden. Um beispielsweise den neuen Benutzer `jsmith` zur Domäne `test-domain` hinzufügen wollen, müssen folgende Kommandos auf dem Masterserver ausgeführt werden:
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -651,7 +651,7 @@ Statt `pw useradd jsmith` kann auch `adduser jsmith` verwendet werden.
Um einen NIS-Slaveserver einzurichten, melden Sie sich am Slaveserver an und bearbeiten Sie [.filename]#/etc/rc.conf# analog zum Masterserver. Erzeugen Sie aber keine NIS-Maps, da diese bereits auf dem Server vorhanden sind. Wenn `ypinit` auf dem Slaveserver ausgeführt wird, benutzen Sie `-s` (Slave) statt `-m` (Master). Diese Option benötigt den Namen des NIS-Masterservers und den Domänennamen, wie in diesem Beispiel zu sehen:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -755,7 +755,7 @@ Diese Zeile legt für alle gültigen Benutzerkonten der NIS-Server-Maps einen Zu
Um den NIS-Client direkt zu starten, führen Sie als Superuser die folgenden Befehle aus:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -794,7 +794,7 @@ In diesem Beispiel gibt es innerhalb der NIS-Domäne den Rechner `basie`, der nu
Es gibt eine Möglichkeit, bestimmte Benutzer an der Anmeldung an einem bestimmten Rechner zu hindern, selbst wenn diese in der NIS-Datenbank vorhanden sind. Dazu kann mit `vipw` der Eintrag `-_Benutzername_` und die richtige Anzahl von Doppelpunkten an das Ende von [.filename]#/etc/master.passwd# gesetzt werden, wobei _Benutzername_ der zu blockierende Benutzername ist. Die Zeile mit dem geblockten Benutzer muss dabei vor der `+` Zeile, für zugelassene Benutzer stehen. In diesem Beispiel wird die Anmeldung für den Benutzer `bill` am Rechner `basie` blockiert:
-[source,bash]
+[source,shell]
....
basie# cat /etc/master.passwd
root:[password]:0:0::0:0:The super-user:/root:/bin/csh
@@ -902,7 +902,7 @@ Wiederholen Sie diesen Vorgang, wenn mehr als 225 (15*15) Benutzer in einer einz
Die neue NIS-Map aktivieren und verteilen:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -910,7 +910,7 @@ ellington# make
Dadurch werden die NIS-Maps [.filename]#netgroup#, [.filename]#netgroup.byhost# und [.filename]#netgroup.byuser# erzeugt. Prüfen Sie die Verfügbarkeit der neuen NIS-Maps mit man:ypcat[1]:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1046,7 +1046,7 @@ In diesem Beispiel verwendet das System das Format DES. Weitere mögliche Werte
Wird auf einem Rechner das Format entsprechend der NIS-Domäne geändert, muss anschließend die Login-Capability Datenbank neu erstellt werden:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1069,7 +1069,7 @@ LDAP verwendet mehrere Begriffe die Sie verstehen sollten bevor Sie die Konfigur
Beispielsweise könnte ein LDAP-Eintrag wie folgt aussehen. Dieses Beispiel sucht nach dem Eintrag für das angegebene Benutzerkonto (`uid`), Organisationseinheit (`ou` und Organisation (`o`):
-[source,bash]
+[source,shell]
....
% ldapsearch -xb "uid=trhodes,ou=users,o=example.com"
# extended LDIF
@@ -1105,7 +1105,7 @@ Weitere Informationen über LDAP und dessen Terminologie finden Sie unter http:/
FreeBSD integriert keinen LDAP-Server. Beginnen Sie die Konfiguration mit der Installation des Ports oder Pakets package:net/openldap-server[]:
-[source,bash]
+[source,shell]
....
# pkg install openldap-server
....
@@ -1114,14 +1114,14 @@ Im link:{linux-users}#software/[ Paket] sind eine große Anzahl an Optionen akti
Während der Installation wird für die Daten das Verzeichnis [.filename]#/var/db/openldap-data# erstellt. Das Verzeichnis für die Ablage der Zertifikate muss manuell angelegt werden:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/private
....
Im nächsten Schritt wird die Zertifizierungsstelle konfiguriert. Die folgenden Befehle müssen in [.filename]#/usr/local/etc/openldap/private# ausgeführt werden. Dies ist wichtig, da die Dateiberechtigungen restriktiv gesetzt werden und Benutzer keinen direkten Zugriff auf diese Daten haben sollten. Weitere Informationen über Zertifikate und deren Parameter finden Sie im crossref:security[openssl,"OpenSSL"]. Geben Sie folgenden Befehl ein, um die Zertifizierungsstelle zu erstellen und folgen Sie den Anweisungen:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt
....
@@ -1130,21 +1130,21 @@ Diese Einträge sind frei wählbar, _mit Ausnahme_ von _Common Name_. Hier muss
Die nächste Aufgabe besteht darin, einen Zertifikatsregistrierungsanforderung (CSR) sowie einen privaten Schlüssel zu erstellen. Geben Sie folgenden Befehl ein und folgen Sie den Anweisungen:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout server.key -out server.csr
....
Stellen Sie hierbei sicher, dass `Common Name` richtig eingetragen wird. Die Zertifikatsregistrierungsanforderung muss mit dem Schlüssel der Zertifizierungsstelle unterschrieben werden, um als gültiges Zertifikat verwendet zu werden:
-[source,bash]
+[source,shell]
....
# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial
....
Der letzte Schritt für die Erstellung der Zertifikate besteht darin, die Client-Zertifikate zu erstellen und zu signieren:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout client.key -out client.csr
# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CAkey ca.key
@@ -1297,28 +1297,28 @@ Dieses http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=tree;f=tests/da
Wenn die Konfiguration abgeschlossen ist, muss [.filename]#slapd.ldif# in ein leeres Verzeichnis verschoben werden. Folgendes ist die empfohlene Vorgehensweise:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/slapd.d/
....
Importieren Sie die Konfigurationsdatenbank:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif
....
Starten Sie den [.filename]#slapd#-Daemon:
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/
....
Die Option `-d` kann, wie in slapd(8) beschrieben, zur Fehlersuche benutzt werden. Stellen Sie sicher, dass der Server läuft und korrekt arbeitet:
-[source,bash]
+[source,shell]
....
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
@@ -1343,21 +1343,21 @@ result: 0 Success
Dem Server muss noch vertraut werden. Wenn dies noch nie zuvor geschehen ist, befolgen Sie diese Anweisungen. Installieren Sie das Paket oder den Port OpenSSL:
-[source,bash]
+[source,shell]
....
# pkg install openssl
....
Aus dem Verzeichnis, in dem [.filename]#ca.crt# gespeichert ist (in diesem Beispiel [.filename]#/usr/local/etc/openldap#), starten Sie:
-[source,bash]
+[source,shell]
....
# c_rehash .
....
Sowohl die CA als auch das Serverzertifikat werden nun in ihren jeweiligen Rollen korrekt erkannt. Um dies zu überprüfen, führen die folgenden Befehl aus dem Verzeichnis der [.filename]#server.crt# aus:
-[source,bash]
+[source,shell]
....
# openssl verify -verbose -CApath . server.crt
....
@@ -1377,7 +1377,7 @@ slapd_cn_config="YES"
Das folgende Beispiel fügt die Gruppe `team` und den Benutzer `john` zur LDAP-Datenbank `domain.example` hinzu, die bislang leer ist. Erstellen Sie zunächst die Datei [.filename]#domain.ldif#:
-[source,bash]
+[source,shell]
....
# cat domain.ldif
dn: dc=domain,dc=example
@@ -1418,14 +1418,14 @@ userPassword: secret
Weitere Informationen finden Sie in der OpenLDAP-Dokumentation. Benutzen Sie [.filename]#slappasswd#, um das Passwort durch einen Hash in `userPassword` zu ersetzen. Der in `loginShell` angegebene Pfad muss in allen Systemen existieren, in denen `john` sich anmelden darf. Benutzen Sie schließlich den `mdb`-Administrator, um die Datenbank zu ändern:
-[source,bash]
+[source,shell]
....
# ldapadd -W -D "cn=mdbadmin,dc=domain,dc=example" -f domain.ldif
....
Änderungen im Bereich _global configuration_ können nur vom globalen Superuser vorgenommen werden. Angenommen die Option `olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` wurde ursprünglich definiert und soll nun gelöscht werden. Dazu erstellen Sie zunächst eine Datei mit folgendem Inhalt:
-[source,bash]
+[source,shell]
....
# cat global_mod
dn: cn=config
@@ -1435,7 +1435,7 @@ delete: olcTLSCipherSuite
Übernehmen Sie dann die Änderungen:
-[source,bash]
+[source,shell]
....
# ldapmodify -f global_mod -x -D "cn=config" -W
....
@@ -1444,7 +1444,7 @@ Geben Sie bei Aufforderung das im Abschnitt _configuration backend_ gewählte Pa
Wenn etwas schief geht oder der globale Superuser nicht auf das Konfigurations-Backend zugreifen kann, ist es möglich, die gesamte Konfiguration zu löschen und neu zu schreiben:
-[source,bash]
+[source,shell]
....
# rm -rf /usr/local/etc/openldap/slapd.d/
....
@@ -1576,7 +1576,7 @@ Dabei müssen Sie `dc0` durch die Gerätedatei (mehrere Gerätedateien müssen d
Starten Sie den Server mit folgenden Befehl:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1672,21 +1672,21 @@ Alle vorhandenen Nameserver aus [.filename]#/etc/resolv.conf# werden als Forward
Wenn einer der aufgeführten Nameserver kein DNSSEC unterstützt, wird die lokale DNS-Auflösung nicht funktionieren. Testen Sie jeden Server und entfernen Sie die Server, die den Test nicht bestehen. Das folgende Beispiel zeigt einen Trust Tree beziehungsweise einen Fehler für den Nameserver auf `192.168.1.1`:
====
-[source,bash]
+[source,shell]
....
# drill -S FreeBSD.org @192.168.1.1
....
Nachdem jeder Server für DNSSEC konfiguriert ist, starten Sie Unbound:
-[source,bash]
+[source,shell]
....
# service local_unbound onestart
....
Dieses Kommando sorgt für die Aktualisierung von [.filename]#/etc/resolv.conf#, so dass Abfragen für DNSSEC gesicherte Domains jetzt funktionieren. Führen Sie folgenden Befehl aus, um den DNSSECTrust Tree für FreeBSD.org zu überprüfen:
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org
;; Number of trusted keys: 1
@@ -1750,7 +1750,7 @@ apache24_flags=""
Wenn apachectl keine Konfigurationsfehler meldet, starten Sie `httpd`:
-[source,bash]
+[source,shell]
....
# service apache24 start
....
@@ -1759,7 +1759,7 @@ Sie können den `httpd`-Dienst testen, indem Sie `http://_localhost_` in einen B
Die Konfiguration von Apache kann bei nachfolgenden Änderungen an der Konfigurationsdatei bei laufendem `httpd`, auf Fehler überprüft werden. Geben Sie dazu folgendes Kommando ein:
-[source,bash]
+[source,shell]
....
# service apache24 configtest
....
@@ -1853,14 +1853,14 @@ PHP und weitere in PHP geschriebene Funktionen unterstützt, muss das entspreche
Sie können mit `pkg` die Paketdatenbank nach allen unterstützten PHP-Versionen durchsuchen:
-[source,bash]
+[source,shell]
....
# pkg search php
....
Die Ausgabe ist eine Liste mit Versionen und Funktionen des jeweiligen Pakets. Die Komponenten sind vollständig modular, d.h. die Funktionen werden durch die Installation des entsprechenden Pakets aktiviert. Geben Sie folgenden Befehl ein, um PHP-Version 7.4 für Apache zu installieren:
-[source,bash]
+[source,shell]
....
# pkg install mod_php74
....
@@ -1883,7 +1883,7 @@ Zusätzlich muss auch der `DirectoryIndex` in der Konfigurationsdatei aktualisie
Mit `pkg` kann die Unterstützung für viele weitere PHP-Funktionen installiert werden. Um beispielsweise die Unterstützung für XML oder SSL zu erhalten, installieren Sie die entsprechenden Pakete:
-[source,bash]
+[source,shell]
....
# pkg install php74-xml php74-openssl
....
@@ -1892,19 +1892,19 @@ Wie zuvor muss die Konfiguration von Apache neu geladen werden, damit die Änder
Geben Sie folgenden Befehl ein, um einen geordneten Neustart durchzuführen und die Konfiguration neu zu laden:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
Sobald die Installation abgeschlossen ist, gibt es zwei Möglichkeiten, um eine Liste der installierten PHP-Module und Informationen über die Umgebung der Installation zu erhalten. Die erste Möglichkeit besteht darin, die vollständige PHP-Binärdatei zu installieren und den Befehl auszuführen, um die Informationen zu erhalten:
-[source,bash]
+[source,shell]
....
# pkg install php74
....
-[source,bash]
+[source,shell]
....
# php -i | less
....
@@ -1927,7 +1927,7 @@ Nachdem Django installiert ist, benötigt die Anwendung ein Projektverzeichnis u
Damit Apache Anfragen für bestimmte URLs an die Web-Applikation übergeben kann, müssen Sie den vollständigen Pfad zum Projektverzeichnis in [.filename]#httpd.conf# festlegen:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -1973,14 +1973,14 @@ ftpd_enable="YES"
Starten Sie den Dienst:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Testen Sie die Verbindung zum FTP-Server, indem Sie folgendes eingeben:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2069,7 +2069,7 @@ Samba erlaubt verschiedene Backend-Authentifizierungsmodelle. Clients können si
Damit Windows(R)-Clients auf die Freigaben zugreifen können, müssen die FreeBSD-Benutzerkonten in der `SambaSAMAccount`-Datenbank zugeordnet werden. Für bereits vorhandene Benutzerkonten kann dazu man:pdbedit[8] benutzt werden:
-[source,bash]
+[source,shell]
....
# pdbedit -a username
....
@@ -2087,7 +2087,7 @@ samba_server_enable="YES"
Jetzt kann Samba direkt gestartet werden:
-[source,bash]
+[source,shell]
....
# service samba_server start
Performing sanity check on Samba configuration: OK
@@ -2104,7 +2104,7 @@ winbindd_enable="YES"
Samba kann jederzeit durch folgenden Befehl beendet werden:
-[source,bash]
+[source,shell]
....
# service samba_server stop
....
@@ -2171,7 +2171,7 @@ Das Schlüsselwort `leapfile` gibt den Pfad einer Datei an, die Informationen ü
Um ntpd beim Booten zu starten, Sie in [.filename]#/etc/rc.conf# den Eintrag `ntpd_enable="YES"` hinzu. Danach kann ntpd direkt gestartet werden:
-[source,bash]
+[source,shell]
....
# service ntpd start
....
@@ -2292,14 +2292,14 @@ ctld_enable="YES"
Um man:ctld[8] jetzt zu starten, geben Sie dieses Kommando ein:
-[source,bash]
+[source,shell]
....
# service ctld start
....
Der man:ctld[8]-Daemon liest beim Start [.filename]#/etc/ctl.conf#. Wenn diese Datei nach dem Starten des Daemons bearbeitet wird, verwenden Sie folgenden Befehl, damit die Änderungen sofort wirksam werden:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
@@ -2365,7 +2365,7 @@ iscsid_enable="YES"
Um man:iscsid[8] jetzt zu starten, geben Sie dieses Kommando ein:
-[source,bash]
+[source,shell]
....
# service iscsid start
....
@@ -2376,7 +2376,7 @@ Die Verbindung mit einem Target kann mit, oder ohne eine Konfigurationsdatei [.f
Um einen Initiator mit einem Target zu verbinden, geben Sie die IP-Adresse des Portals und den Namen des Ziels an:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0
....
@@ -2391,7 +2391,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Connected: da0
In diesem Beispiel wurde die iSCSI-Sitzung mit der LUN [.filename]#/dev/da0# erfolgreich hergestellt. Wenn das Target `iqn.2012-06.com.example:target0` mehr als nur eine LUN exportiert, werden mehrere Gerätedateien in der Ausgabe angezeigt:
-[source,bash]
+[source,shell]
....
Connected: da0 da1 da2.
....
@@ -2430,7 +2430,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Authentication f
Verwenden Sie diese Syntax, um einen CHAP-Benutzernamen und ein Passwort anzugeben:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret
....
@@ -2454,14 +2454,14 @@ t0 {
Um sich mit einem bestimmten Target zu verbinden, geben Sie dessen Namen an:
-[source,bash]
+[source,shell]
....
# iscsictl -An t0
....
Um sich stattdessen mit allen definierten Targets aus der Konfigurationsdatei zu verbinden, verwenden Sie:
-[source,bash]
+[source,shell]
....
# iscsictl -Aa
....
diff --git a/documentation/content/de/books/handbook/ports/_index.adoc b/documentation/content/de/books/handbook/ports/_index.adoc
index b4666a2d85..84707a6f9d 100644
--- a/documentation/content/de/books/handbook/ports/_index.adoc
+++ b/documentation/content/de/books/handbook/ports/_index.adoc
@@ -118,7 +118,7 @@ Die Anzahl der nach FreeBSD portierten Anwendungen steigt ständig. Es gibt eini
* Wenn Sie bei der Suche nach einer bestimmten Anwendung nicht weiter kommen, versuchen Sie eine Webseite wie http://www.sourceforge.net/[SourceForge.net] oder http://www.github.com/[GitHub.com]. Schauen Sie dann auf der link:https://www.FreeBSD.org/ports/[FreeBSD-Webseite] nach, ob die Anwendung portiert wurde.
* Das Paket Repository nach einer Anwendung durchsuchen:
+
-[source,bash]
+[source,shell]
....
# pkg search subversion
git-subversion-1.9.2
@@ -136,7 +136,7 @@ subversion17-1.7.16_2
+
Die Paketnamen enthalten jeweils die Versionsnummer. Wenn ein Port von python abhängt, wird auch die Versionsnummer von python ausgegeben, mit der die Anwendung gebaut wurde. Für einige Ports stehen sogar mehrere Versionen zur Verfügung. Im Fall von Subversion gibt es drei verschiedene Versionen, mit unterschiedlichen Optionen. In diesem Fall wird die Version von Subversion statisch gelinkt. Wenn Sie ein Paket installieren, ist es am besten den Ursprung des Ports anzugeben, also den Pfad in der Ports-Sammlung. Wiederholen Sie `pkg search` mit `-o` um den Ursprung der Pakete anzuzeigen:
+
-[source,bash]
+[source,shell]
....
# pkg search -o subversion
devel/git-subversion
@@ -155,7 +155,7 @@ devel/subversion-static
Zudem unterstützt `pkg search` die Suche mit regulären Ausdrücken, nach exakten Treffern, nach der Beschreibung oder nach anderen Feldern in der Repository-Datenbank. Nach der Installation von package:ports-mgmt/pkg[] oder package:ports-mgmt/pkg-devel[], finden Sie in man:pkg-search[8] weitere Details.
* Wenn die Ports-Sammlung bereits installiert ist, gibt es mehrere Methoden, um die lokale Version dieser Port-Sammlung abzufragen. Verwenden Sie `whereis _Datei_` um herauszufinden, in welcher Kategorie ein Port ist, wobei _Datei_ der Name des Programms ist, das installiert werden soll:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -163,7 +163,7 @@ lsof: /usr/ports/sysutils/lsof
+
Alternativ kann der man:echo[1]-Befehl verwendet werden:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -172,7 +172,7 @@ Alternativ kann der man:echo[1]-Befehl verwendet werden:
Beachten Sie aber, dass dieser Befehl auch alle Dateien im Verzeichnis [.filename]#/usr/ports/distfiles# findet, auf die der angegebene Suchbegriff passt.
* Ein weiterer Weg nach Software zu suchen besteht darin, die eingebaute Suchfunktion der Ports-Sammlung zu benutzen. Wechseln Sie dazu in das Verzeichnis [.filename]#/usr/ports#, und rufen Sie `make search name=_Anwendungsname_` auf, wobei _Anwendungsname_ der Name der Software ist. Um zum Beispiel nach `lsof` zu suchen:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -195,7 +195,7 @@ Die "Path:"-Zeile zeigt an, wo der Port zu finden ist.
+
Um weniger Informationen zu erhalten, benutzen Sie die Funktion `quicksearch`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -231,7 +231,7 @@ Nicht alle FreeBSD Versionen unterstüzen den folgenden Bootstrap Prozess. Eine
Um das Bootstrap Programm zu starten, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -240,7 +240,7 @@ Sie müssen eine Internetverbindung haben, damit der Bootstrap Prozess funktioni
Um den Port zu installieren, geben Sie stattdessen folgendes ein:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -249,7 +249,7 @@ Um den Port zu installieren, geben Sie stattdessen folgendes ein:
Bei der Aktualisierung eines bestehenden Systems, welches ursprünglich die alten pkg_* Werkzeuge verwendet hat, muss die Datenbank in das neue Format konvertiert werden, damit die neuen Werkzeuge wissen, welche Pakete bereits installiert sind. Sobald pkg installiert ist, muss die Paketdatenbank mit dem folgenden Befehl vom traditionellen Format in das neue Format konvertiert werden:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -284,12 +284,12 @@ Informationen zur Bedienung von pkg ist in man:pkg[8] verfügbar. Alternativ kan
Jedes Argument von pkg ist in seiner spezifischen Manualpage dokumentiert. Um beispielsweise die Manualpage von `pkg install` zu lesen, geben Sie einen der folgenden Befehle ein:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -303,7 +303,7 @@ Der vierteljährliche Zweig (Quarterly) bietet eine besser vorhersehbare und sta
Um vom Quarterly auf Latest zu wechseln, führen Sie die folgenden Befehle aus:
-[source,bash]
+[source,shell]
....
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
....
@@ -325,7 +325,7 @@ FreeBSD: {
Führen Sie zuletzt diesen Befehl aus, um die neuen Repository-Metadaten zu aktualisieren:
-[source,bash]
+[source,shell]
....
# pkg update -f
....
@@ -337,7 +337,7 @@ Informationen über bereits installierte Pakete können mit `pkg info` angezeigt
Um zu ermitteln welche Version von pkg installiert ist, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.1.4_1
@@ -348,14 +348,14 @@ pkg-1.1.4_1
Ein Binärpaket installieren Sie mit dem folgenden Befehl, wobei _paketname_ der Name des zu installierenden Pakets ist:
-[source,bash]
+[source,shell]
....
# pkg install paketname
....
Dieser Befehl verwendet Daten aus dem Repository um zu bestimmen, welche Version der Software und welche Abhängigkeiten installiert werden müssen. Um beispielsweise curl zu installieren:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -382,7 +382,7 @@ Cleaning up cache files...Done
Das neue Paket und jedes weitere Paket, das als Abhängigkeit installiert wurde, ist in der Liste der installierten Pakete zu sehen:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.15.1_1 The root certificate bundle from the Mozilla Project
@@ -392,7 +392,7 @@ pkg-1.1.4_6 New generation package manager
Wird ein Paket nicht mehr benötigt, kann es mit `pkg delete` entfernt werden. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -410,7 +410,7 @@ Proceed with deleting packages [y/N]: y
Installierte Pakete können mit diesem Kommando auf die neuesten Versionen aktualisiert werden:
-[source,bash]
+[source,shell]
....
# pkg upgrade
....
@@ -422,7 +422,7 @@ Dieses Kommando vergleicht und aktualisiert die installierten Versionen der Pake
Regelmäßig werden Sicherheitslücken in Drittanbieter-Software entdeckt. pkg besitzt einen eingebauten Auditing-Mechanismus. Um die auf dem System installierte Software auf Sicherheitslücken zu prüfen, geben Sie folgenden Befehl ein:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -432,7 +432,7 @@ Regelmäßig werden Sicherheitslücken in Drittanbieter-Software entdeckt. pkg b
Das Entfernen eines Pakets kann möglicherweise Abhängigkeiten hinterlassen, die nicht mehr benötigt werden. Unnötige Pakete, die als Abhängigkeit von anderen Paketen installiert wurden, können automatisch erfasst und entfernt werden:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be removed:
@@ -446,7 +446,7 @@ Deinstalling ca_root_nss-3.15.1_1... done
Pakete, die als Abhängigkeiten installiert werden, bezeichnet man als _automatische_ Pakete. Nichtautomatische Pakete, also die Pakete, die explizit nicht als Abhängigkeit von einem anderen Paket installiert wurden, können wie folgt angezeigt werden:
-[source,bash]
+[source,shell]
....
# pkg prime-list
nginx
@@ -456,7 +456,7 @@ sudo
`pkg prime-list` ist ein Alias-Befehl, der in [.filename]#/usr/local/etc/pkg.conf# definiert ist. Es gibt noch weitere Befehle die Sie verwenden können, um die Paketdatenbank des Systems abzufragen. Beispielsweise kann der Befehl `pkg prime-origins` benutzt werden, um das ursprüngliche Portverzeichnis der oben gezeigten Liste zu erhalten:
-[source,bash]
+[source,shell]
....
# pkg prime-origins
www/nginx
@@ -468,7 +468,7 @@ Diese Liste kann verwendet werden, um alle auf einem System installierten Pakete
Um ein bereits installiertes Paket als automatisches Paket zu kennzeichnen, können Sie folgenden Befehl benutzen:
-[source,bash]
+[source,shell]
....
# pkg set -A 1 devel/cmake
....
@@ -477,7 +477,7 @@ Sobald ein Paket nicht mehr genutzt wird und es als automatisch gekennzeichnet i
Das kennzeichnen eines installierten Pakets als _nicht_ automatisch kann wie folgt gemacht werden:
-[source,bash]
+[source,shell]
....
# pkg set -A 0 devel/cmake
....
@@ -495,7 +495,7 @@ Um das Skript daran zu hindern, eine Sicherung der Paketdatenbank zu erstellen,
Um den Inhalt einer früheren Paketdatenbank wiederherzustellen, geben Sie folgendes Kommando ein und ersetzen Sie _/path/to/pkg.sql_ durch den Speicherort der gesicherten Datenbank:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkg.sql
....
@@ -507,7 +507,7 @@ Wenn Sie eine Sicherung wiederherstellen, die von einem `periodic` Skript erstel
Um eine manuelle Sicherung der pkg Paketdatenbank zu erstellen, führen Sie den folgenden Befehl aus, und ersetzen Sie _/path/to/pkg.sql_ durch einen geeigneten Dateinamen:
-[source,bash]
+[source,shell]
....
# pkg backup -d /path/to/pkg.sql
....
@@ -517,14 +517,14 @@ Um eine manuelle Sicherung der pkg Paketdatenbank zu erstellen, führen Sie den
Standardmäßig speichert pkg Pakete in einem Cache-Verzeichnis, welches in man:pkg.conf[5] in der Variablen `PKG_CACHEDIR` definiert wird. Nur Kopien der neusten installierten Pakete werden beibehalten. Ältere Versionen von pkg haben alle Pakete aufbewahrt. Um diese veralteten Pakete zu entfernen, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg clean
....
Um alle Pakte aus dem Cache-Verzeichnis zu löschen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# pkg clean -a
....
@@ -536,21 +536,21 @@ Bei Software aus der FreeBSD Ports-Sammlung kann es vorkommen, dass die Hauptver
Um die Quelle des Pakets für das obige Beispiel zu ändern, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
Ein weiteres Beispiel: Um package:lang/ruby18[] auf package:lang/ruby19[] zu aktualisieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
In diesem letzten Beispiel wird die Quelle der Bibliotheken von [.filename]#libglut# von package:graphics/libglut[] auf package:graphics/freeglut[] geändert:
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -559,7 +559,7 @@ In diesem letzten Beispiel wird die Quelle der Bibliotheken von [.filename]#libg
====
Bei einem Wechsel der Paketquelle ist es notwendig, die Pakete neu zu installieren, welche von dem Paket abhängig sind, das seine Paketquelle geändert hat. Um eine Neuinstallation von abhängigen Paketen zu erzwingen, führen Sie folgenden Befehl aus:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -584,21 +584,21 @@ FreeBSDs Basissystem enthält mit Portsnap ein schnelles und benutzerfreundliche
. Laden Sie einen komprimierten Snapshot der Ports-Sammlung in [.filename]#/var/db/portsnap#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Wenn Sie Portsnap das erste Mal verwenden, müssen Sie den Snapshot nach [.filename]#/usr/ports# extrahieren:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. Nach dem ersten Einsatz von Portsnap, kann [.filename]#/usr/ports# wie folgt aktualisiert werden:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -606,7 +606,7 @@ FreeBSDs Basissystem enthält mit Portsnap ein schnelles und benutzerfreundliche
+
Bei der Verwendung von `fetch` können die `extract` oder `update` Operationen nacheinander ausgeführt werden, etwa so:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -621,7 +621,7 @@ Wird mehr Kontrolle über die Ports-Sammlung benötigt, oder wenn die lokalen Ä
. Subversion muss installiert sein, bevor die Ports-Sammlung geladen werden kann. Ist eine lokale Kopie der Ports-Sammlung bereits vorhanden, installieren Sie Subversion wie folgt:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -629,21 +629,21 @@ Wird mehr Kontrolle über die Ports-Sammlung benötigt, oder wenn die lokalen Ä
+
Wenn keine lokale Kopie der Ports-Sammlung vorhanden ist, oder pkg zur Verwaltung von Paketen benutzt wird, kann Subversion als Paket installiert werden:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Laden Sie eine Kopie der Ports-Sammlung:
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
+
. Nach dem erstmaligen checkout mit Subversion kann [.filename]#/usr/ports# wie folgt aktualisiert werden:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -676,7 +676,7 @@ Die Benutzung der Ports-Sammlung setzt eine funktionierende Internetverbindung u
Um einen Port zu installieren, wechseln Sie in das Verzeichnis des Ports, den Sie installieren möchten. Geben Sie dann `make install` am Prompt ein:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make install
@@ -717,7 +717,7 @@ Um die Suche nach Kommandos zu beschleunigen, speichern einige Shells eine Liste
Bei der Installation wird ein Arbeitsverzeichnis erstellt, das alle temporären Dateien enthält, die während des Bauvorgangs benötigt werden. Wenn dieses Verzeichnis nach der Installation entfernt wird, spart dies Plattenplatz und minimiert mögliche Probleme bei der Aktualisierung des Ports auf eine neuere Version:
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.88.d,8
@@ -747,7 +747,7 @@ Benutzer ohne eine ständige Internet-Verbindung können `make fetch` im Verzeic
In einigen seltenen Fällen ist es erforderlich, die benötigten Dateien von einem anderen Ort als den im Port definierten `MASTER_SITES` herunterzuladen. Sie können `MASTER_SITES` mit dem folgenden Kommando überschreiben:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -756,7 +756,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Die Variablen `WRKDIRPREFIX` und `PREFIX` überschreiben das voreingestellte Bau- und Zielverzeichnis. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
@@ -765,7 +765,7 @@ Dieses Kommando baut den Port unter [.filename]#/usr/home/example/ports# und ins
Die Variable `PREFIX` legt das Installations-Verzeichnis fest:
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -774,7 +774,7 @@ In diesem Beispiel wird der Port unter [.filename]#/usr/ports# gebaut und nach [
Sie können beide Variablen auch zusammen benutzen:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -788,7 +788,7 @@ Installierte Ports können mit `pkg delete` wieder deinstalliert werden. Beispie
Alternativ kann `make deinstall` im Verzeichnis des Ports aufgerufen werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make deinstall
@@ -811,14 +811,14 @@ Im Laufe der Zeit stehen neuere Versionen der Software in der Ports-Sammlung zur
Um festzustellen, ob neuere Versionen der installierten Ports verfügbar sind, stellen Sie sicher, dass die neueste Version der Ports-Sammlung installiert ist. Dies wird in <<ports-using-portsnap-method, "Installation mit Portsnap">> und <<ports-using-subversion-method, "Installation mit Subversion">> beschrieben. Führen Sie unter FreeBSD 10 und neueren Versionen, bzw. auf Systemen die bereits mit pkg arbeiten, den folgenden Befehl aus, um eine Liste der installierten Ports zu erhalten für die eine aktuelle Version existiert:
-[source,bash]
+[source,shell]
....
# pkg version -l "<"
....
Mit FreeBSD 9.__X__ und älteren Versionen kann stattdessen dieser Befehl verwendet werden:
-[source,bash]
+[source,shell]
....
# pkg_version -l "<"
....
@@ -845,7 +845,7 @@ Es bleibt dem Systemadministrator überlassen, welches dieser Werkzeuge für ein
package:ports-mgmt/portmaster[] ist ein sehr kleines Werkzeug zum Aktualisieren von Ports. Es wurde entwickelt, um mit den Werkzeugen aus dem FreeBSD Basissystem zu arbeiten, ohne dabei von anderen Ports oder Datenbanken abhängig zu sein. Sie können das Programm aus der Ports-Sammlung installieren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -860,7 +860,7 @@ Portmaster teilt Ports in vier Kategorien ein:
Um eine Liste der installierten Ports anzuzeigen und nach neueren Versionen zu suchen, verwenden Sie:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -887,7 +887,7 @@ Um eine Liste der installierten Ports anzuzeigen und nach neueren Versionen zu s
Um alle installierten Ports zu aktualisieren, verwenden Sie folgenden Befehl:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -899,14 +899,14 @@ In der Voreinstellung erzeugt Portmaster eine Sicherheitskopie, bevor ein instal
Treten während der Aktualisierung Fehler auf, verwenden Sie die Option `-f`, um alle Ports zu aktualisieren beziehungsweise neu zu bauen:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Portmaster ist auch in der Lage, neue Ports zu installieren, wobei zuvor alle abhängigen Ports aktualisiert werden. Um diese Funktion zu nutzen, geben Sie den Pfad des Ports in der Ports-Sammlung an:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -918,7 +918,7 @@ Weitere Informationen über package:ports-mgmt/portmaster[] finden Sie in der Be
package:ports-mgmt/portupgrade[] ist ein weiteres Werkzeug zur Aktualisierung von Ports. Es installiert eine Reihe von Anwendungen, die für die Verwaltung von Ports verwendet werden können. Das Programm ist jedoch von Ruby abhängig. Um den Port zu installieren, geben Sie ein:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -928,21 +928,21 @@ Durchsuchen Sie vor jedem Update die Liste der installierten Ports mit `pkgdb -F
Benutzen Sie `portupgrade -a`, um automatisch alle veralteten Ports auf dem System zu aktualisieren. Verwenden Sie zusätzlich den Schalter `-i`, wenn Sie individuell entscheiden wollen, ob ein Port aktualisiert werden soll:
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Um nur eine spezifische Anwendung zu aktualisieren, verwenden Sie `portupgrade _Paketname_`. Es ist wichtig den Schalter `-R` zu benutzen, um zuvor alle Ports zu aktualisieren, die von dem gegebenen Anwendung abhängen.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Um Pakete anstelle von Ports zu installieren, verwenden Sie den Schalter `-P`. Mit dieser Option durchsucht Portupgrade die in der Umgebungsvariablen `PKG_PATH` aufgeführten Verzeichnisse nach Paketen. Sind lokal keine Pakete vorhanden, versucht Portupgrade die Pakete über das Netz herunterzuladen. Gibt es die Pakete weder lokal noch auf entfernten Rechnern, werden die Ports verwendet. Um die Nutzung von Ports gänzlich zu verhindern, benutzen Sie die Option `-PP`. Portupgrade würde dann abbrechen, falls keine Pakete zur Verfügung stehen.
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome3
....
@@ -956,28 +956,28 @@ Weitere Informationen über package:ports-mgmt/portupgrade[] finden Sie in der B
Die Nutzung der Ports-Sammlung wird im Laufe der Zeit viel Plattenplatz verschlingen. Nach dem Bau und der Installation eines Ports, wird `make clean` die temporären Arbeitsverzeichnisse [.filename]#work# aufräumen. Portmaster wird dieses Verzeichnis nach der Installation eines Ports automatisch entfernen (es sei denn, die Option `-K` wird verwendet). Wenn Portupgrade installiert ist, wird der folgende Befehl alle Arbeitsverzeichnisse der lokalen Ports-Sammlung entfernen:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Zusätzlich werden sich im Laufe der Zeit zahlreiche veraltete Distfiles in [.filename]#/usr/ports/distfiles# ansammeln. Mit Portupgrade können alle Distfiles gelöscht werden, die vom keinem Port mehr benötigt werden:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Portupgrade kann alle Distfiles löschen, die von keinem derzeit installierten Port benötigt werden:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
Wenn Portmaster installiert ist, benutzen Sie diesen Befehl:
-[source,bash]
+[source,shell]
....
# portmaster --clean-distfiles
....
@@ -1002,7 +1002,7 @@ Die Anzahl der Kerne im Prozessor wird verwendet um zu bestimmen, wie viele Baup
Nach der Konfiguration muss poudriere initialisiert werden, damit es eine Jail mit der benötigten Ports-Sammlung startet. Geben Sie mit `-j` den Namen der Jail und mit `-v` die gewünschte FreeBSD-Version an. Auf FreeBSD/amd64-Systemen kann die Architektur mit dem Schalter `-a` und `i386` oder `amd64` gesetzt werden. Der voreingestellte Wert für die Architektur können Sie sich mit `uname` anzeigen lassen.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11amd64 -v 11.4-RELEASE
[00:00:00] Creating 11amd64 fs at /poudriere/jails/11amd64... done
@@ -1050,7 +1050,7 @@ Scanning //usr/shared/certs/trusted for certificates...
[00:04:07] Jail 11amd64 11.4-RELEASE-p1 amd64 is ready to be used
....
-[source,bash]
+[source,shell]
....
# poudriere ports -c -p local -m svn+https
[00:00:00] Creating local fs at /poudriere/ports/local... done
@@ -1073,14 +1073,14 @@ ports-mgmt/pkg
Die Optionen und Abhängigkeiten für die Ports werden wie folgt konfiguriert:
-[source,bash]
+[source,shell]
....
# poudriere options -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
Schließlich werden die Pakete gebaut und ein Paket-Repository erstellt:
-[source,bash]
+[source,shell]
....
# poudriere bulk -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
diff --git a/documentation/content/de/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/de/books/handbook/ppp-and-slip/_index.adoc
index c9187ccf58..b13a42ee6f 100644
--- a/documentation/content/de/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/de/books/handbook/ppp-and-slip/_index.adoc
@@ -358,14 +358,14 @@ Alternativ ist es möglich, einen "dfilter" einzusetzen, um SMTP-Verkehr zu bloc
Das Einzige, was nun noch zu tun bleibt, ist den Rechner neu zu starten. Nach dem Neustart können Sie entweder:
-[source,bash]
+[source,shell]
....
# ppp
....
und danach `dial provider` eingeben, um eine PPP-Sitzung zu starten, oder Sie geben:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -452,7 +452,7 @@ device uart
Das [.filename]#uart#-Gerät ist bereits im `GENERIC`-Kernel vorhanden, deshalb sind in diesem Fall keine zusätzlichen Schritte vonnöten. Kontrollieren Sie die Ausgabe von `dmesg`:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -463,33 +463,33 @@ In der Ausgabe sollten die entsprechenden [.filename]#uart#-Geräte, beispielswe
Ein Verbindungsaufbau zum Internet durch manuelle Steuerung von `ppp` geht schnell, ist einfach und stellt einen guten Weg dar, eine Verbindung auf Fehler hin zu überprüfen oder einfach Informationen darüber zu sammeln, wie der ISP Verbindungen handhabt. Lassen Sie uns PPP von der Kommandozeile aus starten. Beachten Sie, dass in allen Beispielen _example_ der Hostname der Maschine ist, auf der PPP läuft. `ppp` starten Sie wie folgt:
-[source,bash]
+[source,shell]
....
# ppp
....
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
Mit dem zweiten Befehl wird das Gerät [.filename]#cuau1# festgelegt.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
Dieser Befehlt setzt die Verbindungsgeschwindigkeit auf 115200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Dieser Befehl weist `ppp` an, den Resolver zu konfigurieren und in [.filename]#/etc/resolv.conf# Einträge für den Nameserver hinzuzufügen. Falls `ppp` nicht in der Lage ist den Hostnamen selbst zu bestimmen, kann dieser auch später manuell eingetragen werden.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -502,7 +502,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -511,56 +511,56 @@ atdt123456789
Sie verwenden `at` zur Initialisierung des Modems und dann `atdt` sowie die Nummer des ISPs, um den Einwählprozess zu starten.
-[source,bash]
+[source,shell]
....
CONNECT
....
Dies ist die Bestätigung, dass eine Verbindung aufgebaut wurde. Falls wir Verbindungsprobleme bekommen, die nicht mit der Hardware zusammenhängen, werden wir an dieser Stelle ansetzen müssen, um eine Lösung zu finden.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
Hier werden Sie nach einem Benutzernamen gefragt. Geben Sie am Prompt den Namen ein, den Ihnen der ISP zur Verfügung gestellt hat.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
An dieser Stelle müssen Sie das Passwort angeben, das Ihnen vom ISP vorgegeben wurde. Das Passwort wird, analog dem normalen Anmeldevorgang, nicht angezeigt.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Abhängig vom ISP, kann es sein, dass dieser Prompt nicht erscheint. Wir werden hier gefragt, ob wir eine Shell beim Provider verwenden oder `ppp` starten wollen. Weil wir eine Internetverbindung aufbauen wollen, haben wir uns in diesem Beispiel für `ppp` entschieden.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Beachten Sie, dass sich in diesem Beispiel das erste `p` in einen Großbuchstaben verwandelt hat. Dies zeigt, dass wir erfolgreich eine Verbindung zum ISP hergestellt haben.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
An dieser Stelle haben wir uns erfolgreich beim ISP authentifiziert und warten darauf, dass uns eine IP-Adresse zugewiesen wird.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
Wir haben uns mit der Gegenstelle auf eine IP-Adresse geeinigt und den Verbindungsaufbau erfolgreich abgeschlossen.
-[source,bash]
+[source,shell]
....
PPP ON example> add default HISADDR
....
@@ -579,14 +579,14 @@ PPP kehrt möglicherweise nicht in den Befehlsmodus zurück, was normalerweise a
Wenn der Login-Prompt nie erscheint, wird wahrscheinlich PAP oder CHAP für die Authentifizierung benötigt. Um PAP oder CHAP zu verwenden, ergänzen Sie PPP um folgende Optionen, bevor Sie in den Terminalmodus wechseln:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Hierbei sollte _myusername_ durch den Benutzernamen ersetzt werden, den Sie vom ISP bekommen haben.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -636,7 +636,7 @@ name_of_service_provider:
Als `root`, geben Sie ein:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -686,7 +686,7 @@ net.graph.nonstandard_pppoe=1
oder, wenn der Befehl unmittelbar wirksam werden soll, durch:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -757,14 +757,14 @@ adsl:
Ein Verbindungsaufbau kann einfach durch Eingabe des folgenden Befehls als `root` gestartet werden:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Sie können sich den Status der Verbindung durch folgenden Befehl anzeigen lassen:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -799,7 +799,7 @@ adsl:
Weil das Passwort in [.filename]#ppp.conf# im Klartext hinzugefügt wird, sollten Sie sicherstellen, dass niemand den Inhalt dieser Datei lesen kann:
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -809,7 +809,7 @@ Weil das Passwort in [.filename]#ppp.conf# im Klartext hinzugefügt wird, sollte
Dies wird einen Tunnel für eine PPP-Session zum DSL-Router öffnen. Ethernet-DSL-Modems haben eine vorkonfigurierte LAN-IP-Adresse, mit der Sie eine Verbindung aufbauen. Im Falle des Alcatel SpeedTouch(TM) Home handelt es sich dabei um die Adresse `10.0.0.138`. In der Dokumentation des Routers sollte angegeben sein, welche Adresse das Gerät verwendet. Um den Tunnel zu öffnen und eine PPP-Session zu starten, führen Sie folgenden Befehl aus:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -822,7 +822,7 @@ Wenn Sie ein kaufmännisches Und ("&") an das Ende dieses Kommandos anfügen, wi
Ein virtuelles Tunnel-Device [.filename]#tun# wird für das Zusammenspiel der Prozesse pptp und ppp geschaffen. Wenn Sie den Prompt zurückerhalten haben oder der pptp-Prozess das Vorliegen einer Verbindung bestätigt, können Sie den Tunnel folgendermaßen überprüfen:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
diff --git a/documentation/content/de/books/handbook/preface/_index.adoc b/documentation/content/de/books/handbook/preface/_index.adoc
index 9dc3b1cec4..71239ed040 100644
--- a/documentation/content/de/books/handbook/preface/_index.adoc
+++ b/documentation/content/de/books/handbook/preface/_index.adoc
@@ -223,7 +223,7 @@ Das letzte Beispiel bedeutet, dass die Tasten kbd:[Ctrl] und kbd:[X] gleichzeiti
Beispiele, die durch [.filename]#C:\># eingeleitet werden, zeigen ein MS-DOS(R) Kommando. Wenn nichts Anderes angezeigt wird, können diese Kommandos unter neuen Versionen von Microsoft(R) Windows(R) auch in einem DOS-Fenster ausgeführt werden.
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
@@ -231,14 +231,14 @@ E:\> tools\fdimage floppies\kern.flp A:
Beispiele, die mit # beginnen, müssen unter FreeBSD mit Superuser-Rechten ausgeführt werden. Dazu melden Sie sich entweder als `root` an oder Sie wechseln von Ihrem normalen Account mit man:su[1] zu dem Benutzer `root`.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Beispiele, die mit % anfangen, werden unter einem normalen Benutzer-Account ausgeführt. Sofern nichts Anderes angezeigt wird, verwenden die Beispiele die Syntax der C-Shell.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/de/books/handbook/printing/_index.adoc b/documentation/content/de/books/handbook/printing/_index.adoc
index c7e280dc8f..9b01f52e32 100644
--- a/documentation/content/de/books/handbook/printing/_index.adoc
+++ b/documentation/content/de/books/handbook/printing/_index.adoc
@@ -55,7 +55,7 @@ Die grundlegende Druckfunktion kann schnell eingerichtet werden. Der Drucker mus
****
. Erstellen Sie ein Verzeichnis zur Speicherung der Druckaufträge:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -84,7 +84,7 @@ lpd_enable="YES"
+
Starten Sie den Dienst:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -92,7 +92,7 @@ Starting lpd.
+
Drucken Sie eine Testseite:
+
-[source,bash]
+[source,shell]
....
# printf "1. Der Drucker kann drucken.\n2. Dies ist die zweite Zeile.\n" | lpr
....
@@ -105,7 +105,7 @@ Wenn die beiden Zeilen nicht am linken Rand starten und Sie einen "Treppeneffekt
+
Mit `lpr` können nun Textdateien gedruckt werden. Geben Sie den Dateinamen auf der Kommandozeile an oder lassen Sie `lpr` von einer Pipe lesen.
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -221,14 +221,14 @@ Die Beschreibungen vieler PDLs finden Sie auf http://www.undocprint.org/formats/
Für den gelegentlichen Druck können die Dateien auch direkt, ohne zusätzliche Einstellungen, an den Drucker gesendet werden. Zum Beispiel kann die Datei [.filename]#sample.txt# direkt an einen USB-Drucker gesendet werden:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
Ob Sie direkt auf einen Netzwerkdrucker drucken können, hängt von den Fähigkeiten des Druckers ab. Die meisten akzeptieren jedoch Druckaufträge auf Port 9100, die Sie mit man:nc[1] an den Drucker senden können. So drucken Sie die gleiche Datei auf einem Drucker mit dem DNS-Namen _netlaser_:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -245,7 +245,7 @@ FreeBSD enthält den Spooler namens man:lpd[8]. Druckaufträge werden mit man:lp
Erstellen Sie ein Verzeichnis zur Speicherung der Druckaufträge und setzen Sie die Berechtigungen auf diesem Verzeichnis, damit der Inhalt der Druckaufträge nicht von anderen Benutzern eingesehen werden kann:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -273,7 +273,7 @@ lp:\ <.>
Nachdem Sie [.filename]#/etc/printcap# erstellt haben, verwenden Sie man:chkprintcap[8] um die Datei auf Fehler zu testen:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -289,7 +289,7 @@ lpd_enable="YES"
Starten Sie den Dienst:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -299,7 +299,7 @@ Starten Sie den Dienst:
Mit `lpr` werden Dokumente an den Drucker geschickt. Die Datei können Sie auf der Kommandozeile angeben, oder über eine Pipe an `lpr` schicken. Die beiden folgenden Kommandos sind gleichwertig, sie schicken den Inhalt von [.filename]#doc.txt# an den Standarddrucker:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -307,7 +307,7 @@ Mit `lpr` werden Dokumente an den Drucker geschickt. Die Datei können Sie auf d
Drucker können auch mit `-P` ausgewählt werden. Um auf einen Drucker namens _laser_ zu drucken:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -373,7 +373,7 @@ CR=$'\r'
Setzen Sie die Berechtigungen und machen Sie die Datei ausführbar:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -402,7 +402,7 @@ Erstellen Sie [.filename]#/usr/local/libexec/enscript# mit diesem Inhalt:
Setzen Sie die Berechtigungen und machen Sie die Datei ausführbar:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -431,7 +431,7 @@ Erstellen Sie [.filename]#/usr/local/libexec/ps2pcl# mit diesem Inhalt:
Setzen Sie die Berechtigungen und machen Sie die Datei ausführbar:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -447,7 +447,7 @@ Bearbeiten Sie [.filename]#/etc/printcap# um den neuen Filter zu verwenden:
Testen Sie den Filter mit einem kleinen PostScript(R)-Programm.
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -483,7 +483,7 @@ esac
Setzen Sie die Berechtigungen und machen Sie die Datei ausführbar:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -543,7 +543,7 @@ man:lpq[1] zeigt den Status der Druckaufträge des Benutzers an. Druckaufträge
Dieser Befehl zeigt die anstehenden Druckaufträge eines Benutzers für einen Drucker an:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -552,7 +552,7 @@ Rank Owner Job Files Total Size
Der folgende Befehl zeigt die anstehenden Druckaufträge eines Benutzers für alle Drucker an:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -571,7 +571,7 @@ Mit man:lprm[1] können Druckaufträge gelöscht werden. Normale Benutzer dürfe
Dieser Befehl löscht alle anstehenden Druckaufträge eines Druckers:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -584,7 +584,7 @@ cfA004smithy dequeued
Mit dem folgenden Befehl löschen Sie einen bestimmten Druckauftrag. Benutzen Sie man:lpq[1], um die Nummer des Auftrags zu finden.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -601,7 +601,7 @@ Mit man:lpc[8] kann der Druckerstatus überprüft und verändert werden. `lpc` w
Dieser Befehl zeigt den Status von allen Druckern an:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -618,7 +618,7 @@ laser:
Der Drucker kann die Annahme neuer Druckaufträge verweigern. Anschließend sollen Aufträge wieder akzeptiert werden:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -631,7 +631,7 @@ lp:
Starten Sie den Drucker nach einem Fehler neu:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -642,7 +642,7 @@ lp:
Schalten Sie die Warteschlange aus und deaktivieren Sie den Druck. Sie können den Benutzern gleichzeitig eine Nachricht hinterlassen:
-[source,bash]
+[source,shell]
....
# lpc down lp Ersatzteile werden am Montag ankommen
lp:
@@ -652,7 +652,7 @@ lp:
Reaktivieren Sie den Drucker:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -679,14 +679,14 @@ lp|repairsprinter|salesprinter:\
Anstelle des Druckernamens können Aliase verwendet werden. Zum Beispiel können Mitarbeiter der Verkaufsabteilung wie folgt auf ihren Drucker drucken:
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Mitarbeiter der Reparaturabteilung drucken auf dem Drucker mit:
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....
diff --git a/documentation/content/de/books/handbook/security/_index.adoc b/documentation/content/de/books/handbook/security/_index.adoc
index 10ffffd44b..075b5b2877 100644
--- a/documentation/content/de/books/handbook/security/_index.adoc
+++ b/documentation/content/de/books/handbook/security/_index.adoc
@@ -96,14 +96,14 @@ Ein guter Ausgangspunkt für die Absicherung des Systems ist die Prüfung der Be
Es existieren zwei Methoden, um die Anmeldung über ein Benutzerkonto zu verweigern. Die erste Methode ist, das Konto zu sperren. Dieses Beispiel sperrt das Benutzerkonto `toor`:
-[source,bash]
+[source,shell]
....
# pw lock toor
....
Bei der zweiten Methode wird der Anmeldevorgang verhindert, indem die Shell auf [.filename]#/usr/sbin/nologin# gesetzt wird. Nur der Superuser kann die Shell für andere Benutzer ändern:
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -119,7 +119,7 @@ Die zweite und empfohlene Methode ein Benutzerkonto zu teilen wird über den Por
Benutzen Sie nach der Installation `visudo`, um [.filename]#/usr/local/etc/sudoers# zu bearbeiten. Dieses Beispiel erstellt eine neue Gruppe `webadmin` und fügt das Benutzerkonto `trhodes` dieser Gruppe hinzu. Anschließend wird die Gruppe so konfiguriert, dass es Gruppenmitgliedern gestattet wird package:apache24[] neu zu starten:
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
# visudo
@@ -138,7 +138,7 @@ Blowfish ist nicht Bestandteil von AES und ist nicht kompatibel mit allen Federa
Um zu bestimmen, welche Hash-Funktion das Passwort eines Benutzers verschlüsselt, kann der Superuser den Hash für den Benutzer in der Passwortdatenbank von FreeBSD nachsehen. Jeder Hash beginnt mit einem Zeichen, mit dem die verwendete Hash-Funktion identifiziert werden kann. Bei DES gibt es allerdings kein führendes Zeichen. MD5 benutzt das Zeichen `$`. SHA256 und SHA512 verwenden das Zeichen `$6$`. Blowfish benutzt das Zeichen `$2a$`. In diesem Beispiel wird das Passwort von `dru` mit dem Hash-Algorithmus SHA512 verschlüsselt, da der Hash mit `$6$` beginnt. Beachten Sie, dass der verschlüsselte Hash und nicht das Passwort selbst, in der Passwortdatenbank gespeichert wird:
-[source,bash]
+[source,shell]
....
# grep dru /etc/master.passwd
dru:$6$pzIjSvCAn.PBYQBA$PXpSeWPx3g5kscj3IMiM7tUEUSPmGexxta.8Lt9TGSi2lNQqYGKszsBPuGME0:1001:1001::0:0:dru:/usr/home/dru:/bin/csh
@@ -182,7 +182,7 @@ Die Einstellung `similar` verbietet Passwörter, die dem vorherigen Passwort des
Sobald diese Datei gespeichert wird, sehen Benutzer bei der Änderung ihres Passworts die folgende Meldung:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -213,7 +213,7 @@ Um für diese Login-Klasse das Passwort nach 90 Tagen ablaufen zu lassen, entfer
Um das Passwort für einzelne Benutzer ablaufen zu lassen, geben Sie `pw` ein Ablaufdatum oder die Anzahl von Tagen, zusammen mit dem Benutzer an:
-[source,bash]
+[source,shell]
....
# pw usermod -p 30-apr-2015 -n trhodes
....
@@ -229,7 +229,7 @@ Wird ein Rootkit erkannt, ist dies bereits ein Zeichen dafür, dass das System a
Nach der Installation dieses Ports oder Pakets kann das System mit dem folgenden Kommando überprüft werden. Das Programm generiert eine ganze Menge Informationen und Sie werden diverse Male kbd:[ENTER] drücken müssen:
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -247,7 +247,7 @@ FreeBSD bietet native Unterstützung für ein einfaches IDS-System. Obwohl die t
Das im Basissystem enthaltene Werkzeug mtree kann verwendet werden, um eine Spezifikation des Inhalts eines Verzeichnisses zu erzeugen. Hierbei wird ein Startwert (Seed) oder eine numerische Konstante benutzt, um die Spezifikation zu erstellen und um sicherzustellen, dass sich die Spezifikation nicht geändert hat. Dadurch kann festgestellt werden, ob eine Datei oder eine Binärdatei verändert wurde. Da ein Angreifer den Seed nicht kennt, ist es ihm fast unmöglich die Prüfsummen von Dateien zu manipulieren. Das folgende Beispiel generiert einen Satz mit SHA256-Prüfsummen für jede Binärdatei unterhalb von [.filename]#/bin# und speichert diese Werte in einer versteckten Datei im Heimatverzeichnis von `root` unter dem Namen [.filename]#/root/.bin_chksum_mtree#:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
# mtree: /bin checksum: 3427012225
@@ -285,7 +285,7 @@ Der Report enthält den Rechnernamen, das Datum und die Uhrzeit der Spezifikatio
Um sicherzustellen, dass die binären Signaturen nicht verändert wurden, vergleichen Sie den Inhalt des aktuellen Verzeichnisses mit der zuvor erstellen Spezifikation. Speichern Sie die Ergebnisse in einer Datei. Dieses Kommando benötigt den Seed, der verwendet wurde um die ursprüngliche Spezifikation zu erstellen:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
# mtree: /bin checksum: 3427012225
@@ -293,7 +293,7 @@ Um sicherzustellen, dass die binären Signaturen nicht verändert wurden, vergle
Dies sollte die gleiche Prüfsumme für [.filename]#/bin# produzieren, wie die ursprüngliche Spezifikation. Wenn keine Änderungen an den Binärdateien in diesem Verzeichnis aufgetreten sind, wird die Ausgabedatei [.filename]#/root/.bin_chksum_output# leer sein. Um eine Änderung zu simulieren, ändern Sie mit `touch` das Datum von [.filename]#/bin/cat# und führen Sie die Verifikation erneut aus:
-[source,bash]
+[source,shell]
....
# touch /bin/cat
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
@@ -351,7 +351,7 @@ Dieser Abschnitt beschreibt vier verschiedene Arten von Tätigkeiten. Zuerst wir
Um OPIE erstmals zu initialisieren, rufen Sie man:opiepasswd[1] über eine gesicherte Verbindung auf:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -377,7 +377,7 @@ Die Zeile, die mit "ID" beginnt, enthält den Login-Namen (`unfrul`), den vorein
Um Einmalpasswörter über eine nicht gesicherte Verbindung zu initialisieren, oder das geheime Passwort zu ändern, müssen Sie über eine gesicherte Verbindung zu einer Stelle verfügen, an der Sie `opiekey` ausführen können. Dies kann etwa die Eingabeaufforderung auf einer Maschine sein, der Sie vertrauen. Zudem müssen Sie einen Iterationszähler vorgeben (100 ist ein guter Wert) und einen Initialwert wählen, wobei Sie auch einen zufällig generierten benutzen können. Benutzen Sie man:opiepasswd[1] über die ungesicherte Verbindung zu der Maschine, die Sie einrichten wollen:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -396,7 +396,7 @@ LINE PAP MILK NELL BUOY TROY
Drücken Sie kbd:[Return], um die Vorgabe für den Initialwert zu akzeptieren. Bevor Sie nun das Zugriffspasswort (engl. access password) eingeben, rufen Sie über die gesicherte Verbindung `opikey` mit denselben Parametern auf:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -411,7 +411,7 @@ Gehen Sie zurück zu der nicht gesicherten Verbindung und geben dort das eben ge
Nachdem Sie OPIE eingerichtet haben, werden Sie beim nächsten Anmelden wie folgt begrüßt:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -431,7 +431,7 @@ Jetzt müssen Sie das Einmalpasswort generieren, um der Anmeldeaufforderung nach
Auf dem sicheren System:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -446,7 +446,7 @@ Sobald das Einmalpasswort generiert wurde, können Sie die Anmeldeprozedur forts
Manchmal haben Sie keinen Zugriff auf eine sichere Maschine oder eine sichere Verbindung. In diesem Fall können Sie vorher mit man:opiekey[1] einige Einmalpasswörter generieren. Zum Beispiel:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -514,7 +514,7 @@ qpopper : ALL : allow
Jedes Mal, wenn diese Datei bearbeitet wird, muss inetd neu gestartet werden:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -606,14 +606,14 @@ Obwohl der Kerberos-Server wenig Ressourcen benötigt, sollte das KDC wegen der
Installieren Sie zunächst das Paket package:security/heimdal[] wie folgt:
-[source,bash]
+[source,shell]
....
# pkg install heimdal
....
Als nächstes aktualisieren Sie [.filename]#/etc/rc.conf# mittels `sysrc`:
-[source,bash]
+[source,shell]
....
# sysrc kdc_enable=yes
# sysrc kadmind_enable=yes
@@ -664,7 +664,7 @@ Damit die Clients die Kerberos-Dienste benutzen können, _muss_ sie entweder ein
Im nächsten Schritt wird die Kerberos-Datenbank eingerichtet. Die Datenbank enthält die Schlüssel aller Prinzipale und ist mit einem Passwort geschützt. Dieses Passwort brauchen Sie sich nicht merken, da ein davon abgeleiteter Schlüssel in [.filename]#/var/heimdal/m-key# gespeichert wird. Es wäre durchaus sinnvoll, ein 45-stelliges Zufallspasswort für diesen Zweck zu benutzten. Um den Schlüssel zu erstellen, rufen Sie `kstash` auf und geben Sie ein Passwort ein:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxxxxxxxxxxxxxxxxx
@@ -673,7 +673,7 @@ Verifying password - Master key: xxxxxxxxxxxxxxxxxxxxxxx
Nachdem der Schlüssel erstellt wurde, sollte die Datenbank initialisiert werden. Das Kerberos-Werkzeug man:kadmin[8] kann die Datenbank mit `kadmin -l` direkt bearbeiten, ohne dabei den Netzwerkdienst man:kadmind[8] zu benutzen. An der Eingabeaufforderung von `kadmin` kann mit `init` die Datenbank des Realms initialisiert werden:
-[source,bash]
+[source,shell]
....
# kadmin -l
kadmin> init EXAMPLE.ORG
@@ -682,7 +682,7 @@ Realm max ticket life [unlimited]:
Zuletzt wird in `kadmin` mit `add` das erste Prinzipal erstellt. Benutzen Sie vorerst die voreingestellten Optionen für das Prinzipal. Die Optionen können später mit `modify` verändert werden. An der Eingabeaufforderung von man:kadmin[8] zeigt `?` die verfügbaren Optionen an.
-[source,bash]
+[source,shell]
....
kadmin> add tillman
Max ticket life [unlimited]:
@@ -696,7 +696,7 @@ Verifying password - Password: xxxxxxxx
Jetzt können die KDC-Dienste wie folgt gestartet werden:
-[source,bash]
+[source,shell]
....
# service kdc start
# service kadmind start
@@ -704,7 +704,7 @@ Jetzt können die KDC-Dienste wie folgt gestartet werden:
Obwohl zu diesem Zeitpunkt noch keine kerberisierten Dienste laufen, kann die Funktion des KDC schon überprüft werden, indem Sie für den eben angelegten Benutzer ein Ticket anfordern:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -712,7 +712,7 @@ tillman@EXAMPLE.ORG's Password:
Überprüfen Sie, ob das Ticket erfolgreich ausgestellt wurde:
-[source,bash]
+[source,shell]
....
% klist
Credentials cache: FILE: /tmp/krb5cc_1001
@@ -724,7 +724,7 @@ Aug 27 15:37:58 2013 Aug 28 01:37:58 2013 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
Nachdem der Test abgeschlossen ist, kann das temporäre Ticket zurückgezogen werden:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -739,7 +739,7 @@ Natürlich ist auch `kadmin` ein kerberisierter Dienst: ein Kerberos-Ticket ist
Nach der Installation von [.filename]#/etc/krb5.conf#, können Sie das Kommando `add --random-key` in `kadmin` ausführen, um das Host-Prinzipal in die Datenbank zu schreiben. Das Kommando `ext` extrahiert den Schlüssel des Prinzipals in eine eigene keytab:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -754,7 +754,7 @@ kadmin> exit
Beachten Sie, dass `ext_keytab` den extrahierten Schlüssel standardmäßig in [.filename]#/etc/krb5.keytab# speichert. Das ist gut, wenn das Kommando auf dem kerberisierten Server ausgeführt wird, ansonsten sollte das Argument `--keytab _pfad/zur/datei_` benutzt werden, wenn die keytab an einen anderen Ort extrahiert wird:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext_keytab --keytab=/tmp/example.keytab host/myserver.example.org
@@ -869,7 +869,7 @@ Weitere Informationen über SSL finden Sie im kostenlosen https://www.feistyduck
Um ein Zertifikat zu erzeugen, das von einer externen CA signiert werden soll, geben Sie folgenden Befehl und die angeforderten Informationen ein. Diese Informationen werden in das Zertifikat geschrieben. Für `Common Name` geben Sie den vollqualifizierten Namen des Systems ein, auf dem das Zertifikat später installiert wird. Wenn der Name nicht übereinstimmt, wird die Anwendung, die das Zertifikat überprüft, dem Benuzter eine Warnung anzeigen. Die Überprüfung würde fehlschlagen und das Zertifikat damit unbrauchbar machen.
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.key -sha256 -newkey rsa:2048
Generating a 2048 bit RSA private key
@@ -904,7 +904,7 @@ Das folgende Kommando erstellt zwei Dateien im aktuellen Verzeichnis: Die Anford
Wenn Sie keine Signatur einer Zertifizierungsstelle benötigen, können Sie ein selbst signiertes Zertifikat erstellen. Erzeugen Sie dazu zuerst einen RSA-Schlüssel:
-[source,bash]
+[source,shell]
....
# openssl genrsa -rand -genkey -out cert.key 2048
0 semi-random bytes loaded
@@ -916,7 +916,7 @@ e is 65537 (0x10001)
Benutzen Sie diesen Schlüssel, um ein selbst signiertes Zertifikat zu erzeugen. Folgen Sie wieder den Anweisungen am Prompt:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key cert.key -out cert.crt -sha256
You are about to be asked to enter information that will be incorporated
@@ -957,14 +957,14 @@ sendmail_cert_cn="localhost.example.org"
Dadurch wird automatisch ein selbst signiertes Zertifikat ([.filename]#/etc/mail/certs/host.cert#), der Schlüssel für die CA ([.filename]#/etc/mail/certs/host.key# und das Zertifikat der CA ([.filename]#/etc/mail/certs/cacert.pem# erzeugt. Das Zertifikat wird den in `sendmail_cert_cn` festgelegten `Common Name` verwenden. Nachdem Sie die Änderungen gespeichert haben, starten Sie Sendmail neu:
-[source,bash]
+[source,shell]
....
# service sendmail restart
....
Wenn alles gut ging, erscheinen keine Fehlermeldungen in [.filename]#/var/log/maillog#. Für einen einfachen Test, bauen Sie mit Hilfe von `telnet` eine Verbindung zum Mailserver auf:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1007,7 +1007,7 @@ IPsec unterstützt zwei Modi: Der _Transport-Modus_ verschlüsselt die Daten zwi
Seit FreeBSD 11 ist IPsec in der Voreinstellung aktiviert. Um die Unterstützung für IPsec in älteren Versionen zu aktivieren, fügen Sie folgenden Optionen in die Kernelkonfigurationsdatei ein und erstellen Sie einen neuen Kernel, wie in crossref:kernelconfig[kernelconfig,Konfiguration des FreeBSD-Kernels] beschrieben.
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -1015,7 +1015,7 @@ device crypto
Wenn Sie zur Fehlersuche im IPsec-Subsystem Unterstützung wünschen, sollten Sie die folgende Option ebenfalls aktivieren:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1032,7 +1032,7 @@ Als erstes muss package:security/ipsec-tools[] aus der Ports-Sammlung installier
Als nächstes müssen zwei man:gif[4]-Pseudogeräte angelegt werden, um die Pakete zu tunneln und dafür zu sorgen, dass beide Netzwerke richtig miteinander kommunizieren können. Geben Sie als `root` die folgenden Befehle ein, wobei Sie _intern_ und _extern_ durch die realen internen und externen IP-Adressen der Gateways ersetzen müssen:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 intern1 intern2
@@ -1087,7 +1087,7 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
Wie erwartet, können nun beiden Seiten ICMP-Pakete von ihren privaten Adressen senden und empfangen. Als nächstes müssen beide Gateways so konfiguriert werden, dass sie die Pakete des anderen Netzwerkes richtig routen. Dazu werden folgende Befehle verwendet:
-[source,bash]
+[source,shell]
....
corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
corp-net# route add net 10.0.0.0: gateway 10.0.0.5
@@ -1203,7 +1203,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Nachdem die Datei gespeichert wurde, kann racoon durch das folgende Kommando auf beiden Gateways gestartet werden:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1228,7 +1228,7 @@ Foreground mode.
Um sicherzustellen, dass der Tunnel richtig funktioniert, wechseln Sie auf eine andere Konsole und benutzen Sie man:tcpdump[1] mit dem folgenden Befehl, um sich den Netzwerkverkehr anzusehen. Tauschen Sie `em0` durch die richtige Netzwerkkarte aus:
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1294,7 +1294,7 @@ Dieser Abschnitt enthält einen Überblick über die integrierten Client-Werkzeu
Benutzen Sie `ssh` zusammen mit einem Benutzernamen und einer IP-Adresse oder dem Hostnamen, um sich an einem SSH-Server anzumelden. Ist dies das erste Mal, dass eine Verbindung mit dem angegebenen Server hergestellt wird, wird der Benutzer aufgefordert, zuerst den Fingerabdruck des Servers zu prüfen:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
The authenticity of host 'example.com (10.0.0.1)' can't be established.
@@ -1310,7 +1310,7 @@ In der Voreinstellung akzeptieren aktuelle Versionen von OpenSSH nur SSHv2 Verbi
Mit man:scp[1] lassen sich Dateien in einer sicheren Weise auf entfernte Maschinen übertragen. Dieses Beispiel kopiert die Datei [.filename]#COPYRIGHT# von einem entfernten System in eine Datei mit dem gleichen Namen auf das lokale System:
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
Password for user@example.com: *******
@@ -1330,7 +1330,7 @@ Mit `sftp` können Dateien über eine interaktive Sitzung kopiert werden. man:sf
Ein Client kann bei der Verbindung auch Schlüssel anstelle von Passwörtern verwenden. Benutzen Sie `ssh-keygen` um RSA-Schlüssel erzeugen. Geben Sie das entsprechende Protokoll an, wenn Sie einen öffentlichen und einen privaten Schlüssel erzeugen. Folgen Sie anschließend den Anweisungen des Programms. Es wird empfohlen, die Schlüssel mit einer einprägsamen, aber schwer zu erratenen Passphrase zu schützen.
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa
Generating public/private rsa key pair.
@@ -1374,7 +1374,7 @@ Wenn bei der Erzeugung des Schlüssels eine Passphrase angegeben wurde, wird der
Um `ssh-agent` in einer Shell zu verwenden, muss es mit einer Shell als Argument aufgerufen werden. Die zu verwaltende Identität muss mit `ssh-add` sowie der Passphrase für den privaten Schlüssel übergeben werden. Danach kann sich der Benutzer mit `ssh` auf jedem Rechner anmelden, der einen entsprechenden öffentlichen Schlüssel besitzt. Dazu ein Beispiel:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1401,7 +1401,7 @@ Mit OpenSSH ist es möglich, einen Tunnel zu erstellen, in dem ein anderes Proto
Im folgenden Kommando erzeugt `ssh` einen Tunnel für `telnet`:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1432,7 +1432,7 @@ Wie in den folgenden Beispielen zu sehen ist, kann diese Vorgehensweise genutzt
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1450,7 +1450,7 @@ Zusammen mit `ssh-keygen` und zusätzlichen Benutzer-Accounts können leicht ben
====
In diesem Beispiel gibt es einen SSH-Server, der Verbindungen von außen akzeptiert. Im selben Netzwerk befindet sich zudem noch ein Mail-Server, der POP3 spricht. Um E-Mails auf sichere Weise abzurufen, bauen Sie eine SSH-Verbindung zu dem SSH-Server im Netzwerk auf und tunneln von dort zum Mail-Server weiter.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1466,7 +1466,7 @@ Einige Firewalls filtern sowohl eingehende als auch ausgehende Verbindungen. Zum
Die Lösung hier ist es, eine SSH-Verbindung zu einer Maschine außerhalb der Firewall aufzumachen und durch diese zum gewünschten Dienst zu tunneln:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1481,7 +1481,7 @@ Neben den integrierten SSH Client-Werkzeugen, die zur Verfügung stehen, kann ei
Benutzen Sie den Kommando man:service[8], um zu prüfen ob der sshd ausgeführt wird:
-[source,bash]
+[source,shell]
....
# service sshd status
....
@@ -1495,7 +1495,7 @@ sshd_enable="YES"
Diese Zeile startet `sshd`, den OpenSSH-Daemon, beim nächsten Systemstart. Geben Sie folgendes ein, um den Dienst jetzt zu starten:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1533,7 +1533,7 @@ AllowUsers root@192.168.1.32 admin
Nachdem Sie [.filename]#/etc/ssh/sshd_config# angepasst haben, muss `sshd` seine Konfigurationsdateien neu einlesen. Dazu geben Sie Folgendes ein:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -1601,7 +1601,7 @@ In diesem Beispiel sind die Verzeichnisse [.filename]#directory1#, [.filename]#d
`getfacl` zeigt Zugriffskontrolllisten an. Das folgende Kommando zeigt die ACLs auf der Datei [.filename]#test#:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1614,14 +1614,14 @@ In diesem Beispiel sind die Verzeichnisse [.filename]#directory1#, [.filename]#d
`setfacl` ändert oder entfernt ACLs auf Dateien. Um alle ACLs einer Datei zu entfernen, können Sie die Option `-k` benutzen. Es ist jedoch empfehlenswert die Option `-b` zu verwenden, da sie die erforderlichen Felder, die für ACLs benötigt werden, beibehält.
-[source,bash]
+[source,shell]
....
# setfacl -k test
....
Benutzen Sie `-m` um die Einträge der ACL zu verändern:
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,g:web:r--,o::--- test
....
@@ -1645,7 +1645,7 @@ Die Installation enthält Konfigurationsdateien für man:periodic[8], welche die
Nach der Installation kann ein Administrator mit dem folgenden Kommando die Datenbank aktualisieren und sich die Sicherheitslücken in installierten Paketen anzeigen lassen:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -1861,7 +1861,7 @@ Wenn Sie eine differenzierte Prozess-Überwachung benötigen, lesen Sie crossref
Bevor Sie die Prozess-Überwachung verwenden können, müssen Sie diese über die folgenden Befehle aktivieren:
-[source,bash]
+[source,shell]
....
# sysrc accounting_enable=yes
# service accounting start
@@ -1873,7 +1873,7 @@ Einmal aktiviert, wird sofort mit der Überwachung von CPU-Statistiken, Befehlen
Benutzen Sie `lastcomm`, um die von den Benutzern ausgeführten Befehle anzuzeigen. Dieses Beispiel zeigt die Nutzung von `ls` durch `trhodes` auf dem Terminal `ttyp1`:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1900,7 +1900,7 @@ Bei der traditionellen Methode werden Login-Klassen und Ressourcenbeschränkunge
====
Immer wenn [.filename]#/etc/login.conf# verändert wurde, muss die [.filename]#/etc/login.conf.db# mit dem folgenden Kommando aktualisiert werden:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1978,7 +1978,7 @@ Diese Regel zeigt den grundlegenden Aufbau, hier mit dem Subjekt `user` und der
Beim hinzufügen von Regeln müssen einige Dinge beachtet werden. Das obige Beispiel würde den Benutzer sogar daran hindern, einfachste Dinge zu tun, nachdem er sich anmeldet und eine `screen` Sitzung gestartet hat. Sobald die Begrenzung für eine Ressource erreicht ist, wird folgende Fehlermeldung ausgegeben:
-[source,bash]
+[source,shell]
....
# man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1987,7 +1987,7 @@ eval: Cannot fork: Resource temporarily unavailable
man:rctl[8] kann auch benutzt werden, um einer Jail eine Speichergrenze zuzuweisen. Eine solche Regel könnte wie folgt festgelegt werden:
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -2002,14 +2002,14 @@ jail:httpd:memoryuse:deny=2G/jail
Mit `rctl` können auch Regeln entfernt werden:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
man:rctl[8] zeigt auch eine Möglichkeit, alle Regeln zu entfernen. Falls es erforderlich ist alle Regeln für einen einzelnen Benutzer zu entfernen, kann dieser Befehl verwendet werden:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
@@ -2025,7 +2025,7 @@ Bislang wurde in diesem Kapitel immer versucht, den Zugriff für autorisierte Be
Sudo erlaubt dem Administrator eine rigide Konfiguration des Zugriffs auf bestimmte Kommandos und stellt einige erweiterte Protokollfunktionen zur Verfügung. Dieses Werkzeug kann als Port oder Paket package:security/sudo[] installiert werden. Das Paket wird wie folgt installiert:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -2041,21 +2041,21 @@ user1 ALL=(ALL) /usr/sbin/service webservice *
Der Benutzer kann jetzt _webservice_ über dieses Kommando starten:
-[source,bash]
+[source,shell]
....
% sudo /usr/sbin/service webservice start
....
Diese Konfiguration gestattet den Zugriff auf den webservice für einen einzelnen Benutzer. Jedoch ist in den meisten Organisationen ein ganzes Team für die Verwaltung eines solchen Dienstes verantwortlich. Mit einer weiteren Zeile ist es möglich, einer ganzen Gruppe diesen Zugriff zu geben. Die folgenden Schritte erstellen eine Gruppe mit den entsprechenden Benutzern. Der Gruppe wird es dann ermöglicht, diesen Dienst zu verwalten:
-[source,bash]
+[source,shell]
....
# pw groupadd -g 6001 -n webteam
....
Nun werden die Benutzer mit Hilfe von man:pw[8] in die Gruppe _webteam_ hinzugefügt:
-[source,bash]
+[source,shell]
....
# pw groupmod -m user1 -n webteam
....
@@ -2108,14 +2108,14 @@ Nachdem dieser Eintrag in die Datei [.filename]#sudoers# hinzugefügt wurde, kan
Von nun an wird jede Änderung am _webservice_ protokolliert, wenn sie von einem Mitglied der Gruppe _webteam_ initiiert wurde. Eine Liste der Sitzungen kann wie folgt angezeigt werden:
-[source,bash]
+[source,shell]
....
# sudoreplay -l
....
Wenn Sie eine bestimmte Sitzung wiedergeben möchten, suchen Sie in der Ausgabe nach dem Eintrag `TSID=` und übergeben Sie den Wert ohne weitere Optionen an sudoreplay. Zum Beispiel:
-[source,bash]
+[source,shell]
....
# sudoreplay user1/00/00/02
....
diff --git a/documentation/content/de/books/handbook/serialcomms/_index.adoc b/documentation/content/de/books/handbook/serialcomms/_index.adoc
index 9cf28b902a..00994b10f1 100644
--- a/documentation/content/de/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/de/books/handbook/serialcomms/_index.adoc
@@ -316,7 +316,7 @@ In der Voreinstellung benutzt FreeBSD vier serielle Schnittstellen, die unter MS
Um zu überprüfen, ob der Kernel die seriellen Schnittstellen erkennt, achten Sie auf die Meldungen beim Booten, oder schauen sich diese später mit `/sbin/dmesg` an. Achten Sie auf Meldungen die mit `uart` beginnen:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'uart'
....
@@ -337,14 +337,14 @@ Die meisten Geräte im Kernel werden durch Gerätedateien in [.filename]#/dev# a
Anwendungen benutzen normalerweise die Geräte [.filename]#ttyuN# oder [.filename]#cuauN#. Das Gerät besitzt einige Voreinstellungen für Terminal-I/O, wenn es von einem Prozess geöffnet wird. Mit dem folgenden Kommando können Sie sich diese Einstellungen ansehen:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
Wenn diese Einstellungen verändert werden, bleiben sie nur solange wirksam, bis das Gerät geschlossen wird. Wenn das Gerät danach wieder geöffnet wird, sind die Voreinstellungen wieder wirksam. Um die Voreinstellungen dauerhaft zu ändern, öffnen Sie das Gerät, das zum Initialisieren dient und verändern dessen Einstellungen. Um beispielsweise für [.filename]#ttyu5# den `CLOCAL` Modus, 8-Bit Kommunikation und `XON/XOFF` Flusssteuerung einzuschalten, setzen Sie das folgende Kommando ab:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
@@ -353,7 +353,7 @@ In [.filename]#/etc/rc.d/rc.serial# werden die systemweiten Voreinstellungen fü
Um zu verhindern, dass Einstellungen von Anwendungen verändert werden, können Sie die Geräte zum Festschreiben von Einstellungen ("locking devices") benutzen. Wenn sie beispielsweise die Geschwindigkeit von [.filename]#ttyu5# auf 57600 bps festlegen wollen, benutzen Sie das folgende Kommando:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyld5 57600
....
@@ -392,7 +392,7 @@ Bereits im Basissystem sind mindestens zwei Werkzeuge vorhanden, die Sie zur Arb
Um sich von einem FreeBSD-System aus über eine serielle Verbindung mit einem anderen System zu verbinden, geben Sie folgenden Befehl ein:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuauN
....
@@ -469,7 +469,7 @@ Das letzte Feld gibt die Sicherheit des Anschlusses an. Wenn hier `secure` angeg
Nachdem Änderungen in [.filename]#/etc/ttys# vorgenommen wurden, schicken Sie `init` ein SIGHUP-Signal (hangup), um es zu veranlassen, seine Konfigurationsdatei neu zu lesen:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -494,14 +494,14 @@ Stellen Sie sicher, dass die Einstellungen für die Geschwindigkeit (bps) und Pa
Überprüfen Sie mit `ps`, dass der `getty` Prozess für den Terminal läuft:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Für jeden Terminal sollte ein Eintrag vorhanden sein. Aus dem folgenden Beispiel ist zu erkennen, dass `getty` auf der zweiten seriellen Schnittstelle [.filename]#tyyd1# läuft und den Verbindungstyp `std.38400` aus [.filename]#/etc/gettytab# benutzt:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
....
@@ -568,7 +568,7 @@ FreeBSD unterstützt EIA RS-232C (CCITT V.24) serielle Schnittstellen, die auf d
Wie bei Terminals auch, startet `init` für jede serielle Schnittstelle, die eine Einwählverbindung zur Verfügung stellt, einen `getty` Prozess. Wenn das Modem beispielsweise an [.filename]#/dev/ttyu0# angeschlossen ist, sollte in der Ausgabe von `ps ax` eine Zeile wie die folgende erscheinen:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyu0
....
@@ -669,7 +669,7 @@ Die Vorgabe für den Terminaltyp, `dialup` im obigen Beispiel, hängt von lokale
Nachdem [.filename]#/etc/ttys# geändert wurde, muss `init` ein HUP Signal schicken, damit es die Datei wieder einliest:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -774,7 +774,7 @@ Schließen Sie das Modem an das FreeBSD-System an und booten Sie das System. Wen
Wenn der DTR-Indikator nicht leuchtet, melden Sie sich an dem FreeBSD-System an und überprüfen mit `ps ax`, ob FreeBSD einen `getty`-Prozess auf der entsprechenden Schnittstelle gestartet hat:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu1
@@ -782,7 +782,7 @@ Wenn der DTR-Indikator nicht leuchtet, melden Sie sich an dem FreeBSD-System an
Wenn das Modem noch keinen Anruf entgegengenommen hat und Sie stattdessen die folgende Zeile sehen
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -833,7 +833,7 @@ Verwenden Sie die höchste bps-Rate, die das Modem in der `br` Fähigkeit unters
Oder benutzen Sie `cu` als `root` mit dem folgenden Befehl:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -865,7 +865,7 @@ tip57600|Dial any phone number at 57600 bps:\
Folgendes sollte jetzt funktionieren:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -880,7 +880,7 @@ cu115200|Use cu to dial any number at 115200bps:\
und benutzen zum Wählen das Kommando:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -998,7 +998,7 @@ Dieser Abschnitt bietet einen schnellen Überblick über die Einrichtung einer s
. Um die Startmeldungen der seriellen Konsole zu sehen, geben Sie als `root` folgendes ein:
+
-[source,bash]
+[source,shell]
....
....
@@ -1087,7 +1087,7 @@ Mit Ausnahme von `-P` werden die Optionen an den Bootloader weitergegeben. Der B
+
Wenn Sie das FreeBSD-System starten, werden die Bootblöcke den Inhalt von [.filename]#/boot.config# auf der Konsole ausgeben:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1124,7 +1124,7 @@ Nach den oben gezeigten Meldungen gibt es eine kleine Verzögerung bevor die Boo
+
Drücken Sie eine Taste außer kbd:[Enter] um den Bootvorgang zu unterbrechen. Sie erhalten dann ein Prompt, an dem Sie weitere Eingaben tätigen können:
+
-[source,bash]
+[source,shell]
....
FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1276,7 +1276,7 @@ an. Keine andere serielle Schnittstelle sollte als Konsole definiert werden.
. Übersetzen und installieren Sie die Bootblöcke und den Bootloader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/de/books/handbook/usb-device-mode/_index.adoc b/documentation/content/de/books/handbook/usb-device-mode/_index.adoc
index 82aad41ae7..e0cae179e0 100644
--- a/documentation/content/de/books/handbook/usb-device-mode/_index.adoc
+++ b/documentation/content/de/books/handbook/usb-device-mode/_index.adoc
@@ -93,7 +93,7 @@ notify 100 {
Laden Sie die Konfiguration neu, falls man:devd[8] bereits läuft:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -108,7 +108,7 @@ hw.usb.template=3
Um das Modul zu laden und die Vorlage ohne Neustart zu aktivieren, verwenden Sie:
-[source,bash]
+[source,shell]
....
# kldload umodem
# sysctl hw.usb.template=3
@@ -118,7 +118,7 @@ Um das Modul zu laden und die Vorlage ohne Neustart zu aktivieren, verwenden Sie
Um eine Verbindung zu einer Karte herzustellen, die so konfiguriert ist, dass sie serielle Ports im USB-Gerätemodus bereitstellt, schließen Sie den USB-Host, beispielsweise einen Laptop, an den USB OTG- oder USB-Client-Port der Karte an. Verwenden Sie `pstat -t` auf dem Host, um die Terminalzeilen aufzulisten. Am Ende der Liste sollten Sie einen seriellen USB-Anschluss sehen, zum Beispiel "ttyU0". Um die Verbindung zu öffnen, benutzen Sie:
-[source,bash]
+[source,shell]
....
# cu -l /dev/ttyU0
....
@@ -129,7 +129,7 @@ Nach mehrmaligem Drücken der kbd:[Enter]-Taste erscheint ein Anmeldeprompt.
Um eine Verbindung zu einer Karte herzustellen, die so konfiguriert ist, dass sie serielle Ports im USB-Gerätemodus bereitstellt, schließen Sie den USB-Host, beispielsweise einen Laptop, an den USB OTG- oder USB-Client-Port der Karte an. Um die Verbindung zu öffnen, benutzen Sie:
-[source,bash]
+[source,shell]
....
# cu -l /dev/cu.usbmodemFreeBSD1
....
@@ -138,7 +138,7 @@ Um eine Verbindung zu einer Karte herzustellen, die so konfiguriert ist, dass si
Um eine Verbindung zu einer Karte herzustellen, die so konfiguriert ist, dass sie serielle Ports im USB-Gerätemodus bereitstellt, schließen Sie den USB-Host, beispielsweise einen Laptop, an den USB OTG- oder USB-Client-Port der Karte an. Um die Verbindung zu öffnen, benutzen Sie:
-[source,bash]
+[source,shell]
....
# minicom -D /dev/ttyACM0
....
@@ -162,7 +162,7 @@ hw.usb.template=1
Um das Modul zu laden und die Vorlage ohne Neustart zu aktivieren, verwenden Sie:
-[source,bash]
+[source,shell]
....
# kldload if_cdce
# sysctl hw.usb.template=1
@@ -189,7 +189,7 @@ cfumass_enable="YES"
Um das Ziel ohne Neustart zu konfigurieren, führen Sie diesen Befehl aus:
-[source,bash]
+[source,shell]
....
# service cfumass start
....
@@ -202,7 +202,7 @@ Der Rest dieses Kapitels enthält eine detaillierte Beschreibung der Konfigurati
Im Gegensatz zu iSCSI ist es bei USB-Massenspeichern nicht zwingend erforderlich, dass der man:ctld[8] Daemon läuft. Es gibt zwei Möglichkeiten, das Target zu konfigurieren: man:ctladm[8] oder man:ctld[8]. Beide erfordern, dass das Kernelmodul [.filename]#cfumass.ko# geladen ist. Das Modul kann manuell geladen werden:
-[source,bash]
+[source,shell]
....
# kldload cfumass
....
@@ -216,7 +216,7 @@ cfumass_load="YES"
Eine LUN kann ohne den man:ctld[8] Daemon erstellt werden:
-[source,bash]
+[source,shell]
....
# ctladm create -b block -o file=/data/target0
....
@@ -248,14 +248,14 @@ ctld_enable="YES"
Sie können man:ctld[8] mit diesem Befehl direkt starten:
-[source,bash]
+[source,shell]
....
# service ctld start
....
Der man:ctld[8] Daemon liest beim Start [.filename]#/etc/ctl.conf#. Wenn diese Datei nach dem Start des Daemons bearbeitet wird, müssen die Änderungen neu geladen werden, damit sie sofort wirksam werden:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
diff --git a/documentation/content/de/books/handbook/virtualization/_index.adoc b/documentation/content/de/books/handbook/virtualization/_index.adoc
index 0fdde776e8..ee43b8c617 100644
--- a/documentation/content/de/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/de/books/handbook/virtualization/_index.adoc
@@ -317,7 +317,7 @@ Diese Kommandos werden im FreeBSD Gastsystem ausgeführt.
Installieren Sie das Paket oder den Port package:emulators/virtualbox-ose-additions[] in das FreeBSD Gastsystem. Dieses Beispiel installiert den Port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions
# make install clean
@@ -400,14 +400,14 @@ Benutzer von HAL sollten die Datei [.filename]#/usr/local/etc/hal/fdi/policy/90-
Gemeinsame Ordner für die Dateitransfer zwischen Host und VM sind verfügbar, wenn sie mit `mount_vboxvfs` eingebunden werden. Ein gemeinsamer Ordner kann auf dem Host über die graphische Oberfläche von VirtualBox oder mit `vboxmanage` erstellt werden. Um beispielsweise einen freigegebenen Ordner namens _myshare_ unter [.filename]#/mnt/bsdboxshare# für die VM _BSDBox_ zu erstellen, führen Sie folgendes Kommando aus:
-[source,bash]
+[source,shell]
....
# vboxmanage sharedfolder add 'BSDBox' --name myshare --hostpath /mnt/bsdboxshare
....
Beachten Sie, dass der Name des gemeinsamen Ordners keine Leerzeichen enthalten darf. Sie können den freigegebenen Ordner innerhalb des Gastsystems wie folgt einbinden:
-[source,bash]
+[source,shell]
....
# mount_vboxvfs -w myshare /mnt
....
@@ -422,7 +422,7 @@ VirtualBox(TM) ist ein vollständigesVirtualisierungspaket, das aktiv weiterentw
VirtualBox(TM) steht als Paket oder Port in package:emulators/virtualbox-ose[] bereit. Der Port kann mit folgendem Kommando installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -432,7 +432,7 @@ Eine nützliche Option im Konfigurationsdialog ist die `GuestAdditions`-Programm
Ein paar Konfigurationsänderungen sind notwendig, bevor VirtualBox(TM) das erste Mal gestartet wird. Der Port installiert ein Kernelmodul in [.filename]#/boot/modules#, das in den laufenden Kernel geladen werden muss:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -453,14 +453,14 @@ vboxnet_enable="YES"
Die Gruppe `vboxusers` wird während der Installation von VirtualBox(TM) angelegt. Alle Benutzer, die Zugriff auf VirtualBox(TM) haben sollen, müssen in diese Gruppe aufgenommen werden. `pw` kann benutzt werden, um neue Mitglieder hinzuzufügen:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
Damit Netzwerkbrücken funktionieren, müssen die in der Voreinstellung eingeschränkten Berechtigungen für [.filename]#/dev/vboxnetctl# angepasst werden:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0600 /dev/vboxnetctl
@@ -476,7 +476,7 @@ perm vboxnetctl 0600
Um VirtualBox(TM) zu starten, geben Sie folgenden Befehl in der Xorg-Sitzung ein:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -490,7 +490,7 @@ Sie können VirtualBox(TM) so konfigurieren, dass USB-Geräte an das Gastsystem
Damit VirtualBox(TM) angeschlossene USB-Geräte am Rechner erkennt, muss der Benutzer Mitglied der Gruppe `operator` sein.
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m ihrbenutzername
....
@@ -512,7 +512,7 @@ devfs_system_ruleset="system"
Danach starten Sie devfs neu:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -531,7 +531,7 @@ Damit die CD/DVD-Funktionen von VirtualBox(TM) funktionieren, muss HAL in [.file
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -545,7 +545,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -562,14 +562,14 @@ Das Design von bhyve erfordert einen Prozessor, der Intel(R) Extended Page Table
Der erste Schritt bei der Erstellung einer virtuellen Maschine in bhyve ist die Konfiguration des Host-Systems. Laden Sie zunächst das bhyve Kernelmodul:
-[source,bash]
+[source,shell]
....
# kldload vmm
....
Erstellen Sie ein [.filename]#tap#-Gerät, um dieses mit der Netzwerk-Schnittstelle der virtuellen Maschine zu verbinden. Damit sich die Schnittstelle mit dem Netzwerk verbinden kann, müssen Sie zusätzlich eine Bridge-Schnittstelle erzeugen, bestehend aus dem [.filename]#tap#-Gerät und der physikalischen Schnittstelle. In diesem Beispiel wird die physikalische Schnittstelle [.filename]#igb0# verwendet:
-[source,bash]
+[source,shell]
....
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
@@ -584,14 +584,14 @@ net.link.tap.up_on_open: 0 -> 1
Erzeugen Sie eine Datei, die als virtuelle Festplatte für das Gastsystem verwendet wird. Geben Sie die Größe und den Namen der virtuellen Festplatte an:
-[source,bash]
+[source,shell]
....
# truncate -s 16G guest.img
....
Laden Sie ein Installationsabbild von FreeBSD:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-bootonly.iso
FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
@@ -599,7 +599,7 @@ FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
FreeBSD enthält ein Beispielskript um eine virtuelle Maschine in bhyve auszuführen. Das Skript wird die virtuelle Maschine starten und sie in einer Schleife ausführen. Sollte die virtuelle Maschine abstürzen, wird sie vom Skript automatisch neu gestartet. Das Skript akzeptiert einige Optionen, um die Konfiguration der virtuellen Maschine zu kontrollieren: `-c` bestimmt die Anzahl der virtuellen CPUs, `-m` begrenzt den verfügbaren Speicher des Gastsystems, `-t` bestimmt das verwendete [.filename]#tap#-Gerät, `-d` gibt das zu benutzende Festplattenabbild an, `-i` sagt bhyve dass es von CD booten soll und `-I` bestimmt das CD-Abbild. Der letzte Parameter ist der Name der virtuellen Maschine. Dieses Beispiel startet die virtuelle Maschine im Installationsmodus:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso guestname
....
@@ -608,7 +608,7 @@ Die virtuelle Maschine wird starten und das Installationsprogramm ausführen. Na
Starten Sie die virtuelle Maschine neu. Ein Neustart der virtuellen Maschine wird bhyve beenden, aber da das [.filename]#vmrun.sh#-Skript in einer Schleife läuft, wird bhyve automatisch neu gestartet. Wenn dies passiert, wählen Sie die Option `Reboot` im Bootloader-Menü, um die Schleife zu unterbrechen. Anschließend kann das Gastsystem von der virtuellen Festplatte gestartet werden:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
....
@@ -620,7 +620,7 @@ Um andere Betriebssysteme als FreeBSD zu booten, muss zunächst der Port package
Als nächstes erzeugen Sie eine Datei, die das Gastsystem als virtuelle Festplatte verwenden kann:
-[source,bash]
+[source,shell]
....
# truncate -s 16G linux.img
....
@@ -635,14 +635,14 @@ Der Start einer virtuellen Maschine mit bhyve ist ein zweistufiger Prozess. Zuer
Benutzen Sie package:sysutils/grub2-bhyve[] um den Linux(R)-Kernel vom ISO-Abbild zu laden:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
....
Damit wird grub gestartet. Wenn die Installations-CD eine Datei namens [.filename]#grub.cfg# enthält, wird ein Menü angezeigt. Wenn nicht, müssen die Dateien [.filename]#vmlinuz# und [.filename]#initrd# manuell geladen werden:
-[source,bash]
+[source,shell]
....
grub> ls
(hd0) (cd0) (cd0,msdos1) (host)
@@ -656,7 +656,7 @@ grub> boot
Nun, da der Linux(R)-Kernel geladen ist, kann das Gastsystem gestartet werden:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024M linuxguest
@@ -664,14 +664,14 @@ Nun, da der Linux(R)-Kernel geladen ist, kann das Gastsystem gestartet werden:
Das System wird booten und das Installtionsprogramm starten. Starten Sie die virtuelle Maschine nach der Installation des Betriebssystems neu. Dies führt auch dazu, dass bhyve beendet wird. Die Instanz der virtuellen Maschine muss zerstört werden, bevor sie erneut in Betrieb genommen werden kann:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
Nun kann das Gastsystem direkt von der virtuellen Festplatte gestartet werden. Laden Sie den Kernel:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r hd0,msdos1 -M 1024M linuxguest
grub> ls
@@ -688,14 +688,14 @@ grub> boot
Starten Sie die virtuelle Maschine:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \$ -s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024M linuxguest
....
Linux(R) wird jetzt in der virtuellen Maschine gestartet und präsentiert Ihnen vielleicht einen Anmeldeprompt. Sie können sich anmelden und die virtuelle Maschine benutzen. Wenn Sie fertig sind, starten Sie die virtuelle Maschine neu, um bhyve zu verlassen. Anschließend zerstören Sie die Instanz der virtuellen Maschine:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
@@ -709,7 +709,7 @@ Um die UEFI-Unterstützung in bhyve nutzen zu können, benötigen Sie zuerst die
Mit der Firmware an Ort und Stelle, fügen Sie die Option `-l bootrom,_/pfad/zur/firmware_` zur bhyve-Befehlszeile hinzu. Der eigentliche bhyve-Befehl könnte wie folgt lauten:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -720,7 +720,7 @@ guest
package:sysutils/bhyve-firmware[] enthält auch eine CSM-fähige Firmware, um Gastsysteme ohne UEFI-Unterstützung im alten BIOS-Modus zu booten:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -738,7 +738,7 @@ Unterstützung für den UEFI-GOP Framebuffer kann auch über die Option `-s 29,f
Der daraus resultierende Befehl würde so aussehen:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -756,14 +756,14 @@ Beachten Sie, dass der Framebuffer im BIOS-Modus keine Befehle mehr empfängt, s
Wenn auf dem Host-Rechner ZFS eingerichtet ist, können Sie ZFS-Volumes anstelle eines Festplattenabbilds verwenden. Dies kann erhebliche Leistungsvorteile für das Gastsystem mit sich bringen. Ein ZFS-Volume kann wie folgt erstellt werden:
-[source,bash]
+[source,shell]
....
# zfs create -V16G -o volmode=dev zroot/linuxdisk0
....
Geben Sie das ZFS-Volume beim Start der virtuellen Maschine an:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest
@@ -774,7 +774,7 @@ Geben Sie das ZFS-Volume beim Start der virtuellen Maschine an:
Es ist vorteilhaft, die bhyve-Konsole mit einem Werkzeug wie package:sysutils/tmux[] oder package:sysutils/screen[] zu bedienen. Damit ist es leicht, die Konsole zu verbinden oder zu trennen. Es ist auch möglich, die Konsole als Nullmodem-Gerät zu nutzen, auf das Sie mit `cu` zugreifen können. Laden Sie dazu das [.filename]#nmdm# Kernelmodul und ersetzen Sie `-l com1,stdio` mit `-l com1,/dev/nmdm0A`. Die [.filename]#/dev/nmdm#-Geräte werden bei Bedarf automatisch erstellt, jeweils paarweise, entsprechend den beiden Enden eines Nullmodemkabels ([.filename]#/dev/nmdm0A# und [.filename]#/dev/nmdm0B#). Weitere Informationen finden Sie in man:nmdm[4].
-[source,bash]
+[source,shell]
....
# kldload nmdm
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
@@ -792,7 +792,7 @@ handbook login:
Für jede virtuelle Maschine wird unterhalb von [.filename]#/dev/vmm# ein Gerätename erzeugt. Dadurch kann der Administrator einfach feststellen, welche virtuellen Maschinen zur Zeit ausgeführt werden:
-[source,bash]
+[source,shell]
....
# ls -al /dev/vmm
total 1
@@ -805,7 +805,7 @@ crw------- 1 root wheel 0x1a1 Mar 17 12:19 otherguest
Mit Hilfe von `bhyvectl` kann eine virtuelle Maschine zerstört werden:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=guestname
....
@@ -858,14 +858,14 @@ Benutzer von FreeBSD 11 sollten die Pakete package:emulators/xen-kernel47[] und
Nach der Installation der Xen Pakete müssen die Konfigurationsdateien angepasst werden, um den Host für die Integration von Dom0 vorzubereiten. Ein Eintrag in [.filename]#/etc/sysctl.conf# deaktiviert die Begrenzung für Speicherseiten. Andernfalls lassen sich DomU VMs mit höheren Speicheranforderungen nicht ausführen.
-[source,bash]
+[source,shell]
....
# echo 'vm.max_wired=-1' >> /etc/sysctl.conf
....
Für eine andere speicherbezogene Einstellung muss in [.filename]#/etc/login.conf# die Option `memorylocked` auf `unlimited` gesetzt werden. Ansonsten kann das Erstellen von DomU-Domänen mit der Meldung `Cannot allocate memory` fehlschlagen. Nachdem Sie die Änderung in [.filename]#/etc/login.conf# gemacht haben, müssen Sie `cap_mkdb` ausführen um die Datenbank zu aktualisieren. crossref:security[security-resourcelimits,"Einschränkung von Ressourcen"] enthält hierzu ausführliche Informationen.
-[source,bash]
+[source,shell]
....
# sed -i '' -e 's/memorylocked=64K/memorylocked=unlimited/' /etc/login.conf
# cap_mkdb /etc/login.conf
@@ -873,7 +873,7 @@ Für eine andere speicherbezogene Einstellung muss in [.filename]#/etc/login.con
Fügen Sie einen Eintrag für die Xen(TM) Konsole in [.filename]#/etc/ttys# ein:
-[source,bash]
+[source,shell]
....
# echo 'xc0 "usr/libexec/getty Pc" xterm onifconsole secure' >> /etc/ttys
....
@@ -882,7 +882,7 @@ Dom0 wird durch die Auswahl eines Xen(TM)-Kernels in [.filename]#/boot/loader.co
Benutzen Sie die folgenden Kommandos, wenn Sie die Xen 4.7 Pakete verwenden:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf hw.pci.mcfg=0
# sysrc -f /boot/loader.conf if_tap_load="YES"
@@ -892,7 +892,7 @@ Benutzen Sie die folgenden Kommandos, wenn Sie die Xen 4.7 Pakete verwenden:
Für Xen Version 4.11 oder höher, benutzen Sie stattdessen diese Kommandos:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf if_tap_load="YES"
# sysrc -f /boot/loader.conf xen_kernel="/boot/xen"
@@ -907,14 +907,14 @@ Protokolldateien, die Xen(TM) für die Dom0- und DomU-VMs erstellt, werden in [.
Aktivieren Sie den xencommons Dienst während des Systemstarts:
-[source,bash]
+[source,shell]
....
# sysrc xencommons_enable=yes
....
Diese Einstellungen reichen zwar aus, um ein Dom0-fähiges System zu starten, allerdings fehlt es dann an Netzwerkfunktionalität für die DomU-Rechner. Um dies zu beheben, können Sie eine Netzwerkbrücke über die Netzwerkschnittstelle des Hosts herstellen, die die DomU-VMs für die Verbindung zum Netzwerk benutzen können. Ersetzen Sie _em0_ durch den Namen der Netzwerkschnittstelle des Hosts.
-[source,bash]
+[source,shell]
....
# sysrc cloned_interfaces="bridge0"
# sysrc ifconfig_bridge0="addm em0 SYNCDHCP"
@@ -923,14 +923,14 @@ Diese Einstellungen reichen zwar aus, um ein Dom0-fähiges System zu starten, al
Starten Sie den Host neu, um den Xen(TM)-Kernel zu laden und den Dom0 zu starten.
-[source,bash]
+[source,shell]
....
# reboot
....
Nach dem erfolgreichen Booten des Xen(TM)-Kernels und der Anmeldung am System wird das Xen(TM)-Werkzeug `xl` verwendet, um Informationen über die Domänen anzuzeigen.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -944,21 +944,21 @@ Die Ausgabe bestätigt, dass der Dom0 (auch Domain-0 genannt) die ID `0` hat und
Unpriviligierte Domänen bestehen aus einer Konfigurationsdatei und virtuellen oder physikalischen Festplatten. Der virtuelle Plattenspeicher für die DomU kann aus Dateien bestehen, die mit man:truncate[1] erstellt wurden, oder ZFS Volumes wie in crossref:zfs[zfs-zfs-volume,“Volumes erstellen und zerstören”] beschrieben. In diesem Beispiel wird ein 20 GB Volume verwendet. Eine VM wird mit dem ZFS Volume erstellt, ein FreeBSD ISO-Abbild, 1 GB RAM und zwei virtuelle CPUs. Das ISO-Abbild mit den Installationsdateien wird mit man:fetch[1] heruntergeladen und lokal in der Datei [.filename]#freebsd.iso# gespeichert.
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-bootonly.iso -o freebsd.iso
....
Ein ZFS Volume von 20 GB namens [.filename]#xendisk0# wird erstellt und dient der VM als Festplatte.
-[source,bash]
+[source,shell]
....
# zfs create -V20G -o volmode=dev zroot/xendisk0
....
Die neue DomU Gast-VM wird in einer Datei definiert. Einige spezifische Einstellungen wie Name, Tastaturbelegung und VNC-Verbindungsdetails werden ebenfalls konfiguriert. Für dieses Beispiel enthält die folgende [.filename]#freebsd.cfg# eine minimale DomU-Konfiguration:
-[source,bash]
+[source,shell]
....
# cat freebsd.cfg
builder = "hvm" <.>
@@ -996,7 +996,7 @@ Erklärung der einzelnen Zeilen:
Nachdem die Konfigurationsdatei mit allen notwendigen Optionen erstellt wurde, wird die DomU erstellt, indem die Datei als Parameter an `xl` übergeben wird.
-[source,bash]
+[source,shell]
....
# xl create freebsd.cfg
....
@@ -1008,7 +1008,7 @@ Jedes mal, wenn die Dom0 neu gestartet wird, muss die Konfigurationsdatei nochma
Die Ausgabe von `xl list` bestätigt, dass die DomU erstellt wurde.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -1018,7 +1018,7 @@ freebsd 1 1024 1 -b---- 663.9
Um die Installation des Basis-Betriebssystems zu beginnen, starten Sie den VNC-Client und verbinden Sie sich mit Netzwerkadresse des Hosts oder mit der IP-Adresse, die auf der Zeile `vnclisten` in [.filename]#freebsd.cfg# konfiguriert wurde. Nachdem das Betriebssystem installiert ist, fahren Sie die DomU herunter und trennen den VNC-Viewer. Bearbeiten Sie dann die [.filename]#freebsd.cfg#, entfernen Sie die Zeile mit der `cdrom` Definiton, oder kommentieren Sie die Zeile mit `#` aus. Um diese neue Konfiguration zu laden, ist es notwendig, die alte DomU mit `xl` zu zerstören, indem Sie entweder den Namen oder die ID als Parameter übergeben. Danach kann die DomU mit der angepassten [.filename]##freebsd.cfg## neu erstellt werden.
-[source,bash]
+[source,shell]
....
# xl destroy freebsd
# xl create freebsd.cfg
@@ -1044,7 +1044,7 @@ Um Probleme beim Booten des Hosts zu beheben, benötigen Sie wahrscheinlich ein
Um Probleme zu identifizieren, sollte FreeBSD beim Booten ebenfalls detaillierte Informationen anzeigen. Dies können Sie wie folgt aktivieren:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf boot_verbose="YES"
....
@@ -1058,7 +1058,7 @@ Die folgenden Informationen können helfen, Probleme beim Erstellen von Gastsyst
Die häufigste Ursache für Fehler beim Erstellen von Gastsystemen ist der `xl` Befehl, der einen Fehler generiert und mit einem Rückgabewert ungleich 0 endet. Wenn der angezeigte Fehler nicht ausreicht, um das Problem zu identifizieren, kann auch eine umfangreichere Ausgabe von `xl` erhalten werden, indem die Option `v` wiederholt verwendet wird.
-[source,bash]
+[source,shell]
....
# xl -vvv create freebsd.cfg
Parsing config from freebsd.cfg
diff --git a/documentation/content/de/books/handbook/x11/_index.adoc b/documentation/content/de/books/handbook/x11/_index.adoc
index d12510b555..9c45f1f38b 100644
--- a/documentation/content/de/books/handbook/x11/_index.adoc
+++ b/documentation/content/de/books/handbook/x11/_index.adoc
@@ -106,14 +106,14 @@ In FreeBSD kann Xorg als Paket oder Port installiert werden.
Die Installation des Pakets ist zwar schneller, dafür können weniger Optionen angepasst werden:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
Die nachstehenden Kommandos bauen und installieren Xorg aus der Ports-Sammlung:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -140,7 +140,7 @@ Grafikkarten, Monitore und Eingabegeräte werden automatisch erkannt und müssen
[.procedure]
. Wenn Xorg bereits zuvor auf diesem Computer verwendet wurde, verschieben oder entfernen Sie alle vorhandenen Konfigurationsdateien:
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -148,14 +148,14 @@ Grafikkarten, Monitore und Eingabegeräte werden automatisch erkannt und müssen
. Fügen Sie die Benutzer, die Xorg verwenden, zur Gruppe `video` oder `wheel` hinzu, um die 3D-Beschleunigung zu aktivieren. Um den Benutzer _jru_ in eine der verfügbaren Gruppen hinzuzufügen:
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
. Der Window-Manager `twm` ist standardmäßig enthalten und wird auch gestartet, wenn Xorg startet:
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -167,7 +167,7 @@ Grafikkarten, Monitore und Eingabegeräte werden automatisch erkannt und müssen
Um die 3D-Beschleunigung für Grafikkarten zu ermöglichen, ist der Zugriff auf [.filename]#/dev/dri# notwendig. In der Regel ist es am einfachsten, die Benutzer zur Gruppe `video` oder `wheel` hinzuzufügen. In diesem Beispiel wird man:pw[8] verwendet, um den Benutzer _slurms_ zu der Gruppe `video` hinzuzufügen, bzw. zur Gruppe `wheel`, falls die Gruppe `video` nicht existiert:
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -357,7 +357,7 @@ Weitere vom Monitor unterstützte Auflösungen, können in der Konfigurationsdat
man:xrandr[1] benutzen::
Führen Sie man:xrandr[1] ohne Parameter aus, um eine Liste von Video-Ausgängen und erkannten Monitor-Modi zu sehen:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -380,7 +380,7 @@ Die Auflistung zeigt, dass der `DVI-0` Ausgang benutzt wird, um eine Bildschirma
+
Die anderen Anzeigemodi können mit man:xrandr[1] ausgewählt werden. Um beispielsweise auf 1280x1024 bei 60 Hz umzuschalten:
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -389,7 +389,7 @@ Häufig wird für einen Videoprojektor der externe Videoausgang eines Notebooks
+
Die Typen und Anzahl der Videoanschlüsse variiert zwischen den Geräten und auch die Ausgabe variiert von Treiber zu Treiber. Was für den einen Treiber `HDMI-1` ist, nennt ein anderer Treiber vielleicht `HDMI1`. Führen Sie daher zunächst man:xrandr[1] aus, um alle verfügbaren Anschlüsse aufzulisten.
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -415,7 +415,7 @@ Vier Ausgänge wurden gefunden: das integrierte Panel `LVDS1`, sowie die externe
+
Der Videoprojektor wurde am Ausgang `VGA1` angeschlossen. man:xrandr[1] wird nun verwendet, um diese Ausgabe auf die native Auflösung des Projektors einzustellen und den zusätzlichen Platz auf der rechten Seite des Desktops hinzuzufügen:
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -581,14 +581,14 @@ Eine Konfigurationsdatei kann, basierend auf der von Xorg erfassten Hardware erz
Erzeugung einer [.filename]#xorg.conf#:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
Die Konfigurationsdatei wird in [.filename]#/root/xorg.conf.new# gespeichert. Machen Sie alle gewünschten Änderungen an dieser Datei. Danach testen Sie die Datei mit:
-[source,bash]
+[source,shell]
....
# Xorg -retro -config /root/xorg.conf.new
....
@@ -605,14 +605,14 @@ Die Schriftarten, die mit Xorg ausgeliefert werden, eignen sich ganz und gar nic
Die Type 1 Schriftarten lassen sich als Paket wie folgt installieren:
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
Alternativ können die Schriftarten aus der Ports-Sammlung gebaut und installiert werden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -627,7 +627,7 @@ FontPath "/usr/local/shared/fonts/urwfonts/"
Alternativ kann in der X-Sitzung das folgende Kommando abgesetzt werden:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/urwfonts
% xset fp rehash
@@ -647,14 +647,14 @@ Load "freetype"
Erstellen Sie ein Verzeichnis für die TrueType(R)-Schriftarten (beispielsweise [.filename]#/usr/local/shared/fonts/TrueType#) und kopieren Sie alle Schriftarten dorthin. Beachten Sie, dass die Schriftarten für Xorg im UNIX(R)/MS-DOS(R)/Windows(R)-Format vorliegen müssen und nicht direkt von einem Apple(R) Mac(R) übernommen werden können. Sobald die Dateien in das Verzeichnis kopiert wurden, verwenden Sie mkfontscale um [.filename]#fonts.dir# zu erstellen, damit X weiß, dass diese neuen Dateien installiert wurden. `mkfontscale` kann als Paket installiert werden:
-[source,bash]
+[source,shell]
....
# pkg install mkfontscale
....
Erstellen Sie dann einen Index der Schriftarten für X:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/fonts/TrueType
# mkfontscale
@@ -662,7 +662,7 @@ Erstellen Sie dann einen Index der Schriftarten für X:
Geben Sie dem System das TrueType(R)-Verzeichnis, wie im <<type1>> beschrieben, bekannt:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/local/shared/fonts/TrueType
# xset fp rehash
@@ -697,7 +697,7 @@ Wie vorher erwähnt, stehen schon alle Schriftarten in [.filename]#/usr/local/sh
Wenn Sie neue Schriftarten hinzugefügt haben, müssen Sie den Schriftarten-Cache neu aufbauen:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -876,14 +876,14 @@ GNOME ist eine benutzerfreundliche Oberfläche. Es besitzt eine Leiste, mit der
Diese grafische Oberfläche kann als Paket installiert werden:
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
Um GNOME stattdessen aus der Ports-Sammlung zu übersetzen, nutzen Sie das folgende Kommando. GNOME ist eine große Anwendung, die sogar auf einem schnellen Computer einige Zeit zum Übersetzten benötigt.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -922,14 +922,14 @@ GDM wird nun automatisch gestartet, wenn das System hochfährt.
GNOME kann alternativ auch von der Kommandozeile gestartet werden, wenn eine entsprechend konfigurierte [.filename]#~/.xinitrc# vorliegt. Existiert diese Datei bereits, ersetzen Sie den Aufruf des Window-Managers durch /usr/local/bin/gnome-session. Wenn [.filename]#.xinitrc# nicht existiert, erstellen Sie die Datei mit folgendem Befehl:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
Eine dritte Methode ist, XDM als Display-Manager zu verwenden. In diesem Fall erstellen Sie eine ausführbare [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -941,14 +941,14 @@ KDE ist eine weitere, leicht zu benutzende Desktop-Umgebung. Dieser Desktop biet
Um KDE als Paket zu installieren, geben Sie ein:
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
Um KDE stattdessen aus dem Quellcode zu übersetzen, verwenden Sie das folgende Kommando. Bei der Installation wird ein Menü zur Auswahl der Komponenten angezeigt. KDE ist eine große Anwendung, die sogar auf einem schnellen Computer einige Zeit zum Übersetzen benötigt.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -971,7 +971,7 @@ hald_enable="YES"
Seit KDE Plasma 5 wird der KDE Display-Manager KDM nicht weiterentwickelt. Eine mögliche Alternative ist SDDM. Sie können das Paket wie folgt installieren:
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -992,7 +992,7 @@ exec ck-launch-session startplasma-x11
Eine dritte Möglichkeit ist KDE über XDM zu starten. Um dies zu tun, erstellen Sie eine ausführbare [.filename]#~/.xsession# wie folgt:
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startkde" > ~/.xsession
....
@@ -1006,14 +1006,14 @@ Xfce ist eine Desktop-Umgebung, basierend auf den von GNOME verwendeten GTK+-Bib
Um das Paket Xfce zu installieren, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
Um stattdessen den Port zu übersetzen:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1028,14 +1028,14 @@ dbus_enable="YES"
Im Gegensatz zu GNOME oder KDE, besitzt Xfce keinen eigenen Login-Manager. Damit Xfce von der Kommandozeile mit `startx` gestartet werden kann, muss zunächst [.filename]#~/.xinitrc# mit diesem Befehl erstellt werden:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
Alternativ dazu kann XDM verwendet werden. Um diese Methode zu konfigurieren, erstellen Sie eine ausführbare [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1058,7 +1058,7 @@ Nachdem der richtige Treiber für die Karte ermittelt wurde, kann er wie jedes a
Um beispielsweise den aktuellsten Treiber zu installieren:
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1159,7 +1159,7 @@ Section "Module"
Die vorangegangenen Einstellungen können automatisch mit package:x11/nvidia-xconfig[] erledigt werden, indem Sie folgende Kommandos als root ausführen:
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1171,14 +1171,14 @@ Die vorangegangenen Einstellungen können automatisch mit package:x11/nvidia-xco
Die Installation von Compiz Fusion ist so einfach wie die Installation jedes anderen Pakets:
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
Wenn die Installation abgeschlossen ist, starten Sie (als normaler Benutzer) den grafischen Desktop mit folgendem Befehl:
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp &
% emerald --replace &
@@ -1197,7 +1197,7 @@ emerald --replace &
Speichern Sie die Datei in Ihrem Heimatverzeichnis, beispielsweise als [.filename]#start-compiz# und machen Sie die Datei ausführbar:
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1206,7 +1206,7 @@ Benutzen Sie dann die grafische Oberfläche, um das Skript zu [.guimenuitem]#Aut
Um die gewünschten Effekte und Einstellungen zu konfigurieren, starten Sie (wieder als normaler Benutzer) den Compiz Config Einstellungs-Manager:
-[source,bash]
+[source,shell]
....
% ccsm
....
@@ -1253,7 +1253,7 @@ Sie müssen Ihren Computer neu starten, um hald zu zwingen, diese Datei einzules
Es ist auch möglich, die gleiche Konfiguration von einem X-Terminal oder einem Skript über den folgenden Befehl heraus zu tätigen:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -1311,7 +1311,7 @@ Bei der Fehlersuche stehen Ihnen die Protokolldateien von Xorg zur Verfügung. D
Wenn alles funktioniert, installieren Sie die Datei an einen Ort, an dem man:Xorg[1] sie finden kann. Typischerweise ist dies [.filename]#/etc/X11/xorg.conf# oder [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -1399,7 +1399,7 @@ Wahrscheinlich fehlt eine Einstellung in [.filename]#/etc/X11/xorg.conf#. Überp
Wenn Sie [.filename]#/var/log/Xorg.0.log# durchsuchen, finden Sie wahrscheinlich Fehlermeldungen, die während des Starts von X ausgegeben werden. Die häufigste Meldung ist:
-[source,bash]
+[source,shell]
....
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
diff --git a/documentation/content/de/books/handbook/zfs/_index.adoc b/documentation/content/de/books/handbook/zfs/_index.adoc
index 705b4cf325..1d4a5e5fe5 100644
--- a/documentation/content/de/books/handbook/zfs/_index.adoc
+++ b/documentation/content/de/books/handbook/zfs/_index.adoc
@@ -73,7 +73,7 @@ zfs_enable="YES"
Starten Sie dann den Dienst:
-[source,bash]
+[source,shell]
....
# service zfs start
....
@@ -85,14 +85,14 @@ Die Beispiele in diesem Abschnitt gehen von drei SCSI-Platten mit den Gerätenam
Um einen einfachen, nicht-redundanten Pool mit einem einzigen Gerät anzulegen, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Um den neuen Pool anzuzeigen, prüfen Sie die Ausgabe von `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -104,7 +104,7 @@ example 17547136 0 17547136 0% /example
Diese Ausgabe zeigt, dass der `example`-Pool erstellt und eingehängt wurde. Er ist nun als Dateisystem verfügbar. Dateien können darauf angelegt werden und Anwender können sich den Inhalt ansehen:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -118,7 +118,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Allerdings nutzt dieser Pool noch keine der Vorteile von ZFS. Um ein Dataset auf diesem Pool mit aktivierter Komprimierung zu erzeugen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -128,14 +128,14 @@ Das `example/compressed`-Dataset ist nun ein komprimiertes ZFS-Dateisystem. Vers
Deaktivieren lässt sich die Komprimierung durch:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Um ein Dateisystem abzuhängen, verwenden Sie `zfs umount` und überprüfen Sie dies anschließend mit `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -148,7 +148,7 @@ example 17547008 0 17547008 0% /example
Um das Dateisystem wieder einzubinden und erneut verfügbar zu machen, verwenden Sie `zfs mount` und prüfen Sie erneut mit `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -162,7 +162,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
Den Pool und die Dateisysteme können Sie auch über die Ausgabe von `mount` prüfen:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -174,7 +174,7 @@ example/compressed on /example/compressed (zfs, local)
Nach der Erstellung können ZFS-Datasets wie jedes andere Dateisystem verwendet werden. Jedoch sind jede Menge andere Besonderheiten verfügbar, die individuell auf Dataset-Basis eingestellt sein können. Im Beispiel unten wird ein neues Dateisystem namens `data` angelegt. Wichtige Dateien werden dort abgespeichert, deshalb wird es so konfiguriert, dass zwei Kopien jedes Datenblocks vorgehalten werden.
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -182,7 +182,7 @@ Nach der Erstellung können ZFS-Datasets wie jedes andere Dateisystem verwendet
Es ist jetzt möglich, den Speicherplatzverbrauch der Daten durch die Eingabe von `df` zu sehen:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -198,7 +198,7 @@ Sie haben vermutlich bemerkt, dass jedes Dateisystem auf dem Pool die gleiche Me
Um das Dateisystem und anschließend den Pool zu zerstören, wenn dieser nicht mehr benötigt wird, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -212,7 +212,7 @@ Platten fallen aus. Eine Methode, um Datenverlust durch Festplattenausfall zu ve
Dieses Beispiel erstellt einen RAID-Z-Pool, indem es die Platten angibt, die dem Pool hinzugefügt werden sollen:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -224,14 +224,14 @@ Sun(TM) empfiehlt, dass die Anzahl der Geräte in einer RAID-Z Konfiguration zwi
Das vorherige Beispiel erstellte einen ZPool namens `storage`. Dieses Beispiel erzeugt ein neues Dateisystem, genannt `home`, in diesem Pool:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Komprimierung und das Vorhalten von mehreren Kopien von Dateien und Verzeichnissen kann aktiviert werden:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -239,7 +239,7 @@ Komprimierung und das Vorhalten von mehreren Kopien von Dateien und Verzeichniss
Um dies als das neue Heimatverzeichnis für Anwender zu setzen, kopieren Sie die Benutzerdaten in dieses Verzeichnis und erstellen passende symbolische Verknüpfungen:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -251,7 +251,7 @@ Daten von Anwendern werden nun auf dem frisch erstellten [.filename]#/storage/ho
Versuchen Sie, einen Dateisystemschnappschuss anzulegen, den Sie später wieder zurückrollen können:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
@@ -260,35 +260,35 @@ Schnappschüsse können nur auf einem Dateisystem angelegt werden, nicht auf ein
Das Zeichen `@` ist der Trenner zwischen dem Dateisystem- oder dem Volumennamen. Wenn ein wichtiges Verzeichnis aus Versehen gelöscht wurde, kann das Dateisystem gesichert und dann zu einem früheren Schnappschuss zurückgerollt werden, in welchem das Verzeichnis noch existiert:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Um all verfügbaren Schnappschüsse aufzulisten, geben Sie `ls` im Verzeichnis [.filename]#.zfs/snapshot# dieses Dateisystems ein. Beispielsweise lässt sich der zuvor angelegte Schnappschuss wie folgt anzeigen:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
Es ist möglich, ein Skript zu schreiben, um regelmäßig Schnappschüsse von Benutzerdaten anzufertigen. Allerdings verbrauchen Schnappschüsse über lange Zeit eine große Menge an Speicherplatz. Der zuvor angelegte Schnappschuss kann durch folgendes Kommando wieder entfernt werden:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Nach erfolgreichen Tests kann [.filename]#/storage/home# zum echten [.filename]#/home#-Verzeichnis werden, mittels:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Prüfen Sie mit `df` und `mount`, um zu bestätigen, dass das System das Dateisystem nun als [.filename]#/home# verwendet:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -317,21 +317,21 @@ daily_status_zfs_enable="YES"
Jedes Software-RAID besitzt eine Methode, um den Zustand (`state`) zu überprüfen. Der Status von RAID-Z Geräten wird mit diesem Befehl angezeigt:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Wenn alle Pools <<zfs-term-online,Online>> sind und alles normal ist, zeigt die Meldung folgendes an:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Wenn es ein Problem gibt, womöglich ist eine Platte im Zustand <<zfs-term-offline,Offline>>, dann wird der Poolzustand ähnlich wie dieser aussehen:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -355,21 +355,21 @@ errors: No known data errors
Dies zeigt an, dass das Gerät zuvor vom Administrator mit diesem Befehl abgeschaltet wurde:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Jetzt kann das System heruntergefahren werden, um [.filename]#da1# zu ersetzen. Wenn das System wieder eingeschaltet wird, kann die fehlerhafte Platte im Pool ersetzt werden:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
Von diesem Punkt an kann der Status erneut geprüft werden. Dieses Mal ohne die Option `-x`, damit alle Pools angezeigt werden:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -402,14 +402,14 @@ Prüfsummen können deaktiviert werden, dies wird jedoch _nicht_ empfohlen! Prü
Prüfsummenverifikation ist unter der Bezeichnung _scrubbing_ bekannt. Verifizieren Sie die Integrität der Daten des `storage`-Pools mit diesem Befehl:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
Die Laufzeit einer Überprüfung hängt ab von der Menge an Daten, die gespeichert sind. Größere Mengen an Daten benötigen proportional mehr Zeit zum überprüfen. Diese Überprüfungen sind sehr I/O-intensiv und es kann auch nur eine Überprüfung zur gleichen Zeit durchgeführt werden. Nachdem eine Prüfung beendet ist, kann der Status mit dem Unterkommando `status` angezeigt werden:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -443,7 +443,7 @@ Einen ZFS-Pool (_zpool_) anzulegen beinhaltet das Treffen von einer Reihe von En
Erstellen eines einfachen gespiegelten Pools:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2
# zpool status
@@ -463,7 +463,7 @@ errors: No known data errors
Mehrere vdevs können gleichzeitig angelegt werden. Geben Sie zusätzliche Gruppen von Platten, getrennt durch das vdev-Typ Schlüsselwort, in diesem Beispiel `mirror`, an:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2 mirror /dev/ada3 /dev/ada4
pool: mypool
@@ -487,7 +487,7 @@ Pools lassen sich auch durch die Angabe von Partitionen anstatt von ganzen Platt
Erstellen eines <<zfs-term-vdev-raidz,RAID-Z2>>-Pools mit Partitionen:
-[source,bash]
+[source,shell]
....
# zpool create mypool raidz2 /dev/ada0p3 /dev/ada1p3 /dev/ada2p3 /dev/ada3p3 /dev/ada4p3 /dev/ada5p3
# zpool status
@@ -520,7 +520,7 @@ Ein Pool mit nur einer einzigen Platte besitzt keine Redundanz. Datenverfälschu
Umwandeln eines (stripe) vdevs namens _ada0p3_ mit einer einzelnen Platte zu einem Spiegel durch das Einhängen von _ada1p3_:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -586,7 +586,7 @@ Wenn zusätzliche Geräte zu einem Pool, von dem gebootet wird, hinzugefügt wer
Einbinden einer zweiten Spiegelgruppe ([.filename]#ada2p3# und [.filename]#ada3p3#) zu einem bestehenden Spiegel:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -628,7 +628,7 @@ Momentan können vdevs nicht von einem Pool entfernt und Platten nur von einem S
Entfernen einer Platte aus einem Spiegel mit drei Platten:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -665,7 +665,7 @@ errors: No known data errors
Der Status eines Pools ist wichtig. Wenn ein Gerät sich abschaltet oder ein Lese-, Schreib- oder Prüfsummenfehler festgestellt wird, wird der dazugehörige Fehlerzähler erhöht. Die `status`-Ausgabe zeigt die Konfiguration und den Status von jedem Gerät im Pool und den Gesamtstatus des Pools. Aktionen, die durchgeführt werden sollten und Details zum letzten <<zfs-zpool-scrub,`scrub`>> werden ebenfalls angezeigt.
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -698,7 +698,7 @@ Es gibt eine Reihe von Situationen, in denen es nötig ist, eine Platte mit eine
Ersetzen eines funktionierenden Geräts in einem Pool:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -770,7 +770,7 @@ Wenn eine defekte Platte ausgewechselt wird, wird der Name dieser defekten Platt
Ersetzen einer defekten Platte durch `zpool replace`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -830,7 +830,7 @@ errors: No known data errors
Es wird empfohlen, dass Pools regelmäßig geprüft (<<zfs-term-scrub,scrubbed>>) werden, idealerweise mindestens einmal pro Monat. Der `scrub`-Vorgang ist beansprucht die Platte sehr und reduziert die Geschwindigkeit während er läuft. Vermeiden Sie Zeiten, in denen großer Bedarf besteht, wenn Sie `scrub` starten oder benutzen Sie <<zfs-advanced-tuning-scrub_delay,`vfs.zfs.scrub_delay`>>, um die relative Priorität vom `scrub` einzustellen, um zu verhindern, dass es mit anderen Aufgaben kollidiert.
-[source,bash]
+[source,shell]
....
# zpool scrub mypool
# zpool status
@@ -863,7 +863,7 @@ Die Prüfsummen, welche zusammen mit den Datenblöcken gespeichert werden, ermö
Das nächste Beispiel demonstriert dieses Verhalten zur Selbstheilung. Ein gespiegelter Pool mit den beiden Platten [.filename]#/dev/ada0# und [.filename]#/dev/ada1# wird angelegt.
-[source,bash]
+[source,shell]
....
# zpool create healer mirror /dev/ada0 /dev/ada1
# zpool status healer
@@ -886,7 +886,7 @@ healer 960M 92.5K 960M - - 0% 0% 1.00x ONLINE -
Ein paar wichtige Daten, die es vor Datenfehlern mittels der Selbstheilungsfunktion zu schützen gilt, werden auf den Pool kopiert. Eine Prüfsumme wird zum späteren Vergleich berechnet.
-[source,bash]
+[source,shell]
....
# cp /some/important/data /healer
# zfs list
@@ -905,7 +905,7 @@ Datenfehler werden durch das Schreiben von zufälligen Daten an den Anfang einer
Dies ist eine gefährliche Operation, die wichtige Daten zerstören kann. Es wird hier nur zu Demonstrationszwecken gezeigt und sollte nicht während des normalen Betriebs des Pools versucht werden. Dieses vorsätzliche Korrumpierungsbeispiel sollte auf gar keinen Fall auf einer Platte mit einem anderen Dateisystem durchgeführt werden. Verwenden Sie keine anderen Gerätenamen als diejenigen, die hier gezeigt werden, die Teil des Pools sind. Stellen Sie sicher, dass die passende Sicherungen angefertigt haben, bevor Sie dieses Kommando ausführen!
====
-[source,bash]
+[source,shell]
....
# zpool export healer
# dd if=/dev/random of=/dev/ada1 bs=1m count=200
@@ -917,7 +917,7 @@ Dies ist eine gefährliche Operation, die wichtige Daten zerstören kann. Es wir
Der Status des Pools zeigt an, dass bei einem Gerät ein Fehler aufgetreten ist. Wichtig zu wissen ist, dass Anwendungen, die Daten vom Pool lesen keine ungültigen Daten erhalten haben. ZFS lieferte Daten vom [.filename]#ada0#-Gerät mit der korrekten Prüfsumme aus. Das Gerät mit der fehlerhaften Prüfsumme kann sehr einfach gefunden werden, da die Spalte `CKSUM` einen Wert ungleich Null enthält.
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -941,7 +941,7 @@ errors: No known data errors
Der Fehler wurde erkannt und korrigiert durch die vorhandene Redundanz, welche aus der nicht betroffenen Platte [.filename]#ada0# des Spiegels gewonnen wurde. Ein Vergleich der Prüfsumme mit dem Original wird zeigen, ob sich der Pool wieder in einem konsistenten Zustand befindet.
-[source,bash]
+[source,shell]
....
# sha1 /healer >> checksum.txt
# cat checksum.txt
@@ -951,7 +951,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
Die beiden Prüfsummen, die vor und nach der vorsätzlichen Korrumpierung der Daten des Pools angelegt wurden, stimmen immer noch überein. Dies zeigt wie ZFS in der Lage ist, Fehler automatisch zu erkennen und zu korrigieren, wenn die Prüfsummen nicht übereinstimmen. Beachten Sie, dass dies nur möglich ist, wenn genug Redundanz im Pool vorhanden ist. Ein Pool, der nur aus einer einzigen Platte besteht besitzt keine Selbstheilungsfunktion. Dies ist auch der Grund warum Prüfsummen bei ZFS so wichtig sind und deshalb aus keinem Grund deaktiviert werden sollten. Kein man:fsck[8] ist nötig, um diese Fehler zu erkennen und zu korrigieren und der Pool war während der gesamten Zeit, in der das Problem bestand, verfügbar. Eine scrub-Aktion ist nun nötig, um die fehlerhaften Daten auf [.filename]#ada1# zu beheben.
-[source,bash]
+[source,shell]
....
# zpool scrub healer
# zpool status healer
@@ -978,7 +978,7 @@ errors: No known data errors
Durch das scrub werden die Daten von [.filename]#ada0# gelesen und alle Daten mit einer falschen durch diejenigen mit der richtigen Prüfsumme auf [.filename]#ada1# ersetzt. Dies wird durch die Ausgabe `(repairing)` des Kommandos `zpool status` angezeigt. Nachdem die Operation abgeschlossen ist, ändert sich der Poolstatus zu:
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -1002,7 +1002,7 @@ errors: No known data errors
Nach der scrub-Operation und der anschliessenden Synchronisation der Daten von [.filename]#ada0# nach [.filename]#ada1#, kann die Fehlermeldung vom Poolstatus durch die Eingabe von `zpool clear`<<zfs-zpool-clear,bereinigt>> werden.
-[source,bash]
+[source,shell]
....
# zpool clear healer
# zpool status healer
@@ -1036,7 +1036,7 @@ Pools werden _exportiert_ bevor diese an ein anderes System angeschlossen werden
Einen nichtverwendeten Pool exportieren:
-[source,bash]
+[source,shell]
....
# zpool export mypool
....
@@ -1045,7 +1045,7 @@ Beim Importieren eines Pool werden auch automatisch alle Datasets eingehängt. D
Alle zum Import verfügbaren Pools auflisten:
-[source,bash]
+[source,shell]
....
# zpool import
pool: mypool
@@ -1060,7 +1060,7 @@ Alle zum Import verfügbaren Pools auflisten:
Den Pool mit einem anderen Wurzelverzeichnis importieren:
-[source,bash]
+[source,shell]
....
# zpool import -o altroot=/mnt mypool
# zfs list
@@ -1076,7 +1076,7 @@ Nachdem FreeBSD aktualisiert wurde oder wenn der Pool von einem anderen System,
Aktualisierung eines v28-Pools, um `Feature Flags` zu unterstützen:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1125,7 +1125,7 @@ Die neueren Eigenschaften von ZFS werden nicht verfügbar sein, bis `zpool upgra
Einen Pool um zusätzliche Feature Flags erweitern:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1183,14 +1183,14 @@ Der Bootcode muss auf Systemen, die von dem Pool starten, aktualisiert werden, u
Benutzen Sie für GPT den folgenden Befehl:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
....
Für Systeme, die EFI zum Booten benutzen, führen Sie folgenden Befehl aus:
-[source,bash]
+[source,shell]
....
# gpart bootcode -p /boot/boot1.efifat -i 1 ada1
....
@@ -1203,7 +1203,7 @@ Installieren Sie den Bootcode auf allen bootfähigen Platten im Pool. Lesen Sie
Befehle, die den Pool in irgendeiner Form verändern, werden aufgezeichnet. Diese Befehle beinhalten das Erstellen von Datasets, verändern von Eigenschaften oder das Ersetzen einer Platte. Diese Historie ist nützlich um nachzuvollziehen, wie ein Pool aufgebaut ist und welcher Benutzer eine bestimmte Aktion wann und wie getätigt hat. Die aufgezeichnete Historie wird nicht in einer Logdatei festgehalten, sondern ist Teil des Pools selbst. Das Kommando zum darstellen dieser Historie lautet passenderweise `zpool history`:
-[source,bash]
+[source,shell]
....
# zpool history
History for 'tank':
@@ -1217,7 +1217,7 @@ Die Ausgabe zeigt `zpool` und `zfs`-Befehle, die ausgeführt wurden zusammen mit
Der Befehl `zpool history` kann sogar noch mehr Informationen ausgeben, wenn die Optionen `-i` oder `-l` angegeben werden. Durch `-i` zeigt ZFS vom Benutzer eingegebene, als auch interne Ereignisse an.
-[source,bash]
+[source,shell]
....
# zpool history -i
History for 'tank':
@@ -1232,7 +1232,7 @@ History for 'tank':
Weitere Details lassen sich durch die Angabe von `-l` entlocken. Historische Einträge werden in einem langen Format ausgegeben, einschließlich Informationen wie der Name des Benutzers, welcher das Kommando eingegeben hat und der Hostname, auf dem die Änderung erfolgte.
-[source,bash]
+[source,shell]
....
# zpool history -l
History for 'tank':
@@ -1251,7 +1251,7 @@ Beide Optionen für `zpool history` lassen sich auch kombinieren, um die meisten
Ein eingebautes Überwachungssystem kann I/O-Statistiken in Echtzeit liefern. Es zeigt die Menge von freiem und belegtem Speicherplatz auf dem Pool an, wieviele Lese- und Schreiboperationen pro Sekunde durchgeführt werden und die aktuell verwendete I/O-Bandbreite. Standardmäßig werden alle Pools in einem System überwacht und angezeigt. Ein Poolname kann angegeben werden, um die Anzeige auf diesen Pool zu beschränken. Ein einfaches Beispiel:
-[source,bash]
+[source,shell]
....
# zpool iostat
capacity operations bundwidth
@@ -1264,7 +1264,7 @@ Um kontinuierlich die I/O-Aktivität zu überprüfen, kann eine Zahl als letzter
Noch mehr Informationen zu I/O-Statistiken können durch Angabe der Option `-v` angezeigt werden. Jedes Gerät im Pool wird dann mit einer eigenen Statistikzeile aufgeführt. Dies ist hilfreich um zu sehen, wieviele Lese- und Schreiboperationen von jedem Gerät durchgeführt werden und kann bei der Diagnose eines langsamen Geräts, das den Pool ausbremst, hilfreich sein. Dieses Beispiel zeigt einen gespiegelten Pool mit zwei Geräten:
-[source,bash]
+[source,shell]
....
# zpool iostat -v
capacity operations bundwidth
@@ -1294,7 +1294,7 @@ Anders als in traditionellen Festplatten- und Volumenmanagern wird der Plattenpl
Erstellen eines neuen Datasets und aktivieren von <<zfs-term-compression-lz4,LZ4 Komprimierung>>:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1334,7 +1334,7 @@ Ein Dataset zu zerstören ist viel schneller, als alle Dateien zu löschen, die
Zerstören des zuvor angelegten Datasets:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1379,7 +1379,7 @@ Ein Volume ist ein spezieller Typ von Dataset. Anstatt dass es als Dateisystem e
Ein Volume kann mit einem beliebigen Dateisystem formatiert werden oder auch ohne ein Dateisystem als reiner Datenspeicher fungieren. Für den Benutzer erscheint ein Volume als eine gewöhnliche Platte. Indem gewöhnliche Dateisysteme auf diesen _zvols_ angelegt werden, ist es möglich, diese mit Eigenschaften auszustatten, welche diese normalerweise nicht besitzen. Beispielsweise wird durch Verwendung der Komprimierungseigenschaft auf einem 250 MB Volume das Erstellen eines komprimierten FAT Dateisystems möglich.
-[source,bash]
+[source,shell]
....
# zfs create -V 250m -o compression=on tank/fat32
# zfs list tank
@@ -1403,7 +1403,7 @@ Der Name eines Datasets lässt sich durch `zfs rename` ändern. Das Eltern-Datas
Ein Dataset umbenennen und unter einem anderen Elterndataset verschieben:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1442,7 +1442,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
Schnappschüsse können auf diese Weise ebenfalls umbenannt werden. Aufgrund der Art von Schnappschüssen können diese nicht unter einem anderen Elterndataset eingehängt werden. Um einen rekursiven Schnappschuss umzubenennen, geben Sie die Option `-r` an, um alle Schnappschüsse mit dem gleichen Namen im Kind-Dataset ebenfalls umzubenennen.
-[source,bash]
+[source,shell]
....
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
@@ -1460,7 +1460,7 @@ Jedes ZFS-Dataset besitzt eine Menge von Eigenschaften, die sein Verhalten beein
Benutzerdefinierte Eigenschaften lassen sich ebenfalls setzen. Diese werden Teil der Konfiguration des Datasets und können dazu verwendet werden, zusätzliche Informationen über das Dataset oder seine Bestandteile zu speichern. Um diese benutzerdefinierten Eigenschaften von den ZFS-eigenen zu unterscheiden, wird ein Doppelpunkt (`:`) verwendet, um einen eigenen Namensraum für diese Eigenschaft zu erstellen.
-[source,bash]
+[source,shell]
....
# zfs set custom:costcenter=1234 tank
# zfs get custom:costcenter tank
@@ -1470,7 +1470,7 @@ tank custom:costcenter 1234 local
Um eine selbstdefinierte Eigenschaft umzubenennen, verwenden Sie `zfs inherit` mit der Option `-r`. Wenn die benutzerdefinierte Eigenschaft nicht in einem der Eltern-Datasets definiert ist, wird diese komplett entfernt (obwohl diese Änderungen natürlich in der Historie des Pools noch aufgezeichnet sind).
-[source,bash]
+[source,shell]
....
# zfs inherit -r custom:costcenter tank
# zfs get custom:costcenter tank
@@ -1485,7 +1485,7 @@ tank custom:costcenter - -
Zwei häufig verwendete und nützliche Dataset-Eigenschaften sind die Freigabeoptionen von NFS und SMB. Diese Optionen legen fest, ob und wie ZFS-Datasets im Netzwerk freigegeben werden. Derzeit unterstützt FreeBSD nur Freigaben von Datasets über NFS. Um den Status einer Freigabe zu erhalten, geben Sie folgendes ein:
-[source,bash]
+[source,shell]
....
# zfs get sharenfs mypool/usr/home
NAME PROPERTY VALUE SOURCE
@@ -1497,14 +1497,14 @@ mypool/usr/home sharesmb off local
Um ein Dataset freizugeben, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs=on mypool/usr/home
....
Es ist auch möglich, weitere Optionen für die Verwendung von Datasets über NFS zu definieren, wie etwa `-alldirs`, `-maproot` und `-network`. Um zusätzliche Optionen auf ein durch NFS freigegebenes Dataset festzulegen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs="-alldirs,maproot=root,-network=192.168.1.0/24" mypool/usr/home
....
@@ -1523,7 +1523,7 @@ Schnappschüsse werden durch das Kommando `zfs snapshot _dataset_@_snapshotname_
Einen rekursiven Schnappschuss des gesamten Pools erzeugen:
-[source,bash]
+[source,shell]
....
# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
@@ -1566,7 +1566,7 @@ Schnappschüsse werden nicht durch einen `zfs list`-Befehl angezeigt. Um Schnapp
Schnappschüsse werden nicht direkt eingehängt, deshalb wird auch kein Pfad in der Spalte `MOUNTPOINT` angezeigt. Ebenso wird kein freier Speicherplatz in der Spalte `AVAIL` aufgelistet, da Schnappschüsse nicht mehr geschrieben werden können, nachdem diese angelegt wurden. Vergleichen Sie den Schnappschuss mit dem ursprünglichen Dataset von dem es abstammt:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/usr/home
NAME USED AVAIL REFER MOUNTPOINT
@@ -1576,7 +1576,7 @@ mypool/usr/home@my_recursive_snapshot 0 - 184K -
Durch das Darstellen des Datasets und des Schnappschusses nebeneinander zeigt deutlich, wie Schnappschüsse in <<zfs-term-cow,COW>> Manier funktionieren. Sie zeichnen nur die Änderungen (_delta_) auf, die währenddessen entstanden sind und nicht noch einmal den gesamten Inhalt des Dateisystems. Das bedeutet, dass Schnappschüsse nur wenig Speicherplatz benötigen, wenn nur kleine Änderungen vorgenommen werden. Der Speicherverbrauch kann sogar noch deutlicher gemacht werden, wenn eine Datei auf das Dataset kopiert wird und anschließend ein zweiter Schnappschuss angelegt wird:
-[source,bash]
+[source,shell]
....
# cp /etc/passwd /var/tmp
# zfs snapshot mypool/var/tmp@after_cp
@@ -1594,7 +1594,7 @@ Der zweite Schnappschuss enthält nur die Änderungen am Dataset, die nach der K
ZFS enthält ein eingebautes Kommando, um die Unterschiede zwischen zwei Schnappschüssen miteinander zu vergleichen. Das ist hilfreich, wenn viele Schnappschüsse über längere Zeit angelegt wurden und der Benutzer sehen will, wie sich das Dateisystem über diesen Zeitraum verändert hat. Beispielsweise kann `zfs diff` den letzten Schnappschuss finden, der noch eine Datei enthält, die aus Versehen gelöscht wurde. Wenn dies für die letzten beiden Schnappschüsse aus dem vorherigen Abschnitt durchgeführt wird, ergibt sich folgende Ausgabe:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1631,7 +1631,7 @@ Zwei Schnappschüsse zu vergleichen ist hilfreich, wenn die Replikationseigensch
Zwei Schnappschüsse durch die Angabe des kompletten Namens des Datasets und dem Namen des Schnappschusses beider Datasets vergleichen:
-[source,bash]
+[source,shell]
....
# cp /var/tmp/passwd /var/tmp/passwd.copy
# zfs snapshot mypool/var/tmp@diff_snapshot
@@ -1653,7 +1653,7 @@ Wenn zumindest ein Schnappschuss vorhanden ist, kann dieser zu einem beliebigen
Im ersten Beispiel wird ein Schnappschuss aufgrund eines unvorsichtigen `rm`-Befehls zurückgerollt, der mehr Daten gelöscht hat, als vorgesehen.
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1671,7 +1671,7 @@ vi.recover
Zu diesem Zeitpunkt bemerkt der Benutzer, dass zuviele Dateien gelöscht wurden und möchte diese zurück haben. ZFS bietet eine einfache Möglichkeit, diese durch zurückrollen zurück zu bekommen, allerdings nur, wenn Schnappschüsse von wichtigen Daten regelmäßig angelegt werden. Um die Dateien zurückzuerhalten und vom letzten Schnappschuss wieder zu beginnen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs rollback mypool/var/tmp@diff_snapshot
# ls /var/tmp
@@ -1680,7 +1680,7 @@ passwd passwd.copy vi.recover
Die Operation zum Zurückrollen versetzt das Dataset in den Zustand des letzten Schnappschusses zurück. Es ist ebenfalls möglich, zu einem Schnappschuss zurückzurollen, der viel früher angelegt wurde und es noch Schnappschüsse nach diesem gibt. Wenn Sie dies versuchen, gibt ZFS die folgende Warnung aus:
-[source,bash]
+[source,shell]
....
# zfs list -rt snapshot mypool/var/tmp
AME USED AVAIL REFER MOUNTPOINT
@@ -1696,7 +1696,7 @@ mypool/var/tmp@diff_snapshot
Diese Warnung bedeutet, dass noch Schnappschüsse zwischen dem momentanen Stand des Datasets und dem Schnappschuss, zu dem der Benutzer zurückrollen möchte, existieren. Um das Zurückrollen durchzuführen, müssen die Schnappschüsse gelöscht werden. ZFS kann nicht alle Änderungen zwischen verschiedenen Zuständen eines Datasets verfolgen, da Schnappschüsse nur gelesen werden können. ZFS wird nicht die betroffenen Schnappschüsse löschen, es sei denn, der Benutzer verwendet die Option `-r`, um anzugeben, dass dies die gewünschte Aktion ist. Falls dies der Fall ist und die Konsequenzen alle dazwischenliegenden Schnappschüsse zu verlieren verstanden wurden, kann der Befehl abgesetzt werden:
-[source,bash]
+[source,shell]
....
# zfs rollback -r mypool/var/tmp@my_recursive_snapshot
# zfs list -rt snapshot mypool/var/tmp
@@ -1713,7 +1713,7 @@ Die Ausgabe von `zfs list -t snapshot` bestätigt, dass die dazwischenliegenden
Schnappschüsse sind unter einem versteckten Verzeichnis unter dem Eltern-Dataset eingehängt: [.filename]#.zfs/snapshots/snapshotname#. Standardmäßig werden diese Verzeichnisse nicht von einem gewöhnlichen `ls -a` angezeigt. Obwohl diese Verzeichnisse nicht angezeigt werden, sind diese trotzdem vorhanden und der Zugriff darauf erfolgt wie auf jedes andere Verzeichnis. Die Eigenschaft `snapdir` steuert, ob diese Verzeichnisse beim Auflisten eines Verzeichnisses angezeigt werden oder nicht. Das Einstellen der Eigenschaft auf den Wert `visible` erlaubt es, diese in der Ausgabe von `ls` und anderen Kommandos, die mit Verzeichnisinhalten umgehen können, anzuzeigen.
-[source,bash]
+[source,shell]
....
# zfs get snapdir mypool/var/tmp
NAME PROPERTY VALUE SOURCE
@@ -1727,7 +1727,7 @@ mypool/var/tmp snapdir hidden default
Einzelne Dateien lassen sich einfach auf einen vorherigen Stand wiederherstellen, indem diese aus dem Schnappschuss zurück in das Eltern-Dataset kopiert werden. Die Verzeichnisstruktur unterhalb von [.filename]#.zfs/snapshot# enthält ein Verzeichnis, das exakt wie der Schnappschuss benannt ist, der zuvor angelegt wurde, um es einfacher zu machen, diese zu identifizieren. Im nächsten Beispiel wird angenommen, dass eine Datei aus dem versteckten [.filename]#.zfs# Verzeichnis durch kopieren aus dem Schnappschuss, der die letzte Version dieser Datei enthielt, wiederhergestellt wird:
-[source,bash]
+[source,shell]
....
# rm /var/tmp/passwd
# ls -a /var/tmp
@@ -1741,7 +1741,7 @@ passwd vi.recover
Als `ls .zfs/snapshot` ausgeführt wurde, war die `snapdir`-Eigenschaft möglicherweise nicht auf hidden gesetzt, trotzdem ist es immer noch möglich, den Inhalt dieses Verzeichnisses aufzulisten. Es liegt am Administrator zu entscheiden, ob diese Verzeichnisse angezeigt werden soll. Es ist möglich, diese für bestimmte Datasets anzuzeigen und für andere zu verstecken. Das Kopieren von Dateien oder Verzeichnissen aus diesem versteckten [.filename]#.zfs/snapshot# Verzeichnis ist einfach genug. Jedoch führt der umgekehrte Weg zu einem Fehler:
-[source,bash]
+[source,shell]
....
# cp /etc/rc.conf /var/tmp/.zfs/snapshot/after_cp/
cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
@@ -1760,7 +1760,7 @@ Ein Klon ist eine Kopie eines Schnappschusses, der mehr wie ein reguläres Datas
Um diese Klon-Funktionalität zu demonstrieren, wird dieses Beispiel-Dataset verwendet:
-[source,bash]
+[source,shell]
....
# zfs list -rt all camino/home/joe
NAME USED AVAIL REFER MOUNTPOINT
@@ -1771,7 +1771,7 @@ camino/home/joe@backup 0K - 87K -
Ein typischer Einsatzzweck für Klone ist das experimentieren mit einem bestimmten Dataset, während der Schnappschuss beibehalten wird für den Fall, dass etwas schiefgeht. Da Schnappschüsse nicht verändert werden können, wird ein Lese-/Schreibklon des Schnappschusses angelegt. Nachdem das gewünschte Ergebnis im Klon erreicht wurde, kann der Klon zu einem Dataset ernannt und das alte Dateisystem entfernt werden. Streng genommen ist das nicht nötig, da der Klon und das Dataset ohne Probleme miteinander koexistieren können.
-[source,bash]
+[source,shell]
....
# zfs clone camino/home/joe@backup camino/home/joenew
# ls /usr/home/joe*
@@ -1788,7 +1788,7 @@ usr/home/joenew 1.3G 31k 1.3G 0% /usr/home/joenew
Nachdem ein Klon erstellt wurde, stellt er eine exakte Kopie des Datasets zu dem Zeitpunkt dar, als der Schnappschuss angelegt wurde. Der Klon kann nun unabhängig vom ursprünglichen Dataset geändert werden. Die einzige Verbindung zwischen den beiden ist der Schnappschuss. ZFS zeichnet diese Verbindung in der Eigenschaft namens `origin` auf. Sobald die Abhängigkeit zwischen dem Schnappschuss und dem Klon durch das Befördern des Klons mittels `zfs promote` entfernt wurde, wird auch die `origin`-Eigenschaft des Klons entfernt, da es sich nun um ein eigenständiges Dataset handelt. Dieses Beispiel demonstriert dies:
-[source,bash]
+[source,shell]
....
# zfs get origin camino/home/joenew
NAME PROPERTY VALUE SOURCE
@@ -1801,7 +1801,7 @@ camino/home/joenew origin - -
Nachdem ein paar Änderungen, wie beispielsweise das Kopieren von [.filename]#loader.conf# auf den beförderten Klon vorgenommen wurden, wird das alte Verzeichnis in diesem Fall überflüssig. Stattdessen kann der beförderte Klon diesen ersetzen. Dies kann durch zwei aufeinanderfolgende Befehl geschehen: `zfs destroy` auf dem alten Dataset und `zfs rename` auf dem Klon, um diesen genauso wie das alte Dataset zu benennen (es kann auch einen ganz anderen Namen erhalten).
-[source,bash]
+[source,shell]
....
# cp /boot/defaults/loader.conf /usr/home/joenew
# zfs destroy -f camino/home/joe
@@ -1822,7 +1822,7 @@ Daten auf einem einzigen Pool an einem Platz aufzubewahren, setzt diese dem Risi
Diese Beispiele demonstrieren die Replikation von ZFS anhand dieser beiden Pools:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -1832,7 +1832,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
Der Pool namens _mypool_ ist der primäre Pool, auf den regelmäßig Daten geschrieben und auch wieder gelesen werden. Ein zweiter Pool, genannt _backup_ wird verwendet, um als Reserve zu dienen im Falle, dass der primäre Pool nicht zur Verfügung steht. Beachten Sie, dass diese Ausfallsicherung nicht automatisch von ZFS durchgeführt wird, sondern manuell von einem Systemadministrator bei Bedarf eingerichtet werden muss. Ein Schnappschuss wird verwendet, um einen konsistenten Zustand des Dateisystems, das repliziert werden soll, zu erzeugen. Sobald ein Schnappschuss von _mypool_ angelegt wurde, kann er auf den _backup_-Pool abgelegt werden. Nur Schnappschüsse lassen sich auf diese Weise replizieren. Änderungen, die seit dem letzten Schnappschuss entstanden sind, werden nicht mit repliziert.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@backup1
# zfs list -t snapshot
@@ -1842,7 +1842,7 @@ mypool@backup1 0 - 43.6M -
Da nun ein Schnappschuss existiert, kann mit `zfs send` ein Datenstrom, der den Inhalt des Schnappschusses repräsentiert, erstellt werden. Dieser Datenstrom kann als Datei gespeichert oder von einem anderen Pool empfangen werden. Der Datenstrom wird auf die Standardausgabe geschrieben, muss jedoch in eine Datei oder in eine Pipe umgeleitet werden, sonst wird ein Fehler produziert:
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1
Error: Stream can not be written to a terminal.
@@ -1851,7 +1851,7 @@ You must redirect standard output.
Um ein Dataset mit `zfs send` zu replizieren, leiten Sie dieses in eine Datei auf dem eingehängten Backup-Pool um. Stellen Sie sicher, dass der Pool genug freien Speicherplatz besitzt, um die Größe des gesendeten Schnappschusses aufzunehmen. Das beinhaltet alle Daten im Schnappschuss, nicht nur die Änderungen zum vorherigen Schnappschuss.
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1 > /backup/backup1
# zpool list
@@ -1864,7 +1864,7 @@ Das Kommando `zfs send` transferierte alle Daten im _backup1_-Schnappschuss auf
Anstatt die Sicherungen als Archivdateien zu speichern, kann ZFS diese auch als aktives Dateisystem empfangen, was es erlaubt, direkt auf die gesicherten Daten zuzugreifen. Um an die eigentlichen Daten in diesem Strom zu gelangen, wird `zfs receive` benutzt, um den Strom wieder in Dateien und Verzeichnisse umzuwandeln. Das Beispiel unten kombiniert `zfs send` und `zfs receive` durch eine Pipe, um die Daten von einem Pool auf den anderen zu kopieren. Die Daten können direkt auf dem empfangenden Pool verwendet werden, nachdem der Transfer abgeschlossen ist. Ein Dataset kann nur auf ein leeres Dataset repliziert werden.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica1
# zfs send -v mypool@replica1 | zfs receive backup/mypool
@@ -1883,7 +1883,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
Die Unterschiede zwischen zwei Schnappschüssen kann `zfs send` ebenfalls erkennen und nur diese übertragen. Dies spart Speicherplatz und Übertragungszeit. Beispielsweise:
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica2
# zfs list -t snapshot
@@ -1898,7 +1898,7 @@ mypool 960M 50.2M 910M - - 0% 5% 1.00x ONLINE -
Ein zweiter Schnappschuss genannt _replica2_ wurde angelegt. Dieser zweite Schnappschuss enthält nur die Änderungen, die zwischen dem jetzigen Stand des Dateisystems und dem vorherigen Schnappschuss, _replica1_, vorgenommen wurden. Durch `zfs send -i` und die Angabe des Schnappschusspaares wird ein inkrementeller Replikationsstrom erzeugt, welcher nur die Daten enthält, die sich geändert haben. Das kann nur erfolgreich sein, wenn der initiale Schnappschuss bereits auf der Empfängerseite vorhanden ist.
-[source,bash]
+[source,shell]
....
# zfs send -v -i mypool@replica1 mypool@replica2 | zfs receive /backup/mypool
send from @replica1 to mypool@replica2 estimated size is 5.02M
@@ -1941,14 +1941,14 @@ Die folgende Konfiguration wird benötigt:
* Normalerweise werden die Privilegien des `root`-Benutzers gebraucht, um Strom zu senden und zu empfangen. Das beinhaltet das Anmelden auf dem empfangenden System als `root`. Allerdings ist das Anmelden als `root` aus Sicherheitsgründen standardmäßig deaktiviert. Mit <<zfs-zfs-allow,ZFS Delegation>> lassen sich nicht-`root`-Benutzer auf jedem System einrichten, welche die nötigen Rechte besitzen, um die Sende- und Empfangsoperation durchzuführen.
* Auf dem sendenden System:
+
-[source,bash]
+[source,shell]
....
# zfs allow -u someuser send,snapshot mypool
....
* Um den Pool einzuhängen, muss der unprivilegierte Benutzer das Verzeichnis besitzen und gewöhnliche Benutzern muss die Erlaubnis gegeben werden, das Dateisystem einzuhängen. Auf dem empfangenden System nehmen Sie dazu die folgenden Einstellungen vor:
+
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -1960,7 +1960,7 @@ vfs.usermount: 0 -> 1
Der unprivilegierte Benutzer hat jetzt die Fähigkeit, Datasets zu empfangen und einzuhängen und das _home_-Dataset auf das entfernte System zu replizieren:
-[source,bash]
+[source,shell]
....
% zfs snapshot -r mypool/home@monday
% zfs send -R mypool/home@monday | ssh someuser@backuphost zfs recv -dvu recvpool/backup
@@ -1977,21 +1977,21 @@ Die folgenden Beispiele gehen davon aus, dass die Benutzer bereits im System vor
Um ein 10 GB großes Quota auf dem Dataset [.filename]#storage/home/bob# zu erzwingen, verwenden Sie folgenden Befehl:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
Um ein Referenzquota von 10 GB für [.filename]#storage/home/bob# festzulegen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs set refquota=10G storage/home/bob
....
Um das Quota für [.filename]#storage/home/bob# wieder zu entfernen:
-[source,bash]
+[source,shell]
....
# zfs set quota=none storage/home/bob
....
@@ -2005,14 +2005,14 @@ Das generelle Format ist `userquota@_user_=_size_` und der Name des Benutzers mu
Um beispielsweise ein Benutzerquota von 50 GB für den Benutzer names _joe_ zu erzwingen:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
Um jegliche Quotas zu entfernen:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -2026,14 +2026,14 @@ Das generelle Format zum Festlegen einer Gruppenquota lautet: `groupquota@_group
Um ein Quota für die Gruppe _firstgroup_ von 50 GB zu setzen, geben Sie ein:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
Um eine Quota für die Gruppe _firstgroup_ zu setzen oder sicherzustellen, dass diese nicht gesetzt ist, verwenden Sie stattdessen:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -2044,7 +2044,7 @@ Um die Menge an Speicherplatz zusammen mit der Quota anzuzeigen, die von jedem B
Benutzer mit ausreichenden Rechten sowie `root` können das Quota für [.filename]#storage/home/bob# anzeigen lassen:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -2056,14 +2056,14 @@ Benutzer mit ausreichenden Rechten sowie `root` können das Quota für [.filenam
Das generelle Format der `reservation`-Eigenschaft ist `reservation=_size_`. Um also eine Reservierung von 10 GB auf [.filename]#storage/home/bob# festzulegen, geben Sie Folgendes ein:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
Um die Reservierung zu beseitigen:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -2072,7 +2072,7 @@ Das gleiche Prinzip kann auf die `refreservation`-Eigenschaft angewendet werden,
Dieser Befehl zeigt die Reservierungen oder Referenzreservierungen an, die auf [.filename]#storage/home/bob# existieren:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -2087,7 +2087,7 @@ ZFS bietet mehrere verschiedene Kompressionsalgorithmen an, jede mit unterschied
Der Administrator kann die Effektivität der Komprimierung über eine Reihe von Dataset-Eigenschaften überwachen.
-[source,bash]
+[source,shell]
....
# zfs get used,compressratio,compression,logicalused mypool/compressed_dataset
NAME PROPERTY VALUE SOURCE
@@ -2110,14 +2110,14 @@ Wenn aktiviert, verwendet <<zfs-term-deduplication,Deduplizierung>> die Prüfsum
Um Deduplizierung zu aktivieren, setzen Sie die `dedup`-Eigenschaft auf dem Zielpool:
-[source,bash]
+[source,shell]
....
# zfs set dedup=on pool
....
Nur neu auf den Pool geschriebene Daten werden dedupliziert. Daten, die bereits auf den Pool geschrieben wurden, werden nicht durch das Aktivieren dieser Option dedupliziert. Ein Pool mit einer gerade aktivierten Deduplizierung wird wie in diesem Beispiel aussehen:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2126,7 +2126,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
Die Spalte `DEDUP` zeigt das aktuelle Verhältnis der Deduplizierung für diesen Pool an. Ein Wert von `1.00x` zeigt an, dass die Daten noch nicht dedupliziert wurden. Im nächsten Beispiel wird die Ports-Sammlung dreimal in verschiedene Verzeichnisse auf dem deduplizierten Pool kopiert.
-[source,bash]
+[source,shell]
....
# for d in dir1 dir2 dir3; do
> mkdir $d && cp -R /usr/ports $d &
@@ -2135,7 +2135,7 @@ Die Spalte `DEDUP` zeigt das aktuelle Verhältnis der Deduplizierung für diesen
Redundante Daten werden erkannt und dedupliziert:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
@@ -2146,7 +2146,7 @@ Die `DEDUP`-Spalte zeigt einen Faktor von `3.00x`. Mehrere Kopien der Ports-Samm
Deduplizierung ist nicht immer gewinnbringend, besonders wenn die Daten auf dem Pool nicht redundant sind. ZFS kann potentielle Speicherplatzeinsparungen durch Deduplizierung auf einem Pool simulieren:
-[source,bash]
+[source,shell]
....
# zdb -S pool
Simulated DDT histogram:
diff --git a/documentation/content/de/books/porters-handbook/plist/chapter.adoc b/documentation/content/de/books/porters-handbook/plist/chapter.adoc
index 2950b354ff..cffd56dca0 100644
--- a/documentation/content/de/books/porters-handbook/plist/chapter.adoc
+++ b/documentation/content/de/books/porters-handbook/plist/chapter.adoc
@@ -148,7 +148,7 @@ Als Erstes sollten Sie sich vergewissern, dass der Port bis auf [.filename]#pkg-
Als Nächstes erstellen Sie einen temporären Verzeichnisbaum, in welchem Ihr Port installiert werden kann, und installieren Sie alle Abhängigkeiten.
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/`make -V PORTNAME`
# mtree -U -f `make -V MTREE_FILE` -d -e -p /var/tmp/`make -V PORTNAME`
@@ -157,21 +157,21 @@ Als Nächstes erstellen Sie einen temporären Verzeichnisbaum, in welchem Ihr Po
Speichern Sie die Verzeichnisstruktur in einer neuen Datei.
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/`make -V PORTNAME` && find -d * -type d) | sort > OLD-DIRS
....
Erstellen Sie eine leere [.filename]#pkg-plist#-Datei:
-[source,bash]
+[source,shell]
....
# :>pkg-plist
....
Wenn Ihr Port auf `PREFIX` achtet (was er machen sollte), so kann der Port nun installiert und die Paketliste erstellt werden.
-[source,bash]
+[source,shell]
....
# make install PREFIX=/var/tmp/`make -V PORTNAME`
# (cd /var/tmp/`make -V PORTNAME` && find -d * \! -type d) | sort > pkg-plist
@@ -179,7 +179,7 @@ Wenn Ihr Port auf `PREFIX` achtet (was er machen sollte), so kann der Port nun i
Sie müssen auch alle neu erstellten Verzeichnisse in die Paketliste aufnehmen.
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/`make -V PORTNAME` && find -d * -type d) | sort | comm -13 OLD-DIRS - | sort -r | sed -e 's#^#@dirrm #' >> pkg-plist
....
@@ -190,14 +190,14 @@ Alternativ dazu können Sie das `plist`-Skript in [.filename]#/usr/ports/Tools/s
Der erste Schritt ist derselbe wie oben: Nehmen Sie die ersten drei Zeilen, also `mkdir`, `mtree` und `make depends`. Installieren und bauen Sie dann den Port:
-[source,bash]
+[source,shell]
....
# make install PREFIX=/var/tmp/`make -V PORTNAME`
....
Und lassen Sie `plist` die [.filename]#pkg-plist#-Datei erstellen:
-[source,bash]
+[source,shell]
....
# /usr/ports/Tools/scripts/plist -Md -m `make -V MTREE_FILE` /var/tmp/`make -V PORTNAME` > pkg-plist
....
diff --git a/documentation/content/de/books/porters-handbook/port-upgrading/chapter.adoc b/documentation/content/de/books/porters-handbook/port-upgrading/chapter.adoc
index 10bc57417d..99f9e83eaf 100644
--- a/documentation/content/de/books/porters-handbook/port-upgrading/chapter.adoc
+++ b/documentation/content/de/books/porters-handbook/port-upgrading/chapter.adoc
@@ -37,7 +37,7 @@ Wenn Sie der Maintainer bittet die Aktualisierung zu erledigen, oder falls es ke
Um einen brauchbaren `diff` für einen einzelne Datei zu erstellen, kopieren Sie die zu patchende Datei nach _dateiname.orig_ und speichern Ihre Änderungen in die Datei _dateiname_. Danach erzeugen Sie den Patch:
-[source,bash]
+[source,shell]
....
% /usr/bin/diff dateiname.orig dateiname > dateiname.diff
....
@@ -69,7 +69,7 @@ Nun, da Sie all das geschafft haben, können Sie in <<keeping-up>> nachlesen, wi
Wenn möglich, sollten Sie stets eine man:cvs[1]-Differenz einreichen. Diese sind leichter zu bearbeiten als Differenzen zwischen "neuen und alten" Verzeichnissen. Außerdem könenn Sie so einfacher feststellen, welche Änderungen Sie vorgenommen haben oder Ihren Patch modifizieren, falls dies durch Änderungen in einem anderen Bereich der Ports-Sammlung notwendig wird oder Sie vom Committer um eine Korrektur Ihres Patches gebeten werden.
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% cvs -d R_CVSROOT co pdnsd <.> <.>
@@ -84,7 +84,7 @@ Wenn möglich, sollten Sie stets eine man:cvs[1]-Differenz einreichen. Diese sin
Danach modifizieren Sie den Port in gewohnter Weise. Falls Sie Dateien hinzufügen oder entfernen, sollten Sie dies mit `cvs` protokollieren:
-[source,bash]
+[source,shell]
....
% cvs add new_file
% cvs remove deleted_file
@@ -92,7 +92,7 @@ Danach modifizieren Sie den Port in gewohnter Weise. Falls Sie Dateien hinzufüg
Überprüfen Sie die Funktion Ihres Ports anhand der Checklisten in <<porting-testing>> und <<porting-portlint>>.
-[source,bash]
+[source,shell]
....
% cvs status
% cvs update <.>
@@ -121,7 +121,7 @@ Wird das Präfix `C` nach einem `cvs update` angezeigt, bedeutet dies, dass im C
Im letzten Schritt erzeugen Sie einen "unified man:diff[1]" gegen die derzeit im CVS vorhandenen Dateien:
-[source,bash]
+[source,shell]
....
% cvs diff -uN > ../`basename ${PWD}`.diff
....
diff --git a/documentation/content/de/books/porters-handbook/security/chapter.adoc b/documentation/content/de/books/porters-handbook/security/chapter.adoc
index 89ac2886f7..2cec58e3c3 100644
--- a/documentation/content/de/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/de/books/porters-handbook/security/chapter.adoc
@@ -169,7 +169,7 @@ Arbeiten Sie nicht aus dem Verzeichnis [.filename]#${PORTSDIR}/security/vuxml# h
Zuerst überprüfen Sie bitte, ob bereits ein Eintrag für diese Schwachstelle existiert. Wenn es einen solchen Eintrag gibt, sollte er auf die vorige Version `0.65_6` zutreffen:
-[source,bash]
+[source,shell]
....
% packaudit
% portaudit clamav-0.65_6
@@ -177,7 +177,7 @@ Zuerst überprüfen Sie bitte, ob bereits ein Eintrag für diese Schwachstelle e
Wenn keine vorhandenen Einträge gefunden werden haben Sie grünes Licht, einen neuen Eintrag für diese Sicherheitslücke anzulegen. Sie können nun eine neue UUID erzeugen (wir nehmen an, diese lautet `74a9541d-5d6c-11d8-80e3-0020ed76ef5a`) und einen neuen Eintrag in der VuXML-Datenbank anlegen. Bitte überprüfen Sie danach die Syntax mit folgendem Befehl:
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml && make validate
....
@@ -189,14 +189,14 @@ Sie werden zumindest eines der folgenden Pakete benötigen: package:textproc/lib
Jetzt bauen Sie bitte die `portaudit`-Datenbank aus der VuXML-Datei neu:
-[source,bash]
+[source,shell]
....
% packaudit
....
Um sicherzustellen, dass der Abschnitt `<affected>` Ihres Eintrags die richtigen Pakete betrifft, verwenden Sie bitte den folgenden Befehl:
-[source,bash]
+[source,shell]
....
% portaudit -f /usr/ports/INDEX -r 74a9541d-5d6c-11d8-80e3-0020ed76ef5a
....
@@ -210,7 +210,7 @@ Bitte stellen Sie sicher, dass Ihr Eintrag keine falschen Treffer in der Ausgabe
Jetzt überprüfen Sie bitte, dass Ihr Eintrag die richtigen Versionen des Pakets angibt:
-[source,bash]
+[source,shell]
....
% portaudit clamav-0.65_6 clamav-0.65_7
Affected package: clamav-0.65_6 (matched by clamav<0.65_7)
@@ -224,7 +224,7 @@ Offensichtlich sollte die erste Version ausgegeben werden - die zweite jedoch ni
Abschließend überprüfen Sie bitte, ob die Webseite, die aus der VuXML-Datenbank erzeugt wird, wie erwartet aussieht:
-[source,bash]
+[source,shell]
....
% mkdir -p ~/public_html/portaudit
% packaudit
diff --git a/documentation/content/de/books/porters-handbook/testing/chapter.adoc b/documentation/content/de/books/porters-handbook/testing/chapter.adoc
index 314fa1216a..0f15951aa8 100644
--- a/documentation/content/de/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/de/books/porters-handbook/testing/chapter.adoc
@@ -53,7 +53,7 @@ Das Programm package:ports-mgmt/porttools[] ist Teil der Ports-Sammlung.
`port` ist das Front-End-Skript, das Ihnen dabei behilflich sein kann Ihre Arbeit als Tester zu vereinfachen. Um einen neuen Port zu testen oder einen bereits bestehenden Port zu aktualisieren, können Sie `port test` verwenden, damit die Tests, inklusive der <<testing-portlint,`portlint`>>-Überprüfung, durchgeführt werden. Dieser Befehl spürt ausserdem alle nicht in [.filename]#pkg-plist# enthaltenen Dateien auf und gibt eine Liste dieser aus. Hier ein Beispiel:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -71,7 +71,7 @@ Die Vermeidung der hart kodierten Angaben von [.filename]#/usr/local# oder [.fil
Vergewissern Sie sich bitte, dass Ihre Anwendung nichts unter [.filename]#/usr/local# an Stelle von `PREFIX` installiert. Um dies festzustellen, können Sie folgendes machen:
-[source,bash]
+[source,shell]
....
# make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
diff --git a/documentation/content/el/articles/contributing/_index.adoc b/documentation/content/el/articles/contributing/_index.adoc
index 293f856d3d..ddab398441 100644
--- a/documentation/content/el/articles/contributing/_index.adoc
+++ b/documentation/content/el/articles/contributing/_index.adoc
@@ -115,14 +115,14 @@ toc::[]
Για παράδειγμα το:
-[source,bash]
+[source,shell]
....
% diff -c παλιό_αρχείο νέο_αρχείο
....
ή το
-[source,bash]
+[source,shell]
....
% diff -c -r παλιός_κατάλογος νέος_κατάλογος
....
@@ -131,14 +131,14 @@ toc::[]
Ομοίως το,
-[source,bash]
+[source,shell]
....
% diff -u παλιό_αρχείο νέο_αρχείο
....
ή το
-[source,bash]
+[source,shell]
....
% diff -u -r παλιός_κατάλογος νέος_κατάλογος
....
diff --git a/documentation/content/el/articles/freebsd-questions/_index.adoc b/documentation/content/el/articles/freebsd-questions/_index.adoc
index 955c09e0ec..bd722f9e8c 100644
--- a/documentation/content/el/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/el/articles/freebsd-questions/_index.adoc
@@ -165,7 +165,7 @@ your options page that will email your current password to you.
* Πολλές από τις πληροφορίες που θέλετε συνήθως να στείλετε, περιλαμβάνονται στην έξοδο προγραμμάτων όπως το man:dmesg[8], ή στα μηνύματα που βλέπετε στην κονσόλα σας, τα οποία τις πιο πολλές φορές σώζονται και στο αρχείο [.filename]#/var/log/messages#. Μην δοκιμάσετε να αντιγράψετε αυτές τις πληροφορίες ξαναγράφοντάς τες. Είναι βαρετό και σχεδόν σίγουρα θα κάνετε κάποιο λάθος. Για να στείλετε τα περιεχόμενα κάποιου log αρχείου, είτε κάντε ένα αντίγραφο του αρχείου και χρησιμοποιήστε κάποιον επεξεργαστή κειμένου να κόψετε όσα κομμάτια δεν είναι σχετικά, ή αντιγράψτε και επικολλήστε ότι έχει σχέση στο μήνυμά σας. Για την έξοδο κάποιου προγράμματος, όπως π.χ. το man:dmesg[8], ανακατευθύνετε την έξοδο σε κάποιο αρχείο και χρησιμοποιήστε αυτό το αρχείο. Για παράδειγμα:
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/el/articles/gjournal-desktop/_index.adoc b/documentation/content/el/articles/gjournal-desktop/_index.adoc
index c3e60274ef..d88c314d64 100644
--- a/documentation/content/el/articles/gjournal-desktop/_index.adoc
+++ b/documentation/content/el/articles/gjournal-desktop/_index.adoc
@@ -162,28 +162,28 @@ image::disklabel2.png[]
Έχοντας προετοιμάσει όλες τις απαραίτητες κατατμήσεις, είναι σχετικά απλό να ρυθμίσουμε το journaling. Θα πρέπει να μεταβούμε σε κατάσταση ενός χρήστη, για το λόγο αυτό εισέλθετε στο σύστημα ως `root` και γράψτε:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Πιέστε kbd:[Enter] για να βγείτε στο προεπιλεγμένο κέλυφος. Θα πρέπει να αποπροσαρτήσουμε τις κατατμήσεις στις οποίες θα γίνει το journaling, στο παράδειγμα μας τις [.filename]#/usr# και [.filename]#/var#:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Φορτώστε το άρθρωμα του πυρήνα που απαιτείται για το journaling:
-[source,bash]
+[source,shell]
....
# gjournal load
....
Χρησιμοποιήστε τώρα τις σημειώσεις σας για να καθορίσετε ποια κατάτμηση χρησιμοποιείται για κάθε ημερολόγιο. Στο παράδειγμα μας, το [.filename]#/usr# βρίσκεται στο [.filename]#ad0s1f# και το ημερολόγιο του θα είναι στο [.filename]#ad0s1g#, ενώ το [.filename]#/var# είναι στο [.filename]#ad0s1d# και το ημερολόγιο του θα είναι στο [.filename]#ad0s1h#. Θα χρειαστείτε τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# gjournal label ad0s1f ad0s1g
GEOM_JOURNAL: Journal 2948326772: ad0s1f contains data.
@@ -197,7 +197,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
====
Αν ο τελευταίος τομέας κάποιας από τις κατατμήσεις είναι σε χρήση, η εντολή `gjournal` θα σας επιστρέψει ένα μήνυμα λάθους. Θα πρέπει να εκτελέσετε την εντολή χρησιμοποιώντας την παράμετρο `-F` με την οποία θα υποχρεώσετε την επανεγγραφή του τομέα, π.χ.:
-[source,bash]
+[source,shell]
....
# gjournal label -f ad0s1d ad0s1h
....
@@ -207,7 +207,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
Στο σημείο αυτό δημιουργούνται δύο νέες συσκευές, οι [.filename]#ad0s1d.journal# και [.filename]#ad0s1f.journal#. Αυτές αντιπροσωπεύουν τις κατατμήσεις [.filename]#/var# και [.filename]#/usr# που θα πρέπει να προσαρτήσουμε. Πριν τις προσαρτήσουμε ωστόσο, θα πρέπει να θέσουμε την επιλογή journal και να αναιρέσουμε την επιλογή Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J enable -n disable ad0s1d.journal
tunefs: gjournal set
@@ -220,7 +220,7 @@ tunefs: soft updates cleared
Προσαρτήστε τώρα χειροκίνητα τις νέες συσκευές στα αντίστοιχα σημεία προσάρτησης (σημειώστε ότι μπορούμε πλέον να χρησιμοποιήσουμε την επιλογή `async` κατά την προσάρτηση):
-[source,bash]
+[source,shell]
....
# mount -o async /dev/ad0s1d.journal /var
# mount -o async /dev/ad0s1f.journal /usr
@@ -248,7 +248,7 @@ geom_journal_load="YES"
Συγχαρητήρια! Το σύστημα σας είναι τώρα έτοιμο για journaling. Μπορείτε να γράψετε `exit` για να επιστρέψετε στην κανονική λειτουργία (πολλαπλών χρηστών) ή να επανεκκινήσετε το σύστημα σας (συνίσταται) για να ελέγξετε τις ρυθμίσεις σας. Κατά την εκκίνηση, θα δείτε μηνύματα όπως το παρακάτω:
-[source,bash]
+[source,shell]
....
ad0: 76293MB XEC XE800JD-00HBC0 08.02D08 at ata0-master SATA150
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -261,7 +261,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Μετά από ένα προβληματικό τερματισμό θα δείτε μηνύματα όπως το παρακάτω:
-[source,bash]
+[source,shell]
....
GEOM_JOURNAL: Journal ad0s1d consistent.
....
@@ -273,7 +273,7 @@ GEOM_JOURNAL: Journal ad0s1d consistent.
Αν και η παραπάνω διαδικασία είναι απαραίτητη για να χρησιμοποιήσετε journaling σε κατατμήσεις που έχουν ήδη δεδομένα, η αντίστοιχη διαδικασία για νέες κατατμήσεις είναι πιο απλή. Στην περίπτωση αυτή, μπορεί να χρησιμοποιηθεί ο ίδιος παροχέας τόσο για τα δεδομένα όσο και για το ημερολόγιο. Για παράδειγμα, υποθέστε ότι έχετε προσθέσει ένα νέο δίσκο και έχετε δημιουργήσει την κατάτμηση [.filename]#/dev/ad1s1d#. Η δημιουργία του ημερολογίου είναι αρκετά απλή και φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# gjournal label ad1s1d
....
@@ -282,14 +282,14 @@ GEOM_JOURNAL: Journal ad0s1d consistent.
Για παράδειγμα, για να δημιουργήσετε ένα ημερολόγιο μεγέθους 2 GB, μπορείτε να χρησιμοποιήσετε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# gjournal label -s 2G ad1s1d
....
Μπορείτε έπειτα να δημιουργήσετε ένα σύστημα αρχείων στη νέα σας κατάτμηση, και ταυτόχρονα να ενεργοποιήσετε το journaling, χρησιμοποιώντας την επιλογή `-J`:
-[source,bash]
+[source,shell]
....
# newfs -J /dev/ad1s1d.journal
....
@@ -323,14 +323,14 @@ options GEOM_JOURNAL # Θα πρέπει να προσθέσετε αυτή τη
Πιθανόν ξεχάσατε να προσθέσετε (ή έχετε κάνει λάθος) την καταχώρηση στο [.filename]#/boot/loader.conf#, ή ίσως υπάρχει λάθος στο αρχείο [.filename]#/etc/fstab#. Τα λάθη αυτά συνήθως διορθώνονται εύκολα. Πιέστε kbd:[Enter] για να ξεκινήσετε το προεπιλεγμένο κέλυφος λειτουργίας ενός χρήστη. Μετά εντοπίστε την πηγή του προβλήματος:
-[source,bash]
+[source,shell]
....
# cat /boot/loader.conf
....
Αν λείπει ή υπάρχει λάθος στην καταχώρηση `geom_journal_load`, οι αντίστοιχες συσκευές δεν δημιουργούνται καν. Μπορείτε να φορτώσετε το άρθρωμα χειροκίνητα, να προσαρτήσετε όλες τις κατατμήσεις, και να συνεχίσετε με την κανονική εκκίνηση:
-[source,bash]
+[source,shell]
....
# gjournal load
@@ -354,28 +354,28 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Εισέλθετε ως `root` και μεταβείτε σε κατάσταση ενός χρήστη:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Αποπροσαρτήστε τις κατατμήσεις που χρησιμοποιούν journaling:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Συγχρονίστε τα ημερολόγια:
-[source,bash]
+[source,shell]
....
# gjournal sync
....
Σταματήστε τους παροχείς ημερολογίου:
-[source,bash]
+[source,shell]
....
# gjournal stop ad0s1d.journal
# gjournal stop ad0s1f.journal
@@ -383,7 +383,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Διαγράψτε τα metadata του journaling από όλες τις συσκευές που χρησιμοποιήσατε:
-[source,bash]
+[source,shell]
....
# gjournal clear ad0s1d
# gjournal clear ad0s1f
@@ -393,7 +393,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Αναιρέστε την επιλογή του journaling, και θέστε ξανά την επιλογή για Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J disable -n enable ad0s1d
tunefs: gjournal cleared
@@ -406,7 +406,7 @@ tunefs: soft updates set
Προσαρτήστε χειροκίνητα τις κανονικές κατατμήσεις:
-[source,bash]
+[source,shell]
....
# mount -o rw /dev/ad0s1d /var
# mount -o rw /dev/ad0s1f /usr
diff --git a/documentation/content/el/articles/greek-language-support/_index.adoc b/documentation/content/el/articles/greek-language-support/_index.adoc
index 1d106f20ce..cb0b7ddbfb 100644
--- a/documentation/content/el/articles/greek-language-support/_index.adoc
+++ b/documentation/content/el/articles/greek-language-support/_index.adoc
@@ -61,7 +61,7 @@ toc::[]
Ο `{keramida}` έχει φτιάξει μια τέτοια γραμματοσειρά και μια αντιστοιχία πληκτρολογίου. Αυτά τα δύο αρχεία δεν είναι μέρος του βασικού συστήματος του FreeBSD τη στιγμή που γράφονται αυτές οι γραμμές, οπότε θα χρειαστεί να τα κατεβάσετε από το δίκτυο. Για να κατεβάσετε τα δύο αρχεία που χρειάζονται και να τα τοποθετήσετε στον κατάλληλο κατάλογο για τον τύπο του κάθε αρχείου, μπορείτε να τρέξετε τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# cd /usr/shared/syscons/fonts
# fetch 'http://people.freebsd.org/~keramida/files/grfixed-8x16.fnt'
@@ -82,7 +82,7 @@ keymap="keramida.el-iso"
Με αυτές τις ρυθμίσεις, το σύστημά μας θα χρησιμοποιεί τα αρχεία που μόλις κατεβάσαμε από την επόμενη φορά που θα ξεκινήσει. Στο FreeBSD δε χρειάζεται όμως να κάνουμε επανεκκίνηση για μια τέτοια μικρή αλλαγή. Μπορούμε απλά να τρέξουμε σε μια κονσόλα τις εντολές:
-[source,bash]
+[source,shell]
....
% vidcontrol -f 8x16 grfixed-8x16 < /dev/ttyv0
% kbdcontrol -l keramida.el-iso < /dev/ttyv0
@@ -210,7 +210,7 @@ XTerm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-7
====
Μετά από αλλαγές στο αρχείο [.filename]#.Xresources#, δε χρειάζεται επανεκκίνηση του περιβάλλοντος Xorg. Αρκεί απλά να τρέξουμε την εντολή:
-[source,bash]
+[source,shell]
....
% xrdb -merge ~/.Xresources
....
@@ -222,14 +222,14 @@ XTerm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-7
Το περιβάλλον Xorg έρχεται με ένα βασικό σύνολο γραμματοσειρών σε μορφή "bitmap". Μερικές από αυτές έχουν υποστήριξη ελληνικών, είτε για την κωδικοποίηση ISO/IEC 8859-7, είτε για την κωδικοποίηση ISO/IEC 10646 (Universal Character Set). Οι βασικές bitmap γραμματοσειρές που διανέμονται με το Xorg έχουν στο τέλος από το όνομά τους την κωδικοποίηση, οπότε μπορείτε να τις βρείτε εύκολα με το εργαλείο man:xlsfonts[1]. Για να δείτε, για παράδειγμα, ποιές βασικές γραμματοσειρές υποστηρίζουν την κωδικοποίηση ISO/IEC 8859-7 μπορείτε να χρησιμοποιήσετε την εντολή:
-[source,bash]
+[source,shell]
....
% xlsfonts | fgrep -i iso8859-7
....
Αντίστοιχα, για να βρείτε ποιές γραμματοσειρές υποστηρίζουν την κωδικοποίηση ISO/IEC 10646, οπότε μπορούν να χρησιμοποιηθούν για την απεικόνιση κειμένων με κωδικοποίηση UTF-8, μπορείτε να χρησιμοποιήσετε την εντολή:
-[source,bash]
+[source,shell]
....
% xlsfonts | fgrep -i iso10646
....
diff --git a/documentation/content/el/articles/linux-users/_index.adoc b/documentation/content/el/articles/linux-users/_index.adoc
index d0668e792f..05e618adb8 100644
--- a/documentation/content/el/articles/linux-users/_index.adoc
+++ b/documentation/content/el/articles/linux-users/_index.adoc
@@ -56,14 +56,14 @@ toc::[]
Τα πακέτα είναι προ-μεταγλωττισμένες εφαρμογές, θα λέγαμε το αντίστοιχο για το FreeBSD των αρχείων [.filename]#.deb# σε συστήματα Debian/Ubuntu και των αρχείων [.filename]#.rpm# σε συστήματα Red Hat/Fedora. Τα πακέτα εγκαθίστανται χρησιμοποιώντας την εντολή man:pkg_add[1]. Για παράδειγμα, η ακόλουθη εντολή εγκαθιστά τον Apache 2.2:
-[source,bash]
+[source,shell]
....
# pkg_add /tmp/apache-2.2.6_2.tbz
....
Η χρήση της παραμέτρου `-r` οδηγεί την man:pkg_add[1] να κατεβάσει αυτόματα τόσο το πακέτο, όσο και τις εξαρτήσεις του, και να το εγκαταστήσει:
-[source,bash]
+[source,shell]
....
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/apache22.tbz... Done.
@@ -91,7 +91,7 @@ in your /etc/rc.conf. Extra options can be found in startup script.
Η εγκατάσταση ενός port είναι γενικά τόσο απλή όσο το να εισέλθετε στον κατάλογο του και να ξεκινήσετε την διαδικασία μεταγλώττισης. Στο ακόλουθο παράδειγμα γίνεται εγκατάσταση του Apache 2.2 από την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make install clean
@@ -99,7 +99,7 @@ in your /etc/rc.conf. Extra options can be found in startup script.
Ένα σημαντικό πλεονέκτημα της χρήσης ports στην εγκατάσταση λογισμικού είναι η ικανότητα προσαρμογής των επιλογών εγκατάστασης. Για παράδειγμα, όταν εγκαθιστάτε τον Apache 2.2 από τα ports μπορείτε να ενεργοποιήσετε την επιλογή mod_ldap θέτοντας απλώς τιμή στη μεταβλητή `WITH_LDAP` του man:make[1]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make WITH_LDAP="YES" install clean
@@ -149,14 +149,14 @@ apache22_flags="-DSSL"
Από τη στιγμή που μια υπηρεσία ενεργοποιηθεί στο αρχείο [.filename]#/etc/rc.conf#, μπορείτε να την ξεκινήσετε απευθείας από τη γραμμή εντολών (χωρίς να χρειάζεται να επανεκκινήσετε το σύστημα σας):
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd start
....
Αν μια υπηρεσία δεν έχει ενεργοποιηθεί στο αρχείο αυτό, μπορείτε να εξαναγκάσετε την εκκίνηση της από την γραμμή εντολών με την επιλογή `forcestart`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd forcestart
....
@@ -169,7 +169,7 @@ apache22_flags="-DSSL"
Αντί για το γενικό αναγνωριστικό τύπου _ethX_ που χρησιμοποιεί το Linux(R) για την αναγνώριση μιας διεπαφής δικτύου, το FreeBSD χρησιμοποιεί ως αναγνωριστικό το όνομα του προγράμματος οδήγησης ακολουθούμενο από ένα αριθμό. Η ακόλουθη έξοδος από την εντολή man:ifconfig[8] δείχνει δύο κάρτες δικτύου Intel(R) Pro 1000 (με αναγνωριστικά em0 and em1):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -271,7 +271,7 @@ pass in on $ext_if inet proto tcp from any to ($ext_if) port 22
Στο παράδειγμα της προώθησης IP, θα χρησιμοποιούσαμε την ακόλουθη εντολή για να καθορίσουμε αν η δυνατότητα αυτή είναι ενεργοποιημένη σε ένα FreeBSD σύστημα:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -279,7 +279,7 @@ net.inet.ip.forwarding: 0
Η επιλογή `-a` χρησιμοποιείται για να πάρουμε μια λίστα με όλες τις ρυθμίσεις του συστήματος:
-[source,bash]
+[source,shell]
....
% sysctl -a
kern.ostype: FreeBSD
@@ -307,7 +307,7 @@ kern.posix1version: 200112
Υπάρχουν περιπτώσεις όπου απαιτείται το procfs, όπως για παράδειγμα όταν εκτελείτε παλιότερο λογισμικό, το οποίο κάνει χρήση της εντολής man:truss[1] για την ανίχνευση των κλήσεων συστήματος, και για την link:{handbook}#linuxemu[Συμβατότητα με Εκτελέσιμα του Linux(R)]. (Αν και η Συμβατότητα με Εκτελέσιμα του Linux(R) χρησιμοποιεί το δικό της procfs, το man:linprocfs[5]). Αν χρειάζεται να προσαρτήσετε το procfs, μπορείτε να προσθέσετε την ακόλουθη εγγραφή στο αρχείο [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -319,7 +319,7 @@ proc /proc procfs rw,noauto 0 0
Προσαρτήστε κατόπιν την procfs χρησιμοποιώντας την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/el/articles/mailing-list-faq/_index.adoc b/documentation/content/el/articles/mailing-list-faq/_index.adoc
index d0fb47e91f..bc79bbabdb 100644
--- a/documentation/content/el/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/el/articles/mailing-list-faq/_index.adoc
@@ -113,7 +113,7 @@ toc::[]
* Βεβαιωθείτε ότι η ώρα και η ζώνη ώρας στον υπολογιστή σας είναι σωστά ρυθμισμένα. Αυτό μπορεί να φαίνεται κάπως ανόητο, ειδικά καθώς το μήνυμα σας θα φτάσει έτσι και αλλιώς, αλλά αρκετοί άνθρωποι σε αυτές τις λίστες λαμβάνουν εκατοντάδες μηνύματα κάθε μέρα. Συχνά τα ταξινομούν κατά θέμα και ημερομηνία, έτσι αν το μήνυμα σας έρθει μετά την πρώτη απάντηση θα θεωρήσουν ότι το έχασαν και δεν θα ασχοληθούν να το ψάξουν.
* Πολλές φορές οι πληροφορίες που πρέπει να παρέχετε περιέχουν την έξοδο προγραμμάτων όπως το man:dmesg[8], ή τα μηνύματα που εμφανίζονται στην κονσόλα, τα οποία συνήθως γράφονται στο [.filename]#/var/log/messages#. Μην προσπαθήσετε να αντιγράψετε αυτές τις πληροφορίες πληκτρολογώντας τις ξανά: όχι μόνο είναι βασανιστικό, αλλά είναι σχεδόν σίγουρο ότι θα κάνετε κάποιο λάθος. Για να στείλετε τα περιεχόμενα κάποιου αρχείου καταγραφής, είτε αντιγράψτε το αρχείο και χρησιμοποιήστε κάποιο συντάκτη κειμένου για να κόψετε τα κομμάτια που σας ενδιαφέρουν, ή κάντε αποκοπή και επικόλληση μέσα στο μήνυμα σας. Για την έξοδο προγραμμάτων όπως το `dmesg`, χρησιμοποιήστε ανακατεύθυνση της εξόδου σε ένα αρχείο και στείλτε αυτό. Για παράδειγμα:
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/el/articles/nanobsd/_index.adoc b/documentation/content/el/articles/nanobsd/_index.adoc
index b681c8aee4..5f43be2b7b 100644
--- a/documentation/content/el/articles/nanobsd/_index.adoc
+++ b/documentation/content/el/articles/nanobsd/_index.adoc
@@ -68,7 +68,7 @@ toc::[]
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -91,7 +91,7 @@ toc::[]
Οι απαραίτητες εντολές προκειμένου να δημιουργηθεί ένα είδωλο του NanoBSD είναι οι εξής:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -113,7 +113,7 @@ toc::[]
Η ακόλουθη εντολή θα κάνει το [.filename]#nanobsd.sh# να διαβάσει τις ρυθμίσεις του από το αρχείο [.filename]#myconf.nano# που βρίσκεται στο τρέχοντα κατάλογο:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -264,7 +264,7 @@ customize_cmd cust_nobeastie
Αν σας ενδιαφέρει η καλή ταχύτητα μεταφοράς, χρησιμοποιήστε το FTP για τη μεταφορά του ειδώλου:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -274,7 +274,7 @@ get _.disk.image "| sh updatep1"
Αν σας ενδιαφέρει η μεταφορά του ειδώλου να γίνει με ασφαλή τρόπο και δεν έχετε αφαιρέσει από το αρχικό είδωλο το man:ssh[1], προτιμήστε τη μεταφορά μέσω SSH:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -287,7 +287,7 @@ get _.disk.image "| sh updatep1"
====
. Πρώτα ανοίξτε ένα εξυπηρετητή `TCP` στο σύστημα το οποίο θα παρέχει το νέο είδωλο, και ορίστε το νέο είδωλο ως είσοδο για τη μεταφορά που θα γίνει αργότερα:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -298,7 +298,7 @@ myhost# nc -l 2222 < _.disk.image
======
. Συνδεθείτε από το NanoBSD στον εξυπηρετητή, ο οποίος είναι ήδη έτοιμος να παρέχει το νέο είδωλο, και τροφοδοτείστε το σενάριο φλοιού [.filename]#updatep1# με την έξοδο του εργαλείου man:nc[1]:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/el/articles/new-users/_index.adoc b/documentation/content/el/articles/new-users/_index.adoc
index f2d0a5a468..fb2b243d37 100644
--- a/documentation/content/el/articles/new-users/_index.adoc
+++ b/documentation/content/el/articles/new-users/_index.adoc
@@ -39,7 +39,7 @@ toc::[]
Για να βγείτε (και να δείτε ένα καινούριο `login:` prompt) γράψτε
-[source,bash]
+[source,shell]
....
# exit
....
@@ -48,21 +48,21 @@ toc::[]
Για να κλείσετε το μηχάνημά σας γράψτε
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
Για να το επανεκκινήσετε
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
ή
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -74,7 +74,7 @@ toc::[]
Αν δεν φτιάξατε κανένα λογαριασμό χρήστη όταν εγκαταστήσατε το σύστημα, και τώρα έχετε κάνει login σαν `root`, μάλλον είναι η κατάλληλη ώρα να φτιάξετε ένα λογαριασμό χρήστη με την εντολή
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -83,7 +83,7 @@ toc::[]
Έστω οτι δημιουργείτε ένα λογαριασμό χρήστη με όνομα `jack` και πλήρες όνομα __Jack Benimble__. Ορίστε για τον `jack` κι ένα κωδικό χρήστη (password) αν η ασφάλεια σας ενδιαφέρει (ακόμα και παιδιά που παίζουν με το πληκτρολόγιο μπορεί να είναι επικίνδυνα). Όταν σας ρωτήσει αν θέλετε να βάλετε τον `jack` και σε άλλες ομάδες (groups), γράψτε `wheel`
-[source,bash]
+[source,shell]
....
Login group is "jack". Invite jack into other groups: wheel
....
@@ -161,7 +161,7 @@ Login group is "jack". Invite jack into other groups: wheel
Μήπως κάποια από αυτά που είπαμε δεν δουλεύουν καλά; Τόσο η εντολή man:locate[1] όσο και η man:whatis[1] εξαρτώνται από μια βάση που ξαναφτιάχνεται μια φορά τη βδομάδα. Αν το μηχάνημά σας δεν παραμείνει ανοιχτό το σαββατοκύριακο (τρέχοντας το FreeBSD), μπορεί να θέλετε να τρέξετε εσείς τις εντολές για καθημερινή, εβδομαδιαία και μηνιαία συντήρηση που και που. Τρέξτε τις σαν `root` και δώστε τους χρόνο να τελειώσει η καθεμια πριν ξεκινήσετε την επόμενη.
-[source,bash]
+[source,shell]
....
# periodic daily
παραλείπεται η έξοδος της εντολής
@@ -182,14 +182,14 @@ Login group is "jack". Invite jack into other groups: wheel
Πριν κάνετε αλλαγές σε αρχεία ρυθμίσεων, μάλλον είναι καλή ιδέα να πάρετε κάποιο αντίγραφο ασφαλείας. Έστω ότι θέλετε να κάνετε αλλαγές στο [.filename]#/etc/rc.conf#. Μπορείτε να χρησιμοποιήσετε την εντολή `cd /etc` για να πάτε στον κατάλογο [.filename]#/etc# και να γράψετε:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
επειδή η εντολή `mv` διατηρεί την αρχική ημερομηνία και τον ιδιοκτήτη ενός αρχείου. Τώρα μπορείτε να κάνετε ότι αλλαγές θέλετε στο [.filename]#rc.conf#. Αν θέλετε το αρχικό πάλι, τότε θα εκτελέσετε `mv rc.conf rc.conf.myedit` (υποθέτοντας ότι θέλετε να κρατήσετε την αλλαγμένη έκδοση) και τότε
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -198,7 +198,7 @@ Login group is "jack". Invite jack into other groups: wheel
Για να επεξεργαστείτε ένα αρχείο, δώστε
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -252,14 +252,14 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Σε αυτό το σημείο μάλλον δεν έχετε βάλει κάποιο εκτυπωτή να δουλεύει, οπότε ας δούμε ένα τρόπο να δημιουργήσετε ένα αρχείο από μια σελίδα man, να το αντιγράψετε σε μια δισκέττα, και τότε να το τυπώσετε από το DOS. Έστω ότι θέλετε να διαβάσετε προσεκτικά για το πως αλλάζουν οι άδειες ενός αρχείου (ένα αρκετά σημαντικό θέμα). Μπορείτε να χρησιμοποιήσετε την εντολή `man chmod` για να διαβάσετε γι αυτό το θέμα. Η εντολή
-[source,bash]
+[source,shell]
....
% man chmod | col -b > chmod.txt
....
θα αφαιρέσει τους κωδικούς μορφοποίησης και θα στείλει την man σελίδα στο αρχείο [.filename]#chmod.txt# αντί να την δείξει στην οθόνη σας. Τώρα βάλτε μια δισκέττα διαμορφωμένη από DOS στον οδηγό δισκέττας [.filename]#a#, χρησιμοποιήστε την εντολή `su` για να γίνετε `root`, και δώστε
-[source,bash]
+[source,shell]
....
# /sbin/mount -t msdosfs /dev/fd0 /mnt
....
@@ -268,7 +268,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Τώρα (δεν χρειάζεται πλέον να είστε `root`, και μπορείτε να δώσετε `exit` για να επιστρέψετε στα δικαιώματα του χρήστη `jack`) μπορείτε να πάτε στον κατάλογο που δημιουργήσατε το [.filename]#chmod.txt# και να το αντιγράψετε στη δισκέτα γράφοντας:
-[source,bash]
+[source,shell]
....
% cp chmod.txt /mnt
....
@@ -277,7 +277,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Σίγουρα θα πρέπει να φτιάξετε κι ένα αρχείο από το [.filename]#/sbin/dmesg# γράφοντας
-[source,bash]
+[source,shell]
....
% /sbin/dmesg > dmesg.txt
....
@@ -286,7 +286,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Μπορείτε τώρα να αποπροσαρτήσετε τον οδηγό δισκέττας (σαν `root`) για να βγάλετε τη δισκέττα με την εντολή
-[source,bash]
+[source,shell]
....
# /sbin/umount /mnt
....
@@ -321,7 +321,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Χρησιμοποιήστε την `find` για να βρείτε το [.filename]#filename# στο [.filename]#/usr# ή σε κάποιο υποκατάλογό του με την εντολή
-[source,bash]
+[source,shell]
....
% find /usr -name "filename"
....
@@ -337,7 +337,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Αν βρίσκετε το handbook κάπως πολύπλοκο (με όλα εκείνα τα `lndir` και τα άλλα) για το πως μπορεί κάποιος να εγκαταστήσει ports από το CDROM, ας δούμε κάτι που δουλεύει:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -348,7 +348,7 @@ kbd:[Ctrl+b] and kbd:[Ctrl+f]::
Κατόπιν αλλάξτε με `cd` στον κατάλογο [.filename]#/usr/local/kermit# που έχει το αρχείο [.filename]#Makefile#. Τρέξτε την εντολή
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/el/articles/problem-reports/_index.adoc b/documentation/content/el/articles/problem-reports/_index.adoc
index 43f6f8c709..c20cd2fbeb 100644
--- a/documentation/content/el/articles/problem-reports/_index.adoc
+++ b/documentation/content/el/articles/problem-reports/_index.adoc
@@ -140,7 +140,7 @@ toc::[]
Το πρόγραμμα man:send-pr[1] έχει την δυνατότητα να επισυνάψει αρχεία σε μια αναφορά προβλήματος. Μπορείτε να επισυνάψετε όσα αρχεία θέλετε, αρκεί το καθένα να έχει μοναδικό βασικό όνομα (το όνομα του αρχείου χωρίς την διαδρομή). Απλά χρησιμοποιήστε την παράμετρο `-a` στην γραμμή εντολών για να καταδείξετε τα ονόματα των αρχείων που θέλετε να επισυνάψετε:
-[source,bash]
+[source,shell]
....
% send-pr -a /var/run/dmesg -a /tmp/errors
....
@@ -217,7 +217,7 @@ toc::[]
Όταν τελειώσετε με το γράψιμο, την συμπλήρωση της φόρμας, και σώσετε το κείμενο της αναφοράς σε ένα αρχείο, το πρόγραμμα man:send-pr[1] θα σας δείξει μια προτροπή `s)end, e)dit or a)bort?`. Μπορείτε τότε να πατήσετε `s` για να συνεχίσετε και να σταλεί η αναφορά, `e` για να ξεκινήσετε πάλι τον κειμενογράφο σας, ή `a` για να εγκαταλείψετε. Αν επιλέξετε το τελευταίο, το κείμενο της αναφοράς σας θα παραμείνει στο δίσκο (η man:send-pr[1] θα γράψει το όνομα του αρχείου πριν τερματίσει), οπότε μπορείτε να το επεξεργαστείτε με την ησυχία σας αργότερα ή να το μεταφέρετε σε κάποιο σύστημα με καλύτερη σύνδεση δικτύου, πριν να το στείλετε με την επιλογή `-F` της man:send-pr[1]:
-[source,bash]
+[source,shell]
....
% send-pr -f ~/my-problem-report
....
diff --git a/documentation/content/el/articles/releng/_index.adoc b/documentation/content/el/articles/releng/_index.adoc
index dc24573987..4264c954f1 100644
--- a/documentation/content/el/articles/releng/_index.adoc
+++ b/documentation/content/el/articles/releng/_index.adoc
@@ -80,21 +80,21 @@ toc::[]
Όπως περιγράψαμε στην εισαγωγή, οι κορμοί `RELENG_X_Y` είναι μια σχετικά νέα προσθήκη στην μεθοδολογία των εκδόσεών μας. Το πρώτο βήμα στην δημιουργία αυτού του κορμού είναι να βεβαιωθείτε ότι δουλεύετε με την τελευταία έκδοση του πηγαίου κώδικα από τον `RELENG_X` κορμό _από τον οποίο_ θα φτιάξετε το νέο κορμό.
-[source,bash]
+[source,shell]
....
/usr/src# cvs update -rRELENG_4 -P -d
....
Το επόμενο βήμα είναι να δημιουργήσετε μια _ετικέτα_ (tag) στο σημείο εκκίνησης του κορμού, ώστε να μπορείτε να δείτε τις διαφορές με την αρχή του κορμού εύκολα στο μέλλον με το CVS:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4 RELENG_4_8_BP src
....
Και τότε μπορείτε να δημιουργήσετε το νέο κορμό με:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -b -rRELENG_4_8_BP RELENG_4_8 src
....
@@ -148,7 +148,7 @@ __Οι ετικέτες ``RELENG_*`` είναι δεσμευμένες για χ
Όταν η τελική έκδοση είναι έτοιμη, η παρακάτω εντολή θα δημιουργήσει την ετικέτα `RELENG_4_8_0_RELEASE`.
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4_8 RELENG_4_8_0_RELEASE src
....
@@ -177,7 +177,7 @@ __Οι ετικέτες ``RELENG_*`` είναι δεσμευμένες για χ
Υπάρχουν και πολλές άλλες μεταβλητές που μπορούν να χρησιμοποιηθούν για να παραμετροποιήσετε την έκδοσή σας. Οι πιο πολλές από αυτές τις μεταβλητές περιγράφονται στην κορυφή του αρχείου [.filename]#src/release/Makefile#. Η ακριβής εντολή που χρησιμοποιήθηκε για να φτιαχτεί η επίσημη έκδοση 4.7 του FreeBSD (x86 πλατφόρμα) ήταν:
-[source,bash]
+[source,shell]
....
make release CHROOTDIR=/local3/release \
BUILDNAME=4.7-RELEASE \
@@ -226,7 +226,7 @@ make release CHROOTDIR=/local3/release \
Ξεκινώντας με την έκδοση 4.4 του FreeBSD, η Ομάδα Ανάπτυξης του FreeBSD αποφάσισε να διανέμει και τα τέσσερα ISO αρχεία που πρώτα πουλούσαν οι εταιρείες _BSDi/Wind River Systems/FreeBSD Mall_ στις "επίσημες" διανομές CDROM που έκαναν. Κάθε ένα από τα τέσσερα ISO αρχεία πρέπει να περιέχει ένα αρχείο [.filename]#README.TXT# που περιγράφει τα περιεχόμενα του δίσκου, κι ένα αρχείο [.filename]#CDROM.INF# που περιέχει μετα-πληροφορίες για να μπορεί το πρόγραμμα man:sysinstall[8] να ελέγξει και να χρησιμοποιήσει αυτό το δίσκο, καθώς κι ένα αρχείο [.filename]#filename.txt# που παρέχει μια λίστα αρχείων του CDROM. Αυτή η λίστα μπορεί να δημιουργηθεί πολύ απλά, ως εξής:
-[source,bash]
+[source,shell]
....
/stage/cdrom# find . -type f | sed -e 's/^\.\///' | sort > filename.txt
....
diff --git a/documentation/content/el/books/faq/_index.adoc b/documentation/content/el/books/faq/_index.adoc
index bc90de5a21..25b5afbced 100644
--- a/documentation/content/el/books/faq/_index.adoc
+++ b/documentation/content/el/books/faq/_index.adoc
@@ -352,14 +352,14 @@ H {re} δίνει στην κυκλοφορία μια καινούρια έκδ
Αν το ξέρετε αυτό μπορείτε να χρησιμοποιήσετε την ακόλουθη εντολή για να εγκαταστήσετε το πακέτο του Αγγλικού PDF FAQ:
-[source,bash]
+[source,shell]
....
# pkg_add ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/packages/faq.en_US.ISO8859-1.pdf.tgz
....
Αφού το κάνετε αυτό, μπορείτε να χρησιμοποιήσετε την εντολή man:pkg_info[1] για να βρείτε που έχει εγκατασταθεί το αρχείο.
-[source,bash]
+[source,shell]
....
# pkg_info -f faq.en_US.ISO8859-1.pdf
Information for faq.en_US.ISO8859-1.pdf:
@@ -379,7 +379,7 @@ File: +DESC (ignored)
Για παράδειγμα, η έκδοση του FAQ σε συνδεδεμένα αρχεία HTML, συμπιεσμένη με χρήση του man:bzip2[1], μπορεί να βρεθεί στο αρχείο [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2#. Για να κατεβάσετε και να αποσυμπιέσετε αυτό το αρχείο θα πρέπει να κάνετε το παρακάτω:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# bzip2 -d book.html-split.tar.bz2
@@ -478,7 +478,7 @@ File: +DESC (ignored)
* Εκτελώντας το DOS, μετακινηθείτε στον κατάλογο tools/ της FreeBSD διανομής σας, και ψάξτε για το αρχείο [.filename]#bootinst.exe#. Εκτελέστε το όπως φαίνεται παρακάτω:
+
-[source,bash]
+[source,shell]
....
...\TOOLS> bootinst.exe boot.bin
....
@@ -487,7 +487,7 @@ File: +DESC (ignored)
* Ξεκινήστε ξανά χρησιμοποιώντας τη δισκέτα εκκίνησης του FreeBSD και πηγαίνετε στην επιλογή Custom Installation του μενού. Επιλέξτε Partition. Επιλέξτε τον οδηγό που κανονικά θα περιείχε τον διαχειριστή εκκίνησης σας (φυσιολογικά τον πρώτο) και όταν φτάσετε στον επεξεργαστή κατατμήσεων (partition editor) για τον οδηγό αυτό, το πρώτο πράγμα που θα κάνετε (χωρίς άλλες αλλαγές), είναι να επιλέξετε (W)rite. Επιλέξτε yes στην επιβεβαίωση που θα εμφανιστεί και όταν φτάσετε στην προτροπή επιλογής Διαχειριστή Εκκίνησης, επιλέξτε "Boot Manager". Με τον τρόπο αυτό ο διαχειριστής εκκίνησης θα γραφεί ξανά στο δίσκο. Μπορείτε τώρα να βγείτε από το μενού της εγκατάστασης και να επανεκκινήσετε από το σκληρό δίσκο, όπως συνήθως.
* Ξεκινήστε με τη βοήθεια της δισκέτας εκκίνησης (ή του CD) του FreeBSD και επιλέξτε "Fixit" από το μενού. Επιλέξτε είτε τη δισκέτα Fixit είτε το CD #2 (το "live" σύστημα αρχείων) και θα εισέλθετε στο κέλυφος fixit. Εκτελέστε έπειτα την ακόλουθη εντολή:
+
-[source,bash]
+[source,shell]
....
Fixit# fdisk -B -b /boot/boot0 bootdevice
....
@@ -545,7 +545,7 @@ Fixit# fdisk -B -b /boot/boot0 bootdevice
. Γράψτε τα αρχεία [.filename]#boot1# και [.filename]#boot2# στο τοπικό σύστημα αρχείων.
. Χρησιμοποιήστε το man:disklabel[8] για να γράψετε τα [.filename]#boot1# και [.filename]#boot2# στο slice του FreeBSD.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -b boot1 -s boot2 ad0sn
....
@@ -721,21 +721,21 @@ options PAE
Δοκιμάστε να απενεργοποιήσετε την υποστήριξη ACPI. Μόλις ξεκινήσει ο φορτωτής εκκίνησης, πιέστε το πλήκτρο space. To σύστημα σας θα εμφανίσει
-[source,bash]
+[source,shell]
....
OK
....
. Γράψτε
-[source,bash]
+[source,shell]
....
unset acpi_load
....
και κατόπιν
-[source,bash]
+[source,shell]
....
boot
....
@@ -839,14 +839,14 @@ OK
Αν θέλετε να χρησιμοποιήσετε το USB πληκτρολόγιο στην κονσόλα, θα πρέπει να δηλώσετε συγκεκριμένα στον οδηγό της κονσόλας να χρησιμοποιήσει το υπάρχον USB πληκτρολόγιο. Αυτό μπορεί να γίνει εκτελώντας την ακόλουθη εντολή ως μέρος της διαδικασίας αρχικοποίησης του συστήματος:
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null
....
Παρατηρήστε ότι αν το πληκτρολόγιο USB είναι το μοναδικό πληκτρολόγιο, θα είναι διαθέσιμο ως [.filename]#/dev/ukbd0#, και η εντολή θα δείχνει όπως παρακάτω:
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/ukbd0 < /dev/ttyv0 > /dev/null
....
@@ -883,7 +883,7 @@ device psm0 at atkbdc? irq 12
Μόλις ο πυρήνας ανιχνεύσει σωστά τη συσκευή [.filename]#psm0# κατά την εκκίνηση, βεβαιωθείτε ότι υπάρχει η αντίστοιχη καταχώρηση για το [.filename]#psm0# στον κατάλογο [.filename]#/dev#. Μπορείτε να το δημιουργήσετε γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /dev; sh MAKEDEV psm0
....
@@ -900,7 +900,7 @@ device psm0 at atkbdc? irq 12
Αν χρησιμοποιείτε το προεπιλεγμένο πρόγραμμα οδήγησης κονσόλας, man:syscons[4], μπορείτε να χρησιμοποιήσετε το δείκτη του ποντικιού σας σε κονσόλες κειμένου για να κάνετε αποκοπή και επικόλληση κειμένου. Εκτελέστε τον δαίμονα του ποντικιού, man:moused[8], και ενεργοποιήστε το δείκτη του ποντικιού στην εικονική κονσόλα:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -999,7 +999,7 @@ To FreeBSD υποστηρίζει αρκετά software modems με την βο
Κάποιες κάρτες ήχου, όπως η es1370, μηδενίζουν την ένταση του ήχου σε κάθε εκκίνηση. Πρέπει να εκτελείτε την ακόλουθη εντολή κάθε φορά που ξεκινά το μηχάνημα:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -1021,7 +1021,7 @@ To FreeBSD υποστηρίζει αρκετά software modems με την βο
Προσθέστε τη γραμμή
-[source,bash]
+[source,shell]
....
hint.acpi.0.disabled="1"
....
@@ -1086,7 +1086,7 @@ device card 1
Για να ενεργοποιήσετε την επανατοποθέτηση χαλασμένων τομέων, επεξεργαστείτε την πρώτη σελίδα κατάστασης της συσκευής (modepage), δίνοντας την παρακάτω εντολή (ως `root`):
-[source,bash]
+[source,shell]
....
# camcontrol modepage sd0 -m 1 -e -P 3
....
@@ -1231,7 +1231,7 @@ quit
Αν σας συμβεί αυτό, επανεκκινήστε σε κατάσταση ενός χρήστη (single user) και γράψτε:
-[source,bash]
+[source,shell]
....
# rm /var/db/kvm_*.db
....
@@ -1288,7 +1288,7 @@ quit
Αν το πρόβλημα δεν μπορεί να λυθεί με διαφορετικό τρόπο, η λύση είναι να ορίσετε την παρακάτω μεταβλητή του sysctl:
-[source,bash]
+[source,shell]
....
# sysctl -w kern.timecounter.method=1
....
@@ -1319,7 +1319,7 @@ ____
Για να λειτουργήσει ξανά η συσκευή, πρέπει να βρεθεί το PNP id της και να προστεθεί στη λίστα των ανιχνεύσεων ISA που χρησιμοποιούνται για την αναγνώριση PnP συσκευών. Αυτό μπορεί να γίνει με τη χρήση της man:pnpinfo[8] για την ανίχνευση της συσκευής, για παράδειγμα αυτή είναι η έξοδος της man:pnpinfo[8] για ένα εσωτερικό modem:
-[source,bash]
+[source,shell]
....
# pnpinfo
Checking for Plug-n-Play devices...
@@ -1339,7 +1339,7 @@ TAG Start DF
[παραλείπονται οι υπόλοιπες γραμμές TAG]
-[source,bash]
+[source,shell]
....
TAG End DF
End Tag
@@ -1360,7 +1360,7 @@ IO range check 0x00 activate 0x01
Εναλλακτικά, αν το man:pnpinfo[8] δεν δείχνει την ζητούμενη κάρτα, μπορείτε να χρησιμοποιήσετε το man:pciconf[8]. Παρακάτω φαίνεται ένα μέρος της εξόδου της `pciconf -vl` για ένα κύκλωμα ήχου ενσωματωμένου στη μητρική:
-[source,bash]
+[source,shell]
....
# pciconf -vl
chip1@pci0:31:5: class=0x040100 card=0x00931028 chip=0x24158086 rev=0x02 hdr=0x00
@@ -1435,7 +1435,7 @@ static struct isa_pnp_id sio_ids[] = {
Εκτελέστε την man:dmesg[8], και ελέγξτε για γραμμές που περιέχουν την λέξη `Timecounter`. Η τελευταία από τις γραμμές που θα εκτυπωθεί δείχνει το ρολόι που επιλέχθηκε από το FreeBSD και σχεδόν σίγουρα θα είναι το `TSC`.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz
@@ -1444,7 +1444,7 @@ Timecounter "TSC" frequency 595573479 Hz
Μπορείτε να το επιβεβαιώσετε αυτό, ελέγχοντας την τιμή του `kern.timecounter.hardware` man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: TSC
@@ -1454,7 +1454,7 @@ kern.timecounter.hardware: TSC
Στο παράδειγμα μας, είναι επίσης διαθέσιμο το ρολόι `i8254` και μπορείτε να το επιλέξετε γράφοντας το όνομα του στο man:sysctl[3] `kern.timecounter.hardware`.
-[source,bash]
+[source,shell]
....
# sysctl -w kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -1690,7 +1690,7 @@ FreeBSD does not include a port upgrading tool, but it does have some tools to m
The man:pkg_version[1] command can generate a script that will update installed ports to the latest version in the ports tree.
-[source,bash]
+[source,shell]
....
# pkg_version -c > /tmp/myscript
....
@@ -1728,7 +1728,7 @@ If you only update parts of the Ports Collection, using one of its CVSup subcoll
To create audio CDs from MIDI files, first install package:audio/timidity[] from ports then install manually the GUS patches set by Eric A. Welsh, available at http://www.stardate.bc.ca/eawpatches/html/default.htm[http://www.stardate.bc.ca/eawpatches/html/default.htm]. After timidity++ has been installed properly, midi files may be converted to wav files with the following command line:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -1796,7 +1796,7 @@ There are a number of possible causes for this problem. They are, in no particul
If you are running FreeBSD version 5.2.1 or earlier, check for the existence of the `kern.quantum` sysctl. If you have it, you should see something like this:
-[source,bash]
+[source,shell]
....
% sysctl kern.quantum
kern.sched.quantum: 99960
@@ -1804,7 +1804,7 @@ kern.sched.quantum: 99960
If the `kern.quantum` sysctl exists, you are using the 4BSD scheduler. If not, you will get an error printed by man:sysctl[8] (which you can safely ignore):
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.quantum
sysctl: unknown oid 'kern.sched.quantum'
@@ -1812,7 +1812,7 @@ sysctl: unknown oid 'kern.sched.quantum'
In FreeBSD version 5.3-RELEASE and later, the name of the scheduler currently being used is directly available as the value of the `kern.sched.name` sysctl:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: 4BSD
@@ -1849,7 +1849,7 @@ You should never use anything but man:dump[8] and man:restore[8] to move the roo
For example, if you are going to move root to [.filename]#/dev/ad1s1a#, with [.filename]#/mnt# as the temporary mount point, it is:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# mount /dev/ad1s1a /mnt
@@ -1859,7 +1859,7 @@ For example, if you are going to move root to [.filename]#/dev/ad1s1a#, with [.f
Rearranging your partitions with dump takes a bit more work. To merge a partition like [.filename]#/var# into its parent, create the new partition large enough for both, move the parent partition as described above, then move the child partition into the empty directory that the first move created:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# mount /dev/ad1s1a /mnt
@@ -1871,7 +1871,7 @@ Rearranging your partitions with dump takes a bit more work. To merge a partitio
To split a directory from its parent, say putting [.filename]#/var# on its own partition when it was not before, create both partitions, then mount the child partition on the appropriate directory in the temporary mount point, then move the old single partition:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# newfs /dev/ad1s1d
@@ -1904,14 +1904,14 @@ Once you have got the BIOS and FreeBSD agreeing about the geometry of the disk,
To return a "dangerously dedicated" disk for normal PC use, there are basically two options. The first is, you write enough NULL bytes over the MBR to make any subsequent installation believe this to be a blank disk. You can do this for example with
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda0 count=15
....
Alternatively, the undocumented DOS "feature"
-[source,bash]
+[source,shell]
....
C:\> fdisk /mbr
....
@@ -1938,7 +1938,7 @@ Vital information on the root partition changes very rarely. Files such as [.fil
The symptom of this is:
-[source,bash]
+[source,shell]
....
# ccdconfig -C
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format
@@ -1950,7 +1950,7 @@ This usually happens when you are trying to concatenate the `c` partitions, whic
The symptom of this is:
-[source,bash]
+[source,shell]
....
# disklabel ccd0
(it prints something sensible here, so let us try to edit it)
@@ -1962,7 +1962,7 @@ use "disklabel -r" to install initial label
This is because the disklabel returned by ccd is actually a "fake" one that is not really on the disk. You can solve this problem by writing it back explicitly, as in:
-[source,bash]
+[source,shell]
....
# disklabel ccd0 > /tmp/disklabel.tmp
# disklabel -Rr ccd0 /tmp/disklabel.tmp
@@ -1995,7 +1995,7 @@ FreeBSD also supports network filesystems such as NFS (see man:mount_nfs[8]), Ne
The secondary DOS partitions are found after ALL the primary partitions. For example, if you have an "E" partition as the second DOS partition on the second SCSI drive, you need to create the special files for "slice 5" in [.filename]#/dev#, then mount [.filename]#/dev/da1s5#:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV da1s5
@@ -2065,7 +2065,7 @@ other=/dev/dab4
In some cases you may need to specify the BIOS drive number to the FreeBSD boot loader to successfully boot off the second disk. For example, if your FreeBSD SCSI disk is probed by BIOS as BIOS disk 1, at the FreeBSD boot loader prompt you need to specify:
-[source,bash]
+[source,shell]
....
Boot: 1:da(0,a)/kernel
....
@@ -2105,14 +2105,14 @@ Whether it is a removable drive like a Zip(R) or an EZ drive (or even a floppy,
If it is a ZIP drive or a floppy, you have already got a DOS filesystem on it, you can use a command like this:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/fd0c /floppy
....
if it is a floppy, or this:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da2s4 /zip
....
@@ -2125,7 +2125,7 @@ The rest of the examples will be for a ZIP drive on da2, the third SCSI disk.
Unless it is a floppy, or a removable you plan on sharing with other people, it is probably a better idea to stick a BSD filesystem on it. You will get long filename support, at least a 2X improvement in performance, and a lot more stability. First, you need to redo the DOS-level partitions/filesystems. You can either use man:fdisk[8] or [.filename]#/stand/sysinstall#, or for a small drive that you do not want to bother with multiple operating system support on, just blow away the whole FAT partition table (slices) and just use the BSD partitioning:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda2 count=2
# disklabel -Brw da2 auto
@@ -2135,14 +2135,14 @@ You can use disklabel or [.filename]#/stand/sysinstall# to create multiple BSD p
Finally, create a new filesystem, this one is on our ZIP drive using the whole disk:
-[source,bash]
+[source,shell]
....
# newfs /dev/rda2c
....
and mount it:
-[source,bash]
+[source,shell]
....
# mount /dev/da2c /zip
....
@@ -2191,7 +2191,7 @@ Ordinary users can be permitted to mount devices. Here is how:
. As `root` set the sysctl variable `vfs.usermount` to `1`.
+
-[source,bash]
+[source,shell]
....
# sysctl -w vfs.usermount=1
....
@@ -2200,14 +2200,14 @@ Ordinary users can be permitted to mount devices. Here is how:
+
For example, to allow users to mount the first floppy drive, use:
+
-[source,bash]
+[source,shell]
....
# chmod 666 /dev/fd0
....
+
To allow users in the group `operator` to mount the CDROM drive, use:
+
-[source,bash]
+[source,shell]
....
# chgrp operator /dev/acd0c
# chmod 640 /dev/acd0c
@@ -2238,7 +2238,7 @@ perm /dev/acd0 0660
All users can now mount the floppy [.filename]#/dev/fd0# onto a directory that they own:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/fd0 ~/my-mount-point
@@ -2246,7 +2246,7 @@ All users can now mount the floppy [.filename]#/dev/fd0# onto a directory that t
Users in group `operator` can now mount the CDROM [.filename]#/dev/acd0c# onto a directory that they own:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t cd9660 /dev/acd0c ~/my-mount-point
@@ -2254,7 +2254,7 @@ Users in group `operator` can now mount the CDROM [.filename]#/dev/acd0c# onto a
Unmounting the device is simple:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -2300,7 +2300,7 @@ The primary configuration file is [.filename]#/etc/defaults/rc.conf# (see man:rc
For example, if you wish to start named, the included DNS server, all you need to do is:
-[source,bash]
+[source,shell]
....
# echo named_enable="YES" >> /etc/rc.conf
....
@@ -2317,7 +2317,7 @@ To remove the user, use the man:rmuser[8] command or, if necessary, man:pw[8].
This is normally caused by editing the system crontab ([.filename]#/etc/crontab#) and then using man:crontab[1] to install it:
-[source,bash]
+[source,shell]
....
# crontab /etc/crontab
....
@@ -2326,7 +2326,7 @@ This is not the correct way to do things. The system crontab has a different for
If this is what you did, the extra crontab is simply a copy of [.filename]#/etc/crontab# in the wrong format it. Delete it with the command:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -2436,7 +2436,7 @@ in the configuration file. If you use the PCVT console driver, use the following
This can also be done by setting the following sysctl which does not require a reboot or kernel recompile:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -2450,7 +2450,7 @@ options PCVT_CTRL_ALT_DEL
Use this perl command:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file ...
....
@@ -2459,7 +2459,7 @@ file is the file(s) to process. The modification is done in-place, with the orig
Alternatively you can use the man:tr[1] command:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -2478,7 +2478,7 @@ The error comes from the Kerberos distributed authentication system. The problem
To remove Kerberos from the system, reinstall the bin distribution for the release you are running. If you have the CDROM, you can mount the cd (we will assume on /cdrom) and run
-[source,bash]
+[source,shell]
....
# cd /cdrom/bin
# ./install.sh
@@ -2509,7 +2509,7 @@ pseudo-device pty 256
in the configuration file.
. Run the commands
+
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV pty{1,2,3,4,5,6,7}
@@ -2533,7 +2533,7 @@ There is no [.filename]#snd# device. The name is used as a shorthand for the var
To create these devices you should
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV snd0
@@ -2550,7 +2550,7 @@ Go into single user mode and then back to multi user mode.
On the console do:
-[source,bash]
+[source,shell]
....
# shutdown now
(Note: without -r or -h)
@@ -2575,7 +2575,7 @@ Short answer: You are probably at security level greater than 0. Reboot directly
Long answer: FreeBSD disallows changing system flags at security levels greater than 0. You can check your security level with the command:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -2588,7 +2588,7 @@ Short answer: You are probably at security level greater than 1. Reboot directly
Long answer: FreeBSD disallows changing the time by more that one second at security levels greater than 1. You can check your security level with the command:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -2718,7 +2718,7 @@ Section "InputDevice"
Some people prefer to use [.filename]#/dev/mouse# under X. To make this work, [.filename]#/dev/mouse# should be linked to [.filename]#/dev/sysmouse# (see man:sysmouse[4]):
-[source,bash]
+[source,shell]
....
# cd /dev
# rm -f mouse
@@ -2766,7 +2766,7 @@ For security reasons, the default setting is to not allow a machine to remotely
To enable this feature, simply start X with the optional `-listen_tcp` argument:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -2845,7 +2845,7 @@ ttyvb "/usr/libexec/getty Pc" cons25 off secure
Next, the easiest (and cleanest) way to activate the virtual consoles is to reboot. However, if you really do not want to reboot, you can just shut down the X Window system and execute (as `root`):
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -2918,14 +2918,14 @@ and notice that your mouse does not work properly.
If this happens, disable the synchronization check code by setting the driver flags for the PS/2 mouse driver to 0x100. Enter _UserConfig_ by giving the `-c` option at the boot prompt:
-[source,bash]
+[source,shell]
....
boot: -c
....
Then, in the _UserConfig_ command line, type:
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x100
UserConfig> quit
@@ -2937,14 +2937,14 @@ There have been some reports that certain model of PS/2 mouse from MouseSystems
Specify the flags 0x04 to the PS/2 mouse driver to put the mouse into the high resolution mode. Enter _UserConfig_ by giving the `-c` option at the boot prompt:
-[source,bash]
+[source,shell]
....
boot: -c
....
Then, in the _UserConfig_ command line, type:
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x04
UserConfig> quit
@@ -3012,7 +3012,7 @@ Assuming all "Windows(R)" keyboards are standard then the keycodes for the 3 key
To have the left Windows(R) key print a comma, try this.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -3096,14 +3096,14 @@ Because they are not necessary. In the Berkeley networking framework, network in
If the alias is on the same subnet as an address already configured on the interface, then add `netmask 0xffffffff` to your man:ifconfig[8] command-line, as in the following:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Otherwise, just specify the network address and netmask as usual:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -3122,7 +3122,7 @@ See link:{handbook}#network-nfs/[ the Handbook entry on NFS] for more informatio
Some versions of the Linux(R) NFS code only accept mount requests from a privileged port; try
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -3131,7 +3131,7 @@ Some versions of the Linux(R) NFS code only accept mount requests from a privile
Sun(TM) workstations running SunOS(TM) 4.X only accept mount requests from a privileged port; try
-[source,bash]
+[source,shell]
....
# mount -o -P sunbox:/blah /mnt
....
@@ -3246,7 +3246,7 @@ If you have compiled your kernel with the `IPFIREWALL` option, you need to be aw
If you had unintentionally misconfigured your system for firewalling, you can restore network operability by typing the following while logged in as `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -3263,7 +3263,7 @@ Please see the Handbook's link:{handbook}#firewalls/[Firewalls] section, specifi
Possibly because you want to do network address translation (NAT) and not just forward packets. A "fwd" rule does exactly what it says; it forwards packets. It does not actually change the data inside the packet. Say we have a rule like:
-[source,bash]
+[source,shell]
....
01000 fwd`10.0.0.1`
from any to`foo 21`
@@ -3299,7 +3299,7 @@ pseudo-device bpf # Berkeley Packet Filter
On FreeBSD 4.X and earlier, you must also create the device node. After rebooting, go to the [.filename]#/dev# directory and run:
-[source,bash]
+[source,shell]
....
# sh MAKEDEV bpf0
....
@@ -3319,14 +3319,14 @@ This is the kernel telling you that some activity is provoking it to send more I
The first number in the message tells you how many packets the kernel would have sent if the limit was not in place, and the second number tells you the limit. You can control the limit using the `net.inet.icmp.icmplim` sysctl variable like this, where `300` is the limit in packets per second:
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim=300
....
If you do not want to see messages about this in your log files, but you still want the kernel to do response limiting, you can use the `net.inet.icmp.icmplim_output` sysctl variable to disable the output like this:
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim_output=0
....
@@ -3386,7 +3386,7 @@ The securelevel is a security mechanism implemented in the kernel. Basically, wh
To check the status of the securelevel on a running system, simply execute the following command:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -3438,7 +3438,7 @@ Some people use `toor` for day-to-day `root` tasks with a non-standard shell, le
For security reasons, `suidperl` is installed without the suid bit by default. The system administrator can enable suid behavior with the following command.
-[source,bash]
+[source,shell]
....
# chmod u+s /usr/bin/suidperl
....
@@ -3793,7 +3793,7 @@ ATDT1234567
Ppp (or any other program for that matter) should never dump core. Because man:ppp[8] runs with an effective user id of 0, the operating system will not write man:ppp[8]'s core image to disk before terminating it. If, however man:ppp[8] is actually terminating due to a segmentation violation or some other signal that normally causes core to be dumped, _and_ you are sure you are using the latest version (see the start of this section), then you should do the following:
-[source,bash]
+[source,shell]
....
% tar xfz ppp-*.src.tar.gz
% cd ppp*/ppp
@@ -3809,7 +3809,7 @@ You will now have a debuggable version of man:ppp[8] installed. You will have to
Now, if and when man:ppp[8] receives the segmentation violation, it will dump a core file called [.filename]#ppp.core#. You should then do the following:
-[source,bash]
+[source,shell]
....
% su
# gdb /usr/sbin/ppp ppp.core
@@ -3947,7 +3947,7 @@ This section answers common questions about serial communications with FreeBSD.
As the FreeBSD kernel boots, it will probe for the serial ports in your system for which the kernel was configured. You can either watch your system closely for the messages it prints or run the command
-[source,bash]
+[source,shell]
....
% dmesg | grep sio
....
@@ -4003,14 +4003,14 @@ Not yet. You will have to use a different irq for each card.
The [.filename]#ttydX# (or [.filename]#cuaaX#) device is the regular device you will want to open for your applications. When a process opens the device, it will have a default set of terminal I/O settings. You can see these settings with the command
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
When you change the settings to this device, the settings are in effect until the device is closed. When it is reopened, it goes back to the default set. To make changes to the default set, you can open and adjust the settings of the "initial state" device. For example, to turn on CLOCAL mode, 8 bits, and XON/XOFF flow control by default for ttyd5, do:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyid5 clocal cs8 ixon ixoff
....
@@ -4019,7 +4019,7 @@ A good place to do this is in [.filename]#/etc/rc.serial#. Now, an application w
You can also prevent certain settings from being changed by an application by making adjustments to the "lock state" device. For example, to lock the speed of [.filename]#ttyd5# to 57600 bps, do
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyld5 57600
....
@@ -4054,14 +4054,14 @@ It is common practice to use `dialup` as the terminal type. Many users set up in
After making modifications to [.filename]#/etc/ttys#, you need to send a hangup or HUP signal to the man:init[8] process:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
This forces the man:init[8] process to reread [.filename]#/etc/ttys#. The init process will then start getty processes on all `on` ports. You can find out if logins are available for your port by typing
-[source,bash]
+[source,shell]
....
% ps -ax | grep '[t]tyd1'
....
@@ -4092,7 +4092,7 @@ On your system, the programs man:tip[1] and man:cu[1] are probably executable on
Alternatively, you can let everyone on your system run man:tip[1] and man:cu[1] by typing:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -4123,7 +4123,7 @@ Use the highest bps rate your modem supports in the br capability. Then, type `t
If there is no [.filename]#/dev/cuaa0# on your system, do this:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV cuaa0
@@ -4131,7 +4131,7 @@ If there is no [.filename]#/dev/cuaa0# on your system, do this:
Or use cu as `root` with the following command:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -4278,7 +4278,7 @@ The simple answer is that free memory is wasted memory. Any memory that your pro
Symlinks do not have permissions, and by default, man:chmod[1] will not follow symlinks to change the permissions on the target file. So if you have a file, [.filename]#foo#, and a symlink to that file, [.filename]#bar#, then this command will always succeed.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -4292,7 +4292,7 @@ You have to use either `-H` or `-L` together with the `-R` option to make this w
The `-R` option does a _RECURSIVE_ man:chmod[1]. Be careful about specifying directories or symlinks to directories to man:chmod[1]. If you want to change the permissions of a directory referenced by a symlink, use man:chmod[1] without any options and follow the symlink with a trailing slash ([.filename]#/#). For example, if [.filename]#foo# is a symlink to directory [.filename]#bar#, and you want to change the permissions of [.filename]#foo# (actually [.filename]#bar#), you would do something like:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -4635,14 +4635,14 @@ What you should do is this:
. Write down the instruction pointer value. Note that the `0x8:` part at the beginning is not significant in this case: it is the `0xf0xxxxxx` part that we want.
. When the system reboots, do the following:
+
-[source,bash]
+[source,shell]
....
% nm -n /kernel.that.caused.the.panic | grep f0xxxxxx
....
+
where `f0xxxxxx` is the instruction pointer value. The odds are you will not get an exact match since the symbols in the kernel symbol table are for the entry points of functions and the instruction pointer address will be somewhere inside a function, not at the start. If you do not get an exact match, omit the last digit from the instruction pointer value and try again, i.e.:
+
-[source,bash]
+[source,shell]
....
% nm -n /kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -4676,7 +4676,7 @@ FreeBSD crash dumps are usually the same size as the physical RAM size of your m
Once you have recovered the crash dump, you can get a stack trace with man:gdb[1] as follows:
-[source,bash]
+[source,shell]
....
% gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0
(gdb) where
diff --git a/documentation/content/el/books/handbook/advanced-networking/_index.adoc b/documentation/content/el/books/handbook/advanced-networking/_index.adoc
index 2c9278fae7..4e597c41b0 100644
--- a/documentation/content/el/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/el/books/handbook/advanced-networking/_index.adoc
@@ -78,7 +78,7 @@ For one machine to be able to find another over a network, there must be a mecha
To illustrate different aspects of routing, we will use the following example from `netstat`:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -201,7 +201,7 @@ defaultrouter="10.20.30.1"
It is also possible to do it directly from the command line with the man:route[8] command:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -244,7 +244,7 @@ In this scenario, `RouterA` is our FreeBSD machine that is acting as a router to
If we look at the routing table for `RouterA` we would see something like the following:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -259,7 +259,7 @@ default 10.0.0.1 UGS 0 49378 xl0
With the current routing table `RouterA` will not be able to reach our Internal Net 2. It does not have a route for `192.168.2.0/24`. One way to alleviate this is to manually add the route. The following command would add the Internal Net 2 network to ``RouterA``'s routing table using `192.168.1.2` as the next hop:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -279,7 +279,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
The `static_routes` configuration variable is a list of strings separated by a space. Each string references to a route name. In our above example we only have one string in `static_routes`. This string is _internalnet2_. We then add a configuration variable called `route_internalnet2` where we put all of the configuration parameters we would give to the man:route[8] command. For our example above we would have used the command:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -402,7 +402,7 @@ With this information in the kernel configuration file, recompile the kernel and
When the system is up, we could find some information about the wireless device in the boot messages, like this:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0xff9f0000-0xff9fffff irq 17 at device 2.0 on pci2
ath0: Ethernet address: 00:11:95:d5:43:62
@@ -419,7 +419,7 @@ The infrastructure mode or BSS mode is the mode that is typically used. In this
To scan for networks, use the `ifconfig` command. This request may take a few moments to complete as it requires that the system switches to each available wireless frequency and probes for available access points. Only the super-user can initiate such a scan:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 up scan
SSID BSSID CHAN RATE S:N INT CAPS
@@ -451,7 +451,7 @@ Short slot time. Indicates that the 802.11g network is using a short slot time b
One can also display the current list of known networks with:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 list scan
....
@@ -523,14 +523,14 @@ ifconfig_ath0="DHCP"
At this point, you are ready to bring up the wireless interface:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
....
Once the interface is running, use `ifconfig` to see the status of the interface [.filename]#ath0#:
-[source,bash]
+[source,shell]
....
# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -593,7 +593,7 @@ ifconfig_ath0="WPA DHCP"
Then, we can bring up the interface:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -616,7 +616,7 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Or you can try to configure it manually using the same [.filename]#/etc/wpa_supplicant.conf# <<network-wireless-wpa-wpa-psk,above>>, and run:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -626,7 +626,7 @@ WPA: Key negotiation completed with 00:11:95:c3:0d:ac [PTK=TKIP GTK=TKIP]
The next operation is the launch of the `dhclient` command to get the IP address from the DHCP server:
-[source,bash]
+[source,shell]
....
# dhclient ath0
DHCPREQUEST on ath0 to 255.255.255.255 port 67
@@ -651,7 +651,7 @@ If the [.filename]#/etc/rc.conf# is set up with the line `ifconfig_ath0="DHCP"`
In the case where the use of DHCP is not possible, you can set a static IP address after `wpa_supplicant` has authenticated the station:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig ath0
@@ -668,7 +668,7 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
When DHCP is not used, you also have to manually set up the default gateway and the nameserver:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -727,7 +727,7 @@ ifconfig_ath0="WPA DHCP"
The next step is to bring up the interface with the help of the [.filename]#rc.d# facility:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -788,7 +788,7 @@ ifconfig_ath0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -853,7 +853,7 @@ ifconfig_ath0="WPA DHCP"
Then, we can bring up the interface:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -880,7 +880,7 @@ WEP (Wired Equivalent Privacy) is part of the original 802.11 standard. There is
WEP can be set up with `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 inet 192.168.1.100 netmask 255.255.255.0 ssid my_net \
wepmode on weptxkey 3 wepkey 3:0x3456789012
@@ -910,7 +910,7 @@ network={
Then:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -923,7 +923,7 @@ IBSS mode, also called ad-hoc mode, is designed for point to point connections.
On the box `A`:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mediaopt adhoc
# ifconfig ath0
@@ -941,7 +941,7 @@ The `adhoc` parameter indicates the interface is running in the IBSS mode.
On `B`, we should be able to detect `A`:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 up scan
SSID BSSID CHAN RATE S:N INT CAPS
@@ -950,7 +950,7 @@ On `B`, we should be able to detect `A`:
The `I` in the output confirms the machine `A` is in ad-hoc mode. We just have to configure `B` with a different IP address:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap mediaopt adhoc
# ifconfig ath0
@@ -977,7 +977,7 @@ If you are having trouble with wireless networking, there are a number of steps
The `wpa_supplicant` has much debugging support; try running it manually with the `-dd` option and look at the system logs.
* There are also many lower-level debugging tools. You can enable debugging messages in the 802.11 protocol support layer using the `wlandebug` program found in [.filename]#/usr/src/tools/tools/net80211#. For example:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i ath0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1002,7 +1002,7 @@ The Bluetooth stack in FreeBSD is implemented using the Netgraph framework (see
By default Bluetooth device drivers are available as kernel modules. Before attaching a device, you will need to load the driver into the kernel:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1016,7 +1016,7 @@ ng_ubt_load="YES"
Plug in your USB dongle. The output similar to the following will appear on the console (or in syslog):
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1030,7 +1030,7 @@ The Bluetooth stack has to be started manually on FreeBSD 6.0, and on FreeBSD 5.
Copy [.filename]#/usr/shared/examples/netgraph/bluetooth/rc.bluetooth# into some convenient place, like [.filename]#/etc/rc.bluetooth#. This script is used to start and stop the Bluetooth stack. It is a good idea to stop the stack before unplugging the device, but it is not (usually) fatal. When starting the stack, you will receive output similar to the following:
-[source,bash]
+[source,shell]
....
# /etc/rc.bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1056,7 +1056,7 @@ A single Netgraph node of type _hci_ is created for a single Bluetooth device. T
One of the most common tasks is discovery of Bluetooth devices in RF proximity. This operation is called _inquiry_. Inquiry and other HCI related operations are done with the man:hccontrol[8] utility. The example below shows how to find out which Bluetooth devices are in range. You should receive the list of devices in a few seconds. Note that a remote device will only answer the inquiry if it put into _discoverable_ mode.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1072,7 +1072,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` is unique address of a Bluetooth device, similar to MAC addresses of a network card. This address is needed for further communication with a device. It is possible to assign human readable name to a BD_ADDR. The [.filename]#/etc/bluetooth/hosts# file contains information regarding the known Bluetooth hosts. The following example shows how to obtain human readable name that was assigned to the remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1083,7 +1083,7 @@ If you perform an inquiry on a remote Bluetooth device, it will find your comput
The Bluetooth system provides a point-to-point connection (only two Bluetooth units involved), or a point-to-multipoint connection. In the point-to-multipoint connection the connection is shared among several Bluetooth devices. The following example shows how to obtain the list of active baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1092,7 +1092,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
A _connection handle_ is useful when termination of the baseband connection is required. Note, that it is normally not required to do it by hand. The stack will automatically terminate inactive baseband connections.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1111,7 +1111,7 @@ A single Netgraph node of type _l2cap_ is created for a single Bluetooth device.
A useful command is man:l2ping[8], which can be used to ping other devices. Some Bluetooth implementations might not return all of the data sent to them, so `0 bytes` in the following example is normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1122,7 +1122,7 @@ A useful command is man:l2ping[8], which can be used to ping other devices. Some
The man:l2control[8] utility is used to perform various operations on L2CAP nodes. This example shows how to obtain the list of logical connections (channels) and the list of baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1136,7 +1136,7 @@ Remote BD_ADDR Handle Flags Pending State
Another diagnostic tool is man:btsockstat[1]. It does a job similar to as man:netstat[1] does, but for Bluetooth network-related data structures. The example below shows the same logical connection as man:l2control[8] above.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1207,7 +1207,7 @@ Normally, a SDP client searches for services based on some desired characteristi
The Bluetooth SDP server man:sdpd[8] and command line client man:sdpcontrol[8] are included in the standard FreeBSD installation. The following example shows how to perform a SDP browse query.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1235,7 +1235,7 @@ Bluetooth Profile Descriptor List:
... and so on. Note that each service has a list of attributes (RFCOMM channel for example). Depending on the service you might need to make a note of some of the attributes. Some Bluetooth implementations do not support service browsing and may return an empty list. In this case it is possible to search for the specific service. The example below shows how to search for the OBEX Object Push (OPUSH) service:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1249,14 +1249,14 @@ sdpd_enable="YES"
Then the sdpd daemon can be started with:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sdpd start
....
On FreeBSD 6.0, and on FreeBSD 5.X before 5.5, sdpd is not integrated into the system startup scripts. It has to be started manually with:
-[source,bash]
+[source,shell]
....
# sdpd
....
@@ -1265,7 +1265,7 @@ The local server application that wants to provide Bluetooth service to the remo
The list of services registered with the local SDP server can be obtained by issuing SDP browse query via local control channel:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1287,14 +1287,14 @@ In FreeBSD both profiles are implemented with man:ppp[8] and man:rfcomm_pppd[8]
In the following example man:rfcomm_pppd[8] will be used to open RFCOMM connection to remote device with BD_ADDR 00:80:37:29:19:a4 on DUN RFCOMM channel. The actual RFCOMM channel number will be obtained from the remote device via SDP. It is possible to specify RFCOMM channel by hand, and in this case man:rfcomm_pppd[8] will not perform SDP query. Use man:sdpcontrol[8] to find out RFCOMM channel on the remote device.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
In order to provide Network Access with PPP (LAN) service the man:sdpd[8] server must be running. A new entry for LAN clients must be created in the [.filename]#/etc/ppp/ppp.conf# file. Consult man:rfcomm_pppd[8] manual page for examples. Finally, start RFCOMM PPP server on valid RFCOMM channel number. The RFCOMM PPP server will automatically register Bluetooth LAN service with the local SDP daemon. The example below shows how to start RFCOMM PPP server.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1307,7 +1307,7 @@ The OBEX server and client are implemented as a third-party package obexapp, whi
OBEX client is used to push and/or pull objects from the OBEX server. An object can, for example, be a business card or an appointment. The OBEX client can obtain RFCOMM channel number from the remote device via SDP. This can be done by specifying service name instead of RFCOMM channel number. Supported service names are: IrMC, FTRN and OPUSH. It is possible to specify RFCOMM channel as a number. Below is an example of an OBEX session, where device information object is pulled from the cellular phone, and a new object (business card) is pushed into the phone's directory.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1320,7 +1320,7 @@ Success, response: OK, Success (0x20)
In order to provide OBEX Object Push service, man:sdpd[8] server must be running. A root folder, where all incoming objects will be stored, must be created. The default path to the root folder is [.filename]#/var/spool/obex#. Finally, start OBEX server on valid RFCOMM channel number. The OBEX server will automatically register OBEX Object Push service with the local SDP daemon. The example below shows how to start OBEX server.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1331,7 +1331,7 @@ The Serial Port Profile (SPP) allows Bluetooth devices to perform RS232 (or simi
The man:rfcomm_sppd[1] utility implements the Serial Port profile. A pseudo tty is used as a virtual serial port abstraction. The example below shows how to connect to a remote device Serial Port service. Note that you do not have to specify a RFCOMM channel - man:rfcomm_sppd[1] can obtain it from the remote device via SDP. If you would like to override this, specify a RFCOMM channel on the command line.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -1339,7 +1339,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Once connected, the pseudo tty can be used as serial port:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1350,7 +1350,7 @@ Once connected, the pseudo tty can be used as serial port:
Some older Bluetooth devices do not support role switching. By default, when FreeBSD is accepting a new connection, it tries to perform a role switch and become master. Devices, which do not support this will not be able to connect. Note that role switching is performed when a new connection is being established, so it is not possible to ask the remote device if it does support role switching. There is a HCI option to disable role switching on the local side:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1431,7 +1431,7 @@ Note that these options will make the firewall seem completely transparent; any
The third option is to apply the following man:ipfw[8] rule:
-[source,bash]
+[source,shell]
....
# ipfw add allow mac-type arp layer2
....
@@ -1628,7 +1628,7 @@ For our setup, we shall use a boot floppy. For other methods (PROM, or MS-DOS(R)
To make a boot floppy, insert a floppy in the drive on the machine where you installed Etherboot, then change your current directory to the [.filename]#src# directory in the Etherboot tree and type:
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
@@ -1666,7 +1666,7 @@ It appears that at least some PXE versions want the TCP version of TFTP. In this
. Tell inetd to reread its configuration file. The `inetd_enable="YES"` must be in the [.filename]#/etc/rc.conf# file for this command to execute correctly:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1693,7 +1693,7 @@ nfs_server_enable="YES"
. Tell mountd to reread its configuration file. If you actually needed to enable NFS in [.filename]#/etc/rc.conf# at the first step, you probably want to reboot instead.
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd restart
....
@@ -1758,7 +1758,7 @@ If needed, a swap file located on the server can be accessed via NFS.
The kernel does not support enabling NFS swap at boot time. Swap must be enabled by the startup scripts, by mounting a writable file system and creating and enabling a swap file. To create a swap file of appropriate size, you can do like this:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/path/to/swapfile bs=1k count=1 oseek=100000
....
@@ -2214,7 +2214,7 @@ BUSY
First, you have to get a laplink cable. Then, confirm that both computers have a kernel with man:lpt[4] driver support:
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -2231,7 +2231,7 @@ hint.ppc.0.irq="7"
Then check if the kernel configuration file has a `device plip` line or if the [.filename]#plip.ko# kernel module is loaded. In both cases the parallel networking interface should appear when you use the man:ifconfig[8] command to display it:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -2249,14 +2249,14 @@ IP Address 10.0.0.1 10.0.0.2
Configure the interface on `host1` by doing:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.1 10.0.0.2
....
Configure the interface on `host2` by doing:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -2274,7 +2274,7 @@ You should also add both hosts to [.filename]#/etc/hosts#:
To confirm the connection works, go to each host and ping the other. For example, on `host1`:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -2401,7 +2401,7 @@ A third form is to write the last 32 Bit part in the well known (decimal) IPv4 s
By now the reader should be able to understand the following:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2598,7 +2598,7 @@ To build a fully meshed net we need one ATM connection between each pair of mach
The VPI and VCI values at each end of the connection may of course differ, but for simplicity we assume that they are the same. Next we need to configure the ATM interfaces on each host:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -2608,7 +2608,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
assuming that the ATM interface is [.filename]#hatm0# on all hosts. Now the PVCs need to be configured on `hostA` (we assume that they are already configured on the ATM switches, you need to consult the manual for the switch on how to do this).
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -2629,7 +2629,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Of course other traffic contracts than UBR can be used given the ATM adapter supports those. In this case the name of the traffic contract is followed by the parameters of the traffic. Help for the man:atmconfig[8] tool can be obtained with:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -2650,7 +2650,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
The current state of all CLIP routes can be obtained with:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
@@ -2669,7 +2669,7 @@ device carp
CARP functionality should now be available and may be tuned via several `sysctl` OIDs. Devices themselves may be loaded via the `ifconfig` command:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2722,7 +2722,7 @@ Having the two [.filename]#carp# devices will allow `provider.example.org` to no
====
The default FreeBSD kernel _may_ have preemption enabled. If so, `provider.example.org` may not relinquish the IP address back to the original content server. In this case, an administrator may "nudge" the interface. The following command should be issued on `provider.example.org`:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
diff --git a/documentation/content/el/books/handbook/audit/_index.adoc b/documentation/content/el/books/handbook/audit/_index.adoc
index a2f04ec5df..5371e12163 100644
--- a/documentation/content/el/books/handbook/audit/_index.adoc
+++ b/documentation/content/el/books/handbook/audit/_index.adoc
@@ -229,7 +229,7 @@ Audit trails are stored in the BSM binary format, so tools must be used to modif
For example, the `praudit` utility will dump the entire contents of a specified audit log in plain text:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -255,7 +255,7 @@ This audit represents a successful `execve` call, in which the command `finger d
Since audit logs may be very large, an administrator will likely want to select a subset of records for using, such as records associated with a specific user:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -270,7 +270,7 @@ Members of the `audit` group are given permission to read audit trails in [.file
Audit pipes are cloning pseudo-devices in the device file system which allow applications to tap the live audit record stream. This is primarily of interest to authors of intrusion detection and system monitoring applications. However, for the administrator the audit pipe device is a convenient way to allow live monitoring without running into problems with audit trail file ownership or log rotation interrupting the event stream. To track the live audit event stream, use the following command line
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -294,7 +294,7 @@ It is easy to produce audit event feedback cycles, in which the viewing of each
Audit trails are written to only by the kernel, and managed only by the audit daemon, auditd. Administrators should not attempt to use man:newsyslog.conf[5] or other tools to directly rotate audit logs. Instead, the `audit` management tool may be used to shut down auditing, reconfigure the audit system, and perform log rotation. The following command causes the audit daemon to create a new audit log and signal the kernel to switch to using the new log. The old log will be terminated and renamed, at which point it may then be manipulated by the administrator.
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/el/books/handbook/basics/_index.adoc b/documentation/content/el/books/handbook/basics/_index.adoc
index 24f138a388..df0f356593 100644
--- a/documentation/content/el/books/handbook/basics/_index.adoc
+++ b/documentation/content/el/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ toc::[]
Εάν δεν έχετε ρυθμίσει το FreeBSD να ξεκινά αυτόματα κάποιο γραφικό περιβάλλον εργασίας, τότε αμέσως μετά την εκκίνηση του συστήματος και την ολοκλήρωση των σεναρίων εκκίνησης (startup scripts) θα εμφανιστεί η προτροπή σύνδεσης (login prompt). Θα δείτε κάτι παρόμοιο στην οθόνη σας:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ login:
Αμέσως μετά την ολοκλήρωση των διεργασιών εκκίνησης του FreeBSD και των σεναρίων εκκίνησης (startup scripts) , θα εμφανιστεί το σύμβολο της προτροπής (prompt) και θα σας ζητηθεί ένα έγκυρο όνομα χρήστη:
-[source,bash]
+[source,shell]
....
login:
....
Για παράδειγμα, ας υποθέσουμε πως το όνομα χρήστη σας είναι `john`. Πληκτρολογήστε `john` στην προτροπή και πατήστε kbd:[Enter]. Θα ακολουθήσει μια νέα προτροπή για να δώσετε τον "κωδικό πρόσβασης (password)":
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -203,14 +203,14 @@ options SC_PIXEL_MODE
Μετά τη μεταγλώττιση του πυρήνα με τις παραπάνω δύο επιλογές, μπορείτε να βρείτε ποιες αναλύσεις υποστηρίζονται από το υλικό σας, χρησιμοποιώντας το βοηθητικό πρόγραμμα man:vidcontrol[1]. Για να δείτε μια λίστα από τις υποστηριζόμενες αναλύσεις, δώστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
Η έξοδος της εντολής αυτής, είναι μια λίστα από αναλύσεις οθόνης που υποστηρίζονται από το υλικό σας. Μπορείτε έπειτα να επιλέξετε μια νέα ανάλυση, δίνοντας την ως όρισμα στην man:vidcontrol[1] σε μια κονσόλα που έχετε συνδεθεί ως `root`:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -271,7 +271,7 @@ allscreens_flags="MODE_279"
Μπορείτε να χρησιμοποιήσετε την εντολή man:ls[1] με πρόθεμα `-l` στην γραμμή εντολών για να δείτε τα περιεχόμενα καταλόγου και παρατηρήστε πως περιέχεται μια στήλη με τις άδειες των αρχείων για τον ιδιοκτήτη, την ομάδα, και για όλους τους άλλους. Για παράδειγμα, αν δώσουμε `ls -l` σε ένα τυχαίο κατάλογο:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -283,7 +283,7 @@ total 530
Η πρώτη στήλη που παίρνουμε με την εντολή `ls -l` διαχωρίζεται ως εξής:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -360,14 +360,14 @@ total 530
Οι τιμές εισάγονται με την εντολή man:chmod[1] όπως πριν, αλλά με γράμματα. Για παράδειγμα, θα μπορούσατε να χρησιμοποιήσετε την ακόλουθη εντολή για να απαγορεύσετε σε άλλους χρήστες την πρόσβαση στο _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Μπορούν να γίνουν πάνω από μία αλλαγές στις άδειες ενός αρχείου ταυτόχρονα διαχωρίζοντας τις αλλαγές με κόμμα. Για παράδειγμα, η ακόλουθη εντολή θα αφαιρέσει στην ομάδα και στον "υπόλοιπο κόσμο" την άδεια εγγραφής, και στη συνέχεια θα προσθέσει άδεια εκτέλεσης σε όλους.
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -380,21 +380,21 @@ total 530
Η μετατροπή των file flags γίνεται με την man:chflags[1], χρησιμοποιώντας μια απλή διασύνδεση. Για παράδειγμα, για να ενεργοποιήσουμε το flag του συστήματος μη διαγραφής αρχείου στο αρχείο [.filename]#file1#, δίνουμε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Για να απενεργοποιήσουμε το flag του συστήματος μη διαγραφής αρχείου, απλά δίνουμε την προηγούμενη εντολή με "no" μπροστά από το `sunlink`. Παρατηρήστε:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Για να δείτε τα flags ενός αρχείου, χρησιμοποιήστε την εντολή man:ls[1] με το πρόθεμα `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -423,7 +423,7 @@ total 530
Μπορείτε να καθορίσετε την άδεια setuid, τοποθετώντας τον αριθμό τέσσερα (4) μπροστά από το γενικό σετ των αδειών, όπως φαίνεται στο ακόλουθο παράδειγμα:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -441,7 +441,7 @@ total 530
Στο τερματικό Α:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -449,12 +449,12 @@ Old Password:
Στο τερματικό Β:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -466,14 +466,14 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
Για να θέσετε την άδεια `setgid` σε ένα αρχείο, θα πρέπει να τοποθετήσετε τον αριθμό δύο (2) μπροστά από το σύνολο αδειών, στην εντολή `chmod`. Δείτε το παρακάτω παράδειγμα:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Όπως και πριν, θα παρατηρήσετε τη νέα άδεια `s`, αλλά αυτή τη φορά στο σετ των αδειών της ομάδας:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -487,19 +487,19 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
Όταν θέσετε το `sticky bit` σε ένα κατάλογο, επιτρέπεται η διαγραφή ενός αρχείου μόνο από τον ιδιοκτήτη του. Η άδεια αυτή είναι χρήσιμη για να αποφεύγεται η διαγραφή ενός αρχείου από κοινόχρηστους καταλόγους, όπως για παράδειγμα ο [.filename]#/tmp#, από κάποιο χρήστη που δεν είναι ο ιδιοκτήτης του. Για να θέσετε αυτή την άδεια, τοποθετήστε τον αριθμό ένα (1) στην αρχή του σετ αδειών:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Μπορείτε τώρα να δείτε το αποτέλεσμα, χρησιμοποιώντας την εντολή `ls`:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -832,7 +832,7 @@ device /mount-point fstype options dumpfreq passno
Η βασική μορφή της είναι:
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -894,7 +894,7 @@ To FreeBSD είναι ένα λειτουργικό σύστημα multi-tasking
Η `ps`, από προεπιλογή, εμφανίζει μόνο τις εντολές που τρέχουν και ανήκουν σε εσάς. Για παράδειγμα:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -922,7 +922,7 @@ To FreeBSD είναι ένα λειτουργικό σύστημα multi-tasking
Η έξοδος της man:top[1] είναι παρόμοια. Ένα δείγμα εργασίας της μοιάζει σαν αυτή:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -979,7 +979,7 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
. Βρείτε το PID της διεργασίας, της οποίας επιθυμείτε να στείλετε το σήμα. Ενεργήστε χρησιμοποιώντας τις εντολές man:ps[1] και man:grep[1]. Η εντολή man:grep[1] χρησιμοποιείται για να ψάξει στην έξοδο μιας εντολής, για τους αλφαριθμητικούς χαρακτήρες που έχετε ορίσει. Η εντολή εκτελείται από έναν απλό χρήστη, ενώ η man:inetd[8] εκτελείται από τον `root`, επομένως θα πρέπει να προσθέσετε την επιλογή `ax` στην man:ps[1].
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -989,7 +989,7 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
+
. Χρησιμοποιήστε την man:kill[1] για να στείλετε το σήμα. Επειδή η man:inetd[8] τρέχει από τον `root` θα πρέπει πρώτα να χρησιμοποιήσετε man:su[1] για να γίνετε πρώτα `root`.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1069,14 +1069,14 @@ Password:
Ο ορισμός μιας μεταβλητής περιβάλλοντος διαφέρει κάπως από κέλυφος σε κέλυφος. Για παράδειγμα στα κελύφη τύπου-C, όπως τα `tcsh` και `csh`, θα πρέπει να χρησιμοποιήσετε την `setenv` για να ορίσετε μεταβλητές περιβάλλοντος. Σε κελύφη Bourne όπως τα `sh` και `bash`, θα πρέπει να χρησιμοποιείτε την `export` για να θέσετε τις τρέχουσες μεταβλητές περιβάλλοντος. Για παράδειγμα, για να ορίσετε ή να μετατρέψετε την μεταβλητή περιβάλλοντος `EDITOR`, σε `csh` ή `tcsh` θα πρέπει να δώσετε μια εντολή που να θέτει τη μεταβλητή `EDITOR` στο [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Για κελύφη Bourne:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1094,7 +1094,7 @@ Password:
Μπορείτε επίσης να δώσετε στην `chsh` την επιλογή `-s`, αυτή θα θέσει το κέλυφος για σας, δίχως να χρειαστεί να χρησιμοποιήσετε τον κειμενογράφο. Για παράδειγμα, αν θέλετε να αλλάξετε το κέλυφος σας σε `bash`, η ακόλουθη εντολή είναι ακριβώς αυτό που χρειάζεστε:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1105,7 +1105,7 @@ Password:
Αν για παράδειγμα, εγκαταστήσατε το `bash` μόνοι σας και το τοποθετήσατε στον [.filename]#/usr/local/bin#, τότε θα πρέπει να δώσετε:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1182,14 +1182,14 @@ Password:
Η πιο κατανοητή τεκμηρίωση στο FreeBSD προσφέρεται με τη μορφή των σελίδων βοηθείας (manual pages). Σχεδόν για κάθε πρόγραμμα του συστήματος δίνεται μια σύντομη αναφορά που εξηγεί τις βασικές λειτουργίες και διάφορα άλλα θέματα. Αυτές οι σελίδες προβάλλονται με την εντολή `man`. Η χρήση της εντολής `man` είναι απλή:
-[source,bash]
+[source,shell]
....
% man command
....
όπου `command` είναι το όνομα της εντολής για την οποία επιθυμείτε να μάθετε περισσότερες πληροφορίες. Για παράδειγμα, για να μάθετε περισσότερα για την εντολή `ls` πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1208,7 +1208,7 @@ Password:
Σε μερικές περιπτώσεις, το ίδιο θέμα μπορεί να εμφανίζεται σε περισσότερες ενότητες των σελίδων βοηθείας. Για παράδειγμα, υπάρχει η εντολή χρήστη `chmod` και η κλήση συστήματος `chmod()`. Σε αυτή τη περίπτωση, μπορείτε να πείτε στην εντολή `man` ποια ακριβώς θέλετε επιλέγοντας την ενότητα:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1217,7 +1217,7 @@ Password:
Αυτό είναι χρήσιμο όταν γνωρίζουμε το όνομα της εντολής και απλά επιθυμούμε να μάθουμε πως να την χρησιμοποιήσουμε, αλλά τι γίνεται αν δεν γνωρίζουμε το όνομα της; Μπορείτε να χρησιμοποιήσετε το `man` για να αναζητήσετε λέξεις κλειδιά από τις περιγραφές των εντολών χρησιμοποιώντας την επιλογή `-k`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1226,7 +1226,7 @@ Password:
Επομένως, βλέπετε όλες αυτές τις γουστόζικες εντολές στον [.filename]#/usr/bin# αλλά δεν έχετε την παραμικρή ιδέα του τι πραγματικά κάνουν; Απλά πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1234,7 +1234,7 @@ Password:
ή
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1249,7 +1249,7 @@ Password:
Για να χρησιμοποιήσετε την εντολή man:info[1], απλά πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/el/books/handbook/boot/_index.adoc b/documentation/content/el/books/handbook/boot/_index.adoc
index 86352434dd..2542df5791 100644
--- a/documentation/content/el/books/handbook/boot/_index.adoc
+++ b/documentation/content/el/books/handbook/boot/_index.adoc
@@ -98,7 +98,7 @@ toc::[]
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
Άλλα λειτουργικά συστήματα, και ειδικότερα τα Windows(R), είναι γνωστό ότι γράφουν το δικό τους MBR πάνω σε κάποιο ήδη υπάρχον. Αν σας συμβεί αυτό, ή αν θέλετε να αντικαταστήσετε το υπάρχον MBR σας με αυτό του FreeBSD, χρησιμοποιήστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -150,7 +150,7 @@ label=FreeBSD
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -161,7 +161,7 @@ boot:
Αν χρειαστεί ποτέ να αντικαταστήσετε τα εγκατεστημένα [.filename]#boot1# και [.filename]#boot2# χρησιμοποιήστε το man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -241,14 +241,14 @@ unload::
* Για να ξεκινήσετε το συνηθισμένο πυρήνα σας, αλλά σε κατάσταση ενός χρήστη:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Για να αποφορτώσετε το συνηθισμένο πυρήνα σας και να φορτώσετε τον παλιό σας (ή κάποιο άλλο):
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -261,7 +261,7 @@ unload::
====
Χρησιμοποιήστε το παρακάτω για να φορτώσετε τα συνηθισμένα σας αρθρώματα σε κάποιο άλλο πυρήνα:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -272,7 +272,7 @@ boot-conf
* Για να φορτώσετε ένα script ρύθμισης πυρήνα (ένα αυτοματοποιημένο πρόγραμμα το οποίο εκτελεί τις λειτουργίες που κανονικά θα κάνατε μέσω κάποιου προγράμματος ρύθμισης πυρήνα κατά την εκκίνηση):
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -398,14 +398,14 @@ bitmap_name="/boot/splash.bin"
Το συντακτικό του αρχείου [.filename]#/boot/device.hints# είναι μια μεταβλητή ανά γραμμή, και χρησιμοποιείται το τυποποιημένο "#" για γραμμές που δηλώνονται ως σχόλια. Οι γραμμές δημιουργούνται όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
Η σύνταξη για το Στάδιο 3 του boot loader είναι:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/el/books/handbook/bsdinstall/_index.adoc b/documentation/content/el/books/handbook/bsdinstall/_index.adoc
index f403bd39de..c5638b8a82 100644
--- a/documentation/content/el/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/el/books/handbook/bsdinstall/_index.adoc
@@ -246,7 +246,7 @@ toc::[]
+
Το αρχείο [.filename]#.img#_δεν_ είναι ένα συνηθισμένο αρχείο. Είναι ένα αρχείο _εικόνας (image)_ με όλο το περιεχόμενο που χρειάζεται η μνήμη USB. _Δεν μπορείτε_ να το αντιγράψετε ως ένα κανονικό αρχείο, θα χρειαστεί να το γράψετε απευθείας στη συσκευή προορισμού χρησιμοποιώντας την εντολή man:dd[1]:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -313,7 +313,7 @@ commit your changes?
. Θα αρχίσει η εκκίνηση του FreeBSD. Αν ξεκινάτε από CDROM, θα δείτε μια οθόνη σαν την παρακάτω (έχουμε παραλείψει τις πληροφορίες έκδοσης):
+
-[source,bash]
+[source,shell]
....
Booting from CD-ROM...
645MB medium detected
@@ -350,7 +350,7 @@ image::bsdinstall-boot-loader-menu.png[]
Στα περισσότερα μηχανήματα, μπορείτε να κρατήσετε πιεσμένο το πλήκτρο kbd:[C] κατά την εκκίνηση και θα ξεκινήσετε από το CD. Σε διαφορετική περίπτωση, κρατήστε πιεσμένα τα πλήκτρα kbd:[Command+Option+O+F], ή kbd:[Windows+Alt+O+F] αν χρησιμοποιείτε πληκτρολόγιο που δεν είναι Apple(R). Στην προτροπή `0 >` γράψτε:
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -363,7 +363,7 @@ image::bsdinstall-boot-loader-menu.png[]
Για να γίνει αυτό, επανεκκινήστε το σύστημα και περιμένετε μέχρι να εμφανιστεί το μήνυμα εκκίνησης. Το ακριβές μήνυμα εξαρτάται από το μοντέλο, αλλά γενικά θα δείχνει όπως το παρακάτω:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -373,7 +373,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Αν μετά από αυτό το σημείο το σύστημα σας συνεχίζει με εκκίνηση από το σκληρό δίσκο, θα πρέπει να πιέσετε kbd:[L1+A] ή kbd:[Stop+A] στο πληκτρολόγιο, ή να στείλετε σήμα `BREAK` μέσω της σειριακής κονσόλας (χρησιμοποιώντας π.χ. το `~#` στο man:tip[1] ή man:cu[1]) για να βγείτε στην προτροπή της PROM η οποία μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -983,7 +983,7 @@ image::bsdinstall-mainexit.png[]
Τυπικά μηνύματα εκκίνησης (έχουν παραλειφθεί οι πληροφορίες έκδοσης):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1186,7 +1186,7 @@ login:
Το FreeBSD κάνει εκτεταμένη χρήση των υπηρεσιών ACPI (εφόσον υπάρχει) στις αρχιτεκτονικές i386, amd64 και ia64 ώστε να ρυθμίσει σωστά τις συσκευές κατά την εκκίνηση. Δυστυχώς υπάρχουν ακόμα κάποια προβλήματα τόσο στο ACPI όσο και στο BIOS firmware αρκετών μητρικών. Μπορείτε να απενεργοποιήσετε το ACPI θέτοντας `hint.acpi.0.disabled` στο τρίτο στάδιο του φορτωτή εκκίνησης:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/el/books/handbook/config/_index.adoc b/documentation/content/el/books/handbook/config/_index.adoc
index 19682c6146..8cbe711965 100644
--- a/documentation/content/el/books/handbook/config/_index.adoc
+++ b/documentation/content/el/books/handbook/config/_index.adoc
@@ -198,7 +198,7 @@ exit 0
Μπορεί να εκκινηθεί χειρωνακτικά κάνοντας:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/utility.sh start
....
@@ -309,7 +309,7 @@ HOME=/var/log
Για να εγκαταστήσετε ένα νέο [.filename]#crontab# χρήστη, πρώτα χρησιμοποιήστε τον αγαπημένο σας κειμενογράφο για να δημιουργήσετε ένα αρχείο με το απαιτούμενο τύπο, και τότε χρησιμοποιήστε το `crontab`. Η πιο κοινή χρήση του είναι:
-[source,bash]
+[source,shell]
....
% crontab crontab-file
....
@@ -327,7 +327,7 @@ HOME=/var/log
Το 2002 το FreeBSD ενσωμάτωσε το σύστημα [.filename]#rc.d# του NetBSD για την εκκίνηση του συστήματος. Οι χρήστες θα πρέπει να έχουν αντιληφθεί τα αρχεία που βρίσκονται στον κατάλογο [.filename]#/etc/rc.d#. Πολλά απο αυτά τα αρχεία είναι για τις βασικές υπηρεσίες και μπορούν να ελεγθούν με τις επιλογές `start`, `stop`, και `restart`. Για παράδειγμα, το man:sshd[8] μπορεί να ελεγθεί χρησιμοποιώντας την εξής εντολή:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -343,14 +343,14 @@ natd_enable="YES"
Μιας και το σύστημα [.filename]#rc.d# είναι κυρίως για την εκκίνηση και τον τερματισμό υπηρεσιών κατα την εκκίνηση και τον τερματισμό του συστήματος αντίστοιχα, οι προκαθορισμένες επιλογές `start`, `stop` και `restart` θα πραγματοποιήσουν τις αντίστοιχες ενέργειες αν η κατάλληλες μεταβλητές είναι καθορισμένες στο [.filename]#/etc/rc.conf#. Για παράδειγμα η παραπάνω εντολή `sshd restart` θα δουλέψει μόνο αν η μεταβλητή `sshd_enable` έχει τεθεί σε `YES` μέσα στο [.filename]#/etc/rc.conf#. Για να εκτελέσετε τις επιλογές `start`, `stop` ή `restart` μιας υπηρεσίας ανεξάρτητα απο τις ρυθμίσεις της στο [.filename]#/etc/rc.conf#, η εντολή πρέπει να έχει χαρακτηριστεί με "one". Για παράδειγμα για την επανεκκίνηση του `sshd` ανεξάρτητα απο τις τρέχουσες ρυθμίσεις στο [.filename]#/etc/rc.conf#, εκτελείτε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
Είναι εύκολο να ελέγξετε αν η υπηρεσία είναι ενεργοποιημένη στο [.filename]#/etc/rc.conf# τρέχοντας το κατάλληλο σενάριο [.filename]#rc.d# με την παράμετρο `rcvar`. Κατά συνέπεια, ένας διαχειριστής μπορεί να ελέγξει αν το `sshd` είναι όντως ενεργοποιημένο στο [.filename]#/etc/rc.conf# εκτελώντας:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -364,7 +364,7 @@ $sshd_enable=YES
Για να ελέγξετε αν μια υπηρεσία τρέχει, η επιλογή `status` είναι διαθέσιμη. Για παράδειγμα για να επιβεβαιώστε ότι η υπηρεσία `sshd` τρέχει:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status sshd is
running as pid 433.
@@ -374,7 +374,7 @@ $sshd_enable=YES
Το σύστημα [.filename]#rc.d# δεν χρησιμοποιείτε μόνο για τις υπηρεσίες δικτύου, αλλά επίσης συμβάλει και κατα την εκκίνηση του συστήματος. Για παράδειγμα, σκεφτείτε το αρχείο [.filename]#bgfsck#. Όταν ένα σενάριο εκτελείτε, θα εκτυπώνει το ακόλουθο μήνυμα:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -404,7 +404,7 @@ Starting background file system checks in 60 seconds.
Αν έχετε μια συνηθισμένη κάρτα, κατα πάσα πιθανότητα δεν θα χρειαστεί να ψάξετε πολύ για τον οδηγό. Οι οδηγοί για τις συνηθισμένες κάρτες δικτύου υπάρχουν στον πυρήνα [.filename]#GENERIC#, έτσι ώστε και θα εμφανιστεί κατα την διάρκεια της εκκίνησης, για παράδειγμα:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -454,21 +454,21 @@ ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Το επόμενο βήμα είναι να μεταγλωττίσετε τον δυαδικό οδηγό μέσα σε ένα φορτώσιμο άρθρωμα του πυρήνα. Για να το επιτύχετε αυτό, θα πρέπει σαν `root`, να χρησιμοποιήσετε το man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
Το βοηθητικό πρόγραμμα man:ndisgen[8] είναι διαδραστικό και θα σας ενημερώσει για οποιαδήποτε επιπλέον πληροφορία μπορεί να χρειαστεί; θα παράγει ένα άρθρωμα του πυρήνα στον τρέχωντα κατάλογο και μπορεί να φορτωθεί ως εξής:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER.ko
....
Επιπλέον του παραχθέντος αρθρώματος, θα πρέπει να φορτώσετε τα αρθρώματα [.filename]#ndis.ko# και [.filename]#if_ndis.ko#. Αυτό θα πρέπει να γίνει αυτόματα όταν φορτώνετε οποιαδήποτε εξαρτάται απο το man:ndis[4]. Αν θέλετε να το κάνετε χειρωνακτικά, θα πρέπει να χρησιμοποιήσετε τις ακόλουθες εντολές:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -478,7 +478,7 @@ ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Τώρα, ελέγξτε το man:dmesg[8] για να δείτε αν υπάρχουν σφάλματα κατα την φόρτωση. Αν όλα πήγαν καλά, θα πρέπει να δείτε μια παρόμοια έξοδο με την επόμενη:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -502,7 +502,7 @@ W32DRIVER_load="YES"
Για να εμφανίσετε τις κάρτες δικτύου που έχετε στο σύστημα σας, πληκτρολογήστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -548,7 +548,7 @@ tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
Αν το man:ifconfig[8] εμφανίζει κάτι παρόμοιο με αυτό:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:a0:cc:da:da:da
@@ -584,7 +584,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
Πρώτα δοκιμάστε στην τοπική κάρτα:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -601,7 +601,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Τώρα δοκιμάστε σε ένα άλλο μηχάνημα στο LAN:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -898,14 +898,14 @@ At its core, man:sysctl[8] serves two functions: to read and to modify system se
To view all readable variables:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
To read a particular variable, for example, `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -913,7 +913,7 @@ kern.maxproc: 1044
To set a particular variable, use the intuitive _variable_=_value_ syntax:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -930,7 +930,7 @@ In some cases it may be desirable to modify read-only man:sysctl[8] values. Whil
For instance on some laptop models the man:cardbus[4] device will not probe memory ranges, and fail with errors which look similar to:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -978,7 +978,7 @@ The `SCSI_DELAY` kernel config may be used to reduce system boot times. The defa
The man:tunefs[8] program can be used to fine-tune a file system. This program has many different options, but for now we are only concerned with toggling Soft Updates on and off, which is done by:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1114,14 +1114,14 @@ device md # Memory "disks"
. Create a swapfile ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
. Set proper permissions on ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1135,7 +1135,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
. Reboot the machine or to enable the swap file immediately, type:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1177,7 +1177,7 @@ ACPI and APM cannot coexist and should be used separately. The last one to load
ACPI can be used to put the system into a sleep mode with man:acpiconf[8], the `-s` flag, and a `1-5` option. Most users will only need `1` or `3` (suspend to RAM). Option `5` will do a soft-off which is the same action as:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1208,7 +1208,7 @@ For those of you that want to submit a problem right away, please send the follo
* URL where your _ACPI Source Language_ (ASL) can be found. Do _not_ send the ASL directly to the list as it can be very large. Generate a copy of your ASL by running this command:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
@@ -1242,7 +1242,7 @@ ACPI has three suspend to RAM (STR) states, `S1`-`S3`, and one suspend to disk s
Start by checking `sysctl hw.acpi` for the suspend-related items. Here are the results for a Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1285,7 +1285,7 @@ If you have other problems with ACPI (working with a docking station, devices no
The most common problem is the BIOS vendors providing incorrect (or outright buggy!) bytecode. This is usually manifested by kernel console messages like this:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1295,7 +1295,7 @@ Often, you can resolve these problems by updating your BIOS to the latest revisi
The simplest first check you can do is to recompile your ASL to check for errors. Warnings can usually be ignored but errors are bugs that will usually prevent ACPI from working correctly. To recompile your ASL, issue the following command:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1319,7 +1319,7 @@ Some methods do not explicitly return a value as the standard requires. While AC
After you customize [.filename]#your.asl#, you will want to compile it, run:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1343,7 +1343,7 @@ The ACPI driver has a very flexible debugging facility. It allows you to specify
Debugging output is not enabled by default. To enable it, add `options ACPI_DEBUG` to your kernel configuration file if ACPI is compiled into the kernel. You can add `ACPI_DEBUG=1` to your [.filename]#/etc/make.conf# to enable it globally. If it is a module, you can recompile just your [.filename]#acpi.ko# module as follows:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/el/books/handbook/cutting-edge/_index.adoc b/documentation/content/el/books/handbook/cutting-edge/_index.adoc
index c4d078a52e..7fe8feacc0 100644
--- a/documentation/content/el/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/el/books/handbook/cutting-edge/_index.adoc
@@ -83,7 +83,7 @@ toc::[]
Αν υπάρχει κάποιο `crontab` που χρησιμοποιεί τις δυνατότητες του `freebsd-update`, θα πρέπει να απενεργοποιηθεί πριν ξεκινήσει η παρακάτω διαδικασία. Μπορείτε να εγκαταστήσετε την τελευταία έκδοση του `freebsd-update` κατεβάζοντας το συμπιεσμένο πακέτο από το παραπάνω URL και εκτελώντας τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# gunzip -c freebsd-update-upgrade.tgz | tar xvf -
# mv freebsd-update.sh /usr/sbin/freebsd-update
@@ -160,7 +160,7 @@ MergeChanges /etc/ /var/named/etc/
Τα patches που σχετίζονται με την ασφάλεια, αποθηκεύονται σε ένα απομακρυσμένο μηχάνημα και μπορούν να μεταφορτωθούν και να εγκατασταθούν με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -177,7 +177,7 @@ MergeChanges /etc/ /var/named/etc/
Αν οτιδήποτε πάει στραβά, το `freebsd-update` έχει την ικανότητα να επιστρέφει στην προηγούμενη σταθερή κατάσταση, αναιρώντας το τελευταίο σετ αλλαγών με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -203,7 +203,7 @@ MergeChanges /etc/ /var/named/etc/
Η διαδικασία αυτή θα απομακρύνει τα παλιά αρχεία αντικειμενικού κώδικα (object files) καθώς και τις παλιές βιβλιοθήκες, κάνοντας τις περισσότερες εφαρμογές τρίτων κατασκευαστών να μη λειτουργούν. Σας συνιστούμε είτε να απεγκαταστήσετε όλα τα εγκατεστημένα ports και να τα εγκαταστήσετε ξανά, ή να τα αναβαθμίσετε αργότερα, χρησιμοποιώντας το βοηθητικό πρόγραμμα package:ports-mgmt/portupgrade[]. Οι περισσότεροι χρήστες θα θέλουν να κάνουν μια δοκιμαστική μεταγλώττιση χρησιμοποιώντας την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -215,7 +215,7 @@ MergeChanges /etc/ /var/named/etc/
* Αν έχετε μεταγλωττίσει προσαρμοσμένο πυρήνα μόνο μια φορά, ο πυρήνας στον κατάλογο [.filename]#/boot/kernel.old# είναι στην πραγματικότητα ο [.filename]#GENERIC#. Απλώς μετονομάστε τον κατάλογο σε [.filename]#/boot/GENERIC#.
* Αν έχετε φυσική πρόσβαση στο μηχάνημα, μπορείτε να εγκαταστήσετε ένα αντίγραφο του πυρήνα [.filename]#GENERIC# από το CD-ROM της εγκατάστασης. Τοποθετήστε το CD-ROM στον οδηγό και χρησιμοποιήστε τις παρακάτω εντολές:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -225,7 +225,7 @@ MergeChanges /etc/ /var/named/etc/
Αντικαταστήστε το [.filename]#X.Y-RELEASE# με τους πραγματικούς αριθμούς της έκδοσης που χρησιμοποιείτε. Ο πυρήνας [.filename]#GENERIC# θα εγκατασταθεί από προεπιλογή στον κατάλογο [.filename]#/boot/GENERIC#.
* Αν δεν έχετε κάποια από τις παραπάνω επιλογές, μπορείτε να μεταγλωττίσετε και να εγκαταστήσετε τον πυρήνα [.filename]#GENERIC# μέσω του πηγαίου κώδικα:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/
# env DESTDIR=/boot/GENERIC make kernel
@@ -239,14 +239,14 @@ MergeChanges /etc/ /var/named/etc/
Είναι δυνατές οι αναβαθμίσεις τόσο σε μικρές όσο και σε μεγάλες εκδόσεις, δίνοντας στην εντολή `freebsd-update` τον επιθυμητό αριθμό έκδοσης. Για παράδειγμα, η ακόλουθη εντολή θα αναβαθμίσει το σύστημα σε FreeBSD 8.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 8.1-RELEASE upgrade
....
Μετά τη λήψη της εντολής, το `freebsd-update` θα αξιολογήσει την κατάσταση του συστήματος και του αρχείου ρυθμίσεων του, σε μια απόπειρα να μαζέψει τις απαραίτητες πληροφορίες για την αναβάθμιση του συστήματος. Οι πληροφορίες που ανιχνεύθηκαν θα εμφανιστούν στην οθόνη με τη μορφή μιας λίστας εγκατεστημένων προγραμμάτων. Για παράδειγμα:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
@@ -270,7 +270,7 @@ Does this look reasonable (y/n)? y
Όταν χρησιμοποιείται προσαρμοσμένος πυρήνας, το παραπάνω βήμα θα προκαλέσει την εμφάνιση της παρακάτω προειδοποίησης:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@@ -289,14 +289,14 @@ before running "/usr/sbin/freebsd-update install"
Με το τέλος αυτής τη διαδικασίας, η αναβάθμιση μπορεί να οριστικοποιηθεί στο δίσκο, με τη χρήση της ακόλουθης εντολής:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
Στην πρώτη φάση, θα αλλαχθεί ο πυρήνας και τα σχετικά αρθρώματα. Στο σημείο αυτό, θα πρέπει να γίνει επανεκκίνηση του μηχανήματος. Σε μηχάνημα με προσαρμοσμένο πυρήνα, χρησιμοποιήστε την εντολή man:nextboot[8] ώστε να θέσετε τον πυρήνα για την επόμενη εκκίνηση στον [.filename]#/boot/GENERIC# (ο οποίος έχει ήδη αναβαθμιστεί):
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -309,14 +309,14 @@ before running "/usr/sbin/freebsd-update install"
Μπορείτε να χρησιμοποιήσετε την ακόλουθη εντολή για να επανεκκινήσετε το μηχάνημα με τον νέο πυρήνα:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Μόλις το σύστημα επανέλθει σε λειτουργία, θα πρέπει να εκτελέσετε ξανά το `freebsd-update`. Η προηγούμενη λειτουργία έχει αποθηκευθεί, και έτσι το `freebsd-update` δεν θα ξεκινήσει από την αρχή, αλλά θα απομακρύνει όλες τις παλιές κοινόχρηστες βιβλιοθήκες και τα αρχεία αντικειμενικού κώδικα. Για να συνεχίσετε σε αυτό το στάδιο, δώστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -328,7 +328,7 @@ before running "/usr/sbin/freebsd-update install"
Όλο το λογισμικό τρίτου κατασκευαστή θα πρέπει τώρα να μεταγλωττιστεί και να επανεγκατασταθεί από την αρχή. Αυτό απαιτείται καθώς το εγκατεστημένο λογισμικό ίσως εξαρτάται από βιβλιοθήκες οι οποίες αφαιρέθηκαν κατά τη διαδικασία της αναβάθμισης. Μπορείτε να χρησιμοποιήσετε την εντολή package:ports-mgmt/portupgrade[] για να αυτοματοποιήσετε αυτή τη διαδικασία. Για να ξεκινήσετε, δώστε τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -339,7 +339,7 @@ before running "/usr/sbin/freebsd-update install"
Μόλις ολοκληρωθεί το παραπάνω, ολοκληρώστε τη διαδικασία αναβάθμισης με μια τελευταία κλήση της εντολής `freebsd-update`. Δώστε την παρακάτω εντολή για να ολοκληρώσετε οτιδήποτε έχει απομείνει στη διαδικασία αναβάθμισης:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -353,7 +353,7 @@ before running "/usr/sbin/freebsd-update install"
Το βοηθητικό πρόγραμμα `freebsd-update` μπορεί να χρησιμοποιηθεί για να ελέγξετε την κατάσταση της εγκατεστημένης έκδοσης του FreeBSD σε σχέση με μια γνωστή και σωστή εγκατάσταση. Η επιλογή αυτή συγκρίνει και αξιολογεί την τρέχουσα έκδοση των προγραμμάτων συστήματος, των βιβλιοθηκών και των αρχείων ρύθμισης. Για να ξεκινήσετε τη σύγκριση, δώστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -368,7 +368,7 @@ before running "/usr/sbin/freebsd-update install"
Οι γραμμές αυτές έχουν γενικά μεγάλο μήκος, αλλά είναι εύκολο να επεξεργαστούμε την έξοδο. Για παράδειγμα, για να δείτε μια λίστα όλων των αρχείων που διαφέρουν από αυτά της επίσημης έκδοσης, δώστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -386,7 +386,7 @@ before running "/usr/sbin/freebsd-update install"
Το βασικό σύστημα του FreeBSD περιλαμβάνει επίσης ένα βοηθητικό πρόγραμμα για την ενημέρωση της Συλλογής των Ports. Πρόκειται για το man:portsnap[8]. Όταν το εκτελέσετε, θα συνδεθεί σε ένα απομακρυσμένο διακομιστή, θα επαληθεύσει το κλειδί του πηγαίου κώδικα, και θα κατεβάσει ένα νέο αντίγραφο της Συλλογής των Ports. Το κλειδί χρησιμοποιείται για να επαληθεύσει την ακεραιότητα όλων των αρχείων που μεταφορτώνονται, εξασφαλίζοντας ότι δεν έχουν αλλοιωθεί κατά την μεταφορά. Για να κατεβάσετε τα τελευταία αρχεία της Συλλογής των Ports, εκτελέστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 9 mirrors found.
@@ -405,7 +405,7 @@ Fetching 133 new ports or files... done.
Όταν το man:portsnap[8] εκτελέσει επιτυχώς τη λειτουργία `fetch`, η Συλλογή των Ports και τα αντίστοιχα patches έχουν αποθηκευθεί στο τοπικό σύστημα και έχει γίνει η επαλήθευση τους. Την πρώτη φορά που θα εκτελέσετε το `portsnap`, θα πρέπει να χρησιμοποιήσετε το `extract` για να εγκαταστήσετε τα ενημερωμένα αρχεία:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -424,7 +424,7 @@ Fetching 133 new ports or files... done.
Αν έχετε ήδη εγκατεστημένη την Συλλογή των Ports, χρησιμοποιήστε την εντολή `portsnap update` για να την ενημέρωσετε:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -433,7 +433,7 @@ Fetching 133 new ports or files... done.
Μπορείτε να εκτελέσετε τις διαδικασίες `fetch` και `extract` ή `update` διαδοχικά, όπως φαίνεται στο παρακάτω παράδειγμα:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -473,7 +473,7 @@ Fetching 133 new ports or files... done.
Το βοηθητικό πρόγραμμα CVSup μπορεί να κατεβάσει ένα καθαρό αντίγραφο του πηγαίου κώδικα της τεκμηρίωσης, χρησιμοποιώντας το [.filename]#/usr/shared/examples/cvsup/doc-supfile# ως πρότυπο αρχείο ρυθμίσεων. Ο προεπιλεγμένος υπολογιστής ενημερώσεων στο παραπάνω αρχείο είναι ρυθμισμένος σε πλασματική τιμή. Ωστόσο, η man:cvsup[1] δέχεται όνομα υπολογιστή μέσω της γραμμής εντολών, έτσι μπορείτε να ανακτήσετε τον πηγαίο κώδικα της τεκμηρίωσης μέσω κάποιου εξυπηρετητή CVSup γράφοντας:
-[source,bash]
+[source,shell]
....
# cvsup -h cvsup.FreeBSD.org -g -L 2 /usr/shared/examples/cvsup/doc-supfile
....
@@ -486,7 +486,7 @@ Fetching 133 new ports or files... done.
Μετά την αρχική ανάκτηση του πηγαίου κώδικα, ένας εναλλακτικός τρόπος ενημέρωσης της τεκμηρίωσης είναι μέσω του αρχείου [.filename]#Makefile# στον κατάλογο [.filename]#/usr/doc#. Θέτοντας τις μεταβλητές `SUP_UPDATE`, `SUPHOST` και `DOCSUPFILE` στο αρχείο [.filename]#/etc/make.conf#, μπορείτε να εκτελέσετε:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update
@@ -536,7 +536,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Μπορείτε να προχωρήσετε σε πλήρη ενημέρωση όλων των γλωσσών που ορίζονται στην επιλογή `DOC_LANG` του Makefile, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -544,7 +544,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Αν έχετε ρυθμίσει το [.filename]#make.conf# με τις σωστές τιμές για τις επιλογές `DOCSUPFILE`, `SUPHOST` και `SUP_UPDATE`, μπορείτε να συνδυάσετε τα βήματα ενημέρωσης και εγκατάστασης του πηγαίου κώδικα σε ένα, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update install clean
@@ -552,7 +552,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Αν επιθυμείτε την ενημέρωση μιας μόνο συγκεκριμένης γλώσσας, μπορείτε να καλέσετε την man:make[1] σε ένα συγκεκριμένο υποκατάλογο του [.filename]#/usr/doc#, π.χ.:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make update install clean
@@ -560,7 +560,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Μπορείτε να καθορίσετε τη μορφή της τεκμηρίωσης που θα εγκατασταθεί, ρυθμίζοντας τη μεταβλητή `FORMATS` του make, π.χ.:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -594,7 +594,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Για να εγκαταστήσετε ένα port τεκμηρίωσης από τον πηγαίο κώδικα, εκτελέστε τις παρακάτω εντολές (ως `root`):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -624,7 +624,7 @@ DOCSUPFILE?= /usr/shared/examples/cvsup/doc-supfile
Παρακάτω θα βρείτε ένα σύντομο παράδειγμα σχετικό με τη χρήση των μεταβλητών για την εγκατάσταση της Αγγλικής τεκμηρίωσης σε μορφή PDF:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make -DWITH_PDF DOCBASE=share/doc/freebsd/en install clean
@@ -644,7 +644,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Για παράδειγμα, η παρακάτω εντολή θα εγκαταστήσει την τελευταία έκδοση του έτοιμου πακέτου της Ελληνικής τεκμηρίωσης:
-[source,bash]
+[source,shell]
....
# pkg_add -r el-freebsd-doc
....
@@ -659,7 +659,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Για να ενημερώσετε ένα ήδη εγκατεστημένο port τεκμηρίωσης, μπορείτε να χρησιμοποιήσετε οποιοδήποτε εργαλείο αναβάθμισης ports. Για παράδειγμα, η παρακάτω εντολή ενημερώνει την εγκατεστημένη Ελληνική τεκμηρίωση μέσω του εργαλείου package:ports-mgmt/portupgrade[] με τη χρήση μόνο έτοιμων πακέτων:
-[source,bash]
+[source,shell]
....
# portupgrade -PP el-freebsd-doc
....
@@ -870,7 +870,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Ανακεφαλαιώνοντας όλα τα βήματα τα οποία περιγράψαμε παραπάνω, η προτεινόμενη διαδικασία αναβάθμισης του FreeBSD από τον πηγαίο κώδικα του συστήματος είναι:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -886,7 +886,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Μετά την επιτυχή ολοκλήρωση του `installkernel`, θα πρέπει να επανεκκινήσετε σε κατάσταση ενός χρήστη (π.χ. χρησιμοποιώντας την εντολή `boot -s` στην προτροπή του φορτωτή εκκίνησης). Έπειτα εκτελέστε:
-[source,bash]
+[source,shell]
....
# mount -u /
# mount -a -t ufs
@@ -937,7 +937,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Η λύση είναι να εκτελέσετε το man:mergemaster[8] σε κατάσταση προ-εγκατάστασης, δίνοντας την επιλογή `-p`. Αυτή θα συγκρίνει μόνο τα αρχεία που είναι απαραίτητα για την επιτυχία εκτέλεσης του `buildworld` ή του `installworld`.
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/mergemaster
# ./mergemaster.sh -p
@@ -948,7 +948,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Αν αισθάνεστε ιδιαίτερα παρανοϊκός, μπορείτε να ελέγξετε το σύστημα σας για να δείτε ποια αρχεία ανήκουν στην ομάδα που μετονομάζετε ή διαγράφετε:
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -965,7 +965,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Ως υπερχρήστης μπορείτε να εκτελέσετε:
-[source,bash]
+[source,shell]
....
# shutdown now
....
@@ -974,7 +974,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Εναλλακτικά, επανεκκινήστε το σύστημα και στην προτροπή του φορτωτή εκκίνησης, επιλέξτε "single user". Το σύστημα θα ξεκινήσει σε κατάσταση ενός χρήστη. Στην προτροπή της γραμμής εντολών θα πρέπει να γράψετε:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -988,7 +988,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
====
Αν το CMOS ρολόι του υπολογιστή σας είναι ρυθμισμένο σε τοπική ώρα και όχι σε GMT (αυτό είναι αλήθεια αν η έξοδος της εντολής man:date[1] δεν δείχνει σωστή ημερομηνία και ώρα), ίσως χρειαστεί να εκτελέσετε επίσης την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -1005,7 +1005,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Κάποια αρχεία σε υποκαταλόγους του [.filename]#/usr/obj# μπορεί να έχουν χαρακτηριστεί ως immutable μέσω του αντίστοιχου flag (για περισσότερες λεπτομέρειες δείτε το man:chflags[1]). Πριν διαγράψετε αυτά τα αρχεία, θα πρέπει πρώτα να καταργήσετε αυτό το flag.
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -1021,7 +1021,7 @@ H {doceng} προετοιμάζει μηνιαία στιγμιότυπα πακ
Ο ευκολότερος τρόπος για να γίνει αυτό, είναι χρησιμοποιώντας την εντολή man:script[1] με μια παράμετρο που να καθορίζει το όνομα του αρχείου στο οποίο θα αποθηκευτεί η έξοδος. Θα πρέπει να το εκτελέσετε αμέσως πριν ξεκινήσετε την μεταγλώττιση του βασικού συστήματος, και να γράψετε `exit` μόλις η διαδικασία ολοκληρωθεί.
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -1038,7 +1038,7 @@ Script done, ...
Θα πρέπει να βρίσκεστε στον κατάλογο [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -1049,7 +1049,7 @@ Script done, ...
Η γενική μορφή της εντολής που θα πληκτρολογήσετε είναι η παρακάτω:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABLE target
....
@@ -1058,7 +1058,7 @@ Script done, ...
Η επιλογή `-D__VARIABLE__` περνάει μια μεταβλητή στο [.filename]#Makefile#. Η συμπεριφορά του [.filename]#Makefile# ελέγχεται από τέτοιου είδους μεταβλητές. Πρόκειται για τις ίδιες μεταβλητές που καθορίζονται και στο [.filename]#/etc/make.conf#, και αυτός είναι ένας ακόμα τρόπος καθορισμού τους.
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE target
....
@@ -1076,7 +1076,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Στις περισσότερες περιπτώσεις δεν θα χρειαστεί να δώσετε καμία παράμετρο στο man:make[1], και έτσι η εντολή σας θα μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
# make target
....
@@ -1093,7 +1093,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Εκτελέστε την εντολή:
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -1102,7 +1102,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Σε ένα τυπικό μηχάνημα με μια CPU, θα μπορούσατε να δώσετε:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -1128,7 +1128,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
====
Αν θέλετε να μεταγλωττίσετε νέο πυρήνα, και έχετε ήδη ένα αρχείο με προσαρμοσμένες ρυθμίσεις, χρησιμοποιήστε απλώς την επιλογή `KERNCONF=MYKERNEL` με τον τρόπο που φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
@@ -1151,7 +1151,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Εκτελέστε τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -1163,14 +1163,14 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Για παράδειγμα αν εκτελέσετε:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
Θα πρέπει να εγκαταστήσετε το αποτέλεσμα χρησιμοποιώντας:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -1217,7 +1217,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
====
Αν και θεωρητικά, τίποτα δεν πρόκειται να πειράξει αυτό τον κατάλογο αυτόματα, είναι πάντα καλύτερα να είμαστε σίγουροι. Για το λόγο αυτό, αντιγράψτε τον υπάρχοντα κατάλογο [.filename]#/etc# σε κάποιο ασφαλές μέρος. Χρησιμοποιήστε μια εντολή όπως η παρακάτω:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -1227,7 +1227,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
θα πρέπει να δημιουργήσετε μια ψευτο-δομή καταλόγων για να εγκαταστήσετε το νέο κατάλογο [.filename]#/etc# και άλλα αρχεία. Μια λογική επιλογή είναι ο κατάλογος [.filename]#/var/tmp/root#, και κάτω από αυτόν, θα πρέπει επίσης να δημιουργήσετε και μια ολόκληρη σειρά από τους υποκαταλόγους που απαιτούνται.
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -1236,7 +1236,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Οι παραπάνω εντολές θα δημιουργήσουν την απαιτούμενη δομή καταλόγων και θα εγκαταστήσουν τα αρχεία. Μεγάλο μέρος των υποκαταλόγων που έχουν δημιουργηθεί κάτω από τον [.filename]#/var/tmp/root# είναι άδειοι, και πρέπει να διαγραφούν. Ο απλούστερος τρόπος για να γίνει αυτό, φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2/dev/null
@@ -1250,7 +1250,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
Ο απλούστερος τρόπος για να συγκρίνετε δύο αρχεία, είναι να χρησιμοποιήσετε την εντολή man:diff[1]:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -1267,7 +1267,7 @@ NO_PROFILE= true # Avoid compiling profiled libraries
[.procedure]
. Μεταγλωττίστε το βασικό σύστημα όπως κάνετε συνήθως. Όταν θέλετε να ενημερώσετε τον [.filename]#/etc# και τους άλλους καταλόγους, δώστε στον κατάλογο προορισμού ένα όνομα βασισμένο στην τρέχουσα ημερομηνία. Αν το κάνατε αυτό στις 14 Φεβρουαρίου 1998, θα γράφατε κάτι σαν το παρακάτω:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -1281,7 +1281,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
. Όταν κατεβάσετε την τελευταία έκδοση του πηγαίου κώδικα και τον μεταγλωττίσετε ξανά, ακολουθήστε το βήμα 1. Αυτό θα σας δώσει ένα κατάλογο που μπορεί να ονομάζεται [.filename]#/var/tmp/root-19980221# (αν ανάμεσα στις δύο μεταγλωττίσεις παρεμβάλλεται διάστημα μιας εβδομάδας).
. Μπορείτε τώρα να δείτε τις διαφορές που υπάρχουν ανάμεσα στις δύο εβδομάδες, χρησιμοποιώντας την εντολή man:diff[1] σε αναδρομική λειτουργία για να δημιουργήσετε τις διαφορές μεταξύ των δύο καταλόγων:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1290,7 +1290,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
Τυπικά, αυτό το σετ αλλαγών θα είναι πολύ μικρότερο από αυτό μεταξύ του [.filename]#/var/tmp/root-19980221/etc# και του [.filename]#/etc#. Καθώς αυτό το σετ αλλαγών είναι μικρότερο, είναι και πιο εύκολο να εφαρμόσετε αυτές τις αλλαγές στον κατάλογο [.filename]#/etc#.
. Μπορείτε τώρα να διαγράψετε τον παλιότερο από τους δύο καταλόγους [.filename]#/var/tmp/root-*#:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1299,7 +1299,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
Μπορείτε επίσης να χρησιμοποιήσετε την εντολή man:date[1] για να αυτοματοποιήσετε την δημιουργία των ονομάτων καταλόγων:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1311,7 +1311,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
Η διαδικασία έχει πλέον ολοκληρωθεί. Αφού επαληθεύσετε ότι όλα βρίσκονται στις σωστές θέσεις, μπορείτε να επανεκκινήσετε το σύστημα. Μια απλή εντολή man:shutdown[8] είναι επαρκής:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1322,7 +1322,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
Αν τα πράγματα δεν πήγαν εντελώς σωστά, είναι εύκολο να μεταγλωττίσετε ξανά οποιοδήποτε τμήμα του συστήματος. Για παράδειγμα, αν διαγράψετε κατά λάθος το [.filename]#/etc/magic# ως μέρος μιας αναβάθμισης ή συγχώνευσης του [.filename]#/etc#, η εντολή man:file[1] θα σταματήσει να λειτουργεί. Στην περίπτωση αυτή, η διόρθωση είναι να εκτελέσετε:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1335,7 +1335,7 @@ _Μην διαγράψετε_ τον κατάλογο [.filename]#/var/tmp/root-
Δεν υπάρχει εύκολη απάντηση σε αυτό το ερώτημα, καθώς εξαρτάται από τη φύση της αλλαγής. Για παράδειγμα, αν εκτελέσετε το CVSup, και δείτε ότι ενημερώθηκαν τα παρακάτω αρχεία:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1374,7 +1374,7 @@ _Σε γενικές γραμμές_ (και αυτός δεν είναι καν
Αν βρίσκεστε στο τελευταίο στάδιο, το οποίο θα το γνωρίζετε κοιτάζοντας την έξοδο που έχετε αποθηκεύσει, είναι σχετικά ασφαλές να κάνετε:
-[source,bash]
+[source,shell]
....
... fix the problem ...
# cd /usr/src
@@ -1385,7 +1385,7 @@ _Σε γενικές γραμμές_ (και αυτός δεν είναι καν
Αν δείτε το μήνυμα:
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1406,7 +1406,7 @@ Building everything..
* Χρησιμοποιήστε την επιλογή `-j__n__` στο man:make[1] ώστε να εκτελούνται παράλληλα πολλαπλές διεργασίες μεταγλώττισης. Αυτό συνήθως βοηθάει ακόμα και σε περίπτωση που έχετε μηχάνημα με ένα επεξεργαστή.
* Μπορείτε να προσαρτήσετε (ή να επαναπροσαρτήσετε) το σύστημα αρχείων στο οποίο είναι αποθηκευμένο το [.filename]#/usr/src# με την επιλογή `noatime`. Αυτό αποτρέπει την καταγραφή ημερομηνίας / ώρας πρόσβασης στο σύστημα αρχείων. Κατά πάσα πιθανότητα, δεν χρειάζεστε αυτή την πληροφορία έτσι και αλλιώς.
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1427,7 +1427,7 @@ Building everything..
Αν το σύστημα αρχείων περιέχει μόνο το [.filename]#/usr/obj#, το παραπάνω δεν είναι πρόβλημα. Αν ωστόσο έχετε και άλλα πολύτιμα δεδομένα στο ίδιο σύστημα αρχείων, σιγουρευτείτε ότι έχετε ενημερωμένα αντίγραφα ασφαλείας πριν ενεργοποιήσετε αυτή την επιλογή.
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1442,7 +1442,7 @@ Building everything..
Σιγουρευτείτε ότι το περιβάλλον σας δεν έχει υπολείμματα από προηγούμενες μεταγλωττίσεις. Αυτό είναι αρκετά απλό.
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
@@ -1464,7 +1464,7 @@ Building everything..
Υποθέτουμε ότι χρησιμοποιείτε τα βήματα που περιγράφονται στο <<canonical-build>>. Μετά την επιτυχή εκτέλση της εντολής `make installworld` και του `mergemaster` που ακολουθεί, θα πρέπει να ελέγξετε για παρωχημένα αρχεία και βιβλιοθήκες όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make check-old
@@ -1472,7 +1472,7 @@ Building everything..
Αν βρεθούν παρωχημένα αρχεία, μπορείτε να τα διαγράψετε με τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# make delete-old
....
@@ -1485,7 +1485,7 @@ Building everything..
Για κάθε αρχείο που θα διαγραφεί, θα σας ζητηθεί να επιβεβαιώσετε την ενέργεια. Μπορείτε να παραλείψετε την ερώτηση και να αφήσετε το σύστημα να διαγράψει αυτά τα αρχεία αυτόματα χρησιμοποιώντας την μεταβλητή του make `BATCH_DELETE_OLD_FILES` με τον τρόπο που φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# make -DBATCH_DELETE_OLD_FILES delete-old
....
@@ -1499,7 +1499,7 @@ Building everything..
Οι παρωχημένες κοινόχρηστες βιβλιοθήκες μπορούν να δημιουργήσουν προβλήματα λόγω συγκρούσεων με νεώτερες εκδόσεις. Σε αυτές τις περιπτώσεις, θα δείτει μηνύματα όπως τα παρακάτω:
-[source,bash]
+[source,shell]
....
/usr/bin/ld: warning libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5
/usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so may conflict with librpcsvc.so.5
@@ -1507,7 +1507,7 @@ Building everything..
Για να επιλύσετε τέτοιου είδους προβλήματα, βρείτε ποιο port εγκατέστησε την βιβλιοθήκη:
-[source,bash]
+[source,shell]
....
# pkg_info -W /usr/local/lib/libtiff.so
/usr/local/lib/libtiff.so was installed by package tiff-3.9.4
@@ -1517,7 +1517,7 @@ Building everything..
Έπειτα, απεγκαταστήστε, επαναμεταγλωττίστε και επανεγκατασήστε το port. Για να αυτοματοποιήσετε αυτή τη διαδικασία μπορείτε να χρησιμοποιήσετε τα βοηθητικά προγράμματα package:ports-mgmt/portmaster[] και package:ports-mgmt/portupgrade[]. Αφού βεβαιωθείτε ότι οι παλιές βιβλιοθήκες δεν χρησιμοποιούνται πλέον από κανένα πρόγραμμα, μπορείτε να τις διαγράψετε με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
diff --git a/documentation/content/el/books/handbook/desktop/_index.adoc b/documentation/content/el/books/handbook/desktop/_index.adoc
index 65bfc7f979..f2b766a5b3 100644
--- a/documentation/content/el/books/handbook/desktop/_index.adoc
+++ b/documentation/content/el/books/handbook/desktop/_index.adoc
@@ -114,21 +114,21 @@ toc::[]
Εγκαταστήστε το πακέτο γράφοντας:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Η παραπάνω εντολή θα εγκαταστήσει την τελευταία σταθερή έκδοση του Firefox. Αν θέλετε να εγκαταστήσετε την παλιά έκδοση εκτεταμένης υποστήριξης (Extended Support Release, ESR), πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox-esr
....
Μπορείτε επίσης να χρησιμοποιήσετε την Συλλογή των Ports αν προτιμάτε να μεταγλωττίσετε από τον πηγαίο κώδικα:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -146,7 +146,7 @@ toc::[]
Εγκαταστήστε το OpenJDK 6 από τη Συλλογή των Ports, πληκτρολογώντας:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -154,7 +154,7 @@ toc::[]
Εγκαταστήστε έπειτα το port package:java/icedtea-web[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -166,7 +166,7 @@ toc::[]
Αν ο φυλλομετρητής δεν καταφέρει να εντοπίσει το πρόσθετο, κάθε χρήστης θα χρειαστεί να εκτελέσει την παρακάτω εντολή και να επανεκκινήσει το φυλλομετρητή του:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/lib/IcedTeaPlugin.so \
$HOME/.mozilla/plugins/
@@ -200,7 +200,7 @@ toc::[]
+
Για να λειτουργήσει σωστά αυτή η έκδοση, θα χρειαστεί να δημιουργήσετε τον συμβολικό σύνδεσμο που φαίνεται παρακάτω:
+
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -211,7 +211,7 @@ toc::[]
Μετά την εγκατάσταση του σωστού (σύμφωνα με την έκδοση του FreeBSD) Flash(TM) port, ο κάθε χρήστης θα πρέπει να ολοκληρώσει την προσωπική του εγκατάσταση του plugin εκτελώντας την παρακάτω εντολή του `nspluginwrapper`:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
@@ -225,14 +225,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Αν δεν μπορείτε ή δεν θέλετε να το μεταγλωττίσετε, απλώς εγκαταστήστε το πακέτο από το δίκτυο:
-[source,bash]
+[source,shell]
....
# pkg_add -r swfdec-plugin
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να το μεταγλωττίσετε και να το εγκαταστήσετε από τη Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/swfdec-plugin
# make install clean
@@ -246,14 +246,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να χρησιμοποιήσετε την FreeBSD έκδοση του Opera, εγκαταστήστε το πακέτο:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Ορισμένες τοποθεσίες FTP δεν διαθέτουν όλα τα πακέτα, αλλά μπορείτε να έχετε το ίδιο αποτέλεσμα μέσω της συλλογής των Ports, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -263,7 +263,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Το πρόσθετο Adobe(R) Flash(TM) δεν είναι διαθέσιμο για το FreeBSD. Διατίθεται ωστόσο μια έκδοση κατάλληλη για το Linux(R). Για να την χρησιμοποιήσετε θα πρέπει αρχικά να εγκαταστήσετε το port package:www/linux-f10-flashplugin11[] και έπειτα το port package:www/opera-linuxplugins[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/linux-f11-flashplugin10
# make install clean
@@ -283,7 +283,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Ο Konqueror υποστηρίζει τόσο το WebKit όσο και το δικό του KHTML. Το WebKit χρησιμοποιείται από πολλούς σύγχρονους φυλλομετρητές, συμπεριλαμβανομένου και του Chromium. Για να χρησιμοποιήσετε το WebKit με τον Konqueror στο FreeBSD:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/kwebkitpart
# make install clean
@@ -299,14 +299,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Ο Chromium μπορεί να εγκατασταθεί από πακέτο, με την εντολή:
-[source,bash]
+[source,shell]
....
# pkg_add -r chromium
....
Εναλλακτικά, μπορείτε να μεταγλωττίσετε τον Chromium χρησιμοποιώντας τη Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -327,7 +327,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Εγκαταστήστε το OpenJDK 6 μέσω της Συλλογής των Ports, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -335,7 +335,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Έπειτα, εγκαταστήστε το package:java/icedtea-web[] από τη Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -345,7 +345,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Αν το πρόσθετο δεν εμφανίζεται στον Chromium, εκτελέστε τις παρακάτω εντολές και επανεκκινήστε το φυλλομετρητή σας:
-[source,bash]
+[source,shell]
....
# mkdir -p /usr/local/shared/chromium/plugins
# ln -s /usr/local/lib/IcedTeaPlugin.so \
@@ -411,14 +411,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το KOffice για το KDE4 ως πακέτο, δώστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice-kde4
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports. Για παράδειγμα, για να εγκαταστήσετε το KOffice για το KDE4, πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde4
# make install clean
@@ -432,14 +432,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Το AbiWord είναι διαθέσιμο ως πακέτο. Μπορείτε να το εγκαταστήσετε γράφοντας:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Αν το πακέτο δεν είναι διαθέσιμο για κάποιο λόγο, μπορείτε να το μεταγλωττίσετε από την Συλλογή των Ports. Σε αυτή την περίπτωση πιθανώς να εγκαταστήσετε νεώτερη έκδοση σε σχέση με το έτοιμο πακέτο. Μπορείτε να το κάνετε ως εξής:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -451,14 +451,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Μπορείτε να εγκαταστήσετε το πακέτο δίνοντας την εντολή:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Αν η τοποθεσία FTP που χρησιμοποιείτε δεν διαθέτει αυτό το πακέτο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports. Ο κατάλογος http://www.FreeBSD.org/ports/[graphics] της Συλλογής των Ports περιέχει επίσης και το The Gimp Manual (εγχειρίδιο χρήσης). Δείτε παρακάτω πως να το εγκαταστήσετε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -479,7 +479,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το OpenOffice.org, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -491,7 +491,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Από τη στιγμή που το πακέτο εγκατασταθεί, πρέπει να γράψετε απλώς την παρακάτω εντολή για να εκτελέσετε το OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -503,7 +503,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Αν τα πακέτα του OpenOffice.org δεν είναι διαθέσιμα, έχετε πάντα την επιλογή να μεταγλωττίσετε το αντίστοιχο port. Ωστόσο, να έχετε υπόψη σας ότι αυτό απαιτεί αρκετό χώρο στο δίσκο και θα χρειαστεί και πάρα πολύ χρόνο για να ολοκληρωθεί.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-3
# make install clean
@@ -513,7 +513,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
====
Αν θέλετε να δημιουργήσετε μια έκδοση με τις δικές σας τοπικές ρυθμίσεις, αντικαταστήστε την προηγούμενη γραμμή εντολών με την επόμενη:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -523,7 +523,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Μόλις γίνει αυτό, μπορείτε να ξεκινήσετε την εφαρμογή OpenOffice.org δίνοντας την εντολή:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -536,7 +536,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το LibreOffice από έτοιμο πακετό, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r libreoffice
....
@@ -548,7 +548,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Μετά την εγκατάσταση του πακέτου, πληκτρολογήστε το παρακάτω για να εκτελέσετε το LibreOffice:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -560,7 +560,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Αν δεν υπάρχουν διαθέσιμα πακέτα για το LibreOffice, έχετε επίσης την επιλογή να το μεταγλωττίσετε από το αντίστοιχο port. Θα πρέπει ωστόσο να γνωρίζετε ότι απαιτείται αρκετός χώρος στο δίσκο και αρκετός χρόνος για τη μεταγλώττιση.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -570,7 +570,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
====
Αν θέλετε να δημιουργήσετε μια έκδοση με υποστήριξη κάποιας συγκεκριμένης γλώσσας, αντικαταστήστε την προηγούμενη εντολή με:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -580,7 +580,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Μπορείτε έπειτα να εκτελέσετε το LibreOffice χρησιμοποιώντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -627,7 +627,7 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το Acrobat Reader(R) 8 από τη Συλλογή των Ports, γράψτε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread8
# make install clean
@@ -641,14 +641,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το gv ως πακέτο, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -660,14 +660,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το Xpdf ως πακέτο, δώστε την εντολή:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Αν το πακέτο δεν είναι διαθέσιμο ή προτιμάτε να χρησιμοποιήσετε την Συλλογή των Ports, γράψτε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -681,14 +681,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Αν θέλετε να εγκαταστήσετε το GQview ως πακέτο, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Αν το πακέτο δεν είναι διαθέσιμο, ή προτιμάτε να χρησιμοποιήσετε την Συλλογή των Ports, γράψτε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -738,14 +738,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το GnuCash στο σύστημα σας, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -757,14 +757,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το Gnumeric ως πακέτο, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -776,14 +776,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το Abacus ως πακέτο, γράψτε:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports, γράφοντας:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -795,14 +795,14 @@ To Swfdec είναι μια βιβλιοθήκη για αποκωδικοποί
Για να εγκαταστήσετε το KMyMoney ως πακέτο, εκτελέστε την εντολή:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Αν το πακέτο δεν είναι διαθέσιμο, μπορείτε να χρησιμοποιήσετε την Συλλογή των Ports, όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/el/books/handbook/disks/_index.adoc b/documentation/content/el/books/handbook/disks/_index.adoc
index cf1cc32c2f..e1f2685c99 100644
--- a/documentation/content/el/books/handbook/disks/_index.adoc
+++ b/documentation/content/el/books/handbook/disks/_index.adoc
@@ -131,7 +131,7 @@ If the disk to be added is not blank, old partition information can be removed w
The partition scheme is created, and then a single partition is added:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs ada1
@@ -141,14 +141,14 @@ Depending on use, several smaller partitions may be desired. See man:gpart[8] fo
A file system is created on the new blank disk:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
An empty directory is created as a _mountpoint_, a location for mounting the new disk in the original disk's file system:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -162,7 +162,7 @@ Finally, an entry is added to [.filename]#/etc/fstab# so the new disk will be mo
The new disk can be mounted manually, without restarting the system:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -206,7 +206,7 @@ Since the burner is seen as a SCSI drive, the driver man:atapicam[4] should not
To test the USB configuration, plug in the USB device. In the system message buffer, man:dmesg[8], the drive should appear as something like:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -220,7 +220,7 @@ The brand, device node ([.filename]#da0#), and other details will differ accordi
Since the USB device is seen as a SCSI one, `camcontrol` can be used to list the USB storage devices attached to the system:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -272,7 +272,7 @@ Since this only takes effect after the next reboot use man:sysctl[8] to set this
The final step is to create a directory where the file system is to be mounted. This directory needs to be owned by the user that is to mount the file system. One way to do that is for `root` to create a subdirectory owned by that user as [.filename]#/mnt/username#. In the following example, replace _username_ with the login name of the user and _usergroup_ with the user's primary group:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -280,14 +280,14 @@ The final step is to create a directory where the file system is to be mounted.
Suppose a USB thumbdrive is plugged in, and a device [.filename]#/dev/da0s1# appears. If the device is preformatted with a FAT file system, it can be mounted using:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Before the device can be unplugged, it _must_ be unmounted first. After device removal, the system message buffer will show messages similar to the following:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -322,7 +322,7 @@ For CD burning software with a graphical user interface, consider X-CD-Roast or
The package:sysutils/cdrtools[] port also installs man:mkisofs[8], which produces an ISO 9660 file system that is an image of a directory tree in the UNIX(R) file system name space. The simplest usage is:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -335,14 +335,14 @@ For CDs that are going to be used only on FreeBSD systems, `-U` can be used to d
The last option of general use is `-b`. This is used to specify the location of the boot image for use in producing an "El Torito" bootable CD. This option takes an argument which is the path to a boot image from the top of the tree being written to the CD. By default, man:mkisofs[8] creates an ISO image in "floppy disk emulation" mode, and thus expects the boot image to be exactly 1200, 1440 or 2880 KB in size. Some boot loaders, like the one used by the FreeBSD distribution disks, do not use emulation mode. In this case, `-no-emul-boot` should be used. So, if [.filename]#/tmp/myboot# holds a bootable FreeBSD system with the boot image in [.filename]#/tmp/myboot/boot/cdboot#, this command would produce the image of an ISO 9660 file system as [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
If [.filename]#md# is configured in the kernel, the file system can be mounted as a memory disk with:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -357,7 +357,7 @@ There are many other options available for man:mkisofs[8] to fine-tune its behav
For an ATAPI CD burner, `burncd` can be used to burn an ISO image onto a CD. `burncd` is part of the base system, installed as [.filename]#/usr/sbin/burncd#. Usage is very simple, as it has few options:
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data imagefile.iso fixate
....
@@ -371,14 +371,14 @@ For systems without an ATAPI CD burner, `cdrecord` can be used to burn CDs. `cdr
While `cdrecord` has many options, basic usage is simple. Burning an ISO 9660 image is done with:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
The tricky part of using `cdrecord` is finding the `dev` to use. To find the proper setting, use `-scanbus` which might produce results like this:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 J"org Schilling
@@ -415,7 +415,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
. Use `cdda2wav` to extract the audio:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
@@ -423,7 +423,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
. Use `cdrecord` to write the [.filename]#.wav# files:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -443,14 +443,14 @@ With the help of the <<atapicam,ATAPI/CAM module>>, `cdda2wav` can also be used
+
Make sure the appropriate files exist in [.filename]#/dev#. If the entries are missing, force the system to retaste the media:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
. Extract each track using man:dd[1], making sure to specify a block size when extracting the files:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -459,7 +459,7 @@ Make sure the appropriate files exist in [.filename]#/dev#. If the entries are m
. Burn the extracted files to disk using `burncd`. Specify that these are audio files, and that `burncd` should fixate the disk when finished:
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -470,7 +470,7 @@ Make sure the appropriate files exist in [.filename]#/dev#. If the entries are m
It is possible to copy a data CD to an image file that is functionally equivalent to the image file created with man:mkisofs[8], and then use it to duplicate any data CD. The example given here assumes that the CD-ROM device is [.filename]#acd0#. Substitute the correct CD-ROM device.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=file.iso bs=2048
....
@@ -482,21 +482,21 @@ Now that there is an image, it can be burned to CD as described above.
It is possible to mount and read the data on a standard data CD. By default, man:mount[8] assumes that a file system is of type `ufs`. Running this command:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
will generate an error about `Incorrect super block`, and will fail to mount the CD. The CD does not use the `UFS` file system, so attempts to mount it as such will fail. Instead, tell man:mount[8] that the file system is of type `ISO9660` by specifying `-t cd9660` to man:mount[8]. For example, to mount the CD-ROM device, [.filename]#/dev/cd0#, under [.filename]#/mnt#, use:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Replace [.filename]#/dev/cd0# with the device name for the CD device. Also, `-t cd9660` executes man:mount_cd9660[8], meaning the above command is equivalent to:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -531,14 +531,14 @@ This tells the SCSI bus to pause 15 seconds during boot, to give the CD-ROM driv
It is possible to burn a file directly to CD, without creating an ISO 9660 file system. Some people do this for backup purposes. This command runs more quickly than burning a standard CD:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
In order to retrieve the data burned to such a CD, the data must be read from the raw device node:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -583,7 +583,7 @@ Then rebuild, install the new kernel, and reboot the machine.
During the boot process, the burner should show up, like so:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -594,14 +594,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
The drive can now be accessed via the [.filename]#/dev/cd0# device name. For example, to mount a CD-ROM on [.filename]#/mnt#, type the following:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
As `root`, run the following command to get the SCSI address of the burner:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -659,7 +659,7 @@ Since man:growisofs[1] is a front-end to <<mkisofs,mkisofs>>, it will invoke man
To burn to a DVD+R or a DVD-R the data in [.filename]#/path/to/data#, use the following command:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -670,7 +670,7 @@ For the initial session recording, `-Z` is used for both single and multiple ses
To burn a pre-mastered image, such as _imagefile.iso_, use:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -683,14 +683,14 @@ In order to support working files larger than 4.38GB, an UDF/ISO-9660 hybrid fil
To create this type of ISO file:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
To burn files directly to a disk:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -706,7 +706,7 @@ A DVD-Video is a specific file layout based on the ISO 9660 and micro-UDF (M-UDF
If an image of the DVD-Video file system already exists, it can be burned in the same way as any other image. If `dvdauthor` was used to make the DVD and the result is in [.filename]#/path/to/video#, the following command should be used to burn the DVD-Video:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -717,7 +717,7 @@ If an image of the DVD-Video file system already exists, it can be burned in the
Unlike CD-RW, a virgin DVD+RW needs to be formatted before first use. It is _recommended_ to let man:growisofs[1] take care of this automatically whenever appropriate. However, it is possible to use `dvd+rw-format` to format the DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -726,7 +726,7 @@ Only perform this operation once and keep in mind that only virgin DVD+RW medias
To burn a totally new file system and not just append some data onto a DVD+RW, the media does not need to be blanked first. Instead, write over the previous recording like this:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -735,7 +735,7 @@ The DVD+RW format supports appending data to a previous recording. This operatio
For example, to append data to a DVD+RW, use the following:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -749,7 +749,7 @@ Use `-dvd-compat` for better media compatibility with DVD-ROM drives. When using
To blank the media, use:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -762,7 +762,7 @@ A virgin DVD-RW can be directly written without being formatted. However, a non-
To blank a DVD-RW in sequential mode:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -771,7 +771,7 @@ To blank a DVD-RW in sequential mode:
====
A full blanking using `-blank=full` will take about one hour on a 1x media. A fast blanking can be performed using `-blank`, if the DVD-RW will be recorded in Disk-At-Once (DAO) mode. To burn the DVD-RW in DAO mode, use the command:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -783,7 +783,7 @@ One should instead use restricted overwrite mode with any DVD-RW as this format
To write data on a sequential DVD-RW, use the same instructions as for the other DVD formats:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -794,14 +794,14 @@ A DVD-RW in restricted overwrite format does not need to be blanked before a new
To put a DVD-RW in restricted overwrite format, the following command must be used:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
To change back to sequential format, use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -812,7 +812,7 @@ Few DVD-ROM drives support multi-session DVDs and most of the time only read the
Using the following command after an initial non-closed session on a DVD+R, DVD-R, or DVD-RW in sequential format, will add a new session to the disc:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -851,7 +851,7 @@ hw.ata.atapi_dma="1"
A DVD-RAM can be seen as a removable hard drive. Like any other hard drive, the DVD-RAM must be formatted before it can be used. In this example, the whole disk space will be formatted with a standard UFS2 file system:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -864,7 +864,7 @@ The DVD device, [.filename]#acd0#, must be changed according to the configuratio
Once the DVD-RAM has been formatted, it can be mounted as a normal hard drive:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -896,7 +896,7 @@ Make note of any error messages, as these can help determine if the disk is good
To format the floppy, insert a new 3.5inch floppy disk into the first floppy drive and issue:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -909,7 +909,7 @@ The new disk label will take over the whole disk and will contain all the proper
To write the disk label, use man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -922,7 +922,7 @@ The floppy's file system can be either UFS or FAT. FAT is generally a better cho
To put a new file system on the floppy, issue:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -949,7 +949,7 @@ man:mt[1] is the FreeBSD utility for controlling other operations of the tape dr
For example, the first three files on a tape can be preserved by skipping past them before writing a new file:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -958,14 +958,14 @@ For example, the first three files on a tape can be preserved by skipping past t
An example of writing a single file to tape using man:tar[1]:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
Recovering files from a man:tar[1] archive on tape into the current directory:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
@@ -974,14 +974,14 @@ Recovering files from a man:tar[1] archive on tape into the current directory:
A simple backup of [.filename]#/usr# with man:dump[8]:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
Interactively restoring files from a man:dump[8] file on tape into the current directory:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1030,7 +1030,7 @@ If `dump` is used on the root directory, it will not back up [.filename]#/home#,
It is also possible to backup data across the network to a tape drive attached to another computer with `rdump` and `rrestore`. Both programs rely upon man:rcmd[3] and man:ruserok[3] to access the remote tape drive. Therefore, the user performing the backup must be listed in [.filename]#.rhosts# on the remote computer. The arguments to `rdump` and `rrestore` must be suitable to use on the remote computer. For example, to `rdump` from a FreeBSD computer to an Exabyte tape drive connected to a host called `komodo`, use:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1043,7 +1043,7 @@ It is also possible to use `dump` and `restore` in a more secure fashion over `s
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1057,7 +1057,7 @@ Or, use the built-in `RSH`:
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1070,7 +1070,7 @@ man:tar[1] also dates back to Version 6 of AT&T UNIX(R), circa 1975. `tar` opera
To `tar` to an Exabyte tape drive connected to a host called `komodo`:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh komodo dd of=tape-device obs=20b
....
@@ -1083,7 +1083,7 @@ man:cpio[1] is the original UNIX(R) file interchange tape program for magnetic m
Since `cpio` does not support backups across the network, use a pipeline and `ssh` to send the data to a remote tape drive.
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
@@ -1185,7 +1185,7 @@ To mount an existing file system image:
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0 /mnt
@@ -1199,7 +1199,7 @@ To create a new file system image with man:mdconfig[8]:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1227,7 +1227,7 @@ While man:mdconfig[8] is useful, it takes several command lines to create a file
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1251,7 +1251,7 @@ For a memory-based file system, "swap backing" should normally be used. This doe
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1272,7 +1272,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1288,7 +1288,7 @@ When a memory-based or file-based file system is no longer in use, its resources
For example, to detach and free all resources used by [.filename]#/dev/md4#:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1306,21 +1306,21 @@ The un-alterable `snapshot` file flag is set by man:mksnap_ffs[8] after initial
Snapshots are created using man:mount[8]. To place a snapshot of [.filename]#/var# in the file [.filename]#/var/snapshot/snap#, use the following command:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternatively, use man:mksnap_ffs[8] to create the snapshot:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
One can find snapshot files on a file system, such as [.filename]#/var#, using man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1333,7 +1333,7 @@ Once a snapshot has been created, it has several uses:
* The snapshot can be mounted as a frozen image of the file system. To man:mount[8] the snapshot [.filename]#/var/snapshot/snap# run:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1341,7 +1341,7 @@ Once a snapshot has been created, it has several uses:
The frozen [.filename]#/var# is now available through [.filename]#/mnt#. Everything will initially be in the same state it was during the snapshot creation time. The only exception is that any earlier snapshots will appear as zero length files. To unmount the snapshot, use:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1405,7 +1405,7 @@ In the normal course of operations, there should be no need to manually run man:
Once the system has been configured to enable quotas, verify they really are enabled by running:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1422,7 +1422,7 @@ Soft limits can be exceeded for a limited amount of time, known as the grace per
The following is an example output from man:edquota[8]. When man:edquota[8] is invoked, the editor specified by `EDITOR` is opened in order to edit the quota limits. The default editor is set to vi.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1454,7 +1454,7 @@ The new quota limits take affect upon exiting the editor.
Sometimes it is desirable to set quota limits on a range of UIDs. This can be done by passing `-p` to man:edquota[8]. First, assign the desired quota limit to a user, then run `edquota -p protouser startuid-enduid`. For example, if `test` has the desired quota limits, the following command will duplicate those quota limits for UIDs 10,000 through 19,999:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1492,7 +1492,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Now restart `inetd`:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1509,7 +1509,7 @@ Regardless of how an attacker may have come into possession of a hard drive or p
[.procedure]
. Configuring gbde requires superuser privileges.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1521,7 +1521,7 @@ Password:
+
If the kernel already contains this support, use `kldload` to load man:gbde[4]:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1535,7 +1535,7 @@ The following example demonstrates adding a new hard drive to a system that will
+
Install the new drive to the system as explained in <<disks-adding>>. For the purposes of this example, a new hard drive partition has been added as [.filename]#/dev/ad4s1c# and [.filename]#/dev/ad0s1*# represents the existing standard FreeBSD partitions.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1545,7 +1545,7 @@ Install the new drive to the system as explained in <<disks-adding>>. For the pu
. Create a Directory to Hold `gbde` Lock Files
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1555,7 +1555,7 @@ The gbde lock file contains information that gbde requires to access encrypted p
+
A gbde partition must be initialized before it can be used. This initialization needs to be performed only once:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -1587,14 +1587,14 @@ gbde lock files _must_ be backed up together with the contents of any encrypted
. Attach the Encrypted Partition to the Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
This command will prompt to input the passphrase that was selected during the initialization of the encrypted partition. The new encrypted device will appear in [.filename]#/dev# as [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1606,7 +1606,7 @@ This command will prompt to input the passphrase that was selected during the in
+
Once the encrypted device has been attached to the kernel, a file system can be created on the device using man:newfs[8]. This example creates a UFS2 file system with soft updates enabled.
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ad4s1c.bde
....
@@ -1620,14 +1620,14 @@ man:newfs[8] must be performed on an attached gbde partition which is identified
+
Create a mount point for the encrypted file system:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Mount the encrypted file system:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -1636,7 +1636,7 @@ Mount the encrypted file system:
+
The encrypted file system should now be visible to man:df[1] and be available for use.
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1655,7 +1655,7 @@ After each boot, any encrypted file systems must be re-attached to the kernel, c
[.procedure]
. Attach the `gbde` Partition to the Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -1665,14 +1665,14 @@ This command will prompt for the passphrase that was selected during initializat
+
Since encrypted file systems cannot yet be listed in [.filename]#/etc/fstab# for automatic mounting, the file systems must be checked for errors by running man:fsck[8] manually before mounting:
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
. Mount the Encrypted File System
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -1702,7 +1702,7 @@ man:gbde[8] encrypts the sector payload using 128-bit AES in CBC mode. Each sect
man:sysinstall[8] is incompatible with gbde-encrypted devices. All [.filename]#*.bde# devices must be detached from the kernel before starting man:sysinstall[8] or it will crash during its initial probing for devices. To detach the encrypted device used in the example, use the following command:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1754,7 +1754,7 @@ It is recommended to use a bigger sector size, such as 4kB, for better performan
+
The master key will be protected with a passphrase and the data source for the key file will be [.filename]#/dev/random#. The sector size of the provider [.filename]#/dev/da2.eli# will be 4kB.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -1766,14 +1766,14 @@ It is not mandatory to use both a passphrase and a key file as either method of
+
If the key file is given as "-", standard input will be used. This example shows how more than one key file can be used:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
. Attaching the Provider with the Generated Key
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1781,7 +1781,7 @@ Enter passphrase:
+
The new plaintext device will be named [.filename]#/dev/da2.eli#.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1789,7 +1789,7 @@ The new plaintext device will be named [.filename]#/dev/da2.eli#.
. Creating the New File System
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1798,7 +1798,7 @@ The new plaintext device will be named [.filename]#/dev/da2.eli#.
+
The encrypted file system should now be visible to man:df[1] and be available for use:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1814,7 +1814,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
Once the work on the encrypted partition is done, and the [.filename]#/private# partition is no longer needed, it is prudent to consider unmounting and detaching the `geli` encrypted partition from the kernel:
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1850,7 +1850,7 @@ For the remainder of this section, [.filename]#ad0s1b# will be the swap partitio
Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. To overwrite the current swap parition with random garbage, execute the following command:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -1890,7 +1890,7 @@ Once the system has rebooted, proper operation of the encrypted swap can be veri
If man:gbde[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1899,7 +1899,7 @@ Device 1K-blocks Used Avail Capacity
If man:geli[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2010,7 +2010,7 @@ It is also possible to use host names in the `remote` statements. In such a case
Now that the configuration exists on both nodes, the HAST pool can be created. Run these commands on both nodes to place the initial metadata onto the local disk and to start man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -2023,14 +2023,14 @@ It is _not_ possible to use GEOM providers with an existing file system or to co
A HAST node's `primary` or `secondary` role is selected by an administrator, or software like Heartbeat, using man:hastctl[8]. On the primary node, `hasta`, issue this command:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Similarly, run this command on the secondary node, `hastb`:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
@@ -2043,7 +2043,7 @@ When the nodes are unable to communicate with each other, and both are configure
Verify the result by running man:hastctl[8] on each node:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -2052,7 +2052,7 @@ The important text is the `status` line, which should say `complete` on each of
The next step is to create a filesystem on the [.filename]#/dev/hast/test# GEOM provider and mount it. This must be done on the `primary` node, as [.filename]#/dev/hast/test# appears only on the `primary` node. Creating the filesystem can take a few minutes, depending on the size of the hard drive:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2097,7 +2097,7 @@ notify 30 {
Restart man:devd[8] on both nodes to put the new configuration into effect:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2232,7 +2232,7 @@ When troubleshooting HAST problems, the debugging level of man:hastd[8] should b
The administrator must decide which node has more important changes (or merge them manually) and let HAST perform full synchronization of the node which has the broken data. To do this, issue these commands on the node which needs to be resynchronized:
-[source,bash]
+[source,shell]
....
# hastctl role init <resource>
# hastctl create <resource>
diff --git a/documentation/content/el/books/handbook/dtrace/_index.adoc b/documentation/content/el/books/handbook/dtrace/_index.adoc
index d60d3b453d..e8854b496d 100644
--- a/documentation/content/el/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/el/books/handbook/dtrace/_index.adoc
@@ -111,7 +111,7 @@ options KDTRACE_FRAME
Όλος ο πηγαίος κώδικας θα πρέπει να μεταγλωττιστεί ξανά με τις επιλογές CTF. Για να γίνει αυτό, μεταγλωττίστε ξανά το FreeBSD χρησιμοποιώντας:
-[source,bash]
+[source,shell]
....
# cd /usr/src
@@ -129,14 +129,14 @@ options KDTRACE_FRAME
Πριν χρησιμοποιήσετε τις λειτουργίες του DTrace, θα πρέπει να υπάρχει η αντίστοιχη συσκευή. Για να φορτώσετε τη συσκευή, θα πρέπει να δώσετε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
Θα πρέπει να έχετε πλέον υποστήριξη DTrace. Για να δείτε όλα τα probes, θα πρέπει να εκτελέσετε ως διαχειριστής την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -145,7 +145,7 @@ options KDTRACE_FRAME
Η σειρά των εργαλείων είναι μια συλλογή από έτοιμα scripts που εκτελούνται με το DTrace ώστε να συλλέξουν πληροφορίες σχετικά με το σύστημα. Υπάρχουν scripts που ελέγχουν για ανοικτά αρχεία, τη μνήμη, τη χρήση της CPU και πολλά ακόμα. Κάντε εξαγωγή των scripts με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# gunzip -c DTraceToolkit* | tar xvf -
....
@@ -163,7 +163,7 @@ options KDTRACE_FRAME
Το [.filename]#hotkernel# έχει σχεδιαστεί να αναγνωρίζει ποια συνάρτηση καταναλώνει το μεγαλύτερο χρόνο στον πυρήνα. Εκτελώντας το υπό κανονικές συνθήκες, θα δείτε έξοδο παρόμοια με την παρακάτω:
-[source,bash]
+[source,shell]
....
# ./hotkernel
Sampling... Hit Ctrl-C to end.
@@ -171,7 +171,7 @@ Sampling... Hit Ctrl-C to end.
Ο διαχειριστής του συστήματος θα πρέπει να χρησιμοποιήσει το συνδυασμό πλήκτρων kbd:[Ctrl+C] για να σταματήσει τη διεργασία. Με τον τερματισμό του, το script θα απεικονίσει μια σειρά από συναρτήσεις του πυρήνα και πληροφορίες σχετικά με το χρόνο τους, ταξινομώντας τις σε αύξουσα σειρά ανάλογα με το χρόνο:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -203,7 +203,7 @@ kernel`sched_idletd 137 0.3%
Το script αυτό λειτουργεί επίσης με αρθρώματα του πυρήνα. Για να χρησιμοποιήσετε αυτό το χαρακτηριστικό, εκτελέστε το με την επιλογή `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -225,7 +225,7 @@ kernel 874 0.4%
Το [.filename]#procsystime# script συλλαμβάνει και τυπώνει τον χρόνο των κλήσεων συστήματος για μια συγκεκριμένη διεργασία μέσω του PID ή του ονόματος της. Στο παρακάτω παράδειγμα έχουμε ξεκινήσει μια νέα διεργασία του [.filename]#/bin/csh#. Εκτελέσαμε το [.filename]#procsystime# και το αφήσαμε στην αναμονή καθώς γράφαμε μερικές εντολές στο `csh` που είχαμε ανοίξει. Αυτά είναι τα αποτελέσματα της δοκιμής μας:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/el/books/handbook/filesystems/_index.adoc b/documentation/content/el/books/handbook/filesystems/_index.adoc
index 0c2173489b..289d8c4e78 100644
--- a/documentation/content/el/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/el/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ vfs.zfs.vdev.cache.size="5M"
Υπάρχει ένας μηχανισμός εκκίνησης που επιτρέπει στο FreeBSD να προσαρτήσει ZFS pools κατά τη διάρκεια της εκκίνησης του συστήματος. Για να τον ρυθμίσετε, εκτελέστε τις ακόλουθες εντολές:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# /etc/rc.d/zfs start
@@ -125,14 +125,14 @@ vfs.zfs.vdev.cache.size="5M"
Για την δημιουργία ενός ZFS pool με ένα μόνο δίσκο (χωρίς δυνατότητα ανοχής σφαλμάτων), χρησιμοποιήστε την εντολή `zpool`:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Για να δείτε το νέο pool, εξετάστε την έξοδο της εντολής `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ example 17547136 0 17547136 0% /example
Η έξοδος αυτή δείχνει καθαρά ότι το `example` pool όχι μόνο έχει δημιουργηθεί, αλλά έχει επίσης _προσαρτηθεί_ κιόλας. Είναι επίσης διαθέσιμο ως κανονικό σύστημα αρχείων, μπορείτε να δημιουργήσετε αρχεία σε αυτό, και άλλοι χρήστες μπορούν επίσης να το δουν, όπως φαίνεται στο παρακάτω παράδειγμα:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Δυστυχώς αυτό το pool δεν χρησιμοποιεί κάποιο από τα πλεονεκτήματα του ZFS. Δημιουργήστε ένα σύστημα αρχείων σε αυτό το pool και ενεργοποιήστε σε αυτό τη συμπίεση:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -168,14 +168,14 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Μπορείτε τώρα να απενεργοποιήσετε τη συμπίεση γράφοντας:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Για να αποπροσαρτήσετε το σύστημα αρχείων, εκτελέστε την ακόλουθη εντολή και επαληθεύστε το αποτέλεσμα μέσω του βοηθητικού προγράμματος `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -188,7 +188,7 @@ example 17547008 0 17547008 0% /example
Προσαρτήστε ξανά το σύστημα αρχείων, ώστε να είναι και πάλι προσβάσιμο, και επαληθεύστε το χρησιμοποιώντας όπως και πριν, την εντολή `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -202,7 +202,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
Μπορείτε επίσης να δείτε το pool και το σύστημα αρχείων εξετάζοντας την έξοδο της εντολής `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -215,7 +215,7 @@ example/compressed on /example/compressed (zfs, local)
Όπως παρατηρούμε, το σύστημα αρχείων ZFS μπορεί να χρησιμοποιηθεί ως κοινό σύστημα αρχείων μετά τη δημιουργία του. Ωστόσο, διαθέτει πολλές ακόμα λειτουργίες. Στο παρακάτω παράδειγμα δημιουργούμε ένα νέο σύστημα αρχείων, το `data`. θα αποθηκεύσουμε σημαντικά δεδομένα σε αυτό, και έτσι το ρυθμίζουμε ώστε να κρατάει δύο αντίγραφα από κάθε μπλοκ δεδομένων:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -223,7 +223,7 @@ example/compressed on /example/compressed (zfs, local)
Μπορούμε τώρα να δούμε τα δεδομένα και την κατανάλωση χώρου δίνοντας ξανά την εντολή `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -237,7 +237,7 @@ example/data 17547008 0 17547008 0% /example/data
Παρατηρήστε ότι κάθε σύστημα αρχείων στο pool δείχνει το ίδιο μέγεθος διαθέσιμου χώρου. Αυτός είναι και ο λόγος που χρησιμοποιούμε την εντολή `df` σε όλα τα παραδείγματα, για να δείξουμε ότι τα συστήματα αρχείων χρησιμοποιούν μόνο το χώρο που χρειάζονται και ότι όλα μοιράζονται τον ίδιο χώρο (το κοινόχρηστο απόθεμα - pool). Στο σύστημα αρχείων ZFS έννοιες όπως οι τόμοι (volumes) και οι κατατμήσεις (partitions) δεν έχουν νόημα. Αντίθετα, πολλά συστήματα αρχείων μοιράζονται τον ίδιο χώρο, το pool. Μπορείτε να καταργήσετε το σύστημα αρχείων και κατόπιν το ίδιο το pool όταν δεν τα χρειάζεστε πλέον:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -250,7 +250,7 @@ example/data 17547008 0 17547008 0% /example/data
Όπως αναφέραμε προηγουμένως, η ενότητα αυτή προϋποθέτει ότι χρησιμοποιούμε τρεις συσκευές SCSI με ονόματα συσκευών [.filename]#da0#, [.filename]#da1# και [.filename]#da2#. Για να δημιουργήσουμε ένα pool τύπου RAID-Z, εκτελούμε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -262,14 +262,14 @@ example/data 17547008 0 17547008 0% /example/data
Θα δημιουργηθεί το `storage` zpool. Μπορείτε να επαληθεύσετε το αποτέλεσμα χρησιμοποιώντας, όπως και προηγουμένως, τις εντολές man:mount[8] και man:df[1]. Θα μπορούσαμε να χρησιμοποιήσουμε περισσότερους δίσκους, προσθέτοντας τα ονόματα συσκευών τους στο τέλος της παραπάνω λίστας. Δημιουργήστε ένα νέο σύστημα αρχείων στο pool, το οποίο θα ονομάζεται `home` και όπου θα αποθηκεύονται τελικά τα αρχεία των χρηστών:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Μπορούμε τώρα να ενεργοποιήσουμε την συμπίεση και να κρατάμε επιπλέον αντίγραφα των καταλόγων και των δεδομένων των χρηστών. Όπως και προηγουμένως, μπορούμε να το επιτύχουμε χρησιμοποιώντας τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -277,7 +277,7 @@ example/data 17547008 0 17547008 0% /example/data
Για να γίνει αυτός ο νέος κατάλογος των χρηστών, αντιγράψτε τα δεδομένα τους σε αυτόν και δημιουργήστε τους κατάλληλους συμβολικούς δεσμούς:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -289,42 +289,42 @@ example/data 17547008 0 17547008 0% /example/data
Δοκιμάστε να δημιουργήσετε ένα στιγμιότυπο (snapshot) στο οποίο θα μπορείτε να επανέλθετε αργότερα:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
Σημειώστε ότι η επιλογή δημιουργίας στιγμιότυπου λειτουργεί μόνο σε πραγματικό σύστημα αρχείων, και όχι σε κάποιο μεμονωμένο κατάλογο ή αρχείο. Ο χαρακτήρας `@` χρησιμοποιείται ως διαχωριστικό μεταξύ του συστήματος αρχείων και του ονόματος τόμου. Αν καταστραφεί ο κατάλογος δεδομένων κάποιου χρήστη αποκαταστήστε τον με την εντολή:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Για να δείτε μια λίστα των διαθέσιμων στιγμιότυπων, εκτελέστε την εντολή `ls` στον κατάλογο [.filename]#.zfs/snapshot# του συστήματος αρχείων. Για παράδειγμα, για να δείτε το στιγμιότυπο που δημιουργήσαμε προηγουμένως, εκτελέστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
Είναι δυνατόν να γράψετε κάποιο script που να δημιουργεί μηνιαία στιγμιότυπα των δεδομένων των χρηστών. Ωστόσο, με την πάροδο του χρόνου, τα στιγμιότυπα θα καταναλώσουν μεγάλο ποσοστό του χώρου στο δίσκο. Μπορείτε να διαγράψετε το προηγούμενο στιγμιότυπο χρησιμοποιώντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Δεν υπάρχει λόγος, μετά από όλες αυτές τις δοκιμές, να κρατήσουμε το [.filename]#/storage/home# στην παρούσα κατάσταση του. Μετατρέψτε το στο πραγματικό σύστημα αρχείων [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Χρησιμοποιώντας τις εντολές `df` και `mount` θα δούμε ότι το σύστημα χειρίζεται πλέον αυτό το σύστημα αρχείων ως το πραγματικό [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -343,7 +343,7 @@ storage/home 26320512 0 26320512 0% /home
Εδώ ολοκληρώνεται η ρύθμιση του RAID-Z. Για να δέχεστε αναφορές κατάστασης σχετικά με τα συστήματα αρχείων κατά τη νυκτερινή εκτέλεση του man:periodic[8], δώστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -352,21 +352,21 @@ storage/home 26320512 0 26320512 0% /home
Κάθε λογισμικό RAID έχει μια μέθοδο για επίβλεψη της κατάστασής του, και το ZFS δεν αποτελεί εξαίρεση. Μπορείτε να δείτε την κατάσταση των συσκευών του RAID-Z χρησιμοποιώντας την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Αν όλα τα pools είναι σε υγιή κατάσταση, θα πάρετε το ακόλουθο μήνυμα:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Αν υπάρχει κάποιο πρόβλημα, π.χ. κάποιος δίσκος έχει βγει εκτός λειτουργίας, θα δείτε την περιγραφή της κατάστασης σε ένα μήνυμα όπως το παρακάτω:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -390,21 +390,21 @@ errors: No known data errors
Το παραπάνω δείχνει ότι η συσκευή τέθηκε εκτός λειτουργίας από τον διαχειριστή. Αυτό είναι αλήθεια για το συγκεκριμένο παράδειγμα. Για να τεθεί ο δίσκος εκτός, χρησιμοποιήθηκε η παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Μπορούμε τώρα να αντικαταστήσουμε το δίσκο [.filename]#da1# μετά την απενεργοποίηση του συστήματος. Όταν το σύστημα επανέλθει σε λειτουργία, μπορούμε να χρησιμοποιήσουμε την ακόλουθη εντολή για να ενημερώσουμε το σύστημα για την αντικατάσταση του δίσκου:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
Από εδώ, μπορούμε να ελέγξουμε ξανά την κατάσταση, αυτή τη φορά χωρίς την επιλογή `-x`:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -428,21 +428,21 @@ errors: No known data errors
Όπως αναφέραμε προηγουμένως, το ZFS χρησιμοποιεί `checksums` (αθροίσματα ελέγχου) για να επαληθεύσει την ακεραιότητα των αποθηκευμένων δεδομένων. Τα αθροίσματα ελέγχου ενεργοποιούνται αυτόματα κατά την δημιουργία των συστημάτων αρχείων, και μπορούν να απενεργοποιηθούν μέσω της επόμενης εντολής:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off storage/home
....
Αυτό δεν είναι γενικά καλή ιδέα, καθώς τα checksums καταλαμβάνουν ελάχιστο αποθηκευτικό χώρο, και είναι πολύ πιο χρήσιμο να τα έχουμε ενεργοποιημένα. Επίσης δεν φαίνεται να προκαλούν κάποια σημαντική καθυστέρηση ή επιβάρυνση. Με τα checksums ενεργοποιημένα, μπορούμε να ζητήσουμε από το ZFS να ελέγξει την ακεραιότητα των δεδομένων χρησιμοποιώντας τα για επαλήθευση. Η διαδικασία αυτή είναι γνωστή ως "scrubbing." Για να ελέγξετε την ακεραιότητα δεδομένων του pool `storage`, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
Η διαδικασία αυτή μπορεί να πάρει αρκετή ώρα, ανάλογα με την ποσότητα των αποθηκευμένων δεδομένων. Επίσης χρησιμοποιεί πάρα πολύ το δίσκο (I/O), τόσο ώστε σε κάθε δεδομένη στιγμή μπορεί να εκτελείται μόνο μια τέτοια διαδικασία. Μετά την ολοκλήρωση του scrub, θα ανανεωθεί και η αναφορά κατάστασης, την οποία μπορείτε να δείτε ζητώντας την με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -479,7 +479,7 @@ errors: No known data errors
Για να επιβάλετε γενικό quota 10 GB για το [.filename]#storage/home/bob#, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
@@ -493,14 +493,14 @@ errors: No known data errors
Για παράδειγμα, για να επιβάλετε quota 50 GB για ένα χρήστη με όνομα _joe_, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
Για να αφαιρέσετε το quota ή να βεβαιωθείτε ότι δεν έχει τεθεί, χρησιμοποιήστε την εντολή:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -511,14 +511,14 @@ errors: No known data errors
Για να θέσετε quota για την ομάδα χρηστών _firstgroup_ τα 50 GB, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
Για να αφαιρέσετε το quota ή να βεβαιωθείτε ότι δεν έχει τεθεί, χρησιμοποιήστε την εντολή:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -529,7 +529,7 @@ errors: No known data errors
Για να δειτε το quota για το [.filename]#storage/home/bob#, αν έχετε τα σωστά προνόμια ή είστε ο `root`, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -544,14 +544,14 @@ errors: No known data errors
Η γενική μορφή της ιδιότητας `reservation` είναι `reservation=size`. Για να θέσετε κράτηση 10 GB στο [.filename]#storage/home/bob# χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
Για να αφαιρέσετε ένα reservation ή να βεβαιωθείτε ότι δεν έχει τεθεί, εκτελέστε την εντολή:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -560,7 +560,7 @@ errors: No known data errors
Για να ελέγξετε αν υπάρχουν reservations ή refreservations στο [.filename]#storage/home/bob#, εκτελέστε μια από τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -579,14 +579,14 @@ errors: No known data errors
Αρχικά, φορτώστε το άρθρωμα στον πυρήνα:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Για να προσαρτήσετε έπειτα ένα τόμο man:ext2fs[5] που βρίσκεται στο [.filename]#/dev/ad1s1#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
@@ -597,7 +597,7 @@ errors: No known data errors
Για να φορτώσετε το XFS ως άρθρωμα στον πυρήνα:
-[source,bash]
+[source,shell]
....
# kldload xfs
....
@@ -606,7 +606,7 @@ errors: No known data errors
Για να προσαρτήσετε ένα τόμο man:xfs[5] που βρίσκεται στο [.filename]#/dev/ad1s1#, εκτελέστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# mount -t xfs /dev/ad1s1 /mnt
....
@@ -623,14 +623,14 @@ To σύστημα αρχείων Reiser, ReiserFS, μεταφέρθηκε στο
Φορτώστε αρχικά το άρθρωμα του πυρήνα:
-[source,bash]
+[source,shell]
....
# kldload reiserfs
....
Για να προσαρτήσετε ένα τόμο ReiserFS από το [.filename]#/dev/ad1s1#:
-[source,bash]
+[source,shell]
....
# mount -t reiserfs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/el/books/handbook/firewalls/_index.adoc b/documentation/content/el/books/handbook/firewalls/_index.adoc
index d43baab25a..ab01667f95 100644
--- a/documentation/content/el/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/el/books/handbook/firewalls/_index.adoc
@@ -113,7 +113,7 @@ pf_enable="YES"
Εκτελέστε έπειτα το script εκκίνησης για να φορτώσετε το άρθρωμα:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pf start
....
@@ -129,7 +129,7 @@ pf_rules="/path/to/pf.conf"
Το άρθρωμα PF μπορεί επίσης να φορτωθεί χειροκίνητα από την γραμμή εντολών:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -143,7 +143,7 @@ pflog_enable="YES"
Εκτελέστε έπειτα το script εκκίνησης για να φορτώσετε το άρθρωμα:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pflog start
....
@@ -329,7 +329,7 @@ ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat
Η εντολή man:ipf[8] χρησιμοποιείται για να φορτώσει το αρχείο των κανόνων. Φυσιολογικά, θα δημιουργήσετε ένα αρχείο με τους δικούς σας προσαρμοσμένους κανόνες και θα αντικαταστήσετε με αυτό εξ'ολοκλήρου τους ενσωματωμένους κανόνες του firewall:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -354,7 +354,7 @@ ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat
Η προεπιλεγμένη έξοδος της εντολής man:ipfstat[8] θα μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -383,7 +383,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Η έξοδος θα μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -396,7 +396,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Η έξοδος θα μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -429,7 +429,7 @@ ipmon_flags="-Ds" # D = start as daemon
Το syslogd χρησιμοποιεί τη δική του ειδική μέθοδο για το διαχωρισμό των δεδομένων καταγραφής. Διαθέτει ειδικές ομαδοποιήσεις που ονομάζονται "facility" και "level". Όταν το IPMON χρησιμοποιείται με την επιλογή `-Ds`, χρησιμοποιεί από προεπιλογή το `local0` ως όνομα "facility". Αν το επιθυμείτε, μπορείτε να χρησιμοποιήσετε τα παρακάτω επίπεδα για περαιτέρω διαχωρισμό των δεδομένων καταγραφής:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -439,7 +439,7 @@ LOG_ERR - packets which have been logged and which can be considered short
Για να ρυθμίσετε το IPFILTER να καταγράφει όλα τα δεδομένα στο [.filename]#/var/log/ipfilter.log#, θα χρειαστεί να δημιουργήσετε από πριν το αρχείο. Αυτό μπορεί να γίνει με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -530,7 +530,7 @@ EOF
Αυτό είναι όλο. Στο παραπάνω παράδειγμα δεν είναι σημαντικοί οι κανόνες, αλλά ο τρόπος με τον οποίο λειτουργούν και παίρνουν τιμές τα πεδία υποκατάστασης. Αν το παραπάνω παράδειγμα βρίσκονταν σε ένα αρχείο με το όνομα [.filename]#/etc/ipf.rules.script#, θα μπορούσατε να επαναφορτώσετε αυτούς τους κανόνες με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -554,7 +554,7 @@ sh /etc/ipf.rules.script
Οι άδειες σε αυτό το αρχείο, θα πρέπει να επιτρέπουν ανάγνωση, εγγραφή και εκτέλεση για τον χρήστη `root`.
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -938,28 +938,28 @@ block in log first quick on dc0 all
Για να φορτώσετε τους κανόνες του NAT από την αρχή, εκτελέστε μια εντολή όπως την παρακάτω:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
Για να δείτε κάποια στατιστικά σχετικά με το NAT, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
Για να δείτε μια λίστα με τις τρέχουσες καταχωρίσεις του πίνακα NAT, χρησιμοποιήστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
Για να ενεργοποιήσετε την λεπτομερή απεικόνιση μηνυμάτων και να δείτε πληροφορίες που σχετίζονται με την επεξεργασία των κανόνων και τους ενεργούς κανόνες και καταχωρίσεις στον πίνακα, γράψτε:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1157,7 +1157,7 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Αφού επανεκκινήσετε το σύστημα σας με την καταχώριση `firewall_enable="YES"` στο [.filename]#rc.conf#, θα δείτε με άσπρα έντονα γράμματα το ακόλουθο μήνυμα κατά τη διαδικασία της εκκίνησης:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -1296,49 +1296,49 @@ net.inet.ip.fw.verbose_limit=5
Για να δείτε όλους τους κανόνες με τη σειρά:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Για να δείτε μια λίστα όλων των κανόνων, μαζί με την ώρα που ενεργοποιήθηκε τελευταία φορά ο κάθε κανόνας, γράψτε:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
Το επόμενο παράδειγμα δείχνει τον αριθμό των πακέτων που ταίριαξαν μαζί με τον αντίστοιχο κανόνα. Η πρώτη στήλη δείχνει τον αριθμό του κανόνα, ακολουθείται από τον αριθμό πακέτων που ταίριαξαν (πρώτα τα εξερχόμενα και μετά τα εισερχόμενα) και τέλος από τον ίδιο τον κανόνα.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Για να δείτε μια λίστα που να περιλαμβάνει τόσο τους δυναμικούς όσο και τους στατικούς κανόνες:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
Για να δείτε και τους δυναμικούς κανόνες που έχουν λήξει:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
Για να μηδενίσετε τους μετρητές:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Για να μηδενίσετε τους μετρητές μόνο για τον κανόνα με τον αριθμό _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1502,7 +1502,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Αν το παραπάνω παράδειγμα ήταν στο αρχείο [.filename]#/etc/ipfw.rules# θα μπορούσατε να φορτώσετε αυτούς τους κανόνες, γράφοντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1511,7 +1511,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Θα μπορούσατε να επιτύχετε το ίδιο πράγμα, εκτελώντας τις παρακάτω εντολές χειροκίνητα:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
diff --git a/documentation/content/el/books/handbook/geom/_index.adoc b/documentation/content/el/books/handbook/geom/_index.adoc
index d19f0ac62b..aa61b9ca2b 100644
--- a/documentation/content/el/books/handbook/geom/_index.adoc
+++ b/documentation/content/el/books/handbook/geom/_index.adoc
@@ -84,21 +84,21 @@ image::striping.png[Διάγραμμα Disk Striping]
. Φορτώστε το άρθρωμα [.filename]#geom_stripe.ko#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
. Εξασφαλίστε ότι υπάρχει κατάλληλο σημείο προσάρτησης. Αν ο τόμος πρόκειται να γίνει κατάτμηση root, προσαρτήστε τον προσωρινά σε κάποιο άλλο σημείο προσάρτησης, όπως το [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
. Καθορίστε τα ονόματα των συσκευών για τους δίσκους που πρόκειται να γίνουν stripe, και δημιουργήστε τη νέα συσκευή stripe. Για παράδειγμα, για να δημιουργήσετε ένα stripe από δύο αχρησιμοποίητους και χωρίς κατατμήσεις δίσκους ATA, όπως π.χ. τους [.filename]#/dev/ad2# και [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -108,14 +108,14 @@ Done.
. Γράψτε ένα τυποποιημένο label (πίνακα κατατμήσεων) στο νέο τόμο, και εγκαταστήστε τον προεπιλεγμένο κώδικα εκκίνησης (bootstrap):
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
. Η διαδικασία αυτή θα δημιουργήσει τη συσκευή [.filename]#st0#, καθώς και δύο ακόμα συσκευές στον κατάλογο [.filename]#/dev/stripe#. Οι συσκευές αυτές θα ονομάζονται [.filename]#st0a# και [.filename]#st0c#. Στο σημείο αυτό, μπορείτε πλέον να δημιουργήσετε σύστημα αρχείων στη συσκευή [.filename]#st0a# χρησιμοποιώντας το βοηθητικό πρόγραμμα `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -125,14 +125,14 @@ Done.
Για να προσαρτήσετε χειροκίνητα το stripe που δημιουργήσατε:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Για να γίνεται αυτόματα η προσάρτηση αυτού του συστήματος αρχείων κατά την διαδικασία εκκίνησης, τοποθετήστε τις πληροφορίες του τόμου στο αρχείο [.filename]#/etc/fstab#. Για το σκοπό αυτό, δημιουργούμε ένα μόνιμο σημείο προσάρτησης, το [.filename]#stripe#:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -141,7 +141,7 @@ Done.
Το άρθρωμα [.filename]#geom_stripe.ko# θα πρέπει να φορτώνεται αυτόματα κατά την εκκίνηση του συστήματος. Εκτελέστε την παρακάτω εντολή, για να προσθέσετε την κατάλληλη ρύθμιση στο [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -159,7 +159,7 @@ Done.
Πριν δημιουργήσετε το mirror, ενεργοποιήστε την δυνατότητα εμφάνισης περισσότερων λεπτομερειών (που μπορεί να σας βοηθήσουν σε περίπτωση προβλήματος) και επιτρέψτε την απευθείας πρόσβαση στη συσκευή δίσκου. Για το σκοπό αυτό θέστε τη μεταβλητή `kern.geom.debugflags` του man:sysctl[8] στην παρακάτω τιμή:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=17
....
@@ -172,14 +172,14 @@ Done.
Η δημιουργία mirror στο δίσκο εκκίνησης μπορεί να έχει ως αποτέλεσμα την απώλεια δεδομένων, αν ο τελευταίος τομέας του δίσκου έχει ήδη χρησιμοποιηθεί. Η πιθανότητα αυτή είναι πολύ μικρότερη αν το mirror δημιουργηθεί αμέσως μετά από μια νέα εγκατάσταση του FreeBSD. Η παρακάτω διαδικασία είναι επίσης ασύμβατη με τις προεπιλεγμένες ρυθμίσεις εγκατάστασης του FreeBSD 9._X_ στις οποίες χρησιμοποιείται το σύστημα κατατμήσεων GPT. To GEOM καταστρέφει τα μεταδεδομένα του GPT, και θα προκαλέσει απώλεια δεδομένων και πιθανή αδυναμία εκκίνησης του συστήματος.
====
-[source,bash]
+[source,shell]
....
# gmirror label -vb round-robin gm0 /dev/da0
....
Το σύστημα θα ανταποκριθεί με το παρακάτω μήνυμα:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da0.
Done.
@@ -187,7 +187,7 @@ Done.
Αρχικοποιήστε το GEOM. Η παρακάτω εντολή θα φορτώσει το άρθρωμα [.filename]#/boot/kernel/geom_mirror.ko# στον πυρήνα:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -199,7 +199,7 @@ Done.
Ενεργοποιήστε το φόρτωμα του αρθρώματος [.filename]#geom_mirror.ko# κατά την εκκίνηση του συστήματος:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf
....
@@ -210,7 +210,7 @@ Done.
====
Αν χρησιμοποιείτε το man:vi[1], μπορείτε να ακολουθήσετε τα παρακάτω βήματα για να ολοκληρώσετε εύκολα αυτή τη διαδικασία:
-[source,bash]
+[source,shell]
....
# vi /etc/fstab
....
@@ -234,14 +234,14 @@ Done.
Επανεκκινήστε το σύστημα:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Κατά την εκκίνηση του συστήματος, θα πρέπει πλέον να χρησιμοποιείται η συσκευή [.filename]#gm0# αντί για την [.filename]#da0#. Μετά το τέλος της εκκίνησης, μπορείτε να ελέγξετε ότι όλα λειτουργούν σωστά, εξετάζοντας την έξοδο της εντολής `mount`:
-[source,bash]
+[source,shell]
....
# mount
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -255,21 +255,21 @@ devfs 1 1 0 100% /var/named/dev
Η έξοδος φαίνεται σωστή, όπως αναμενόταν. Τελικά, για να ξεκινήσει ο συγχρονισμός, εισάγετε και την συσκευή [.filename]#da1# στο mirror, χρησιμοποιώντας την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
Κατά τη διάρκεια του συγχρονισμού του mirror, μπορείτε να δείτε την πρόοδο της διαδικασίας με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# gmirror status
....
Μετά το τέλος της δόμησης του mirror, και αφού έχουν συγχρονιστεί όλα τα δεδομένα, η έξοδος της παραπάνω εντολής θα μοιάζει με την ακόλουθη:
-[source,bash]
+[source,shell]
....
Name Status Components
mirror/gm0 COMPLETE da0
@@ -293,7 +293,7 @@ mountroot>
Επανεκκινήστε το σύστημα σας μέσω του διακόπτη τροφοδοσίας ή του πλήκτρου reset. Στο μενού εκκίνησης, επιλέξτε το (6). Με τον τρόπο αυτό θα βρεθείτε στην προτροπή του man:loader[8]. Φορτώστε χειροκίνητα το άρθρωμα στον πυρήνα:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror
OK? boot
@@ -314,12 +314,12 @@ options GEOM_MIRROR
Υποθέτοντας ότι χρησιμοποιούμε τις ρυθμίσεις RAID1 που δείξαμε προηγουμένως, ας θεωρήσουμε ότι χάλασε ο δίσκος [.filename]#da1# και πρέπει να αντικατασταθεί. Για να τον αντικαταστήσετε, βρείτε ποιος δίσκος είναι και απενεργοποιήστε το σύστημα. Στο σημείο αυτό, μπορείτε πλέον να ανταλλάξετε το δίσκο με ένα νέο και να ενεργοποιήσετε ξανά το σύστημα. Μετά την επανενεργοποίηση του συστήματος, μπορείτε να χρησιμοποιήσετε τις παρακάτω εντολές για να θέσετε σε λειτουργία το νέο δίσκο:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
@@ -345,28 +345,28 @@ options GEOM_MIRROR
[.procedure]
. Αρχικά, φορτώστε το [.filename]#geom_rai3.ko# άρθρωμα του πυρήνα μέσω της ακόλουθης εντολής:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
Εναλλακτικά, είναι δυνατόν να φορτώσετε το άρθρωμα χειροκίνητα:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3.ko
....
. Εξασφαλίστε ότι υπάρχει κατάλληλο σημείο προσάρτησης, ή δημιουργήστε ένα καινούριο:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
. Προσδιορίστε τα ονόματα συσκευών των δίσκων που θα προστεθούν στη συστοιχία και δημιουργήστε τη νέα συσκευή RAID3. Στο παράδειγμα μας χρησιμοποιούμε τρεις οδηγούς ATA οι οποίοι δεν περιέχουν κατατμήσεις: [.filename]#ada1# και [.filename]#ada2# για τα δεδομένα και [.filename]#ada3# για το parity.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1
@@ -377,7 +377,7 @@ Done.
. Δημιουργήστε κατατμήσεις στη νέα συσκευή [.filename]#gr0# και διαμορφώστε την με σύστημα αρχείων UFS:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -387,7 +387,7 @@ Done.
Θα δείτε μεγάλο πλήθος αριθμών να περνάει από την οθόνη σας και μετά από λίγο η διαδικασία θα ολοκληρωθεί. Ο τόμος έχει πλέον δημιουργηθεί και είναι έτοιμος να προσαρτηθεί.
. Το τελευταίο βήμα είναι η προσάρτηση του συστήματος αρχείων:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia
....
@@ -427,14 +427,14 @@ geom_raid3_load="YES"
Για να διαμοιράσετε αυτή τη συσκευή, βεβαιωθείτε ότι δεν είναι προσαρτημένη τη δεδομένη στιγμή, και ξεκινήστε το δαίμονα εξυπηρετητή man:ggated[8]:
-[source,bash]
+[source,shell]
....
# ggated
....
Για να προσαρτήσετε την συσκευή στο μηχάνημα πελάτη, χρησιμοποιήστε τις ακόλουθες εντολές:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -472,7 +472,7 @@ ggate0
Για να δημιουργήσετε μια μόνιμη ετικέτα για ένα σύστημα αρχείων UFS2, χωρίς να καταστρέψετε τα δεδομένα που περιέχει, χρησιμοποιήστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -497,7 +497,7 @@ ggate0
Μπορείτε τώρα να προσαρτήσετε το σύστημα αρχείων με το συνήθη τρόπο:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -508,7 +508,7 @@ ggate0
Μπορείτε να χρησιμοποιήσετε την παρακάτω εντολή για να καταστρέψετε μια ετικέτα:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -522,7 +522,7 @@ ggate0
Επανεκκινήστε το σύστημα, και όταν εμφανιστεί η προτροπή του man:loader[8], πιέστε το kbd:[4] για να πραγματοποιηθεί εκκίνηση σε κατάσταση ενός χρήστη. Έπειτα, δώστε τις ακόλουθες εντολές:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -551,7 +551,7 @@ GEOM_LABEL: Label for provider /dev/ad0s1b is label/swap
Μπορείτε τώρα να επανεκκινήσετε το σύστημα. Αν όλα πήγαν καλά, η εκκίνηση θα είναι κανονική, και η εντολή `mount` θα δείξει:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -565,7 +565,7 @@ devfs on /dev (devfs, local)
Ξεκινώντας από το FreeBSD 7.2, το man:glabel[8] υποστηρίζει ένα νέο είδος ετικέτας για συστήματα αρχείων UFS, που βασίζεται σε ένα μοναδιαίο αναγνωριστικό τους, το `ufsid`. Οι ετικέτες αυτές βρίσκονται στον κατάλογο [.filename]#/dev/ufsid#, δημιουργούνται αυτόματα κατά την εκκίνηση του συστήματος και είναι δυνατόν να χρησιμοποιηθούν για την προσάρτηση κατατμήσεων μέσω του [.filename]#/etc/fstab#. Μπορείτε να χρησιμοποιήσετε την εντολή `glabel status` για να λάβετε μια λίστα των συστημάτων αρχείων με τις αντίστοιχες `ufsid` ετικέτες τους:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -617,7 +617,7 @@ options GEOM_JOURNAL
Η δημιουργία journal σε ένα ελεύθερο σύστημα αρχείων, μπορεί τώρα να γίνει με τα ακόλουθα βήματα, θεωρώντας ότι η συσκευή [.filename]#da4# είναι ένας νέος δίσκος SCSI:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -625,7 +625,7 @@ options GEOM_JOURNAL
Στο σημείο αυτό θα υπάρχει μια συσκευή [.filename]#/dev/da4# καθώς και μια συσκευή [.filename]#/dev/da4.journal#. Στη συσκευή αυτή μπορείτε τώρα να δημιουργήσετε σύστημα αρχείων:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -634,7 +634,7 @@ options GEOM_JOURNAL
Μπορείτε να χρησιμοποιήσετε την εντολή `mount` για να προσαρτήσετε την συσκευή στο επιθυμητό σημείο προσάρτησης, όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/el/books/handbook/install/_index.adoc b/documentation/content/el/books/handbook/install/_index.adoc
index 8d4bde506c..d40624c818 100644
--- a/documentation/content/el/books/handbook/install/_index.adoc
+++ b/documentation/content/el/books/handbook/install/_index.adoc
@@ -316,7 +316,7 @@ toc::[]
+
Το αρχείο [.filename]#.img#_δεν_ είναι ένα κανονικό αρχείο που μπορείτε απλώς να αντιγράψετε στη μνήμη flash. Πρόκειται στην πραγματικότητα για μια εικόνα των περιεχομένων ολόκληρου του δίσκου. Αυτό σημαίνει ότι _δεν_ μπορείτε απλώς να αντιγράψετε τα δεδομένα από τον ένα δίσκο στον άλλο. Θα πρέπει να χρησιμοποιήσετε την εντολή man:dd[1] για να γράψετε το αρχείο εικόνας απευθείας στο δίσκο:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-{rel112-current}-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -378,7 +378,7 @@ H εφαρμογή Image Writer για Windows είναι ελεύθερο λο
+
Αν χρησιμοποιείτε τα images των δισκετών από το CDROM και ο οδηγός σας CDROM είναι στο γράμμα [.filename]#E:#, θα εκτελέσετε την εξής εντολή:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
@@ -388,7 +388,7 @@ E:\> tools\fdimage floppies\boot.flp A:
+
Αν γράφετε τις δισκέτες σε ένα σύστημα UNIX(R) (όπως κάποιο σύστημα FreeBSD) μπορείτε να χρησιμοποιήσετε την εντολή man:dd[1] για να γράψετε τα image αρχεία απευθείας στις δισκέτες. Στο FreeBSD θα γράφατε:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -448,7 +448,7 @@ We can take no responsibility for lost disk contents!
. Θα αρχίσει η εκκίνηση του FreeBSD. Αν ξεκινάτε από το CDROM θα δείτε μια εικόνα όπως την επόμενη (έχουν παραλειφθεί οι πληροφορίες έκδοσης):
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
CD Loader 1.2
@@ -475,7 +475,7 @@ x88e9d]
+
Αν κάνετε εκκίνηση από μονάδα δισκέτας, θα δείτε μια οθόνη όμοια με την παρακάτω (έχουν παραλειφθεί οι πληροφορίες έκδοσης):
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -509,7 +509,7 @@ image::boot-loader-menu.png[]
Για το σκοπό αυτό, επανεκκινήστε το σύστημα και περιμένετε μέχρι να εμφανιστεί το μήνυμα εκκίνησης (boot). Αυτό εξαρτάται από το μοντέλο, αλλά γενικά μοιάζει με:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -519,7 +519,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Αν το σύστημα σας συνεχίζει με εκκίνηση από το σκληρό δίσκο, πρέπει να πιέσετε: kbd:[L1+A] ή kbd:[Stop+A] στο πληκτρολόγιο, ή να στείλετε `BREAK` μέσω της σειριακής κονσόλας (χρησιμοποιώντας για παράδειγμα `~#` στο man:tip[1] ή στο man:cu[1]) για να φτάσετε στην προτροπή της PROM. Φαίνεται όπως παρακάτω:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -688,7 +688,7 @@ O Bill διαλύει ένα παλιό μηχάνημα Wintel για να φτ
Αφού επιλέξετε να ξεκινήσετε μια τυπική εγκατάσταση (standard installation) στο sysinstall θα δείτε το παρακάτω μήνυμα:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -853,7 +853,7 @@ image::fdisk-drive2.png[]
Έχοντας αποφασίσει την διάταξη των κατατμήσεων σας, μπορείτε τώρα να την δημιουργήσετε χρησιμοποιώντας το sysinstall. Θα δείτε το παρακάτω μήνυμα:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -953,7 +953,7 @@ image::dist-set.png[]
Το πρόγραμμα εγκατάστασης δεν ελέγχει αν υπάρχει αρκετός ελεύθερος χώρος. Κάντε την επιλογή αυτή μόνο αν υπάρχει αρκετός χώρος. Από την έκδοση του FreeBSD {rel120-current}, η συλλογή ports του FreeBSD καταλαμβάνει περίπου {ports-size} χώρο στο δίσκο. Μπορείτε με ασφάλεια να θεωρήσετε ότι ο χώρος αυτός θα είναι μεγαλύτερος για πιο καινούριες εκδόσεις του FreeBSD.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1022,7 +1022,7 @@ FTP μέσω HTTP μεσολάβησης: [.guimenuitem]#Install from an FTP ser
Η εγκατάσταση μπορεί τώρα να προχωρήσει, εφόσον το επιθυμείτε. Αυτή είναι επίσης η τελευταία σας ευκαιρία να την ακυρώσετε εμποδίζοντας έτσι και τις αλλαγές που πρόκειται να γίνουν στο σκληρό σας δίσκο.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1041,7 +1041,7 @@ FTP μέσω HTTP μεσολάβησης: [.guimenuitem]#Install from an FTP ser
Η εγκατάσταση θα έχει ολοκληρωθεί όταν δείτε το ακόλουθο μήνυμα:
-[source,bash]
+[source,shell]
....
Message
@@ -1062,7 +1062,7 @@ do so by typing: /usr/sbin/sysinstall.
Αν επιλέξετε btn:[no] και πιέσετε kbd:[Enter] θα ακυρώσετε την εγκατάσταση και δεν θα γίνει καμιά αλλαγή στο σύστημα σας. Θα εμφανιστεί το ακόλουθο μήνυμα:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1087,7 +1087,7 @@ installation menus to retry whichever operations have failed.
Για λεπτομερείς πληροφορίες σχετικά με Τοπικά Δίκτυα (LAN) και για ρύθμιση του FreeBSD ως πύλη / δρομολογητή (gateway/router), ανατρέξτε στο κεφάλαιο crossref:advanced-networking[advanced-networking,Advanced Networking].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1103,7 +1103,7 @@ image::ed0-conf.png[]
Επιλέξτε το interface που θα ρυθμίσετε με τα βελάκια, και πιέστε kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1115,7 +1115,7 @@ image::ed0-conf.png[]
Αν είστε συνδεμένοι σε ένα υπάρχον IPv6 δίκτυο με ένα διακομιστή RA, επιλέξτε btn:[yes] και πιέστε kbd:[Enter]. Θα χρειαστούν αρκετά δευτερόλεπτα για την ανίχνευση διακομιστών RA.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1158,7 +1158,7 @@ Extra options to ifconfig (Επιπλέον επιλογές για την ifcon
Χρησιμοποιήστε το kbd:[Tab] για να επιλέξετε btn:[OK] όταν τελειώσετε, και πιέστε kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to bring the ed0 interface up right now?
@@ -1171,7 +1171,7 @@ Extra options to ifconfig (Επιπλέον επιλογές για την ifcon
[[gateway]]
=== Ρύθμισης Πύλης (Gateway)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1184,7 +1184,7 @@ Extra options to ifconfig (Επιπλέον επιλογές για την ifcon
[[inetd-services]]
=== Ρύθμιση Υπηρεσιών Internet (Internet Services)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1198,7 +1198,7 @@ Do you want to configure inetd and the network services that it provides?
Επιλέξτε btn:[yes] αν θέλετε να ρυθμίσετε τις υπηρεσίες αυτές κατά την εγκατάσταση. Θα ερωτηθείτε για μια ακόμα επιβεβαίωση:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1213,7 +1213,7 @@ With this in mind, do you wish to enable inetd?
Επιλέξτε btn:[yes] για να συνεχίσετε.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1240,7 +1240,7 @@ image::edit-inetd-conf.png[]
[[ssh-login]]
=== Ενεργοποίηση Εισόδου μέσω SSH
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1252,7 +1252,7 @@ image::edit-inetd-conf.png[]
[[ftpanon]]
=== Ανώνυμο FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1272,7 +1272,7 @@ image::edit-inetd-conf.png[]
Για να επιτρέψετε το ανώνυμο FTP, χρησιμοποιήστε τα βελάκια για να επιλέξετε btn:[yes] και να πιέσετε kbd:[Enter]. Θα χρειαστεί να επιβεβαιώσετε ξανά την επιλογή σας:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1320,7 +1320,7 @@ Upload Subdirectory::
Όταν είστε ικανοποιημένος με τις τιμές, πιέστε kbd:[Enter] για να συνεχίσετε.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1346,7 +1346,7 @@ image::ftp-anon2.png[]
[[nsf-server-options]]
==== Διακομιστής NFS
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1358,7 +1358,7 @@ image::ftp-anon2.png[]
Αν επιλέξετε btn:[yes] θα εμφανιστεί ένα αναδυόμενο μήνυμα που σας πληροφορεί ότι πρέπει να δημιουργηθεί το αρχείο [.filename]#exports#.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1383,7 +1383,7 @@ image::nfs-server-edit.png[]
Ο πελάτης NFS επιτρέπει στο μηχάνημα σας να έχει πρόσβαση σε εξυπηρετητές NFS.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1398,7 +1398,7 @@ image::nfs-server-edit.png[]
Υπάρχουν διάφορες διαθέσιμες επιλογές για τη ρύθμιση της κονσόλας του συστήματος.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1441,7 +1441,7 @@ image::console-saver4.png[]
Το παράδειγμα που φαίνεται είναι για ένα μηχάνημα που βρίσκεται στις Ανατολικές Ηνωμένες Πολιτείες. Οι επιλογές σας θα διαφέρουν ανάλογα με τη γεωγραφική σας θέση.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1451,7 +1451,7 @@ image::console-saver4.png[]
Επιλέξτε btn:[yes] και πιέστε kbd:[Enter] για να ρυθμίσετε τη ζώνη ώρας.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1480,7 +1480,7 @@ image::timezone3.png[]
Επιλέξτε την κατάλληλη ζώνη ώρας με τα βελάκια και πιέστε kbd:[Enter].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1498,7 +1498,7 @@ image::timezone3.png[]
Η ενότητα αυτή ισχύει μόνο για την εγκατάσταση FreeBSD της σειράς 7._X_. Αν εγκαταστήσετε FreeBSD 8._X_ η οθόνη αυτή δεν θα εμφανιστεί.
====
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1515,7 +1515,7 @@ image::timezone3.png[]
Η επιλογή αυτή θα σας επιτρέψει να κάνετε αποκοπή και επικόλληση κειμένου στην κονσόλα και σε προγράμματα χρησιμοποιώντας ένα ποντίκι τριών πλήκτρων. Αν χρησιμοποιείτε ποντίκι δύο πλήκτρων, ανατρέξτε στη σελίδα βοήθειας, man:moused[8], μετά την εγκατάσταση για να δείτε πως μπορείτε να εξομοιώσετε ποντίκι τριών πλήκτρων. Στο παράδειγμα αυτό φαίνεται η ρύθμιση ενός μη-USB ποντικιού (π.χ. PS/2 η σειριακού - COM - ποντικιού):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a non-USB mouse attached to it?
@@ -1570,7 +1570,7 @@ image::mouse6.png[]
Θα σας δείξουμε την εγκατάσταση ενός πακέτου ως παράδειγμα. Μπορείτε επίσης να εγκαταστήσετε τώρα και όποια άλλα πρόσθετα πακέτα επιθυμείτε. Μετά την εγκατάσταση, μπορείτε να χρησιμοποιήσετε το `sysinstall` για να εγκαταστήσετε πρόσθετα πακέτα.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1623,7 +1623,7 @@ image::pkg-confirm.png[]
Θα πρέπει να προσθέσετε τουλάχιστον ένα χρήστη κατά τη διάρκεια της εγκατάστασης, ώστε να μπορείτε να χρησιμοποιήσετε το σύστημα χωρίς να εισέρχεστε ως `root`. Η root κατάτμηση είναι γενικά μικρή, και εκτελώντας εφαρμογές ως `root` μπορεί γρήγορα να γεμίσει. Παρακάτω φαίνεται και ένας πιο σοβαρός κίνδυνος:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1689,7 +1689,7 @@ image::adduser3.png[]
[[rootpass]]
=== Ορισμός του Κωδικού για το Χρήστη `root`
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1704,7 +1704,7 @@ image::adduser3.png[]
Θα πρέπει να πληκτρολογήσετε δύο φορές τον κωδικό σωστά. Δεν χρειάζεται να πούμε ότι πρέπει να έχετε τρόπο να βρείτε τον κωδικό αν τον ξεχάσετε. Παρατηρήστε ότι ο κωδικός δεν εμφανίζεται καθώς τον πληκτρολογείτε, ούτε και εμφανίζονται αστεράκια στη θέση του.
-[source,bash]
+[source,shell]
....
Changing local password for root.
New password :
@@ -1718,7 +1718,7 @@ Retype new password :
Αν χρειάζεται να ρυθμίσετε πρόσθετες δικτυακές υπηρεσίες, ή κάποια άλλη ρύθμιση, μπορείτε να το κάνετε τώρα ή μετά την εγκατάσταση με τη χρήση της εντολής `sysinstall`.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1735,7 +1735,7 @@ image::mainexit.png[]
Επιλέξτε btn:[X Exit Install] με τα βελάκια και πιέστε kbd:[Enter]. Θα κληθείτε να επιβεβαιώσετε την έξοδο από την εγκατάσταση:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -1745,7 +1745,7 @@ image::mainexit.png[]
Επιλέξτε btn:[yes]. Αν είχατε ξεκινήσει από το CDROM, θα δείτε το παρακάτω μήνυμα για να σας υπενθυμίσει να αφαιρέσετε το CD:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -1777,7 +1777,7 @@ image::net-config-menu1.png[]
Αμέσως μετά βρίσκεται η επιλογή [.guimenuitem]#AMD Flags#. Όταν την επιλέξετε θα εμφανιστεί ένα αναδυόμενο μενού για να μπορέσετε να εισάγετε συγκεκριμένες παραμέτρους (flags) για την υπηρεσία AMD. Το μενού περιέχει ήδη ένα σύνολο από προεπιλογές:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1848,7 +1848,7 @@ image::net-config-menu2.png[]
Τυπικά μηνύματα εκκίνησης (έχουν παραλειφθεί οι πληροφορίες έκδοσης):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1987,7 +1987,7 @@ Password:
Είναι πολύ σημαντικό να τερματίζετε σωστά το λειτουργικό σύστημα. Μην σβήνετε απλώς τον υπολογιστή από το διακόπτη ρεύματος. Πρώτα από όλα, γίνετε υπερχρήστης (superuser) χρησιμοποιώντας την εντολή `su` στη γραμμή εντολών και δίνοντας τον κωδικό του `root`. Αυτό μπορεί να γίνει μόνο αν ο χρήστης ανήκει στην ομάδα `wheel`. Διαφορετικά, κάντε κανονικά login σαν `root` και χρησιμοποιήστε την εντολή `shutdown -h now`.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2037,7 +2037,7 @@ Please press any key to reboot.
Παρακάτω φαίνεται μια τυπική κλήση στην man:mount[8] για την προσάρτηση ενός συστήματος αρχείων MS-DOS(R):
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2057,7 +2057,7 @@ Please press any key to reboot.
Στο FreeBSD γίνεται εκτεταμένη χρήση του ACPI (εφόσον ανιχνευθεί στην εκκίνηση) στις πλατφόρμες i386, amd64 και ia64 για διευκόλυνσης της ρύθμισης υλικού. Δυστυχώς υπάρχουν ακόμα κάποια προβλήματα τόσο στο πρόγραμμα οδήγησης του ACPI όσο και στα BIOS και τις μητρικές. Μπορείτε να απενεργοποιήσετε το ACPI, με την ρύθμιση `hint.acpi.0.disabled` στο τρίτο στάδιο του συστήματος εκκίνησης (boot loader):
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2074,7 +2074,7 @@ Please press any key to reboot.
Το FreeBSD βρίσκεται στο δίσκο 1 του BIOS, τύπου `ad` ενώ στο FreeBSD φαίνεται ως δίσκος 2, άρα πρέπει να δώσετε:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2083,7 +2083,7 @@ Please press any key to reboot.
Η δεύτερη περίπτωση περιλαμβάνει την εκκίνηση από δίσκο SCSI, όταν έχετε επίσης ένα ή περισσότερους IDE δίσκους στο σύστημα. Στην περίπτωση αυτή ο αριθμός του δίσκου στο FreeBSD είναι χαμηλότερος από τον αντίστοιχο του BIOS. Αν έχετε δύο δίσκους IDE και το SCSI δίσκο, ο SCSI δίσκος φαίνεται στο BIOS ως δίσκος 2, τύπου `da` και αναγνωρίζεται στο FreeBSD ως δίσκος 0, θα γράφατε:
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2132,7 +2132,7 @@ Please press any key to reboot.
+
Αν επρόκειτο να εκκινήσετε από το USB flash που μόλις φτιάξατε, το FreeBSD θα ξεκίναγε στην κανονική κατάσταση εγκατάστασης. Θέλουμε το FreeBSD να ξεκινήσει σε σειριακή κονσόλα για την εγκατάσταση μας. Για να το κάνετε αυτό, θα πρέπει να προσαρτήσετε το USB flash στο FreeBSD σύστημα σας, χρησιμοποιώντας την εντολή man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2144,14 +2144,14 @@ Please press any key to reboot.
+
Τώρα που έχετε προσαρτήσει τη μνήμη USB, θα πρέπει να τη ρυθμίσετε ώστε να εκκινεί στη σειριακή κονσόλα. Θα πρέπει να προσθέσετε μια γραμμή στο αρχείο [.filename]#loader.conf# που περιέχεται στο σύστημα αρχείων της USB μνήμης, ώστε να ορίσετε τη σειριακή κονσόλα ως κονσόλα συστήματος:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' /mnt/boot/loader.conf
....
+
Τώρα που έχετε ρυθμίσει σωστά τη μνήμη USB, πρέπει να την αποπροσαρτήσετε, χρησιμοποιώντας την εντολή man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2163,7 +2163,7 @@ Please press any key to reboot.
+
Στο FreeBSD σύστημα που έχετε αποθηκεύσει το αρχικό ISO, π.χ. [.filename]#FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso# χρησιμοποιήστε την εντολή man:tar[1] για να κάνετε εξαγωγή των αρχείων που περιέχει:
+
-[source,bash]
+[source,shell]
....
# mkdir /path/to/headless-iso
# tar -C /path/to/headless-iso -pxvf FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso
@@ -2171,14 +2171,14 @@ Please press any key to reboot.
+
Θα πρέπει τώρα να αλλάξουμε το μέσο εγκατάστασης ώστε να ξεκινάει σε σειριακή κονσόλα. Θα πρέπει να προσθέσετε μια γραμμή στο αρχείο [.filename]#loader.conf# που ανακτήσατε από το αρχείο ISO, ώστε να ενεργοποιήσετε την σειριακή κονσόλα ως κονσόλα συστήματος:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' /path/to/headless-iso/boot/loader.conf
....
+
Μπορούμε έπειτα να δημιουργήσουμε ένα νέο αρχείο ISO που να περιλαμβάνει τις τροποποιήσεις μας. Για το σκοπό αυτό θα χρησιμοποιήσουμε το εργαλείο man:mkisofs[8] το οποίο περιλαμβάνεται στο port package:sysutils/cdrtools[]:
+
-[source,bash]
+[source,shell]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "Headless_install" \
-o Headless-FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso /path/to/headless-iso
@@ -2195,14 +2195,14 @@ Please press any key to reboot.
+
Θα πρέπει τώρα να συνδεθείτε με το μηχάνημα σας, χρησιμοποιώντας την man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
+
Στο FreeBSD 7._X_ χρησιμοποιήστε την παρακάτω εντολή:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuad0
....
@@ -2300,7 +2300,7 @@ Please press any key to reboot.
[.procedure]
. Στο FreeBSD μηχάνημα που θα φιλοξενήσει την FTP τοποθεσία, βεβαιωθείτε ότι το CD-ROM είναι μέσα στον οδηγό και έχει γίνει προσάρτηση του στον κατάλογο [.filename]#/cdrom#.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2337,7 +2337,7 @@ ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent
Αν δημιουργείτε τις δισκέτες σε άλλο μηχάνημα FreeBSD η διαμόρφωση δεν είναι άσχημη ιδέα, αν και δε χρειάζεται να δημιουργήσετε σύστημα αρχείων MS-DOS(R) σε κάθε μια. Μπορείτε αντί για αυτό, να χρησιμοποιήσετε τις εντολές `bsdlabel` και `newfs` για να δημιουργήσετε σύστημα αρχείων UFS σε αυτές, όπως φαίνεται από την παρακάτω ακολουθία εντολών:
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w fd0.1440 floppy3
@@ -2360,7 +2360,7 @@ ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent
Για να προετοιμαστείτε για μια εγκατάσταση από κατάτμηση MS-DOS(R), αντιγράψτε τα αρχεία της διανομής σε ένα κατάλογο που θα ονομάσετε [.filename]#freebsd# στο ριζικό κατάλογο της κατάτμησης. Για παράδειγμα, [.filename]#c:\freebsd#. Η δομή των καταλόγων του CDROM ή της τοποθεσίας FTP θα πρέπει να αναπαραχθεί μερικώς μέσα σε αυτό τον κατάλογο, για το λόγο αυτό σας συνιστούμε να χρησιμοποιήσετε την εντολή `xcopy` αν κάνετε την αντιγραφή από CD. Για παράδειγμα, για να προετοιμάσετε μια ελάχιστη εγκατάσταση του FreeBSD:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2377,7 +2377,7 @@ C:\> xcopy e:\manpages c:\freebsd\manpages\ /s
Η εγκατάσταση από ταινία, είναι ίσως η ευκολότερη μέθοδος εκτός από την εγκατάσταση μέσω FTP ή CDROM. Το πρόγραμμα εγκατάστασης απλώς αναμένει τα αρχεία να έχουν γραφτεί στην ταινία με μορφή tar. Αφού επιλέξετε τα σετ εγκατάστασης που σας ενδιαφέρουν, απλώς κάντε τα tar στην ταινία:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/el/books/handbook/jails/_index.adoc b/documentation/content/el/books/handbook/jails/_index.adoc
index 1a32b36f17..41e407867f 100644
--- a/documentation/content/el/books/handbook/jails/_index.adoc
+++ b/documentation/content/el/books/handbook/jails/_index.adoc
@@ -111,7 +111,7 @@ hosted (σύστημα (system), διεργασία (process), χρήστης (u
Μερικοί διαχειριστές συστημάτων κατηγοριοποιούν τα jails σε δύο ενότητες: τα "complete (πλήρη)" jails, τα οποία μιμούνται ένα πραγματικό σύστημα FreeBSD, και τα "service" jails, τα οποία χρησιμοποιούνται για μια εφαρμογή ή υπηρεσία, που πιθανόν εκτελείται με ειδικά προνόμια. Αυτός είναι ένας νοητικός διαχωρισμός και δεν επιδρά στη διαδικασία δημιουργίας ενός jail. Η σελίδα manual του man:jail[8] περιέχει κατατοπιστικές πληροφορίες για τη διαδικασία δημιουργίας ενός jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -172,7 +172,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
Το script [.filename]#/etc/rc.d/jail# μπορεί να χρησιμοποιηθεί για να ξεκινήσει ή να σταματήσει κάποιο jail χειροκίνητα. Πρέπει όμως να υπάρχει η αντίστοιχη καταχώρηση στο [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -180,7 +180,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
Για την ώρα δεν υπάρχει κάποιος απόλυτα σωστός τρόπος για να τερματίσετε κάποιο man:jail[8]. Αυτό συμβαίνει, διότι οι εντολές που χρησιμοποιούνται συνήθως για να τερματίσουν με ασφάλεια ένα σύστημα, δεν μπορούν να χρησιμοποιηθούν μέσα στο περιβάλλον ενός jail. Ο καλύτερος τρόπος για να τερματίσετε ένα jail είναι με την εκτέλεση της ακόλουθης εντολής μέσα από το ίδιο το jail ή με χρήση του βοηθητικού προγράμματος man:jexec[8] έξω από αυτό:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -216,7 +216,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
* Προσκόλληση σε κάποιο ενεργό jail, από το host system, και εκτέλεση κάποιας εντολής μέσα στο jail ή εκτέλεση εργασιών διαχείρισης μέσα στο jail. Κάτι τέτοιο είναι ιδιαίτερα χρήσιμο όταν ο χρήστης `root` επιθυμεί να τερματίσει με ασφάλεια κάποιο jail. Μπορεί επίσης να χρησιμοποιηθεί η εντολή man:jexec[8] για την εκτέλεση κάποιου shell μέσα στο jail προκειμένου να εκτελεστούν εργασίες διαχείρισης, για παράδειγμα:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -287,7 +287,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
[.procedure]
. Αρχικά, δημιουργήστε μια δομή καταλόγων για το σύστημα αρχείων το οποίο θα είναι μόνο για ανάγνωση, και το οποίο θα περιέχει τα εκτελέσιμα (binaries) του FreeBSD για τα jails. Στη συνέχεια πηγαίνετε στον κατάλογο όπου βρίσκονται τα αρχεία πηγαίου κώδικα (source tree) του FreeBSD και εγκαταστήστε τα αντίστοιχα αρχεία στο jail template:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -296,7 +296,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
. Επόμενο βήμα είναι να προετοιμάσετε τη συλλογή των Ports του FreeBSD για τα jails όπως επίσης και ένα FreeBSD source tree, το οποίο θα χρειαστεί για το mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -306,7 +306,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
. Δημιουργήστε το σκελετό για το τμήμα του συστήματος όπου προορίζεται για ανάγνωση και εγγραφή:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -318,7 +318,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
. Χρησιμοποιήστε το mergemaster για να εγκαταστήσετε τα αρχεία ρυθμίσεων που λείπουν. Στη συνέχεια διαγράψτε όλους τους έξτρα καταλόγους που δημιουργεί το mergemaster:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -327,7 +327,7 @@ jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail
. Τώρα, δημιουργήστε συνδέσμους από το σύστημα αρχείων στο οποίο επιτρέπεται η εγγραφή, προς το σύστημα αρχείων που είναι μόνο για ανάγνωση. Βεβαιωθείτε ότι οι σύνδεσμοι έχουν δημιουργηθεί στις σωστές θέσεις [.filename]#s/#. Η ύπαρξη πραγματικών καταλόγων ή η δημιουργία καταλόγων σε λάθος θέσεις θα οδηγήσουν την εγκατάσταση σε αποτυχία.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -402,14 +402,14 @@ jail_www_devfs_enable="YES"
. Δημιουργήστε τα απαραίτητα σημεία προσαρτήσεων για το σύστημα αρχείων μόνο ανάγνωσης του κάθε jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
. Εγκαταστήστε το εγγράψιμο template μέσα στο κάθε jail. Προσέξτε εδώ τη χρήση του package:sysutils/cpdup[], το οποίο επιβεβαιώνει ότι δημιουργείται το σωστό αντίγραφο του κάθε καταλόγου:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -419,7 +419,7 @@ jail_www_devfs_enable="YES"
. Σε αυτή τη φάση, τα jails έχουν δημιουργηθεί και είναι έτοιμα να ξεκινήσουν. Προσαρτήστε το σωστό σύστημα αρχείων για το κάθε jail, και στη συνέχεια εκκινήστε τα, χρησιμοποιώντας το script [.filename]#/etc/rc.d/jail#:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
@@ -427,7 +427,7 @@ jail_www_devfs_enable="YES"
Τα jails θα πρέπει τώρα να εκτελούνται κανονικά. Γα να ελέγξετε αν έχουν ξεκινήσει σωστά, χρησιμοποιείστε την εντολή man:jls[8]. Θα πρέπει να δείτε κάτι αντίστοιχο με το παρακάτω:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -438,7 +438,7 @@ jail_www_devfs_enable="YES"
Σε αυτό το σημείο, θα πρέπει να μπορείτε να συνδεθείτε σε κάθε jail, να προσθέσετε νέους χρήστες ή να ρυθμίσετε υπηρεσίες. Η στήλη `JID` δηλώνει το χαρακτηριστικό αναγνωριστικό αριθμό κάθε ενεργού jail. Χρησιμοποιήστε την παρακάτω εντολή προκειμένου να εκτελέσετε εργασίες διαχείρισης του jail, με `JID` 3:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -451,7 +451,7 @@ jail_www_devfs_enable="YES"
[.procedure]
. Το πρώτο βήμα είναι να αναβαθμίσετε το σύστημα στο οποίο φιλοξενούνται τα jails, με το συνήθη τρόπο. Στη συνέχεια δημιουργήστε ένα νέο προσωρινό template κατάλογο, μόνο για ανάγνωση, στο [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -463,7 +463,7 @@ jail_www_devfs_enable="YES"
+
Το `installworld` δημιουργεί μερικούς καταλόγους που δε χρειάζονται, και θα πρέπει να διαγραφούν:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -471,7 +471,7 @@ jail_www_devfs_enable="YES"
. Δημιουργήστε ξανά τους συνδέσμους για το σύστημα αρχείων ανάγνωσης - εγγραφής:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -484,14 +484,14 @@ jail_www_devfs_enable="YES"
. Τώρα είναι η σωστή στιγμή για να σταματήσετε τα jails:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail stop
....
. Αποπροσαρτήστε τα αρχικά συστήματα αρχείων:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -508,7 +508,7 @@ jail_www_devfs_enable="YES"
. Μετακινήστε τον παλιό μόνο για ανάγνωση κατάλογο, και αντικαταστήστε τον με τον καινούργιο. Ο παλιός θα παραμείνει ως αντίγραφο ασφαλείας του παλιού συστήματος σε περίπτωση προβλήματος. Ο τρόπος ονομασίας που ακολουθήσαμε εδώ αντιστοιχεί στη χρονική στιγμή δημιουργίας του νέου συστήματος αρχείων μόνο ανάγνωσης. Μετακινήστε την αρχική συλλογή των Ports του FreeBSD στο νέο σύστημα, αρχείων προκειμένου να εξοικονομήσετε χώρο και inodes:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -518,7 +518,7 @@ jail_www_devfs_enable="YES"
. Σε αυτό το σημείο το μόνο για ανάγνωση template είναι έτοιμο, οπότε το μόνο που απομένει είναι να προσαρτήσετε ξανά τα συστήματα αρχείων και να ξεκινήσετε τα jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
diff --git a/documentation/content/el/books/handbook/kernelconfig/_index.adoc b/documentation/content/el/books/handbook/kernelconfig/_index.adoc
index 109f40b93b..04d2ee822b 100644
--- a/documentation/content/el/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/el/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ subclass = ethernet
Μπορείτε επίσης να πάρετε χρήσιμες πληροφορίες από την εντολή man:man[1], αν δώσετε την επιλογή `-k`. Στο παραπάνω παράδειγμα, δίνοντας:
-[source,bash]
+[source,shell]
....`Atheros`
....
@@ -169,7 +169,7 @@ following line in man:loader.conf[5]:
====
Αν δεν υπάρχει ο κατάλογος [.filename]#/usr/src/# στο σύστημα σας (ή αν είναι άδειος), τότε δεν έχετε εγκαταστήσει τον πηγαίο κώδικα. Ο ευκολότερος τρόπος για να εγκαταστήσετε τον πλήρη πηγαίο κώδικα, είναι να μέσω του man:csup[1] όπως περιγράφεται στο crossref:cutting-edge[synching,Συγχρονίζοντας τον Πηγαίο σας Κώδικα]. Θα πρέπει επίσης να δημιουργήσετε ένα συμβολικό δεσμό προς τον κατάλογο [.filename]#/usr/src/sys/#:
-[source,bash]
+[source,shell]
....
# ln -s /usr/src/sys /sys
....
@@ -178,7 +178,7 @@ following line in man:loader.conf[5]:
Έπειτα, μετακινηθείτε στον κατάλογο [.filename]#arch/conf# και αντιγράψτε το αρχείο ρυθμίσεων [.filename]#GENERIC# στο όνομα το οποίο θέλετε να δώσετε στο νέο σας πυρήνα. Για παράδειγμα:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -195,7 +195,7 @@ following line in man:loader.conf[5]:
Για παράδειγμα:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -225,21 +225,21 @@ following line in man:loader.conf[5]:
======
. Μετακινηθείτε στον κατάλογο [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
. Μεταγλωττίστε τον πυρήνα:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
. Εγκαταστήστε το νέο πυρήνα:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -296,7 +296,7 @@ options IPDIVERT
====
Για να δημιουργήσετε ένα αρχείο το οποίο να περιέχει όλες τις διαθέσιμες επιλογές, όπως γίνεται συνήθως για δοκιμές, εκτελέστε την ακόλουθη εντολή ως `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1143,7 +1143,7 @@ options PAE
Αποτυχία της εντολής `config`:::
Αν η εντολή man:config[8] αποτυγχάνει όταν της δίνετε την περιγραφή του πυρήνα σας, έχετε κατά πάσα πιθανότητα, κάνει κάποιο απλό λάθος. Ευτυχώς, η man:config[8] θα σας δείξει τον αριθμό γραμμής στον οποίο συνάντησε το πρόβλημα, και έτσι θα μπορέσετε εύκολα να το εντοπίσετε. Για παράδειγμα, αν δείτε:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1162,7 +1162,7 @@ config: line 17: syntax error
====
Αν έχετε πρόβλημα στη δημιουργία πυρήνα, βεβαιωθείτε ότι έχετε κρατήσει ένα πυρήνα [.filename]#GENERIC#, ή κάποιο άλλο που γνωρίζετε ότι λειτουργεί, χρησιμοποιώντας ένα διαφορετικό όνομα ώστε να μη διαγραφεί στην επόμενη μεταγλώττιση. Δεν μπορείτε να βασιστείτε στον πυρήνα [.filename]#kernel.old#, γιατί κάθε φορά που εγκαθιστάτε νέο πυρήνα, το [.filename]#kernel.old# αντικαθίσταται με τον τελευταίο εγκατεστημένο πυρήνα, ο οποίος μπορεί να μην λειτουργεί. Επίσης, όσο το δυνατόν πιο σύντομα, μετακινήστε τον πυρήνα που λειτουργεί στην σωστή θέση, [.filename]#/boot/kernel#, διαφορετικά εντολές όπως η man:ps[1] ίσως να μη λειτουργούν σωστά. Για να το κάνετε αυτό, απλώς μετονομάστε τον κατάλογο που περιέχει τον καλό πυρήνα, π.χ:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/el/books/handbook/l10n/_index.adoc b/documentation/content/el/books/handbook/l10n/_index.adoc
index bbd50cab88..dbc00159d3 100644
--- a/documentation/content/el/books/handbook/l10n/_index.adoc
+++ b/documentation/content/el/books/handbook/l10n/_index.adoc
@@ -212,7 +212,7 @@ german|German Users Accounts:\
Πριν κάνετε αλλαγές στις Κλάσεις Εισόδου (Login Classes) των χρηστών, εκτελέστε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -235,7 +235,7 @@ user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh
* Θέστε το `defaultclass = language` στο [.filename]#/etc/adduser.conf#. Να έχετε υπόψη σας ότι σε αυτή την περίπτωση, θα πρέπει να ορίσετε μια κλάση `default` για όλους τους χρήστες άλλων γλωσσών.
* Μια εναλλακτική λύση, είναι να απαντάτε κάθε φορά στην ερώτηση
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
@@ -243,7 +243,7 @@ Enter login class: default []:
που εμφανίζεται από την man:adduser[8].
* Ακόμα μια εναλλακτική λύση, είναι να χρησιμοποιήσετε το παρακάτω σε κάθε χρήστη που θέλετε να προσθέσετε και ο οποίος χρησιμοποιεί διαφορετική γλώσσα:
+
-[source,bash]
+[source,shell]
....
# adduser -class language
....
@@ -252,7 +252,7 @@ Enter login class: default []:
Αν χρησιμοποιείτε την man:pw[8] για να προσθέσετε νέους χρήστες, καλέστε την με τον παρακάτω τρόπο:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
diff --git a/documentation/content/el/books/handbook/linuxemu/_index.adoc b/documentation/content/el/books/handbook/linuxemu/_index.adoc
index 4473f7bcd8..f80ea86199 100644
--- a/documentation/content/el/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/el/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ toc::[]
Η συμβατότητα με εκτελέσιμα του Linux δεν είναι ενεργή εξ' αρχής. Ο ευκολότερος τρόπος για να ενεργοποιήσετε αυτή τη λειτουργία είναι να φορτώσετε το KLD (άρθρωμα) `linux` ("Kernel LoaDable object"). Μπορείτε να φορτώσετε αυτό το άρθρωμα στον πυρήνα δίνοντας τη παρακάτω εντολή ως `root`:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
Η εντολή man:kldstat[8] μπορεί να χρησιμοποιηθεί για να ελεγχθεί αν το KLD είναι φορτωμένο:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ Id Refs Address Size Name
Αυτός είναι κατά γενική ομολογία ο ευκολότερος τρόπος για την εγκατάσταση των runtime libraries. Είναι η ίδια διαδικασία εγκατάστασης που ακολουθείται και για οποιοδήποτε άλλο port από τη crossref:ports[ports,Συλλογή των Ports]. Απλά κάντε το παρακάτω:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-f10
# make install distclean
@@ -136,7 +136,7 @@ Id Refs Address Size Name
Ας υποθέσουμε ότι κατεβάσατε μέσω FTP το εκτελέσιμο του Doom για το Linux, και το βάλατε στο Linux σύστημα στο οποίο έχετε πρόσβαση. Μπορείτε στη συνέχεια να ελέγξετε ποια shared libraries χρειάζεται η εφαρμογή με την εντολή `ldd linuxdoom`, όπως:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -146,7 +146,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Θα χρειαστεί να πάρετε όλα τα αρχεία από τη τελευταία στήλη, και να τα αντιγράψετε στον κατάλογο [.filename]#/compat/linux#, και να δημιουργήσετε προς αυτά τους αντίστοιχους συμβολικούς δεσμούς (symbolic links) με τα ονόματα της πρώτης στήλης. Αυτό σημαίνει ότι πρακτικά, θα έχετε αυτά τα αρχεία στο σύστημα σας:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -160,7 +160,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
====
Σημειώστε ότι αν έχετε ήδη κάποιο Linux shared library που ο αριθμός έκδοσης είναι ο ίδιος με αυτόν της πρώτης στήλης του `ldd`, δε θα χρειαστεί να αντιγράψετε το αρχείο όπως αυτό ονομάζεται στη τελευταία στήλη, τα υπάρχοντα αρχεία θα πρέπει να κάνουν τη δουλειά τους. Σας συμβουλεύουμε όμως να αντιγράψετε το shared library αν είναι κάποια νεότερη έκδοση. Μπορείτε να διαγράψετε τα παλιά αρχεία, αρκεί όμως να ανανεώσετε τους συμβολικούς δεσμούς ώστε να οδηγούν στα νέα αρχεία. Επομένως, αν έχετε τις παρακάτω βιβλιοθήκες στο σύστημά σας:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -168,14 +168,14 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
και βρείτε μια εφαρμογή η οποία ζητάει μια νεότερη έκδοση μέσω του `ldd`:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Αν η διαφορά της έκδοσης στο τελευταία ψηφίο είναι μόνο μίας ή δύο εκδόσεων, τότε μην σας απασχολεί η αντιγραφή του [.filename]#/lib/libc.so.4.6.29#, γιατί το πρόγραμμα θα πρέπει να τρέχει κανονικά και με τη λίγο παλαιότερη έκδοση. Παρ' όλα αυτά, αν θέλετε, μπορείτε να αντικαταστήσετε το [.filename]#libc.so# και έτσι θα έχετε το παρακάτω:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -192,7 +192,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
Τα ELF binaries χρειάζονται μερικές φορές ένα ακόμα βήμα, το "branding". Αν προσπαθήσετε να τρέξετε ένα εκτελέσιμο ELF χωρίς branding, τότε θα σας εμφανιστεί το παρακάτω σφάλμα:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -201,7 +201,7 @@ Abort
Για να βοηθήσετε τον πυρήνα του FreeBSD να ξεχωρίσει ένα ELF του FreeBSD από ένα του Linux, χρησιμοποιήστε την εντολή man:brandelf[1].
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -214,7 +214,7 @@ To GNU toolchain, ομάδα πρόγραμμα GNU, τοποθετεί πλέο
Αν ωστόσο χρειάζεται να εγκαταστήσετε μια οποιαδήποτε εφαρμογή του Linux(R) που βασίζεται σε πακέτο RPM, μπορείτε να το επιτύχετε με τον παρακάτω τρόπο:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id
@@ -226,7 +226,7 @@ To GNU toolchain, ομάδα πρόγραμμα GNU, τοποθετεί πλέο
Αν το DNS δε δουλεύει ή αν σας εμφανίζεται το παρακάτω σφάλμα:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -253,7 +253,7 @@ multi on
Αρχικά, θα πρέπει να πείτε στο FreeBSD ότι τα εκτελέσιμα για Linux του Mathematica(R) κάνουν χρήση του Linux ABI. Ο ευκολότερος τρόπος για να το κάνετε αυτό είναι να ορίσετε τον τύπο του ELF ως Linux σε όλες τις εφαρμογές που δεν είναι ήδη branded, κάνοντας χρήση της εντολής:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -262,7 +262,7 @@ multi on
Τώρα, αντιγράψτε το αρχείο [.filename]#MathInstaller# στον σκληρό σας δίσκο:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/
@@ -300,7 +300,7 @@ done
Ο δεύτερος τρόπος είναι να αντιγράψετε τους παραπάνω καταλόγους μέσα στο [.filename]#/usr/X11R6/lib/X11/fonts#:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -316,7 +316,7 @@ done
Τώρα προσθέστε τους νέους καταλόγους με τις γραμματοσειρές στο font path:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -397,7 +397,7 @@ exit 0
. Δοκιμή του Maple(TM):
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -450,7 +450,7 @@ FEATURE Maple maplelmg 2000.0831 permanent 1 XXXXXXXXXXXX \
. Εισάγετε το CD και προσαρτήστε το στο σύστημα σας. Συνδεθείτε ως χρήστης `root`, όπως συνιστά το script της εγκατάστασης. Για να ξεκινήσετε το script της εγκατάστασης δώστε την εντολή:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -488,7 +488,7 @@ FEATURE Maple maplelmg 2000.0831 permanent 1 XXXXXXXXXXXX \
. Δημιουργία συμβολικών συνδέσμων για τα scripts του license manager:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -524,7 +524,7 @@ exit 0
====
Το αρχείο πρέπει να είναι εκτελέσιμο:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -535,7 +535,7 @@ exit 0
. Εκκινήστε τον license manager με την εντολή:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -545,7 +545,7 @@ exit 0
Αλλάξτε τον σύνδεσμο τουJava(TM) Runtime Environment (JRE) σε έναν ο οποίος θα δουλεύει στο FreeBSD:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -620,7 +620,7 @@ exit 0
. Κάντε το αρχείο εκτελέσιμο:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -643,7 +643,7 @@ exit 0
Αν θέλετε να τρέξετε τον intelligent agent, θα χρειαστεί να εγκαταστήσετε και το πακέτο Red Hat Tcl: [.filename]#tcl-8.0.3-20.i386.rpm#. Η εντολή για την εγκατάσταση μέσω του επίσημου RPM port (package:archivers/rpm[]) είναι:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm package
....
@@ -730,7 +730,7 @@ export PATH
Ένα συχνό πρόβλημα είναι ότι δεν γίνεται σωστή εγκατάσταση του προσαρμογέα του πρωτοκόλλου TCP. Αυτό έχει ως αποτέλεσμα να μην μπορείτε να ξεκινήσετε τους TCP listeners. Οι ακόλουθες οδηγίες θα σας βοηθήσουν να λύσετε αυτό το πρόβλημα.:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -827,7 +827,7 @@ To script `genclntsh` χρησιμοποιείται για να δημιουρ
Για να λειτουργήσουν τα εκτελέσιμα του Linux, θα πρέπει να γίνουν _branded_ (μαρκαριστούν) ως `Linux` μέσω της man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/el/books/handbook/mac/_index.adoc b/documentation/content/el/books/handbook/mac/_index.adoc
index c47adc3cc7..8f9db0578f 100644
--- a/documentation/content/el/books/handbook/mac/_index.adoc
+++ b/documentation/content/el/books/handbook/mac/_index.adoc
@@ -156,14 +156,14 @@ Virtually all aspects of label policy module configuration will be performed usi
All configuration may be done by use of the man:setfmac[8] and man:setpmac[8] utilities. The `setfmac` command is used to set MAC labels on system objects while the `setpmac` command is used to set the labels on system subjects. Observe:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
If no errors occurred with the command above, a prompt will be returned. The only time these commands are not quiescent is when an error occurred; similarly to the man:chmod[1] and man:chown[8] commands. In some cases this error may be a `Permission denied` and is usually obtained when the label is being set or modified on an object which is restricted. The system administrator may use the following commands to overcome this:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -255,7 +255,7 @@ Labels may also be set on network interfaces to help control the flow of data ac
The `maclabel` may be passed to `ifconfig` when setting the MAC label on network interfaces. For example:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -284,7 +284,7 @@ It should also be noted that using `multilabel` with a partition and establishin
The following command will set `multilabel` on the file systems to have multiple labels. This may only be done in single user mode:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -359,7 +359,7 @@ Extreme caution should be taken when working with this module; incorrect use cou
After the man:mac_bsdextended[4] module has been loaded, the following command may be used to list the current rule configuration:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -367,7 +367,7 @@ After the man:mac_bsdextended[4] module has been loaded, the following command m
As expected, there are no rules defined. This means that everything is still completely accessible. To create a rule which will block all access by users but leave `root` unaffected, simply run the following command:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
@@ -379,7 +379,7 @@ In releases prior to FreeBSD 5.3, the [parameter]#add# parameter did not exist.
This is a very bad idea as it will block all users from issuing even the most simple commands, such as `ls`. A more patriotic list of rules might be:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -448,7 +448,7 @@ See the examples below or review the man:mac_portacl[4] manual page for further
The following examples should illuminate the above discussion a little better:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -456,21 +456,21 @@ The following examples should illuminate the above discussion a little better:
First we set man:mac_portacl[4] to cover the standard privileged ports and disable the normal UNIX(R) bind restrictions.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
The `root` user should not be crippled by this policy, thus set the `security.mac.portacl.suser_exempt` to a non-zero value. The man:mac_portacl[4] module has now been set up to behave the same way UNIX(R)-like systems behave by default.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
Allow the user with UID 80 (normally the `www` user) to bind to port 80. This can be used to allow the `www` user to run a web server without ever having `root` privilege.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -498,7 +498,7 @@ When this policy is enabled, users will only be permitted to see their processes
To set or drop utilities into a partition label, use the `setpmac` utility:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -509,14 +509,14 @@ This will add the `top` command to the label set on users in the `insecure` clas
The following command will show you the partition label and the process list:
-[source,bash]
+[source,shell]
....
# ps Zax
....
This next command will allow the viewing of another user's process partition label and that user's currently running processes:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -568,14 +568,14 @@ The following `sysctl` tunables are available for the configuration of special s
To manipulate the MLS labels, the man:setfmac[8] command has been provided. To assign a label to an object, issue the following command:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
To get the MLS label for the file [.filename]#test# issue the following command:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -624,7 +624,7 @@ The following `sysctl` tunables can be used to manipulate the Biba policy.
To access the Biba policy setting on system objects, use the `setfmac` and `getfmac` commands:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -660,7 +660,7 @@ The MAC LOMAC policy relies on the ubiquitous labeling of all system objects wit
Like the Biba and MLS policies; the `setfmac` and `setpmac` utilities may be used to place labels on system objects:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes
@@ -716,7 +716,7 @@ And adding the following line to the default user class:
Once this is completed, the following command must be issued to rebuild the database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -735,14 +735,14 @@ mac_seeotheruids_load="YES"
Set the `root` user to the default class using:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
All user accounts that are not `root` or system users will now require a login class. The login class is required otherwise users will be refused access to common commands such as man:vi[1]. The following `sh` script should do the trick:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
@@ -751,12 +751,12 @@ All user accounts that are not `root` or system users will now require a login c
Drop the `nagios` and `www` users into the insecure class:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -807,7 +807,7 @@ This policy will enforce security by setting restrictions on the flow of informa
This file may now be read into our system by issuing the following command:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /
@@ -850,7 +850,7 @@ Ensure that the web server and Nagios will not be started on system initializati
If all seems well, Nagios, Apache, and Sendmail can now be started in a way fitting of the security policy. The following commands will make this happen:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -863,7 +863,7 @@ Double check to ensure that everything is working properly. If not, check the lo
====
The `root` user can change the security enforcement and edit the configuration files without fear. The following command will permit the degradation of the security policy to a lower grade for a newly spawned shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/el/books/handbook/mail/_index.adoc b/documentation/content/el/books/handbook/mail/_index.adoc
index 5ecb627655..5a53320b93 100644
--- a/documentation/content/el/books/handbook/mail/_index.adoc
+++ b/documentation/content/el/books/handbook/mail/_index.adoc
@@ -108,7 +108,7 @@ toc::[]
Μπορείτε να δείτε τις εγγραφές MX για οποιοδήποτε τομέα, χρησιμοποιώντας την εντολή man:host[1], όπως φαίνεται στο παρακάτω παράδειγμα:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -323,7 +323,7 @@ sendmail_enable="NO"
Το νέο σας MTA θα ξεκινάει κατά την εκκίνηση, αν προσθέσετε μια κατάλληλη γραμμή στο αρχείο [.filename]#/etc/rc.conf#. Δείτε το παρακάτω παράδειγμα για το postfix:
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable="YES"' >> /etc/rc.conf
....
@@ -493,7 +493,7 @@ hostname.customer.com στο DNS. Απλώς προσθέστε μια εγγρ
Υπάρχουν διάφοροι τρόποι για να ξεπεράσετε το πρόβλημα. Ο πλέον απλός είναι να βάλετε τη διεύθυνση του ISP σας σε ένα αρχείο relay-domains, [.filename]#/etc/mail/relay-domains#. Ένας γρήγορος τρόπος για να το κάνετε αυτό είναι:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -532,7 +532,7 @@ www.example.org
Δοκιμάστε αυτό:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -544,7 +544,7 @@ example.FreeBSD.org has address 204.216.27.XX
Αν αντί για αυτό δείτε κάτι σαν το παρακάτω:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -618,7 +618,7 @@ customer1.org MX 10 mail.myhost.com
Θα πρέπει αρχικά να δημιουργήσετε το αρχείο [.filename]#.mc#. Θα βρείτε μερικά παραδείγματα στον κατάλογο [.filename]#/usr/shared/sendmail/cf/cf#. Υποθέτοντας ότι έχετε ονομάσει το αρχείο σας [.filename]#foo.mc#, το μόνο που χρειάζεται να κάνετε για να το μετατρέψετε σε ένα έγκυρο αρχείο [.filename]#sendmail.cf# είναι:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make foo.cf
@@ -680,7 +680,7 @@ if-bus.UUCP uucp-dom:if-bus
Μια τελευταία υπόδειξη: αν δεν είστε βέβαιοι για το αν θα λειτουργήσει κάποια συγκεκριμένη δρομολόγηση mail, θυμηθείτε την επιλογή `-bt` του sendmail. Αυτή ξεκινάει το sendmail σε _κατάσταση δοκιμής διευθύνσεων_. Γράψτε `3,0`, ακολουθούμενο από τη διεύθυνση που θέλετε να ελέγξετε για δρομολόγηση mail. Η τελευταία γραμμή θα σας πει τον εσωτερικό αντιπρόσωπο mail που χρησιμοποιήθηκε, τη διεύθυνση προορισμού με την οποία κλήθηκε, καθώς και την (πιθανώς μεταφρασμένη) διεύθυνση. Μπορείτε να βγείτε από αυτή την κατάσταση, πληκτρολογώντας kbd:[Ctrl+D].
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -706,7 +706,7 @@ parse returns: $# uucp-dom $@ your.uucp.relay $: foo < @ example . co
Ο ευκολότερος τρόπος για να εκπληρώσετε αυτές τις ανάγκες είναι να εγκαταστήσετε το port package:mail/ssmtp[] Εκτελέστε τις ακόλουθες εντολές ως `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -812,7 +812,7 @@ saslauthd_enable="YES"
Τέλος, ξεκινήστε το δαίμονα saslauthd:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/saslauthd start
....
@@ -833,7 +833,7 @@ SENDMAIL_LDADD=-lsasl2
. Επαναμεταγλωττίστε το sendmail εκτελώντας τις παρακάτω εντολές:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -876,14 +876,14 @@ define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
Για την αποστολή και λήψη email, εκτελέστε την εντολή `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
Τα περιεχόμενα της θυρίδας του χρήστη στον κατάλογο [.filename]#/var/mail# θα διαβαστούν αυτόματα από το πρόγραμμα `mail`. Αν η θυρίδα ταχυδρομείου είναι άδεια, το πρόγραμμα τερματίζεται με το μήνυμα ότι δεν βρέθηκε αλληλογραφία. Μετά την ανάγνωση της θυρίδας, ξεκινά η διεπαφή της εφαρμογής και εμφανίζεται μια λίστα με μηνύματα. Τα μηνύματα αριθμούνται αυτόματα, όπως φαίνεται στο παρακάτω παράδειγμα:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -894,7 +894,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Τα μηνύματα μπορούν πλέον να διαβαστούν με την εντολή kbd:[t] της εντολής `mail`, ακολουθούμενη με τον αριθμό του mail που θέλετε να εμφανιστεί. Στο παράδειγμα αυτό θα διαβάσουμε το πρώτο μήνυμα:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -913,7 +913,7 @@ This is a test message, please reply if you receive it.
Αν το mail απαιτεί απάντηση, μπορείτε να χρησιμοποιήσετε την εντολή `mail` χρησιμοποιώντας τις ενσωματωμένες εντολές kbd:[R] ή kbd:[r]. Το πλήκτρο kbd:[R] οδηγεί το `mail` να απαντήσει μόνο στον αποστολέα του μηνύματος, ενώ το kbd:[r] απαντάει όχι μόνο στον αποστολέα, αλλά σε όλους τους παραλήπτες του μηνύματος. Μπορείτε επίσης να προσθέσετε μετά από τις εντολές αυτές, τον αριθμό του μηνύματος στο οποίο θέλετε να απαντήσετε. Αφού το κάνετε αυτό, θα πρέπει να γράψετε την απάντηση σας και να σημειώσετε το τέλος της γράφοντας μια μόνο kbd:[.] σε μια νέα γραμμή. Μπορείτε να δείτε ένα παράδειγμα παρακάτω:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -926,7 +926,7 @@ EOT
Για να στείλετε νέο mail, θα πρέπει να χρησιμοποιήσετε το πλήκτρο kbd:[m], ακολουθούμενο από την διεύθυνση του παραλήπτη. Μπορείτε να δώσετε πολλαπλούς παραλήπτες, χωρίζοντας μεταξύ τους τις διευθύνσεις με kbd:[,]. Μπορείτε έπειτα να βάλετε το θέμα του μηνύματος και να συνεχίσετε με το περιεχόμενο. Το τέλος του μηνύματος καθορίζεται γράφοντας μια μοναδική kbd:[.] σε μια νέα γραμμή.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -958,7 +958,7 @@ EOT
Μπορείτε να εγκαταστήσετε τη σταθερή έκδοση του mutt μέσω του port package:mail/mutt[], ενώ και η τρέχουσα υπό εξέλιξη έκδοση είναι διαθέσιμη μέσω του port package:mail/mutt-devel[]. Μετά την εγκατάσταση του port, μπορείτε να εκτελέσετε το mutt, με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -997,7 +997,7 @@ image::mutt3.png[]
Η τρέχουσα έκδοση του alpine μπορεί να εγκατασταθεί χρησιμοποιώντας το port package:mail/alpine[]. Μετά την εγκατάσταση του port το alpine μπορεί να ξεκινήσει χρησιμοποιώντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -1038,7 +1038,7 @@ image::pine5.png[]
Αν και είναι έξω από τους σκοπούς αυτού του κειμένου να εξηγήσει όλες τις δυνατότητες του fetchmail, θα αναφερθούμε σε κάποιες βασικές λειτουργίες. Το fetchmail χρησιμοποιεί ένα αρχείο ρυθμίσεων γνωστό ως [.filename]#.fetchmailrc#, για να λειτουργήσει σωστά. Το αρχείο αυτό περιέχει τις πληροφορίες του εξυπηρετητή αλλά και τα στοιχεία εισόδου του χρήστη. Λόγω των ευαίσθητων πληροφοριών του αρχείου αυτού, σας συμβουλεύουμε να χρησιμοποιήσετε την παρακάτω εντολή ώστε η ανάγνωση του να επιτρέπεται μόνο από τον ιδιοκτήτη του:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1063,7 +1063,7 @@ user "john", with password "XXXXX", is "myth" here;
Το βοηθητικό πρόγραμμα fetchmail μπορεί να λειτουργήσει σε κατάσταση δαίμονα, αν το εκτελέσετε με την επιλογή `-d`, ακολουθούμενη από ένα διάστημα (σε δευτερόλεπτα) το οποίο θα χρησιμοποιηθεί για να ερωτώνται οι εξυπηρετητές που είναι καταχωρημένοι στο αρχείο [.filename]#.fetchmailrc#. Το παρακάτω παράδειγμα οδηγεί το fetchmail να ανιχνεύει για νέο mail κάθε 600 δευτερόλεπτα:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/el/books/handbook/mirrors/_index.adoc b/documentation/content/el/books/handbook/mirrors/_index.adoc
index 3c2bba62e0..d1b29471fe 100644
--- a/documentation/content/el/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/el/books/handbook/mirrors/_index.adoc
@@ -512,7 +512,7 @@ SSH2 HostKey: 1024 e8:3b:29:7b:ca:9f:ac:e9:45:cb:c8:17:ae:9b:eb:55 /etc/ssh/ssh_
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -526,7 +526,7 @@ SSH2 HostKey: 1024 e8:3b:29:7b:ca:9f:ac:e9:45:cb:c8:17:ae:9b:eb:55 /etc/ssh/ssh_
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't be established.
@@ -541,7 +541,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -555,7 +555,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -569,7 +569,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -640,7 +640,7 @@ link:ftp://ftp.FreeBSD.org/pub/FreeBSD/CTM/[ftp://ftp.FreeBSD.org/pub/FreeBSD/CT
Για να εφαρμόσετε τα deltas, απλώς γράψτε:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/the/stuff
# ctm -v -v /where/you/store/your/deltas/src-xxx.*
@@ -684,7 +684,7 @@ link:ftp://ftp.FreeBSD.org/pub/FreeBSD/CTM/[ftp://ftp.FreeBSD.org/pub/FreeBSD/CT
Για παράδειγμα, για να εξάγετε ένα ανανεωμένο αντίγραφο του αρχείου [.filename]#lib/libc/Makefile# από την συλλογή σας των αποθηκευμένων CTM deltas, εκτελέστε τις εντολές:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/to/extract/it/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -886,7 +886,7 @@ src-all
Το αρχείο [.filename]#refuse# έχει ιδιαίτερα απλή μορφή. Απλώς περιέχει τα ονόματα των αρχείων και καταλόγων τα οποία δεν επιθυμείτε να κατεβάσετε. Για παράδειγμα, αν δεν μιλάτε γλώσσες εκτός από Αγγλικά και λίγα Γερμανικά, και δεν αισθάνεστε την ανάγκη να διαβάσετε την Γερμανική μετάφραση της τεκμηρίωσης, μπορείτε να βάλετε τα ακόλουθα στο δικό σας αρχείο [.filename]#refuse#:
-[source,bash]
+[source,shell]
....
doc/bn_*
doc/da_*
@@ -914,7 +914,7 @@ doc/zh_*
Είστε τώρα έτοιμοι να δοκιμάσετε μια ανανέωση. Η γραμμή εντολής για το σκοπό αυτό είναι ιδιαίτερα απλή:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -923,7 +923,7 @@ doc/zh_*
Καθώς στην περίπτωση μας ανανεώνεται το πραγματικό δέντρο [.filename]#/usr/src#, θα χρειαστεί να εκτελέσετε το πρόγραμμα ως `root` ώστε η `cvsup` να έχει τα δικαιώματα που χρειάζεται για να ανανεώσει τα αρχεία σας. Καθώς μόλις έχετε δημιουργήσει το αρχείο ρυθμίσεων, και δεν έχετε ποτέ πριν χρησιμοποιήσει το πρόγραμμα, ίσως αισθάνεστε λίγο άβολα. Υπάρχει εύκολος τρόπος να κάνετε δοκιμαστική εκτέλεση χωρίς να πειράξετε τα πολύτιμα αρχεία σας. Απλώς δημιουργήστε ένα άδειο κατάλογο σε ένα βολικό μέρος, και δώστε το σαν έξτρα παράμετρο στην γραμμή εντολών:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -933,7 +933,7 @@ doc/zh_*
Αν δεν εκτελείτε τα X11 ή απλώς δεν σας αρέσουν τα γραφικά περιβάλλοντα, μπορείτε να δώσετε κάποιες επιλογές στην γραμμή εντολών όταν εκτελείτε την `cvsup`:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
diff --git a/documentation/content/el/books/handbook/multimedia/_index.adoc b/documentation/content/el/books/handbook/multimedia/_index.adoc
index b7c8ab58ee..73563f83ec 100644
--- a/documentation/content/el/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/el/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ toc::[]
Για να χρησιμοποιήσετε την συσκευή ήχου που διαθέτετε, θα πρέπει να φορτώσετε τον κατάλληλο οδηγό συσκευής. Αυτό μπορεί να επιτευχθεί με δύο τρόπους. Ο ευκολότερος είναι απλώς να φορτώσετε ένα module (άρθρωμα) για την κάρτα ήχου στον πυρήνα, χρησιμοποιώντας την εντολή man:kldload[8], με τη βοήθεια της γραμμής εντολών:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
Τα παραπάνω παραδείγματα είναι για μια κάρτα ήχου Creative SoundBlaster(R) Live!. Υπάρχουν διαθέσιμα και άλλα modules για κάρτες ήχου και μπορείτε να τα δείτε στο αρχείο [.filename]#/boot/defaults/loader.conf#. Αν δεν είστε σίγουρος για το πρόγραμμα οδήγησης που πρέπει να χρησιμοποιήσετε, μπορείτε να προσπαθήσετε να φορτώσετε το module [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ hint.sbc.0.flags="0x15"
Αφού κάνετε επανεκκίνηση με τον νέο πυρήνα (ή αφού φορτώσετε το απαραίτητο module), Θα πρέπει να δείτε μηνύματα σχετικά με την κάρτα ήχου στην προσωρινή μνήμη (buffer) καταγραφής του συστήματος (man:dmesg[8]) αντίστοιχα με τα παρακάτω:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
Η κατάσταση της κάρτας ήχου μπορεί να ελεγχθεί μέσω του αρχείου [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,7 +182,7 @@ kld snd_ich (1p/2r/0v channels duplex default)
Αν όλα πάνε καλά, η κάρτα ήχου σας θα λειτουργεί. Αν ο οδηγός CD ή DVD που διαθέτετε είναι συνδεμένος με την κάρτα ήχου μέσω της αναλογικής του εξόδου, μπορείτε να βάλετε ένα μουσικό CD και να το αναπαράγετε με το πρόγραμμα man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -191,7 +191,7 @@ kld snd_ich (1p/2r/0v channels duplex default)
Ένας άλλος γρήγορος τρόπος για να ελέγξετε την κάρτα ήχου σας, είναι να στείλετε δεδομένα στην συσκευή [.filename]#/dev/dsp#, όπως παρακάτω:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -260,7 +260,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
Στο παράδειγμα μας, η κάρτα γραφικών (`NVidia`) εντοπίστηκε πριν την κανονική κάρτα ήχου (`Realtek ALC889`). Για να χρησιμοποιήσετε την πραγματική κάρτα ήχου ως την προεπιλεγμένη συσκευή ήχου, αλλάξτε το `hw.snd.default_unit` όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -281,7 +281,7 @@ hw.snd.default_unit=4
Για να ρυθμίσετε το πλήθος των εικονικών καναλιών, υπάρχουν τρεις ρυθμίσεις sysctl που μπορούν να γίνουν αν είστε ο χρήστης `root`, όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -326,7 +326,7 @@ hint.pcm.0.vol="50"
Το mpg123 μπορεί να εκτελεστεί καθορίζοντας τη συσκευή ήχου και το αρχείο MP3 στη γραμμή εντολών. Θεωρώντας ότι η συσκευή ήχου είναι το [.filename]#/dev/dsp1.0# και θέλετε να αναπαράγετε το αρχείο _Foobar-GreatestHits.mp3_, θα χρησιμοποιήσετε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -348,14 +348,14 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Έχοντας το μουσικό CD στον οδηγό, μπορείτε να χρησιμοποιήσετε την ακόλουθη εντολή (ως `root`) για να αποθηκεύσετε ένα ολόκληρο CD σε χωριστά (ανά κομμάτι) αρχεία WAV:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
Το cdda2wav υποστηρίζει οδηγούς CDROM τύπου ATAPI (IDE). Για να διαβάσετε δεδομένα από μια συσκευή IDE, χρησιμοποιήστε το όνομα συσκευής αντί για τον αριθμό μονάδας SCSI. Για παράδειγμα, για να αποθηκεύσετε το κομμάτι 7 από ένα οδηγό IDE:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -364,14 +364,14 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Για να διαβάσετε μεμονωμένα κομμάτια, χρησιμοποιήστε την επιλογή `-t` όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Το παράδειγμα αυτό διαβάζει το κομμάτι επτά του μουσικού CD. Για να διαβάσετε μια σειρά από κομμάτια, για παράδειγμα από το ένα ως το επτά, καθορίστε μια περιοχή:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -385,7 +385,7 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Χρησιμοποιώντας τα αρχεία WAV που έχετε αποθηκεύσει, μπορείτε να μετατρέψετε το αρχείο [.filename]#audio01.wav# σε [.filename]#audio01.mp3# με την εντολή:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Foo Song Title" \
@@ -424,7 +424,7 @@ audio01.wav audio01.mp3
Το XMMS γράφει αρχεία σε μορφή WAV, ενώ το mpg123 μετατρέπει το MP3 σε μη- επεξεργασμένα (raw) δεδομένα ήχου PCM. Και οι δύο αυτές μορφές μπορούν να χρησιμοποιηθούν με την εφαρμογή cdrecord για τη δημιουργία μουσικών CD. Για την εφαρμογή man:burncd[8] θα πρέπει να χρησιμοποιήσετε δεδομένα PCM. Αν χρησιμοποιήσετε αρχεία WAV θα παρατηρήσετε ένα μικρό ήχο (tick) στην αρχή κάθε κομματιού. Ο ήχος αυτός προέρχεται από την επικεφαλίδα (header) του αρχείου WAV. Μπορείτε να αφαιρέσετε την επικεφαλίδα με τη βοήθεια του προγράμματος SoX (μπορείτε να το εγκαταστήσετε από το port package:audio/sox[] ή το αντίστοιχο πακέτο):
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -440,7 +440,7 @@ audio01.wav audio01.mp3
Είναι γενικά καλή ιδέα να έχετε ένα μικρό αρχείο MPEG το οποίο μπορεί να χρησιμοποιηθεί για δοκιμές διαφορετικών επιλογών και προγραμμάτων αναπαραγωγής. Κάποια προγράμματα αναπαραγωγής DVD αναζητούν από προεπιλογή το δίσκο DVD στη συσκευή [.filename]#/dev/dvd#. Σε ορισμένα το όνομα της συσκευής είναι ενσωματωμένο στον κώδικα του προγράμματος. Για το λόγο αυτό, ίσως είναι χρήσιμο να φτιάξετε συμβολικές συνδέσεις προς τις πραγματικές συσκευές:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -484,14 +484,14 @@ kern.ipc.shmall=32768
Για να δείτε αν χρησιμοποιείται η επέκταση, χρησιμοποιήστε την εντολή `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
Το XVideo υποστηρίζεται από την κάρτα σας αν το αποτέλεσμα δείχνει όπως παρακάτω:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -567,7 +567,7 @@ screen #0
Αν το αποτέλεσμα δείχνει κάπως έτσι:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -624,7 +624,7 @@ no adaptors present
Ο MPlayer βρίσκεται στο package:multimedia/mplayer[]. Ο MPlayer κάνει πλήθος ελέγχων του υλικού κατά τη διαδικασία της μεταγλώττισης, φτιάχνοντας έτσι ένα εκτελέσιμο το οποίο δεν έχει φορητότητα από ένα σύστημα σε ένα άλλο. Για το σκοπό αυτό, είναι σημαντικό να τον εγκαταστήσετε από τα ports και όχι από έτοιμο πακέτο. Επιπρόσθετα, μπορείτε να καθορίσετε πλήθος επιλογών στην γραμμή εντολών του `make` όπως περιγράφεται στο [.filename]#Makefile# και κατά την έναρξη της διαδικασίας μεταγλώττισης:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -652,7 +652,7 @@ http://www.mplayerhq.hu/homepage/dload.html
Κάθε χρήστης του MPlayer πρέπει να δημιουργήσει ένα υποκατάλογο [.filename]#.mplayer# μέσα στον προσωπικό του κατάλογο. Για να δημιουργήσετε τον απαραίτητο υποκατάλογο, μπορείτε να γράψετε το παρακάτω:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -662,27 +662,27 @@ http://www.mplayerhq.hu/homepage/dload.html
Για να αναπαράγετε ένα αρχείο, όπως το [.filename]#testfile.avi#, μέσω ενός από τα αρκετά video interfaces χρησιμοποιήστε την επιλογή `-vo`:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -691,7 +691,7 @@ http://www.mplayerhq.hu/homepage/dload.html
Για αναπαραγωγή από DVD, αντικαταστήστε το [.filename]#testfile.avi# με `dvd://_N_ -dvd-device _DEVICE_` όπου το _N_ είναι ο αριθμός του τίτλου (title number) που επιθυμείτε να αναπαράγετε και [.filename]#DEVICE# είναι το όνομα συσκευής του DVD-ROM. Για παράδειγμα, για να αναπαράγετε τον τίτλο 3 από τη συσκευή [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -716,7 +716,7 @@ zoom=yes
Τέλος, ο `mplayer` μπορεί να χρησιμοποιηθεί για την εξαγωγή (rip) ενός τίτλου DVD σε ένα αρχείο [.filename]#.vob# file. Για την εξαγωγή του δεύτερου τίτλου από ένα DVD, γράψτε:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -728,7 +728,7 @@ zoom=yes
Πριν χρησιμοποιήσετε το `mencoder` είναι καλή ιδέα να εξοικειωθείτε με τις επιλογές που αναφέρονται στην τεκμηρίωση HTML. Υπάρχει σελίδα manual, αλλά δεν είναι πολύ χρήσιμη χωρίς την HTML τεκμηρίωση. Υπάρχουν πάρα πολλοί τρόποι για να βελτιώσετε την ποιότητα, να μειώσετε το ρυθμό δεδομένων (bitrate) να αλλάξετε μορφή αρχείου, και κάποια από αυτά τα κόλπα μπορεί να κάνουν τη διαφορά μεταξύ καλής και κακής απόδοσης. Εδώ θα δείτε μερικά παραδείγματα για να ξεκινήσετε. Πρώτα μια απλή αντιγραφή:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -737,7 +737,7 @@ zoom=yes
Για να μετατρέψετε το [.filename]#input.avi# σε codec MPEG4 με ήχο MPEG3 (απαιτείται το package:audio/lame[]):
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -760,14 +760,14 @@ zoom=yes
Από προεπιλογή, το xine θα ξεκινήσει σε γραφικό περιβάλλον (GUI). Μπορείτε να χρησιμοποιήσετε το μενού για να ανοίξετε ένα συγκεκριμένο αρχείο:
-[source,bash]
+[source,shell]
....
% xine
....
Εναλλακτικά, μπορείτε να το καλέσετε να αναπαράγει ένα αρχείο απευθείας από την γραμμή εντολών, χωρίς τη χρήση του GUI:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -779,7 +779,7 @@ zoom=yes
Μεγάλο πλήθος εφαρμογών μπορούν να καθοριστούν κατά τη διάρκεια της μεταγλώττισης του port package:multimedia/transcode[] και συνιστούμε την ακόλουθη γραμμή εντολών για τη μεταγλώττιση του transcode:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -789,7 +789,7 @@ WITH_MJPEG=yes -DWITH_XVID=yes
Για να σας δείξουμε τις ικανότητες του `transcode`, δείτε ένα παράδειγμα μετατροπής αρχείου DivX σε PAL MPEG-1 (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -866,7 +866,7 @@ options OVERRIDE_TUNER=6
ή μπορείτε να χρησιμοποιήσετε απευθείας το man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -914,7 +914,7 @@ options OVERRIDE_TUNER=6
Για να εγκαταστήσετε το MythTV, χρησιμοποιήστε τα παρακάτω βήματα. Αρχικά εγκαταστήστε το MythTV από την Συλλογή των Ports του FreeBSD:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -922,21 +922,21 @@ options OVERRIDE_TUNER=6
Εγκαταστήστε τη βάση δεδομένων του MythTV:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Ρυθμίστε το backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Ξεκινήστε το backend:
-[source,bash]
+[source,shell]
....
# echo 'mythbackend_enable="YES"' >> /etc/rc.conf
# /usr/local/etc/rc.d/mythbackend start
@@ -979,14 +979,14 @@ device uscanner
Αφού επανεκκινήσετε με το σωστό πυρήνα, συνδέστε το USB σαρωτή σας. Θα πρέπει να δείτε μια γραμμή σχετική με την ανίχνευση του σαρωτή στην προσωρινή μνήμη μηνυμάτων του συστήματος (man:dmesg[8]):
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
ή σε ένα σύστημα FreeBSD 7.X:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -1005,7 +1005,7 @@ device pass
Μόλις μεταγλωττίσετε και εγκαταστήσετε τον πυρήνα, θα μπορέσετε να δείτε τις συσκευές στην προσωρινή μνήμη μηνυμάτων συστήματος, κατά τη διάρκεια της εκκίνησης:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -1014,7 +1014,7 @@ pass2: 3.300MB/s transfers
Αν ο σαρωτής σας δεν ήταν ενεργοποιημένος κατά την εκκίνηση του συστήματος σας, είναι ακόμα δυνατόν να εξαναγκάσετε τον εντοπισμό του, εκτελώντας ανίχνευση του διαύλου SCSI με την βοήθεια της εντολής man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -1025,7 +1025,7 @@ Re-scan of bus 3 was successful
Ο σαρωτής θα εμφανιστεί τότε στη λίστα των συσκευών SCSI:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -1042,7 +1042,7 @@ Re-scan of bus 3 was successful
Το πρώτο βήμα είναι να εγκαταστήσετε το port ή το πακέτο package:graphics/sane-backends[]. Μετά χρησιμοποιήστε την εντολή `sane-find-scanner` για να ελέγξετε την ανίχνευση του σαρωτή σας από το σύστημα SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -1057,7 +1057,7 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
Πρέπει τώρα να ελέγξουμε αν ο σαρωτής θα αναγνωριστεί από το frontend πρόγραμμα σάρωσης. Από προεπιλογή, το SANE backend έρχεται με ένα εργαλείο γραμμής εντολών, το man:sane[1]. Η εντολή αυτή σας επιτρέπει την απαρίθμηση των συσκευών και τη σάρωσης εικόνας από τη γραμμή εντολών. Η επιλογή `-L` χρησιμοποιείται για την απαρίθμηση των συσκευών σάρωσης:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -1065,7 +1065,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
Ή για παράδειγμα με τον σαρωτή που χρησιμοποιήσαμε στο <<scanners-kernel-usb>>:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -1079,7 +1079,7 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
Για παράδειγμα, με το σαρωτή USB που χρησιμοποιείται στο <<scanners-kernel-usb>>, η εντολή `sane-find-scanner` δίνει τις ακόλουθες πληροφορίες:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -1087,7 +1087,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
Ο σαρωτής βρέθηκε, χρησιμοποιεί διασύνδεση USB και το όνομα συσκευής του είναι [.filename]#/dev/uscanner0#. Τώρα πρέπει να δούμε αν αναγνωρίζεται και σωστά:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1106,7 +1106,7 @@ usb /dev/uscanner0
Σας παρακαλούμε να βεβαιωθείτε ότι διαβάσατε τα σχόλια που παρέχονται στο αρχείο ρυθμίσεων του backend καθώς και στις αντίστοιχες σελίδες manual για περισσότερες λεπτομέρειες καθώς και για τη σύνταξη που πρέπει να χρησιμοποιήσετε. Μπορούμε τώρα να επιβεβαιώσουμε ότι ο σαρωτής αναγνωρίζεται:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1127,7 +1127,7 @@ device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
Για παράδειγμα, θα χρησιμοποιήσουμε μια ομάδα με το όνομα `_usb_`. Το πρώτο βήμα είναι η δημιουργία αυτής της ομάδας με τη βοήθεια της εντολής man:pw[8]:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1160,7 +1160,7 @@ devfs_system_ruleset="system"
Έπειτα από τα παραπάνω βήματα, για να δώσετε πρόσβαση στο USB σαρωτή σε κάποιο χρήστη, αρκεί να προσθέσετε το λογαριασμό του στην ομάδα `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/el/books/handbook/network-servers/_index.adoc b/documentation/content/el/books/handbook/network-servers/_index.adoc
index afabf84f16..5577b5c855 100644
--- a/documentation/content/el/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/el/books/handbook/network-servers/_index.adoc
@@ -143,7 +143,7 @@ When a modification is made to [.filename]#/etc/inetd.conf#, inetd can be forced
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -373,14 +373,14 @@ The following is an example of a valid export list, where [.filename]#/usr# and
The mountd daemon must be forced to recheck the [.filename]#/etc/exports# file whenever it has been modified, so the changes can take effect. This can be accomplished either by sending a HUP signal to the running daemon:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
or by invoking the `mountd` man:rc[8] script with the appropriate parameter:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -391,7 +391,7 @@ Alternatively, a reboot will make FreeBSD set everything up properly. A reboot i
On the NFS server:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -400,14 +400,14 @@ On the NFS server:
On the NFS client:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Now everything should be ready to actually mount a remote file system. In these examples the server's name will be `server` and the client's name will be `client`. If you only want to temporarily mount a remote file system or would rather test the configuration, just execute a command like this as `root` on the client:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -435,7 +435,7 @@ rpc_statd_enable="YES"
Start the application by using:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/nfslocking start
....
@@ -464,7 +464,7 @@ An access to a file within [.filename]#/host/foobar/usr# would tell amd to attem
====
You can view the available mounts of a remote host with the `showmount` command. For example, to view the mounts of a host named `foobar`, you can use:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -517,7 +517,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
As a manual mount command on `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -531,7 +531,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
As a manual mount command on `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -695,7 +695,7 @@ Now, all you have to do is to run the command `/etc/netstart` as superuser. It w
The _NIS maps_ are database files, that are kept in the [.filename]#/var/yp# directory. They are generated from configuration files in the [.filename]#/etc# directory of the NIS master, with one exception: the [.filename]#/etc/master.passwd# file. This is for a good reason, you do not want to propagate passwords to your `root` and other administrative accounts to all the servers in the NIS domain. Therefore, before we initialize the NIS maps, you should:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -711,7 +711,7 @@ Make sure the [.filename]#/var/yp/master.passwd# is neither group nor world read
When you have finished, it is time to initialize the NIS maps! FreeBSD includes a script named `ypinit` to do this for you (see its manual page for more information). Note that this script is available on most UNIX(R) Operating Systems, but not on all. On Digital UNIX/Compaq Tru64 UNIX it is called `ypsetup`. Because we are generating maps for an NIS master, we are going to pass the `-m` option to `ypinit`. To generate the NIS maps, assuming you already performed the steps above, run:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -740,7 +740,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` should have created [.filename]#/var/yp/Makefile# from [.filename]#/var/yp/Makefile.dist#. When created, this file assumes that you are operating in a single server NIS environment with only FreeBSD machines. Since `test-domain` has a slave server as well, you must edit [.filename]#/var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -758,7 +758,7 @@ NOPUSH = "True"
Setting up an NIS slave server is even more simple than setting up the master. Log on to the slave server and edit the file [.filename]#/etc/rc.conf# as you did before. The only difference is that we now must use the `-s` option when running `ypinit`. The `-s` option requires the name of the NIS master be passed to it as well, so our command line looks like:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -918,7 +918,7 @@ In our lab, there is a machine `basie` that is supposed to be a faculty only wor
There is a way to bar specific users from logging on to a machine, even if they are present in the NIS database. To do this, all you must do is add `-username` to the end of the [.filename]#/etc/master.passwd# file on the client machine, where _username_ is the username of the user you wish to bar from logging in. This should preferably be done using `vipw`, since `vipw` will sanity check your changes to [.filename]#/etc/master.passwd#, as well as automatically rebuild the password database when you finish editing. For example, if we wanted to bar user `bill` from logging on to `basie` we would:
-[source,bash]
+[source,shell]
....
basie# vipw
[add -bill to the end, exit]
@@ -1003,7 +1003,7 @@ Handling this situation with netgroups offers several advantages. Each user need
The first step is the initialization of the NIS map netgroup. FreeBSD's man:ypinit[8] does not create this map by default, but its NIS implementation will support it once it has been created. To create an empty map, simply type
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1046,7 +1046,7 @@ You can repeat this process if you need more than 225 users within a single netg
Activating and distributing your new NIS map is easy:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1054,7 +1054,7 @@ ellington# make
This will generate the three NIS maps [.filename]#netgroup#, [.filename]#netgroup.byhost# and [.filename]#netgroup.byuser#. Use man:ypcat[1] to check if your new NIS maps are available:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1181,7 +1181,7 @@ There are still a couple of things that you will need to do differently now that
* Every time you wish to add a user to the lab, you must add it to the master NIS server _only_, and _you must remember to rebuild the NIS maps_. If you forget to do this, the new user will not be able to login anywhere except on the NIS master. For example, if we needed to add a new user `jsmith` to the lab, we would:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1231,7 +1231,7 @@ Other possible values for the `passwd_format` capability include `blf` and `md5`
If you have made changes to [.filename]#/etc/login.conf#, you will also need to rebuild the login capability database, which is achieved by running the following command as `root`:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1404,7 +1404,7 @@ Replace the `dc0` interface name with the interface (or interfaces, separated by
Then, you can proceed to start the server by issuing the following command:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd.sh start
....
@@ -1528,7 +1528,7 @@ Since BIND is installed by default, configuring it all is relatively simple.
The default named configuration is that of a basic resolving name server, ran in a man:chroot[8] environment. To start the server one time with this configuration, use the following command:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named forcestart
....
@@ -1550,7 +1550,7 @@ Configuration files for named currently reside in [.filename]#/etc/namedb# direc
To configure a master zone for the localhost visit the [.filename]#/etc/namedb# directory and run the following command:
-[source,bash]
+[source,shell]
....
# sh make-localhost
....
@@ -1951,28 +1951,28 @@ BIND/named manual pages: man:rndc[8] man:named[8] man:named.conf[8]
O Apache δεν τρέχει διαμέσου του υπερ-διακομιστή inetd όπως κάνουν πολλοί άλλοι δικτυακοί εξυπηρετητές. Είναι ρυθμισμένος να τρέχει αυτόνομα για να εξυπηρετεί καλύτερα τις αιτήσεις HTTP των πελατών του, δηλαδή των προγραμμάτων πλοήγησης (browsers). Η εγκατάσταση του Apache από τα FreeBSD Ports περιέχει ένα βοηθητικό shell script για την εκκίνηση, το σταμάτημα και την επανεκκίνηση του εξυπηρετητή. Για να ξεκινήσετε τον Apache για πρώτη φορά, απλά τρέξτε:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
Μπορείτε οποιαδήποτε στιγμή να σταματήσετε τον εξυπηρετητή, πληκτρολογώντας:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
Μετά από αλλαγές που πιθανώς να κάνατε για οποιονδήποτε λόγο στο αρχείο ρυθμίσεων, θα χρειαστεί να επανεκκινήσετε τον εξυπηρετητή:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
Για να επανεκκινήσετε τον Apache δίχως να διακόψετε τις τρέχουσες συνδέσεις, τρέξτε:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2008,7 +2008,7 @@ NameVirtualHost *
Αν ο διακομιστής web ονομάζεται `www.domain.tld` και επιθυμείτε να εγκαταστήσετε ένα virtual domain για το `www.someotherdomain.tld` τότε θα πρέπει να προσθέσετε τις ακόλουθες καταχωρήσεις στο [.filename]#httpd.conf#:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2053,7 +2053,7 @@ DocumentRoot /www/someotherdomain.tld
Αν το πακέτο package:lang/php5[] εγκαθίσταται για πρώτη φορά, αυτόματα θα σας εμφανιστούν όλες οι δυνατές επιλογές `OPTIONS`. Αν κάποιο μενού δεν εμφανίζεται, π.χ. επειδή το πακέτο package:lang/php5[] είχε εγκατασταθεί στο παρελθόν, μπορείτε πάντα να ρυθμίσετε από την αρχή το πακέτο, τρέχοντας στον κατάλογο του port:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2086,7 +2086,7 @@ AddModule mod_php5.c
Αφού ολοκληρώσετε τον έλεγχο, για να φορτωθεί το άρθρωμα PHP χρειάζεται μια απλή κλήση με την εντολή `apachectl` για μια κανονική (graceful) επανεκκίνηση:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2099,7 +2099,7 @@ AddModule mod_php5.c
Μετά την εγκατάσταση ενός νέου αρθρώματος ή κάποιας άλλης επέκτασης, ο εξυπηρετητής Apache θα πρέπει να επαναφορτωθεί για να ενεργοποιηθούν οι νέες ρυθμίσεις:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2132,7 +2132,7 @@ ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
Τώρα μπορείτε να δώσετε τα στοιχεία του λογαριασμού σας για να εισέλθετε στον εξυπηρετητή FTP.
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2205,7 +2205,7 @@ Samba has several different backend authentication models. You can authenticate
Assuming that the default `smbpasswd` backend is used, the [.filename]#/usr/local/private/smbpasswd# file must be created to allow Samba to authenticate clients. If you would like to give your UNIX(R) user accounts access from Windows(R) clients, use the following command:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2228,7 +2228,7 @@ This will also configure Samba to automatically start at system boot time.
It is possible then to start Samba at any time by typing:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2242,7 +2242,7 @@ Samba actually consists of three separate daemons. You should see that both the
You can stop Samba at any time by typing :
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba.sh stop
....
@@ -2321,7 +2321,7 @@ restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Για να βεβαιωθείτε πως ο εξυπηρετητής NTP θα ξεκινάει κατά την διάρκεια εκκίνησης του συστήματος, προσθέστε τη γραμμή `ntpd_enable="YES"` στο [.filename]#/etc/rc.conf#. Για να ξεκινήσετε τον εξυπηρετητή δίχως να επανεκκινήσετε το μηχάνημα σας, τρέξτε man:ntpd[8] προσδιορίζοντας κάθε επιπρόσθετη παράμετρο από τα `ntpd_flags` στο [.filename]#/etc/rc.conf#. Για παράδειγμα:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
diff --git a/documentation/content/el/books/handbook/ports/_index.adoc b/documentation/content/el/books/handbook/ports/_index.adoc
index 924e9c1549..35872f8698 100644
--- a/documentation/content/el/books/handbook/ports/_index.adoc
+++ b/documentation/content/el/books/handbook/ports/_index.adoc
@@ -130,7 +130,7 @@ toc::[]
Αν δεν γνωρίζετε το όνομα της εφαρμογής που θέλετε, δοκιμάστε να χρησιμοποιήσετε ένα site σαν το Freecode(http://www.freecode.com/[http://www.freecode.com/]) για να βρείτε μία εφαρμογή, και μετά μπορείτε να ελέγξετε ξανά το site του FreeBSD για να δείτε αν η εφαρμογή έχει γίνει port.
* Αν ξέρετε το ακριβές όνομα του port, και θέλετε μόνο να βρείτε σε ποια κατηγορία είναι, μπορείτε να χρησιμοποιήσετε την εντολή man:whereis[1]. Απλά γράψτε `whereis αρχείο`, όπου _αρχείο_ είναι το πρόγραμμα που θέλετε να εγκαταστήσετε. Αν αυτό βρίσκεται στο σύστημα σας, η εντολή θα σας πει που είναι, όπως παρακάτω:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -139,7 +139,7 @@ lsof: /usr/ports/sysutils/lsof
Αυτό μας λέει ότι το `lsof` (ένα εργαλείο συστήματος) μπορεί να βρεθεί στον κατάλογο [.filename]#/usr/ports/sysutils/lsof#.
* Επιπρόσθετα, μπορείτε να χρησιμοποιήσετε μια απλή εντολή man:echo[1] για να εντοπίσετε την τοποθεσία κάποιου προγράμματος μέσα στα ports. Για παράδειγμα:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -148,7 +148,7 @@ lsof: /usr/ports/sysutils/lsof
Σημειώστε ότι το παραπάνω θα δείξει επίσης και οποιαδήποτε αρχεία έχουν κατέβει στον κατάλογο [.filename]#/usr/ports/distfiles# εφόσον ταιριάζουν στην αναζήτηση.
* Ακόμη ένας τρόπος να βρείτε ένα συγκεκριμένο port, είναι χρησιμοποιώντας τον εσωτερικό μηχανισμό αναζήτησης της Συλλογής των Ports. Γα να χρησιμοποιήσετε αυτό τον τρόπο αναζήτησης, Θα χρειαστεί να βρίσκεστε στον κατάλογο [.filename]#/usr/ports#. Όταν βρεθείτε σε αυτόν τον κατάλογο, εκτελέστε το `make search name=όνομα--προγράμματος` όπου _όνομα--προγράμματος_ είναι το όνομα του προγράμματος που θέλετε να βρείτε. Για παράδειγμα, αν αναζητάτε το `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -183,7 +183,7 @@ R-deps:
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -214,7 +214,7 @@ ftp> exit
Εάν δεν έχετε μία τοπική πηγή πακέτων (όπως είναι ένα FreeBSD CD-ROM set) τότε ίσως είναι ευκολότερο να χρησιμοποιήσετε την επιλογή `-r` για το man:pkg_add[1]. Αυτή θα κάνει το εργαλείο να καθορίσει αυτόματα τη σωστή μορφή και έκδοση και έπειτα να ανακτήσει και να εγκαταστήσει το πακέτο από ένα FTP site.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -234,7 +234,7 @@ ftp> exit
Το man:pkg_info[1] είναι ένα εργαλείο που παραθέτει και περιγράφει τα διάφορα πακέτα που είναι εγκαταστημένα.
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -244,7 +244,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
Το man:pkg_version[1] είναι ένα εργαλείο που συνοψίζει τις εκδόσεις όλων των εγκαταστημένων πακέτων. Συγκρίνει την έκδοση κάθε πακέτου, με την τρέχουσα έκδοση που βρίσκεται στο δέντρο των ports.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -283,14 +283,14 @@ docbook =
Για να αφαιρέσετε ένα εγκατεστημένο πακέτο λογισμικού, χρησιμοποιήστε το εργαλείο man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
Σημειώστε ότι το man:pkg_delete[1] απαιτεί το πλήρες όνομα και αριθμό έκδοσης του πακέτου. Η παραπάνω εντολή δεν θα λειτουργήσει αν δώσετε απλώς _xchat_ αντί για _xchat-1.7.1_. Είναι ωστόσο εύκολο να χρησιμοποιήσετε την man:pkg_version[1] για να βρείτε την έκδοση του εγκατεστημένου πακέτου. Αντί για αυτό, μπορείτε επίσης να χρησιμοποιήσετε ένα μπαλαντέρ:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -327,7 +327,7 @@ docbook =
. Εκτελέστε το `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -345,7 +345,7 @@ docbook =
.. Αλλάξτε το _CHANGE_THIS.FreeBSD.org_ με έναν κοντινό σας διακομιστή CVSup.Δείτε το crossref:mirrors[cvsup-mirrors,CVSup Mirrors] (crossref:mirrors[cvsup-mirrors,Τοποθεσίες CVSup]) για την πλήρη λίστα των mirror sites.
.. Εκτελέστε τώρα το `csup`, με τον ακόλουθο τρόπο:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -363,20 +363,20 @@ docbook =
. "Κατεβάστε" ένα συμπιεσμένο snapshot της Συλλογής των Ports [.filename]#/var/db/portsnap#. Αν θέλετε, μπορείτε να αποσυνδεθείτε από το Διαδίκτυο μετά από αυτό το βήμα.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
. Αν εκτελείτε το Portsnap για πρώτη φορά, κάντε εξαγωγή του snapshot μέσα στο [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Εάν ήδη έχετε ένα γεμάτο [.filename]#/usr/ports# και απλώς το ανανεώνετε, εκτελέστε την ακόλουθη εντολή:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -390,7 +390,7 @@ docbook =
. Ως `root`, εκτελέστε το `sysinstall` όπως φαίνεται παρακάτω:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -438,14 +438,14 @@ docbook =
Αρχικά, μετακινηθείτε στον κατάλογο του port που θέλετε να εγκαταστήσετε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Μόλις βρεθείτε στον κατάλογο [.filename]#lsof#, θα δείτε τον port skeleton. Το επόμενο βήμα είναι να μεταγλωττίσετε, ή να "κτίσετε (build)", το port. Αυτό γίνεται απλά πληκτρολογώντας `make` στην γραμμή εντολών. Όταν το κάνετε, θα δείτε κάτι όπως αυτό:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -470,7 +470,7 @@ docbook =
Προσέξτε ότι μόλις η μεταγλώττιση ολοκληρωθεί θα επιστρέψετε στην γραμμή εντολών. Το επόμενο βήμα είναι να εγκαταστήσετε το port. Για να το εγκαταστήσετε, χρειάζεται απλώς να προσθέσετε μια λέξη στην εντολή `make`, και αυτή η λέξη είναι `install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -490,7 +490,7 @@ docbook =
Μια καλή ιδέα, είναι να διαγράψετε τον υποκατάλογο που περιέχει όλα τα προσωρινά αρχεία που χρησιμοποιήθηκαν κατά την μεταγλώττιση. Όχι μόνο καταναλώνουν πολύτιμο χώρο, άλλα μπορεί να προκαλέσουν προβλήματα αργότερα όταν θα θελήσετε να εγκαταστήσετε μια νεότερη έκδοση του port.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -525,7 +525,7 @@ docbook =
Σε μερικές σπάνιες περιπτώσεις, οι χρήστες μπορεί να χρειάζεται να ανακτήσουν τα tarballs από ένα site διαφορετικό από τα `MASTER_SITES` (η τοποθεσία από όπου "κατεβαίνουν" τα αρχεία). Μπορείτε να αλλάξετε την επιλογή `MASTER_SITES` με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -543,14 +543,14 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Μερικές φορές είναι χρήσιμο (ή επιτακτικό) να χρησιμοποιήσετε ένα διαφορετικό κατάλογο εργασίας και εγκατάστασης. Οι μεταβλητές `WRKDIRPREFIX` και `PREFIX` μπορούν να παρακάμψουν τους προεπιλεγμένους καταλόγους. Για παράδειγμα, η εντολή:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
θα μεταγλωττίσει το port στο [.filename]#/usr/home/example/ports# και θα εγκαταστήσει τα πάντα στο [.filename]#/usr/local#, ενώ η εντολή:
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -559,7 +559,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Και φυσικά η εντολή:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -581,7 +581,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Τώρα που γνωρίσατε πως να εγκαθιστάτε ports, πιθανώς θα αναρωτιέστε πως αφαιρούνται, στην περίπτωση που εγκαταστήσατε ένα και αργότερα αποφασίσατε ότι εγκαταστήσατε το λάθος port. Θα αφαιρέσουμε το προηγούμενο παράδειγμα (που ήταν το `lsof` για όσους δεν το πρόσεξαν). Τα ports αφαιρούνται όπως και τα πακέτα (το αναλύσαμε στην ενότητα <<packages-using,Χρησιμοποιώντας το Σύστημα των Πακέτων>>), χρησιμοποιώντας την εντολή man:pkg_delete[1]:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -591,7 +591,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Αρχικά, δείτε τα παρωχημένα ports για τα οποία υπάρχουν διαθέσιμες νεότερες εκδόσεις στην Συλλογή των Ports, με την εντολή man:pkg_version[1]:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -608,7 +608,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Το εργαλείο portupgrade είναι σχεδιασμένο για να αναβαθμίζει εύκολα εγκατεστημένα ports. Διατίθεται από το package:ports-mgmt/portupgrade[] port. Εγκαταστήστε το όπως κάθε port, χρησιμοποιώντας την εντολή `make install clean`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -618,21 +618,21 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Όταν εκτελείτε το `portupgrade -a`, το portupgrade θα αρχίσει να αναβαθμίζει όλα τα παρωχημένα ports που είναι εγκατεστημένα στο σύστημα σας. Χρησιμοποιήστε την επιλογή `-i` αν θέλετε να σας ρωτά για επιβεβαίωση για κάθε ξεχωριστή αναβάθμιση.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Αν θέλετε να αναβαθμίσετε μόνο μία συγκεκριμένη εφαρμογή, και όχι όλα τα διαθέσιμα ports, χρησιμοποιήστε το `portupgrade pkgname`. Συμπεριλάβετε την επιλογή `-R` αν το portupgrade πρέπει πρώτα να αναβαθμίσει όλα τα ports που απαιτούνται για την συγκεκριμένη εφαρμογή.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Για να χρησιμοποιήσετε πακέτα αντί για ports στην εγκατάσταση, δώστε την επιλογή `-P`. Με αυτή την επιλογή το portupgrade αναζητά τους τοπικούς καταλόγους που ορίζονται στο `PKG_PATH`, ή ανακτά τα πακέτα από απομακρυσμένα sites εάν δεν βρεθούν τοπικά. Αν τα πακέτα δεν μπορούν να ανακτηθούν με τους παραπάνω τρόπους, το portupgrade θα χρησιμοποιήσει τα ports. Για να αποφύγετε εντελώς την χρήση των ports, καθορίστε την επιλογή `-PP`.
-[source,bash]
+[source,shell]
....
# portupgrade -PR gnome2
....
@@ -644,7 +644,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Το Portmanager είναι ένα ακόμα εργαλείο για εύκολη αναβάθμιση εγκατεστημένων ports. Διατίθεται από το package:ports-mgmt/portmanager[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
@@ -652,21 +652,21 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Όλα τα εγκατεστημένα ports μπορούν να αναβαθμιστούν χρησιμοποιώντας αυτή την απλή εντολή:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
Μπορείτε να προσθέσετε την επιλογή `-ui` στην παραπάνω εντολή (`portmanager -u -ui`) για να ερωτηθείτε να επιβεβαιώσετε κάθε βήμα που θα εκτελέσει το Portmanager. Το Portmanager μπορεί επίσης να χρησιμοποιηθεί για να εγκαταστήσετε νέα ports στο σύστημα. Σε αντίθεση με την εντολή `make install clean`, το Portmanager θα αναβαθμίσει όλες τις εξαρτήσεις πριν την μεταγλώττιση και εγκατάσταση του επιλεγμένου port.
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
Αν υπάρχουν προβλήματα που σχετίζονται με τις εξαρτήσεις ενός επιλεγμένου port, μπορείτε να χρησιμοποιήσετε το Portmanager για να τις επανα-μεταγλωττίσει όλες με την σωστή σειρά. Μόλις τελειώσει με τις εξαρτήσεις, θα επανα-μεταγλωττίσει και το προβληματικό port.
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -678,7 +678,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Το Portmaster είναι ένα ακόμα εργαλείο για την αναβάθμιση των εγκατεστημένων ports. Το Portmaster σχεδιάστηκε ώστε να χρησιμοποιεί τα εργαλεία που παρέχει το "βασικό" σύστημα (δεν εξαρτάται από άλλα ports) και χρησιμοποιεί τις πληροφορίες του [.filename]#/var/db/pkg# για να καθορίσει ποια ports θα αναβαθμίσει. Είναι διαθέσιμο μέσω του port package:ports-mgmt/portmaster[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -693,7 +693,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Μπορείτε να δείτε μια λίστα όλων των εγκατεστημένων ports και να ψάξετε για ενημερωμένες εκδόσεις, χρησιμοποιώντας την επιλογή `-L`:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -720,7 +720,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Μπορείτε να αναβαθμίσετε όλα τα εγκατεστημένα ports με την παρακάτω απλή εντολή:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -732,14 +732,14 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Αν αντιμετωπίσετε λάθη κατά τη διαδικασία της αναβάθμισης, μπορείτε να χρησιμοποιήσετε την επιλογή `-f` για να αναβαθμίσετε και να μεταγλωττίσετε ξανά όλα τα ports:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Μπορείτε επίσης να χρησιμοποιήσετε το Portmaster για να εγκαταστήσετε νέα ports στο σύστημα σας, αναβαθμίζοντας και όλες τις εξαρτήσεις τους πριν τη μεταγλώττιση και εγκατάσταση τους:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -751,21 +751,21 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Η Συλλογή των Ports καταναλώνει διαθέσιμο χώρο στο δίσκο με την πάροδο του χρόνου. Μετά την μεταγλώττιση και εγκατάσταση λογισμικού από τα ports, πρέπει πάντα να θυμάστε να καθαρίζετε τους προσωρινούς καταλόγους [.filename]#work# χρησιμοποιώντας την εντολή `make clean`. Mπορείτε να καθαρίσετε όλη την Συλλογή των Ports με την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Με την πάροδο του χρόνου, θα συσσωρευτούν πολλά αρχεία διανομής πηγαίου κώδικα στον κατάλογο [.filename]#distfiles#. Μπορείτε να τα αφαιρέσετε χειροκίνητα, ή μπορείτε να χρησιμοποιήσετε την ακόλουθη εντολή για να διαγράψετε όλα τα distfiles που δεν σχετίζονται πλέον με κανένα port:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Ή για να αφαιρέσετε όλα τα distfiles που δεν σχετίζονται με κανένα port που βρίσκεται εγκατεστημένο στο σύστημα σας:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -786,7 +786,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
* Χρησιμοποιήστε το man:pkg_info[1] για να δείτε τι αρχεία εγκαταστάθηκαν, και που. Για παράδειγμα, αν μόλις εγκαταστήσατε το FooPackage version 1.0.0, τότε η εντολή:
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -795,7 +795,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
+
Αν δεν είστε σίγουρος ποια έκδοση της εφαρμογής εγκαταστήσατε, μια εντολή όπως αυτή:
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -804,7 +804,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
* Μόλις δείτε που βρίσκονται τα manual pages της εφαρμογής, δείτε τα με την man:man[1]. Όμοια, δείτε τα παραδείγματα των αρχείων ρύθμισης, και όποια άλλη πρόσθετη τεκμηρίωση διατίθεται.
* Αν υπάρχει web site για την εφαρμογή, ελέγξτε το για πρόσθετη τεκμηρίωση, συχνές ερωτήσεις (FAQ), και άλλα. Αν δεν είστε σίγουρος για την διεύθυνσή του web site, ίσως το βρείτε στην έξοδο της εντολής:
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/el/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/el/books/handbook/ppp-and-slip/_index.adoc
index 33b7e0cd8b..2f19d09cfa 100644
--- a/documentation/content/el/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/el/books/handbook/ppp-and-slip/_index.adoc
@@ -196,7 +196,7 @@ set log phase tun
+
Το αλφαριθμητικό εισόδου χρησιμοποιεί σύνταξη παρόμοια με το man:chat[8], όπως συμβαίνει και με το αλφαριθμητικό κλήσης. Στο παράδειγμα μας, το αλφαριθμητικό χρησιμοποιείται για μια υπηρεσία στην οποία η συνεδρία εισόδου μοιάζει με την παρακάτω:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -311,7 +311,7 @@ exec /usr/sbin/ppp -direct $IDENT
Το script αυτό θα πρέπει να γίνει εκτελέσιμο. Δημιουργήστε τώρα ένα συμβολικό δεσμό που να ονομάζεται [.filename]#ppp-dialup# χρησιμοποιώντας τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -325,7 +325,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Δημιουργήστε ένα κατάλογο [.filename]#/home/ppp# προσβάσιμο για ανάγνωση από όλους, ο οποίος θα περιέχει τα παρακάτω κενά αρχεία:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -339,7 +339,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Για παράδειγμα, αν έχετε τρεις πελάτες dialup, τους `fred`, `sam`, και `mary`, στους οποίους εκτελείτε δρομολόγηση /24 CIDR, θα πρέπει να γράψετε τα παρακάτω:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -604,7 +604,7 @@ sendmail_flags="-bd"
Το μειονέκτημα του παραπάνω, είναι ότι πρέπει να εξαναγκάσετε το `sendmail` να επανεξετάσει την ουρά των μηνυμάτων, κάθε φορά που αποκαθίσταται η σύνδεση ppp, γράφοντας:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -623,14 +623,14 @@ sendmail_flags="-bd"
Το μόνο που μένει είναι να επανεκκινήσετε το μηχάνημα. Μετά την επανεκκίνηση, μπορείτε είτε να γράψετε:
-[source,bash]
+[source,shell]
....
# ppp
....
και έπειτα `dial provider` για να ξεκινήσετε τη συνεδρία PPP, ή αν θέλετε το `ppp` να αποκαθιστά τις συνεδρίες αυτόματα κάθε φορά που υπάρχει κίνηση προς το εξωτερικό δίκτυο (και δεν έχετε δημιουργήσει το script [.filename]#start_if.tun0#) μπορείτε να γράψετε:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -713,7 +713,7 @@ defaultroute # put this if you want that PPP server will be your
. Πληκτρολογήστε τα παρακάτω:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/pppd /dev/tty01 19200
....
@@ -858,7 +858,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTphone.number
Μόλις τροποποιήσετε και εγκαταστήσετε σωστά τα παραπάνω αρχεία, το μόνο που χρειάζεται να κάνετε είναι να εκτελέσετε την εντολή `pppd`, με τον τρόπο που φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1105,7 +1105,7 @@ device uart
Αν χρησιμοποιείτε τον πυρήνα `GENERIC`, δεν χρειάζεται να κάνετε κάποια αλλαγή, καθώς η συσκεύη [.filename]#uart# περιλαμβάνεται ήδη σε αυτόν. Απλώς ελέγξτε τα μηνύματα της `dmesg` για την συσκευή modem, χρησιμοποιώντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -1116,35 +1116,35 @@ device uart
Η χειροκίνητη σύνδεση στο Internet με χρήση της `ppp`, είναι ένας γρήγορος και εύκολος τρόπος να εντοπίσετε τυχόν προβλήματα σύνδεσης, ή απλώς να πάρετε πληροφορίες σχετικά με το πως ο ISP σας αντιμετωπίζει τις συνδέσεις πελατών `ppp`. Θα ξεκινήσουμε την εφαρμογή PPP από την γραμμή εντολών. Σημειώστε ότι σε όλα μας τα παραδείγματα, θα χρησιμοποιούμε το _example_ ως το όνομα του υπολογιστή που εκτελεί το PPP. Μπορείτε να ξεκινήσετε το `ppp`, γράφοντας απλώς `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
Έχουμε τώρα ξεκινήσει το `ppp`.
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
Θέτουμε τη συσκευή modem. Στο παράδειγμα μας, είναι η [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
Θέτουμε την ταχύτητα σύνδεσης, σε αυτή την περίπτωση χρησιμοποιούμε 115,200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Λέμε στο `ppp` να ρυθμίσει τον resolver και προσθέτουμε τις κατάλληλες γραμμές για το διακομιστή ονομάτων στο [.filename]#/etc/resolv.conf#. Αν το `ppp` δεν μπορεί να καθορίσει το όνομα του διακομιστή, μπορούμε να το καθορίσουμε με χειροκίνητο τρόπο αργότερα.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -1157,7 +1157,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1166,56 +1166,56 @@ atdt123456789
Χρησιμοποιούμε το `at` για να αρχικοποιήσουμε το modem, και έπειτα χρησιμοποιούμε το `atdt` και τον αριθμό του ISP για να ξεκινήσουμε τη διαδικασία της κλήσης.
-[source,bash]
+[source,shell]
....
CONNECT
....
Εδώ έχουμε επιβεβαίωση της σύνδεσης. Αν έχουμε προβλήματα σύνδεσης τα οποία δεν σχετίζονται με το υλικό μας, εδώ είναι το σημείο που πρέπει να προσπαθήσουμε να τα επιλύσουμε.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
Η προτροπή αυτή είναι για να δώσουμε το όνομα χρήστη. Χρησιμοποιήστε το όνομα χρήστη που σας έχει δοθεί από τον ISP σας.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
Η προτροπή αυτή είναι για τον κωδικό πρόσβασης. Απαντήστε με τον κωδικό που σας έχει δοθεί από τον ISP σας. Ο κωδικός αυτός δεν θα εμφανιστεί στην οθόνη σας, όπως ακριβώς συμβαίνει και με τον κωδικό σας όταν τον γράφετε στην προτροπή εισόδου του FreeBSD συστήματος σας.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Ανάλογα με τον ISP σας, μπορεί να μην δείτε και καθόλου την παραπάνω προτροπή. Στην παραπάνω περίπτωση μας ρωτάει αν επιθυμούμε να εκτελέσουμε κάποιο κέλυφος (shell) στο μηχάνημα του παροχέα, ή αν θέλουμε να εκκινήσουμε το `ppp`. Στο παράδειγμα μας επιλέξαμε να χρησιμοποιήσουμε `ppp` καθώς θέλουμε να συνδεθούμε στο Internet.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Παρατηρήστε ότι στο παράδειγμα το πρώτο `p` είναι κεφαλαίο. Αυτό δείχνει ότι έχουμε συνδεθεί επιτυχώς με τον ISP.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
Έχουμε πιστοποιηθεί με επιτυχία από τον ISP μας, και περιμένουμε να μας αποδοθεί διεύθυνση IP.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
Έχει πλέον καθοριστεί διεύθυνση IP, και έχουμε ολοκληρώσει τη σύνδεση με επιτυχία.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -1234,14 +1234,14 @@ PPP ON example>add default HISADDR
Αν δεν πάρετε ποτέ προτροπή εισόδου, το πιθανότερο είναι να πρέπει να χρησιμοποιήσετε πιστοποίηση PAP ή CHAP αντί για την τύπου UNIX(R) πιστοποίηση που περιγράψαμε στο παραπάνω παράδειγμα. Για να χρησιμοποιήσετε PAP ή CHAP απλώς προσθέστε τις παρακάτω επιλογές στην εφαρμογή PPP πριν βρεθείτε σε κατάσταση τερματικού:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Θα πρέπει να αντικαταστήσετε το _myusername_ με το όνομα χρήστη που σας έχει δοθεί από τον ISP σας.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -1301,7 +1301,7 @@ name_of_service_provider:
Ως χρήστης `root`, μπορείτε να εκτελέσετε:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1355,7 +1355,7 @@ net.graph.nonstandard_pppoe=1
ή μπορεί να γίνει άμεσα με την εντολή:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -1462,14 +1462,14 @@ adsl:
Είναι δυνατόν να αρχικοποιήσετε τη σύνδεση εύκολα, δίνοντας την παρακάτω εντολή ως `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Μπορείτε να δείτε την κατάσταση της σύνδεσης με την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1505,7 +1505,7 @@ adsl:
Καθώς θα πρέπει να γράψετε τον κωδικό σας μορφή απλού κειμένου στο αρχείο [.filename]#ppp.conf#, θα πρέπει να βεβαιωθείτε ότι κανένας άλλος δεν θα μπορεί να διαβάσει τα περιεχόμενα αυτού του αρχείου. Με τις παρακάτω εντολές, μπορείτε να εξασφαλίσετε ότι το αρχείο θα μπορεί να διαβαστεί μόνο μέσα από το λογαριασμό του `root`. Δείτε τις σελίδες manual των man:chmod[1] και man:chown[8] για περισσότερες πληροφορίες.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1515,7 +1515,7 @@ adsl:
Αυτό θα ανοίξει ένα τούνελ για μια συνεδρία PPP με τον DSL δρομολογητή σας. Τα DSL modem τύπου ethernet έχουν μια προκαθορισμένη διεύθυνση IP στο τοπικό σας δίκτυο, στην οποία μπορείτε να συνδεθείτε. Στην περίπτωση του Alcatel SpeedTouch(TM) Home, η διεύθυνση αυτή είναι `10.0.0.138`. Η τεκμηρίωση που διαθέτει ο δρομολογητής σας, θα αναφέρει ποια διεύθυνση χρησιμοποιεί η συσκευή σας. Για να ανοίξετε το τούνελ και να ξεκινήσετε μια συνεδρία PPP, εκτελέστε την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -1528,7 +1528,7 @@ adsl:
Θα δημιουργηθεί μια συσκευή [.filename]#tun# (εικονικό τούνελ) για την αλληλεπίδραση μεταξύ των διεργασιών pptp και ppp. Μόλις επιστρέψει η προτροπή στο τερματικό σας, ή το pptp επιβεβαιώσει τη σύνδεση, μπορείτε να εξετάσετε το τούνελ με τον τρόπο που φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1652,7 +1652,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
. Αφήστε το Kermit εκεί (μπορείτε να το στείλετε στο παρασκήνιο χρησιμοποιώντας τα πλήκτρα kbd:[Ctrl+z]) και ως `root`, γράψτε:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1664,7 +1664,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
Κάντε τα ακόλουθα:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1683,7 +1683,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
* Χρήση του `s10` αντί για `sl0` (η διαφορά μπορεί να είναι πολύ μικρή σε μερικές γραμματοσειρές).
* Δοκιμάστε την εντολή `ifconfig sl0` για να δείτε την κατάσταση της διεπαφής. Για παράδειγμα, μπορεί να δείτε το παρακάτω:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1692,7 +1692,7 @@ sl0: flags=10<POINTOPOINT>
* Αν η εντολή man:ping[8] δίνει μηνύματα `no route to host`, ίσως υπάρχει πρόβλημα με τον πίνακα δρομολόγησης σας. Μπορείτε να χρησιμοποιήσετε την εντολή `netstat -r` για να δείτε την τρέχουσα δρομολόγηση:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1768,7 +1768,7 @@ device sl
Για να εφαρμόσετε αυτές τις ρυθμίσεις άμεσα, μπορείτε να εκτελέσετε την παρακάτω εντολή ως `root`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing start
....
@@ -1856,7 +1856,7 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp
Όταν χρησιμοποιείτε το παραπάνω παράδειγμα, βεβαιωθείτε ότι έχετε αντικαταστήσει την διεύθυνση MAC του Ethernet (`00:11:22:33:44:55`) με την αντίστοιχη της δικής σας κάρτας Ethernet, διαφορετικά το "proxy ARP" σίγουρα δεν θα λειτουργήσει! Μπορείτε να ανακαλύψετε τη διεύθυνση MAC του δικού σας εξυπηρετητή SLIP κοιτάζοντας τα αποτελέσματα της εντολής `netstat -i`. Η δεύτερη γραμμή της εξόδου θα μοιάζει με την παρακάτω:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/el/books/handbook/preface/_index.adoc b/documentation/content/el/books/handbook/preface/_index.adoc
index d4f7e11fca..89ab1a3789 100644
--- a/documentation/content/el/books/handbook/preface/_index.adoc
+++ b/documentation/content/el/books/handbook/preface/_index.adoc
@@ -231,21 +231,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
Τα παραδείγματα που ξεκινούν με [.filename]#C:\># υποδηλώνουν μια εντολή MS-DOS(R). Αυτές οι εντολές μπορούν να εκτελούνται από το παράθυρο "Γραμμής Εντολών" σε σύγχρονο περιβάλλον Microsoft(R) Windows(R), εκτός αν αναφέρεται κάτι διαφορετικό.
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
Τα παραδείγματα που ξεκινούν με # υποδηλώνουν μια εντολή που θα πρέπει να εκτελεστεί από τον υπερχρήστη (superuser) ενός συστήματος FreeBSD. Μπορείτε να συνδεθείτε σαν χρήστης `root` για να πληκτρολογήσετε την εντολή, ή να συνδεθείτε σαν κανονικός χρήστης και να χρησιμοποιήσετε την εντολή man:su[1] ώστε να αποκτήσετε προνόμια υπερχρήστη.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Τα παραδείγματα που ξεκινούν με % υποδηλώνουν μια εντολή που πρέπει να εκτελεστεί από ένα κανονικό χρήστη. Χρησιμοποιείται η σύνταξη C-shell για να θέσουμε μεταβλητές περιβάλλοντος και άλλες εντολές κελύφους, εκτός αν αναφέρεται κάτι διαφορετικό.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/el/books/handbook/printing/_index.adoc b/documentation/content/el/books/handbook/printing/_index.adoc
index f193abfb75..0e021d47bd 100644
--- a/documentation/content/el/books/handbook/printing/_index.adoc
+++ b/documentation/content/el/books/handbook/printing/_index.adoc
@@ -186,14 +186,14 @@ toc::[]
Για να ελέγξετε αν ο πυρήνας σας μπορεί να υποστηρίξει μια σειριακή διασύνδεση, πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
Όπου _N_ είναι ο αριθμός της σειριακής θύρας, ξεκινώντας από το μηδέν. Αν δείτε στην έξοδο του τερματικού σας κάτι παρόμοιο με:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -203,14 +203,14 @@ sio2: type 16550A
Για να ελέγξετε αν ο πυρήνας σας υποστηρίζει παράλληλες διασυνδέσεις, πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Όπου _N_ είναι ο αριθμός της παράλληλης θύρας, ξεκινώντας από το μηδέν. Αν δείτε στην έξοδο του τερματικού σας κάτι παρόμοιο με:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -251,7 +251,7 @@ hint.ppc.0.irq="N"
στο αρχείο [.filename]#/boot/device.hints# και αντικαταστήστε το _N_ με τον σωστό αριθμό IRQ. Το αρχείο ρύθμισης του πυρήνα πρέπει επίσης να περιέχει τον οδηγό man:ppc[4]:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -274,7 +274,7 @@ _Για να θέσετε την κατάσταση επικοινωνίας μ
. Πληκτρολογήστε:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -284,7 +284,7 @@ _Για να θέσετε την κατάσταση επικοινωνίας μ
. Πληκτρολογήστε:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -333,7 +333,7 @@ _Για να ελέγξετε έναν εκτυπωτή σε παράλληλη
** Αν ο εκτυπωτής μπορεί να εκτυπώσει απλό κείμενο, τότε χρησιμοποιήστε το man:lptest[1]. Πληκτρολογήστε:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -343,7 +343,7 @@ _Για να ελέγξετε έναν εκτυπωτή σε παράλληλη
** Εάν ο εκτυπωτής καταλαβαίνει PostScript(R) ή κάποια άλλη γλώσσα εκτυπωτών, τότε στείλτε ένα μικρό πρόγραμμα στον εκτυπωτή. Πληκτρολογήστε:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -354,7 +354,7 @@ _Για να ελέγξετε έναν εκτυπωτή σε παράλληλη
Εναλλακτικά, μπορείτε να τοποθετήσετε το πρόγραμμα σε ένα αρχείο και να πληκτρολογήσετε:
+
-[source,bash]
+[source,shell]
....
# cat file > /dev/lptN
....
@@ -393,7 +393,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
. Συνδεθείτε στον εκτυπωτή με man:tip[1]. Πληκτρολογήστε:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -405,7 +405,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
** Αν ο εκτυπωτής μπορεί να εκτυπώσει απλό κείμενο, χρησιμοποιήστε man:lptest[1]. Γράψτε:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -415,7 +415,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
Εναλλακτικά, μπορείτε να τοποθετήσετε το πρόγραμμα σε ένα αρχείο και να πληκτρολογήσετε:
+
-[source,bash]
+[source,shell]
....
% >file
....
@@ -506,14 +506,14 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Είναι επίσης συνηθισμένο να ονομάζεται ο κατάλογος με το ίδιο όνομα με τον εκτυπωτή, όπως φαίνεται παρακάτω:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/printer-name
....
Ωστόσο, αν έχετε αρκετούς εκτυπωτές στο δίκτυο, ίσως επιθυμείτε να τοποθετήσετε τους καταλόγους παροχέτευσης κάτω από ένα μοναδικό κατάλογο που θα χρησιμοποιείται αποκλειστικά για εκτυπώσεις με το LPD. Θα κάνουμε ακριβώς αυτό για τα παραδείγματα μας με τους εκτυπωτές `rattan` και `bamboo`:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -524,7 +524,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
====
Εάν οι εργασίες των χρηστών περιέχουν προσωπικά δεδομένα, μπορεί να θέλετε να προστατέψετε τον κατάλογο παροχέτευσης με κάποιο τρόπο, ώστε να μην είναι δημόσια προσβάσιμος. Οι κατάλογοι παροχέτευσης θα πρέπει να ανήκουν και να είναι αναγνώσιμοι, εγγράψιμοι και με δυνατότητα αναζήτησης από τον χρήστη daemon και από την ομάδα daemon, από κανέναν άλλο. Για τους εκτυπωτές του παραδείγματος:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -630,7 +630,7 @@ exit 2
Κάντε το αρχείο εκτελέσιμο:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -669,7 +669,7 @@ lpd_enable="YES"
στο αρχείο [.filename]#/etc/rc.conf#, και επανεκκινήστε το σύστημα σας, ή απλά εκτελέστε το man:lpd[8].
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -685,7 +685,7 @@ _Για τον έλεγχο μιας απλής εγκατάστασης LPD:_
Πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinter-name
....
@@ -694,7 +694,7 @@ _Για τον έλεγχο μιας απλής εγκατάστασης LPD:_
Σε έναν εκτυπωτή PostScript(R), η εκτύπωση θα είναι το αποτέλεσμα του προγράμματος που στείλατε. Αν χρησιμοποιείτε το man:lptest[1], τότε το αποτέλεσμα θα μοιάζει με το ακόλουθο:
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -918,7 +918,7 @@ exit 2
Τα φίλτρα μετατροπής κάνουν την εκτύπωση διαφόρων τύπων αρχείων εύκολη υπόθεση. Για παράδειγμα, ας υποθέσουμε ότι έχουμε να κάνουμε αρκετή εργασία με το σύστημα στοιχειοθεσίας TeX, και ότι έχουμε εκτυπωτή PostScript(R). Κάθε φορά που δημιουργούμε ένα αρχείο DVI με το TeX, δεν μπορούμε να εκτυπώσουμε κατευθείαν έως ότου να μετατρέψουμε το αρχείο DVI σε PostScript(R). Η ακολουθία εντολών που πρέπει να ακολουθήσουμε είναι:
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -926,7 +926,7 @@ exit 2
Με την χρήση ενός φίλτρου μετατροπής για αρχεία DVI, μπορούμε να αποφύγουμε την μετατροπή που πρέπει να κάνουμε κάθε φορά χειροκίνητα, καλώντας το LPD να κάνει τη δουλειά για μας. Τώρα, κάθε φορά που έχουμε ένα αρχείο DVI, για να το τυπώσουμε χρειάζεται μόνο ένα βήμα:
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1290,7 +1290,7 @@ teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
Μετά την ενεργοποίηση των σελίδων κεφαλίδας, το LPD θα παράγει μία _επιμήκη κεφαλίδα_, μία ολόκληρη σελίδα με μεγάλα γράμματα που προσδιορίζει τον χρήστη, τον υπολογιστή (host), και την εργασία. Εδώ είναι ένα παράδειγμα (η `kelly` εκτύπωσε την εργασία με όνομα "outline" από τον υπολογιστή `rose`):
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1330,7 +1330,7 @@ teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
Αν προτιμάτε, το LPD μπορεί να φτιάξει μια _μικρότερου μήκους κεφαλίδα_. Προσδιορίστε `sb` (short banner) στο αρχείο [.filename]#/etc/printcap#. Η σελίδα κεφαλίδας θα μοιάζει σαν αυτή:
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1561,7 +1561,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Το μόνο που απομένει είναι να δημιουργήσουμε τους καταλόγους spooling στον κόμβο `orchid`:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1570,7 +1570,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Τώρα, οι χρήστες του `orchid` μπορούν να εκτυπώνουν στον `rattan` και στον `bamboo`. Αν, για παράδειγμα, ένας χρήστης του `orchid` πληκτρολογήσει:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1636,7 +1636,7 @@ exec /usr/libexec/lpr/lpf "$@" | /usr/local/libexec/netprint scrivener 5100
Αν πιστεύετε πως τα πολλαπλά αντίγραφα δημιουργούν άσκοπη καταπόνηση των εκτυπωτών σας, μπορείτε να απενεργοποιήσετε την επιλογή `-#` στο man:lpr[1] προσθέτοντας την ικανότητα `sc` στο αρχείο [.filename]##/etc/printcap##. Όταν οι χρήστες αποστέλλουν εργασίες με την επιλογή `-#`, θα βλέπουν:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1684,7 +1684,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Χρησιμοποιώντας την ικανότητα `sc`, προλαμβάνουμε την χρήση των εντολών `lpr -#`, αλλά δεν έχουμε ακόμη την δυνατότητα να παρεμποδίσουμε τους χρήστες να τρέξουν την εντολή man:lpr[1] πολλές φορές, ή να αποστείλουν το ίδιο αρχείο πολλές φορές σε μία μοναδική εργασία, όπως εδώ:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1809,7 +1809,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
Ο κατάλογος spool καθορίζεται στην ικανότητα `sd`. Θα θέσουμε τρία megabytes (ισοδυναμεί με 6144 disk blocks) ως το μέγεθος του ελεύθερου χώρου που πρέπει να υπάρχει στο σύστημα αρχείων, ώστε το LPD να δέχεται απομακρυσμένες εργασίες:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1856,7 +1856,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Όταν είστε έτοιμοι να χρεώσετε τους χρήστες για τις εκτυπώσεις, εκτελέστε το πρόγραμμα man:pac[8]. Απλά μεταβείτε στον κατάλογο spool για τον εκτυπωτή που κάνετε καταμέτρηση και πληκτρολογήστε `pac`. Θα εμφανιστεί ένας απολογισμός με χρεώσεις σε δολάρια, όπως βλέπετε στη συνέχεια:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1895,7 +1895,7 @@ __name...__::
Στον προεπιλεγμένο απολογισμό που παράγει το man:pac[8], βλέπετε των αριθμό των τυπωμένων σελίδων ανά χρήστη από τους διάφορους υπολογιστές. Αν, στο χώρο σας, ο υπολογιστής δεν έχει σημασία (γιατί οι χρήστες μπορούν να χρησιμοποιήσουν οποιονδήποτε θέλουν), εκτελέστε την εντολή `pac -m`, για να δημιουργήσετε τον ακόλουθο απολογισμό:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1909,7 +1909,7 @@ total 337.00 154 $ 6.74
Για τον ορισμό ποσοστού χρέωσης σε δολάρια, το man:pac[8] χρησιμοποιεί την ικανότητα `pc` στο αρχείο [.filename]#/etc/printcap# (προεπιλεγμένη τιμή 200, ή 2 σεντς ανά σελίδα). Προσδιορίστε σε αυτήν την ικανότητα, σε εκατοστά του σεντ, την τιμή ανά σελίδα ή ανά πόδι που θέλετε να χρεώνετε για τις εκτυπώσεις. Μπορείτε να προσπεράσετε αυτή την τιμή όταν τρέχετε το man:pac[8] με την επιλογή `-p`. H μονάδα μέτρησης για την επιλογή `-p` είναι σε δολάρια, όχι σε εκατοστά του σεντ. Για παράδειγμα,
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1962,28 +1962,28 @@ man:lprm[1]::
Για να εκτυπώσετε αρχεία, πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% lpr filename ...
....
Θα εκτυπωθούν όλα τα αναφερόμενα αρχεία στον προεπιλεγμένο εκτυπωτή. Αν δεν αναφέρετε αρχεία, το man:lpr[1] διαβάζει δεδομένα από το standard input. Για παράδειγμα, αυτή η εντολή θα εκτυπώσει μερικά σημαντικά αρχεία του συστήματος:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
Για να επιλέξετε ένα συγκεκριμένο εκτυπωτή, πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% lpr -P printer-name filename ...
....
Στο παράδειγμα μας θα εκτυπωθεί μια μεγάλη λίστα αρχείων του τρέχοντος καταλόγου στον εκτυπωτή που ονομάζεται `rattan`:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -1999,14 +1999,14 @@ man:lprm[1]::
Για να εμφανίσετε την ουρά αναμονής για τον προεπιλεγμένο εκτυπωτή, πληκτρολογήστε man:lpq[1]. Για κάποιον συγκεκριμένο εκτυπωτή, χρησιμοποιήστε την επιλογή `-P`. Για παράδειγμα, η εντολή:
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
εμφανίζει την ουρά αναμονής για τον εκτυπωτή με το όνομα `bamboo`. Ακολουθεί ένα παράδειγμα εξόδου της εντολής `lpq`:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2023,7 +2023,7 @@ active kelly 9 /etc/host.conf, /etc/hosts.equiv 88 bytes
Η εντολή man:lpq[1] επίσης υποστηρίζει την επιλογή `-l` για να δημιουργήσει μια μεγάλη, λεπτομερή λίστα. Ακολουθεί ένα παράδειγμα του `lpq -l`:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2044,14 +2044,14 @@ mary: 3rd [job 011rose]
Για να αφαιρέσετε μια εργασία από τον προεπιλεγμένο εκτυπωτή, χρησιμοποιήστε πρώτα την man:lpq[1] για να βρείτε τον αριθμό της. Έπειτα πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
% lprm job-number
....
Για να αφαιρέσετε μια εργασία από κάποιον συγκεκριμένο εκτυπωτή, προσθέστε την επιλογή `-P`. Η ακόλουθη εντολή αφαιρεί την εργασία με αριθμό 10 από την ουρά αναμονής για τον εκτυπωτή `bamboo`:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2069,7 +2069,7 @@ lprm::
Για να δουλέψετε σε κάποιον συγκεκριμένο εκτυπωτή αντί του προεπιλεγμένου, απλά χρησιμοποιήστε την επιλογή `-P` με τις παραπάνω συντομεύσεις. Για παράδειγμα, η ακόλουθη εντολή αφαιρεί όλες τις εργασίες του τρέχοντος χρήστη από την ουρά αναμονής του εκτυπωτή `rattan`:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2078,7 +2078,7 @@ lprm::
====
Αν εργάζεστε σε περιβάλλον δικτύου, η man:lprm[1] θα σας επιτρέψει να αφαιρέσετε εργασίες μόνο από τον υπολογιστή που τις έχετε στείλει, ανεξάρτητα αν ο εκτυπωτής είναι προσβάσιμος και από άλλους υπολογιστές. Η ακόλουθη εντολή επιδεικνύει ακριβώς αυτό το χαρακτηριστικό:
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2109,7 +2109,7 @@ cfA013rose dequeued
Για παράδειγμα, η ακόλουθη εντολή τυπώνει ένα αρχείο DVI (από το σύστημα στοιχειοθεσίας TeX) με όνομα [.filename]#fish-report.dvi# στον εκτυπωτή με όνομα `bamboo`:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d fish-report.dvi
....
@@ -2162,7 +2162,7 @@ cfA013rose dequeued
Εδώ είναι ένα παράδειγμα: αυτή η εντολή εκτυπώνει μια κομψά μορφοποιημένη έκδοση της σελίδας βοηθείας man:ls[1] στον προεπιλεγμένο εκτυπωτή:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2180,7 +2180,7 @@ cfA013rose dequeued
Σε αυτό το παράδειγμα, εκτυπώνουμε στον προεπιλεγμένο εκτυπωτή τρία αντίγραφα του [.filename]#parser.c# και τρία αντίγραφα του [.filename]#parser.h#:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2327,7 +2327,7 @@ exit 2
Η εκτύπωση παρουσιάζει "φαινόμενο σκάλας (staircase effect)."::
Στην εκτύπωση σας φαίνεται το ακόλουθο:
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/el/books/handbook/security/_index.adoc b/documentation/content/el/books/handbook/security/_index.adoc
index 3eb60f8c11..c860c84648 100644
--- a/documentation/content/el/books/handbook/security/_index.adoc
+++ b/documentation/content/el/books/handbook/security/_index.adoc
@@ -267,7 +267,7 @@ There are four different sorts of operations we will cover. The first is using `
To initialize OPIE for the first time, execute the `opiepasswd` command:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -288,7 +288,7 @@ At the `Enter new secret pass phrase:` or `Enter secret password:` prompts, you
To initialize or change your secret password over an insecure connection, you will need to already have a secure connection to some place where you can run `opiekey`; this might be in the form of a shell prompt on a machine you trust. You will also need to make up an iteration count (100 is probably a good value), and you may make up your own seed or use a randomly-generated one. Over on the insecure connection (to the machine you are initializing), use `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -307,7 +307,7 @@ LINE PAP MILK NELL BUOY TROY
To accept the default seed press kbd:[Return]. Then before entering an access password, move over to your secure connection and give it the same parameters:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -323,7 +323,7 @@ Now switch back over to the insecure connection, and copy the one-time password
Once you have initialized OPIE and login, you will be presented with a prompt like this:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -343,7 +343,7 @@ At this point you need to generate your one-time password to answer this login p
On the trusted system:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -358,7 +358,7 @@ Now that you have your one-time password you can continue logging in.
Sometimes you have to go places where you do not have access to a trusted machine or secure connection. In this case, it is possible to use the `opiekey` command to generate a number of one-time passwords beforehand to be printed out and taken with you. For example:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -505,7 +505,7 @@ Alternatively, the MIT implementation of Kerberos is available from the Ports Co
This is done on the Kerberos server only. First make sure that you do not have any old Kerberos databases around. You should change to the directory [.filename]#/etc/kerberosIV# and check that only the following files are present:
-[source,bash]
+[source,shell]
....
d /etc/kerberosIV
# ls
@@ -516,7 +516,7 @@ If any additional files (such as [.filename]#principal.*# or [.filename]#master_
You should now edit the [.filename]#krb.conf# and [.filename]#krb.realms# files to define your Kerberos realm. In this case the realm will be `EXAMPLE.COM` and the server is `grunt.example.com`. We edit or create the [.filename]#krb.conf# file:
-[source,bash]
+[source,shell]
....
# cat krb.conf
EXAMPLE.COM
@@ -537,7 +537,7 @@ The first line names the realm in which this system works. The other lines conta
Now we have to add `grunt.example.com` to the `EXAMPLE.COM` realm and also add an entry to put all hosts in the `.example.com` domain in the `EXAMPLE.COM` realm. The [.filename]#krb.realms# file would be updated as follows:
-[source,bash]
+[source,shell]
....
# cat krb.realms
grunt.example.com EXAMPLE.COM
@@ -553,7 +553,7 @@ The first line puts the _specific_ system into the named realm. The rest of the
Now we are ready to create the database. This only needs to run on the Kerberos server (or Key Distribution Center). Issue the `kdb_init` command to do this:
-[source,bash]
+[source,shell]
....
# kdb_init
Realm name [default ATHENA.MIT.EDU ]: EXAMPLE.COM
@@ -565,7 +565,7 @@ Enter Kerberos master key:
Now we have to save the key so that servers on the local machine can pick it up. Use the `kstash` command to do this:
-[source,bash]
+[source,shell]
....
# kstash
@@ -586,7 +586,7 @@ These daemons, kpasswd and rcmd allow other systems to change Kerberos passwords
Now let us add these entries:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -642,7 +642,7 @@ Principal name: <---- null entry here will cause an exit
We now have to extract all the instances which define the services on each machine. For this we use the `ext_srvtab` command. This will create a file which must be copied or moved _by secure means_ to each Kerberos client's [.filename]#/etc# directory. This file must be present on each server and client, and is crucial to the operation of Kerberos.
-[source,bash]
+[source,shell]
....
# ext_srvtab grunt
Enter Kerberos master key:
@@ -655,14 +655,14 @@ Generating 'grunt-new-srvtab'....
Now, this command only generates a temporary file which must be renamed to [.filename]#srvtab# so that all the servers can pick it up. Use the man:mv[1] command to move it into place on the original system:
-[source,bash]
+[source,shell]
....
# mv grunt-new-srvtab srvtab
....
If the file is for a client system, and the network is not deemed safe, then copy the [.filename]#client-new-srvtab# to removable media and transport it by secure physical means. Be sure to rename it to [.filename]#srvtab# in the client's [.filename]#/etc# directory, and make sure it is mode 600:
-[source,bash]
+[source,shell]
....
# mv grumble-new-srvtab srvtab
# chmod 600 srvtab
@@ -672,7 +672,7 @@ If the file is for a client system, and the network is not deemed safe, then cop
We now have to add some user entries into the database. First let us create an entry for the user `jane`. Use the `kdb_edit` command to do this:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -707,7 +707,7 @@ Principal name: <---- null entry here will cause an exit
First we have to start the Kerberos daemons. Note that if you have correctly edited your [.filename]#/etc/rc.conf# then this will happen automatically when you reboot. This is only necessary on the Kerberos server. Kerberos clients will automatically get what they need from the [.filename]#/etc/kerberosIV# directory.
-[source,bash]
+[source,shell]
....
# kerberos &
Kerberos server starting
@@ -731,7 +731,7 @@ Master key entered. BEWARE!
Now we can try using the `kinit` command to get a ticket for the ID `jane` that we created above:
-[source,bash]
+[source,shell]
....
% kinit jane
MIT Project Athena (grunt.example.com)
@@ -741,7 +741,7 @@ Password:
Try listing the tokens using `klist` to see if we really have them:
-[source,bash]
+[source,shell]
....
% klist
Ticket file: /tmp/tkt245
@@ -753,7 +753,7 @@ Apr 30 11:23:22 Apr 30 19:23:22 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Now try changing the password using man:passwd[1] to check if the kpasswd daemon can get authorization to the Kerberos database:
-[source,bash]
+[source,shell]
....
% passwd
realm EXAMPLE.COM
@@ -768,7 +768,7 @@ Password changed.
Kerberos allows us to give _each_ user who needs `root` privileges their own _separate_ man:su[1] password. We could now add an ID which is authorized to man:su[1] to `root`. This is controlled by having an instance of `root` associated with a principal. Using `kdb_edit` we can create the entry `jane.root` in the Kerberos database:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -802,7 +802,7 @@ Principal name: <---- null entry here will cause an exit
Now try getting tokens for it to make sure it works:
-[source,bash]
+[source,shell]
....
# kinit jane.root
MIT Project Athena (grunt.example.com)
@@ -812,7 +812,7 @@ Password:
Now we need to add the user to ``root``'s [.filename]#.klogin# file:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -820,7 +820,7 @@ jane.root@EXAMPLE.COM
Now try doing the man:su[1]:
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -828,7 +828,7 @@ Password:
and take a look at what tokens we have:
-[source,bash]
+[source,shell]
....
# klist
Ticket file: /tmp/tkt_root_245
@@ -842,7 +842,7 @@ May 2 20:43:12 May 3 04:43:12 krbtgt.EXAMPLE.COM@EXAMPLE.COM
In an earlier example, we created a principal called `jane` with an instance `root`. This was based on a user with the same name as the principal, and this is a Kerberos default; that a `<principal>.<instance>` of the form `<username>. root` will allow that `<username>` to man:su[1] to `root` if the necessary entries are in the [.filename]#.klogin# file in ``root``'s home directory:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -850,7 +850,7 @@ jane.root@EXAMPLE.COM
Likewise, if a user has in their own home directory lines of the form:
-[source,bash]
+[source,shell]
....
% cat ~/.klogin
jane@EXAMPLE.COM
@@ -861,7 +861,7 @@ This allows anyone in the `EXAMPLE.COM` realm who has authenticated themselves a
For example, `jane` now logs into another system using Kerberos:
-[source,bash]
+[source,shell]
....
% kinit
MIT Project Athena (grunt.example.com)
@@ -876,7 +876,7 @@ FreeBSD BUILT-19950429 (GR386) #0: Sat Apr 29 17:50:09 SAT 1995
Or `jack` logs into ``jane``'s account on the same machine (`jane` having set up the [.filename]#.klogin# file as above, and the person in charge of Kerberos having set up principal _jack_ with a null instance):
-[source,bash]
+[source,shell]
....
% kinit
% rlogin grunt -l jane
@@ -988,7 +988,7 @@ Lastly, while still in `kadmin`, create your first principal using the `add` com
A sample database creation session is shown below:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -1007,7 +1007,7 @@ Verifying password - Password: xxxxxxxx
Now it is time to start up the KDC services. Run `/etc/rc.d/kerberos start` and `/etc/rc.d/kadmind start` to bring up the services. Note that you will not have any kerberized daemons running at this point but you should be able to confirm the that the KDC is functioning by obtaining and listing a ticket for the principal (user) that you just created from the command-line of the KDC itself:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -1022,7 +1022,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
The ticket can then be revoked when you have finished:
-[source,bash]
+[source,shell]
....
% k5destroy
....
@@ -1039,7 +1039,7 @@ Note that you must have already obtained a ticket and that this ticket must be a
After installing the [.filename]#/etc/krb5.conf# file, you can use `kadmin` from the Kerberos server. The `add --random-key` command will let you add the server's host principal, and the `ext` command will allow you to extract the server's host principal to its own keytab. For example:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -1054,7 +1054,7 @@ Note that the `ext` command (short for "extract") stores the extracted key in [.
If you do not have `kadmind` running on the KDC (possibly for security reasons) and thus do not have access to `kadmin` remotely, you can add the host principal (`host/myserver.EXAMPLE.ORG`) directly on the KDC and then extract it to a temporary file (to avoid over-writing the [.filename]#/etc/krb5.keytab# on the KDC) using something like this:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -1092,7 +1092,7 @@ Occasionally, however, you want to grant access to a local user account to someo
The [.filename]#.k5login# and [.filename]#.k5users# files, placed in a users home directory, can be used similar to a powerful combination of [.filename]#.hosts# and [.filename]#.rhosts#, solving this problem. For example, if a [.filename]#.k5login# with the following contents:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -1201,7 +1201,7 @@ One of the most common uses of OpenSSL is to provide certificates for use with s
To generate a certificate, the following command is available:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -1236,21 +1236,21 @@ Two files should now exist in the directory in which the aforementioned command
In cases where a signature from a CA is not required, a self signed certificate can be created. First, generate the RSA key:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
Next, generate the CA key:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Use this key to create the certificate:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -1284,7 +1284,7 @@ If all went well there will be no error messages in the [.filename]#/var/log/mai
For a simple test, simply connect to the mail server using the man:telnet[1] utility:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1325,7 +1325,7 @@ _IPsec_ is a protocol which sits on top of the Internet Protocol (IP) layer. It
====
FreeBSD contains a "hardware accelerated" IPsec stack, known as "Fast IPsec", that was obtained from OpenBSD. It employs cryptographic hardware (whenever possible) via the man:crypto[4] subsystem to optimize the performance of IPsec. This subsystem is new, and does not support all the features that are available in the KAME version of IPsec. However, in order to enable hardware-accelerated IPsec, the following kernel option has to be added to your kernel configuration file:
-[source,bash]
+[source,shell]
....
options FAST_IPSEC # new IPsec (cannot define w/ IPSEC)
....
@@ -1337,7 +1337,7 @@ Note, that it is not currently possible to use the "Fast IPsec" subsystem in lie
====
To let firewalls properly track state for man:gif[4] tunnels too, you have to enable the `IPSEC_FILTERGIF` in your kernel configuration:
-[source,bash]
+[source,shell]
....
options IPSEC_FILTERGIF #filter ipsec packets from a tunnel
....
@@ -1355,7 +1355,7 @@ IPsec can either be used to directly encrypt the traffic between two hosts (know
To add IPsec support to your kernel, add the following options to your kernel configuration file:
-[source,bash]
+[source,shell]
....
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
@@ -1364,7 +1364,7 @@ options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
If IPsec debugging support is desired, the following kernel option should also be added:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG #debug for IP security
....
@@ -1436,7 +1436,7 @@ Configuring the tunnel is a two step process. First the tunnel must be told what
On the gateway machine on network #1 you would run the following commands to configure the tunnel.
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 tunnel A.B.C.D W.X.Y.Z
@@ -1445,7 +1445,7 @@ On the gateway machine on network #1 you would run the following commands to con
On the other gateway machine you run the same commands, but with the order of the IP addresses reversed.
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 tunnel W.X.Y.Z A.B.C.D
@@ -1461,7 +1461,7 @@ ifconfig gif0
to see the configuration. For example, on the network #1 gateway, you would see this:
-[source,bash]
+[source,shell]
....
# ifconfig gif0
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
@@ -1473,7 +1473,7 @@ As you can see, a tunnel has been created between the physical addresses `A.B.C.
This will also have added an entry to the routing table on both machines, which you can examine with the command `netstat -rn`. This output is from the gateway host on network #1.
-[source,bash]
+[source,shell]
....
# netstat -rn
Routing tables
@@ -1689,7 +1689,7 @@ spdadd A.B.C.D/32 W.X.Y.Z/32 ipencap -P out ipsec esp/tunnel/A.B.C.D-W.X.Y.Z/req
Put these commands in a file (e.g. [.filename]#/etc/ipsec.conf#) and then run
-[source,bash]
+[source,shell]
....
# setkey -f /etc/ipsec.conf
....
@@ -1829,7 +1829,7 @@ Normally, when using man:telnet[1] or man:rlogin[1], data is sent over the netwo
The sshd is an option presented during a `Standard` install of FreeBSD. To see if sshd is enabled, check the [.filename]#rc.conf# file for:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1845,7 +1845,7 @@ This will load man:sshd[8], the daemon program for OpenSSH, the next time your s
The man:ssh[1] utility works similarly to man:rlogin[1].
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1862,7 +1862,7 @@ By default, recent versions of the OpenSSH servers only accept SSH v2 connection
The man:scp[1] command works similarly to man:rcp[1]; it copies a file to or from a remote machine, except in a secure fashion.
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1888,7 +1888,7 @@ Additionally, the `sshd_program` ([.filename]#/usr/sbin/sshd# by default), and `
Instead of using passwords, man:ssh-keygen[1] can be used to generate DSA or RSA keys to authenticate a user:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1923,7 +1923,7 @@ The man:ssh-agent[1] utility will handle the authentication using the private ke
To use man:ssh-agent[1] in a shell, first it will need to be spawned with a shell as an argument. Secondly, the identity needs to be added by running man:ssh-add[1] and providing it the passphrase for the private key. Once these steps have been completed the user will be able to man:ssh[1] to any host that has the corresponding public key installed. For example:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1948,7 +1948,7 @@ OpenSSH has the ability to create a tunnel to encapsulate another protocol in an
The following command tells man:ssh[1] to create a tunnel for telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1981,7 +1981,7 @@ This can be used to wrap any number of insecure TCP protocols such as SMTP, POP3
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -2000,7 +2000,7 @@ This can be used in conjunction with an man:ssh-keygen[1] and additional user ac
At work, there is an SSH server that accepts connections from the outside. On the same office network resides a mail server running a POP3 server. The network, or network path between your home and office may or may not be completely trustable. Because of this, you need to check your e-mail in a secure manner. The solution is to create an SSH connection to your office's SSH server, and tunnel through to the mail server.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -2016,7 +2016,7 @@ You may wish to access another (perhaps non-work related) service, such as an Og
The solution is to create an SSH connection to a machine outside of your network's firewall, and use it to tunnel to the Ogg Vorbis server.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -2054,7 +2054,7 @@ It is important that you list each user that needs to log in to this machine; ot
After making changes to [.filename]#/etc/ssh/sshd_config# you must tell man:sshd[8] to reload its config files, by running:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -2115,7 +2115,7 @@ Here we see that the [.filename]#directory1#, [.filename]#directory2#, and [.fil
The file system ACLs can be viewed by the man:getfacl[1] utility. For instance, to view the ACL settings on the [.filename]#test# file, one would use the command:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -2128,14 +2128,14 @@ The file system ACLs can be viewed by the man:getfacl[1] utility. For instance,
To change the ACL settings on this file, invoke the man:setfacl[1] utility. Observe:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
The `-k` flag will remove all of the currently defined ACLs from a file or file system. The more preferable method would be to use `-b` as it leaves the basic fields required for ACLs to work.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -2153,7 +2153,7 @@ The package:ports-mgmt/portaudit[] port polls a database, updated and maintained
To begin using Portaudit, one must install it from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit make install clean
....
@@ -2162,7 +2162,7 @@ During the install process, the configuration files for man:periodic[8] will be
After installation, an administrator can update the database and view known vulnerabilities in installed packages by invoking the following command:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -2174,7 +2174,7 @@ The database will automatically be updated during the man:periodic[8] run; thus,
To audit the third party utilities installed as part of the Ports Collection at anytime, an administrator need only run the following command:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -2290,7 +2290,7 @@ This indeed has its own positive and negative points. One of the positives is th
Before making use of process accounting, it must be enabled. To do this, execute the following commands:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -2303,7 +2303,7 @@ Once enabled, accounting will begin to track CPU stats, commands, etc. All accou
To view information about commands being issued, one would use the man:lastcomm[1] utility. The `lastcomm` may be used to print out commands issued by users on specific man:ttys[5], for example:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/el/books/handbook/serialcomms/_index.adoc b/documentation/content/el/books/handbook/serialcomms/_index.adoc
index 3c5a9e3b48..43f7f27248 100644
--- a/documentation/content/el/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/el/books/handbook/serialcomms/_index.adoc
@@ -347,7 +347,7 @@ RS-232::
Για να δείτε μόνο τα μηνύματα που περιέχουν τη λέξη `sio`, χρησιμοποιήστε την εντολή:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -356,7 +356,7 @@ RS-232::
Για παράδειγμα, σε ένα σύστημα με τέσσερις σειριακές θύρες, τα μηνύματα του πυρήνα που σχετίζονται με αυτές φαίνονται παρακάτω:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -386,14 +386,14 @@ sio3: type 16550A
Η συσκευή [.filename]#ttyuN# (ή [.filename]#cuauN#) είναι η κανονική συσκευή που μπορείτε να χρησιμοποιήσετε στις εφαρμογές σας. Όταν μια διαδικασία ανοίγει μια συσκευή, χρησιμοποιούνται κάποιες προεπιλεγμένες ρυθμίσεις I/O για το τερματικό. Μπορείτε να δείτε αυτές τις ρυθμίσεις με την εντολή:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
Αν αλλάξετε τις ρυθμίσεις σε αυτή τη συσκευή, αυτές θα παραμείνουν μέχρι το κλείσιμο της συσκευής. Όταν ανοιχθεί ξανά, θα έχει επανέλθει στις προεπιλεγμένες ρυθμίσεις. Για να αλλάξετε τις προεπιλεγμένες ρυθμίσεις, μπορείτε να ανοίξετε και να αλλάξετε τις ρυθμίσεις της συσκευής "αρχικής κατάστασης". Για παράδειγμα, για να ενεργοποιήσετε τη λειτουργία `CLOCAL`, να ορίσετε επικοινωνία 8bit και έλεγχο ροής μέσω `XON/XOFF` για τη συσκευή [.filename]#ttyu5#, γράψτε:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
@@ -402,7 +402,7 @@ sio3: type 16550A
Για να αποτρέψετε την αλλαγή συγκεκριμένων ρυθμίσεων από κάποια εφαρμογή, αλλάξτε τις ρυθμίσεις της συσκευής "κλειδώματος". Για παράδειγμα, για να κλειδώσετε την ταχύτητα της συσκευής [.filename]#ttyu5# στα 57600 bps, γράψτε:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -459,7 +459,7 @@ sio3: type 16550A
Για να συνδεθείτε από ένα άλλο μηχάνημα που εκτελεί FreeBSD στη σειριακή σύνδεση ενός άλλου συστήματος, μπορείτε να χρησιμοποιήσετε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# cu -l serial-port-device
....
@@ -539,7 +539,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
Έχοντας κάνει τις απαραίτητες αλλαγές στο αρχείο [.filename]#/etc/ttys#, θα πρέπει να στείλετε σήμα SIGHUP (hangup) στην διεργασία `init` για να την αναγκάσετε να διαβάσει ξανά το αρχείο ρυθμίσεων της. Για παράδειγμα:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -566,14 +566,14 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
Βεβαιωθείτε ότι εκτελείται η διαδικασία `getty` που εξυπηρετεί το τερματικό. Για να δείτε μια λίστα με τις ενεργές διαδικασίες `getty`, χρησιμοποιήστε την εντολή `ps`:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Θα πρέπει να δείτε μια καταχώριση για το τερματικό σας. Για παράδειγμα, η ακόλουθη οθόνη δείχνει ότι η διεργασία `getty` εκτελείτε στη δεύτερη σειριακή θύρα [.filename]#ttyu1# και χρησιμοποιεί την καταχώριση `std.38400` στο αρχείο [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
....
@@ -655,7 +655,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
Όπως και με τα τερματικά, η `init` εκτελεί μια διεργασία `getty` για κάθε σειριακή θύρα που έχει ρυθμιστεί για εισερχόμενες επιλογικές συνδέσεις. Για παράδειγμα, αν έχετε συνδέσει ένα modem στη θύρα [.filename]#/etc/ttyu0#, η εντολή `ps ax` θα δείξει κάτι σαν το παρακάτω:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyu0
....
@@ -760,7 +760,7 @@ ttyu0 "/usr/libexec/getty xxx" dialup on
Αφού κάνετε τις αλλαγές στο [.filename]#/etc/ttys#, μπορείτε να στείλετε στη διεργασία `init` ένα σήμα HUP για να ξαναδιαβάσει το αρχείο. Μπορείτε να χρησιμοποιήσετε την παρακάτω εντολή για αυτό το σκοπό:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -873,7 +873,7 @@ AT&B2&W
Αν δεν ενεργοποιείται η ένδειξη DTR, εισέλθετε στο σύστημα μέσω της κονσόλας, και δώστε την εντολή `ps ax` για να δείτε αν το FreeBSD προσπαθεί να εκτελέσει διεργασία `getty` στη σωστή θύρα. Ανάμεσα στις διεργασίες, θα δείτε γραμμές όπως τις παρακάτω:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu1
@@ -881,7 +881,7 @@ AT&B2&W
Αν δείτε κάτι διαφορετικό, όπως το παρακάτω:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -942,7 +942,7 @@ cuau0:dv=/dev/cuau0:br#19200:pa=none
Ή χρησιμοποιήστε την `cu` ως `root`, δίνοντας την ακόλουθη εντολή:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -974,7 +974,7 @@ tip57600|Dial any phone number at 57600 bps:\
Έπειτα μπορείτε να δίνετε εντολές όπως:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -989,7 +989,7 @@ cu115200|Use cu to dial any number at 115200bps:\
και πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1118,7 +1118,7 @@ raisechar=^^
. Συνδέστε το σειριακό καλώδιο στην [.filename]#COM1# και στο τερματικό.
. Για να δείτε όλα τα μηνύματα εκκίνησης στην σειριακή κονσόλα, δώστε την παρακάτω εντολή ως υπερχρήστης:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1209,7 +1209,7 @@ device sio0 flags 0x10
+
Όταν ξεκινήσετε το FreeBSD μηχάνημα, τα boot blocks θα δείξουν τα περιεχόμενα του [.filename]#/boot.config# στην κονσόλα. Για παράδειγμα:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1246,7 +1246,7 @@ Keyboard: no
+
Πιέστε οποιοδήποτε πλήκτρο εκτός από το kbd:[Enter] στην κονσόλα για να διακόψετε τη διαδικασία εκκίνησης. Τα boot blocks θα σας ρωτήσουν για περισσότερες πληροφορίες. Θα πρέπει να δείτε κάτι όπως το παρακάτω:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1411,7 +1411,7 @@ device sio1 flags 0x30
Δεν θα πρέπει να θέσετε flags κονσόλας για τις άλλες σειριακές θύρες.
. Μεταγλωττίστε και εγκαταστήστε ξανά τα boot blocks και τον φορτωτή εκκίνησης:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/el/books/handbook/users/_index.adoc b/documentation/content/el/books/handbook/users/_index.adoc
index 18dba49798..824db6ed22 100644
--- a/documentation/content/el/books/handbook/users/_index.adoc
+++ b/documentation/content/el/books/handbook/users/_index.adoc
@@ -167,7 +167,7 @@ Group ID (GID)::
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -236,7 +236,7 @@ Goodbye!
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -272,7 +272,7 @@ Removing files belonging to jru from /var/tmp/vi.recover: done.
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -299,7 +299,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -331,7 +331,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -348,7 +348,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -385,7 +385,7 @@ passwd: done
====
Το σύστημα συνήθως δεν διαβάζει απευθείας το αρχείο ρυθμίσεων στο [.filename]#/etc/login.conf#, αλλά το αρχείο βάσης δεδομένων [.filename]#/etc/login.conf.db# το οποίο παρέχει γρηγορότερες αναζητήσεις. Για να δημιουργήσουμε το [.filename]#/etc/login.conf.db# από το [.filename]#/etc/login.conf#, εκτελούμε την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -450,7 +450,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -465,7 +465,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -480,7 +480,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -495,7 +495,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/el/books/handbook/virtualization/_index.adoc b/documentation/content/el/books/handbook/virtualization/_index.adoc
index 5789d93079..e336881d31 100644
--- a/documentation/content/el/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/el/books/handbook/virtualization/_index.adoc
@@ -319,7 +319,7 @@ kern.hz=100
Αρχικά, εγκαταστήστε το πακέτο package:emulators/virtualbox-ose-additions[] στο φιλοξενούμενο FreeBSD λειτουργικό.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -416,7 +416,7 @@ EndSection
Το VirtualBox(TM) είναι διαθέσιμο ως FreeBSD port στο package:emulators/virtualbox-ose[]. Καθώς το VirtualBox(TM) βρίσκεται υπό συνεχή και πολύ ενεργή ανάπτυξη, βεβαιωθείτε ότι έχετε ανανεώσει το δέντρο των ports πριν ξεκινήσετε την εγκατάσταση του. Χρησιμοποιήστε τις παρακάτω εντολές για να το εγκαταστήσετε:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -426,7 +426,7 @@ EndSection
Πριν χρησιμοποιήσετε το VirtualBox(TM) για πρώτη φορά, θα πρέπει να αλλάξετε κάποιες ρυθμίσεις. Το port εγκαθιστά ένα άρθρωμα πυρήνα στον κατάλογο [.filename]#/boot/modules# το οποίο θα πρέπει να φορτώσετε στον πυρήνα που εκτελείται:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -447,7 +447,7 @@ vboxnet_enable="YES"
Κατά τη διάρκεια της εγκατάστασης του VirtualBox(TM), δημιουργείται αυτόματα η ομάδα χρηστών `vboxusers`. Όλοι οι χρήστες που χρειάζονται πρόσβαση στο VirtualBox(TM), θα πρέπει να ανήκουν σε αυτή την ομάδα. Μπορείτε να χρησιμοποιήσετε την εντολή `pw` για να προσθέσετε νέα μέλη στην ομάδα:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
@@ -456,7 +456,7 @@ vboxnet_enable="YES"
Για να δοκιμάσετε τις νέες ρυθμίσεις προσωρινά:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -472,7 +472,7 @@ perm vboxnetctl 0660
Για να εκτελέσετε το VirtualBox(TM), μπορείτε απλώς να επιλέξετε την καταχώριση [.guimenuitem]#Sun VirtualBox# από το μενού του γραφικού σας περιβάλλοντος, ή να πληκτρολογήσετε το παρακάτω σε ένα τερματικό:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -489,7 +489,7 @@ perm vboxnetctl 0660
Για να μπορείτε να διαβάσετε και να γράψετε σε συσκευές USB, θα πρέπει ο λογαριασμός σας να ανήκει στην ομάδα operators:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m jerry
....
@@ -511,7 +511,7 @@ devfs_system_ruleset="system"
Έπειτα επανεκκινήστε το devfs:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
....
@@ -535,7 +535,7 @@ atapicam_load="YES"
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/hald start
....
diff --git a/documentation/content/el/books/handbook/x11/_index.adoc b/documentation/content/el/books/handbook/x11/_index.adoc
index b57468fe53..1bba89eff6 100644
--- a/documentation/content/el/books/handbook/x11/_index.adoc
+++ b/documentation/content/el/books/handbook/x11/_index.adoc
@@ -145,7 +145,7 @@ click-to-focus::
Για να μεταγλωττίσετε και να εγκαταστήσετε το Xorg από την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -160,7 +160,7 @@ click-to-focus::
Έτσι, για να γίνει η λήψη και η εγκατάσταση του Xorg, απλώς εκτελέστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -205,7 +205,7 @@ dbus_enable="YES"
Το Xorg μπορεί συχνά να λειτουργήσει χωρίς καμιά επιπλέον ρύθμιση, γράφοντας απλώς στη γραμμή εντολών:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -219,7 +219,7 @@ dbus_enable="YES"
Το πρώτο βήμα είναι η δημιουργία ενός αρχικού αρχείου ρυθμίσεων. Ως root, απλώς εκτελέστε:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -228,7 +228,7 @@ dbus_enable="YES"
Το επόμενο βήμα είναι ο έλεγχος των υπάρχοντων ρυθμίσεων για να επιβεβαιώσετε ότι το Xorg λειτουργεί με το υποσύστημα γραφικών του συστήματος σας. Πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -239,7 +239,7 @@ dbus_enable="YES"
====
Μπορείτε επίσης να χρησιμοποιήσετε τον συνδυασμό πλήκτρων kbd:[Ctrl+Alt+Backspace] για τον τερματισμό του προγράμματος. Για να τον ενεργοποιήσετε, δώστε την παρακάτω εντολή σε κάποιο τερματικό του X:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -303,7 +303,7 @@ Option "AutoAddDevices" "false"
Μπορείτε επίσης να κάνετε την ίδια ρύθμιση μέσα από ένα τερματικό στα Χ ή ακόμα και από ένα script, εκτελώντας την παρακάτω εντολή:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -362,7 +362,7 @@ EndSection
Αν όλα είναι καλά, το αρχείο ρυθμίσεων πρέπει να τοποθετηθεί σε μια κοινή τοποθεσία ώστε να εντοπίζεται από το man:Xorg[1]. Αυτή συνήθως είναι η [.filename]#/etc/X11/xorg.conf# ή [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -451,7 +451,7 @@ EndSection
Για να εγκαταστήσετε τις παραπάνω συλλογές γραμματοσειρών Type1 από την Συλλογή των Ports, εκτελέστε τις παρακάτω εντολές:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -466,7 +466,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
Εναλλακτικά, εκτελέστε στην γραμμή εντολών μιας συνόδου X:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -486,7 +486,7 @@ Load "freetype"
Τώρα, δημιουργήστε έναν κατάλογο για τις γραμματοσειρές TrueType(R) (για παράδειγμα, [.filename]#/usr/local/lib/X11/fonts/TrueType#) και αντιγράψτε όλες τις γραμματοσειρές TrueType(R) σε αυτόν. Προσέξτε ότι οι γραμματοσειρές TrueType(R) δεν μπορούν να είναι από ένα σύστημα Macintosh(R) πρέπει να είναι σε μορφή UNIX(R)/MS-DOS(R)/Windows(R) για να λειτουργούν στο X11. Μόλις αντιγραφούν τα αρχεία στον κατάλογο, χρησιμοποιήστε το ttmkfdir για να δημιουργήσετε το αρχείο [.filename]#fonts.dir#, ώστε ο X font renderer να γνωρίζει την ύπαρξη των νέων αυτών αρχείων. Το `ttmkfdir` διατίθεται από την Συλλογή των Ports του FreeBSD ως package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -494,7 +494,7 @@ Load "freetype"
Τώρα, πρoσθέστε τον κατάλογο TrueType(R) στη διαδρομή των fonts. Αυτό γίνεται με τον ίδιο τρόπο που περιγράψαμε παραπάνω στις <<type1,Type1>> γραμματοσειρές, χρησιμοποιώντας το
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -530,7 +530,7 @@ Load "freetype"
Αφού προσθέσετε νέες γραμματοσειρές, και ειδικότερα νέους καταλόγους γραμματοσειρών, πρέπει να εκτελέσετε την ακόλουθη εντολή για να αναδημιουργήσετε την cache γραμματοσειρών:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -644,7 +644,7 @@ Load "freetype"
Για να ξεκινήσετε να χρησιμοποιείτε το XDM, εγκαταστήστε το port package:x11/xdm[] (δεν εγκαθίσταται από προεπιλογή στις πρόσφατες εκδόσεις του Xorg). Μπορείτε έπειτα να βρείτε τον δαίμονα XDM στο [.filename]#/usr/local/bin/xdm#. Αυτό το πρόγραμμα μπορεί να εκτελεστεί οποιαδήποτε στιγμή ως `root` και θα ξεκινήσει να διαχειρίζεται την οθόνη του X στο τοπικό μηχάνημα. Αν ο XDM πρέπει να εκτελείται κάθε φορά που εκκινείται το μηχάνημα, ένας βολικός τρόπος είναι η προσθήκη μιας γραμμής στο [.filename]#/etc/ttys#. Για περισσότερες πληροφορίες σχετικά με την μορφή και την χρήση αυτού του αρχείου, δείτε το crossref:serialcomms[term-etcttys,"Προσθέτοντας μια Καταχώριση στο /etc/ttys"]. Υπάρχει μία γραμμή στο αρχικό [.filename]#/etc/ttys# αρχείο για την εκτέλεση του XDM σε ένα εικονικό τερματικό:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -722,7 +722,7 @@ ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
Για να συνδέονται και άλλοι πελάτες στον διακομιστή οθόνης, τροποποιήστε τους κανόνες ελέγχου πρόσβασης, και ενεργοποιήστε τις εισερχόμενες συνδέσεις. Τα παραπάνω είναι, από προεπιλογή ρυθμισμένα σε συντηρητικές τιμές. Για να κάνετε το XDM να δέχεται συνδέσεις, αρχικά μετατρέψτε σε σχόλιο την παρακάτω γραμμή στο αρχείο [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -755,14 +755,14 @@ DisplayManager.requestPort: 0
Για να εγκαταστήσετε το έτοιμο πακέτο του GNOME από το δίκτυο, απλώς πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
Για να μεταγλωττίσετε το GNOME από τον πηγαίο κώδικα, χρησιμοποιήστε την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -801,7 +801,7 @@ gnome_enable="YES"
Το GNOME μπορεί επίσης να ξεκινήσει από την γραμμή εντολών ρυθμίζοντας κατάλληλα το αρχείο [.filename]#.xinitrc#. Αν υπάρχει ήδη το αρχείο [.filename]#.xinitrc#, απλώς αντικαταστήστε την γραμμή που εκκινεί τον τρέχοντα διαχειριστή παραθύρων με μία που να εκκινεί το /usr/local/bin/gnome-session. Αν δεν θέλετε να κάνετε περισσότερες ρυθμίσεις στο αρχείο, χρειάζεται απλά να γράψετε:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -813,7 +813,7 @@ gnome_enable="YES"
Αν χρησιμοποιείτε κάποιο παλαιότερο display manager, όπως το XDM, το παραπάνω δεν θα λειτουργήσει. Στην περίπτωση αυτή, δημιουργήστε ένα εκτελέσιμο αρχείο [.filename]#.xsession# το οποίο να περιέχει την ίδια εντολή. Τροποποιήστε το αρχείο [.filename]#.xsession# και αντικαταστήστε την εντολή του τρέχοντος διαχειριστή παραθύρων με το /usr/local/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -850,14 +850,14 @@ gnome_enable="YES"
Για να εγκαταστήσετε το KDE 3 μέσω πακέτων από το δίκτυο, απλώς πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
Για να εγκαταστήσετε το KDE 4 μέσω πακέτων από το δίκτυο, απλώς πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -866,7 +866,7 @@ gnome_enable="YES"
Για να μεταγλωττίσετε το KDE 3 από τον πηγαίο κώδικα, χρησιμοποιήστε τη Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -874,7 +874,7 @@ gnome_enable="YES"
Για να μεταγλωττίσετε το KDE 4 από τον πηγαίο κώδικα, χρησιμοποιήστε τη Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -884,14 +884,14 @@ gnome_enable="YES"
Για το KDE 3:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
Για το KDE 4:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -950,14 +950,14 @@ kdm4_enable="YES"
Υπάρχει (την ώρα που γράφονται αυτές οι γραμμές) έτοιμο πακέτο για το Xfce. Για να το εγκαταστήσετε, απλώς πληκτρολογήστε:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Εναλλακτικά, για να το μεταγλωττίσετε από τον πηγαίο κώδικα, χρησιμοποιήστε την Συλλογή των Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -965,7 +965,7 @@ kdm4_enable="YES"
Τώρα, πείτε στον διακομιστή X να εκκινήσει το Xfce την επόμενη φορά που θα γίνει εκκίνηση του γραφικού περιβάλλοντος. Απλώς πληκτρολογήστε το παρακάτω:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/en/articles/committers-guide/_index.adoc b/documentation/content/en/articles/committers-guide/_index.adoc
index c6ff1952a7..3848a401ff 100644
--- a/documentation/content/en/articles/committers-guide/_index.adoc
+++ b/documentation/content/en/articles/committers-guide/_index.adoc
@@ -112,7 +112,7 @@ cert-digest-algo SHA512
....
. Generate a key:
+
-[source,bash]
+[source,shell]
....
% gpg --full-gen-key
gpg (GnuPG) 2.1.8; Copyright (C) 2015 Free Software Foundation, Inc.
@@ -173,7 +173,7 @@ The FreeBSD cluster requires a Kerberos password to access certain services. The
To create a new Kerberos account in the FreeBSD cluster, or to reset a Kerberos password for an existing account using a random password generator:
-[source,bash]
+[source,shell]
....
% ssh kpasswd.freebsd.org
....
@@ -185,7 +185,7 @@ This must be done from a machine outside of the FreeBSD.org cluster.
A Kerberos password can also be set manually by logging into `freefall.FreeBSD.org` and running:
-[source,bash]
+[source,shell]
....
% kpasswd
....
@@ -251,7 +251,7 @@ The FreeBSD `ports` repository switched from CVS to Subversion on July 14th, 201
Subversion can be installed from the FreeBSD Ports Collection by issuing these commands:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -266,21 +266,21 @@ There are a few ways to obtain a working copy of the tree from Subversion. This
The first is to check out directly from the main repository. For the `src` tree, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head /usr/src
....
For the `doc` tree, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/doc/head /usr/doc
....
For the `ports` tree, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/ports/head /usr/ports
....
@@ -361,7 +361,7 @@ This section will explain how to perform common day-to-day operations with Subve
SVN has built in help documentation. It can be accessed by typing:
-[source,bash]
+[source,shell]
....
% svn help
....
@@ -373,7 +373,7 @@ Additional information can be found in the http://svnbook.red-bean.com/[Subversi
As seen earlier, to check out the FreeBSD head branch:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head /usr/src
....
@@ -382,7 +382,7 @@ At some point, more than just `HEAD` will probably be useful, for instance when
To do this, first check out the root of the repository:
-[source,bash]
+[source,shell]
....
% svn checkout --depth=immediates svn+ssh://repo.freebsd.org/base
....
@@ -391,7 +391,7 @@ This will give `base` with all the files it contains (at the time of writing, ju
Expanding the working copy is possible. Just change the depth of the various subdirectories:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/head
% svn up --set-depth=immediates base/release base/releng base/stable
@@ -401,14 +401,14 @@ The above command will pull down a full copy of `head`, plus empty copies of eve
If at a later date merging to `7-STABLE` is required, expand the working copy:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/stable/7
....
Subtrees do not have to be expanded completely. For instance, expanding only `stable/7/sys` and then later expand the rest of `stable/7`:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/stable/7/sys
% svn up --set-depth=infinity base/stable/7
@@ -421,7 +421,7 @@ Updating the tree with `svn update` will only update what was previously asked f
It is possible to anonymously check out the FreeBSD repository with Subversion. This will give access to a read-only tree that can be updated, but not committed back to the main repository. To do this, use:
-[source,bash]
+[source,shell]
....
% svn co https://svn.FreeBSD.org/base/head /usr/src
....
@@ -433,7 +433,7 @@ More details on using Subversion this way can be found in link:{handbook}#svn[Us
To update a working copy to either the latest revision, or a specific revision:
-[source,bash]
+[source,shell]
....
% svn update
% svn update -r12345
@@ -444,14 +444,14 @@ To update a working copy to either the latest revision, or a specific revision:
To view the local changes that have been made to the working copy:
-[source,bash]
+[source,shell]
....
% svn status
....
To show local changes and files that are out-of-date do:
-[source,bash]
+[source,shell]
....
% svn status --show-updates
....
@@ -463,21 +463,21 @@ SVN does not need to be told in advance about file editing.
To commit all changes in the current directory and all subdirectories:
-[source,bash]
+[source,shell]
....
% svn commit
....
To commit all changes in, for example, [.filename]#lib/libfetch/# and [.filename]#usr/bin/fetch/# in a single operation:
-[source,bash]
+[source,shell]
....
% svn commit lib/libfetch usr/bin/fetch
....
There is also a commit wrapper for the ports tree to handle the properties and sanity checking the changes:
-[source,bash]
+[source,shell]
....
% /usr/ports/Tools/scripts/psvn commit
....
@@ -492,7 +492,7 @@ Before adding files, get a copy of https://people.FreeBSD.org/~peter/auto-props.
Files are added to a SVN repository with `svn add`. To add a file named __foo__, edit it, then:
-[source,bash]
+[source,shell]
....
% svn add foo
....
@@ -504,7 +504,7 @@ Most new source files should include a `$FreeBSD$` string near the start of the
Files can be removed with `svn remove`:
-[source,bash]
+[source,shell]
....
% svn remove foo
....
@@ -513,7 +513,7 @@ Subversion does not require deleting the file before using `svn rm`, and indeed
It is possible to add directories with `svn add`:
-[source,bash]
+[source,shell]
....
% mkdir bar
% svn add bar
@@ -521,14 +521,14 @@ It is possible to add directories with `svn add`:
Although `svn mkdir` makes this easier by combining the creation of the directory and the adding of it:
-[source,bash]
+[source,shell]
....
% svn mkdir bar
....
Like files, directories are removed with `svn rm`. There is no separate command specifically for removing directories.
-[source,bash]
+[source,shell]
....
% svn rm bar
....
@@ -538,7 +538,7 @@ Like files, directories are removed with `svn rm`. There is no separate command
This command creates a copy of [.filename]#foo.c# named [.filename]#bar.c#, with the new file also under version control and with the full history of [.filename]#foo.c#:
-[source,bash]
+[source,shell]
....
% svn copy foo.c bar.c
....
@@ -547,7 +547,7 @@ This is usually preferred to copying the file with `cp` and adding it to the rep
To move and rename a file:
-[source,bash]
+[source,shell]
....
% svn move foo.c bar.c
....
@@ -566,14 +566,14 @@ To move and rename a file:
`svn diff` can show the changes between two revisions of the same file:
-[source,bash]
+[source,shell]
....
% svn diff -r179453:179454 ROADMAP.txt
....
It can also show all changes for a specific changeset. This command shows what changes were made to the current directory and all subdirectories in changeset 179454:
-[source,bash]
+[source,shell]
....
% svn diff -c179454 .
....
@@ -588,14 +588,14 @@ Local changes (including additions and deletions) can be reverted using `svn rev
If an `svn update` resulted in a merge conflict, Subversion will remember which files have conflicts and refuse to commit any changes to those files until explicitly told that the conflicts have been resolved. The simple, not yet deprecated procedure is:
-[source,bash]
+[source,shell]
....
% svn resolved foo
....
However, the preferred procedure is:
-[source,bash]
+[source,shell]
....
% svn resolve --accept=working foo
....
@@ -625,7 +625,7 @@ The `--depth` option applies to many other commands, including `svn commit`, `sv
Since `--depth` is sticky, there is a `--set-depth` option for `svn update` that will change the selected depth. Thus, given the working copy produced by the previous example:
-[source,bash]
+[source,shell]
....
% cd ~/freebsd
% svn update --set-depth=immediates .
@@ -633,7 +633,7 @@ Since `--depth` is sticky, there is a `--set-depth` option for `svn update` that
The above command will populate the working copy in _~/freebsd_ with [.filename]#ROADMAP.txt# and empty subdirectories, and nothing will happen when `svn update` is executed on the subdirectories. However, this command will set the depth for _head_ (in this case) to infinity, and fully populate it:
-[source,bash]
+[source,shell]
....
% svn update --set-depth=infinity head
....
@@ -651,14 +651,14 @@ Certain operations can be performed directly on the repository without touching
Branching is very fast. This command would be used to branch `RELENG_8`:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/head svn+ssh://repo.freebsd.org/base/stable/8
....
This is equivalent to these commands which take minutes and hours as opposed to seconds, depending on your network connection:
-[source,bash]
+[source,shell]
....
% svn checkout --depth=immediates svn+ssh://repo.freebsd.org/base
% cd base
@@ -694,7 +694,7 @@ If you consider the case where a revision changes several separate parts of the
Merging to `stable/` branches should originate from `head/`. For example:
-[source,bash]
+[source,shell]
....
% svn merge -c r123456 ^/head/ stable/11
% svn commit stable/11
@@ -702,7 +702,7 @@ Merging to `stable/` branches should originate from `head/`. For example:
Merges to `releng/` branches should always originate from the corresponding `stable/` branch. For example:
-[source,bash]
+[source,shell]
....
% svn merge -c r123456 ^/stable/11 releng/11.0
% svn commit releng/11.0
@@ -715,7 +715,7 @@ Committers are only permitted to commit to the `releng/` branches during a relea
All merges are merged to and committed from the root of the branch. All merges look like:
-[source,bash]
+[source,shell]
....
% svn merge -c r123456 ^/head/ checkout
% svn commit checkout
@@ -723,7 +723,7 @@ All merges are merged to and committed from the root of the branch. All merges l
Note that _checkout_ must be a complete checkout of the branch to which the merge occurs.
-[source,bash]
+[source,shell]
....
% svn merge -c r123456 ^/stable/10 releng/10.0
....
@@ -732,7 +732,7 @@ Note that _checkout_ must be a complete checkout of the branch to which the merg
Due to the mergeinfo propagation issues described earlier, it is very important to never merge changes into a sparse working copy. Always use a full checkout of the branch being merged into. For instance, when merging from HEAD to 7, use a full checkout of stable/7:
-[source,bash]
+[source,shell]
....
% cd stable/7
% svn up --set-depth=infinity
@@ -744,7 +744,7 @@ The target directory must also be up-to-date and must not contain any uncommitte
Identifying revisions to be merged is a must. If the target already has complete mergeinfo, ask SVN for a list:
-[source,bash]
+[source,shell]
....
% cd stable/6/contrib/openpam
% svn mergeinfo --show-revs=eligible $FSVN/head/contrib/openpam
@@ -767,7 +767,7 @@ For example, To merge:
Assuming that revisions $P and $Q have already been merged, and that the current directory is an up-to-date working copy of stable/$B, the existing mergeinfo looks like this:
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R $target
$target - /head/$source:$P,$Q
@@ -775,7 +775,7 @@ $target - /head/$source:$P,$Q
Merging is done like so:
-[source,bash]
+[source,shell]
....
% svn merge -c$R $FSVN/head/$source $target
....
@@ -784,7 +784,7 @@ Checking the results of this is possible with `svn diff`.
The svn:mergeinfo now looks like:
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R $target
$target - head/$source:$P,$Q,$R
@@ -798,14 +798,14 @@ As a practical example, consider this scenario. The changes to [.filename]#netma
The first step is to inspect the existing mergeinfo.
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R stable/9/shared/man/man4
....
Take a quick note of how it looks before moving on to the next step; doing the actual merge:
-[source,bash]
+[source,shell]
....
% svn merge -c r238987 svn+ssh://repo.freebsd.org/base/head/shared/man/man4 stable/9/shared/man/man4
--- Merging r238987 into 'stable/9/shared/man/man4':
@@ -817,7 +817,7 @@ U stable/9/shared/man/man4/netmap.4
Check that the revision number of the merged revision has been added. Once this is verified, the only thing left is the actual commit.
-[source,bash]
+[source,shell]
....
% svn commit stable/9/shared/man/man4
....
@@ -868,7 +868,7 @@ During the conversion from `CVS` to Subversion, vendor branches were imported wi
To flatten the `pf` tree:
-[source,bash]
+[source,shell]
....
% cd vendor/pf/dist/contrib/pf
% svn mv $(svn list) ../..
@@ -886,7 +886,7 @@ Tags may be flattened as well (3, 4, 3.5 etc.); the procedure is exactly the sam
The `dist` tree can be cleaned up as necessary. Disabling keyword expansion is recommended, as it makes no sense on unmodified vendor code and in some cases it can even be harmful. OpenSSH, for example, includes two files that originated with FreeBSD and still contain the original version tags. To do this:
-[source,bash]
+[source,shell]
....
% svn propdel svn:keywords -R .
% svn commit
@@ -896,7 +896,7 @@ The `dist` tree can be cleaned up as necessary. Disabling keyword expansion is r
If importing for the first time after the switch to Subversion, bootstrap `svn:mergeinfo` on the target directory in the main tree to the revision that corresponds to the last related change to the vendor tree, prior to importing new sources:
-[source,bash]
+[source,shell]
....
% cd head/contrib/pf
% svn merge --record-only svn+ssh://repo.freebsd.org/base/vendor/pf/dist@180876 .
@@ -913,7 +913,7 @@ Subversion is able to store a full distribution in the vendor tree. So, import e
A `svn add` is required to add any files that were added since the last vendor import, and `svn rm` is required to remove any that were removed since. Preparing sorted lists of the contents of the vendor tree and of the sources that are about to be imported is recommended, to facilitate the process.
-[source,bash]
+[source,shell]
....
% cd vendor/pf/dist
% svn list -R | grep -v '/$' | sort >../old
@@ -927,7 +927,7 @@ With these two files, `comm -23 ../old ../new` will list removed files (files on
Now, the sources must be copied into [.filename]#dist# and the `svn add` and `svn rm` commands are used as needed:
-[source,bash]
+[source,shell]
....
% cd vendor/pf/pf-4.3
% tar cf - . | tar xf - -C ../dist
@@ -946,7 +946,7 @@ Committing is now possible. However, it is good practice to make sure that every
Once committed, vendor releases are tagged for future reference. The best and quickest way to do this is directly in the repository:
-[source,bash]
+[source,shell]
....
% svn cp svn+ssh://repo.freebsd.org/base/vendor/pf/dist svn+ssh://repo.freebsd.org/base/vendor/pf/4.3
....
@@ -955,7 +955,7 @@ Once that is complete, `svn up` the working copy of [.filename]#vendor/pf# to ge
If creating the tag in the working copy of the tree, `svn:mergeinfo` results must be removed:
-[source,bash]
+[source,shell]
....
% cd vendor/pf
% svn cp dist 4.3
@@ -964,7 +964,7 @@ If creating the tag in the working copy of the tree, `svn:mergeinfo` results mus
===== Merging to Head
-[source,bash]
+[source,shell]
....
% cd head/contrib/pf
% svn up
@@ -978,7 +978,7 @@ The `--accept=postpone` tells Subversion not to complain about merge conflicts a
The `cvs2svn` changeover occurred on June 3, 2008. When performing vendor merges for packages which were already present and converted by the `cvs2svn` process, the command used to merge [.filename]#/vendor/package_name/dist# to [.filename]#/head/package_location# (for example, [.filename]#head/contrib/sendmail#) must use `-c _REV_` to indicate the revision to merge from the [.filename]#/vendor# tree. For example:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head/contrib/sendmail
% cd sendmail
@@ -997,7 +997,7 @@ It is necessary to resolve any merge conflicts.
Make sure that any files that were added or removed in the vendor tree have been properly added or removed in the main tree. To check diffs against the vendor branch:
-[source,bash]
+[source,shell]
....
% svn diff --no-diff-deleted --old=svn+ssh://repo.freebsd.org/base/vendor/pf/dist --new=.
....
@@ -1020,7 +1020,7 @@ This section is an example of importing and tagging byacc into [.filename]#head#
First, prepare the directory in [.filename]#vendor#:
-[source,bash]
+[source,shell]
....
% svn co --depth immediates $FSVN/vendor
% cd vendor
@@ -1030,7 +1030,7 @@ First, prepare the directory in [.filename]#vendor#:
Now, import the sources into the [.filename]#dist# directory. Once the files are in place, `svn add` the new ones, then `svn commit` and tag the imported version. To save time and bandwidth, direct remote committing and tagging is possible:
-[source,bash]
+[source,shell]
....
% svn cp -m "Tag byacc 20120115" $FSVN/vendor/byacc/dist $FSVN/vendor/byacc/20120115
....
@@ -1039,7 +1039,7 @@ Now, import the sources into the [.filename]#dist# directory. Once the files are
Due to this being a new file, copy it for the merge:
-[source,bash]
+[source,shell]
....
% svn cp -m "Import byacc to contrib" $FSVN/vendor/byacc/dist $FSVN/head/contrib/byacc
....
@@ -1051,7 +1051,7 @@ Working normally on newly imported sources is still possible.
Reverting a commit to a previous version is fairly easy:
-[source,bash]
+[source,shell]
....
% svn merge -r179454:179453 ROADMAP.txt
% svn commit
@@ -1059,7 +1059,7 @@ Reverting a commit to a previous version is fairly easy:
Change number syntax, with negative meaning a reverse change, can also be used:
-[source,bash]
+[source,shell]
....
% svn merge -c -179454 ROADMAP.txt
% svn commit
@@ -1067,7 +1067,7 @@ Change number syntax, with negative meaning a reverse change, can also be used:
This can also be done directly in the repository:
-[source,bash]
+[source,shell]
....
% svn merge -r179454:179453 svn+ssh://repo.freebsd.org/base/ROADMAP.txt
....
@@ -1079,7 +1079,7 @@ It is important to ensure that the mergeinfo is correct when reverting a file to
Reverting the deletion of a file is slightly different. Copying the version of the file that predates the deletion is required. For example, to restore a file that was deleted in revision N, restore version N-1:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/ROADMAP.txt@179454
% svn commit
@@ -1087,7 +1087,7 @@ Reverting the deletion of a file is slightly different. Copying the version of t
or, equally:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/ROADMAP.txt@179454 svn+ssh://repo.freebsd.org/base
....
@@ -1124,7 +1124,7 @@ One way to limit the time required is to grab a https://download.freebsd.org/ftp
Extract the file and update it:
-[source,bash]
+[source,shell]
....
% tar xf svnmirror-base-r261170.tar.xz
% svnsync sync file:///home/svnmirror/base
@@ -1134,7 +1134,7 @@ Now, set that up to run from man:cron[8], do checkouts locally, set up a svnserv
The seed mirror is set to fetch from `svn://svn.freebsd.org/base`. The configuration for the mirror is stored in `revprop 0` on the local mirror. To see the configuration, try:
-[source,bash]
+[source,shell]
....
% svn proplist -v --revprop -r 0 file:///home/svnmirror/base
....
@@ -1146,7 +1146,7 @@ Use `svn propset` to change things.
Files that have high-ASCII bits are considered binary files in SVN, so the pre-commit checks fail and indicate that the `mime-type` property should be set to `application/octet-stream`. However, the use of this is discouraged, so please do not set it. The best way is always avoiding high-ASCII data, so that it can be read everywhere with any text editor but if it is not avoidable, instead of changing the mime-type, set the `fbsd:notbinary` property with `propset`:
-[source,bash]
+[source,shell]
....
% svn propset fbsd:notbinary yes foo.data
....
@@ -1160,14 +1160,14 @@ As per https://people.FreeBSD.org/\~peter/svn_notes.txt[https://people.FreeBSD.o
To create a project branch:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/head svn+ssh://repo.freebsd.org/base/projects/spif
....
To merge changes from HEAD back into the project branch:
-[source,bash]
+[source,shell]
....
% cd copy_of_spif
% svn merge svn+ssh://repo.freebsd.org/base/head
@@ -1182,7 +1182,7 @@ In commit logs etc., "rev 179872" is spelled "r179872" as per convention.
Speeding up svn is possible by adding these entries to [.filename]#~/.ssh/config#:
-[source,bash]
+[source,shell]
....
Host *
ControlPath ~/.ssh/sockets/master-l-r@h:p
@@ -1192,14 +1192,14 @@ ControlPersist yes
and then typing
-[source,bash]
+[source,shell]
....
mkdir ~/.ssh/sockets
....
Checking out a working copy with a stock Subversion client without FreeBSD-specific patches (`OPTIONS_SET=FREEBSD_TEMPLATE`) will mean that `$FreeBSD$` tags will not be expanded. Once the correct version has been installed, trick Subversion into expanding them like so:
-[source,bash]
+[source,shell]
....
% svn propdel -R svn:keywords .
% svn revert -R .
@@ -1630,14 +1630,14 @@ There are several cases where approval is customary:
While under mentorship, get mentor approval before the commit. Enter the mentor's username in this field, and note that they are a mentor:
-[source,bash]
+[source,shell]
....
Approved by: username-of-mentor (mentor)
....
If a team approved these commits then include the team name followed by the username of the approver in parentheses. For example:
-[source,bash]
+[source,shell]
....
Approved by: re (username)
....
@@ -2226,7 +2226,7 @@ The easiest way to add a new port is the `addport` script located in the [.filen
Check the port, preferably to make sure it compiles and packages correctly. This is the recommended sequence:
-[source,bash]
+[source,shell]
....
# make install
# make package
@@ -2292,7 +2292,7 @@ Do not use `svn add` to add the port. Follow these steps. If they are unclear, o
====
. Figure out when the port was removed. Use this link:https://people.freebsd.org/~crees/removed_ports/index.xml[list], or look for the port on link:http://www.freshports.org/[freshports], and then copy the last living revision of the port:
+
-[source,bash]
+[source,shell]
....
% cd /usr/ports/category
% svn cp 'svn+ssh://repo.freebsd.org/ports/head/category/portname/@XXXXXX' portname
@@ -2302,7 +2302,7 @@ Pick the revision that is just before the removal. For example, if the revision
+
It is also possible to specify a date. In that case, pick a date that is before the removal but after the last commit to the port.
+
-[source,bash]
+[source,shell]
....
% cd /usr/ports/category
% svn cp 'svn+ssh://repo.freebsd.org/ports/head/category/portname/@{YYYY-MM-DD}' portname
@@ -2443,7 +2443,7 @@ Commits that are not covered by these blanket approvals always require explicit
A script is provided to automate merging a specific commit: [.filename]#ports/Tools/scripts/mfh#. It is used as follows:
-[source,bash]
+[source,shell]
....
% /usr/ports/Tools/scripts/mfh 380362
U 2015Q1
@@ -2519,7 +2519,7 @@ Host *.freebsd.org
====
The script is also able to merge more than one revision at a time. If there have been other updates to the port since the branch was created that have not been merged because they were not security related. Add the different revisions in the order they were committed on the `mfh` line. The new commit log message will contain the combined log messages from all the original commits. These messages must be edited to show what is actually being done with the new commit.
-[source,bash]
+[source,shell]
....
% /usr/ports/Tools/scripts/mfh r407208 r407713 r407722 r408567 r408943 r410728
....
@@ -2529,7 +2529,7 @@ The script is also able to merge more than one revision at a time. If there have
====
The mfh script can also take an optional first argument, the branch where the merge is being done. Only the latest quarterly branch is supported, so specifying the branch is discouraged. To be safe, the script will give a warning if the quarterly branch is not the latest:
-[source,bash]
+[source,shell]
....
% /usr/ports/Tools/scripts/mfh 2016Q1 r407208 r407713
/!\ The latest branch is 2016Q2, do you really want to commit to 2016Q1? [y/n]
diff --git a/documentation/content/en/articles/contributing/_index.adoc b/documentation/content/en/articles/contributing/_index.adoc
index f1856da3a2..11a6054351 100644
--- a/documentation/content/en/articles/contributing/_index.adoc
+++ b/documentation/content/en/articles/contributing/_index.adoc
@@ -123,14 +123,14 @@ Assuming that you can manage to secure fairly up-to-date sources to base your ch
The preferred man:diff[1] format for submitting patches is the unified output format generated by `diff -u`.
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
or
-[source,bash]
+[source,shell]
....
% diff -u -r -N olddir newdir
....
diff --git a/documentation/content/en/articles/cups/_index.adoc b/documentation/content/en/articles/cups/_index.adoc
index 47a02e1c18..c617d871ce 100644
--- a/documentation/content/en/articles/cups/_index.adoc
+++ b/documentation/content/en/articles/cups/_index.adoc
@@ -40,7 +40,7 @@ The main site for CUPS is http://www.cups.org/[http://www.cups.org/].
To install CUPS using a precompiled binary, issue the following command from a root terminal:
-[source,bash]
+[source,shell]
....
# pkg install cups
....
@@ -85,7 +85,7 @@ application/octet-stream
Once these changes have been made, the man:devfs[8] and CUPS systems must both be restarted, either by rebooting the computer or issuing the following two commands in a root terminal:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
# /usr/local/etc/rc.d/cupsd restart
diff --git a/documentation/content/en/articles/filtering-bridges/_index.adoc b/documentation/content/en/articles/filtering-bridges/_index.adoc
index 61afa89eef..a98bc5e6f1 100644
--- a/documentation/content/en/articles/filtering-bridges/_index.adoc
+++ b/documentation/content/en/articles/filtering-bridges/_index.adoc
@@ -105,7 +105,7 @@ If there are any problems, you should sort them out now before proceeding.
At this point, to enable the bridge, you have to execute the following commands (having the shrewdness to replace the names of the two network interfaces [.filename]#fxp0# and [.filename]#xl0# with your own ones):
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.config=fxp0:0,xl0:0
# sysctl net.link.ether.bridge.ipfw=1
diff --git a/documentation/content/en/articles/fonts/_index.adoc b/documentation/content/en/articles/fonts/_index.adoc
index 846046013f..7bb0e450ab 100644
--- a/documentation/content/en/articles/fonts/_index.adoc
+++ b/documentation/content/en/articles/fonts/_index.adoc
@@ -98,7 +98,7 @@ font8x8="iso-8x8" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
The command to actually switch the mode is man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
% vidcontrol VGA_80x60
....
@@ -121,7 +121,7 @@ X11 can use either the [.filename]#.pfa# or the [.filename]#.pfb# format fonts.
There is already a directory named [.filename]#Type1#. The most straight forward way to add a new font is to put it into this directory. A better way is to keep all new fonts in a separate directory and use a symbolic link to the additional font. This allows one to more easily keep track of ones fonts without confusing them with the fonts that were originally provided. For example:
-[source,bash]
+[source,shell]
....
Create a directory to contain the font files
% mkdir -p /usr/local/shared/fonts/type1
@@ -158,7 +158,7 @@ Now, to use a new font with X11, one must make the font file available and updat
A new name needs to be created for each new font. If you have some information from the documentation that accompanied the font, then it could serve as the basis for creating the name. If there is no information, then you can get some idea by using man:strings[1] on the font file. For example:
-[source,bash]
+[source,shell]
....
% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
@@ -189,7 +189,7 @@ end readonly def
Using this information, a possible name might be:
-[source,bash]
+[source,shell]
....
-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
....
@@ -219,7 +219,7 @@ proportional or monospaced. _Proportional_ is used since _isFixedPitch_ is false
All of these names are arbitrary, but one should strive to be compatible with the existing conventions. A font is referenced by name with possible wild cards by an X11 program, so the name chosen should make some sense. One might begin by simply using
-[source,bash]
+[source,shell]
....
...-normal-r-normal-...-p-...
....
@@ -227,7 +227,7 @@ as the name, and then use man:xfontsel[1] to examine it and adjust the name base
So, to complete our example:
-[source,bash]
+[source,shell]
....
Make the font accessible to X11
% cd /usr/X11R6/lib/X11/fonts/Type1
@@ -263,7 +263,7 @@ References: man:xfontsel[1], man:xset[1], The X Windows System in a Nutshell, ht
Ghostscript references a font via its [.filename]#Fontmap#. This must be modified in a similar way to the X11 [.filename]#fonts.dir#. Ghostscript can use either the [.filename]#.pfa# or the [.filename]#.pfb# format fonts. Using the font from the previous example, here is how to use it with Ghostscript:
-[source,bash]
+[source,shell]
....
Put the font in Ghostscript's font directory
% cd /usr/local/shared/ghostscript/fonts
@@ -303,7 +303,7 @@ Now that the new font can be used by both X11 and Ghostscript, how can one use t
The first tool is `afmtodit`. This is not normally installed, so it must be retrieved from the source distribution. I found I had to change the first line of the file, so I did:
-[source,bash]
+[source,shell]
....
% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
@@ -315,7 +315,7 @@ The first tool is `afmtodit`. This is not normally installed, so it must be retr
This tool will create the groff font file from the metrics file ([.filename]#.afm# suffix.) Continuing with our example:
-[source,bash]
+[source,shell]
....
Many .afm files are in Mac format... ^M delimited lines
We need to convert them to UNIX(R) style ^J delimited lines
@@ -332,7 +332,7 @@ The font can now be referenced with the name SHOWBOAT.
If Ghostscript is used to drive the printers on the system, then nothing more needs to be done. However, if true PostScript(R) printers are used, then the font must be downloaded to the printer in order for the font to be used (unless the printer happens to have the showboat font built in or on an accessible font disk.) The final step is to create a downloadable font. The `pfbtops` tool is used to create the [.filename]#.pfa# format of the font, and [.filename]#download# is modified to reference the new font. The [.filename]#download# must reference the internal name of the font. This can easily be determined from the groff font file as illustrated:
-[source,bash]
+[source,shell]
....
Create the .pfa font file
% pfbtops /usr/local/shared/fonts/type1/showboat.pfb >showboat.pfa
@@ -340,7 +340,7 @@ Create the .pfa font file
Of course, if [.filename]#.pfa# is already available, just use a symbolic link to reference it.
-[source,bash]
+[source,shell]
....
Get the internal font name
% fgrep internalname SHOWBOAT
@@ -355,7 +355,7 @@ Showboat showboat.pfa
To test the font:
-[source,bash]
+[source,shell]
....
% cd /tmp
% cat >example.t <<EOF
@@ -425,7 +425,7 @@ If you are paranoid about working in the [.filename]#/usr/src# tree, simply copy
In the work area, you will need to make the utility. Just type:
+
-[source,bash]
+[source,shell]
....
# make -f Makefile.sub afmtodit
....
@@ -436,7 +436,7 @@ Once all these utilities are in place, you are ready to commence:
. Create [.filename]#.afm# by typing:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -q -- ttf2pf.ps TTF_name PS_font_name AFM_name
....
@@ -447,7 +447,7 @@ This also produces a [.filename]#.pfa#, the ascii PostScript font metrics file (
+
For example, to convert the 30f9 Barcode font using the default file names, use the following command:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -458,7 +458,7 @@ Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
+
If you want the converted fonts to be stored in [.filename]#A.pfa# and [.filename]#B.afm#, then use this command:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -471,14 +471,14 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
Change directories to [.filename]#/usr/share/groff_font/devps# so as to make the following command easier to execute. You will probably need root privileges for this. (Or, if you are paranoid about working there, make sure you reference the files [.filename]#DESC#, [.filename]#text.enc# and [.filename]#generate/textmap# as being in this directory.)
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc file.afm generate/textmap PS_font_name
....
+
Where, [.filename]#file.afm# is the _AFM_name_ created by `ttf2pf.ps` above, and _PS_font_name_ is the font name used from that command, as well as the name that man:groff[1] will use for references to this font. For example, assuming you used the first `tiff2pf.ps` above, then the 3of9 Barcode font can be created using the command:
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc 3of9.afm generate/textmap 3of9
....
diff --git a/documentation/content/en/articles/freebsd-questions/_index.adoc b/documentation/content/en/articles/freebsd-questions/_index.adoc
index e4659e446d..a55ab8bda9 100644
--- a/documentation/content/en/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/en/articles/freebsd-questions/_index.adoc
@@ -160,7 +160,7 @@ There is a judgement call here, of course, but the output of the man:dmesg[8] co
* A lot of the information you need to supply is the output of programs, such as man:dmesg[8], or console messages, which usually appear in [.filename]#/var/log/messages#. Do not try to copy this information by typing it in again; it is a real pain, and you are bound to make a mistake. To send log file contents, either make a copy of the file and use an editor to trim the information to what is relevant, or cut and paste into your message. For the output of programs like man:dmesg[8], redirect the output to a file and include that. For example,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/en/articles/freebsd-releng/_index.adoc b/documentation/content/en/articles/freebsd-releng/_index.adoc
index a261876dd7..1de35c3235 100644
--- a/documentation/content/en/articles/freebsd-releng/_index.adoc
+++ b/documentation/content/en/articles/freebsd-releng/_index.adoc
@@ -346,7 +346,7 @@ See <<releng-building>> for information on building the `ALPHA` images.
When creating the {branchStable} branch, several changes are required in both the new {branchStable} branch and the {branchHead} branch. The files listed are relative to the repository root. To create the new {branchStablex} branch in Subversion:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
% svn cp ^/head {branchStablex}
....
@@ -365,7 +365,7 @@ Once the {branchStablex} branch has been committed, make the following edits:
|[.filename]#stable/12/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h#
a|
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
#ifndef MALLOC_PRODUCTION
#define MALLOC_PRODUCTION
@@ -504,7 +504,7 @@ Once this is done, the first set of `BETA` builds are started. Subsequent `BETA`
When the first `RC` (Release Candidate) build is ready to begin, the {branchReleng} branch is created. This is a multi-step process that must be done in a specific order, in order to avoid anomalies such as overlaps with `__FreeBSD_version` values, for example. The paths listed below are relative to the repository root. The order of commits and what to change are:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
% svn cp ^/{branchStablex} {branchRelengx}
....
@@ -537,7 +537,7 @@ When the first `RC` (Release Candidate) build is ready to begin, the {branchRele
|Add a new approvers line for the releng branch as was done for the stable branch
|===
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
% svn propdel -R svn:mergeinfo {branchRelengx}
% svn commit {branchRelengx}
@@ -569,7 +569,7 @@ Prior to FreeBSD 9.2-RELEASE, [.filename]#src/release/release.sh# was introduced
As a brief example of using [.filename]#src/release/release.sh# to build a single release in [.filename]#/scratch#:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# /bin/sh /usr/src/release/release.sh
....
@@ -587,7 +587,7 @@ KERNEL="GENERIC64"
Then invoke [.filename]#src/release/release.sh# as:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# /bin/sh /usr/src/release/release.sh -c $HOME/release.conf
....
@@ -641,7 +641,7 @@ As [.filename]#thermite.sh# iterates through the master list of combinations and
Assuming these filesystem paths, [.filename]#thermite.sh# would be invoked as:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# cd /releng/scripts-snapshot/scripts
# ./setrev.sh -b {branchStablex}
@@ -651,7 +651,7 @@ Assuming these filesystem paths, [.filename]#thermite.sh# would be invoked as:
Once the builds have completed, additional helper scripts are available to generate development snapshot emails which are sent to the `freebsd-snapshots@freebsd.org` mailing list:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# cd /releng/scripts-snapshot/scripts
# ./get-checksums.sh -c ./builds-12.conf | ./generate-email.pl > snapshot-12-mail
@@ -698,7 +698,7 @@ In preparation for the release build, several files need to be updated:
After building the final `RELEASE`, the {branchRelengx} branch is tagged as {branchReleasex} using the revision from which the `RELEASE` was built. Similar to creating the {branchStablex} and {branchRelengx} branches, this is done with `svn cp`. From the repository root:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
% svn cp ^/{branchRelengx}@r306420 {branchReleasex}
% svn commit {branchReleasex}
@@ -718,7 +718,7 @@ Staging FreeBSD snapshots and releases is a two part process:
+
If `EVERYTHINGISFINE` is defined in the build configuration files, [.filename]#main.conf# in the case of the build scripts referenced above, this happens automatically in the after the build is complete, creating the directory structure in [.filename]#${DESTDIR}/R/ftp-stage# with a path structure matching what is expected on `ftp-master`. This is equivalent to running the following in the directly:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# make -C /usr/src/release -f Makefile.mirrors EVERYTHINGISFINE=1 ftp-stage
....
@@ -752,7 +752,7 @@ As with the staging steps, this requires `root` level access, as this step must
As the `archive` user:
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
% cd /archive/tmp/snapshots
% pax -r -w -l . /archive/pub/FreeBSD/snapshots
diff --git a/documentation/content/en/articles/freebsd-update-server/_index.adoc b/documentation/content/en/articles/freebsd-update-server/_index.adoc
index 3f0329833d..99d7aa1449 100644
--- a/documentation/content/en/articles/freebsd-update-server/_index.adoc
+++ b/documentation/content/en/articles/freebsd-update-server/_index.adoc
@@ -61,7 +61,7 @@ At a minimum, updates require building on a FreeBSD release greater than or equa
Download the https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] software by installing package:devel/subversion[] and package:security/ca_root_nss[], and execute:
-[source,bash]
+[source,shell]
....
% svn co https://svn.freebsd.org/base/user/cperciva/freebsd-update-build freebsd-update-server
....
@@ -102,7 +102,7 @@ Customizations to the `fetchiso()` code can be installed by copying the default
<.> The name of the build host. This information will be displayed on updated systems when issuing:
+
-[source,bash]
+[source,shell]
....
% uname -v
....
@@ -120,7 +120,7 @@ The default [.filename]#build.conf# shipped with the freebsd-update-server sourc
====
. Create a build environment for amd64:
+
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/scripts/7.2-RELEASE/amd64
....
@@ -145,7 +145,7 @@ export EOL=1275289200 <.>
<.> The man:sha256[1] hash key for the desired release, is published within the respective link:https://www.FreeBSD.org/releases/[release announcement].
<.> To generate the "End of Life" number for [.filename]#build.conf#, refer to the "Estimated EOL" posted on the link:https://www.FreeBSD.org/security/security/[FreeBSD Security Website]. The value of `EOL` can be derived from the date listed on the web site, using the man:date[1] utility, for example:
+
-[source,bash]
+[source,shell]
....
% date -j -f '%Y%m%d-%H%M%S' '20090401-000000' '+%s'
....
@@ -156,7 +156,7 @@ export EOL=1275289200 <.>
The first step is to run [.filename]#scripts/make.sh#. This will build some binaries, create directories, and generate an RSA signing key used for approving builds. In this step, a passphrase will have to be supplied for the final creation of the signing key.
-[source,bash]
+[source,shell]
....
# sh scripts/make.sh
cc -O2 -fno-strict-aliasing -pipe findstamps.c -o findstamps
@@ -186,7 +186,7 @@ Keep a note of the generated key fingerprint. This value is required in [.filena
At this point, we are ready to stage a build.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/init.sh amd64 7.2-RELEASE
@@ -194,7 +194,7 @@ At this point, we are ready to stage a build.
What follows is a sample of an _initial_ build run.
-[source,bash]
+[source,shell]
....
# sh scripts/init.sh amd64 7.2-RELEASE
Mon Aug 24 16:04:36 PDT 2009 Starting fetch for FreeBSD/amd64 7.2-RELEASE
@@ -244,7 +244,7 @@ Then the build of the world is performed again, with world patches. A more detai
During this second build cycle, the network time protocol daemon, man:ntpd[8], is turned off. Per `{cperciva}`, Security Officer Emeritus of FreeBSD, "the https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] build code needs to identify timestamps which are stored in files so that they can be ignored when comparing builds to determine which files need to be updated. This timestamp-finding works by doing two builds 400 days apart and comparing the results."
====
-[source,bash]
+[source,shell]
....
Mon Aug 24 17:54:07 PDT 2009 Extracting world+src for FreeBSD/amd64 7.2-RELEASE
Wed Sep 29 00:54:34 UTC 2010 Building world for FreeBSD/amd64 7.2-RELEASE
@@ -283,7 +283,7 @@ world|base|/usr/lib/libalias_ftp.a
Finally, the build completes.
-[source,bash]
+[source,shell]
....
Values of build stamps, excluding library archive headers:
v1.2 (Aug 25 2009 00:40:36)
@@ -321,13 +321,13 @@ to sign the release.
Approve the build if everything is correct. More information on determining this can be found in the distributed source file named [.filename]#USAGE#. Execute [.filename]#scripts/approve.sh#, as directed. This will sign the release, and move components into a staging area suitable for uploading.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/mountkey.sh
....
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.2-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.2-RELEASE
@@ -339,7 +339,7 @@ Wed Aug 26 12:50:07 PDT 2009 Cleaning staging area for FreeBSD/amd64 7.2-RELEASE
After the approval process is complete, the upload procedure may be started.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.2-RELEASE
@@ -349,7 +349,7 @@ After the approval process is complete, the upload procedure may be started.
====
In the event update code needs to be re-uploaded, this may be done by changing to the public distributions directory for the target release and updating attributes of the _uploaded_ file.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server/pub/7.2-RELEASE/amd64
# touch -t 200801010101.01 uploaded
@@ -382,7 +382,7 @@ A couple of assumptions are made for a different release build:
Create the patch directory of the respective release under [.filename]#/usr/local/freebsd-update-server/patches/#.
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/patches/7.1-RELEASE/
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE
@@ -392,7 +392,7 @@ As an example, take the patch for man:named[8]. Read the advisory, and grab the
In the https://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.asc[security brief], this advisory is called `SA-09:12.bind`. After downloading the file, it is required to rename the file to an appropriate patch level. It is suggested to keep this consistent with official FreeBSD patch levels, but its name may be freely chosen. For this build, let us follow the currently established practice of FreeBSD and call this `p7`. Rename the file:
-[source,bash]
+[source,shell]
....
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE/; mv bind.patch 7-SA-09:12.bind
....
@@ -412,7 +412,7 @@ It is up to the administrator of the FreeBSD Update Server to take appropriate m
At this point, a _diff_ is ready to be built. The software checks first to see if a [.filename]#scripts/init.sh# has been run on the respective release prior to running the diff build.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/diff.sh amd64 7.1-RELEASE 7
@@ -420,7 +420,7 @@ At this point, a _diff_ is ready to be built. The software checks first to see i
What follows is a sample of a _differential_ build run.
-[source,bash]
+[source,shell]
....
# sh -e scripts/diff.sh amd64 7.1-RELEASE 7
Wed Aug 26 10:09:59 PDT 2009 Extracting world+src for FreeBSD/amd64 7.1-RELEASE-p7
@@ -497,7 +497,7 @@ Wed Aug 26 17:20:39 UTC 2009
Updates are printed, and approval is requested.
-[source,bash]
+[source,shell]
....
New updates:
kernel|generic|/GENERIC/kernel.symbols|f|0|0|0555|0|7c8dc176763f96ced0a57fc04e7c1b8d793f27e006dd13e0b499e1474ac47e10|
@@ -519,7 +519,7 @@ to sign the build.
Follow the same process as noted before for approving a build:
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.1-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.1-RELEASE
@@ -537,7 +537,7 @@ the new builds.
After approving the build, upload the software:
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.1-RELEASE
diff --git a/documentation/content/en/articles/gjournal-desktop/_index.adoc b/documentation/content/en/articles/gjournal-desktop/_index.adoc
index f171a2bf87..42a6e3e4df 100644
--- a/documentation/content/en/articles/gjournal-desktop/_index.adoc
+++ b/documentation/content/en/articles/gjournal-desktop/_index.adoc
@@ -159,28 +159,28 @@ When the system comes up again, we will be ready to configure journaling.
Having prepared all the required partitions, it is quite easy to configure journaling. We will need to switch to single user mode, so login as `root` and type:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Press kbd:[Enter] to get the default shell. We will need to unmount the partitions that will be journaled, in our example [.filename]#/usr# and [.filename]#/var#:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Load the module required for journaling:
-[source,bash]
+[source,shell]
....
# gjournal load
....
Now, use your notes to determine which partition will be used for each journal. In our example, [.filename]#/usr# is [.filename]#ad0s1f# and its journal will be [.filename]#ad0s1g#, while [.filename]#/var# is [.filename]#ad0s1d# and will be journaled to [.filename]#ad0s1h#. The following commands are required:
-[source,bash]
+[source,shell]
....
# gjournal label ad0s1f ad0s1g
GEOM_JOURNAL: Journal 2948326772: ad0s1f contains data.
@@ -195,7 +195,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
====
If the last sector of either partition is used, `gjournal` will return an error. You will have to run the command using the `-f` flag to force an overwrite, i.e.:
-[source,bash]
+[source,shell]
....
# gjournal label -f ad0s1d ad0s1h
....
@@ -205,7 +205,7 @@ Since this is a new installation, it is highly unlikely that anything will be ac
At this point, two new devices are created, namely [.filename]#ad0s1d.journal# and [.filename]#ad0s1f.journal#. These represent the [.filename]#/var# and [.filename]#/usr# partitions we have to mount. Before mounting, we must however set the journal flag on them and clear the Soft Updates flag:
-[source,bash]
+[source,shell]
....
# tunefs -J enable -n disable ad0s1d.journal
tunefs: gjournal set
@@ -218,7 +218,7 @@ tunefs: soft updates cleared
Now, mount the new devices manually at their respective places (note that we can now use the `async` mount option):
-[source,bash]
+[source,shell]
....
# mount -o async /dev/ad0s1d.journal /var
# mount -o async /dev/ad0s1f.journal /usr
@@ -247,7 +247,7 @@ geom_journal_load="YES"
Congratulations! Your system is now set for journaling. You can either type `exit` to return to multi-user mode, or reboot to test your configuration (recommended). During the boot you will see messages like the following:
-[source,bash]
+[source,shell]
....
ad0: 76293MB XEC XE800JD-00HBC0 08.02D08 at ata0-master SATA150
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -260,7 +260,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
After an unclean shutdown, the messages will vary slightly, i.e.:
-[source,bash]
+[source,shell]
....
GEOM_JOURNAL: Journal ad0s1d consistent.
....
@@ -272,7 +272,7 @@ This usually means that man:gjournal[8] used the information in the journal prov
While the above procedure is necessary for journaling partitions that already contain data, journaling an empty partition is somewhat easier, since both the data and the journal provider can be stored in the same partition. For example, assume a new disk was installed, and a new partition [.filename]#/dev/ad1s1d# was created. Creating the journal would be as simple as:
-[source,bash]
+[source,shell]
....
# gjournal label ad1s1d
....
@@ -281,14 +281,14 @@ The journal size will be 1 GB by default. You may adjust it by using the `-s` op
For example, to create a 2 GB journal, you could use the following command:
-[source,bash]
+[source,shell]
....
# gjournal label -s 2G ad1s1d
....
You can then create a file system on your new partition, and enable journaling using the `-J` option:
-[source,bash]
+[source,shell]
....
# newfs -J /dev/ad1s1d.journal
....
@@ -322,14 +322,14 @@ The journal probably fills up before it has a chance to get committed (flushed)
You either forgot (or misspelled) the entry in [.filename]#/boot/loader.conf#, or there are errors in your [.filename]#/etc/fstab# file. These are usually easy to fix. Press kbd:[Enter] to get to the default single user shell. Then locate the root of the problem:
-[source,bash]
+[source,shell]
....
# cat /boot/loader.conf
....
If the `geom_journal_load` entry is missing or misspelled, the journaled devices are never created. Load the module manually, mount all partitions, and continue with multi-user boot:
-[source,bash]
+[source,shell]
....
# gjournal load
@@ -353,28 +353,28 @@ Sure. Use the following procedure, which reverses the changes. The partitions yo
Login as `root` and switch to single user mode:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Unmount the journaled partitions:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Synchronize the journals:
-[source,bash]
+[source,shell]
....
# gjournal sync
....
Stop the journaling providers:
-[source,bash]
+[source,shell]
....
# gjournal stop ad0s1d.journal
# gjournal stop ad0s1f.journal
@@ -382,7 +382,7 @@ Stop the journaling providers:
Clear journaling metadata from all the devices used:
-[source,bash]
+[source,shell]
....
# gjournal clear ad0s1d
# gjournal clear ad0s1f
@@ -392,7 +392,7 @@ Clear journaling metadata from all the devices used:
Clear the file system journaling flag, and restore the Soft Updates flag:
-[source,bash]
+[source,shell]
....
# tunefs -J disable -n enable ad0s1d
tunefs: gjournal cleared
@@ -405,7 +405,7 @@ tunefs: soft updates set
Remount the old devices by hand:
-[source,bash]
+[source,shell]
....
# mount -o rw /dev/ad0s1d /var
# mount -o rw /dev/ad0s1f /usr
diff --git a/documentation/content/en/articles/hubs/_index.adoc b/documentation/content/en/articles/hubs/_index.adoc
index 0ff5ca9f01..dde2707a58 100644
--- a/documentation/content/en/articles/hubs/_index.adoc
+++ b/documentation/content/en/articles/hubs/_index.adoc
@@ -140,7 +140,7 @@ Since the number of rsync clients will have a significant impact on the server m
A command line to mirror FreeBSD might look like:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://ftp4.de.FreeBSD.org/FreeBSD/ /pub/FreeBSD/
....
@@ -154,7 +154,7 @@ The FreeBSD website should only be mirrored via rsync.
A command line to mirror the FreeBSD web site might look like:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/local/www/
....
@@ -164,14 +164,14 @@ A command line to mirror the FreeBSD web site might look like:
Due to very high requirements of bandwidth, storage and adminstration the FreeBSD Project has decided not to allow public mirrors of packages. For sites with lots of machines, it might be advantagous to run a caching HTTP proxy for the man:pkg[8] process. Alternatively specific packages and their dependencies can be fetched by running something like the following:
-[source,bash]
+[source,shell]
....
% pkg fetch -d -o /usr/local/mirror vim
....
Once those packages have been fetched, the repository metadata must be generated by running:
-[source,bash]
+[source,shell]
....
% pkg repo /usr/local/mirror
....
diff --git a/documentation/content/en/articles/ipsec-must/_index.adoc b/documentation/content/en/articles/ipsec-must/_index.adoc
index d0bc249f6a..f4107c2ae6 100644
--- a/documentation/content/en/articles/ipsec-must/_index.adoc
+++ b/documentation/content/en/articles/ipsec-must/_index.adoc
@@ -55,7 +55,7 @@ We also need a way to capture the raw network data. A program called man:tcpdump
The command:
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -74,7 +74,7 @@ Here is the experiment:
. In the "secure" window, run the UNIX(R) command man:yes[1], which will stream the `y` character. After a while, stop this. Switch to the insecure window, and repeat. After a while, stop.
. Now run <<code>> on the captured packets. You should see something like the following. The important thing to note is that the secure connection has 93% (6.7) of the expected value (7.18), and the "normal" connection has 29% (2.1) of the expected value.
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
% uliscan ipsecdemo.bin
diff --git a/documentation/content/en/articles/ldap-auth/_index.adoc b/documentation/content/en/articles/ldap-auth/_index.adoc
index 5f1ab43eb0..96d550c2f5 100644
--- a/documentation/content/en/articles/ldap-auth/_index.adoc
+++ b/documentation/content/en/articles/ldap-auth/_index.adoc
@@ -63,7 +63,7 @@ First, install OpenLDAP:
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/net/openldap24-server
# make install clean
@@ -111,7 +111,7 @@ The [.filename]#cert.crt#, [.filename]#cert.key#, and [.filename]#cacert.crt# fi
[example]
====
-[source,bash]
+[source,shell]
....
% openssl genrsa -out cert.key 1024
Generating RSA private key, 1024 bit long modulus
@@ -133,7 +133,7 @@ Finally, the certificate signing request needs to be signed:
[example]
====
-[source,bash]
+[source,shell]
....
% openssl x509 -req -in cert.csr -days 365 -signkey cert.key -out cert.crt
Signature ok
@@ -154,7 +154,7 @@ slapd_enable="YES"
Then run `/usr/local/etc/rc.d/slapd start`. This should start OpenLDAP. Confirm that it is listening on 389 with
-[source,bash]
+[source,shell]
....
% sockstat -4 -p 389
ldap slapd 3261 7 tcp4 *:389 *:*
@@ -288,14 +288,14 @@ With this set, package:security/pam_ldap[] will search the entire LDAP directory
Users whose shell is not in [.filename]#/etc/shells# will not be able to log in. This is particularly important when Bash is set as the user shell on the LDAP server. Bash is not included with a default installation of FreeBSD. When installed from a package or port, it is located at [.filename]#/usr/local/bin/bash#. Verify that the path to the shell on the server is set correctly:
-[source,bash]
+[source,shell]
....
% getent passwd username
....
There are two choices when the output shows `/bin/bash` in the last column. The first is to change the user's entry on the LDAP server to [.filename]#/usr/local/bin/bash#. The second option is to create a symlink on the LDAP client computer so Bash is found at the correct location:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/bin/bash /bin/bash
....
@@ -431,7 +431,7 @@ ldappasswd -D uid="$USER",ou=people,dc=example,dc=org \
This script does hardly any error checking, but more important it is very cavalier about how it stores your passwords. If you do anything like this, at least adjust the `security.bsd.see_other_uids` sysctl value:
-[source,bash]
+[source,shell]
....
# sysctl security.bsd.see_other_uids=0
....
@@ -643,7 +643,7 @@ To create a certificate authority, we simply need a self-signed certificate and
[example]
====
-[source,bash]
+[source,shell]
....
% openssl genrsa -out root.key 1024
% openssl req -new -key root.key -out root.csr
@@ -668,7 +668,7 @@ To sign the key, use `-CA` and `-CAkey` instead of `-signkey`:
[example]
====
-[source,bash]
+[source,shell]
....
% openssl x509 -req -days 1024 \
-in ldap-server-one.csr -CA root.crt -CAkey root.key \
diff --git a/documentation/content/en/articles/leap-seconds/_index.adoc b/documentation/content/en/articles/leap-seconds/_index.adoc
index 4a0f3543a7..1a1b8e43f7 100644
--- a/documentation/content/en/articles/leap-seconds/_index.adoc
+++ b/documentation/content/en/articles/leap-seconds/_index.adoc
@@ -59,7 +59,7 @@ Please try to make sure nothing horrible happens because of the leap second.
It is possible to test whether a leap second will be used. Due to the nature of NTP, the test might work up to 24 hours before the leap second. Some major reference clock sources only announce leap seconds one hour ahead of the event. Query the NTP daemon:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/en/articles/linux-users/_index.adoc b/documentation/content/en/articles/linux-users/_index.adoc
index bcfacd562d..7f298494a8 100644
--- a/documentation/content/en/articles/linux-users/_index.adoc
+++ b/documentation/content/en/articles/linux-users/_index.adoc
@@ -67,7 +67,7 @@ A complete list of all available ports and packages can be found https://www.fre
Packages are pre-compiled applications, the FreeBSD equivalents of [.filename]#.deb# files on Debian/Ubuntu based systems and [.filename]#.rpm# files on Red Hat/Fedora based systems. Packages are installed using `pkg`. For example, the following command installs Apache 2.4:
-[source,bash]
+[source,shell]
....
# pkg install apache24
....
@@ -83,7 +83,7 @@ The Ports Collection, sometimes referred to as the ports tree, can be installed
To compile a port, change to the port's directory and start the build process. The following example installs Apache 2.4 from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make install clean
@@ -91,7 +91,7 @@ To compile a port, change to the port's directory and start the build process. T
A benefit of using ports to install software is the ability to customize the installation options. This example specifies that the mod_ldap module should also be installed:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make WITH_LDAP="YES" install clean
@@ -123,7 +123,7 @@ apache24_flags="-DSSL"
Once a service has been enabled in [.filename]#/etc/rc.conf#, it can be started without rebooting the system:
-[source,bash]
+[source,shell]
....
# service sshd start
# service apache24 start
@@ -131,7 +131,7 @@ Once a service has been enabled in [.filename]#/etc/rc.conf#, it can be started
If a service has not been enabled, it can be started from the command line using `onestart`:
-[source,bash]
+[source,shell]
....
# service sshd onestart
....
@@ -141,7 +141,7 @@ If a service has not been enabled, it can be started from the command line using
Instead of a generic _ethX_ identifier that Linux(R) uses to identify a network interface, FreeBSD uses the driver name followed by a number. The following output from man:ifconfig[8] shows two Intel(R) Pro 1000 network interfaces ([.filename]#em0# and [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -240,7 +240,7 @@ In some Linux(R) distributions, one could look at [.filename]#/proc/sys/net/ipv4
For example, use the following to determine if IP forwarding is enabled on a FreeBSD system:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -248,14 +248,14 @@ net.inet.ip.forwarding: 0
Use `-a` to list all the system settings:
-[source,bash]
+[source,shell]
....
% sysctl -a | more
....
If an application requires procfs, add the following entry to [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -264,7 +264,7 @@ Including `noauto` will prevent [.filename]#/proc# from being automatically moun
To mount the file system without rebooting:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/en/articles/mailing-list-faq/_index.adoc b/documentation/content/en/articles/mailing-list-faq/_index.adoc
index c35f2a3516..57b081a596 100644
--- a/documentation/content/en/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/en/articles/mailing-list-faq/_index.adoc
@@ -106,7 +106,7 @@ Try not to use MIME: a lot of people use mailers which do not get on very well w
* Make sure your time and time zone are set correctly. This may seem a little silly, since your message still gets there, but many of the people on these mailing lists get several hundred messages a day. They frequently sort the incoming messages by subject and by date, and if your message does not come before the first answer, they may assume that they missed it and not bother to look.
* A lot of the information you need to supply is the output of programs, such as man:dmesg[8], or console messages, which usually appear in [.filename]#/var/log/messages#. Do not try to copy this information by typing it in again; not only it is a real pain, but you are bound to make a mistake. To send log file contents, either make a copy of the file and use an editor to trim the information to what is relevant, or cut and paste into your message. For the output of programs like `dmesg`, redirect the output to a file and include that. For example,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/en/articles/nanobsd/_index.adoc b/documentation/content/en/articles/nanobsd/_index.adoc
index 92be6555be..dc9d406b36 100644
--- a/documentation/content/en/articles/nanobsd/_index.adoc
+++ b/documentation/content/en/articles/nanobsd/_index.adoc
@@ -61,7 +61,7 @@ The configuration file partition persists under the [.filename]#/cfg# directory.
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -85,7 +85,7 @@ A NanoBSD image is built using a simple [.filename]#nanobsd.sh# shell script, wh
The necessary commands to build a NanoBSD image are:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -155,7 +155,7 @@ This is probably the most important and most interesting feature of NanoBSD. Thi
Invocation of the following command will force the [.filename]#nanobsd.sh# to read its configuration from [.filename]#myconf.nano# located in the current directory:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -350,7 +350,7 @@ According to which services are available on host serving new NanoBSD image and
If the transfer speed is in first place, use this example:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -360,7 +360,7 @@ get _.disk.image "| sh updatep1"
If a secure transfer is preferred, consider using this example:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -373,7 +373,7 @@ Try this example if the remote host is not running neither man:ftpd[8] or man:ss
====
. At first, open a TCP listener on host serving the image and make it send the image to client:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -384,7 +384,7 @@ Make sure that the used port is not blocked to receive incoming connections from
======
. Connect to the host serving new image and execute [.filename]#updatep1# script:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/en/articles/new-users/_index.adoc b/documentation/content/en/articles/new-users/_index.adoc
index 3a92092e5f..0b425893d2 100644
--- a/documentation/content/en/articles/new-users/_index.adoc
+++ b/documentation/content/en/articles/new-users/_index.adoc
@@ -33,7 +33,7 @@ Log in (when you see `login:`) as a user you created during installation or as `
To log out (and get a new `login:` prompt) type
-[source,bash]
+[source,shell]
....
# exit
....
@@ -42,21 +42,21 @@ as often as necessary. Yes, press kbd:[enter] after commands, and remember that
To shut down the machine type
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
Or to reboot type
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
or
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -68,7 +68,7 @@ You can also reboot with kbd:[Ctrl+Alt+Delete]. Give it a little time to do its
If you did not create any users when you installed the system and are thus logged in as `root`, you should probably create a user now with
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -77,7 +77,7 @@ The first time you use `adduser`, it might ask for some defaults to save. You mi
Suppose you create a user `jack` with full name _Jack Benimble_. Give `jack` a password if security (even kids around who might pound on the keyboard) is an issue. When it asks you if you want to invite `jack` into other groups, type `wheel`
-[source,bash]
+[source,shell]
....
Login group is "jack". Invite jack into other groups: wheel
....
@@ -155,7 +155,7 @@ You might want to try using `whatis` on some common useful commands like `cat`,
Are some of these not working very well? Both man:locate[1] and man:whatis[1] depend on a database that is rebuilt weekly. If your machine is not going to be left on over the weekend (and running FreeBSD), you might want to run the commands for daily, weekly, and monthly maintenance now and then. Run them as `root` and, for now, give each one time to finish before you start the next one.
-[source,bash]
+[source,shell]
....
# periodic daily
output omitted
@@ -176,14 +176,14 @@ To configure your system, you need to edit text files. Most of them will be in t
Before you edit a file, you should probably back it up. Suppose you want to edit [.filename]#/etc/rc.conf#. You could just use `cd /etc` to get to the [.filename]#/etc# directory and do:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
This would copy [.filename]#rc.conf# to [.filename]#rc.conf.orig#, and you could later copy [.filename]#rc.conf.orig# to [.filename]#rc.conf# to recover the original. But even better would be moving (renaming) and then copying back:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -191,7 +191,7 @@ This would copy [.filename]#rc.conf# to [.filename]#rc.conf.orig#, and you could
because `mv` preserves the original date and owner of the file. You can now edit [.filename]#rc.conf#. If you want the original back, you would then `mv rc.conf rc.conf.myedit` (assuming you want to preserve your edited version) and then
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -200,7 +200,7 @@ to put things back the way they were.
To edit a file, type
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -275,7 +275,7 @@ manual page on the UNIX(R) filesystem
Use `find` to locate [.filename]#filename# in [.filename]#/usr# or any of its subdirectories with
-[source,bash]
+[source,shell]
....
% find /usr -name "filename"
....
@@ -293,7 +293,7 @@ If you find the handbook too sophisticated (what with `lndir` and all) on instal
Find the port you want, say `kermit`. There will be a directory for it on the CDROM. Copy the subdirectory to [.filename]#/usr/local# (a good place for software you add that should be available to all users) with:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -304,7 +304,7 @@ Next, create the directory [.filename]#/usr/ports/distfiles# if it does not alre
Then `cd` to the subdirectory of [.filename]#/usr/local/kermit# that has the file [.filename]#Makefile#. Type
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/en/articles/pam/_index.adoc b/documentation/content/en/articles/pam/_index.adoc
index 0e21c71959..36a2feb139 100644
--- a/documentation/content/en/articles/pam/_index.adoc
+++ b/documentation/content/en/articles/pam/_index.adoc
@@ -92,7 +92,7 @@ This section aims to illustrate the meanings of some of the terms defined above
This simple example shows `alice` man:su[1]'ing to `root`.
-[source,bash]
+[source,shell]
....
% whoami
alice
@@ -116,7 +116,7 @@ root
The example below shows `eve` try to initiate an man:ssh[1] connection to `login.example.com`, ask to log in as `bob`, and succeed. Bob should have chosen a better password!
-[source,bash]
+[source,shell]
....
% whoami
eve
@@ -289,7 +289,7 @@ auth required pam_nologin.so no_warn
As a consequence of this simplified syntax, it is possible to use the same policy for multiple services by linking each service name to a same policy file. For instance, to use the same policy for the `su` and `sudo` services, one could do as follows:
-[source,bash]
+[source,shell]
....
# cd /etc/pam.d
# ln -s su sudo
diff --git a/documentation/content/en/articles/rc-scripting/_index.adoc b/documentation/content/en/articles/rc-scripting/_index.adoc
index 7bd655e21d..4f72531606 100644
--- a/documentation/content/en/articles/rc-scripting/_index.adoc
+++ b/documentation/content/en/articles/rc-scripting/_index.adoc
@@ -87,7 +87,7 @@ Things to note are:
&#10122; An interpreted script should begin with the magic "shebang" line. That line specifies the interpreter program for the script. Due to the shebang line, the script can be invoked exactly like a binary program provided that it has the execute bit set. (See man:chmod[1].) For example, a system admin can run our script manually, from the command line:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
....
@@ -187,7 +187,7 @@ While examining [.filename]#rc.d# scripts, keep in mind that man:sh[1] defers th
====
You can make man:rc.subr[8] act as though the knob is set to `ON`, irrespective of its current setting, by prefixing the argument to the script with `one` or `force`, as in `onestart` or `forcestop`. Keep in mind though that `force` has other dangerous effects we will touch upon below, while `one` just overrides the ON/OFF knob. E.g., assume that `dummy_enable` is `OFF`. The following command will run the `start` method in spite of the setting:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy onestart
....
@@ -365,7 +365,7 @@ Non-standard commands are not invoked during startup or shutdown. Usually they a
The full list of available commands can be found in the usage line printed by man:rc.subr[8] when the script is invoked without arguments. For example, here is the usage line from the script under study:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mumbled
Usage: /etc/rc.d/mumbled [fast|force|one](start|stop|restart|rcvar|reload|plugh|xyzzy|status|poll)
@@ -550,7 +550,7 @@ What essential changes can we notice in the script?
&#10122; All arguments you type after `start` can end up as positional parameters to the respective method. We can use them in any way according to our task, skills, and fancy. In the current example, we just pass all of them to man:echo[1] as one string in the next line - note `$*` within the double quotes. Here is how the script can be invoked now:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
Nothing started.
@@ -561,7 +561,7 @@ Greeting message: Hello world!
&#10123; The same applies to any method our script provides, not only to a standard one. We have added a custom method named `kiss`, and it can take advantage of the extra arguments not less than `start` does. E.g.:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy kiss
A ghost gives you a kiss.
diff --git a/documentation/content/en/articles/releng/_index.adoc b/documentation/content/en/articles/releng/_index.adoc
index defabd5af4..1c5742fa39 100644
--- a/documentation/content/en/articles/releng/_index.adoc
+++ b/documentation/content/en/articles/releng/_index.adoc
@@ -126,21 +126,21 @@ In all examples below, `$FSVN` refers to the location of the FreeBSD Subversion
The layout of FreeBSD branches in Subversion is described in the link:{committers-guide}#subversion-primer-base-layout[Committer's Guide]. The first step in creating a branch is to identify the revision of the `stable/_X_` sources that you want to branch _from_.
-[source,bash]
+[source,shell]
....
# svn log -v $FSVN/stable/9
....
The next step is to create the _release branch_
-[source,bash]
+[source,shell]
....
# svn cp $FSVN/stable/9@REVISION $FSVN/releng/9.2
....
This branch can be checked out:
-[source,bash]
+[source,shell]
....
# svn co $FSVN/releng/9.2 src
....
@@ -211,7 +211,7 @@ Additionally, update the "BSD Family Tree" file:
When the final release is ready, the following command will create the `release/9.2.0` tag.
-[source,bash]
+[source,shell]
....
# svn cp $FSVN/releng/9.2 $FSVN/release/9.2.0
....
@@ -229,7 +229,7 @@ FreeBSD "releases" can be built by anyone with a fast machine and access to a so
man:release[7] documents the exact commands required to build a FreeBSD release. The following sequences of commands can build an 9.2.0 release:
-[source,bash]
+[source,shell]
....
# cd /usr/src/release
# sh generate-release.sh release/9.2.0 /local3/release
@@ -268,7 +268,7 @@ The https://www.FreeBSD.org/ports[FreeBSD Ports collection] is a collection of o
Starting with FreeBSD 4.4, the FreeBSD Project decided to release all four ISO images that were previously sold on the _BSDi/Wind River Systems/FreeBSD Mall_ "official" CDROM distributions. Each of the four discs must contain a [.filename]#README.TXT# file that explains the contents of the disc, a [.filename]#CDROM.INF# file that provides meta-data for the disc so that man:bsdinstall[8] can validate and use the contents, and a [.filename]#filename.txt# file that provides a manifest for the disc. This _manifest_ can be created with a simple command:
-[source,bash]
+[source,shell]
....
/stage/cdrom# find . -type f | sed -e 's/^\.\///' | sort > filename.txt
....
diff --git a/documentation/content/en/articles/remote-install/_index.adoc b/documentation/content/en/articles/remote-install/_index.adoc
index 5d6dcd9f9e..50a26face0 100644
--- a/documentation/content/en/articles/remote-install/_index.adoc
+++ b/documentation/content/en/articles/remote-install/_index.adoc
@@ -73,7 +73,7 @@ Please note that the internals of mfsBSD and how it all fits together is beyond
Download and extract the latest mfsBSD release and change your working directory to the directory where the mfsBSD scripts will reside:
-[source,bash]
+[source,shell]
....
# fetch http://mfsbsd.vx.sk/release/mfsbsd-2.1.tar.gz
# tar xvzf mfsbsd-2.1.tar.gz
@@ -124,7 +124,7 @@ The process of building an mfsBSD image is pretty straightforward.
The first step is to mount the FreeBSD installation CD, or the installation ISO image to [.filename]#/cdrom#. For the sake of example, in this article we will assume that you have downloaded the FreeBSD 10.1-RELEASE ISO. Mounting this ISO image to the [.filename]#/cdrom# directory is easy with the man:mdconfig[8] utility:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -u 10 -f FreeBSD-10.1-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /cdrom
@@ -132,7 +132,7 @@ The first step is to mount the FreeBSD installation CD, or the installation ISO
Since the recent FreeBSD releases do not contain regular distribution sets, it is required to extract the FreeBSD distribution files from the distribution archives located on the ISO image:
-[source,bash]
+[source,shell]
....
# mkdir DIST
# tar -xvf /cdrom/usr/freebsd-dist/base.txz -C DIST
@@ -141,7 +141,7 @@ Since the recent FreeBSD releases do not contain regular distribution sets, it i
Next, build the bootable mfsBSD image:
-[source,bash]
+[source,shell]
....
# make BASE=DIST
....
@@ -155,14 +155,14 @@ The above `make` has to be run from the top level of the mfsBSD directory tree,
Now that the mfsBSD image is ready, it must be uploaded to the remote system running a live rescue system or pre-installed Linux(R) distribution. The most suitable tool for this task is scp:
-[source,bash]
+[source,shell]
....
# scp disk.img root@192.168.0.2:.
....
To boot mfsBSD image properly, it must be placed on the first (bootable) device of the given machine. This may be accomplished using this example providing that [.filename]#sda# is the first bootable disk device:
-[source,bash]
+[source,shell]
....
# dd if=/root/disk.img of=/dev/sda bs=1m
....
@@ -180,7 +180,7 @@ The first task is to allocate disk space for FreeBSD, i.e.: to create slices and
At the start, mark all system disks as empty. Repeat the following command for each hard drive:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/ad0 count=2
....
@@ -189,7 +189,7 @@ Next, create slices and label them with your preferred tool. While it is conside
The following example will describe how to create slices and labels, initialize man:gmirror[8] on each partition and how to create a UFS2 file system in each mirrored partition:
-[source,bash]
+[source,shell]
....
# fdisk -BI /dev/ad0 <.>
# fdisk -BI /dev/ad1
@@ -224,7 +224,7 @@ The following example will describe how to create slices and labels, initialize
This is the most important part. This section will describe how to actually install the minimal distribution of FreeBSD on the hard drives that we have prepared in the previous section. To accomplish this goal, all file systems need to be mounted so `sysinstall` may write the contents of FreeBSD to the hard drives:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/root /mnt
# mkdir /mnt/var /mnt/usr
@@ -257,7 +257,7 @@ The FreeBSD operating system should be installed now; however, the process is no
You must now man:chroot[8] into the freshly installed system in order to finish the installation. Use the following command:
-[source,bash]
+[source,shell]
....
# chroot /mnt
....
@@ -266,7 +266,7 @@ To complete our goal, perform these steps:
* Copy the `GENERIC` kernel to the [.filename]#/boot/kernel# directory:
+
-[source,bash]
+[source,shell]
....
# cp -Rp /boot/GENERIC/* /boot/kernel
....
@@ -291,7 +291,7 @@ zfs_load="YES"
....
* Perform the following command, which will make ZFS available on the next boot:
+
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
....
@@ -308,14 +308,14 @@ If your system survived the reboot, it should now be possible to log in. Welcome
The only remaining step is to configure man:zpool[8] and create some man:zfs[8] file systems. Creating and administering ZFS is very straightforward. First, create a mirrored pool:
-[source,bash]
+[source,shell]
....
# zpool create tank mirror /dev/ad[01]s1f
....
Next, create some file systems:
-[source,bash]
+[source,shell]
....
# zfs create tank/ports
# zfs create tank/src
diff --git a/documentation/content/en/articles/serial-uart/_index.adoc b/documentation/content/en/articles/serial-uart/_index.adoc
index cd661adbc5..e982ea4ef7 100644
--- a/documentation/content/en/articles/serial-uart/_index.adoc
+++ b/documentation/content/en/articles/serial-uart/_index.adoc
@@ -528,7 +528,7 @@ COMTEST can be used as a screening tool to alert the administrator to the presen
If you run COMTEST on a 16550 that is in a modem or a modem is attached to the serial port, you need to first issue a ATE0&W command to the modem so that the modem will not echo any of the test characters. If you forget to do this, COMTEST will report at least this one difference:
-[source,bash]
+[source,shell]
....
Error (6)...Timeout interrupt failed: IIR = c1 LSR = 61
....
@@ -774,7 +774,7 @@ The flags entry _must_ be changed from this example unless you are using the exa
indicates that the master port is sio16. If I added another board and assigned sio17 through sio28, the flags for all 16 ports on _that_ board would be 0x1C05, where 1C indicates the minor number of the master port. Do not change the 05 setting.
. Save and complete the kernel configuration, recompile, install and reboot. Presuming you have successfully installed the recompiled kernel and have it set to the correct address and IRQ, your boot message should indicate the successful probe of the Boca ports as follows: (obviously the sio numbers, IO and IRQ could be different)
+
-[source,bash]
+[source,shell]
....
sio1 at 0x100-0x107 flags 0x1005 on isa
sio1: type 16550A (multiport)
@@ -812,7 +812,7 @@ sio16: type 16550A (multiport master)
+
If the messages go by too fast to see,
+
-[source,bash]
+[source,shell]
....
# dmesg | more
....
@@ -821,7 +821,7 @@ will show you the boot messages.
+
If you do need to create the [.filename]#/dev# entries, run the following as `root`:
+
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV tty1
@@ -835,7 +835,7 @@ If you do need to create the [.filename]#/dev# entries, run the following as `ro
If you do not want or need call-out devices for some reason, you can dispense with making the [.filename]#cua*# devices.
. If you want a quick and sloppy way to make sure the devices are working, you can simply plug a modem into each port and (as root)
+
-[source,bash]
+[source,shell]
....
# echo at > ttyd*
....
@@ -899,7 +899,7 @@ device sio2 at isa? port "IO_COM3" flags 0x205 irq 3
Note that the `flags` setting for [.filename]#sio1# and [.filename]#sio2# is truly essential; refer to man:sio[4] for details. (Generally, the `2` in the "flags" attribute refers to [.filename]#sio#`2` which holds the IRQ, and you surely want a `5` low nibble.) With kernel verbose mode turned on this should yield something similar to this:
-[source,bash]
+[source,shell]
....
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
@@ -932,7 +932,7 @@ device cy0 at isa? irq 10 iomem 0xd4000 iosiz 0x2000
. Rebuild and install the new kernel.
. Make the device nodes by typing (the following example assumes an 8-port board):
+
-[source,bash]
+[source,shell]
....
# cd /dev
# for i in 0 1 2 3 4 5 6 7;do ./MAKEDEV cuac$i ttyc$i;done
@@ -996,7 +996,7 @@ The following step, is not necessary if you are using man:devfs[5] in FreeBSD 5.
After rebooting with the new kernel, you need to make the device nodes in [.filename]#/dev#. The [.filename]#MAKEDEV# script will take care of this for you. Count how many total ports you have and type:
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV ttyAnn cuaAnn
diff --git a/documentation/content/en/articles/solid-state/_index.adoc b/documentation/content/en/articles/solid-state/_index.adoc
index 890f68f51a..9deda5aa43 100644
--- a/documentation/content/en/articles/solid-state/_index.adoc
+++ b/documentation/content/en/articles/solid-state/_index.adoc
@@ -82,14 +82,14 @@ A few applications in the average system will immediately begin to fail as a res
An important thing to remember is that a filesystem that was mounted read-only with [.filename]#/etc/fstab# can be made read-write at any time by issuing the command:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partition
....
and can be toggled back to read-only with the command:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partition
....
@@ -111,7 +111,7 @@ After booting with the kern and mfsroot floppies, choose `custom` from the insta
+
Exit the custom installation menu, and from the main installation menu choose the `fixit` option. After entering the fixit environment, enter the following command:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -125,7 +125,7 @@ a: 123456 0 4.2BSD 0 0
+
Where _123456_ is a number that is exactly the same as the number in the existing `c:` entry for size. Basically you are duplicating the existing `c:` line as an `a:` line, making sure that fstype is `4.2BSD`. Save the file and exit.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -135,14 +135,14 @@ Where _123456_ is a number that is exactly the same as the number in the existin
+
Mount the newly prepared flash media:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
+
Bring this machine up on the network so we may transfer our tar file and explode it onto our flash media filesystem. One example of how to do this is:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -150,21 +150,21 @@ Bring this machine up on the network so we may transfer our tar file and explode
+
Now that the machine is on the network, transfer your tar file. You may be faced with a bit of a dilemma at this point - if your flash memory part is 128 megabytes, for instance, and your tar file is larger than 64 megabytes, you cannot have your tar file on the flash media at the same time as you explode it - you will run out of space. One solution to this problem, if you are using FTP, is to untar the file while it is transferred over FTP. If you perform your transfer in this manner, you will never have the tar file and the tar contents on your disk at the same time:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| tar xvf -"
....
+
If your tarfile is gzipped, you can accomplish this as well:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| zcat | tar xvf -"
....
+
After the contents of your tarred filesystem are on your flash memory filesystem, you can unmount the flash memory and reboot:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -189,7 +189,7 @@ However, this does not solve the problem of maintaining cron tabs across reboots
[.filename]#syslog.conf# specifies the locations of certain log files that exist in [.filename]#/var/log#. These files are not created by [.filename]#/etc/rc.d/var# upon system initialization. Therefore, somewhere in [.filename]#/etc/rc.d/var#, after the section that creates the directories in [.filename]#/var#, you will need to add something like this:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -203,14 +203,14 @@ To make it possible to enter a ports directory and successfully run `make instal
First, create a package database directory. This is normally in [.filename]#/var/db/pkg#, but we cannot place it there as it will disappear every time the system is booted.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Now, add a line to [.filename]#/etc/rc.d/var# that links the [.filename]#/etc/pkg# directory to [.filename]#/var/db/pkg#. An example:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -230,7 +230,7 @@ First, add the directory `log/apache` to the list of directories to be created i
Second, add these commands to [.filename]#/etc/rc.d/var# after the directory creation section:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -238,7 +238,7 @@ Second, add these commands to [.filename]#/etc/rc.d/var# after the directory cre
Finally, remove the existing [.filename]#apache_log_dir# directory, and replace it with a link:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_dir
# ln -s /var/log/apache apache_log_dir
diff --git a/documentation/content/en/articles/vinum/_index.adoc b/documentation/content/en/articles/vinum/_index.adoc
index 8b52ca9977..bfc4a4e546 100644
--- a/documentation/content/en/articles/vinum/_index.adoc
+++ b/documentation/content/en/articles/vinum/_index.adoc
@@ -393,7 +393,7 @@ Volumes appear to the system to be identical to disks, with one exception. Unlik
In order to create a file system on this volume, use man:newfs[8]:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
....
@@ -475,7 +475,7 @@ In order to set up these `a` partitions for each device containing part of the r
====
. The location, offset from the beginning of the device, and size of this device's subdisk that is part of the root volume needs to be examined, using the command:
+
-[source,bash]
+[source,shell]
....
# gvinum l -rv root
....
@@ -483,7 +483,7 @@ In order to set up these `a` partitions for each device containing part of the r
[.filename]#vinum# offsets and sizes are measured in bytes. They must be divided by 512 in order to obtain the block numbers that are to be used by `bsdlabel`.
. Run this command for each device that participates in the root volume:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -e devname
....
@@ -497,7 +497,7 @@ The offset of the [.filename]#vinum# partition on this device (if any) must be a
That way, a new `a` partition will be established that overlaps the [.filename]#vinum# partition on this device. `bsdlabel` will only allow for this overlap if the [.filename]#vinum# partition has properly been marked using the `vinum` fstype.
. A faked `a` partition now exists on each device that has one replica of the root volume. It is highly recommendable to verify the result using a command like:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/devnamea
....
@@ -507,7 +507,7 @@ It should be remembered that all files containing control information must be re
At next reboot, the bootstrap should figure out the appropriate control information from the new [.filename]#vinum#-based root file system, and act accordingly. At the end of the kernel initialization process, after all devices have been announced, the prominent notice that shows the success of this setup is a message like:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/gvinum/root
....
@@ -516,7 +516,7 @@ Mounting root from ufs:/dev/gvinum/root
After the [.filename]#vinum# root volume has been set up, the output of `gvinum l -rv root` could look like:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -536,7 +536,7 @@ The values to note are `135680` for the offset, relative to partition [.filename
The bsdlabel for these devices might look like:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/en/books/arch-handbook/boot/chapter.adoc b/documentation/content/en/books/arch-handbook/boot/chapter.adoc
index 44b4e3c1be..01d56238ce 100644
--- a/documentation/content/en/books/arch-handbook/boot/chapter.adoc
+++ b/documentation/content/en/books/arch-handbook/boot/chapter.adoc
@@ -55,7 +55,7 @@ Here is an example of the output generated by the different boot stages. Actual
|`boot0`
a|
-[source,bash]
+[source,shell]
....
F1 FreeBSD
F2 BSD
@@ -65,7 +65,7 @@ F5 Disk 2
|`boot2` footnote:[This prompt will appear if the user presses a key just after selecting an OS to boot at the boot0 stage.]
a|
-[source,bash]
+[source,shell]
....
>>FreeBSD/i386 BOOT
Default: 1:ad(1,a)/boot/loader
@@ -75,7 +75,7 @@ boot:
|[.filename]#loader#
a|
-[source,bash]
+[source,shell]
....
BTX loader 1.00 BTX version is 1.02
Consoles: internal video/keyboard
@@ -92,7 +92,7 @@ Loading /boot/defaults/loader.conf
|kernel
a|
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -490,7 +490,7 @@ main.5:
.[.filename]#sys/boot/i386/boot2/boot1.S# [[boot-boot1-main5]]
Recall that at this point, register `%si` points to the FreeBSD slice entry in the MBR partition table, so a call to `nread` will effectively read sectors at the beginning of this partition. The argument passed on register `%dh` tells `nread` to read 16 disk sectors. Recall that the first 512 bytes, or the first sector of the FreeBSD slice, coincides with the [.filename]#boot1# program. Also recall that the file written to the beginning of the FreeBSD slice is not [.filename]#/boot/boot1#, but [.filename]#/boot/boot#. Let us look at the size of these files in the filesystem:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 512B Jan 8 00:15 /boot/boot0
-r--r--r-- 1 root wheel 512B Jan 8 00:15 /boot/boot1
@@ -1225,7 +1225,7 @@ The first `__asm` instruction will create an ELF section within the kernel's exe
Running objdump on a kernel binary, you may notice the presence of such small sections:
-[source,bash]
+[source,shell]
....
% objdump -h /kernel
7 .set.cons_set 00000014 c03164c0 c03164c0 002154c0 2**2
diff --git a/documentation/content/en/books/arch-handbook/driverbasics/chapter.adoc b/documentation/content/en/books/arch-handbook/driverbasics/chapter.adoc
index 07732d34bb..1f7a6614e2 100644
--- a/documentation/content/en/books/arch-handbook/driverbasics/chapter.adoc
+++ b/documentation/content/en/books/arch-handbook/driverbasics/chapter.adoc
@@ -113,7 +113,7 @@ KMOD=skeleton
Running `make` with this makefile will create a file [.filename]#skeleton.ko# that can be loaded into the kernel by typing:
-[source,bash]
+[source,shell]
....
# kldload -v ./skeleton.ko
....
@@ -300,7 +300,7 @@ DEV_MODULE(echo, echo_loader, NULL);
With this driver loaded try:
-[source,bash]
+[source,shell]
....
# echo -n "Test Data" > /dev/echo
# cat /dev/echo
diff --git a/documentation/content/en/books/developers-handbook/ipv6/chapter.adoc b/documentation/content/en/books/developers-handbook/ipv6/chapter.adoc
index 1d86a91fe4..50379e6d09 100644
--- a/documentation/content/en/books/developers-handbook/ipv6/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/ipv6/chapter.adoc
@@ -164,7 +164,7 @@ Ordinary userland applications should use advanced API (RFC2292) to specify scop
In the kernel, an interface index for link-local scoped address is embedded into 2nd 16bit-word (3rd and 4th byte) in IPv6 address. For example, you may see something like:
-[source,bash]
+[source,shell]
....
fe80:1::200:f8ff:fe01:6317
....
@@ -190,7 +190,7 @@ IPv6 link-local address is generated from IEEE802 address (Ethernet MAC address)
Here is an output of netstat command:
-[source,bash]
+[source,shell]
....
Internet6:
Destination Gateway Flags Netif Expire
@@ -221,7 +221,7 @@ Therefore, this is unwise to enable net.inet6.ip6.accept_rtadv on routers, or mu
To summarize the sysctl knob:
-[source,bash]
+[source,shell]
....
accept_rtadv forwarding role of the node
--- --- ---
@@ -288,7 +288,7 @@ and recompile the new kernel.
Then you can test jumbo payloads by the man:ping6[8] command with -b and -s options. The -b option must be specified to enlarge the size of the socket buffer and the -s option specifies the length of the packet, which should be more than 65,535. For example, type as follows:
-[source,bash]
+[source,shell]
....
% ping6 -b 70000 -s 68000 ::1
....
@@ -297,7 +297,7 @@ The IPv6 specification requires that the Jumbo Payload option must not be used i
When an IPv6 packet is received, the frame length is checked and compared to the length specified in the payload length field of the IPv6 header or in the value of the Jumbo Payload option, if any. If the former is shorter than the latter, the packet is discarded and statistics are incremented. You can see the statistics as output of man:netstat[8] command with `-s -p ip6' option:
-[source,bash]
+[source,shell]
....
% netstat -s -p ip6
ip6:
@@ -345,7 +345,7 @@ To process IP6 header, extension headers and transport headers easily, network d
`netstat -s -p ip6` tells you whether or not your driver conforms such requirement. In the following example, "cce0" violates the requirement. (For more information, refer to Section 2.)
-[source,bash]
+[source,shell]
....
Mbuf statistics:
317 one mbuf
@@ -374,7 +374,7 @@ You can perform wildcard bind on both of the address families, on the same port.
The following table show the behavior of FreeBSD 4.x.
-[source,bash]
+[source,shell]
....
listening side initiating side
(AF_INET6 wildcard (connection to ::ffff:10.1.1.1)
@@ -627,7 +627,7 @@ Note that the behavior is configurable in per-node manner, not per-SA manner (dr
The behavior is summarized as follows (see source code for more detail):
-[source,bash]
+[source,shell]
....
encapsulate decapsulate
--- ---
diff --git a/documentation/content/en/books/developers-handbook/kernelbuild/chapter.adoc b/documentation/content/en/books/developers-handbook/kernelbuild/chapter.adoc
index 7322b4cab3..906ce32357 100644
--- a/documentation/content/en/books/developers-handbook/kernelbuild/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/kernelbuild/chapter.adoc
@@ -47,21 +47,21 @@ Building the kernel this way may be useful when working on the kernel code and i
[.procedure]
. Run man:config[8] to generate the kernel source code:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/config MYKERNEL
....
. Change into the build directory. man:config[8] will print the name of this directory after being run as above.
+
-[source,bash]
+[source,shell]
....
# cd ../compile/MYKERNEL
....
. Compile the kernel:
+
-[source,bash]
+[source,shell]
....
# make depend
# make
@@ -69,7 +69,7 @@ Building the kernel this way may be useful when working on the kernel code and i
. Install the new kernel:
+
-[source,bash]
+[source,shell]
....
# make install
....
diff --git a/documentation/content/en/books/developers-handbook/kerneldebug/chapter.adoc b/documentation/content/en/books/developers-handbook/kerneldebug/chapter.adoc
index 930d941c3f..f0d83de480 100644
--- a/documentation/content/en/books/developers-handbook/kerneldebug/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/kerneldebug/chapter.adoc
@@ -73,7 +73,7 @@ Check [.filename]#/etc/fstab# or man:swapinfo[8] for a list of swap devices.
====
Make sure the `dumpdir` specified in man:rc.conf[5] exists before a kernel crash!
-[source,bash]
+[source,shell]
....
# mkdir /var/crash
# chmod 700 /var/crash
@@ -96,7 +96,7 @@ The man:crashinfo[8] utility generates a text file containing a summary of infor
If you are testing a new kernel but need to boot a different one in order to get your system up and running again, boot it only into single user mode using the `-s` flag at the boot prompt, and then perform the following steps:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -a -t ufs # make sure /var/crash is writable
@@ -111,7 +111,7 @@ This instructs man:savecore[8] to extract a kernel dump from [.filename]#/dev/ad
The kernel includes a man:sysctl[8] node that requests a kernel panic. This can be used to verify that your system is properly configured to save kernel crash dumps. You may wish to remount existing file systems as read-only in single user mode before triggering the crash to avoid data loss.
-[source,bash]
+[source,shell]
....
# shutdown now
...
@@ -134,21 +134,21 @@ This section covers man:kgdb[1]. The latest version is included in the package:d
To enter into the debugger and begin getting information from the dump, start kgdb:
-[source,bash]
+[source,shell]
....
# kgdb -n N
....
Where _N_ is the suffix of the [.filename]#vmcore.N# to examine. To open the most recent dump use:
-[source,bash]
+[source,shell]
....
# kgdb -n last
....
Normally, man:kgdb[1] should be able to locate the kernel running at the time the dump was generated. If it is not able to locate the correct kernel, pass the pathname of the kernel and dump as two arguments to kgdb:
-[source,bash]
+[source,shell]
....
# kgdb /boot/kernel/kernel /var/crash/vmcore.0
....
@@ -157,7 +157,7 @@ You can debug the crash dump using the kernel sources just like you can for any
This dump is from a 5.2-BETA kernel and the crash comes from deep within the kernel. The output below has been modified to include line numbers on the left. This first trace inspects the instruction pointer and obtains a back trace. The address that is used on line 41 for the `list` command is the instruction pointer and can be found on line 17. Most developers will request having at least this information sent to them if you are unable to debug the problem yourself. If, however, you do solve the problem, make sure that your patch winds its way into the source tree via a problem report, mailing lists, or by being able to commit it!
-[source,bash]
+[source,shell]
....
1:# cd /usr/obj/usr/src/sys/KERNCONF
2:# kgdb kernel.debug /var/crash/vmcore.0
@@ -281,7 +281,7 @@ Once your DDB kernel is running, there are several ways to enter DDB. The first,
The second scenario is to drop to the debugger once the system has booted. There are two simple ways to accomplish this. If you would like to break to the debugger from the command prompt, simply type the command:
-[source,bash]
+[source,shell]
....
# sysctl debug.kdb.enter=1
....
@@ -301,7 +301,7 @@ to the kernel configuration file and rebuild/reinstall.
The DDB commands roughly resemble some `gdb` commands. The first thing you probably need to do is to set a breakpoint:
-[source,bash]
+[source,shell]
....
break function-name address
....
@@ -310,14 +310,14 @@ Numbers are taken hexadecimal by default, but to make them distinct from symbol
To exit the debugger and continue execution, type:
-[source,bash]
+[source,shell]
....
continue
....
To get a stack trace of the current thread, use:
-[source,bash]
+[source,shell]
....
trace
....
@@ -326,7 +326,7 @@ To get a stack trace of an arbitrary thread, specify a process ID or thread ID a
If you want to remove a breakpoint, use
-[source,bash]
+[source,shell]
....
del
del address-expression
@@ -334,28 +334,28 @@ If you want to remove a breakpoint, use
The first form will be accepted immediately after a breakpoint hit, and deletes the current breakpoint. The second form can remove any breakpoint, but you need to specify the exact address; this can be obtained from:
-[source,bash]
+[source,shell]
....
show b
....
or:
-[source,bash]
+[source,shell]
....
show break
....
To single-step the kernel, try:
-[source,bash]
+[source,shell]
....
s
....
This will step into functions, but you can make DDB trace them until the matching return statement is reached by:
-[source,bash]
+[source,shell]
....
n
....
@@ -367,7 +367,7 @@ This is different from ``gdb``'s `next` statement; it is like ``gdb``'s `finish`
To examine data from memory, use (for example):
-[source,bash]
+[source,shell]
....
x/wx 0xf0133fe0,40
x/hd db_symtab_space
@@ -377,14 +377,14 @@ To examine data from memory, use (for example):
for word/halfword/byte access, and hexadecimal/decimal/character/ string display. The number after the comma is the object count. To display the next 0x10 items, simply use:
-[source,bash]
+[source,shell]
....
x ,10
....
Similarly, use
-[source,bash]
+[source,shell]
....
x/ia foofunc,10
....
@@ -393,7 +393,7 @@ to disassemble the first 0x10 instructions of `foofunc`, and display them along
To modify memory, use the write command:
-[source,bash]
+[source,shell]
....
w/b termbuf 0xa 0xb 0
w/w 0xf0010030 0 0
@@ -403,28 +403,28 @@ The command modifier (`b`/`h`/`w`) specifies the size of the data to be written,
If you need to know the current registers, use:
-[source,bash]
+[source,shell]
....
show reg
....
Alternatively, you can display a single register value by e.g.
-[source,bash]
+[source,shell]
....
p $eax
....
and modify it by:
-[source,bash]
+[source,shell]
....
set $eax new-value
....
Should you need to call some kernel functions from DDB, simply say:
-[source,bash]
+[source,shell]
....
call func(arg1, arg2, ...)
....
@@ -433,28 +433,28 @@ The return value will be printed.
For a man:ps[1] style summary of all running processes, use:
-[source,bash]
+[source,shell]
....
ps
....
Now you have examined why your kernel failed, and you wish to reboot. Remember that, depending on the severity of previous malfunctioning, not all parts of the kernel might still be working as expected. Perform one of the following actions to shut down and reboot your system:
-[source,bash]
+[source,shell]
....
panic
....
This will cause your kernel to dump core and reboot, so you can later analyze the core on a higher level with man:kgdb[1].
-[source,bash]
+[source,shell]
....
call boot(0)
....
Might be a good way to cleanly shut down the running system, `sync()` all disks, and finally, in some cases, reboot. As long as the disk and filesystem interfaces of the kernel are not damaged, this could be a good way for an almost clean shutdown.
-[source,bash]
+[source,shell]
....
reset
....
@@ -463,7 +463,7 @@ This is the final way out of disaster and almost the same as hitting the Big Red
If you need a short command summary, simply type:
-[source,bash]
+[source,shell]
....
help
....
@@ -479,7 +479,7 @@ GDB has already supported _remote debugging_ for a long time. This is done using
You should configure the kernel in question with `config -g` if building the "traditional" way. If building the "new" way, make sure that `makeoptions DEBUG=-g` is in the configuration. In both cases, include `DDB` in the configuration, and compile it as usual. This gives a large binary, due to the debugging information. Copy this kernel to the target machine, strip the debugging symbols off with `strip -x`, and boot it using the `-d` boot option. Connect the serial line of the target machine that has "flags 080" set on its uart device to any serial line of the debugging host. See man:uart[4] for information on how to set the flags on an uart device. Now, on the debugging machine, go to the compile directory of the target kernel, and start `gdb`:
-[source,bash]
+[source,shell]
....
% kgdb kernel
GDB is free software and you are welcome to distribute copies of it
@@ -492,14 +492,14 @@ Copyright 1996 Free Software Foundation, Inc...
Initialize the remote debugging session (assuming the first serial port is being used) by:
-[source,bash]
+[source,shell]
....
(kgdb) target remote /dev/cuau0
....
Now, on the target host (the one that entered DDB right before even starting the device probe), type:
-[source,bash]
+[source,shell]
....
Debugger("Boot flags requested debugger")
Stopped at Debugger+0x35: movb $0, edata+0x51bc
@@ -508,14 +508,14 @@ db> gdb
DDB will respond with:
-[source,bash]
+[source,shell]
....
Next trap will enter GDB remote protocol mode
....
Every time you type `gdb`, the mode will be toggled between remote GDB and local DDB. In order to force a next trap immediately, simply type `s` (step). Your hosting GDB will now gain control over the target kernel:
-[source,bash]
+[source,shell]
....
Remote debugging using /dev/cuau0
Debugger (msg=0xf01b0383 "Boot flags requested debugger")
@@ -579,7 +579,7 @@ To enable FireWire(R) and Dcons support in man:loader[8] on i386 or amd64:
Add `LOADER_FIREWIRE_SUPPORT=YES` in [.filename]#/etc/make.conf# and rebuild man:loader[8]:
-[source,bash]
+[source,shell]
....
# cd /sys/boot/i386 && make clean && make && make install
....
@@ -588,7 +588,7 @@ To enable man:dcons[4] as an active low-level console, add `boot_multicons="YES"
Here are a few configuration examples. A sample kernel configuration file would contain:
-[source,bash]
+[source,shell]
....
device dcons
device dcons_crom
@@ -600,7 +600,7 @@ options ALT_BREAK_TO_DEBUGGER
And a sample [.filename]#/boot/loader.conf# would contain:
-[source,bash]
+[source,shell]
....
dcons_crom_load="YES"
dcons_gdb=1
@@ -613,7 +613,7 @@ hw.firewire.dcons_crom.force_console=1
To enable FireWire(R) support in the kernel on the _host machine_:
-[source,bash]
+[source,shell]
....
# kldload firewire
....
@@ -622,7 +622,7 @@ Find out the EUI64 (the unique 64 bit identifier) of the FireWire(R) host contro
Run man:dconschat[8], with:
-[source,bash]
+[source,shell]
....
# dconschat -e \# -br -G 12345 -t 00-11-22-33-44-55-66-77
....
@@ -648,7 +648,7 @@ The following key combinations can be used once man:dconschat[8] is running:
Attach remote GDB by starting man:kgdb[1] with a remote debugging session:
-[source,bash]
+[source,shell]
....
kgdb -r :12345 kernel
....
@@ -659,7 +659,7 @@ Here are some general tips:
To take full advantage of the speed of FireWire(R), disable other slow console drivers:
-[source,bash]
+[source,shell]
....
# conscontrol delete ttyd0 # serial console
# conscontrol delete consolectl # video/keyboard
@@ -667,7 +667,7 @@ To take full advantage of the speed of FireWire(R), disable other slow console d
There exists a GDB mode for man:emacs[1]; this is what you will need to add to your [.filename]#.emacs#:
-[source,bash]
+[source,shell]
....
(setq gud-gdba-command-name "kgdb -a -a -a -r :12345")
(setq gdb-many-windows t)
@@ -677,7 +677,7 @@ M-x gdba
And for DDD ([.filename]#devel/ddd#):
-[source,bash]
+[source,shell]
....
# remote serial protocol
LANG=C ddd --debugger kgdb -r :12345 kernel
@@ -695,21 +695,21 @@ To use man:dcons[4] with KVM:
Dump a man:dcons[4] buffer of a live system:
-[source,bash]
+[source,shell]
....
# dconschat -1
....
Dump a man:dcons[4] buffer of a crash dump:
-[source,bash]
+[source,shell]
....
# dconschat -1 -M vmcore.XX
....
Live core debugging can be done via:
-[source,bash]
+[source,shell]
....
# fwcontrol -m target_eui64
# kgdb kernel /dev/fwmem0.2
diff --git a/documentation/content/en/books/developers-handbook/policies/chapter.adoc b/documentation/content/en/books/developers-handbook/policies/chapter.adoc
index dd44e295d9..ca24fcb11d 100644
--- a/documentation/content/en/books/developers-handbook/policies/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/policies/chapter.adoc
@@ -100,7 +100,7 @@ Since the trees we have in vendor branches are usually a tiny subset of
the FreeBSD, it's best to do them with work trees since the process is
quite fast. Make sure that whatever directory you choose (the
`../mtree`) argument is empty and doesn't conflict.
-[source,bash]
+[source,shell]
....
% git worktree add ../mtree vendor/NetBSD/mtree
....
@@ -112,7 +112,7 @@ I have my copy of NetBSD checked out from their GitHub mirror in
`~/git/NetBSD`, so I'll update from there: Note that "upstream" might
have added or removed files, so we want to make sure deletions are
propagated as well. rsync(1) is commonly installed, so I'll use that.
-[source,bash]
+[source,shell]
....
% cd ../mtree
% rsync -va --del --exclude=".git" ~/git/NetBSD/usr.sbin/mtree/ .
@@ -139,7 +139,7 @@ or fixes in that version.
==== Updating the FreeBSD Copy
At this point you can push the import to vendor into our repo.
-[source,bash]
+[source,shell]
....
% git push --follow-tags freebsd vendor/NetBSD/mtree
....
@@ -148,7 +148,7 @@ At this point you can push the import to vendor into our repo.
==== Updating the FreeBSD source tree
Now you need to update the mtree in FreeBSD. The sources live in
`contrib/mtree` since it is upstream software.
-[source,bash]
+[source,shell]
....
% cd ../src
% git subtree merge -P contrib/mtree vendor/NetBSD/mtree
@@ -164,7 +164,7 @@ so instead of that you would have to recreate the commit.
The easiest way to do this would be to create a side branch with the **contents** of the merged tree:
-[source,bash]
+[source,shell]
....
% cd ../src
% git fetch freebsd
@@ -177,20 +177,20 @@ In the worst case scenario, you would still have to resolve merge conflicts, if
should be really rare.
Now, checkout `freebsd/main` again as `new_merge`, and redo the merge:
-[source,bash]
+[source,shell]
....
% git checkout -b new_merge freebsd/main
% git subtree merge -P contrib/mtree vendor/NetBSD/mtree
....
Instead of resolving the conflicts, perform this instead:
-[source,bash]
+[source,shell]
....
% git checkout merge_result .
....
Which will overwrite the files with conflicts with the version found in `merge_result`.
Examine the tree against `merge_result` to make sure that you haven't missed deleted files:
-[source,bash]
+[source,shell]
....
% git diff merge_result
....
@@ -200,7 +200,7 @@ a fork off github or gitlab for others to review. Once nice thin about Git is th
allows you to publish rough drafts of your work for others to review.
After review, when you are sure it is a good change, you can push it to the FreeBSD repo:
-[source,bash]
+[source,shell]
....
% git push freebsd main
....
@@ -213,7 +213,7 @@ the sake of simplicity, we'll not trim this release. It's a user
command that puts the nitz device into different magical glorb states.
==== Create the repo
-[source,bash]
+[source,shell]
....
% cd /some/where
% mkdir glorbnitz
@@ -231,7 +231,7 @@ how to create a new root commit that's not attached to anything, e.g.
==== Copy the sources in
Since this is a new import, you can just cp the sources in, or use tar or
even rsync as shown above. And we'll add everything, assuming no dot files.
-[source,bash]
+[source,shell]
....
% cp -r ~/glorbnitz/* .
% git add *
@@ -239,7 +239,7 @@ even rsync as shown above. And we'll add everything, assuming no dot files.
At this point, you should have a pristine copy of glorbnitz ready to commit.
-[source,bash]
+[source,shell]
....
% git commit -m"Import GlorbNitz frobnosticator revision 3.1415"
....
@@ -249,7 +249,7 @@ to get it. Not everybody will know.
==== Now import it into our repository
Now you need to import the branch into our repository.
-[source,bash]
+[source,shell]
....
% cd /path/to/freebsd/repo/src
% git remote add glorbnitz /some/where/glorbnitz
@@ -263,7 +263,7 @@ to an end.
Steps from here on out are much the same as they are in the case of
updating a vendor branch, though w/o the updating the vendor
branch step.
-[source,bash]
+[source,shell]
....
% git worktree add ../glorbnitz vendor/glorbnitz
% cd ../glorbnitz
@@ -279,7 +279,7 @@ By 'good' we mean:
. The tag looks good, and is annotated.
==== Time to finally merge it into the base tree*
-[source,bash]
+[source,shell]
....
% cd ../src
% git subtree add -P contrib/glorbnitz vendor/glorbnitz
diff --git a/documentation/content/en/books/developers-handbook/sockets/chapter.adoc b/documentation/content/en/books/developers-handbook/sockets/chapter.adoc
index bea670b3d2..584e3516a8 100644
--- a/documentation/content/en/books/developers-handbook/sockets/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/sockets/chapter.adoc
@@ -449,7 +449,7 @@ int main() {
Go ahead, enter it in your editor, save it as [.filename]#daytime.c#, then compile and run it:
-[source,bash]
+[source,shell]
....
% cc -O3 -o daytime daytime.c
% ./daytime
@@ -662,7 +662,7 @@ Not all protocols are that simple. Many receive a request from the client, reply
Now, go ahead, save the above source code as [.filename]#daytimed.c# (it is customary to end the names of daemons with the letter `d`). After you have compiled it, try running it:
-[source,bash]
+[source,shell]
....
% ./daytimed
bind: Permission denied
@@ -673,7 +673,7 @@ What happened here? As you will recall, the _daytime_ protocol uses port 13. But
Try again, this time as the superuser:
-[source,bash]
+[source,shell]
....
# ./daytimed
#
@@ -681,7 +681,7 @@ Try again, this time as the superuser:
What... Nothing? Let us try again:
-[source,bash]
+[source,shell]
....
# ./daytimed
@@ -693,7 +693,7 @@ Every port can only be bound by one program at a time. Our first attempt was ind
Fine, we know it is running in the background. But is it working? How do we know it is a proper _daytime_ server? Simple:
-[source,bash]
+[source,shell]
....
% telnet localhost 13
@@ -711,7 +711,7 @@ telnet tried the new IPv6, and failed. It retried with IPv4 and succeeded. The d
If you have access to another UNIX(R) system via telnet, you can use it to test accessing the server remotely. My computer does not have a static IP address, so this is what I did:
-[source,bash]
+[source,shell]
....
% who
@@ -729,7 +729,7 @@ Connection closed by foreign host.
Again, it worked. Will it work using the domain name?
-[source,bash]
+[source,shell]
....
% telnet r47.bfm.org 13
@@ -822,7 +822,7 @@ We now can type a domain name (or an IP address, it works both ways) on the comm
Since it takes virtually no time to get the time from your local server, you could run daytime twice in a row: First to get the time from `time.nist.gov`, the second time from your own system. You can then compare the results and see how exact your system clock is:
-[source,bash]
+[source,shell]
....
% daytime ; daytime localhost
diff --git a/documentation/content/en/books/developers-handbook/tools/chapter.adoc b/documentation/content/en/books/developers-handbook/tools/chapter.adoc
index c24e655267..a00ea30e31 100644
--- a/documentation/content/en/books/developers-handbook/tools/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/tools/chapter.adoc
@@ -141,14 +141,14 @@ The word _compiling_ is often used to refer to just steps 1 to 4-the others are
Fortunately, almost all this detail is hidden from you, as `cc` is a front end that manages calling all these programs with the right arguments for you; simply typing
-[source,bash]
+[source,shell]
....
% cc foobar.c
....
will cause [.filename]#foobar.c# to be compiled by all the steps above. If you have more than one file to compile, just do something like
-[source,bash]
+[source,shell]
....
% cc foo.c bar.c
....
@@ -160,7 +160,7 @@ There are lots and lots of options for `cc`, which are all in the manual page. H
`-o _filename_`::
The output name of the file. If you do not use this option, `cc` will produce an executable called [.filename]#a.out#.footnote:[The reasons for this are buried in the mists of history.]
+
-[source,bash]
+[source,shell]
....
% cc foobar.c executable is a.out
% cc -o foobar foobar.c executable is foobar
@@ -169,7 +169,7 @@ The output name of the file. If you do not use this option, `cc` will produce an
`-c`::
Just compile the file, do not link it. Useful for toy programs where you just want to check the syntax, or if you are using a [.filename]#Makefile#.
+
-[source,bash]
+[source,shell]
....
% cc -c foobar.c
....
@@ -180,7 +180,7 @@ This will produce an _object file_ (not an executable) called [.filename]#foobar
Create a debug version of the executable. This makes the compiler put information into the executable about which line of which source file corresponds to which function call. A debugger can use this information to show the source code as you step through the program, which is _very_ useful; the disadvantage is that all this extra information makes the program much bigger. Normally, you compile with `-g` while you are developing a program and then compile a "release version" without `-g` when you are satisfied it works properly.
+
-[source,bash]
+[source,shell]
....
% cc -g foobar.c
....
@@ -190,7 +190,7 @@ This will produce a debug version of the program. footnote:[Note, we did not use
`-O`::
Create an optimized version of the executable. The compiler performs various clever tricks to try to produce an executable that runs faster than normal. You can add a number after the `-O` to specify a higher level of optimization, but this often exposes bugs in the compiler's optimizer.
+
-[source,bash]
+[source,shell]
....
% cc -O -o foobar foobar.c
....
@@ -212,7 +212,7 @@ Without these flags, `cc` will allow you to use some of its non-standard extensi
Generally, you should try to make your code as portable as possible, as otherwise you may have to completely rewrite the program later to get it to work somewhere else-and who knows what you may be using in a few years time?
-[source,bash]
+[source,shell]
....
% cc -Wall -ansi -pedantic -o foobar foobar.c
....
@@ -226,7 +226,7 @@ The most common example of this is when compiling a program that uses some of th
+
The rule is that if the library is called [.filename]#libsomething.a#, you give `cc` the argument `-l__something__`. For example, the math library is [.filename]#libm.a#, so you give `cc` the argument `-lm`. A common "gotcha" with the math library is that it has to be the last library on the command line.
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -235,7 +235,7 @@ This will link the math library functions into [.filename]#foobar#.
+
If you are compiling C++ code, use {c-plus-plus-command}. {c-plus-plus-command} can also be invoked as {clang-plus-plus-command} on FreeBSD.
+
-[source,bash]
+[source,shell]
....
% c++ -o foobar foobar.cc
....
@@ -246,14 +246,14 @@ This will both produce an executable [.filename]#foobar# from the C++ source fil
==== I am trying to write a program which uses the sin() function and I get an error like this. What does it mean?
-[source,bash]
+[source,shell]
....
/var/tmp/cc0143941.o: Undefined symbol `_sin' referenced from text segment
....
When using mathematical functions like `sin()`, you have to tell `cc` to link in the math library, like so:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -275,14 +275,14 @@ int main() {
and I compiled it as:
-[source,bash]
+[source,shell]
....
% cc temp.c -lm
....
like you said I should, but I get this when I run it:
-[source,bash]
+[source,shell]
....
% ./a.out
2.1 ^ 6 = 1023.000000
@@ -307,7 +307,7 @@ int main() {
After recompiling it as you did before, run it:
-[source,bash]
+[source,shell]
....
% ./a.out
2.1 ^ 6 = 85.766121
@@ -319,7 +319,7 @@ If you are using any of the mathematical functions, _always_ include [.filename]
Remember, `cc` will call the executable [.filename]#a.out# unless you tell it differently. Use the `-o _filename_` option:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c
....
@@ -332,7 +332,7 @@ Unlike MS-DOS(R), UNIX(R) does not look in the current directory when it is tryi
Most UNIX(R) systems have a program called `test` in [.filename]#/usr/bin# and the shell is picking that one up before it gets to checking the current directory. Either type:
-[source,bash]
+[source,shell]
....
% ./test
....
@@ -414,14 +414,14 @@ No, fortunately not (unless of course you really do have a hardware problem...).
Yes, just go to another console or xterm, do
-[source,bash]
+[source,shell]
....
% ps
....
to find out the process ID of your program, and do
-[source,bash]
+[source,shell]
....
% kill -ABRT pid
....
@@ -441,7 +441,7 @@ If you want to create a core dump from outside your program, but do not want the
When you are working on a simple program with only one or two source files, typing in
-[source,bash]
+[source,shell]
....
% cc file1.c file2.c
....
@@ -450,7 +450,7 @@ is not too bad, but it quickly becomes very tedious when there are several files
One way to get around this is to use object files and only recompile the source file if the source code has changed. So we could have something like:
-[source,bash]
+[source,shell]
....
% cc file1.o file2.o … file37.c …
....
@@ -498,7 +498,7 @@ install:
We can tell make which target we want to make by typing:
-[source,bash]
+[source,shell]
....
% make target
....
@@ -586,7 +586,7 @@ If you want to have a look at these system makefiles, they are in [.filename]#/u
The version of make that comes with FreeBSD is the Berkeley make; there is a tutorial for it in [.filename]#/usr/share/doc/psd/12.make#. To view it, do
-[source,bash]
+[source,shell]
....
% zmore paper.ascii.gz
....
@@ -630,7 +630,7 @@ Which one to use is largely a matter of taste. If familiar with one only, use th
Start up lldb by typing
-[source,bash]
+[source,shell]
....
% lldb -- progname
....
@@ -639,7 +639,7 @@ Start up lldb by typing
Compile the program with `-g` to get the most out of using `lldb`. It will work without, but will only display the name of the function currently running, instead of the source code. If it displays a line like:
-[source,bash]
+[source,shell]
....
Breakpoint 1: where = temp`main, address = …
....
@@ -682,7 +682,7 @@ This program sets i to be `5` and passes it to a function `bazz()` which prints
Compiling and running the program displays
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -692,7 +692,7 @@ anint = -5360
That is not what was expected! Time to see what is going on!
-[source,bash]
+[source,shell]
....
% lldb -- temp
(lldb) target create "temp"
@@ -740,7 +740,7 @@ Process 9992 stopped
Hang on a minute! How did anint get to be `-5360`? Was it not set to `5` in `main()`? Let us move up to `main()` and have a look.
-[source,bash]
+[source,shell]
....
(lldb) up Move up call stack
frame #1: 0x000000000020130b temp`main at temp.c:9:2 lldb displays stack frame
@@ -783,7 +783,7 @@ To examine a core file, specify the name of the core file in addition to the pro
The debugger will display something like this:
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
% lldb -c [.filename]#progname.core# -- [.filename]#progname#
(lldb) target create "[.filename]#progname#" --core "[.filename]#progname#.core"
@@ -793,7 +793,7 @@ Core file '/home/pauamma/tmp/[.filename]#progname.core#' (x86_64) was loaded.
In this case, the program was called [.filename]#progname#, so the core file is called [.filename]#progname.core#. The debugger does not display why the program crashed or where. For this, use `thread backtrace all`. This will also show how the function where the program dumped core was called.
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
(lldb) thread backtrace all
* thread #1, name = 'progname', stop reason = signal SIGSEGV
@@ -811,7 +811,7 @@ One of the neatest features about `lldb` is that it can attach to a program that
To do that, start up another `lldb`, use `ps` to find the process ID for the child, and do
-[source,bash]
+[source,shell]
....
(lldb) process attach -p pid
....
@@ -848,7 +848,7 @@ Starting with LLDB 12.0.0, remote debugging is supported on FreeBSD. This means
To launch a new process to be debugged remotely, run `lldb-server` on the remote server by typing
-[source,bash]
+[source,shell]
....
% lldb-server g host:port -- progname
....
@@ -857,14 +857,14 @@ The process will be stopped immediately after launching, and `lldb-server` will
Start `lldb` locally and type the following command to connect to the remote server:
-[source,bash]
+[source,shell]
....
(lldb) gdb-remote host:port
....
`lldb-server` can also attach to a running process. To do that, type the following on the remote server:
-[source,bash]
+[source,shell]
....
% lldb-server g host:port --attach pid-or-name
....
@@ -875,14 +875,14 @@ Start `lldb` locally and type the following command to connect to the remote ser
Start up gdb by typing
-[source,bash]
+[source,shell]
....
% gdb progname
....
although many people prefer to run it inside Emacs. To do this, type:
-[source,bash]
+[source,shell]
....
M-x gdb RET progname RET
....
@@ -893,7 +893,7 @@ Finally, for those finding its text-based command-prompt style off-putting, ther
Compile the program with `-g` to get the most out of using `gdb`. It will work without, but will only display the name of the function currently running, instead of the source code. A line like:
-[source,bash]
+[source,shell]
....
... (no debugging symbols found) ...
....
@@ -930,7 +930,7 @@ This program sets i to be `5` and passes it to a function `bazz()` which prints
Compiling and running the program displays
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -940,7 +940,7 @@ anint = 4231
That was not what we expected! Time to see what is going on!
-[source,bash]
+[source,shell]
....
% gdb temp
GDB is free software and you are welcome to distribute copies of it
@@ -962,7 +962,7 @@ bazz (anint=4231) at temp.c:17 gdb displays stack frame
Hang on a minute! How did anint get to be `4231`? Was it not set to `5` in `main()`? Let us move up to `main()` and have a look.
-[source,bash]
+[source,shell]
....
(gdb) up Move up call stack
#1 0x1625 in main () at temp.c:11 gdb displays stack frame
@@ -996,7 +996,7 @@ A core file is basically a file which contains the complete state of the process
To examine a core file, start up `gdb` in the usual way. Instead of typing `break` or `run`, type
-[source,bash]
+[source,shell]
....
(gdb) core progname.core
....
@@ -1005,7 +1005,7 @@ If the core file is not in the current directory, type `dir /path/to/core/file`
The debugger should display something like this:
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
% gdb [.filename]#progname#
GDB is free software and you are welcome to distribute copies of it
@@ -1024,7 +1024,7 @@ In this case, the program was called [.filename]#progname#, so the core file is
Sometimes it is useful to be able to see how a function was called, as the problem could have occurred a long way up the call stack in a complex program. `bt` causes `gdb` to print out a back-trace of the call stack:
-[source,bash]
+[source,shell]
....
(gdb) bt
#0 0x164a in bazz (anint=0x5) at temp.c:17
@@ -1041,7 +1041,7 @@ One of the neatest features about `gdb` is that it can attach to a program that
To do that, start up another `gdb`, use `ps` to find the process ID for the child, and do
-[source,bash]
+[source,shell]
....
(gdb) attach pid
....
@@ -1124,7 +1124,7 @@ Unfortunately, there is far too much here to explain it in detail; however there
* Emacs already has a pre-defined function called `next-error`. In a compilation output window, this allows you to move from one compilation error to the next by doing `M-n`; we define a complementary function, `previous-error`, that allows you to go to a previous error by doing `M-p`. The nicest feature of all is that `C-c C-c` will open up the source file in which the error occurred and jump to the appropriate line.
* We enable Emacs's ability to act as a server, so that if you are doing something outside Emacs and you want to edit a file, you can just type in
+
-[source,bash]
+[source,shell]
....
% emacsclient filename
....
@@ -1427,7 +1427,7 @@ Now, this is all very well if you only want to program in the languages already
The first thing to do is find out if whizbang comes with any files that tell Emacs about the language. These usually end in [.filename]#.el#, short for "Emacs Lisp". For example, if whizbang is a FreeBSD port, we can locate these files by doing
-[source,bash]
+[source,shell]
....
% find /usr/ports/lang/whizbang -name "*.el" -print
....
@@ -1436,14 +1436,14 @@ and install them by copying them into the Emacs site Lisp directory. On FreeBSD,
So for example, if the output from the find command was
-[source,bash]
+[source,shell]
....
/usr/ports/lang/whizbang/work/misc/whizbang.el
....
we would do
-[source,bash]
+[source,shell]
....
# cp /usr/ports/lang/whizbang/work/misc/whizbang.el /usr/local/shared/emacs/site-lisp
....
diff --git a/documentation/content/en/books/developers-handbook/x86/chapter.adoc b/documentation/content/en/books/developers-handbook/x86/chapter.adoc
index f65ed2b359..da89327629 100644
--- a/documentation/content/en/books/developers-handbook/x86/chapter.adoc
+++ b/documentation/content/en/books/developers-handbook/x86/chapter.adoc
@@ -135,7 +135,7 @@ This convention has a great disadvantage over the UNIX(R) way, at least as far a
If you do choose the Linux convention, you must let the system know about it. After your program is assembled and linked, you need to brand the executable:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux filename
....
@@ -501,7 +501,7 @@ Type the code (except the line numbers) in an editor, and save it in a file name
If you do not have nasm, type:
-[source,bash]
+[source,shell]
....
% su
Password:your root password
@@ -522,7 +522,7 @@ If your system is not FreeBSD, you need to get nasm from its https://sourceforge
Now you can assemble, link, and run the code:
-[source,bash]
+[source,shell]
....
% nasm -f elf hello.asm
% ld -s -o hello hello.o
@@ -600,7 +600,7 @@ Once there is no more input left, we ask the system to exit our program, returni
Go ahead, and save the code in a file named [.filename]#hex.asm#, then type the following (the `^D` means press the control key and type `D` while holding the control key down):
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -675,7 +675,7 @@ That means we only need to set `CL` once. We have, therefore, added a new label
Once you have changed [.filename]#hex.asm# to reflect these changes, type:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -803,7 +803,7 @@ We use `EDI` and `ESI` as pointers to the next byte to be read from or written t
Let us see how it works now:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -919,7 +919,7 @@ write:
Now, let us see how it works:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -1457,7 +1457,7 @@ This code produces a 1,396-byte executable. Most of it is data, i.e., the HTML m
Assemble and link it as usual:
-[source,bash]
+[source,shell]
....
% nasm -f elf webvars.asm
% ld -s -o webvars webvars.o
@@ -1478,7 +1478,7 @@ One of the first programs I wrote for UNIX(R) was link:ftp://ftp.int80h.org/unix
I have used tuc extensively, but always only to convert from some other OS to UNIX(R), never the other way. I have always wished it would just overwrite the file instead of me having to send the output to a different file. Most of the time, I end up using it like this:
-[source,bash]
+[source,shell]
....
% tuc myfile tempfile
% mv tempfile myfile
@@ -1486,7 +1486,7 @@ I have used tuc extensively, but always only to convert from some other OS to UN
It would be nice to have a ftuc, i.e., _fast tuc_, and use it like this:
-[source,bash]
+[source,shell]
....
% ftuc myfile
....
@@ -2034,7 +2034,7 @@ This time I decided to let it do a little more work than a typical tutorial prog
Here is its usage message:
-[source,bash]
+[source,shell]
....
Usage: csv [-t<delim>] [-c<comma>] [-p] [-o <outfile>] [-i <infile>]
....
@@ -2053,7 +2053,7 @@ I made sure that both `-i filename` and `-ifilename` are accepted. I also made s
To get the 11th field of each record, I can now do:
-[source,bash]
+[source,shell]
....
% csv '-t;' data.csv | awk '-F;' '{print $11}'
....
@@ -2555,7 +2555,7 @@ But our pinhole program cannot just work with individual characters, it has to d
For example, if we want the program to calculate the pinhole diameter (and other values we will discuss later) at the focal lengths of `100 mm`, `150 mm`, and `210 mm`, we may want to enter something like this:
-[source,bash]
+[source,shell]
....
100, 150, 210
....
@@ -2570,7 +2570,7 @@ Personally, I like to keep it simple. Something either is a number, so I process
Plus, it allows me to break up the monotony of computing and type in a query instead of just a number:
-[source,bash]
+[source,shell]
....
What is the best pinhole diameter for the
focal length of 150?
@@ -2578,7 +2578,7 @@ What is the best pinhole diameter for the
There is no reason for the computer to spit out a number of complaints:
-[source,bash]
+[source,shell]
....
Syntax error: What
Syntax error: is
@@ -2667,7 +2667,7 @@ So, it makes perfect sense to start each line with the focal length as entered b
No, wait! Not as entered by the user. What if the user types in something like this:
-[source,bash]
+[source,shell]
....
00000000150
....
@@ -2680,7 +2680,7 @@ But...
What if the user types something like this:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423
....
@@ -2697,7 +2697,7 @@ What will we do?
We will slap him in the face, in a manner of speaking:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423 ??? ??? ??? ??? ???
....
@@ -2720,7 +2720,7 @@ That still leaves one possibility uncovered: If all the user enters is a zero (o
We can determine this has happened whenever our counter stays at `0`. In that case we need to send `0` to the output, and perform another "slap in the face":
-[source,bash]
+[source,shell]
....
0 ??? ??? ??? ??? ???
....
@@ -3645,7 +3645,7 @@ Suppose we want to build a pinhole camera to use the 4x5 inch film. The standard
Our session might look like this:
-[source,bash]
+[source,shell]
....
% pinhole
@@ -3714,7 +3714,7 @@ Because 120 is a medium size film, we may name this file medium.
We can set its permissions to execute, and run it as if it were a program:
-[source,bash]
+[source,shell]
....
% chmod 755 medium
% ./medium
@@ -3722,14 +3722,14 @@ We can set its permissions to execute, and run it as if it were a program:
UNIX(R) will interpret that last command as:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium
....
It will run that command and display:
-[source,bash]
+[source,shell]
....
80 358 224 256 1562 11
30 219 137 128 586 9
@@ -3744,21 +3744,21 @@ It will run that command and display:
Now, let us enter:
-[source,bash]
+[source,shell]
....
% ./medium -c
....
UNIX(R) will treat that as:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium -c
....
That gives it two conflicting options: `-b` and `-c` (Use Bender's constant and use Connors' constant). We have programmed it so later options override early ones-our program will calculate everything using Connors' constant:
-[source,bash]
+[source,shell]
....
80 331 242 256 1826 11
30 203 148 128 685 9
@@ -3773,7 +3773,7 @@ That gives it two conflicting options: `-b` and `-c` (Use Bender's constant and
We decide we want to go with Bender's constant after all. We want to save its values as a comma-separated file:
-[source,bash]
+[source,shell]
....
% ./medium -b -e > bender
% cat bender
@@ -3817,7 +3817,7 @@ There is a major difference in the philosophy of design between MS-DOS(R) and UN
This is NEVER guaranteed under UNIX(R). It is quite common for a UNIX(R) user to pipe and redirect program input and output:
-[source,bash]
+[source,shell]
....
% program1 | program2 | program3 > file1
....
diff --git a/documentation/content/en/books/faq/_index.adoc b/documentation/content/en/books/faq/_index.adoc
index f613326964..654d55232c 100644
--- a/documentation/content/en/books/faq/_index.adoc
+++ b/documentation/content/en/books/faq/_index.adoc
@@ -337,7 +337,7 @@ After choosing the format and compression mechanism, download the compressed fil
For example, the split HTML version of the FAQ, compressed using man:bzip2[1], can be found in [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2# To download and uncompress that file, type:
-[source,bash]
+[source,shell]
....
# fetch https://download.freebsd.org/ftp/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -445,14 +445,14 @@ If Windows(R) is installed first, then yes. FreeBSD's boot manager will then man
This depends upon the boot manager. The FreeBSD boot selection menu can be reinstalled using man:boot0cfg[8]. For example, to restore the boot menu onto the disk _ada0_:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
The non-interactive MBR bootloader can be installed using man:gpart[8]:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -576,7 +576,7 @@ See the complete list in the Hardware Notes for FreeBSD link:{u-rel121-hardware}
The default console driver, man:vt[4], provides the ability to use a mouse pointer in text consoles to cut & paste text. Run the mouse daemon, man:moused[8], and turn on the mouse pointer in the virtual console:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -627,7 +627,7 @@ bindkey ^[[3~ delete-char # for xterm
Some sound cards set their output volume to 0 at every boot. Run the following command every time the machine boots:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -739,7 +739,7 @@ The computer has two or more clocks, and FreeBSD has chosen to use the wrong one
Run man:dmesg[8], and check for lines that contain `Timecounter`. The one with the highest quality value that FreeBSD chose.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -750,7 +750,7 @@ Timecounters tick every 1.000 msec
Confirm this by checking the `kern.timecounter.hardware` man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -767,7 +767,7 @@ Or the BIOS may modify the TSC clock-perhaps to change the speed of the processo
In this example, the `i8254` clock is also available, and can be selected by writing its name to the `kern.timecounter.hardware` man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -948,7 +948,7 @@ There are a number of possible causes for this problem:
The name of the scheduler currently being used is directly available as the value of the `kern.sched.name` sysctl:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: ULE
@@ -988,7 +988,7 @@ When the disks are formatted with UFS, never use anything but man:dump[8] and ma
For example, to move [.filename]#/dev/ada1s1a# with [.filename]#/mnt# as the temporary mount point, type:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -998,7 +998,7 @@ For example, to move [.filename]#/dev/ada1s1a# with [.filename]#/mnt# as the tem
Rearranging partitions with `dump` takes a bit more work. To merge a partition like [.filename]#/var# into its parent, create the new partition large enough for both, move the parent partition as described above, then move the child partition into the empty directory that the first move created:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -1010,7 +1010,7 @@ Rearranging partitions with `dump` takes a bit more work. To merge a partition l
To split a directory from its parent, say putting [.filename]#/var# on its own partition when it was not before, create both partitions, then mount the child partition on the appropriate directory in the temporary mount point, then move the old single partition:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -1069,7 +1069,7 @@ FreeBSD includes the Network File System NFS and the FreeBSD Ports Collection pr
The secondary DOS partitions are found after _all_ the primary partitions. For example, if `E` is the second DOS partition on the second SCSI drive, there will be a device file for "slice 5" in [.filename]#/dev#. To mount it:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1110,14 +1110,14 @@ This cannot be accomplished with the standard boot manager without rewriting it.
If the drive already has a file system on it, use a command like this:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
If the drive will only be used with FreeBSD systems, partition it with UFS or ZFS. This will provide long filename support, improvement in performance, and stability. If the drive will be used by other operating systems, a more portable choice, such as msdosfs, is better.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1126,14 +1126,14 @@ If the drive will only be used with FreeBSD systems, partition it with UFS or ZF
Finally, create a new file system:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
and mount it:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1185,7 +1185,7 @@ By default, man:mount[8] will attempt to mount the last data track (session) of
As `root` set the sysctl variable `vfs.usermount` to `1`.
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1205,7 +1205,7 @@ For example, to allow users to mount the first USB drive add:
All users can now mount devices they could read onto a directory that they own:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1213,7 +1213,7 @@ All users can now mount devices they could read onto a directory that they own:
Unmounting the device is simple:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1294,7 +1294,7 @@ Deduplication can also lead to some unexpected situations. In particular, deleti
This could happen because the pool is 100% full. ZFS requires space on the disk to write transaction metadata. To restore the pool to a usable state, truncate the file to delete:
-[source,bash]
+[source,shell]
....
% truncate -s 0 unimportant-file
....
@@ -1333,7 +1333,7 @@ The primary configuration file is [.filename]#/etc/defaults/rc.conf# which is de
For example, if to start man:named[8], the included DNS server:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1354,7 +1354,7 @@ This is normally caused by editing the system crontab. This is not the correct w
To delete the extra, incorrect crontab:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1366,7 +1366,7 @@ This is a security feature. In order to `su` to `root`, or any other account wit
To allow someone to `su` to `root`, put them in the `wheel` group using `pw`:
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1461,7 +1461,7 @@ If the root partition cannot be mounted from single-user mode, it is possible th
When using man:vt[4], the default console driver, this can be done by setting the following man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.vt.kbd_reboot=0
....
@@ -1471,7 +1471,7 @@ When using man:vt[4], the default console driver, this can be done by setting th
Use this man:perl[1] command:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1480,7 +1480,7 @@ where _file(s)_ is one or more files to process. The modification is done in-pla
Alternatively, use man:tr[1]:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1494,7 +1494,7 @@ Yet another way to reformat DOS text files is to use the package:converters/dosu
Go into single-user mode and then back to multi-user mode:
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1519,7 +1519,7 @@ Short answer: the security level is greater than 0. Reboot directly to single-us
Long answer: FreeBSD disallows changing system flags at security levels greater than 0. To check the current security level:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1533,7 +1533,7 @@ Short answer: the system is at a security level greater than 1. Reboot directly
Long answer: FreeBSD disallows changing the time by more that one second at security levels greater than 1. To check the security level:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1585,7 +1585,7 @@ There are a couple of kinds of "free memory". The most common is the amount of m
To see what man:newsyslog[8] will do, use the following:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1616,7 +1616,7 @@ Use package:x11/xorg-minimal[], which builds and installs only the necessary Xor
Install Xorg from FreeBSD packages:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1663,7 +1663,7 @@ link sysmouse mouse
This link can be created by restarting man:devfs[5] with the following command (as `root`):
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1734,7 +1734,7 @@ For security reasons, the default setting is to not allow a machine to remotely
To enable this feature, start X with the optional `-listen_tcp` argument:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1847,7 +1847,7 @@ Assuming all Windows keyboards are standard, the keycodes for these three keys a
To have the left kbd:[Windows] key print a comma, try this.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1919,14 +1919,14 @@ Yes. For instructions on how to use NAT over a PPP connection, see the link:{han
If the alias is on the same subnet as an address already configured on the interface, add `netmask 0xffffffff` to this command:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Otherwise, specify the network address and netmask as usual:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1938,7 +1938,7 @@ More information can be found in the FreeBSD link:{handbook}#configtuning-virtua
Some versions of the Linux(R) NFS code only accept mount requests from a privileged port; try to issue the following command:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1965,7 +1965,7 @@ If the kernel is compiled with the `IPFIREWALL` option, be aware that the defaul
If the firewall is unintentionally misconfigured, restore network operability by typing the following as `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1979,7 +1979,7 @@ For further information on configuring this firewall, see the link:{handbook}#fi
Possibly because network address translation (NAT) is needed instead of just forwarding packets. A "fwd" rule only forwards packets, it does not actually change the data inside the packet. Consider this rule:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -2030,14 +2030,14 @@ This kernel message indicates that some activity is provoking it to send a large
The first number in the message indicates how many packets the kernel would have sent if the limit was not in place, and the second indicates the limit. This limit is controlled using `net.inet.icmp.icmplim`. This example sets the limit to `300` packets per second:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
To disable these messages without disabling response limiting, use `net.inet.icmp.icmplim_output` to disable the output:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -2059,7 +2059,7 @@ A packet is coming from outside the network unexpectedly. To disable them, set `
Configure your kernel with these settings:
-[source,bash]
+[source,shell]
....
include GENERIC
ident GENERIC-IPV6ONLY
@@ -2109,7 +2109,7 @@ A UNIX(R) process is owned by a particular userid. If the user ID is not the `ro
To check the status of the securelevel on a running system:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -2152,7 +2152,7 @@ See link:{handbook}#serialconsole-setup/[this section of the Handbook].
As the FreeBSD kernel boots, it will probe for the serial ports for which the kernel is configured. Either watch the boot messages closely or run this command after the system is up and running:
-[source,bash]
+[source,shell]
....
% grep -E '^(sio|uart)[0-9]' < /var/run/dmesg.boot
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2215,7 +2215,7 @@ The built-in man:tip[1] and man:cu[1] utilities can only access the [.filename]#
Alternatively, everyone can be configured to run man:tip[1] and man:cu[1] by typing:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2241,7 +2241,7 @@ The simple answer is that free memory is wasted memory. Any memory that programs
Symlinks do not have permissions, and by default, man:chmod[1] will follow symlinks to change the permissions on the source file, if possible. For the file, [.filename]#foo# with a symlink named [.filename]#bar#, this command will always succeed.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2255,7 +2255,7 @@ When changing modes of the file hierarchies rooted in the files instead of the f
`-R` does a _recursive_ man:chmod[1]. Be careful about specifying directories or symlinks to directories to man:chmod[1]. To change the permissions of a directory referenced by a symlink, use man:chmod[1] without any options and follow the symlink with a trailing slash ([.filename]#/#). For example, if [.filename]#foo# is a symlink to directory [.filename]#bar#, to change the permissions of [.filename]#foo# (actually [.filename]#bar#), do something like:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2517,14 +2517,14 @@ To proceed:
. Write down the instruction pointer value. Note that the `0x8:` part at the beginning is not significant in this case: it is the `0xf0xxxxxx` part that we want.
. When the system reboots, do the following:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxxx
....
+
where `f0xxxxxx` is the instruction pointer value. The odds are you will not get an exact match since the symbols in the kernel symbol table are for the entry points of functions and the instruction pointer address will be somewhere inside a function, not at the start. If you do not get an exact match, omit the last digit from the instruction pointer value and try again:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -2547,21 +2547,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
. Change to the [.filename]#/usr/src# directory:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
. Compile the kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
. Wait for man:make[1] to finish compiling.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2585,7 +2585,7 @@ FreeBSD crash dumps are usually the same size as physical RAM. Therefore, make s
Once the crash dump has been recovered , get a stack trace as follows:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/en/books/fdp-primer/asciidoctor-primer/chapter.adoc b/documentation/content/en/books/fdp-primer/asciidoctor-primer/chapter.adoc
index 6b0b8ff187..d13a79de9c 100644
--- a/documentation/content/en/books/fdp-primer/asciidoctor-primer/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/asciidoctor-primer/chapter.adoc
@@ -39,7 +39,7 @@ More precisely, they need help identifying what is what. Consider this text:
To remove [.filename]#/tmp/foo#, use man:rm[1].
-[source,bash]
+[source,shell]
----
% rm /tmp/foo
----
@@ -52,7 +52,7 @@ The previous example is actually represented in this document like this:
....
To remove [.filename]#/tmp/foo#, use man:rm[1].
-[source,bash]
+[source,shell]
----
% rm /tmp/foo
----
diff --git a/documentation/content/en/books/fdp-primer/doc-build/chapter.adoc b/documentation/content/en/books/fdp-primer/doc-build/chapter.adoc
index 1bdf595d8d..13ceb60f53 100644
--- a/documentation/content/en/books/fdp-primer/doc-build/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/doc-build/chapter.adoc
@@ -57,7 +57,7 @@ To render the documentation and the website to `html` use one of the following e
.Build the documentation
[example]
====
-[source,bash]
+[source,shell]
....
% cd ~/doc/documentation
% make
@@ -68,7 +68,7 @@ To render the documentation and the website to `html` use one of the following e
.Build the website
[example]
====
-[source,bash]
+[source,shell]
....
% cd ~/doc/website
% make
@@ -79,7 +79,7 @@ To render the documentation and the website to `html` use one of the following e
.Build the entire documentation project
[example]
====
-[source,bash]
+[source,shell]
....
% cd ~/doc
% make -j2
@@ -97,7 +97,7 @@ In order to export the document correctly all the extensions should be passed us
.Build the entire documentation project
[example]
====
-[source,bash]
+[source,shell]
....
asciidoctor-pdf -r ./shared/lib/man-macro.rb -r ./shared/lib/git-macro.rb -r ./shared/lib/packages-macro.rb -r ./shared/lib/inter-document-references-macro.rb -r ./shared/lib/sectnumoffset-treeprocessor.rb --doctype=book -a skip-front-matter -a pdf-theme=./themes/default-pdf-theme.yml content/en/books/handbook/book.adoc
....
@@ -130,7 +130,7 @@ The [.filename]#Makefile# appearing in subdirectories also support `make run` to
This [.filename]#Makefile# takes the following form:
-[source,bash]
+[source,shell]
....
# Generate the FreeBSD documentation
#
@@ -196,7 +196,7 @@ build: .PHONY <.>
This [.filename]#Makefile# takes the form of:
-[source,bash]
+[source,shell]
....
# Generate the FreeBSD website
#
diff --git a/documentation/content/en/books/fdp-primer/editor-config/chapter.adoc b/documentation/content/en/books/fdp-primer/editor-config/chapter.adoc
index b86f42ef36..0e8f4405c6 100644
--- a/documentation/content/en/books/fdp-primer/editor-config/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/editor-config/chapter.adoc
@@ -164,7 +164,7 @@ Install from package:editors/nano[] or package:editors/nano-devel[].
Copy the sample XML syntax highlight file to the user's home directory:
-[source,bash]
+[source,shell]
....
% cp /usr/local/shared/nano/xml.nanorc ~/.nanorc
....
@@ -188,7 +188,7 @@ color ,yellow "^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$"
Process the file to create embedded tabs:
-[source,bash]
+[source,shell]
....
% perl -i'' -pe 's/TAB/\t/g' ~/.nanorc
....
@@ -198,7 +198,7 @@ Process the file to create embedded tabs:
Specify additional helpful options when running the editor:
-[source,bash]
+[source,shell]
....
% nano -AKipwz -r 70 -T8 _index.adoc
....
@@ -211,7 +211,7 @@ alias nano "nano -AKipwz -r 70 -T8"
After the alias is defined, the options will be added automatically:
-[source,bash]
+[source,shell]
....
% nano _index.adoc
....
diff --git a/documentation/content/en/books/fdp-primer/manual-pages/chapter.adoc b/documentation/content/en/books/fdp-primer/manual-pages/chapter.adoc
index 915bf07fc7..46b770a624 100644
--- a/documentation/content/en/books/fdp-primer/manual-pages/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/manual-pages/chapter.adoc
@@ -240,7 +240,7 @@ Note how the commas at the end of the `.Xr` lines have been placed after a space
Some very common macros will be shown here. For more usage examples, see man:mdoc[7], man:groff_mdoc[7], or search for actual use in [.filename]#/usr/share/man/man*# directories. For example, to search for examples of the `.Bd`_Begin display_ macro:
-[source,bash]
+[source,shell]
....
% find /usr/share/man/man* | xargs zgrep '.Bd'
....
@@ -418,35 +418,35 @@ Testing a new manual page can be challenging. Fortunately there are some tools t
Use man:mandoc[1]'s linter to check for parsing errors:
-[source,bash]
+[source,shell]
....
% mandoc -T lint ./mynewmanpage.8
....
Use package:textproc/igor[] to proofread the manual page:
-[source,bash]
+[source,shell]
....
% igor ./mynewmanpage.8
....
Use man:man[1] to check the final result of your changes:
-[source,bash]
+[source,shell]
....
% man ./mynewmanpage.8
....
You can use man:col[1] to filter the output of man:man[1] and get rid of the backspace characters before loading the result in your favorite editor for spell checking:
-[source,bash]
+[source,shell]
....
% man ./mynewmanpage.8 | col -b | vim -R -
....
Spell-checking with fully-featured dictionaries is encouraged, and can be accomplished by using package:textproc/hunspell[] or package:textproc/aspell[] combined with package:textproc/en-hunspell[] or package:textproc/en-aspell[], respectively. For instance:
-[source,bash]
+[source,shell]
....
% aspell check --lang=en --mode=nroff ./mynewmanpage.8
....
diff --git a/documentation/content/en/books/fdp-primer/overview/chapter.adoc b/documentation/content/en/books/fdp-primer/overview/chapter.adoc
index 6645f73ecc..2d11df0a1b 100644
--- a/documentation/content/en/books/fdp-primer/overview/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/overview/chapter.adoc
@@ -44,21 +44,21 @@ Some preparatory steps must be taken before editing the FreeBSD documentation. F
====
. Install these packages. These packages are all of the software needed to edit and build FreeBSD documentation. The Git package is needed to obtain a working copy of the documentation and generate patches with.
+
-[source,bash]
+[source,shell]
....
# pkg install gohugo python3 git-lite rubygem-asciidoctor rubygem-rouge
....
+
. Optional: to generate PDF documentation install `asciidoctor-pdf`
+
-[source,bash]
+[source,shell]
....
# pkg install rubygem-asciidoctor-pdf
....
+
. Install a local working copy of the documentation from the FreeBSD repository in [.filename]#~/doc# (see <<working-copy>>).
+
-[source,bash]
+[source,shell]
....
% git clone https://git.FreeBSD.org/doc.git doc
....
@@ -76,14 +76,14 @@ Review the output and edit the file to fix any problems shown, then rerun the co
+
. _Always_ build-test changes before submitting them. Running `make` in the top-level directory of the documentation will generate that documentation in HTML format.
+
-[source,bash]
+[source,shell]
....
make
....
+
. When changes are complete and tested, generate a "diff file":
+
-[source,bash]
+[source,shell]
....
% cd ~/doc
% git diff > bsdinstall.diff.txt
diff --git a/documentation/content/en/books/fdp-primer/po-translations/chapter.adoc b/documentation/content/en/books/fdp-primer/po-translations/chapter.adoc
index 3736da2b4e..4a7650cd25 100644
--- a/documentation/content/en/books/fdp-primer/po-translations/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/po-translations/chapter.adoc
@@ -43,7 +43,7 @@ This example shows the creation of a Spanish translation of the short link:{leap
.Procedure: Install a PO Editor
. A PO editor is needed to edit translation files. This example uses package:editors/poedit[].
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/poedit
# make install clean
@@ -59,14 +59,14 @@ When a new translation is first created, the directory structure must be created
. Create a directory for the new translation. The English article source is in [.filename]#~/doc/en/articles/leap-seconds/#. The Spanish translation will go in [.filename]#~/doc/es/articles/leap-seconds/#. The path is the same except for the name of the language directory.
+
-[source,bash]
+[source,shell]
....
% mkdir ~/doc/es/articles/leap-seconds/
....
. Copy the [.filename]#_index.adoc# from the original document into the translation directory:
+
-[source,bash]
+[source,shell]
....
% cp ~/doc/en/articles/leap-seconds/_index.adoc \
~/doc/es/articles/leap-seconds/
@@ -82,7 +82,7 @@ Translating a document consists of two steps: extracting translatable strings fr
. Extract the translatable strings from the original English version into a PO file:
+
-[source,bash]
+[source,shell]
....
% cd ~/doc/es/articles/leap-seconds/
% po4a-gettextize --format asciidoc --master _index.adoc --master-charset "UTF-8" >> es.pot
@@ -92,7 +92,7 @@ Translating a document consists of two steps: extracting translatable strings fr
+
The PO file name is the language region code. For Spanish, the file name is [.filename]#es.po#.
+
-[source,bash]
+[source,shell]
....
% poedit es.po
....
@@ -104,7 +104,7 @@ The PO file name is the language region code. For Spanish, the file name is [.fi
.Procedure: Generating a Translated Document
. Generate the translated document:
+
-[source,bash]
+[source,shell]
....
% cd ~/doc/es/articles/leap-seconds/
% po4a-translate -f asciidoc -m document.po -l document.po --keep 0 -p es.po -M UTF-8
@@ -114,7 +114,7 @@ The name of the generated document matches the name of the English original, usu
+
. Check the generated file by rendering it to HTML and viewing it with a web browser:
+
-[source,bash]
+[source,shell]
....
% make
....
@@ -249,7 +249,7 @@ Create a new Spanish translation of the link:{porters-handbook}[Porter's Handboo
. The Spanish language books directory [.filename]#~/doc/es/books/# already exists, so only a new subdirectory for the Porter's Handbook is needed:
+
-[source,bash]
+[source,shell]
....
% cd ~/doc/es/books/
% mkdir porters-handbook
@@ -257,7 +257,7 @@ Create a new Spanish translation of the link:{porters-handbook}[Porter's Handboo
. Copy the content from the original book:
+
-[source,bash]
+[source,shell]
....
% cd ~/doc/es/books/porters-handbook
% cp ~/doc/en/books/porters-handbook/ .
@@ -288,7 +288,7 @@ Enter Spanish translations of the contents of the Porter's Handbook.
======
. Change to the Spanish Porter's Handbook directory and update the PO file. The generated PO file is called [.filename]#es_ES.po# as shown in <<po-translations-language-names>>.
+
-[source,bash]
+[source,shell]
....
% cd ~/doc/es/books/porters-handbook
% po4a-gettextize --format asciidoc --master _index.adoc --master-charset "UTF-8" >> es.pot
@@ -296,7 +296,7 @@ Enter Spanish translations of the contents of the Porter's Handbook.
. Enter translations using a PO editor:
+
-[source,bash]
+[source,shell]
....
% poedit es.pot
....
@@ -376,7 +376,7 @@ The diff files created by these examples can be attached to a https://bugs.freeb
. Create a diff of the new files from the [.filename]#~/doc/# base directory so the full path is shown with the filenames. This helps committers identify the target language directory.
+
-[source,bash]
+[source,shell]
....
% cd ~/doc
% git diff es/articles/nanobsd/ > /tmp/es_nanobsd.diff
diff --git a/documentation/content/en/books/fdp-primer/preface/chapter.adoc b/documentation/content/en/books/fdp-primer/preface/chapter.adoc
index 2a4925175e..bfa45deae5 100644
--- a/documentation/content/en/books/fdp-primer/preface/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/preface/chapter.adoc
@@ -58,7 +58,7 @@ This table describes the typographic conventions used in this book.
|On-screen computer output.
a|
-[source,bash]
+[source,shell]
....
You have mail.
....
@@ -67,7 +67,7 @@ You have mail.
|What the user types, contrasted with on-screen computer output.
a|
-[source,bash]
+[source,shell]
....
% date +"The time is %H:%M"
The time is 09:18
diff --git a/documentation/content/en/books/fdp-primer/rosetta/chapter.adoc b/documentation/content/en/books/fdp-primer/rosetta/chapter.adoc
index dc45558ef1..68ff034429 100644
--- a/documentation/content/en/books/fdp-primer/rosetta/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/rosetta/chapter.adoc
@@ -159,7 +159,7 @@ a|
a|
[source]
....
-[source,bash]
+[source,shell]
----
# mkdir -p /var/spool/lpd/lp
----
diff --git a/documentation/content/en/books/fdp-primer/translations/chapter.adoc b/documentation/content/en/books/fdp-primer/translations/chapter.adoc
index 795df33834..14c82e5f98 100644
--- a/documentation/content/en/books/fdp-primer/translations/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/translations/chapter.adoc
@@ -58,7 +58,7 @@ English is not strictly necessary. For example, you could do a Hungarian transla
It is strongly recommended that you maintain a local copy of the FreeBSD Git repository (at least the documentation part). This can be done by running:
-[source,bash]
+[source,shell]
....
% git clone https://cgit.FreeBSD.org/doc.git doc
....
@@ -74,7 +74,7 @@ You should be comfortable using git. This will allow you to see what has changed
For example, to view the differences between revisions `r33733` and `r33734` of [.filename]#content/en/books/fdp-primer/book.adoc#, run:
-[source,bash]
+[source,shell]
....
% git diff -r33733:33734 content/en/books/fdp-primer/book.adoc
....
@@ -131,7 +131,7 @@ head/
Use man:tar[1] and man:gzip[1] to compress up your documentation, and send it to the project.
-[source,bash]
+[source,shell]
....
% cd doc
% tar cf swedish-docs.tar sv
diff --git a/documentation/content/en/books/fdp-primer/working-copy/chapter.adoc b/documentation/content/en/books/fdp-primer/working-copy/chapter.adoc
index 9bfe290a37..4f5bf8c27a 100644
--- a/documentation/content/en/books/fdp-primer/working-copy/chapter.adoc
+++ b/documentation/content/en/books/fdp-primer/working-copy/chapter.adoc
@@ -28,7 +28,7 @@ A full copy of the documentation tree can occupy 700 megabytes of disk space. Al
link:https://git-scm.com/[Git] is used to manage the FreeBSD documentation files. It is obtained by installing the Git package:
-[source,bash]
+[source,shell]
....
# pkg install git-lite
....
@@ -50,14 +50,14 @@ FreeBSD documentation is traditionally stored in [.filename]#/usr/doc/#, and sys
A download of a working copy from the repository is called a _clone_, and done with `git clone`. This example clones a copy of the latest version (`main`) of the main documentation tree:
-[source,bash]
+[source,shell]
....
% git clone https://git.FreeBSD.org/doc.git ~/doc
....
A checkout of the source code to work on manual pages is very similar:
-[source,bash]
+[source,shell]
....
% git clone https://git.FreeBSD.org/src.git ~/src
....
@@ -67,7 +67,7 @@ A checkout of the source code to work on manual pages is very similar:
The documents and files in the FreeBSD repository change daily. People modify files and commit changes frequently. Even a short time after an initial checkout, there will already be differences between the local working copy and the main FreeBSD repository. To update the local version with the changes that have been made to the main repository, use `git pull` on the directory containing the local working copy:
-[source,bash]
+[source,shell]
....
% git pull ~/doc
....
@@ -79,7 +79,7 @@ Get in the protective habit of using `git pull` before editing document files. S
Sometimes it turns out that changes were not necessary after all, or the writer just wants to start over. Files can be "reset" to their unchanged form with `git restore`. For example, to erase the edits made to [.filename]#_index.adoc# and reset it to unmodified form:
-[source,bash]
+[source,shell]
....
% git restore _index.adoc
....
@@ -89,7 +89,7 @@ Sometimes it turns out that changes were not necessary after all, or the writer
After edits to a file or group of files are completed, the differences between the local working copy and the version on the FreeBSD repository must be collected into a single file for submission. These _diff_ files are produced by redirecting the output of `git diff` into a file:
-[source,bash]
+[source,shell]
....
% cd ~/doc
% git diff doc-fix-spelling.diff
@@ -101,7 +101,7 @@ If the diff file is to be submitted with the web "link:https://bugs.FreeBSD.org/
Be careful: `git diff` includes all changes made in the current directory and any subdirectories. If there are files in the working copy with edits that are not ready to be submitted yet, provide a list of only the files that are to be included:
-[source,bash]
+[source,shell]
....
% cd ~/doc
% git diff disks/_index.adoc printers/_index.adoc disks-printers.diff
diff --git a/documentation/content/en/books/handbook/advanced-networking/_index.adoc b/documentation/content/en/books/handbook/advanced-networking/_index.adoc
index 3d2306d21c..76fa248741 100644
--- a/documentation/content/en/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/en/books/handbook/advanced-networking/_index.adoc
@@ -77,7 +77,7 @@ This section provides an overview of routing basics. It then demonstrates how to
To view the routing table of a FreeBSD system, use man:netstat[1]:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -163,7 +163,7 @@ defaultrouter="10.20.30.1"
It is also possible to manually add the route using `route`:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -199,7 +199,7 @@ In this scenario, `RouterA` is a FreeBSD machine that is acting as a router to t
Before adding any static routes, the routing table on `RouterA` looks like this:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -214,7 +214,7 @@ default 10.0.0.1 UGS 0 49378 xl0
With the current routing table, `RouterA` does not have a route to the `192.168.2.0/24` network. The following command adds the `Internal Net 2` network to ``RouterA``'s routing table using `192.168.1.2` as the next hop:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -295,14 +295,14 @@ Connecting a computer to an existing wireless network is a very common situation
. Obtain the SSID (Service Set Identifier) and PSK (Pre-Shared Key) for the wireless network from the network administrator.
. Identify the wireless adapter. The FreeBSD [.filename]#GENERIC# kernel includes drivers for many common wireless adapters. If the wireless adapter is one of those models, it will be shown in the output from man:ifconfig[8]:
+
-[source,bash]
+[source,shell]
....
% ifconfig | grep -B3 -i wireless
....
+
On FreeBSD 11 or higher, use this command instead:
+
-[source,bash]
+[source,shell]
....
% sysctl net.wlan.devices
....
@@ -330,7 +330,7 @@ ifconfig_wlan0="WPA SYNCDHCP"
. Restart the computer, or restart the network service to connect to the network:
+
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -394,7 +394,7 @@ With this information in the kernel configuration file, recompile the kernel and
Information about the wireless device should appear in the boot messages, like this:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -407,14 +407,14 @@ Since the regulatory situation is different in various parts of the world, it is
The available region definitions can be found in [.filename]#/etc/regdomain.xml#. To set the data at runtime, use `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 regdomain ETSI country AT
....
To persist the settings, add it to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc create_args_wlan0="country AT regdomain ETSI"
....
@@ -429,7 +429,7 @@ Infrastructure (BSS) mode is the mode that is typically used. In this mode, a nu
To scan for available networks, use man:ifconfig[8]. This request may take a few moments to complete as it requires the system to switch to each available wireless frequency and probe for available access points. Only the superuser can initiate a scan:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -469,7 +469,7 @@ The output of a scan request lists each BSS/IBSS network found. Besides listing
One can also display the current list of known networks with:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -547,14 +547,14 @@ ifconfig_wlan0="DHCP"
The wireless interface is now ready to bring up:
-[source,bash]
+[source,shell]
....
# service netif start
....
Once the interface is running, use man:ifconfig[8] to see the status of the interface [.filename]#ath0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -620,7 +620,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -644,7 +644,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Or, try to configure the interface manually using the information in [.filename]#/etc/wpa_supplicant.conf#:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -655,7 +655,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
The next operation is to launch man:dhclient[8] to get the IP address from the DHCP server:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -681,7 +681,7 @@ If [.filename]#/etc/rc.conf# has an `ifconfig_wlan0="DHCP"` entry, man:dhclient[
If DHCP is not possible or desired, set a static IP address after man:wpa_supplicant[8] has authenticated the station:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -699,7 +699,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
When DHCP is not used, the default gateway and the nameserver also have to be manually set:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -751,7 +751,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -810,7 +810,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -877,7 +877,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -905,7 +905,7 @@ Wired Equivalent Privacy (WEP) is part of the original 802.11 standard. There is
WEP can be set up using man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -936,7 +936,7 @@ network={
Then:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -949,7 +949,7 @@ IBSS mode, also called ad-hoc mode, is designed for point to point connections.
On `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -968,7 +968,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
`B` should now be able to detect `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -978,7 +978,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
The `I` in the output confirms that `A` is in ad-hoc mode. Now, configure `B` with a different IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1011,7 +1011,7 @@ The NDIS driver wrapper for Windows(R) drivers does not currently support AP ope
Once wireless networking support is loaded, check if the wireless device supports the host-based access point mode, also known as hostap mode:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1023,14 +1023,14 @@ This output displays the card's capabilities. The `HOSTAP` word confirms that th
The wireless device can only be put into hostap mode during the creation of the network pseudo-device, so a previously created device must be destroyed first:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
then regenerated with the correct option before setting the other parameters:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1038,7 +1038,7 @@ then regenerated with the correct option before setting the other parameters:
Use man:ifconfig[8] again to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1068,7 +1068,7 @@ Although it is not recommended to run an AP without any authentication or encryp
Once the AP is configured, initiate a scan from another wireless machine to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1078,7 +1078,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
The client machine found the AP and can be associated with it:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1140,12 +1140,12 @@ wpa_pairwise=CCMP <.>
The next step is to start man:hostapd[8]:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1170,7 +1170,7 @@ It is not recommended to use WEP for setting up an AP since there is no authenti
The wireless device can now be put into hostap mode and configured with the correct SSID and IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1182,7 +1182,7 @@ The wireless device can now be put into hostap mode and configured with the corr
Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1197,7 +1197,7 @@ Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
From another wireless machine, it is now possible to initiate a scan to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1226,7 +1226,7 @@ Debugging support is provided by man:wpa_supplicant[8]. Try running this utility
* Once the system can associate with the access point, diagnose the network configuration using tools like man:ping[8].
* There are many lower-level debugging tools. Debugging messages can be enabled in the 802.11 protocol support layer using man:wlandebug[8]. For example, to enable console messages related to scanning for access points and the 802.11 protocol handshakes required to arrange communication:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i wlan0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1247,7 +1247,7 @@ Many cellphones provide the option to share their data connection over USB (ofte
Before attaching a device, load the appropriate driver into the kernel:
-[source,bash]
+[source,shell]
....
# kldload if_urndis
# kldload if_cdce
@@ -1258,7 +1258,7 @@ Once the device is attached ``ue``_0_ will be available for use like a normal ne
To make this change permanent and load the driver as a module at boot time, place the appropriate line of the following in [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
if_urndis_load="YES"
if_cdce_load="YES"
@@ -1278,7 +1278,7 @@ The Bluetooth stack in FreeBSD is implemented using the man:netgraph[4] framewor
Before attaching a device, determine which of the above drivers it uses, then load the driver. For example, if the device uses the man:ng_ubt[4] driver:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1292,7 +1292,7 @@ ng_ubt_load="YES"
Once the driver is loaded, plug in the USB dongle. If the driver load was successful, output similar to the following should appear on the console and in [.filename]#/var/log/messages#:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1302,7 +1302,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
To start and stop the Bluetooth stack, use its startup script. It is a good idea to stop the stack before unplugging the device. Starting the bluetooth stack might require man:hcsecd[8] to be started. When starting the stack, the output should be similar to the following:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1324,7 +1324,7 @@ The Host Controller Interface (HCI) provides a uniform method for accessing Blue
One of the most common tasks is discovery of Bluetooth devices within RF proximity. This operation is called _inquiry_. Inquiry and other HCI related operations are done using man:hccontrol[8]. The example below shows how to find out which Bluetooth devices are in range. The list of devices should be displayed in a few seconds. Note that a remote device will only answer the inquiry if it is set to _discoverable_ mode.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1340,7 +1340,7 @@ Inquiry complete. Status: No error [00]
The `BD_ADDR` is the unique address of a Bluetooth device, similar to the MAC address of a network card. This address is needed for further communication with a device and it is possible to assign a human readable name to a `BD_ADDR`. Information regarding the known Bluetooth hosts is contained in [.filename]#/etc/bluetooth/hosts#. The following example shows how to obtain the human readable name that was assigned to the remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1353,7 +1353,7 @@ Remote devices can be assigned aliases in [.filename]#/etc/bluetooth/hosts#. Mor
The Bluetooth system provides a point-to-point connection between two Bluetooth units, or a point-to-multipoint connection which is shared among several Bluetooth devices. The following example shows how to create a connection to a remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci create_connection BT_ADDR
....
@@ -1362,7 +1362,7 @@ The Bluetooth system provides a point-to-point connection between two Bluetooth
The following example shows how to obtain the list of active baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1371,7 +1371,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
A _connection handle_ is useful when termination of the baseband connection is required, though it is normally not required to do this by hand. The stack will automatically terminate inactive baseband connections.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1427,7 +1427,7 @@ In FreeBSD, these profiles are implemented with man:ppp[8] and the man:rfcomm_pp
In this example, man:rfcomm_pppd[8] is used to open a connection to a remote device with a `BD_ADDR` of `00:80:37:29:19:a4` on a DUNRFCOMM channel:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
@@ -1436,7 +1436,7 @@ The actual channel number will be obtained from the remote device using the SDP
In order to provide network access with the PPPLAN service, man:sdpd[8] must be running and a new entry for LAN clients must be created in [.filename]#/etc/ppp/ppp.conf#. Consult man:rfcomm_pppd[8] for examples. Finally, start the RFCOMMPPP server on a valid RFCOMM channel number. The RFCOMMPPP server will automatically register the Bluetooth LAN service with the local SDP daemon. The example below shows how to start the RFCOMMPPP server.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1455,7 +1455,7 @@ In FreeBSD, a netgraph L2CAP node is created for each Bluetooth device. This nod
A useful command is man:l2ping[8], which can be used to ping other devices. Some Bluetooth implementations might not return all of the data sent to them, so `0 bytes` in the following example is normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1466,7 +1466,7 @@ A useful command is man:l2ping[8], which can be used to ping other devices. Some
The man:l2control[8] utility is used to perform various operations on L2CAP nodes. This example shows how to obtain the list of logical connections (channels) and the list of baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1480,7 +1480,7 @@ Remote BD_ADDR Handle Flags Pending State
Another diagnostic tool is man:btsockstat[1]. It is similar to man:netstat[1], but for Bluetooth network-related data structures. The example below shows the same logical connection as man:l2control[8] above.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1514,7 +1514,7 @@ Normally, a SDP client searches for services based on some desired characteristi
The Bluetooth SDP server, man:sdpd[8], and command line client, man:sdpcontrol[8], are included in the standard FreeBSD installation. The following example shows how to perform a SDP browse query.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1542,7 +1542,7 @@ Bluetooth Profile Descriptor List:
Note that each service has a list of attributes, such as the RFCOMM channel. Depending on the service, the user might need to make note of some of the attributes. Some Bluetooth implementations do not support service browsing and may return an empty list. In this case, it is possible to search for the specific service. The example below shows how to search for the OBEX Object Push (OPUSH) service:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1556,7 +1556,7 @@ sdpd_enable="YES"
Then the man:sdpd[8] daemon can be started with:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1565,7 +1565,7 @@ The local server application that wants to provide a Bluetooth service to remote
The list of services registered with the local SDP server can be obtained by issuing a SDP browse query via the local control channel:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1578,7 +1578,7 @@ The OBEX server and client are implemented by obexapp, which can be installed us
The OBEX client is used to push and/or pull objects from the OBEX server. An example object is a business card or an appointment. The OBEX client can obtain the RFCOMM channel number from the remote device via SDP. This can be done by specifying the service name instead of the RFCOMM channel number. Supported service names are: `IrMC`, `FTRN`, and `OPUSH`. It is also possible to specify the RFCOMM channel as a number. Below is an example of an OBEX session where the device information object is pulled from the cellular phone, and a new object, the business card, is pushed into the phone's directory.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1591,7 +1591,7 @@ Success, response: OK, Success (0x20)
In order to provide the OPUSH service, man:sdpd[8] must be running and a root folder, where all incoming objects will be stored, must be created. The default path to the root folder is [.filename]#/var/spool/obex#. Finally, start the OBEX server on a valid RFCOMM channel number. The OBEX server will automatically register the OPUSH service with the local SDP daemon. The example below shows how to start the OBEX server.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1602,7 +1602,7 @@ The Serial Port Profile (SPP) allows Bluetooth devices to perform serial cable e
In FreeBSD, man:rfcomm_sppd[1] implements SPP and a pseudo tty is used as a virtual serial port abstraction. The example below shows how to connect to a remote device's serial port service. A RFCOMM channel does not have to be specified as man:rfcomm_sppd[1] can obtain it from the remote device via SDP. To override this, specify a RFCOMM channel on the command line.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t
rfcomm_sppd[94692]: Starting on /dev/pts/6...
@@ -1611,7 +1611,7 @@ rfcomm_sppd[94692]: Starting on /dev/pts/6...
Once connected, the pseudo tty can be used as serial port:
-[source,bash]
+[source,shell]
....
# cu -l /dev/pts/6
....
@@ -1628,7 +1628,7 @@ cu -l $PTS
By default, when FreeBSD is accepting a new connection, it tries to perform a role switch and become master. Some older Bluetooth devices which do not support role switching will not be able to connect. Since role switching is performed when a new connection is being established, it is not possible to ask the remote device if it supports role switching. However, there is a HCI option to disable role switching on the local side:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1674,7 +1674,7 @@ In FreeBSD, man:if_bridge[4] is a kernel module which is automatically loaded by
The bridge is created using interface cloning. To create the bridge interface:
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1690,7 +1690,7 @@ When a bridge interface is created, it is automatically assigned a randomly gene
Next, specify which network interfaces to add as members of the bridge. For the bridge to forward packets, all member interfaces and the bridge need to be up:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1709,7 +1709,7 @@ ifconfig_fxp1="up"
If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces. The address can be set statically or via DHCP. This example sets a static IP address:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1731,7 +1731,7 @@ The Rapid Spanning Tree Protocol (RSTP or 802.1w) provides backwards compatibili
STP can be enabled on member interfaces using man:ifconfig[8]. For a bridge with [.filename]#fxp0# and [.filename]#fxp1# as the current interfaces, enable STP with:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1751,7 +1751,7 @@ This bridge has a spanning tree ID of `00:01:02:4b:d4:50` and a priority of `327
Another bridge on the network also has STP enabled:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1778,7 +1778,7 @@ A private interface does not forward any traffic to any other port that is also
span::
A span port transmits a copy of every Ethernet frame received by the bridge. The number of span ports configured on a bridge is unlimited, but if an interface is designated as a span port, it cannot also be used as a regular bridge port. This is most useful for snooping a bridged network passively on another host connected to one of the span ports of the bridge. For example, to send a copy of all frames out the interface named [.filename]#fxp4#:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1788,7 +1788,7 @@ If a bridge member interface is marked as sticky, dynamically learned address en
+
An example of using sticky addresses is to combine the bridge with VLANs in order to isolate customer networks without wasting IP address space. Consider that `CustomerA` is on `vlan100`, `CustomerB` is on `vlan101`, and the bridge has the address `192.168.0.1`:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1798,7 +1798,7 @@ In this example, both clients see `192.168.0.1` as their default gateway. Since
+
Any communication between the VLANs can be blocked using a firewall or, as seen in this example, private interfaces:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1809,14 +1809,14 @@ The number of unique source MAC addresses behind an interface can be limited. On
+
The following example sets the maximum number of Ethernet devices for `CustomerA` on `vlan100` to 10:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
Bridge interfaces also support monitor mode, where the packets are discarded after man:bpf[4] processing and are not processed or forwarded further. This can be used to multiplex the input of two or more interfaces into a single man:bpf[4] stream. This is useful for reconstructing the traffic for network taps that transmit the RX/TX signals out through two separate interfaces. For example, to read the input from four network interfaces as one stream:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1842,7 +1842,7 @@ bsnmpd_enable="YES"
Then, start man:bsnmpd[1]:
-[source,bash]
+[source,shell]
....
# service bsnmpd start
....
@@ -1857,7 +1857,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
To monitor a single bridge using the IETF BRIDGE-MIB (RFC4188):
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1881,7 +1881,7 @@ The `dot1dStpTopChanges.0` value is two, indicating that the STP bridge topology
To monitor multiple bridge interfaces, the private BEGEMOT-BRIDGE-MIB can be used:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1902,7 +1902,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
To change the bridge interface being monitored via the `mib-2.dot1dBridge` subtree:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1943,7 +1943,7 @@ Frame ordering is mandatory on Ethernet links and any traffic between two statio
On the Cisco(R) switch, add the _FastEthernet0/1_ and _FastEthernet0/2_ interfaces to channel group _1_:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1956,7 +1956,7 @@ interface FastEthernet0/2
On the FreeBSD system, create the man:lagg[4] interface using the physical interfaces _fxp0_ and _fxp1_ and bring the interfaces up with an IP address of _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1966,7 +1966,7 @@ On the FreeBSD system, create the man:lagg[4] interface using the physical inter
Next, verify the status of the virtual interface:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1984,7 +1984,7 @@ Ports marked as `ACTIVE` are part of the LAG that has been negotiated with the r
To see the port status on the Cisco(R) switch:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2022,7 +2022,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
Failover mode can be used to switch over to a secondary interface if the link is lost on the master interface. To configure failover, make sure that the underlying physical interfaces are up, then create the man:lagg[4] interface. In this example, _fxp0_ is the master interface, _fxp1_ is the secondary interface, and the virtual interface is assigned an IP address of _10.0.0.15/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2032,7 +2032,7 @@ Failover mode can be used to switch over to a secondary interface if the link is
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2081,7 +2081,7 @@ If the driver for the wireless interface is not loaded in the `GENERIC` or custo
In this example, the Ethernet interface, _re0_, is the master and the wireless interface, _wlan0_, is the failover. The _wlan0_ interface was created from the _ath0_ physical wireless interface, and the Ethernet interface will be configured with the MAC address of the wireless interface. First, determine the MAC address of the wireless interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2099,21 +2099,21 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Replace _wlan0_ to match the system's wireless interface name. The `ether` line will contain the MAC address of the specified interface. Now, change the MAC address of the Ethernet interface:
-[source,bash]
+[source,shell]
....
# ifconfig re0 ether b8:ee:65:5b:32:59
....
Bring the wireless interface up (replacing _FR_ with your own 2-letter country code), but do not set an IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 country FR ssid my_router up
....
Make sure the _re0_ interface is up, then create the man:lagg[4] interface with _re0_ as master with failover to _wlan0_:
-[source,bash]
+[source,shell]
....
# ifconfig re0 up
# ifconfig lagg0 create
@@ -2122,7 +2122,7 @@ Make sure the _re0_ interface is up, then create the man:lagg[4] interface with
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2138,7 +2138,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Then, start the DHCP client to obtain an IP address:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2191,7 +2191,7 @@ The command examples below assume use of the man:sh[1] shell. man:csh[1] and man
[.procedure]
. Create the root directory which will contain a FreeBSD installation to be NFS mounted:
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2213,7 +2213,7 @@ nfs_server_enable="YES"
. Start the NFS server:
+
-[source,bash]
+[source,shell]
....
# service nfsd start
....
@@ -2239,7 +2239,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
. Start man:inetd[8]:
+
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -2247,7 +2247,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
. Install the base system into [.filename]#${NFSROOTDIR}#, either by decompressing the official archives or by rebuilding the FreeBSD kernel and userland (refer to crossref:cutting-edge[makeworld,“Updating FreeBSD from Source”] for more detailed instructions, but do not forget to add `DESTDIR=_${NFSROOTDIR}_` when running the `make installkernel` and `make installworld` commands.
. Test that the TFTP server works and can download the boot loader which will be obtained via PXE:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2265,7 +2265,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
Replace _myhost.example.com_ with the hostname or IP address of the NFS server. In this example, the root file system is mounted read-only in order to prevent NFS clients from potentially deleting the contents of the root file system.
. Set the root password in the PXE environment for client machines which are PXE booting :
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2276,7 +2276,7 @@ Replace _myhost.example.com_ with the hostname or IP address of the NFS server.
When booting from an NFS root volume, [.filename]#/etc/rc# detects the NFS boot and runs [.filename]#/etc/rc.initdiskless#. In this case, [.filename]#/etc# and [.filename]#/var# need to be memory backed file systems so that these directories are writable but the NFS root directory is read-only:
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2332,7 +2332,7 @@ dhcpd_enable="YES"
Then start the DHCP service:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -2362,7 +2362,7 @@ image::pxe-nfs.png[]
+
. On the TFTP server, read [.filename]#/var/log/xferlog# to ensure that [.filename]#pxeboot# is being retrieved from the correct location. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2372,7 +2372,7 @@ Received 264951 bytes in 0.1 seconds
The `BUGS` sections in man:tftpd[8] and man:tftp[1] document some limitations with TFTP.
. Make sure that the root file system can be mounted via NFS. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2416,7 +2416,7 @@ A third form is to write the last 32 bits using the well known IPv4 notation. Fo
To view a FreeBSD system's IPv6 address, use man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2629,7 +2629,7 @@ carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2675,7 +2675,7 @@ Having two CARPVHIDs configured means that `hostc.example.org` will notice if ei
====
If the original master server becomes available again, `hostc.example.org` will not release the virtual IP address back to it automatically. For this to happen, preemption has to be enabled. The feature is disabled by default, it is controlled via the man:sysctl[8] variable `net.inet.carp.preempt`. The administrator can force the backup server to return the IP address to the master:
-[source,bash]
+[source,shell]
....
# ifconfig em0 vhid 1 state backup
....
@@ -2700,7 +2700,7 @@ if_carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2714,7 +2714,7 @@ device carp
Next, on each host, create a CARP device:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2754,7 +2754,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
Preemption is disabled in the [.filename]#GENERIC# FreeBSD kernel. If preemption has been enabled with a custom kernel, `hostc.example.org` may not release the IP address back to the original content server. The administrator can force the backup server to return the IP address to the master with the command:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
@@ -2775,7 +2775,7 @@ When configuring a VLAN, a couple pieces of information must be known. First, wh
To configure VLANs at run time, with a NIC of `em0` and a VLAN tag of `5` the command would look like this:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24
....
@@ -2799,14 +2799,14 @@ It is useful to assign a symbolic name to an interface so that when the associat
To configure VLAN `5`, on the NIC `em0`, assign the interface name `cameras`, and assign the interface an IP address of `_192.168.20.20_` with a `24`-bit prefix, use this command:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 name cameras inet 192.168.20.20/24
....
For an interface named `video`, use the following:
-[source,bash]
+[source,shell]
....
# ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24
....
diff --git a/documentation/content/en/books/handbook/audit/_index.adoc b/documentation/content/en/books/handbook/audit/_index.adoc
index de259728d9..0b6ae95166 100644
--- a/documentation/content/en/books/handbook/audit/_index.adoc
+++ b/documentation/content/en/books/handbook/audit/_index.adoc
@@ -93,7 +93,7 @@ auditd_enable="YES"
Then, start the audit daemon:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -307,7 +307,7 @@ Since audit trails are stored in the BSM binary format, several built-in tools a
For example, to dump the entire contents of a specified audit log in plain text:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -333,7 +333,7 @@ XML output format is also supported and can be selected by including `-x`.
Since audit logs may be very large, a subset of records can be selected using `auditreduce`. This example selects all audit records produced for the user `trhodes` stored in [.filename]#AUDITFILE#:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -344,7 +344,7 @@ Members of the `audit` group have permission to read audit trails in [.filename]
Audit pipes are cloning pseudo-devices which allow applications to tap the live audit record stream. This is primarily of interest to authors of intrusion detection and system monitoring applications. However, the audit pipe device is a convenient way for the administrator to allow live monitoring without running into problems with audit trail file ownership or log rotation interrupting the event stream. To track the live audit event stream:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -368,7 +368,7 @@ It is easy to produce audit event feedback cycles, in which the viewing of each
Audit trails are written to by the kernel and managed by the audit daemon, man:auditd[8]. Administrators should not attempt to use man:newsyslog.conf[5] or other tools to directly rotate audit logs. Instead, `audit` should be used to shut down auditing, reconfigure the audit system, and perform log rotation. The following command causes the audit daemon to create a new audit log and signal the kernel to switch to using the new log. The old log will be terminated and renamed, at which point it may then be manipulated by the administrator:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/en/books/handbook/basics/_index.adoc b/documentation/content/en/books/handbook/basics/_index.adoc
index 67787332e9..d425efa693 100644
--- a/documentation/content/en/books/handbook/basics/_index.adoc
+++ b/documentation/content/en/books/handbook/basics/_index.adoc
@@ -65,7 +65,7 @@ After reading this chapter, you will know:
Unless FreeBSD has been configured to automatically start a graphical environment during startup, the system will boot into a command line login prompt, as seen in this example:
-[source,bash]
+[source,shell]
....
FreeBSD/amd64 (pc3.example.org) (ttyv0)
@@ -143,21 +143,21 @@ _Be careful when changing this setting to `insecure`!_ If the `root` password is
The FreeBSD console default video mode may be adjusted to 1024x768, 1280x1024, or any other size supported by the graphics chip and monitor. To use a different video mode load the `VESA` module:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
To determine which video modes are supported by the hardware, use man:vidcontrol[1]. To get a list of supported video modes issue the following:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
The output of this command lists the video modes that are supported by the hardware. To select a new video mode, specify the mode using man:vidcontrol[1] as the `root` user:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -260,7 +260,7 @@ In this example, the user only becomes superuser in order to run `make install`
.Install a Program As the Superuser
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -313,7 +313,7 @@ The man:adduser[8] utility is interactive and walks through the steps for creati
.Adding a User on FreeBSD
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -375,7 +375,7 @@ By default, an interactive mode is used, as shown in the following example.
.`rmuser` Interactive Account Removal
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -405,7 +405,7 @@ In <<users-modifying-chpass-su>>, the superuser has typed `chpass jru` and is no
.Using `chpass` as Superuser
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -429,7 +429,7 @@ Other information:
.Using `chpass` as Regular User
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -454,7 +454,7 @@ Any user can easily change their password using man:passwd[1]. To prevent accide
.Changing Your Password
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -471,7 +471,7 @@ The superuser can change any user's password by specifying the username when run
.Changing Another User's Password as the Superuser
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -504,7 +504,7 @@ The superuser can modify [.filename]#/etc/group# using a text editor. Alternativ
.Adding a Group Using man:pw[8]
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -517,7 +517,7 @@ In this example, `1100` is the GID of `teamtwo`. Right now, `teamtwo` has no mem
.Adding User Accounts to a New Group Using man:pw[8]
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -530,7 +530,7 @@ The argument to `-M` is a comma-delimited list of users to be added to a new (em
.Adding a New Member to a Group Using man:pw[8]
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -543,7 +543,7 @@ In this example, the argument to `-m` is a comma-delimited list of users who are
.Using man:id[1] to Determine Group Membership
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
@@ -607,7 +607,7 @@ Table 4.1 summarizes the possible numeric and alphabetic possibilities. When rea
Use the `-l` argument to man:ls[1] to view a long directory listing that includes a column of information about a file's permissions for the owner, group, and everyone else. For example, an `ls -l` in an arbitrary directory may show:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -688,14 +688,14 @@ Symbolic permissions use characters instead of octal values to assign permission
These values are used with man:chmod[1], but with letters instead of numbers. For example, the following command would block other users from accessing _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
A comma separated list can be provided when more than one set of changes to a file must be made. For example, the following command removes the group and "world" write permission on _FILE_, and adds the execute permissions for everyone:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -706,21 +706,21 @@ In addition to file permissions, FreeBSD supports the use of "file flags". These
File flags are modified using man:chflags[1]. For example, to enable the system undeletable flag on the file [.filename]#file1#, issue the following command:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
To disable the system undeletable flag, put a "no" in front of the `sunlink`:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
To view the flags of a file, use `-lo` with man:ls[1]:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -742,7 +742,7 @@ The real user ID is the UID who owns or starts the process. The effective UID is
The setuid permission may be set by prefixing a permission set with the number four (4) as shown in the following example:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -765,7 +765,7 @@ To view this in real time, open two terminals. On one, type `passwd` as a normal
In terminal A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -773,12 +773,12 @@ Old Password:
In terminal B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -790,14 +790,14 @@ The `setgid` permission performs the same function as the `setuid` permission; e
To set the `setgid` permission on a file, provide man:chmod[1] with a leading two (2):
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
In the following listing, notice that the `s` is now in the field designated for the group permission settings:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -811,19 +811,19 @@ The `setuid` and `setgid` permission bits may lower system security, by allowing
When the `sticky bit` is set on a directory, it allows file deletion only by the file owner. This is useful to prevent file deletion in public directories, such as [.filename]#/tmp#, by users who do not own the file. To utilize this permission, prefix the permission set with a one (1):
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
The `sticky bit` permission will display as a `t` at the very end of the permission set:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -1147,7 +1147,7 @@ File systems are mounted using man:mount[8]. The most basic syntax is as follows
[example]
====
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -1211,7 +1211,7 @@ To see the processes running on the system, use man:ps[1] or man:top[1]. To disp
By default, man:ps[1] only shows the commands that are running and owned by the user. For example:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -1225,7 +1225,7 @@ A number of different options are available to change the information that is di
The output from man:top[1] is similar:
-[source,bash]
+[source,shell]
....
% top
last pid: 9609; load averages: 0.56, 0.45, 0.36 up 0+00:20:03 10:21:46
@@ -1278,7 +1278,7 @@ This example shows how to send a signal to man:inetd[8]. The man:inetd[8] config
. Find the PID of the process to send the signal to using man:pgrep[1]. In this example, the PID for man:inetd[8] is 198:
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -1286,7 +1286,7 @@ This example shows how to send a signal to man:inetd[8]. The man:inetd[8] config
+
. Use man:kill[1] to send the signal. As man:inetd[8] is owned by `root`, use man:su[1] to become `root` first.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1366,14 +1366,14 @@ Another feature of the shell is the use of environment variables. Environment va
How to set an environment variable differs between shells. In man:tcsh[1] and man:csh[1], use `setenv` to set environment variables. In man:sh[1] and `bash`, use `export` to set the current environment variables. This example sets the default `EDITOR` to [.filename]#/usr/local/bin/emacs# for the man:tcsh[1] shell:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
The equivalent command for `bash` would be:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1391,7 +1391,7 @@ The easiest way to permanently change the default shell is to use `chsh`. Runnin
Alternately, use `chsh -s` which will set the specified shell without opening an editor. For example, to change the shell to `bash`:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1400,7 +1400,7 @@ Alternately, use `chsh -s` which will set the specified shell without opening an
====
The new shell _must_ be present in [.filename]#/etc/shells#. If the shell was installed from the FreeBSD Ports Collection as described in crossref:ports[ports,Installing Applications: Packages and Ports], it should be automatically added to this file. If it is missing, add it using this command, replacing the path with the path of the shell:
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash >> /etc/shells
....
@@ -1414,21 +1414,21 @@ The UNIX(R) shell is not just a command interpreter, it acts as a powerful tool
Shell redirection is the action of sending the output or the input of a command into another command or into a file. To capture the output of the man:ls[1] command, for example, into a file, redirect the output:
-[source,bash]
+[source,shell]
....
% ls > directory_listing.txt
....
The directory contents will now be listed in [.filename]#directory_listing.txt#. Some commands can be used to read input, such as man:sort[1]. To sort this listing, redirect the input:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt
....
The input will be sorted and placed on the screen. To redirect that input into another file, one could redirect the output of man:sort[1] by mixing the direction:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt > sorted.txt
....
@@ -1439,7 +1439,7 @@ Through the use of these descriptors, the shell allows output and input to be pa
The UNIX(R) pipe operator, "|" allows the output of one command to be directly passed or directed to another program. Basically, a pipe allows the standard output of a command to be passed as standard input to another command, for example:
-[source,bash]
+[source,shell]
....
% cat directory_listing.txt | sort | less
....
@@ -1471,14 +1471,14 @@ Most devices in FreeBSD must be accessed through special files called device nod
The most comprehensive documentation on FreeBSD is in the form of manual pages. Nearly every program on the system comes with a short reference manual explaining the basic operation and available arguments. These manuals can be viewed using `man`:
-[source,bash]
+[source,shell]
....
% man command
....
where _command_ is the name of the command to learn about. For example, to learn more about man:ls[1], type:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1497,7 +1497,7 @@ Manual pages are divided into sections which represent the type of topic. In Fre
In some cases, the same topic may appear in more than one section of the online manual. For example, there is a `chmod` user command and a `chmod()` system call. To tell man:man[1] which section to display, specify the section number:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1506,7 +1506,7 @@ This will display the manual page for the user command man:chmod[1]. References
If the name of the manual page is unknown, use `man -k` to search for keywords in the manual page descriptions:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1515,7 +1515,7 @@ This command displays a list of commands that have the keyword "mail" in their d
To read the descriptions for all of the commands in [.filename]#/usr/bin#, type:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f * | more
@@ -1523,7 +1523,7 @@ To read the descriptions for all of the commands in [.filename]#/usr/bin#, type:
or
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis * |more
@@ -1536,7 +1536,7 @@ FreeBSD includes several applications and utilities produced by the Free Softwar
To use man:info[1], type:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/en/books/handbook/boot/_index.adoc b/documentation/content/en/books/handbook/boot/_index.adoc
index ed449cc98e..8edd5eeac7 100644
--- a/documentation/content/en/books/handbook/boot/_index.adoc
+++ b/documentation/content/en/books/handbook/boot/_index.adoc
@@ -97,7 +97,7 @@ The MBR installed by the FreeBSD installer is based on [.filename]#/boot/boot0#.
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -109,7 +109,7 @@ Default: F2
Other operating systems will overwrite an existing MBR if they are installed after FreeBSD. If this happens, or to replace the existing MBR with the FreeBSD MBR, use the following command:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -132,7 +132,7 @@ Stage two, [.filename]#boot2#, is slightly more sophisticated, and understands t
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -143,7 +143,7 @@ boot:
To replace the installed [.filename]#boot1# and [.filename]#boot2#, use `bsdlabel`, where _diskslice_ is the disk and slice to boot from, such as [.filename]#ad0s1# for the first slice on the first IDE disk:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -215,14 +215,14 @@ Finally, by default, loader issues a 10 second wait for key presses, and boots t
Here are some practical examples of loader usage. To boot the usual kernel in single-user mode :
-[source,bash]
+[source,shell]
....
boot -s
....
To unload the usual kernel and modules and then load the previous or another, specified kernel:
-[source,bash]
+[source,shell]
....
unload
load /path/to/kernelfile
@@ -232,7 +232,7 @@ Use the qualified [.filename]#/boot/GENERIC/kernel# to refer to the default kern
Use the following to load the usual modules with another kernel. Note that in this case it is not necessary the qualified name:
-[source,bash]
+[source,shell]
....
unload
set kernel="mykernel"
@@ -241,7 +241,7 @@ boot-conf
To load an automated kernel configuration script:
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -376,14 +376,14 @@ Once the system is booted, man:kenv[1] can be used to dump all of the variables.
The syntax for [.filename]#/boot/device.hints# is one variable per line, using the hash "#" as comment markers. Lines are constructed as follows:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
The syntax for the Stage 3 boot loader is:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/en/books/handbook/bsdinstall/_index.adoc b/documentation/content/en/books/handbook/bsdinstall/_index.adoc
index f98d9dc299..a294000363 100644
--- a/documentation/content/en/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/en/books/handbook/bsdinstall/_index.adoc
@@ -196,7 +196,7 @@ This example uses [.filename]#/dev/da0# as the target device where the image wil
====
. The command-line utility is available on BSD, Linux(R), and Mac OS(R) systems. To burn the image using `dd`, insert the USB stick and determine its device name. Then, specify the name of the downloaded installation file and the device name for the USB stick. This example burns the amd64 installation image to the first USB device on an existing FreeBSD system.
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-12.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -262,7 +262,7 @@ If the computer loads the existing operating system instead of the FreeBSD insta
On most machines, holding kbd:[C] on the keyboard during boot will boot from the CD. Otherwise, hold kbd:[Command+Option+O+F], or kbd:[Windows+Alt+O+F] on non-Apple(R) keyboards. At the `0 >` prompt, enter
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -899,7 +899,7 @@ The messages that appeared during boot can be reviewed by pressing kbd:[Scroll-L
If sshd was enabled in <<bsdinstall-config-serv>>, the first boot may be a bit slower as the system will generate the RSA and DSA keys. Subsequent boots will be faster. The fingerprints of the keys will be displayed, as seen in this example:
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1054,7 +1054,7 @@ Manufacturers generally advise against upgrading the motherboard BIOS unless the
If the system hangs while probing hardware during boot, or it behaves strangely during install, ACPI may be the culprit. FreeBSD makes extensive use of the system ACPI service on the i386 and amd64 platforms to aid in system configuration if it is detected during boot. Unfortunately, some bugs still exist in both the ACPI driver and within system motherboards and BIOS firmware. ACPI can be disabled by setting the `hint.acpi.0.disabled` hint in the third stage boot loader:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/en/books/handbook/config/_index.adoc b/documentation/content/en/books/handbook/config/_index.adoc
index d44ac80d4a..88b3cbec4c 100644
--- a/documentation/content/en/books/handbook/config/_index.adoc
+++ b/documentation/content/en/books/handbook/config/_index.adoc
@@ -155,7 +155,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <.>
To create a user crontab, invoke `crontab` in editor mode:
-[source,bash]
+[source,shell]
....
% crontab -e
....
@@ -194,7 +194,7 @@ The environment set by cron is discussed in man:crontab[5]. Checking that script
When finished editing the crontab, save the file. It will automatically be installed and cron will read the crontab and run its cron jobs at their specified times. To list the cron jobs in a crontab, use this command:
-[source,bash]
+[source,shell]
....
% crontab -l
0 14 * * * /usr/home/dru/bin/mycustomscript.sh
@@ -202,7 +202,7 @@ When finished editing the crontab, save the file. It will automatically be insta
To remove all of the cron jobs in a user crontab:
-[source,bash]
+[source,shell]
....
% crontab -r
remove crontab for dru? y
@@ -213,7 +213,7 @@ remove crontab for dru? y
FreeBSD uses the man:rc[8] system of startup scripts during system initialization and for managing services. The scripts listed in [.filename]#/etc/rc.d# provide basic services which can be controlled with the `start`, `stop`, and `restart` options to man:service[8]. For instance, man:sshd[8] can be restarted with the following command:
-[source,bash]
+[source,shell]
....
# service sshd restart
....
@@ -229,14 +229,14 @@ If a `natd_enable="NO"` line is already present, change the `NO` to `YES`. The m
Since the man:rc[8] system is primarily intended to start and stop services at system startup and shutdown time, the `start`, `stop` and `restart` options will only perform their action if the appropriate [.filename]#/etc/rc.conf# variable is set. For instance, `sshd restart` will only work if `sshd_enable` is set to `YES` in [.filename]#/etc/rc.conf#. To `start`, `stop` or `restart` a service regardless of the settings in [.filename]#/etc/rc.conf#, these commands should be prefixed with "one". For instance, to restart man:sshd[8] regardless of the current [.filename]#/etc/rc.conf# setting, execute the following command:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
To check if a service is enabled in [.filename]#/etc/rc.conf#, run the appropriate man:rc[8] script with `rcvar`. This example checks to see if man:sshd[8] is enabled in [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -252,7 +252,7 @@ The `# sshd` line is output from the above command, not a `root` console.
To determine whether or not a service is running, use `status`. For instance, to verify that man:sshd[8] is running:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -262,7 +262,7 @@ In some cases, it is also possible to `reload` a service. This attempts to send
The man:rc[8] system is used for network services and it also contributes to most of the system initialization. For instance, when the [.filename]#/etc/rc.d/bgfsck# script is executed, it prints out the following message:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -331,7 +331,7 @@ If the NIC is supported, determine the name of the FreeBSD driver for the NIC. R
The drivers for common NICs are already present in the [.filename]#GENERIC# kernel, meaning the NIC should be probed during boot. The system's boot messages can be viewed by typing `more /var/run/dmesg.boot` and using the spacebar to scroll through the text. In this example, two Ethernet NICs using the man:dc[4] driver are present on the system:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -373,21 +373,21 @@ The driver bit width must match the version of FreeBSD. For FreeBSD/i386, use a
The next step is to compile the driver binary into a loadable kernel module. As `root`, use man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
This command is interactive and prompts for any extra information it requires. A new kernel module will be generated in the current directory. Use man:kldload[8] to load the new module:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
In addition to the generated kernel module, the [.filename]#ndis.ko# and [.filename]#if_ndis.ko# modules must be loaded. This should happen automatically when any module that depends on man:ndis[4] is loaded. If not, load them manually, using the following commands:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -397,7 +397,7 @@ The first command loads the man:ndis[4] miniport driver wrapper and the second l
Check man:dmesg[8] to see if there were any load errors. If all went well, the output should be similar to the following:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -421,7 +421,7 @@ Once the right driver is loaded for the NIC, the card needs to be configured. It
To display the NIC configuration, enter the following command:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -464,7 +464,7 @@ In this example, [.filename]#dc0# is up and running. The key indicators are:
If the man:ifconfig[8] output had shown something similar to:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -507,7 +507,7 @@ If the network is not using DNS, edit [.filename]#/etc/hosts# to add the names a
====
If there is no DHCP server and access to the Internet is needed, manually configure the default gateway and the nameserver:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -520,7 +520,7 @@ If there is no DHCP server and access to the Internet is needed, manually config
Once the necessary changes to [.filename]#/etc/rc.conf# are saved, a reboot can be used to test the network configuration and to verify that the system restarts without any configuration errors. Alternatively, apply the settings to the networking system with this command:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -529,7 +529,7 @@ Once the necessary changes to [.filename]#/etc/rc.conf# are saved, a reboot can
====
If a default gateway has been set in [.filename]#/etc/rc.conf#, also issue this command:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -542,7 +542,7 @@ Once the networking system has been relaunched, test the NICs.
To verify that an Ethernet card is configured correctly, man:ping[8] the interface itself, and then man:ping[8] another machine on the LAN:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -557,7 +557,7 @@ PING 192.168.1.3 (192.168.1.3): 56 data bytes
round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
....
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -801,14 +801,14 @@ Multiple `-a` options may be specified to allow logging from multiple clients. I
Finally, create the log file:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
At this point, syslogd should be restarted and verified:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -839,14 +839,14 @@ Next, define the logging server in the client's [.filename]#/etc/syslog.conf#. I
After saving the edit, restart syslogd for the changes to take effect:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
To test that log messages are being sent across the network, use man:logger[1] on the client to send a message to syslogd:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -864,14 +864,14 @@ If the `ping` succeeds on both hosts but log messages are still not being receiv
syslogd_flags="-d -a logclient.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Debugging data similar to the following will flash on the console immediately after the restart:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -885,7 +885,7 @@ rejected in rule 0 due to name mismatch.
In this example, the log messages are being rejected due to a typo which results in a hostname mismatch. The client's hostname should be `logclient`, not `logclien`. Fix the typo, issue a restart, and verify the results:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
@@ -1046,14 +1046,14 @@ At its core, man:sysctl[8] serves two functions: to read and to modify system se
To view all readable variables:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
To read a particular variable, specify its name:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -1061,7 +1061,7 @@ kern.maxproc: 1044
To set a particular variable, use the _variable_=_value_ syntax:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -1095,7 +1095,7 @@ In some cases it may be desirable to modify read-only man:sysctl[8] values, whic
For instance, on some laptop models the man:cardbus[4] device will not probe memory ranges and will fail with errors similar to:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1143,7 +1143,7 @@ The `SCSI_DELAY` kernel configuration option may be used to reduce system boot t
To fine-tune a file system, use man:tunefs[8]. This program has many different options. To toggle Soft Updates on and off, use:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1229,7 +1229,7 @@ A vnode is the internal representation of a file or directory. Increasing the nu
To see the current number of vnodes in use:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1237,7 +1237,7 @@ vfs.numvnodes: 91349
To see the maximum vnodes:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1259,7 +1259,7 @@ Adding a new hard drive for swap gives better performance than using a partition
Use `swapon` to add a swap partition to the system. For example:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1293,14 +1293,14 @@ Using swap files requires that the module needed by man:md[4] has either been bu
[.procedure]
. Create the swap file:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1m count=512
....
. Set the proper permissions on the new file:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1315,7 +1315,7 @@ md99 none swap sw,file=/usr/swap0,late 0 0
The man:md[4] device [.filename]#md99# is used, leaving lower device numbers available for interactive use.
. Swap space will be added on system startup. To add swap space immediately, use man:swapon[8]:
+
-[source,bash]
+[source,shell]
....
# swapon -aL
....
@@ -1370,7 +1370,7 @@ ACPI has three suspend to RAM (STR) states, `S1`-`S3`, and one suspend to disk s
Use `sysctl hw.acpi` to check for the suspend-related items. These example results are from a Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1382,7 +1382,7 @@ When testing suspend/resume, start with `S1`, if supported. This state is most l
A common problem with suspend/resume is that many device drivers do not save, restore, or reinitialize their firmware, registers, or device memory properly. As a first attempt at debugging the problem, try:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1422,7 +1422,7 @@ First, try setting `hw.acpi.disable_on_poweroff="0"` in [.filename]#/boot/loader
Some BIOS vendors provide incorrect or buggy bytecode. This is usually manifested by kernel console messages like this:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1438,7 +1438,7 @@ The goal of FreeBSD is for everyone to have working ACPI without any user interv
To help identify buggy behavior and possibly fix it manually, a copy can be made of the system's ASL. To copy the system's ASL to a specified file name, use `acpidump` with `-t`, to show the contents of the fixed tables, and `-d`, to disassemble the AML:
-[source,bash]
+[source,shell]
....
# acpidump -td > my.asl
....
@@ -1447,7 +1447,7 @@ Some AML versions assume the user is running Windows(R). To override this, set `
Other workarounds may require [.filename]#my.asl# to be customized. If this file is edited, compile the new ASL using the following command. Warnings can usually be ignored, but errors are bugs that will usually prevent ACPI from working correctly.
-[source,bash]
+[source,shell]
....
# iasl -f my.asl
....
@@ -1471,7 +1471,7 @@ The ACPI driver has a flexible debugging facility. A set of subsystems and the l
Debugging output is not enabled by default. To enable it, add `options ACPI_DEBUG` to the custom kernel configuration file if ACPI is compiled into the kernel. Add `ACPI_DEBUG=1` to [.filename]#/etc/make.conf# to enable it globally. If a module is used instead of a custom kernel, recompile just the [.filename]#acpi.ko# module as follows:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi && make clean && make ACPI_DEBUG=1
....
@@ -1501,7 +1501,7 @@ When submitting a problem report, include the following information:
* Output from `sysctl hw.acpi`. This lists which features the system offers.
* The URL to a pasted version of the system's ASL. Do _not_ send the ASL directly to the list as it can be very large. Generate a copy of the ASL by running this command:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
diff --git a/documentation/content/en/books/handbook/cutting-edge/_index.adoc b/documentation/content/en/books/handbook/cutting-edge/_index.adoc
index 45313fd995..7f86b9240e 100644
--- a/documentation/content/en/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/en/books/handbook/cutting-edge/_index.adoc
@@ -148,7 +148,7 @@ The process of applying FreeBSD security patches has been simplified, allowing a
FreeBSD security patches may be downloaded and installed using the following commands. The first command will determine if any outstanding patches are available, and if so, will list the files that will be modifed if the patches are applied. The second command will apply the patches.
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -172,7 +172,7 @@ If patches exist, they will automatically be downloaded but will not be applied.
If anything goes wrong, `freebsd-update` has the ability to roll back the last set of changes with the following command:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -203,14 +203,14 @@ If the system is running a custom kernel, make sure that a copy of the [.filenam
The following command, when run on a FreeBSD 9.0 system, will upgrade it to FreeBSD 9.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
After the command has been received, `freebsd-update` will evaluate the configuration file and current system in an attempt to gather the information necessary to perform the upgrade. A screen listing will display which components have and have not been detected. For example:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -234,7 +234,7 @@ At this point, `freebsd-update` will attempt to download all files required for
When using a custom kernel, the above step will produce a warning similar to the following:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -250,7 +250,7 @@ Once all the patches have been downloaded to the local system, they will be appl
====
The system is not being altered yet as all patching and merging is happening in another directory. Once all patches have been applied successfully, all configuration files have been merged and it seems the process will go smoothly, the changes can be committed to disk by the user using the following command:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -259,7 +259,7 @@ The system is not being altered yet as all patching and merging is happening in
The kernel and kernel modules will be patched first. If the system is running with a custom kernel, use man:nextboot[8] to set the kernel for the next boot to the updated [.filename]#/boot/GENERIC#:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -272,14 +272,14 @@ Before rebooting with the [.filename]#GENERIC# kernel, make sure it contains all
The machine should now be restarted with the updated kernel:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Once the system has come back online, restart `freebsd-update` using the following command. Since the state of the process has been saved, `freebsd-update` will not start from the beginning, but will instead move on to the next phase and remove all old shared libraries and object files.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -298,7 +298,7 @@ Before using `freebsd-update`, ensure that a copy of the [.filename]#GENERIC# ke
If a custom kernel has been built more than once or if it is unknown how many times the custom kernel has been built, obtain a copy of the `GENERIC` kernel that matches the current version of the operating system. If physical access to the system is available, a copy of the `GENERIC` kernel can be installed from the installation media:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -307,7 +307,7 @@ If a custom kernel has been built more than once or if it is unknown how many ti
Alternately, the `GENERIC` kernel may be rebuilt and installed from source:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -324,14 +324,14 @@ Generally, installed applications will continue to work without problems after m
A forced upgrade of all installed packages will replace the packages with fresh versions from the repository even if the version number has not increased. This is required because of the ABI version change when upgrading between major versions of FreeBSD. The forced upgrade can be accomplished by performing:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
A rebuild of all installed applications can be accomplished with this command:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -340,7 +340,7 @@ This command will display the configuration screens for each application that ha
Once the software upgrades are complete, finish the upgrade process with a final call to `freebsd-update` in order to tie up all the loose ends in the upgrade process:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -362,7 +362,7 @@ This command is not a replacement for a real IDS such as package:security/snort[
To begin the comparison, specify the output file to save the results to:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -371,7 +371,7 @@ The system will now be inspected and a lengthy listing of files, along with the
The entries in the listing are extremely long, but the output format may be easily parsed. For instance, to obtain a list of all files which differ from those in the release, issue the following command:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -398,7 +398,7 @@ Rebuilding the FreeBSD documentation from source requires a collection of tools
Once installed, use svnlite to fetch a clean copy of the documentation source:
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -407,7 +407,7 @@ The initial download of the documentation sources may take a while. Let it run u
Future updates of the documentation sources may be fetched by running:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -416,7 +416,7 @@ Once an up-to-date snapshot of the documentation sources has been fetched to [.f
A full update of all available languages may be performed by typing:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -424,7 +424,7 @@ A full update of all available languages may be performed by typing:
If an update of only a specific language is desired, `make` can be invoked in a language-specific subdirectory of [.filename]#/usr/doc#:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -432,14 +432,14 @@ If an update of only a specific language is desired, `make` can be invoked in a
An alternative way of updating the documentation is to run this command from [.filename]#/usr/doc# or the desired language-specific subdirectory:
-[source,bash]
+[source,shell]
....
# make update
....
The output formats that will be installed may be specified by setting `FORMATS`:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -478,7 +478,7 @@ Organization of the documentation ports is as follows:
When binary packages are used, the FreeBSD documentation will be installed in all available formats for the given language. For example, the following command will install the latest package of the Hungarian documentation:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -490,7 +490,7 @@ Packages use a format that differs from the corresponding port's name: `_lang_-f
To specify the format of the documentation, build the port instead of installing the package. For example, to build and install the English documentation:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -511,7 +511,7 @@ Specifies where to install the documentation. It defaults to [.filename]#/usr/lo
This example uses variables to install the Hungarian documentation as a PDF in the specified directory:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -519,7 +519,7 @@ This example uses variables to install the Hungarian documentation as a PDF in t
Documentation packages or ports can be updated using the instructions in crossref:ports[ports,Installing Applications: Packages and Ports]. For example, the following command updates the installed Hungarian documentation using package:ports-mgmt/portmaster[] by using packages only:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -594,7 +594,7 @@ This is a quick reference for the typical steps used to update FreeBSD by buildi
====
* Update and Build
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -639,7 +639,7 @@ Read [.filename]#/usr/src/UPDATING#. Any manual steps that must be performed bef
FreeBSD source code is located in [.filename]#/usr/src/#. The preferred method of updating this source is through the Subversion version control system. Verify that the source code is under version control:
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -650,7 +650,7 @@ Working Copy Root Path: /usr/src
This indicates that [.filename]#/usr/src/# is under version control and can be updated with man:svnlite[1]:
[[synching]]
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -690,7 +690,7 @@ STABLE branches occasionally have bugs or incompatibilities which might affect u
Determine which version of FreeBSD is being used with man:uname[1]:
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -698,7 +698,7 @@ Determine which version of FreeBSD is being used with man:uname[1]:
Based on <<updating-src-obtaining-src-repopath>>, the source used to update `10.3-RELEASE` has a repository path of `base/releng/10.3`. That path is used when checking out the source:
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -714,7 +714,7 @@ Based on <<updating-src-obtaining-src-repopath>>, the source used to update `10.
The _world_, or all of the operating system except the kernel, is compiled. This is done first to provide up-to-date tools to build the kernel. Then the kernel itself is built:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -730,7 +730,7 @@ These are the basic steps. Additional options to control the build are described
Some versions of the FreeBSD build system leave previously-compiled code in the temporary object directory, [.filename]#/usr/obj#. This can speed up later builds by avoiding recompiling code that has not changed. To force a clean rebuild of everything, use `cleanworld` before starting a build:
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -746,7 +746,7 @@ Increasing the number of build jobs on multi-core processors can improve build s
====
Building the world and kernel with four jobs:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -758,7 +758,7 @@ Building the world and kernel with four jobs:
A `buildworld` must be completed if the source code has changed. After that, a `buildkernel` to build a kernel can be run at any time. To build just the kernel:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -781,7 +781,7 @@ Kernel config files are located in [.filename]#/usr/src/sys/arch/conf/#, where _
A custom config file can be created by copying the [.filename]#GENERIC# config file. In this example, the new custom kernel is for a storage server, so is named [.filename]#STORAGESERVER#:
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -792,7 +792,7 @@ A custom config file can be created by copying the [.filename]#GENERIC# config f
The custom kernel is built by setting `KERNCONF` to the kernel config file on the command line:
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -802,7 +802,7 @@ The custom kernel is built by setting `KERNCONF` to the kernel config file on th
After the `buildworld` and `buildkernel` steps have been completed, the new kernel and world are installed:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -814,7 +814,7 @@ After the `buildworld` and `buildkernel` steps have been completed, the new kern
If a custom kernel was built, `KERNCONF` must also be set to use the new custom kernel:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -836,7 +836,7 @@ man:mergemaster[8] provides an easy way to merge changes that have been made to
With `-Ui`, man:mergemaster[8] automatically updates files that have not been user-modified and installs new files that are not already present:
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -848,28 +848,28 @@ If a file must be manually merged, an interactive display allows the user to cho
Some obsolete files or directories can remain after an update. These files can be located:
-[source,bash]
+[source,shell]
....
# make check-old
....
and deleted:
-[source,bash]
+[source,shell]
....
# make delete-old
....
Some obsolete libraries can also remain. These can be detected with:
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
and deleted with
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -881,7 +881,7 @@ Programs which were still using those old libraries will stop working when the l
When all the old files or directories are known to be safe to delete, pressing kbd:[y] and kbd:[Enter] to delete each file can be avoided by setting `BATCH_DELETE_OLD_FILES` in the command. For example:
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -893,7 +893,7 @@ When all the old files or directories are known to be safe to delete, pressing k
The last step after updating is to restart the computer so all the changes take effect:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/en/books/handbook/desktop/_index.adoc b/documentation/content/en/books/handbook/desktop/_index.adoc
index 21f7d53347..98532722bd 100644
--- a/documentation/content/en/books/handbook/desktop/_index.adoc
+++ b/documentation/content/en/books/handbook/desktop/_index.adoc
@@ -99,21 +99,21 @@ Firefox is an open source browser that features a standards-compliant HTML displ
To install the package of the latest release version of Firefox, type:
-[source,bash]
+[source,shell]
....
# pkg install firefox
....
To instead install Firefox Extended Support Release (ESR) version, use:
-[source,bash]
+[source,shell]
....
# pkg install firefox-esr
....
The Ports Collection can instead be used to compile the desired version of Firefox from source code. This example builds package:www/firefox[], where `firefox` can be replaced with the ESR or localized version to install.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -125,14 +125,14 @@ Konqueror is more than a web browser as it is also a file manager and a multimed
Konqueror can be installed as a package by typing:
-[source,bash]
+[source,shell]
....
# pkg install konqueror
....
To install from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fm/konqueror/
# make install clean
@@ -144,14 +144,14 @@ Chromium is an open source browser project that aims to build a safer, faster, a
Chromium can be installed as a package by typing:
-[source,bash]
+[source,shell]
....
# pkg install chromium
....
Alternatively, Chromium can be compiled from source using the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -209,14 +209,14 @@ The KDE desktop environment includes an office suite which can be installed sepa
In FreeBSD, package:editors/calligra[] can be installed as a package or a port. To install the package:
-[source,bash]
+[source,shell]
....
# pkg install calligra
....
If the package is not available, use the Ports Collection instead:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/calligra
# make install clean
@@ -230,14 +230,14 @@ AbiWord can import or export many file formats, including some proprietary ones
To install the AbiWord package:
-[source,bash]
+[source,shell]
....
# pkg install abiword
....
If the package is not available, it can be compiled from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -249,14 +249,14 @@ For image authoring or picture retouching, The GIMP provides a sophisticated ima
To install the package:
-[source,bash]
+[source,shell]
....
# pkg install gimp
....
Alternately, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -272,14 +272,14 @@ The word processor of Apache OpenOffice uses a native XML file format for increa
To install the Apache OpenOffice package:
-[source,bash]
+[source,shell]
....
# pkg install apache-openoffice
....
Once the package is installed, type the following command to launch Apache OpenOffice:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -288,7 +288,7 @@ where _X.Y.Z_ is the version number of the installed version of Apache OpenOffic
If the desired Apache OpenOffice package is not available, compiling the port is still an option. However, this requires a lot of disk space and a fairly long time to compile:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-4
# make install clean
@@ -298,7 +298,7 @@ If the desired Apache OpenOffice package is not available, compiling the port is
====
To build a localized version, replace the previous command with:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -314,7 +314,7 @@ The word processor of LibreOffice uses a native XML file format for increased po
To install the English version of the LibreOffice package:
-[source,bash]
+[source,shell]
....
# pkg install libreoffice
....
@@ -323,7 +323,7 @@ The editors category (https://www.FreeBSD.org/ports/editors/[freebsd.org/ports/e
Once the package is installed, type the following command to run LibreOffice:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -332,7 +332,7 @@ During the first launch, some questions will be asked and a [.filename]#.libreof
If the desired LibreOffice package is not available, compiling the port is still an option. However, this requires a lot of disk space and a fairly long time to compile. This example compiles the English version:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -388,14 +388,14 @@ For users that prefer a small FreeBSD PDF viewer, Xpdf provides a light-weight a
To install the Xpdf package:
-[source,bash]
+[source,shell]
....
# pkg install xpdf
....
If the package is not available, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -409,14 +409,14 @@ gv is a PostScript(R) and PDF viewer. It is based on ghostview, but has a nicer
To install gv as a package:
-[source,bash]
+[source,shell]
....
# pkg install gv
....
If a package is unavailable, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -428,14 +428,14 @@ Geeqie is a fork from the unmaintained GQView project, in an effort to move deve
To install the Geeqie package:
-[source,bash]
+[source,shell]
....
# pkg install geeqie
....
If the package is not available, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/geeqie
# make install clean
@@ -447,14 +447,14 @@ ePDFView is a lightweight `PDF` document viewer that only uses the Gtk+ and Popp
To install ePDFView as a package:
-[source,bash]
+[source,shell]
....
# pkg install epdfview
....
If a package is unavailable, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/epdfview
# make install clean
@@ -466,14 +466,14 @@ Okular is a universal document viewer based on KPDF for KDE. It can open many do
To install Okular as a package:
-[source,bash]
+[source,shell]
....
# pkg install okular
....
If a package is unavailable, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/okular
# make install clean
@@ -518,14 +518,14 @@ GnuCash provides a smart register, a hierarchical system of accounts, and many k
To install the GnuCash package:
-[source,bash]
+[source,shell]
....
# pkg install gnucash
....
If the package is not available, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -537,14 +537,14 @@ Gnumeric is a spreadsheet program developed by the GNOME community. It features
To install Gnumeric as a package:
-[source,bash]
+[source,shell]
....
# pkg install gnumeric
....
If the package is not available, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -556,14 +556,14 @@ KMyMoney is a personal finance application created by the KDE community. KMyMone
To install KMyMoney as a package:
-[source,bash]
+[source,shell]
....
# pkg install kmymoney-kde4
....
If the package is not available, use the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney-kde4
# make install clean
diff --git a/documentation/content/en/books/handbook/disks/_index.adoc b/documentation/content/en/books/handbook/disks/_index.adoc
index 955e7f713a..9d04b6ebc6 100644
--- a/documentation/content/en/books/handbook/disks/_index.adoc
+++ b/documentation/content/en/books/handbook/disks/_index.adoc
@@ -79,7 +79,7 @@ If the disk to be added is not blank, old partition information can be removed w
The partition scheme is created, and then a single partition is added. To improve performance on newer disks with larger hardware block sizes, the partition is aligned to one megabyte boundaries:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
@@ -89,7 +89,7 @@ Depending on use, several smaller partitions may be desired. See man:gpart[8] fo
The disk partition information can be viewed with `gpart show`:
-[source,bash]
+[source,shell]
....
% gpart show ada1
=> 34 1465146988 ada1 GPT (699G)
@@ -100,14 +100,14 @@ The disk partition information can be viewed with `gpart show`:
A file system is created in the new partition on the new disk:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
An empty directory is created as a _mountpoint_, a location for mounting the new disk in the original disk's file system:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -121,7 +121,7 @@ Finally, an entry is added to [.filename]#/etc/fstab# so the new disk will be mo
The new disk can be mounted manually, without restarting the system:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -135,7 +135,7 @@ Determine the device name of the disk to be resized by inspecting [.filename]#/v
List the partitions on the disk to see the current configuration:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 83886013 ada0 GPT (48G) [CORRUPT]
@@ -149,7 +149,7 @@ List the partitions on the disk to see the current configuration:
====
If the disk was formatted with the http://en.wikipedia.org/wiki/GUID_Partition_Table[GPT] partitioning scheme, it may show as "corrupted" because the GPT backup partition table is no longer at the end of the drive. Fix the backup partition table with `gpart`:
-[source,bash]
+[source,shell]
....
# gpart recover ada0
ada0 recovered
@@ -159,7 +159,7 @@ ada0 recovered
Now the additional space on the disk is available for use by a new partition, or an existing partition can be expanded:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 102399933 ada0 GPT (48G)
@@ -173,14 +173,14 @@ Partitions can only be resized into contiguous free space. Here, the last partit
Disable the swap partition:
-[source,bash]
+[source,shell]
....
# swapoff /dev/ada0p3
....
Delete the third partition, specified by the `-i` flag, from the disk _ada0_.
-[source,bash]
+[source,shell]
....
# gpart delete -i 3 ada0
ada0p3 deleted
@@ -196,7 +196,7 @@ ada0p3 deleted
There is risk of data loss when modifying the partition table of a mounted file system. It is best to perform the following steps on an unmounted file system while running from a live CD-ROM or USB device. However, if absolutely necessary, a mounted file system can be resized after disabling GEOM safety features:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -205,7 +205,7 @@ There is risk of data loss when modifying the partition table of a mounted file
Resize the partition, leaving room to recreate a swap partition of the desired size. The partition to resize is specified with `-i`, and the new desired size with `-s`. Optionally, alignment of the partition is controlled with `-a`. This only modifies the size of the partition. The file system in the partition will be expanded in a separate step.
-[source,bash]
+[source,shell]
....
# gpart resize -i 2 -s 47G -a 4k ada0
ada0p2 resized
@@ -218,7 +218,7 @@ ada0p2 resized
Recreate the swap partition and activate it. If no size is specified with `-s`, all remaining space is used:
-[source,bash]
+[source,shell]
....
# gpart add -t freebsd-swap -a 4k ada0
ada0p3 added
@@ -232,7 +232,7 @@ ada0p3 added
Grow the UFS file system to use the new capacity of the resized partition:
-[source,bash]
+[source,shell]
....
# growfs /dev/ada0p2
Device is mounted read-write; resizing will result in temporary write suspension for /.
@@ -245,7 +245,7 @@ super-block backups (for fsck -b #) at:
If the file system is ZFS, the resize is triggered by running the `online` subcommand with `-e`:
-[source,bash]
+[source,shell]
....
# zpool online -e zroot /dev/ada0p2
....
@@ -286,7 +286,7 @@ The rest of this section demonstrates how to verify that a USB storage device is
To test the USB configuration, plug in the USB device. Use `dmesg` to confirm that the drive appears in the system message buffer. It should look something like this:
-[source,bash]
+[source,shell]
....
umass0: <STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x0100
@@ -303,7 +303,7 @@ The brand, device node ([.filename]#da0#), speed, and size will differ according
Since the USB device is seen as a SCSI one, `camcontrol` can be used to list the USB storage devices attached to the system:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<STECH Simple Drive 1.04> at scbus4 target 0 lun 0 (pass3,da0)
@@ -311,7 +311,7 @@ Since the USB device is seen as a SCSI one, `camcontrol` can be used to list the
Alternately, `usbconfig` can be used to list the device. Refer to man:usbconfig[8] for more information about this command.
-[source,bash]
+[source,shell]
....
# usbconfig
ugen0.3: <Simple Drive STECH> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
@@ -361,7 +361,7 @@ vfs.usermount=1
Since this only takes effect after the next reboot, use `sysctl` to set this variable now:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -369,7 +369,7 @@ vfs.usermount: 0 -> 1
The final step is to create a directory where the file system is to be mounted. This directory needs to be owned by the user that is to mount the file system. One way to do that is for `root` to create a subdirectory owned by that user as [.filename]#/mnt/username#. In the following example, replace _username_ with the login name of the user and _usergroup_ with the user's primary group:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -377,21 +377,21 @@ The final step is to create a directory where the file system is to be mounted.
Suppose a USB thumbdrive is plugged in, and a device [.filename]#/dev/da0s1# appears. If the device is formatted with a FAT file system, the user can mount it using:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Before the device can be unplugged, it _must_ be unmounted first:
-[source,bash]
+[source,shell]
....
% umount /mnt/username
....
After device removal, the system message buffer will show messages similar to the following:
-[source,bash]
+[source,shell]
....
umass0: at uhub3, port 2, addr 3 (disconnected)
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
@@ -403,14 +403,14 @@ da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
USB devices can be automatically mounted by uncommenting this line in [.filename]#/etc/auto_master#:
-[source,bash]
+[source,shell]
....
/media -media -nosuid
....
Then add these lines to [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "GEOM";
@@ -421,7 +421,7 @@ notify 100 {
Reload the configuration if man:autofs[5] and man:devd[8] are already running:
-[source,bash]
+[source,shell]
....
# service automount restart
# service devd restart
@@ -438,7 +438,7 @@ man:autofs[5] requires man:devd[8] to be enabled, as it is by default.
Start the services immediately with:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -450,7 +450,7 @@ Each file system that can be automatically mounted appears as a directory in [.f
The file system is transparently mounted on the first access, and unmounted after a period of inactivity. Automounted drives can also be unmounted manually:
-[source,bash]
+[source,shell]
....
# automount -fu
....
@@ -526,7 +526,7 @@ This will require a reboot of the system as this driver can only be loaded at bo
To verify that FreeBSD recognizes the device, run `dmesg` and look for an entry for the device. On systems prior to 10.x, the device name in the first line of the output will be [.filename]#acd0# instead of [.filename]#cd0#.
-[source,bash]
+[source,shell]
....
% dmesg | grep cd
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
@@ -543,14 +543,14 @@ In FreeBSD, `cdrecord` can be used to burn CDs. This command is installed with t
While `cdrecord` has many options, basic usage is simple. Specify the name of the ISO file to burn and, if the system has multiple burner devices, specify the name of the device to use:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
To determine the device name of the burner, use `-scanbus` which might produce results like this:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 Jörg Schilling
@@ -579,7 +579,7 @@ Locate the entry for the CD burner and use the three numbers separated by commas
Alternately, run the following command to get the device address of the burner:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (cd0,pass0)
@@ -592,7 +592,7 @@ Use the numeric values for `scbus`, `target`, and `lun`. For this example, `1,0,
In order to produce a data CD, the data files that are going to make up the tracks on the CD must be prepared before they can be burned to the CD. In FreeBSD, package:sysutils/cdrtools[] installs `mkisofs`, which can be used to produce an ISO 9660 file system that is an image of a directory tree within a UNIX(R) file system. The simplest usage is to specify the name of the ISO file to create and the path to the files to place into the ISO 9660 file system:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -605,14 +605,14 @@ For CDs that are going to be used only on FreeBSD systems, `-U` can be used to d
The last option of general use is `-b`. This is used to specify the location of a boot image for use in producing an "El Torito" bootable CD. This option takes an argument which is the path to a boot image from the top of the tree being written to the CD. By default, `mkisofs` creates an ISO image in "floppy disk emulation" mode, and thus expects the boot image to be exactly 1200, 1440 or 2880 KB in size. Some boot loaders, like the one used by the FreeBSD distribution media, do not use emulation mode. In this case, `-no-emul-boot` should be used. So, if [.filename]#/tmp/myboot# holds a bootable FreeBSD system with the boot image in [.filename]#/tmp/myboot/boot/cdboot#, this command would produce [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
The resulting ISO image can be mounted as a memory disk with:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -626,7 +626,7 @@ There are many other options available for `mkisofs` to fine-tune its behavior.
====
It is possible to copy a data CD to an image file that is functionally equivalent to the image file created with `mkisofs`. To do so, use [.filename]#dd# with the device name as the input file and the name of the ISO to create as the output file:
-[source,bash]
+[source,shell]
....
# dd if=/dev/cd0 of=file.iso bs=2048
....
@@ -639,7 +639,7 @@ The resulting image file can be burned to CD as described in <<cdrecord>>.
Once an ISO has been burned to a CD, it can be mounted by specifying the file system type, the name of the device containing the CD, and an existing mount point:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
@@ -677,7 +677,7 @@ It is possible to burn a file directly to CD, without creating an ISO 9660 file
This type of disk can not be mounted as a normal data CD. In order to retrieve the data burned to such a CD, the data must be read from the raw device node. For example, this command will extract a compressed tar file located on the second CD device into the current working directory:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/cd1
....
@@ -697,7 +697,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
. The package:sysutils/cdrtools[] package or port installs `cdda2wav`. This command can be used to extract all of the audio tracks, with each track written to a separate WAV file in the current working directory:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -B -Owav
....
@@ -707,7 +707,7 @@ A device name does not need to be specified if there is only one CD device on th
. Use `cdrecord` to write the [.filename]#.wav# files:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -761,7 +761,7 @@ Since man:growisofs[1] is a front-end to <<mkisofs,mkisofs>>, it will invoke man
To burn to a DVD+R or a DVD-R the data in [.filename]#/path/to/data#, use the following command:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -772,7 +772,7 @@ For the initial session recording, `-Z` is used for both single and multiple ses
To burn a pre-mastered image, such as _imagefile.iso_, use:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -785,14 +785,14 @@ In order to support working files larger than 4.38GB, an UDF/ISO-9660 hybrid fil
To create this type of ISO file:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
To burn files directly to a disk:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -808,7 +808,7 @@ A DVD-Video is a specific file layout based on the ISO 9660 and micro-UDF (M-UDF
If an image of the DVD-Video file system already exists, it can be burned in the same way as any other image. If `dvdauthor` was used to make the DVD and the result is in [.filename]#/path/to/video#, the following command should be used to burn the DVD-Video:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -819,7 +819,7 @@ If an image of the DVD-Video file system already exists, it can be burned in the
Unlike CD-RW, a virgin DVD+RW needs to be formatted before first use. It is _recommended_ to let man:growisofs[1] take care of this automatically whenever appropriate. However, it is possible to use `dvd+rw-format` to format the DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -828,7 +828,7 @@ Only perform this operation once and keep in mind that only virgin DVD+RW medias
To burn a totally new file system and not just append some data onto a DVD+RW, the media does not need to be blanked first. Instead, write over the previous recording like this:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -837,7 +837,7 @@ The DVD+RW format supports appending data to a previous recording. This operatio
For example, to append data to a DVD+RW, use the following:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -851,7 +851,7 @@ Use `-dvd-compat` for better media compatibility with DVD-ROM drives. When using
To blank the media, use:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -864,7 +864,7 @@ A virgin DVD-RW can be directly written without being formatted. However, a non-
To blank a DVD-RW in sequential mode:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -873,7 +873,7 @@ To blank a DVD-RW in sequential mode:
====
A full blanking using `-blank=full` will take about one hour on a 1x media. A fast blanking can be performed using `-blank`, if the DVD-RW will be recorded in Disk-At-Once (DAO) mode. To burn the DVD-RW in DAO mode, use the command:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -885,7 +885,7 @@ One should instead use restricted overwrite mode with any DVD-RW as this format
To write data on a sequential DVD-RW, use the same instructions as for the other DVD formats:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -896,14 +896,14 @@ A DVD-RW in restricted overwrite format does not need to be blanked before a new
To put a DVD-RW in restricted overwrite format, the following command must be used:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
To change back to sequential format, use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -914,7 +914,7 @@ Few DVD-ROM drives support multi-session DVDs and most of the time only read the
Using the following command after an initial non-closed session on a DVD+R, DVD-R, or DVD-RW in sequential format, will add a new session to the disc:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -949,7 +949,7 @@ hw.ata.atapi_dma="1"
A DVD-RAM can be seen as a removable hard drive. Like any other hard drive, the DVD-RAM must be formatted before it can be used. In this example, the whole disk space will be formatted with a standard UFS2 file system:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -960,7 +960,7 @@ The DVD device, [.filename]#acd0#, must be changed according to the configuratio
Once the DVD-RAM has been formatted, it can be mounted as a normal hard drive:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -980,7 +980,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
. To format the floppy, insert a new 3.5 inch floppy disk into the first floppy drive and issue:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -989,7 +989,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
+
To write the disk label, use man:bsdlabel[8]:
+
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -998,7 +998,7 @@ To write the disk label, use man:bsdlabel[8]:
+
To format the floppy with FAT, issue:
+
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1024,14 +1024,14 @@ interact with the man:fusefs[5] kernel module via a well defined interface.
. Before using a FUSE file system we need to load the man:fusefs[5] kernel
module:
+
-[source,bash]
+[source,shell]
....
# kldload fusefs
....
+
Use man:sysrc[8] to load the module at startup:
+
-[source,bash]
+[source,shell]
....
# sysrc kld_list+=fusefs
....
@@ -1040,14 +1040,14 @@ Use man:sysrc[8] to load the module at startup:
crossref:ports[pkgng-intro,Using pkg for Binary Package Management]) or from
ports (see crossref:ports[ports-using,Using the Ports Collection]):
+
-[source,bash]
+[source,shell]
....
# pkg install fusefs-ntfs
....
. Last we need to create a directory where the file system will be mounted:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt/usb
....
@@ -1055,7 +1055,7 @@ ports (see crossref:ports[ports-using,Using the Ports Collection]):
. Suppose a USB disk is plugged in. The disk partition information can be
viewed with man:gpart[8]:
+
-[source,bash]
+[source,shell]
....
# gpart show da0
=> 63 1953525105 da0 MBR (932G)
@@ -1064,7 +1064,7 @@ viewed with man:gpart[8]:
. We can mount the disk using the following command:
+
-[source,bash]
+[source,shell]
....
# ntfs-3g /dev/da0s1 /mnt/usb/
....
@@ -1079,14 +1079,14 @@ The disk is now ready to use.
+
Now the disk can be now mounted with:
+
-[source,bash]
+[source,shell]
....
# mount /mnt/usb
....
. The disk can be unmounted with:
+
-[source,bash]
+[source,shell]
....
# umount /mnt/usb/
....
@@ -1128,7 +1128,7 @@ Instead, one can use `dump` and `restore` in a more secure fashion over an SSH c
.Using `dump` over ssh
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1140,7 +1140,7 @@ This example sets `RSH` in order to write the backup to a tape drive on a remote
.Using `dump` over ssh with `RSH` Set
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1157,7 +1157,7 @@ This example creates a compressed backup of the current directory and saves it t
.Backing Up the Current Directory with `tar`
[example]
====
-[source,bash]
+[source,shell]
....
# tar czvf /tmp/mybackup.tgz .
....
@@ -1168,7 +1168,7 @@ To restore the entire backup, `cd` into the directory to restore into and specif
.Restoring Up the Current Directory with `tar`
[example]
====
-[source,bash]
+[source,shell]
....
# tar xzvf /tmp/mybackup.tgz
....
@@ -1183,7 +1183,7 @@ For example, a list of files can be created using `ls` or `find`. This example c
.Using `ls` and `cpio` to Make a Recursive Backup of the Current Directory
[example]
====
-[source,bash]
+[source,shell]
....
# ls -R | cpio -ovF /tmp/mybackup.cpio
....
@@ -1196,7 +1196,7 @@ The `pax` equivalent to the previous examples would be:
.Backing Up the Current Directory with `pax`
[example]
====
-[source,bash]
+[source,shell]
....
# pax -wf /tmp/mybackup.pax .
....
@@ -1211,7 +1211,7 @@ For SCSI tape devices, FreeBSD uses the man:sa[4] driver and the [.filename]#/de
In FreeBSD, `mt` is used to control operations of the tape drive, such as seeking through files on a tape or writing tape control marks to the tape. For example, the first three files on a tape can be preserved by skipping past them before writing a new file:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1220,28 +1220,28 @@ This utility supports many operations. Refer to man:mt[1] for details.
To write a single file to tape using `tar`, specify the name of the tape device and the file to backup:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
To recover files from a `tar` archive on tape into the current directory:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
To backup a UFS file system, use `dump`. This examples backs up [.filename]#/usr# without rewinding the tape when finished:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
To interactively restore files from a `dump` file on tape into the current directory:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1291,7 +1291,7 @@ device md
To mount an existing file system image, use `mdconfig` to specify the name of the ISO file and a free unit number. Then, refer to that unit number to mount it on an existing mount point. Once mounted, the files in the ISO will appear in the mount point. This example attaches _diskimage.iso_ to the memory device [.filename]#/dev/md0# then mounts that memory device on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -1301,7 +1301,7 @@ Notice that `-t cd9660` was used to mount an ISO format. If a unit number is not
When a memory disk is no longer in use, its resources should be released back to the system. First, unmount the file system, then use `mdconfig` to detach the disk from the system and release its resources. To continue this example:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 0
@@ -1316,7 +1316,7 @@ FreeBSD also supports memory disks where the storage to use is allocated from ei
To create a new memory-backed file system, specify a type of `swap` and the size of the memory disk to create. Then, format the memory disk with a file system and mount as usual. This example creates a 5M memory disk on unit `1`. That memory disk is then formatted with the UFS file system before it is mounted:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1333,7 +1333,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
To create a new file-backed memory disk, first allocate an area of disk to use. This example creates an empty 5MB file named [.filename]#newimage#:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1342,7 +1342,7 @@ To create a new file-backed memory disk, first allocate an area of disk to use.
Next, attach that file to a memory disk, label the memory disk and format it with the UFS file system, mount the memory disk, and verify the size of the file-backed disk:
-[source,bash]
+[source,shell]
....
# mdconfig -f newimage -u 0
# bsdlabel -w md0 auto
@@ -1359,14 +1359,14 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
It takes several commands to create a file- or memory-backed file system using `mdconfig`. FreeBSD also comes with `mdmfs` which automatically configures a memory disk, formats it with the UFS file system, and mounts it. For example, after creating _newimage_ with `dd`, this one command is equivalent to running the `bsdlabel`, `newfs`, and `mount` commands shown above:
-[source,bash]
+[source,shell]
....
# mdmfs -F newimage -s 5m md0 /mnt
....
To instead create a new memory-based memory disk with `mdmfs`, use this one command:
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md1 /mnt
....
@@ -1384,21 +1384,21 @@ The un-alterable `snapshot` file flag is set by man:mksnap_ffs[8] after initial
Snapshots are created using man:mount[8]. To place a snapshot of [.filename]#/var# in the file [.filename]#/var/snapshot/snap#, use the following command:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternatively, use man:mksnap_ffs[8] to create the snapshot:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
One can find snapshot files on a file system, such as [.filename]#/var#, using man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1411,7 +1411,7 @@ Once a snapshot has been created, it has several uses:
* The snapshot can be mounted as a frozen image of the file system. To man:mount[8] the snapshot [.filename]#/var/snapshot/snap# run:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1419,7 +1419,7 @@ Once a snapshot has been created, it has several uses:
The frozen [.filename]#/var# is now available through [.filename]#/mnt#. Everything will initially be in the same state it was during the snapshot creation time. The only exception is that any earlier snapshots will appear as zero length files. To unmount the snapshot, use:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1438,7 +1438,7 @@ This section describes how to configure disk quotas for the UFS file system. To
To determine if the FreeBSD kernel provides support for disk quotas:
-[source,bash]
+[source,shell]
....
% sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
@@ -1489,7 +1489,7 @@ In the normal course of operations, there should be no need to manually run man:
To verify that quotas are enabled, run:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1506,7 +1506,7 @@ Soft limits can be exceeded for a limited amount of time, known as the grace per
In the following example, the quota for the `test` account is being edited. When `edquota` is invoked, the editor specified by `EDITOR` is opened in order to edit the quota limits. The default editor is set to vi.
-[source,bash]
+[source,shell]
....
# edquota -u test
Quotas for user test:
@@ -1527,7 +1527,7 @@ The new quota limits take effect upon exiting the editor.
Sometimes it is desirable to set quota limits on a range of users. This can be done by first assigning the desired quota limit to a user. Then, use `-p` to duplicate that quota to a specified range of user IDs (UIDs). The following command will duplicate those quota limits for UIDs `10,000` through `19,999`:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1563,7 +1563,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Then, restart `inetd`:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1585,7 +1585,7 @@ This facility provides several barriers to protect the data stored in each disk
FreeBSD provides a kernel module for gbde which can be loaded with this command:
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1602,7 +1602,7 @@ The following example demonstrates adding a new hard drive to a system that will
+
Install the new drive to the system as explained in <<disks-adding>>. For the purposes of this example, a new hard drive partition has been added as [.filename]#/dev/ad4s1c# and [.filename]#/dev/ad0s1*# represents the existing standard FreeBSD partitions.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1612,7 +1612,7 @@ Install the new drive to the system as explained in <<disks-adding>>. For the pu
. Create a Directory to Hold `gbde` Lock Files
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1622,7 +1622,7 @@ The gbde lock file contains information that gbde requires to access encrypted p
+
A gbde partition must be initialized before it can be used. This initialization needs to be performed only once. This command will open the default editor, in order to set various configuration options in a template. For use with the UFS file system, set the sector_size to 2048:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
# $FreeBSD: src/sbin/gbde/template.txt,v 1.1.36.1 2009/08/03 08:13:06 kensmith Exp $
@@ -1648,14 +1648,14 @@ Lock files _must_ be backed up together with the contents of any encrypted parti
. Attach the Encrypted Partition to the Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
This command will prompt to input the passphrase that was selected during the initialization of the encrypted partition. The new encrypted device will appear in [.filename]#/dev# as [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1667,7 +1667,7 @@ This command will prompt to input the passphrase that was selected during the in
+
Once the encrypted device has been attached to the kernel, a file system can be created on the device. This example creates a UFS file system with soft updates enabled. Be sure to specify the partition which has a [.filename]#*.bde# extension:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ad4s1c.bde
....
@@ -1676,7 +1676,7 @@ Once the encrypted device has been attached to the kernel, a file system can be
+
Create a mount point and mount the encrypted file system:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
# mount /dev/ad4s1c.bde /private
@@ -1686,7 +1686,7 @@ Create a mount point and mount the encrypted file system:
+
The encrypted file system should now be visible and available for use:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1713,7 +1713,7 @@ This requires that the passphrase be entered at the console at boot time. After
====
sysinstall is incompatible with gbde-encrypted devices. All [.filename]#*.bde# devices must be detached from the kernel before starting sysinstall or it will crash during its initial probing for devices. To detach the encrypted device used in the example, use the following command:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1749,7 +1749,7 @@ geom_eli_load="YES"
+
To load the kernel module now:
+
-[source,bash]
+[source,shell]
....
# kldload geom_eli
....
@@ -1766,7 +1766,7 @@ device crypto
+
The following commands generate a master key that all data will be encrypted with. This key can never be changed. Rather than using it directly, it is encrypted with one or more user keys. The user keys are made up of an optional combination of random bytes from a file, [.filename]#/root/da2.key#, and/or a passphrase. In this case, the data source for the key file is [.filename]#/dev/random#. This command also configures the sector size of the provider ([.filename]#/dev/da2.eli#) as 4kB, for better performance:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -K /root/da2.key -s 4096 /dev/da2
@@ -1778,7 +1778,7 @@ It is not mandatory to use both a passphrase and a key file as either method of
+
If the key file is given as "-", standard input will be used. For example, this command generates three key files:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
@@ -1787,7 +1787,7 @@ If the key file is given as "-", standard input will be used. For example, this
+
To attach the provider, specify the key file, the name of the disk, and the passphrase:
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1795,7 +1795,7 @@ Enter passphrase:
+
This creates a new device with an [.filename]#.eli# extension:
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1805,7 +1805,7 @@ This creates a new device with an [.filename]#.eli# extension:
+
Next, format the device with the UFS file system and mount it on an existing mount point:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1814,7 +1814,7 @@ Next, format the device with the UFS file system and mount it on an existing mou
+
The encrypted file system should now be available for use:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1828,7 +1828,7 @@ Filesystem Size Used Avail Capacity Mounted on
Once the work on the encrypted partition is done, and the [.filename]#/private# partition is no longer needed, it is prudent to put the device into cold storage by unmounting and detaching the `geli` encrypted partition from the kernel:
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1855,7 +1855,7 @@ This section demonstrates how to configure an encrypted swap partition using man
Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. To overwrite the current swap partition with random garbage, execute the following command:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ada0s1b bs=1m
....
@@ -1904,7 +1904,7 @@ Once the system has rebooted, proper operation of the encrypted swap can be veri
If man:gbde[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1913,7 +1913,7 @@ Device 1K-blocks Used Avail Capacity
If man:geli[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2010,7 +2010,7 @@ It is also possible to use host names in the `remote` statements if the hosts ar
Once the configuration exists on both nodes, the HAST pool can be created. Run these commands on both nodes to place the initial metadata onto the local disk and to start man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -2023,21 +2023,21 @@ It is _not_ possible to use GEOM providers with an existing file system or to co
A HAST node's `primary` or `secondary` role is selected by an administrator, or software like Heartbeat, using man:hastctl[8]. On the primary node, `hasta`, issue this command:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Run this command on the secondary node, `hastb`:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
Verify the result by running `hastctl` on each node:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -2046,7 +2046,7 @@ Check the `status` line in the output. If it says `degraded`, something is wrong
The next step is to create a file system on the GEOM provider and mount it. This must be done on the `primary` node. Creating the file system can take a few minutes, depending on the size of the hard drive. This example creates a UFS file system on [.filename]#/dev/hast/test#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2096,7 +2096,7 @@ If the systems are running FreeBSD 10 or higher, replace [.filename]#carp0# with
Restart man:devd[8] on both nodes to put the new configuration into effect:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2229,7 +2229,7 @@ _Split-brain_ occurs when the nodes of the cluster are unable to communicate wit
The administrator must either decide which node has more important changes, or perform the merge manually. Then, let HAST perform full synchronization of the node which has the broken data. To do this, issue these commands on the node which needs to be resynchronized:
-[source,bash]
+[source,shell]
....
# hastctl role init test
# hastctl create test
diff --git a/documentation/content/en/books/handbook/dtrace/_index.adoc b/documentation/content/en/books/handbook/dtrace/_index.adoc
index 33adc59fef..d278fa50f0 100644
--- a/documentation/content/en/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/en/books/handbook/dtrace/_index.adoc
@@ -68,7 +68,7 @@ Before reading this chapter, you should:
While the DTrace in FreeBSD is similar to that found in Solaris(TM), differences do exist. The primary difference is that in FreeBSD, DTrace is implemented as a set of kernel modules and DTrace can not be used until the modules are loaded. To load all of the necessary modules:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
@@ -123,7 +123,7 @@ DTrace scripts consist of a list of one or more _probes_, or instrumentation poi
To view all probes, the administrator can execute the following command:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -134,7 +134,7 @@ The examples in this section provide an overview of how to use two of the fully
The [.filename]#hotkernel# script is designed to identify which function is using the most kernel time. It will produce output similar to the following:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/dtrace-toolkit
# ./hotkernel
@@ -143,7 +143,7 @@ Sampling... Hit Ctrl-C to end.
As instructed, use the kbd:[Ctrl+C] key combination to stop the process. Upon termination, the script will display a list of kernel functions and timing information, sorting the output in increasing order of time:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -175,7 +175,7 @@ kernel`sched_idletd 137 0.3%
This script will also work with kernel modules. To use this feature, run the script with `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -197,7 +197,7 @@ kernel 874 0.4%
The [.filename]#procsystime# script captures and prints the system call time usage for a given process `ID` (`PID`) or process name. In the following example, a new instance of [.filename]#/bin/csh# was spawned. Then, [.filename]#procsystime# was executed and remained waiting while a few commands were typed on the other incarnation of `csh`. These are the results of this test:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/en/books/handbook/filesystems/_index.adoc b/documentation/content/en/books/handbook/filesystems/_index.adoc
index 8a08b602fa..b517d6458a 100644
--- a/documentation/content/en/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/en/books/handbook/filesystems/_index.adoc
@@ -81,14 +81,14 @@ This driver can also be used to access ext3 and ext4 file systems. The man:ext2f
To access an ext file system, first load the kernel loadable module:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Then, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. This example mounts [.filename]#/dev/ad1s1# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/en/books/handbook/firewalls/_index.adoc b/documentation/content/en/books/handbook/firewalls/_index.adoc
index fb22cc1604..0343c2b003 100644
--- a/documentation/content/en/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/en/books/handbook/firewalls/_index.adoc
@@ -140,7 +140,7 @@ To use PF, its kernel module must be first loaded. This section describes the en
Start by adding `pf_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pf_enable=yes
....
@@ -161,7 +161,7 @@ pf_rules="/path/to/pf.conf"
Logging support for PF is provided by man:pflog[4]. To enable logging support, add `pflog_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pflog_enable=yes
....
@@ -183,7 +183,7 @@ gateway_enable="YES" # Enable as LAN gateway
After saving the needed edits, PF can be started with logging support by typing:
-[source,bash]
+[source,shell]
....
# service pf start
# service pflog start
@@ -238,7 +238,7 @@ pass out all keep state
The first rule denies all incoming traffic by default. The second rule allows connections created by this system to pass out, while retaining state information on those connections. This state information allows return traffic for those connections to pass back and should only be used on machines that can be trusted. The ruleset can be loaded with:
-[source,bash]
+[source,shell]
....
# pfctl -e ; pfctl -f /etc/pf.conf
....
@@ -266,14 +266,14 @@ Even though UDP is considered to be a stateless protocol, PF is able to track so
Whenever an edit is made to a ruleset, the new rules must be loaded so they can be used:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
If there are no syntax errors, `pfctl` will not output any messages during the rule load. Rules can also be tested before attempting to load them:
-[source,bash]
+[source,shell]
....
# pfctl -nf /etc/pf.conf
....
@@ -293,21 +293,21 @@ This section demonstrates how to configure a FreeBSD system running PF to act as
First, enable the gateway to let the machine forward the network traffic it receives on one interface to another interface. This sysctl setting will forward IPv4 packets:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.ip.forwarding=1
....
To forward IPv6 traffic, use:
-[source,bash]
+[source,shell]
....
# sysctl net.inet6.ip6.forwarding=1
....
To enable these settings at system boot, use man:sysrc[8] to add them to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc gateway_enable=yes
# sysrc ipv6_gateway_enable=yes
@@ -448,7 +448,7 @@ where `$proxy` expands to the address the proxy daemon is bound to.
Save [.filename]#/etc/pf.conf#, load the new rules, and verify from a client that FTP connections are working:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
@@ -560,14 +560,14 @@ pass inet proto tcp from <clients> to any port $client_out flags S/SA keep state
A table's contents can be manipulated live, using `pfctl`. This example adds another network to the table:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T add 192.168.1.0/16
....
Note that any changes made this way will take affect now, making them ideal for testing, but will not survive a power failure or reboot. To make the changes permanent, modify the definition of the table in the ruleset or edit the file that the table refers to. One can maintain the on-disk copy of the table using a man:cron[8] job which dumps the table's contents to disk at regular intervals, using a command such as `pfctl -t clients -T show >/etc/clients`. Alternatively, [.filename]#/etc/clients# can be updated with the in-memory table contents:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T replace -f /etc/clients
....
@@ -647,7 +647,7 @@ Over time, tables will be filled by overload rules and their size will grow incr
For situations like these, pfctl provides the ability to expire table entries. For example, this command will remove `<bruteforce>` table entries which have not been referenced for `86400` seconds:
-[source,bash]
+[source,shell]
....
# pfctl -t bruteforce -T expire 86400
....
@@ -897,14 +897,14 @@ For those users who wish to statically compile IPFW support into a custom kernel
To configure the system to enable IPFW at boot time, add `firewall_enable="YES"` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_enable="YES"
....
To use one of the default firewall types provided by FreeBSD, add another line which specifies the type:
-[source,bash]
+[source,shell]
....
# sysrc firewall_type="open"
....
@@ -925,14 +925,14 @@ Note that the `filename` type is used to load a custom ruleset.
An alternate way to load a custom ruleset is to set the `firewall_script` variable to the absolute path of an _executable script_ that includes IPFW commands. The examples used in this section assume that the `firewall_script` is set to [.filename]#/etc/ipfw.rules#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_script="/etc/ipfw.rules"
....
To enable logging through man:syslogd[8], include this line:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logging="YES"
....
@@ -945,21 +945,21 @@ Only firewall rules with the `log` option will be logged. The default rules do n
There is no [.filename]#/etc/rc.conf# variable to set logging limits. To limit the number of times a rule is logged per connection attempt, specify the number using this line in [.filename]#/etc/sysctl.conf#:
-[source,bash]
+[source,shell]
....
# echo "net.inet.ip.fw.verbose_limit=5" >> /etc/sysctl.conf
....
To enable logging through a dedicated interface named `ipfw0`, add this line to [.filename]#/etc/rc.conf# instead:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logif="YES"
....
Then use tcpdump to see what is being logged:
-[source,bash]
+[source,shell]
....
# tcpdump -t -n -i ipfw0
....
@@ -972,7 +972,7 @@ There is no overhead due to logging unless tcpdump is attached.
After saving the needed edits, start the firewall. To enable logging limits now, also set the `sysctl` value specified above:
-[source,bash]
+[source,shell]
....
# service ipfw start
# sysctl net.inet.ip.fw.verbose_limit=5
@@ -1392,49 +1392,49 @@ redirect_address 192.168.0.3 128.1.1.3
To list all the running rules in sequence:
-[source,bash]
+[source,shell]
....
# ipfw list
....
To list all the running rules with a time stamp of when the last time the rule was matched:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
The next example lists accounting information and the packet count for matched rules along with the rules themselves. The first column is the rule number, followed by the number of matched packets and bytes, followed by the rule itself.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
To list dynamic rules in addition to static rules:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
To also show the expired dynamic rules:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
To zero the counters:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
To zero the counters for just the rule with number _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1486,7 +1486,7 @@ The rules are not important as the focus of this example is how the symbolic sub
If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be reloaded by the following command:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1495,7 +1495,7 @@ If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be rel
The same thing could be accomplished by running these commands by hand:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
@@ -1591,7 +1591,7 @@ Then, to start IPF now:
To load the firewall rules, specify the name of the ruleset file using `ipf`. The following command can be used to replace the currently running firewall rules:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -1915,28 +1915,28 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Whenever the file containing the NAT rules is edited, run `ipnat` with `-CF` to delete the current NAT rules and flush the contents of the dynamic translation table. Include `-f` and specify the name of the NAT ruleset to load:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
To display the NAT statistics:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
To list the NAT table's current mappings:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
To turn verbose mode on and display information relating to rule processing and active rules and table entries:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1947,7 +1947,7 @@ IPF includes man:ipfstat[8] which can be used to retrieve and display statistics
The default `ipfstat` output looks like this:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -1970,7 +1970,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Several options are available. When supplied with either `-i` for inbound or `-o` for outbound, the command will retrieve and display the appropriate list of filter rules currently installed and in use by the kernel. To also see the rule numbers, include `-n`. For example, `ipfstat -on` displays the outbound rules table with rule numbers:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -1979,7 +1979,7 @@ Several options are available. When supplied with either `-i` for inbound or `-o
Include `-h` to prefix each rule with a count of how many times the rule was matched. For example, `ipfstat -oh` displays the outbound internal rules table, prefixing each rule with its usage count:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -2008,7 +2008,7 @@ Once the logging facility is enabled in [.filename]#rc.conf# and started with `s
By default, `ipmon -Ds` mode uses `local0` as the logging facility. The following logging levels can be used to further segregate the logged data:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -2018,7 +2018,7 @@ LOG_ERR - packets which have been logged and which can be considered short due t
In order to setup IPF to log all data to [.filename]#/var/log/ipfilter.log#, first create the empty file:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -2060,14 +2060,14 @@ This chapter describes how to set up blacklistd, configure it, and provides exam
The main configuration for blacklistd is stored in man:blacklistd.conf[5]. Various command line options are also available to change blacklistd's run-time behavior. Persistent configuration across reboots should be stored in [.filename]#/etc/blacklistd.conf#. To enable the daemon during system boot, add a `blacklistd_enable` line to [.filename]#/etc/rc.conf# like this:
-[source,bash]
+[source,shell]
....
# sysrc blacklistd_enable=yes
....
To start the service manually, run this command:
-[source,bash]
+[source,shell]
....
# service blacklistd start
....
@@ -2183,7 +2183,7 @@ That is all that is needed to make these programs talk to blacklistd.
Blacklistd provides the user with a management utility called man:blacklistctl[8]. It displays blocked addresses and networks that are blacklisted by the rules defined in man:blacklistd.conf[5]. To see the list of currently blocked hosts, use `dump` combined with `-b` like this.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -b
address/ma:port id nfail last access
@@ -2194,7 +2194,7 @@ This example shows that there were 6 out of three permitted attempts on port 22
To see the remaining time that this host will be on the blacklist, add `-r` to the previous command.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -br
address/ma:port id nfail remaining time
@@ -2207,7 +2207,7 @@ In this example, there are 36s seconds left until this host will not be blocked
Sometimes it is necessary to remove a host from the block list before the remaining time expires. Unfortunately, there is no functionality in blacklistd to do that. However, it is possible to remove the address from the PF table using pfctl. For each blocked port, there is a child anchor inside the blacklistd anchor defined in [.filename]#/etc/pf.conf#. For example, if there is a child anchor for blocking port 22 it is called `blacklistd/22`. There is a table inside that child anchor that contains the blocked addresses. This table is called port followed by the port number. In this example, it would be called `port22`. With that information at hand, it is now possible to use man:pfctl[8] to display all addresses listed like this:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T show
...
@@ -2217,7 +2217,7 @@ Sometimes it is necessary to remove a host from the block list before the remain
After identifying the address to be unblocked from the list, the following command removes it from the list:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T delete 213.0.123.128/25
....
diff --git a/documentation/content/en/books/handbook/geom/_index.adoc b/documentation/content/en/books/handbook/geom/_index.adoc
index b38b75b644..c09077d153 100644
--- a/documentation/content/en/books/handbook/geom/_index.adoc
+++ b/documentation/content/en/books/handbook/geom/_index.adoc
@@ -84,7 +84,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Load the [.filename]#geom_stripe.ko# module:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
@@ -92,7 +92,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Ensure that a suitable mount point exists. If this volume will become a root partition, then temporarily use another mount point such as [.filename]#/mnt#.
. Determine the device names for the disks which will be striped, and create the new stripe device. For example, to stripe two unused and unpartitioned ATA disks with device names of [.filename]#/dev/ad2# and [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -102,14 +102,14 @@ Done.
. Write a standard label, also known as a partition table, on the new volume and install the default bootstrap code:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
. This process should create two other devices in [.filename]#/dev/stripe# in addition to [.filename]#st0#. Those include [.filename]#st0a# and [.filename]#st0c#. At this point, a UFS file system can be created on [.filename]#st0a# using `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -117,14 +117,14 @@ Done.
Many numbers will glide across the screen, and after a few seconds, the process will be complete. The volume has been created and is ready to be mounted.
. To manually mount the created disk stripe:
+
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
. To mount this striped file system automatically during the boot process, place the volume information in [.filename]#/etc/fstab#. In this example, a permanent mount point, named [.filename]#stripe#, is created:
+
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -133,7 +133,7 @@ Many numbers will glide across the screen, and after a few seconds, the process
. The [.filename]#geom_stripe.ko# module must also be automatically loaded during system initialization, by adding a line to [.filename]#/boot/loader.conf#:
+
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -167,21 +167,21 @@ Many disk systems store metadata at the end of each disk. Old metadata should be
GPT metadata can be erased with man:gpart[8]. This example erases both primary and backup GPT partition tables from disk [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
A disk can be removed from an active mirror and the metadata erased in one step using man:gmirror[8]. Here, the example disk [.filename]#ada8# is removed from the active mirror [.filename]#gm4#:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
If the mirror is not running, but old mirror metadata is still on the disk, use `gmirror clear` to remove it:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -195,14 +195,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
The [.filename]#geom_mirror.ko# kernel module must either be built into the kernel or loaded at boot- or run-time. Manually load the kernel module now:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Create the mirror with the two new drives:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -213,7 +213,7 @@ MBR and bsdlabel partition tables can now be created on the mirror with man:gpar
Partitions on the mirror do not have to be the same size as those on the existing disk, but they must be large enough to hold all the data already present on [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -224,7 +224,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -245,7 +245,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -254,7 +254,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Format the file systems on the new mirror, enabling soft-updates.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -264,7 +264,7 @@ Format the file systems on the new mirror, enabling soft-updates.
File systems from the original [.filename]#ada0# disk can now be copied onto the mirror with man:dump[8] and man:restore[8].
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -308,14 +308,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
Load the [.filename]#geom_mirror.ko# kernel module:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Check the media size of the original disk with `diskinfo`:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -325,7 +325,7 @@ Check the media size of the original disk with `diskinfo`:
Create a mirror on the new disk. To make certain that the mirror capacity is not any larger than the original [.filename]#ada0# drive, man:gnop[8] is used to create a fake drive of the exact same size. This drive does not store any data, but is used only to limit the size of the mirror. When man:gmirror[8] creates the mirror, it will restrict the capacity to the size of [.filename]#gzero.nop#, even if the new [.filename]#ada1# drive has more space. Note that the _1000204821504_ in the second line is equal to [.filename]#ada0#'s media size as shown by `diskinfo` above.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -339,7 +339,7 @@ After creating [.filename]#gm0#, view the partition table on [.filename]#ada0#.
However, if the output shows that all of the space on the disk is allocated, as in the following listing, there is no space available for the 512-byte mirror metadata at the end of the disk.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -350,7 +350,7 @@ In this case, the partition table must be edited to reduce the capacity by one s
In either case, partition tables on the primary disk should be first copied using `gpart backup` and `gpart restore`.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -358,14 +358,14 @@ In either case, partition tables on the primary disk should be first copied usin
These commands create two files, [.filename]#table.ada0# and [.filename]#table.ada0s1#. This example is from a 1 TB drive:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -379,14 +379,14 @@ BSD 8
If no free space is shown at the end of the disk, the size of both the slice and the last partition must be reduced by one sector. Edit the two files, reducing the size of both the slice and last partition by one. These are the last numbers in each listing.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -402,7 +402,7 @@ If at least one sector was unallocated at the end of the disk, these two files c
Now restore the partition table into [.filename]#mirror/gm0#:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -410,7 +410,7 @@ Now restore the partition table into [.filename]#mirror/gm0#:
Check the partition table with `gpart show`. This example has [.filename]#gm0s1a# for [.filename]#/#, [.filename]#gm0s1d# for [.filename]#/var#, [.filename]#gm0s1e# for [.filename]#/usr#, [.filename]#gm0s1f# for [.filename]#/data1#, and [.filename]#gm0s1g# for [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -432,7 +432,7 @@ Both the slice and the last partition must have at least one free block at the e
Create file systems on these new partitions. The number of partitions will vary to match the original disk, [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -443,7 +443,7 @@ Create file systems on these new partitions. The number of partitions will vary
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -452,7 +452,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Adjust [.filename]#/etc/fstab# to use the new partitions on the mirror. Back up this file first by copying it to [.filename]#/etc/fstab.orig#.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -479,7 +479,7 @@ geom_mirror_load="YES"
File systems from the original disk can now be copied onto the mirror with man:dump[8] and man:restore[8]. Each file system dumped with `dump -L` will create a snapshot first, which can take some time.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -504,7 +504,7 @@ After booting from [.filename]#mirror/gm0# successfully, the final step is inser
When [.filename]#ada0# is inserted into the mirror, its former contents will be overwritten by data from the mirror. Make certain that [.filename]#mirror/gm0# has the same contents as [.filename]#ada0# before adding [.filename]#ada0# to the mirror. If the contents previously copied by man:dump[8] and man:restore[8] are not identical to what was on [.filename]#ada0#, revert [.filename]#/etc/fstab# to mount the file systems on [.filename]#ada0#, reboot, and start the whole procedure again.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -512,7 +512,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
Synchronization between the two disks will start immediately. Use `gmirror status` to view the progress.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -522,7 +522,7 @@ girror/gm0 DEGRADED ada1 (ACTIVE)
After a while, synchronization will finish.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -540,7 +540,7 @@ If the system no longer boots, BIOS settings may have to be changed to boot from
If the boot stops with this message, something is wrong with the mirror device:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -567,7 +567,7 @@ mountroot>
Forgetting to load the [.filename]#geom_mirror.ko# module in [.filename]#/boot/loader.conf# can cause this problem. To fix it, boot from a FreeBSD installation media and choose `Shell` at the first prompt. Then load the mirror module and mount the mirror device:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -584,7 +584,7 @@ Save the file and reboot.
Other problems that cause `error 19` require more effort to fix. Although the system should boot from [.filename]#ada0#, another prompt to select a shell will appear if [.filename]#/etc/fstab# is incorrect. Enter `ufs:/dev/ada0s1a` at the boot loader prompt and press kbd:[Enter]. Undo the edits in [.filename]#/etc/fstab# then mount the file systems from the original disk ([.filename]#ada0#) instead of the mirror. Reboot the system and try the procedure again.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -599,14 +599,14 @@ To replace the failed drive, shut down the system and physically replace the fai
After the computer is powered back up, the mirror will be running in a "degraded" mode with only one drive. The mirror is told to forget drives that are not currently connected:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Any old metadata should be cleared from the replacement disk using the instructions in <<geom-mirror-metadata>>. Then the replacement disk, [.filename]#ada4# for this example, is inserted into the mirror:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -636,28 +636,28 @@ In FreeBSD, support for RAID3 is implemented by the man:graid3[8] GEOM class. Cr
[.procedure]
. First, load the [.filename]#geom_raid3.ko# kernel module by issuing one of the following commands:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
or:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3
....
. Ensure that a suitable mount point exists. This command creates a new directory to use as the mount point:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
. Determine the device names for the disks which will be added to the array, and create the new RAID3 device. The final device listed will act as the dedicated parity disk. This example uses three unpartitioned ATA drives: [.filename]#ada1# and [.filename]#ada2# for data, and [.filename]#ada3# for parity.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -668,7 +668,7 @@ Done.
. Partition the newly created [.filename]#gr0# device and put a UFS file system on it:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -677,7 +677,7 @@ Done.
+
Many numbers will glide across the screen, and after a bit of time, the process will be complete. The volume has been created and is ready to be mounted:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -723,7 +723,7 @@ Software RAID devices often have a menu that can be entered by pressing special
Some space on the drives will be overwritten when they are made into a new array. Back up existing data first!
====
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 ada1
GEOM_RAID: Intel-a29ea104: Array Intel-a29ea104 created.
@@ -739,7 +739,7 @@ GEOM_RAID: Intel-a29ea104: Provider raid/r0 for volume gm0 created.
A status check shows the new mirror is ready for use:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -751,7 +751,7 @@ The array device appears in [.filename]#/dev/raid/#. The first array is called [
The BIOS menu on some of these devices can create arrays with special characters in their names. To avoid problems with those special characters, arrays are given simple numbered names like [.filename]#r0#. To show the actual labels, like [.filename]#gm0# in the example above, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.raid.name_format=1
....
@@ -761,7 +761,7 @@ The BIOS menu on some of these devices can create arrays with special characters
Some software RAID devices support more than one _volume_ on an array. Volumes work like partitions, allowing space on the physical drives to be split and used in different ways. For example, Intel software RAID devices support two volumes. This example creates a 40 G mirror for safely storing the operating system, followed by a 20 G RAID0 (stripe) volume for fast temporary storage:
-[source,bash]
+[source,shell]
....
# graid label -S 40G Intel gm0 RAID1 ada0 ada1
# graid add -S 20G gm0 RAID0
@@ -781,14 +781,14 @@ Under certain specific conditions, it is possible to convert an existing single
If the drive meets these requirements, start by making a full backup. Then create a single-drive mirror with that drive:
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 NONE
....
man:graid[8] metadata was written to the end of the drive in the unused space. A second drive can now be inserted into the mirror:
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
....
@@ -802,7 +802,7 @@ Drives can be inserted into an array as replacements for drives that have failed
In the example mirror array, data immediately begins to be copied to the newly-inserted drive. Any existing information on the new drive will be overwritten.
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from NONE to ACTIVE.
@@ -816,7 +816,7 @@ GEOM_RAID: Intel-a29ea104: Subdisk gm0:1-ada1 rebuild start at 0.
Individual drives can be permanently removed from a from an array and their metadata erased:
-[source,bash]
+[source,shell]
....
# graid remove raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from ACTIVE to OFFLINE.
@@ -829,7 +829,7 @@ GEOM_RAID: Intel-a29ea104: Volume gm0 state changed from OPTIMAL to DEGRADED.
An array can be stopped without removing metadata from the drives. The array will be restarted when the system is booted.
-[source,bash]
+[source,shell]
....
# graid stop raid/r0
....
@@ -839,7 +839,7 @@ An array can be stopped without removing metadata from the drives. The array wil
Array status can be checked at any time. After a drive was added to the mirror in the example above, data is being copied from the original drive to the new drive:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -849,7 +849,7 @@ raid/r0 DEGRADED ada0 (ACTIVE (ACTIVE))
Some types of arrays, like `RAID0` or `CONCAT`, may not be shown in the status report if disks have failed. To see these partially-failed arrays, add `-ga`:
-[source,bash]
+[source,shell]
....
# graid status -ga
Name Status Components
@@ -861,7 +861,7 @@ Intel-e2d07d9a BROKEN ada6 (ACTIVE (ACTIVE))
Arrays are destroyed by deleting all of the volumes from them. When the last volume present is deleted, the array is stopped and metadata is removed from the drives:
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -874,7 +874,7 @@ Drives may unexpectedly contain man:graid[8] metadata, either from previous use
[.procedure]
. Boot the system. At the boot menu, select `2` for the loader prompt. Enter:
+
-[source,bash]
+[source,shell]
....
OK set kern.geom.raid.enable=0
OK boot
@@ -893,7 +893,7 @@ to [.filename]#/boot/loader.conf#.
+
To permanently remove the man:graid[8] metadata from the affected drive, boot a FreeBSD installation CD-ROM or memory stick, and select `Shell`. Use `status` to find the name of the array, typically `raid/r0`:
+
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -903,7 +903,7 @@ raid/r0 OPTIMAL ada0 (ACTIVE (ACTIVE))
+
Delete the volume by name:
+
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -926,7 +926,7 @@ Similar to NFS, which is discussed in crossref:network-servers[network-nfs,"Netw
Before exporting the device, ensure it is not currently mounted. Then, start ggated:
-[source,bash]
+[source,shell]
....
# ggated
....
@@ -935,7 +935,7 @@ Several options are available for specifying an alternate listening port or chan
To access the exported device on the client machine, first use `ggatec` to specify the IP address of the server and the device name of the exported device. If successful, this command will display a `ggate` device name to mount. Mount that specified device name on a free mount point. This example connects to the [.filename]#/dev/da0s4d# partition on `192.168.1.1`, then mounts [.filename]#/dev/ggate0# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -973,7 +973,7 @@ Temporary labels are destroyed at the next reboot. These labels are created in [
To create a permanent label for a UFS2 file system without destroying any data, issue the following command:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -992,7 +992,7 @@ The file system must not be mounted while attempting to run `tunefs`.
Now the file system may be mounted:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -1003,7 +1003,7 @@ File systems may also be created with a default label by using the `-L` flag wit
The following command can be used to destroy the label:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -1017,7 +1017,7 @@ By permanently labeling the partitions on the boot disk, the system should be ab
Reboot the system, and at the man:loader[8] prompt, press kbd:[4] to boot into single user mode. Then enter the following commands:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -1046,7 +1046,7 @@ The system will continue with multi-user boot. After the boot completes, edit [.
The system can now be rebooted. If everything went well, it will come up normally and `mount` will show:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -1060,7 +1060,7 @@ devfs on /dev (devfs, local)
The man:glabel[8] class supports a label type for UFS file systems, based on the unique file system id, `ufsid`. These labels may be found in [.filename]#/dev/ufsid# and are created automatically during system startup. It is possible to use `ufsid` labels to mount partitions using [.filename]#/etc/fstab#. Use `glabel status` to receive a list of file systems and their corresponding `ufsid` labels:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -1103,7 +1103,7 @@ options GEOM_JOURNAL
Once the module is loaded, a journal can be created on a new file system using the following steps. In this example, [.filename]#da4# is a new SCSI disk:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -1113,7 +1113,7 @@ This will load the module and create a [.filename]#/dev/da4.journal# device node
A UFS file system may now be created on the journaled device, then mounted on an existing mount point:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
# mount /dev/da4.journal /mnt
diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc
index a0b85af569..6c636f4176 100644
--- a/documentation/content/en/books/handbook/jails/_index.adoc
+++ b/documentation/content/en/books/handbook/jails/_index.adoc
@@ -106,7 +106,7 @@ Some administrators divide jails into the following two types: "complete" jails,
The man:bsdinstall[8] tool can be used to fetch and install the binaries needed for a jail. This will walk through the picking of a mirror, which distributions will be installed into the destination directory, and some basic configuration of the jail:
-[source,bash]
+[source,shell]
....
# bsdinstall jail /here/is/the/jail
....
@@ -120,7 +120,7 @@ To install the userland from installation media, first create the root directory
Start a shell and define `DESTDIR`:
-[source,bash]
+[source,shell]
....
# sh
# export DESTDIR=/here/is/the/jail
@@ -128,7 +128,7 @@ Start a shell and define `DESTDIR`:
Mount the install media as covered in man:mdconfig[8] when using the install ISO:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
# cd /mnt/usr/freebsd-dist/
@@ -138,14 +138,14 @@ Extract the binaries from the tarballs on the install media into the declared de
To install just the base system:
-[source,bash]
+[source,shell]
....
# tar -xf base.txz -C $DESTDIR
....
To install everything except the kernel:
-[source,bash]
+[source,shell]
....
# for set in base ports; do tar -xf $set.txz -C $DESTDIR ; done
....
@@ -155,7 +155,7 @@ To install everything except the kernel:
The man:jail[8] manual page explains the procedure for building a jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -214,7 +214,7 @@ For a full list of available options, please see the man:jail.conf[5] manual pag
man:service[8] can be used to start or stop a jail by hand, if an entry for it exists in [.filename]#jail.conf#:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -222,7 +222,7 @@ man:service[8] can be used to start or stop a jail by hand, if an entry for it e
Jails can be shut down with man:jexec[8]. Use man:jls[8] to identify the jail's `JID`, then use man:jexec[8] to run the shutdown script in that jail.
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -260,7 +260,7 @@ The base system of FreeBSD contains a basic set of tools for viewing information
* Print a list of active jails and their corresponding jail identifier (JID), IP address, hostname and path.
* Attach to a running jail, from its host system, and run a command inside the jail or perform administrative tasks inside the jail itself. This is especially useful when the `root` user wants to cleanly shut down a jail. The man:jexec[8] utility can also be used to start a shell in a jail to do administration in it; for example:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -277,7 +277,7 @@ Jails should be kept up to date from the host operating system as attempting to
To update the jail to the latest patch release of the version of FreeBSD it is already running, then execute the following commands on the host:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail fetch
# freebsd-update -b /here/is/the/jail install
@@ -285,7 +285,7 @@ To update the jail to the latest patch release of the version of FreeBSD it is a
To upgrade the jail to a new major or minor version, first upgrade the host system as described in crossref:cutting-edge[freebsdupdate-upgrade,“Performing Major and Minor Version Upgrades”]. Once the host has been upgraded and rebooted, the jail can then be upgraded. For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, on the host run:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade
# freebsd-update -b /here/is/the/jail install
@@ -295,7 +295,7 @@ To upgrade the jail to a new major or minor version, first upgrade the host syst
Then, if it was a major version upgrade, reinstall all installed packages and restart the jail again. This is required because the ABI version changes when upgrading between major versions of FreeBSD. From the host:
-[source,bash]
+[source,shell]
....
# pkg -j myjail upgrade -f
# service jail restart myjail
@@ -344,7 +344,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
[.procedure]
. First, create a directory structure for the read-only file system which will contain the FreeBSD binaries for the jails. Then, change directory to the FreeBSD source tree and install the read-only file system to the jail template:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -353,7 +353,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Next, prepare a FreeBSD Ports Collection for the jails as well as a FreeBSD source tree, which is required for mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -363,7 +363,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Create a skeleton for the read-write portion of the system:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -375,7 +375,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Use mergemaster to install missing configuration files. Then, remove the extra directories that mergemaster creates:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -384,7 +384,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Now, symlink the read-write file system to the read-only file system. Ensure that the symlinks are created in the correct [.filename]#s/# locations as the creation of directories in the wrong locations will cause the installation to fail.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -450,14 +450,14 @@ jail_www_devfs_enable="YES"
The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [.filename]#/home# because the physical path of [.filename]#/home# on a default FreeBSD installation is [.filename]#/usr/home#. The `jail__name__rootdir` variable must _not_ be set to a path which includes a symbolic link, otherwise the jails will refuse to start.
. Create the required mount points for the read-only file system of each jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
. Install the read-write template into each jail using package:sysutils/cpdup[]:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -467,7 +467,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
. In this phase, the jails are built and prepared to run. First, mount the required file systems for each jail, and then start them:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -475,7 +475,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
The jails should be running now. To check if they have started correctly, use `jls`. Its output should be similar to the following:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -486,7 +486,7 @@ The jails should be running now. To check if they have started correctly, use `j
At this point, it should be possible to log onto each jail, add new users, or configure daemons. The `JID` column indicates the jail identification number of each running jail. Use the following command to perform administrative tasks in the jail whose JID is `3`:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -499,7 +499,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
[.procedure]
. The first step is to upgrade the host system. Then, create a new temporary read-only template in [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -511,7 +511,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
+
The `installworld` creates a few unnecessary directories, which should be removed:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -519,7 +519,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Recreate the read-write symlinks for the master file system:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -532,14 +532,14 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Next, stop the jails:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
. Unmount the original file systems as the read-write systems are attached to the read-only system ([.filename]#/s#):
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -551,7 +551,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Move the old read-only file system and replace it with the new one. This will serve as a backup and archive of the old read-only file system should something go wrong. The naming convention used here corresponds to when a new read-only file system has been created. Move the original FreeBSD Ports Collection over to the new file system to save some space and inodes:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -561,7 +561,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. At this point the new read-only template is ready, so the only remaining task is to remount the file systems and start the jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -593,7 +593,7 @@ cloned_interfaces="lo1"
The second loopback interface `lo1` will be created when the system starts. It can also be created manually without a restart:
+
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -606,7 +606,7 @@ Inside a jail, access to the loopback address `127.0.0.1` is redirected to the f
Give each jail a unique loopback address in the `127.0.0.0/8` netblock.
. Install package:sysutils/ezjail[]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/ezjail
# make install clean
@@ -621,7 +621,7 @@ ezjail_enable="YES"
. The service will automatically start on system boot. It can be started immediately for the current session:
+
-[source,bash]
+[source,shell]
....
# service ezjail start
....
@@ -640,7 +640,7 @@ In both of these examples, `-p` causes the ports tree to be retrieved with man:p
+
For a basejail based on the FreeBSD RELEASE matching that of the host computer, use `install`. For example, on a host computer running FreeBSD 10-STABLE, the latest RELEASE version of FreeBSD -10 will be installed in the jail):
+
-[source,bash]
+[source,shell]
....
# ezjail-admin install -p
....
@@ -651,7 +651,7 @@ The basejail can be installed from binaries created by `buildworld` on the host
+
In this example, FreeBSD 10-STABLE has been built from source. The jail directories are created. Then `installworld` is executed, installing the host's [.filename]#/usr/obj# into the basejail.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i -p
....
@@ -686,7 +686,7 @@ New jails are created with `ezjail-admin create`. In these examples, the `lo1` l
.Procedure: Create and Start a New Jail
. Create the jail, specifying a name and the loopback and network interfaces to use, along with their IP addresses. In this example, the jail is named `dnsjail`.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin create dnsjail 'lo1|127.0.1.1,em0|192.168.1.50'
....
@@ -708,14 +708,14 @@ Do not enable raw network sockets unless services in the jail actually require t
. Start the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin start dnsjail
....
. Use a console on the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
....
@@ -727,7 +727,7 @@ The jail is operating and additional configuration can be completed. Typical set
+
Connect to the jail and set the `root` user's password:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
# passwd
@@ -767,14 +767,14 @@ Because the basejail's copy of the userland is shared by the other jails, updati
To build the world from source on the host, then install it in the basejail, use:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -b
....
If the world has already been compiled on the host, install it in the basejail with:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i
....
@@ -783,14 +783,14 @@ Binary updates use man:freebsd-update[8]. These updates have the same limitation
Update the basejail to the latest patched release of the version of FreeBSD on the host. For example, updating from RELEASE-p1 to RELEASE-p2.
-[source,bash]
+[source,shell]
....
# ezjail-admin update -u
....
To upgrade the basejail to a new version, first upgrade the host system as described in crossref:cutting-edge[freebsdupdate-upgrade,“Performing Major and Minor Version Upgrades”]. Once the host has been upgraded and rebooted, the basejail can then be upgraded. man:freebsd-update[8] has no way of determining which version is currently installed in the basejail, so the original version must be specified. Use man:file[1] to determine the original version in the basejail:
-[source,bash]
+[source,shell]
....
# file /usr/jails/basejail/bin/sh
/usr/jails/basejail/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.3, stripped
@@ -798,7 +798,7 @@ To upgrade the basejail to a new version, first upgrade the host system as descr
Now use this information to perform the upgrade from `9.3-RELEASE` to the current version of the host system:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -U -s 9.3-RELEASE
....
@@ -813,7 +813,7 @@ How to use man:mergemaster[8] depends on the purpose and trustworthiness of a ja
====
Delete the link from the jail's [.filename]#/usr/src# into the basejail and create a new [.filename]#/usr/src# in the jail as a mountpoint. Mount the host computer's [.filename]#/usr/src# read-only on the jail's new [.filename]#/usr/src# mountpoint:
-[source,bash]
+[source,shell]
....
# rm /usr/jails/jailname/usr/src
# mkdir /usr/jails/jailname/usr/src
@@ -822,14 +822,14 @@ Delete the link from the jail's [.filename]#/usr/src# into the basejail and crea
Get a console in the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin console jailname
....
Inside the jail, run `mergemaster`. Then exit the jail console:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# mergemaster -U
@@ -838,7 +838,7 @@ Inside the jail, run `mergemaster`. Then exit the jail console:
Finally, unmount the jail's [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# umount /usr/jails/jailname/usr/src
....
@@ -852,7 +852,7 @@ Finally, unmount the jail's [.filename]#/usr/src#:
If the users and services in a jail are trusted, man:mergemaster[8] can be run from the host:
-[source,bash]
+[source,shell]
....
# mergemaster -U -D /usr/jails/jailname
....
@@ -864,7 +864,7 @@ If the users and services in a jail are trusted, man:mergemaster[8] can be run f
After a major version update it is recommended by package:sysutils/ezjail[] to make sure your `pkg` is of the correct version. Therefore enter:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f pkg
....
@@ -879,7 +879,7 @@ The ports tree in the basejail is shared by the other jails. Updating that copy
The basejail ports tree is updated with man:portsnap[8]:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -P
....
@@ -892,7 +892,7 @@ The basejail ports tree is updated with man:portsnap[8]:
ezjail automatically starts jails when the computer is started. Jails can be manually stopped and restarted with `stop` and `start`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop sambajail
Stopping jails: sambajail.
@@ -900,7 +900,7 @@ Stopping jails: sambajail.
By default, jails are started automatically when the host computer starts. Autostarting can be disabled with `config`:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r norun seldomjail
....
@@ -909,7 +909,7 @@ This takes effect the next time the host computer is started. A jail that is alr
Enabling autostart is very similar:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r run oftenjail
....
@@ -923,7 +923,7 @@ The archive file can be copied elsewhere as a backup, or an existing jail can be
Stop and archive a jail named `wwwserver`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop wwwserver
Stopping jails: wwwserver.
@@ -934,7 +934,7 @@ wwwserver-201407271153.13.tar.gz
Create a new jail named `wwwserver-clone` from the archive created in the previous step. Use the [.filename]#em1# interface and assign a new IP address to avoid conflict with the original:
-[source,bash]
+[source,shell]
....
# ezjail-admin create -a /usr/jails/ezjail_archives/wwwserver-201407271153.13.tar.gz wwwserver-clone 'lo1|127.0.3.1,em1|192.168.1.51'
....
@@ -963,7 +963,7 @@ cloned_interfaces="lo1"
Immediately create the new loopback interface:
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -971,14 +971,14 @@ Created clone interfaces: lo1.
Create the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin create dns1 'lo1|127.0.2.1,re0|192.168.1.240'
....
Start the jail, connect to a console running on it, and perform some basic configuration:
-[source,bash]
+[source,shell]
....
# ezjail-admin start dns1
# ezjail-admin console dns1
@@ -1001,7 +1001,7 @@ nameserver 10.0.0.61
Still using the jail console, install package:dns/bind99[].
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/dns/bind99 install clean
....
@@ -1066,7 +1066,7 @@ named_enable="YES"
Start and test the name server:
-[source,bash]
+[source,shell]
....
# service named start
wrote key file "/usr/local/etc/namedb/rndc.key"
@@ -1076,14 +1076,14 @@ Starting named.
A response that includes
-[source,bash]
+[source,shell]
....
;; Got answer;
....
shows that the new DNS server is working. A long delay followed by a response including
-[source,bash]
+[source,shell]
....
;; connection timed out; no servers could be reached
....
diff --git a/documentation/content/en/books/handbook/kernelconfig/_index.adoc b/documentation/content/en/books/handbook/kernelconfig/_index.adoc
index bf6e4d0d21..61e173ed84 100644
--- a/documentation/content/en/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/en/books/handbook/kernelconfig/_index.adoc
@@ -76,7 +76,7 @@ Before building a custom kernel, consider the reason for doing so. If there is a
Kernel modules exist in [.filename]#/boot/kernel# and may be dynamically loaded into the running kernel using man:kldload[8]. Most kernel drivers have a loadable module and manual page. For example, the man:ath[4] wireless Ethernet driver has the following information in its manual page:
-[source,bash,subs="macros"]
+[source,shell,subs="macros"]
....
Alternatively, to load the driver as a module at boot time, place the
following line in man:loader.conf[5]:
@@ -100,7 +100,7 @@ Some versions of Microsoft(R) Windows(R) have a System icon which can be used to
If FreeBSD is the only installed operating system, use man:dmesg[8] to determine the hardware that was found and listed during the boot probe. Most device drivers on FreeBSD have a manual page which lists the hardware supported by that driver. For example, the following lines indicate that the man:psm[4] driver found a mouse:
-[source,bash]
+[source,shell]
....
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
@@ -114,7 +114,7 @@ If the output of `dmesg` does not display the results of the boot probe output,
Another tool for finding hardware is man:pciconf[8], which provides more verbose output. For example:
-[source,bash]
+[source,shell]
....
% pciconf -lv
ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01 hdr=0x00
@@ -128,7 +128,7 @@ This output shows that the [.filename]#ath# driver located a wireless Ethernet d
The `-k` flag of man:man[1] can be used to provide useful information. For example, it can be used to display a list of manual pages which contain a particular device brand or name:
-[source,bash]
+[source,shell]
....
# man -k Atheros
ath(4) - Atheros IEEE 802.11 wireless network driver
@@ -148,7 +148,7 @@ Once source is installed, review the contents of [.filename]#/usr/src/sys#. This
Do not make edits to [.filename]#GENERIC#. Instead, copy the file to a different name and make edits to the copy. The convention is to use a name with all capital letters. When maintaining multiple FreeBSD machines with different hardware, it is a good idea to name it after the machine's hostname. This example creates a copy, named [.filename]#MYKERNEL#, of the [.filename]#GENERIC# configuration file for the `amd64` architecture:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
@@ -173,7 +173,7 @@ When finished customizing the kernel configuration file, save a backup copy to a
Alternately, keep the kernel configuration file elsewhere and create a symbolic link to the file:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernels
@@ -202,7 +202,7 @@ Using this method, the local configuration file expresses local differences from
====
To build a file which contains all available options, run the following command as `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/arch/conf && make LINT
....
@@ -218,21 +218,21 @@ Once the edits to the custom configuration file have been saved, the source code
*Procedure: Building a Kernel*
. Change to this directory:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
. Compile the new kernel by specifying the name of the custom kernel configuration file:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
. Install the new kernel associated with the specified kernel configuration file. This command will copy the new kernel to [.filename]#/boot/kernel/kernel# and save the old kernel to [.filename]#/boot/kernel.old/kernel#:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -265,7 +265,7 @@ There are four categories of trouble that can occur when building a custom kerne
`config` fails::
If `config` fails, it will print the line number that is incorrect. As an example, for the following message, make sure that line 17 is typed correctly by comparing it to [.filename]#GENERIC# or [.filename]#NOTES#:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -282,7 +282,7 @@ After booting with a good kernel, check over the configuration file and try to b
====
When troubleshooting a kernel, make sure to keep a copy of [.filename]#GENERIC#, or some other kernel that is known to work, as a different name that will not get erased on the next build. This is important because every time a new kernel is installed, [.filename]#kernel.old# is overwritten with the last installed kernel, which may or may not be bootable. As soon as possible, move the working kernel by renaming the directory containing the good kernel:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/en/books/handbook/l10n/_index.adoc b/documentation/content/en/books/handbook/l10n/_index.adoc
index 284eb1ac71..17e19a2393 100644
--- a/documentation/content/en/books/handbook/l10n/_index.adoc
+++ b/documentation/content/en/books/handbook/l10n/_index.adoc
@@ -92,14 +92,14 @@ The _LanguageCode_ and _CountryCode_ are used to determine the country and the s
A complete listing of available locales can be found by typing:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
To determine the current locale setting:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -180,7 +180,7 @@ See man:login.conf[5] for more details about these variables. Note that it alrea
Whenever [.filename]#/etc/login.conf# is edited, remember to execute the following command to update the capability database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -207,28 +207,28 @@ If all new users use the same language, set `defaultclass=_language_` in [.filen
To override this setting when creating a user, either input the required locale at this prompt:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
or specify the locale to set when invoking `adduser`:
-[source,bash]
+[source,shell]
....
# adduser -class language
....
If `pw` is used to add new users, specify the locale as follows:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
To change the login class of an existing user, `chpass` can be used. Invoke it as superuser and provide the username to edit as the argument.
-[source,bash]
+[source,shell]
....
# chpass user_name
....
diff --git a/documentation/content/en/books/handbook/linuxemu/_index.adoc b/documentation/content/en/books/handbook/linuxemu/_index.adoc
index 29e73a0e94..d82ee1858f 100644
--- a/documentation/content/en/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/en/books/handbook/linuxemu/_index.adoc
@@ -71,21 +71,21 @@ By default, Linux(R) libraries are not installed and Linux(R) binary compatibili
Before attempting to build the port, load the Linux(R) kernel module, otherwise the build will fail:
-[source,bash]
+[source,shell]
....
# kldload linux
....
For 64-bit compatibility:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
To verify that the module is loaded:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -95,7 +95,7 @@ To verify that the module is loaded:
The package:emulators/linux_base-c7[] package or port is the easiest way to install a base set of Linux(R) libraries and binaries on a FreeBSD system. To install the port:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -121,7 +121,7 @@ tmpfs /compat/linux/dev/shm tmpfs rw,mode=1777 0 0
Then mount the filesystem accordingly:
-[source,bash]
+[source,shell]
----
# mount /compat/linux/sys
# mount /compat/linux/proc
@@ -135,7 +135,7 @@ If a Linux(R) application complains about missing shared libraries after configu
From a Linux(R) system, `ldd` can be used to determine which shared libraries the application needs. For example, to check which shared libraries `linuxdoom` needs, run this command from a Linux(R) system that has Doom installed:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -145,7 +145,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Then, copy all the files in the last column of the output from the Linux(R) system into [.filename]#/compat/linux# on the FreeBSD system. Once copied, create symbolic links to the names in the first column. This example will result in the following files on the FreeBSD system:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -159,7 +159,7 @@ If a Linux(R) shared library already exists with a matching major revision numbe
For example, these libraries already exist on the FreeBSD system:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -167,14 +167,14 @@ For example, these libraries already exist on the FreeBSD system:
and `ldd` indicates that a binary requires a later version:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Since the existing library is only one or two versions out of date in the last digit, the program should still work with the slightly older version. However, it is safe to replace the existing [.filename]#libc.so# with the newer version:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -186,7 +186,7 @@ Generally, one will need to look for the shared libraries that Linux(R) binaries
ELF binaries sometimes require an extra step. When an unbranded ELF binary is executed, it will generate an error message:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -195,7 +195,7 @@ Abort
To help the FreeBSD kernel distinguish between a FreeBSD ELF binary and a Linux(R) binary, use man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -206,7 +206,7 @@ Since the GNU toolchain places the appropriate branding information into ELF bin
To install a Linux(R) RPM-based application, first install the package:archivers/rpm4[] package or port. Once installed, `root` can use this command to install a [.filename]#.rpm#:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -218,7 +218,7 @@ If necessary, `brandelf` the installed ELF binaries. Note that this will prevent
If DNS does not work or this error appears:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -253,7 +253,7 @@ For the Linux(R) ABI support, FreeBSD sees the magic number as an ELF binary. Th
For Linux(R) binaries to function, they must be _branded_ as type `Linux` using man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/en/books/handbook/mac/_index.adoc b/documentation/content/en/books/handbook/mac/_index.adoc
index 60c1d46c07..3f613574f9 100644
--- a/documentation/content/en/books/handbook/mac/_index.adoc
+++ b/documentation/content/en/books/handbook/mac/_index.adoc
@@ -109,7 +109,7 @@ Using a multi label policy on a partition and establishing a multi label securit
The following command will set `multilabel` on the specified UFS file system. This may only be done in single-user mode and is not a requirement for the swap file system:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -127,7 +127,7 @@ Virtually all aspects of label policy module configuration will be performed usi
All configuration may be done using `setfmac`, which is used to set MAC labels on system objects, and `setpmac`, which is used to set the labels on system subjects. For example, to set the `biba` MAC label to `high` on [.filename]#test#:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
@@ -136,7 +136,7 @@ If the configuration is successful, the prompt will be returned without error. A
The system administrator may use `setpmac` to override the policy module's settings by assigning a different label to the invoked process:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -219,7 +219,7 @@ Labels may be set on network interfaces to help control the flow of data across
When setting the MAC label on network interfaces, `maclabel` may be passed to `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -298,7 +298,7 @@ The rule list may be entered using man:ugidfw[8] which has a syntax similar to m
After the man:mac_bsdextended[4] module has been loaded, the following command may be used to list the current rule configuration:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -306,14 +306,14 @@ After the man:mac_bsdextended[4] module has been loaded, the following command m
By default, no rules are defined and everything is completely accessible. To create a rule which blocks all access by users but leaves `root` unaffected:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
While this rule is simple to implement, it is a very bad idea as it blocks all users from issuing any commands. A more realistic example blocks `user1` all access, including directory listings, to ``_user2_``'s home directory:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -365,7 +365,7 @@ Once loaded, this module enables the MAC policy on all sockets. The following tu
By default, ports below 1024 can only be used by privileged processes which run as `root`. For man:mac_portacl[4] to allow non-privileged processes to bind to ports below 1024, set the following tunables as follows:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0
@@ -374,21 +374,21 @@ By default, ports below 1024 can only be used by privileged processes which run
To prevent the `root` user from being affected by this policy, set `security.mac.portacl.suser_exempt` to a non-zero value.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
To allow the `www` user with UID 80 to bind to port 80 without ever needing `root` privilege:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
This next example permits the user with the UID of 1001 to bind to TCP ports 110 (POP3) and 995 (POP3s):
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -410,21 +410,21 @@ When this policy is enabled, users will only be permitted to see their processes
This example adds `top` to the label set on users in the `insecure` class. All processes spawned by users in the `insecure` class will stay in the `partition/13` label.
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
This command displays the partition label and the process list:
-[source,bash]
+[source,shell]
....
# ps Zax
....
This command displays another user's process partition label and that user's currently running processes:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -467,14 +467,14 @@ The following `sysctl` tunables are available:
To manipulate MLS labels, use man:setfmac[8]. To assign a label to an object:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
To get the MLS label for the file [.filename]#test#:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -521,7 +521,7 @@ The following tunables can be used to manipulate the Biba policy:
To access the Biba policy setting on system objects, use `setfmac` and `getfmac`:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -551,7 +551,7 @@ This policy relies on the ubiquitous labeling of all system objects with integri
Like the Biba and MLS policies, `setfmac` and `setpmac` are used to place labels on system objects:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -638,7 +638,7 @@ Then, add the following line to the default user class section:
Save the edits and issue the following command to rebuild the database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -647,14 +647,14 @@ Save the edits and issue the following command to rebuild the database:
Set the `root` user to the default class using:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
All user accounts that are not `root` will now require a login class. The login class is required, otherwise users will be refused access to common commands. The following `sh` script should do the trick:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -662,7 +662,7 @@ All user accounts that are not `root` will now require a login class. The login
Next, drop the `nagios` and `www` accounts into the insecure class:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
# pw usermod www -L insecure
@@ -705,7 +705,7 @@ This policy enforces security by setting restrictions on the flow of information
This file will be read after running `setfsmac` on every file system. This example sets the policy on the root file system:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
....
@@ -744,7 +744,7 @@ First, ensure that the web server and Nagios will not be started on system initi
If all seems well, Nagios, Apache, and Sendmail can now be started:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -757,7 +757,7 @@ Double check to ensure that everything is working properly. If not, check the lo
====
The `root` user can still change the security enforcement and edit its configuration files. The following command will permit the degradation of the security policy to a lower grade for a newly spawned shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/en/books/handbook/mail/_index.adoc b/documentation/content/en/books/handbook/mail/_index.adoc
index 310b5df7a0..d603424c36 100644
--- a/documentation/content/en/books/handbook/mail/_index.adoc
+++ b/documentation/content/en/books/handbook/mail/_index.adoc
@@ -98,7 +98,7 @@ In addition to mapping hostnames to IP addresses, DNS is responsible for storing
+
To view the MX records for a domain, specify the type of record. Refer to man:host[1], for more details about this command:
+
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -142,7 +142,7 @@ To configure the access database, use the format shown in the sample to make ent
+
Whenever this file is updated, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -184,7 +184,7 @@ postmaster@example.com postmaster@noc.example.net
+
This file is processed in a first match order. When an email address matches the address on the left, it is mapped to the local mailbox listed on the right. The format of the first entry in this example maps a specific email address to a local mailbox, whereas the format of the second entry maps a specific email address to a remote mailbox. Finally, any email address from `example.com` which has not matched any of the previous entries will match the last mapping and be sent to the local mailbox `joe`. When creating custom entries, use this format and add them to [.filename]#/etc/mail/virtusertable#. Whenever this file is edited, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
# service sendmail restart
@@ -248,7 +248,7 @@ More information on Sendmail's startup options is available in man:rc.sendmail[8
When a new MTA is installed using the Ports Collection, its startup script is also installed and startup instructions are mentioned in its package message. Before starting the new MTA, stop the running Sendmail processes. This example stops all of these services, then starts the Postfix service:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -428,7 +428,7 @@ Either of the above will allow mail to be received directly at the host.
Try this:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -440,7 +440,7 @@ In this example, mail sent directly to mailto:yourlogin@example.FreeBSD.org[your
For this example:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -512,7 +512,7 @@ Additionally, a typical Internet access service agreement may forbid one from ru
The easiest way to fulfill those needs is to install the package:mail/ssmtp[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -616,7 +616,7 @@ saslauthd_enable="YES"
+
Finally, start the saslauthd daemon:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -633,7 +633,7 @@ SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
These lines provide Sendmail the proper configuration options for linking to package:cyrus-sasl2[] at compile time. Make sure that package:cyrus-sasl2[] has been installed before recompiling Sendmail.
. Recompile Sendmail by executing the following commands:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -674,14 +674,14 @@ Although `mail` does not natively support interaction with POP or IMAP servers,
In order to send and receive email, run `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
The contents of the user's mailbox in [.filename]#/var/mail# are automatically read by `mail`. Should the mailbox be empty, the utility exits with a message indicating that no mail could be found. If mail exists, the application interface starts, and a list of messages will be displayed. Messages are automatically numbered, as can be seen in the following example:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -692,7 +692,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Messages can now be read by typing kbd:[t] followed by the message number. This example reads the first email:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -711,7 +711,7 @@ As seen in this example, the message will be displayed with full headers. To dis
If the email requires a reply, press either kbd:[R] or kbd:[r] `mail` keys. kbd:[R] instructs `mail` to reply only to the sender of the email, while kbd:[r] replies to all other recipients of the message. These commands can be suffixed with the mail number of the message to reply to. After typing the response, the end of the message should be marked by a single kbd:[.] on its own line. An example can be seen below:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -724,7 +724,7 @@ EOT
In order to send a new email, press kbd:[m], followed by the recipient email address. Multiple recipients may be specified by separating each address with the kbd:[,] delimiter. The subject of the message may then be entered, followed by the message contents. The end of the message should be specified by putting a single kbd:[.] on its own line.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -756,7 +756,7 @@ Refer to http://www.mutt.org[http://www.mutt.org] for more information on mutt.
mutt may be installed using the package:mail/mutt[] port. After the port has been installed, mutt can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -795,7 +795,7 @@ alpine has had several remote vulnerabilities discovered in the past, which allo
The current version of alpine may be installed using the package:mail/alpine[] port. Once the port has installed, alpine can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -836,7 +836,7 @@ fetchmail is a full-featured IMAP and POP client. It allows users to automatical
This section explains some of the basic features of fetchmail. This utility requires a [.filename]#.fetchmailrc# configuration in the user's home directory in order to run correctly. This file includes server information as well as login credentials. Due to the sensitive nature of the contents of this file, it is advisable to make it readable only by the user, with the following command:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -861,7 +861,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail can be run in daemon mode by running it with `-d`, followed by the interval (in seconds) that fetchmail should poll servers listed in [.filename]#.fetchmailrc#. The following example configures fetchmail to poll every 600 seconds:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/en/books/handbook/mirrors/_index.adoc b/documentation/content/en/books/handbook/mirrors/_index.adoc
index 20c01d6915..3feb119a5e 100644
--- a/documentation/content/en/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/en/books/handbook/mirrors/_index.adoc
@@ -406,7 +406,7 @@ This section demonstrates how to install Subversion on a FreeBSD system and use
Installing package:security/ca_root_nss[] allows Subversion to verify the identity of HTTPS repository servers. The root SSL certificates can be installed from a port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -414,7 +414,7 @@ Installing package:security/ca_root_nss[] allows Subversion to verify the identi
or as a package:
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -433,7 +433,7 @@ If `svnlite` is unavailable or the full version of Subversion is needed, then it
Subversion can be installed from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -441,7 +441,7 @@ Subversion can be installed from the Ports Collection:
Subversion can also be installed as a package:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -463,7 +463,7 @@ Subversion uses URLs to designate a repository, taking the form of _protocol://h
A checkout from a given repository is performed with a command like this:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lwcdir
....
@@ -476,7 +476,7 @@ where:
This example checks out the Ports Collection from the FreeBSD repository using the HTTPS protocol, placing the local working copy in [.filename]#/usr/ports#. If [.filename]#/usr/ports# is already present but was not created by `svn`, remember to rename or delete it before the checkout.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -485,14 +485,14 @@ Because the initial checkout must download the full branch of the remote reposit
After the initial checkout, the local working copy can be updated by running:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
To update [.filename]#/usr/ports# created in the example above, use:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -501,7 +501,7 @@ The update is much quicker than a checkout, only transferring files that have ch
An alternate way of updating the local working copy after checkout is provided by the [.filename]#Makefile# in the [.filename]#/usr/ports#, [.filename]#/usr/src#, and [.filename]#/usr/doc# directories. Set `SVN_UPDATE` and use the `update` target. For example, to update [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/en/books/handbook/multimedia/_index.adoc b/documentation/content/en/books/handbook/multimedia/_index.adoc
index fe1fab3cfe..b0a1e31c54 100644
--- a/documentation/content/en/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/en/books/handbook/multimedia/_index.adoc
@@ -74,7 +74,7 @@ Before beginning the configuration, determine the model of the sound card and th
In order to use the sound device, its device driver must be loaded. The easiest way is to load a kernel module for the sound card with man:kldload[8]. This example loads the driver for a built-in audio chipset based on the Intel specification:
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -88,7 +88,7 @@ snd_hda_load="YES"
Other available sound modules are listed in [.filename]#/boot/defaults/loader.conf#. When unsure which driver to use, load the [.filename]#snd_driver# module:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -145,7 +145,7 @@ The settings shown above are the defaults. In some cases, the IRQ or other setti
After loading the required module or rebooting into the custom kernel, the sound card should be detected. To confirm, run `dmesg | grep pcm`. This example is from a system with a built-in Conexant CX20590 chipset:
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -154,7 +154,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
The status of the sound card may also be checked using this command:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -168,7 +168,7 @@ The output will vary depending upon the sound card. If no [.filename]#pcm# devic
If all goes well, the sound card should now work in FreeBSD. If the `CD` or `DVD` drive is properly connected to the sound card, one can insert an audio `CD` in the drive and play it with man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -183,7 +183,7 @@ Various applications, such as package:audio/workman[], provide a friendlier inte
Another quick way to test the card is to send data to [.filename]#/dev/dsp#:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -202,28 +202,28 @@ Connecting to a Bluetooth device is out of scope for this chapter. Refer to cros
To get Bluetooth sound sink working with FreeBSD's sound system, users have to install package:audio/virtual_oss[] first:
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] requires `cuse` to be loaded into the kernel:
-[source,bash]
+[source,shell]
....
# kldload cuse
....
To load `cuse` during system startup, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
To use headphones as a sound sink with package:audio/virtual_oss[], users need to create a virtual device after connecting to a Bluetooth audio device:
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -293,7 +293,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
In this example, the graphics card (`NVidia`) has been enumerated before the sound card (`Realtek ALC889`). To use the sound card as the default playback device, change `hw.snd.default_unit` to the unit that should be used for playback:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -312,7 +312,7 @@ It is often desirable to have multiple sources of sound that are able to play si
Three man:sysctl[8] knobs are available for configuring virtual channels:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -351,7 +351,7 @@ A popular graphical `MP3` player is Audacious. It supports Winamp skins and addi
The package:audio/mpg123[] package or port provides an alternative, command-line `MP3` player. Once installed, specify the `MP3` file to play on the command line. If the system has multiple audio devices, the sound device can also be specified:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
@@ -373,7 +373,7 @@ The `cdda2wav` tool, which is installed with the package:sysutils/cdrtools[] sui
With the audio `CD` in the drive, the following command can be issued as `root` to rip an entire `CD` into individual, per track, `WAV` files:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -382,21 +382,21 @@ In this example, the `-D _0,1,0_` indicates the `SCSI` device [.filename]#0,1,0#
To rip individual tracks, use `-t` to specify the track:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
To rip a range of tracks, such as track one to seven, specify a range:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
To rip from an `ATAPI` (`IDE`) `CDROM` drive, specify the device name in place of the `SCSI` unit numbers. For example, to rip track 7 from an IDE drive:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -410,7 +410,7 @@ Lame is a popular `MP3` encoder which can be installed from the package:audio/la
The following command will convert the ripped `WAV` file [.filename]#audio01.wav# to [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "Foo Song Title" --ta "FooBar Artist" --tl "FooBar Album" \
--ty "2014" --tc "Ripped and encoded by Foo" --tg "Genre" audio01.wav audio01.mp3
@@ -422,7 +422,7 @@ In order to burn an audio `CD` from ``MP3``s, they must first be converted to a
To convert [.filename]#audio01.mp3# using mpg123, specify the name of the `PCM` file:
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -443,7 +443,7 @@ To use XMMS to convert a `MP3` to `WAV` format, use these steps:
Both the `WAV` and `PCM` formats can be used with cdrecord. When using `WAV` files, there will be a small tick sound at the beginning of each track. This sound is the header of the `WAV` file. The package:audio/sox[] port or package can be used to remove the header:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -457,7 +457,7 @@ Before configuring video playback, determine the model and chipset of the video
It is a good idea to have a short MPEG test file for evaluating various players and options. Since some `DVD` applications look for `DVD` media in [.filename]#/dev/dvd# by default, or have this device name hardcoded in them, it might be useful to make a symbolic link to the proper device:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/cd0 /dev/dvd
....
@@ -497,14 +497,14 @@ Common video interfaces include:
To check whether this extension is running, use `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo is supported for the card if the result is similar to:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -580,7 +580,7 @@ The formats listed, such as YUV2 and YUV12, are not present with every implement
If the result instead looks like:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -611,27 +611,27 @@ This section describes only a few common uses. Refer to mplayer(1) for a complet
To play the file [.filename]#testfile.avi#, specify the video interfaces with `-vo`, as seen in the following examples:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -640,7 +640,7 @@ It is worth trying all of these options, as their relative performance depends o
To play a `DVD`, replace [.filename]#testfile.avi# with `dvd://_N_ -dvd-device _DEVICE_`, where _N_ is the title number to play and _DEVICE_ is the device node for the `DVD`. For example, to play title 3 from [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -665,7 +665,7 @@ zoom=yes
`mplayer` can be used to rip a `DVD` title to a [.filename]#.vob#. To dump the second title from a `DVD`:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -678,7 +678,7 @@ Before using `mencoder`, it is a good idea to become familiar with the options d
Here is an example of a simple copy:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -687,7 +687,7 @@ To rip to a file, use `-dumpfile` with `mplayer`.
To convert [.filename]#input.avi# to the MPEG4 codec with MPEG3 audio encoding, first install the package:audio/lame[] port. Due to licensing restrictions, a package is not available. Once installed, type:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -708,7 +708,7 @@ By default, the xine player starts a graphical user interface. The menus can the
Alternatively, xine may be invoked from the command line by specifying the name of the file to play:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -724,7 +724,7 @@ In FreeBSD, Transcode can be installed using the package:multimedia/transcode[]
This example demonstrates how to convert a DivX file into a PAL MPEG-1 file (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -783,7 +783,7 @@ options OVERRIDE_TUNER=6
or, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -825,14 +825,14 @@ The https://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] page contains a list of
To install MythTV using binary packages:
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
Alternatively, to install from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -840,21 +840,21 @@ Alternatively, to install from the Ports Collection:
Once installed, set up the MythTV database:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Then, configure the backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Finally, start the backend:
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -885,7 +885,7 @@ device xhci
To determine if the `USB` scanner is detected, plug it in and use `dmesg` to determine whether the scanner appears in the system message buffer. If it does, it should display a message similar to this:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -902,7 +902,7 @@ device pass
Verify that the device is displayed in the system message buffer:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -911,7 +911,7 @@ pass2: 3.300MB/s transfers
If the scanner was not powered-on at system boot, it is still possible to manually force detection by performing a `SCSI` bus scan with `camcontrol`:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -922,7 +922,7 @@ Re-scan of bus 3 was successful
The scanner should now appear in the `SCSI` devices list:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -939,14 +939,14 @@ The SANE system provides the access to the scanner via backends (package:graphic
To install the backends from binary package:
-[source,bash]
+[source,shell]
....
# pkg install sane-backends
....
Alternatively, to install from the Ports Collection
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-backends
# make install clean
@@ -954,7 +954,7 @@ Alternatively, to install from the Ports Collection
After installing the package:graphics/sane-backends[] port or package, use `sane-find-scanner` to check the scanner detection by the SANE system:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -969,7 +969,7 @@ Some `USB` scanners require firmware to be loaded. Refer to sane-find-scanner(1)
Next, check if the scanner will be identified by a scanning frontend. The SANE backends include `scanimage` which can be used to list the devices and perform an image acquisition. Use `-L` to list the scanner devices. The first example is for a `SCSI` scanner and the second is for a `USB` scanner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -982,7 +982,7 @@ In this second example, `epson2` is the backend name and `libusb:000:002` means
If `scanimage` is unable to identify the scanner, this message will appear:
-[source,bash]
+[source,shell]
....
# scanimage -L
No scanners were identified. If you were expecting something different,
@@ -1000,7 +1000,7 @@ usb /dev/ugen0.2
Save the edits and verify that the scanner is identified with the right backend name and the device node:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
@@ -1016,7 +1016,7 @@ In order to have access to the scanner, a user needs read and write permissions
This example creates a group called `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1054,14 +1054,14 @@ devfs_system_ruleset="system"
And, restart the man:devfs[8] system:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
Finally, add the users to `_usb_` in order to allow access to the scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/en/books/handbook/network-servers/_index.adoc b/documentation/content/en/books/handbook/network-servers/_index.adoc
index 1f43c14dcf..092271bf56 100644
--- a/documentation/content/en/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/en/books/handbook/network-servers/_index.adoc
@@ -89,7 +89,7 @@ inetd_enable="YES"
To start inetd now, so that it listens for the service you configured, type:
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -101,7 +101,7 @@ Once inetd is started, it needs to be notified whenever a modification is made t
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -328,14 +328,14 @@ mountd_enable="YES"
The server can be started now by running this command:
-[source,bash]
+[source,shell]
....
# service nfsd start
....
Whenever the NFS server is started, mountd also starts automatically. However, mountd only reads [.filename]#/etc/exports# when it is started. To make subsequent [.filename]#/etc/exports# edits take effect immediately, force mountd to reread it:
-[source,bash]
+[source,shell]
....
# service mountd reload
....
@@ -352,14 +352,14 @@ nfs_client_enable="YES"
Then, run this command on each NFS client:
-[source,bash]
+[source,shell]
....
# service nfsclient start
....
The client now has everything it needs to mount a remote file system. In these examples, the server's name is `server` and the client's name is `client`. To mount [.filename]#/home# on `server` to the [.filename]#/mnt# mount point on `client`:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -387,7 +387,7 @@ rpc_statd_enable="YES"
Then start the applications:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -418,7 +418,7 @@ There is a special automounter map mounted on [.filename]#/net#. When a file is
====
In this example, `showmount -e` shows the exported file systems that can be mounted from the NFS server, `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -440,7 +440,7 @@ autofs_enable="YES"
Then man:autofs[5] can be started by running:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -585,7 +585,7 @@ nis_client_flags="-S test-domain,server" <.>
After saving the edits, type `/etc/netstart` to restart the network and apply the values defined in [.filename]#/etc/rc.conf#. Before initializing the NIS maps, start man:ypserv[8]:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -595,7 +595,7 @@ After saving the edits, type `/etc/netstart` to restart the network and apply th
NIS maps are generated from the configuration files in [.filename]#/etc# on the NIS master, with one exception: [.filename]#/etc/master.passwd#. This is to prevent the propagation of passwords to all the servers in the NIS domain. Therefore, before the NIS maps are initialized, configure the primary password files:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -611,7 +611,7 @@ Ensure that the [.filename]#/var/yp/master.passwd# is neither group or world rea
After completing this task, initialize the NIS maps. FreeBSD includes the man:ypinit[8] script to do this. When generating maps for the master server, include `-m` and specify the NIS domain name:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -650,7 +650,7 @@ NOPUSH = "True"
Every time a new user is created, the user account must be added to the master NIS server and the NIS maps rebuilt. Until this occurs, the new user will not be able to login anywhere except on the NIS master. For example, to add the new user `jsmith` to the `test-domain` domain, run these commands on the master server:
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -663,7 +663,7 @@ The user could also be added using `adduser jsmith` instead of `pw useradd smith
To set up an NIS slave server, log on to the slave server and edit [.filename]#/etc/rc.conf# as for the master server. Do not generate any NIS maps, as these already exist on the master server. When running `ypinit` on the slave server, use `-s` (for slave) instead of `-m` (for master). This option requires the name of the NIS master in addition to the domain name, as seen in this example:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -769,7 +769,7 @@ This line configures the client to provide anyone with a valid account in the NI
To start the NIS client immediately, execute the following commands as the superuser:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -808,7 +808,7 @@ In this example, the `basie` system is a faculty workstation within the NIS doma
To prevent specified users from logging on to a system, even if they are present in the NIS database, use `vipw` to add `-_username_` with the correct number of colons towards the end of [.filename]#/etc/master.passwd# on the client, where _username_ is the username of a user to bar from logging in. The line with the blocked user must be before the `+` line that allows NIS users. In this example, `bill` is barred from logging on to `basie`:
-[source,bash]
+[source,shell]
....
basie# cat /etc/master.passwd
root:[password]:0:0::0:0:The super-user:/root:/bin/csh
@@ -919,7 +919,7 @@ Repeat this process if more than 225 (15 times 15) users exist within a single n
To activate and distribute the new NIS map:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -927,7 +927,7 @@ ellington# make
This will generate the three NIS maps [.filename]#netgroup#, [.filename]#netgroup.byhost# and [.filename]#netgroup.byuser#. Use the map key option of man:ypcat[1] to check if the new NIS maps are available:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1061,7 +1061,7 @@ In this example, the system is using the DES format. Other possible values are `
If the format on a host needs to be edited to match the one being used in the NIS domain, the login capability database must be rebuilt after saving the change:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1084,7 +1084,7 @@ LDAP uses several terms which should be understood before starting the configura
An example LDAP entry looks like the following. This example searches for the entry for the specified user account (`uid`), organizational unit (`ou`), and organization (`o`):
-[source,bash]
+[source,shell]
....
% ldapsearch -xb "uid=trhodes,ou=users,o=example.com"
# extended LDIF
@@ -1119,7 +1119,7 @@ More information about LDAP and its terminology can be found at http://www.openl
FreeBSD does not provide a built-in LDAP server. Begin the configuration by installing package:net/openldap-server[] package or port:
-[source,bash]
+[source,shell]
....
# pkg install openldap-server
....
@@ -1128,14 +1128,14 @@ There is a large set of default options enabled in the link:{linux-users}#softwa
The installation creates the directory [.filename]#/var/db/openldap-data# to hold the data. The directory to store the certificates must be created:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/private
....
The next phase is to configure the Certificate Authority. The following commands must be executed from [.filename]#/usr/local/etc/openldap/private#. This is important as the file permissions need to be restrictive and users should not have access to these files. More detailed information about certificates and their parameters can be found in crossref:security[openssl,"OpenSSL"]. To create the Certificate Authority, start with this command and follow the prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt
....
@@ -1144,21 +1144,21 @@ The entries for the prompts may be generic _except_ for the `Common Name`. This
The next task is to create a certificate signing request and a private key. Input this command and follow the prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout server.key -out server.csr
....
During the certificate generation process, be sure to correctly set the `Common Name` attribute. The Certificate Signing Request must be signed with the Certificate Authority in order to be used as a valid certificate:
-[source,bash]
+[source,shell]
....
# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial
....
The final part of the certificate generation process is to generate and sign the client certificates:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout client.key -out client.csr
# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CA ../ca.crt -CAkey ca.key
@@ -1311,28 +1311,28 @@ This http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=tree;f=tests/data
When the configuration is completed, [.filename]#slapd.ldif# must be placed in an empty directory. It is recommended to create it as:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/slapd.d/
....
Import the configuration database:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif
....
Start the [.filename]#slapd# daemon:
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/
....
Option `-d` can be used for debugging, as specified in slapd(8). To verify that the server is running and working:
-[source,bash]
+[source,shell]
....
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
@@ -1357,21 +1357,21 @@ result: 0 Success
The server must still be trusted. If that has never been done before, follow these instructions. Install the OpenSSL package or port:
-[source,bash]
+[source,shell]
....
# pkg install openssl
....
From the directory where [.filename]#ca.crt# is stored (in this example, [.filename]#/usr/local/etc/openldap#), run:
-[source,bash]
+[source,shell]
....
# c_rehash .
....
Both the CA and the server certificate are now correctly recognized in their respective roles. To verify this, run this command from the [.filename]#server.crt# directory:
-[source,bash]
+[source,shell]
....
# openssl verify -verbose -CApath . server.crt
....
@@ -1391,7 +1391,7 @@ slapd_cn_config="YES"
The following example adds the group `team` and the user `john` to the `domain.example`LDAP database, which is still empty. First, create the file [.filename]#domain.ldif#:
-[source,bash]
+[source,shell]
....
# cat domain.ldif
dn: dc=domain,dc=example
@@ -1432,14 +1432,14 @@ userPassword: secret
See the OpenLDAP documentation for more details. Use [.filename]#slappasswd# to replace the plain text password `secret` with a hash in `userPassword`. The path specified as `loginShell` must exist in all the systems where `john` is allowed to login. Finally, use the `mdb` administrator to modify the database:
-[source,bash]
+[source,shell]
....
# ldapadd -W -D "cn=mdbadmin,dc=domain,dc=example" -f domain.ldif
....
Modifications to the _global configuration_ section can only be performed by the global super-user. For example, assume that the option `olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` was initially specified and must now be deleted. First, create a file that contains the following:
-[source,bash]
+[source,shell]
....
# cat global_mod
dn: cn=config
@@ -1449,7 +1449,7 @@ delete: olcTLSCipherSuite
Then, apply the modifications:
-[source,bash]
+[source,shell]
....
# ldapmodify -f global_mod -x -D "cn=config" -W
....
@@ -1458,7 +1458,7 @@ When asked, provide the password chosen in the _configuration backend_ section.
If something goes wrong, or if the global super-user cannot access the configuration backend, it is possible to delete and re-write the whole configuration:
-[source,bash]
+[source,shell]
....
# rm -rf /usr/local/etc/openldap/slapd.d/
....
@@ -1581,7 +1581,7 @@ Replace the `dc0` with the interface (or interfaces, separated by whitespace) th
Start the server by issuing the following command:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1681,21 +1681,21 @@ If any of the listed nameservers do not support DNSSEC, local DNS resolution wil
====
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org @192.168.1.1
....
Once each nameserver is confirmed to support DNSSEC, start Unbound:
-[source,bash]
+[source,shell]
....
# service local_unbound onestart
....
This will take care of updating [.filename]#/etc/resolv.conf# so that queries for DNSSEC secured domains will now work. For example, run the following to validate the FreeBSD.org DNSSEC trust tree:
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org
;; Number of trusted keys: 1
@@ -1760,7 +1760,7 @@ apache24_flags=""
If apachectl does not report configuration errors, start `httpd` now:
-[source,bash]
+[source,shell]
....
# service apache24 start
....
@@ -1769,7 +1769,7 @@ The `httpd` service can be tested by entering `http://_localhost_` in a web brow
The Apache configuration can be tested for errors after making subsequent configuration changes while `httpd` is running using the following command:
-[source,bash]
+[source,shell]
....
# service apache24 configtest
....
@@ -1864,14 +1864,14 @@ Support for PHP for Apache and any other feature written in the language, can be
For all supported versions, search the package database using `pkg`:
-[source,bash]
+[source,shell]
....
# pkg search php
....
A list will be displayed including the versions and additional features they provide. The components are completely modular, meaning features are enabled by installing the appropriate port. To install PHP version 7.4 for Apache, issue the following command:
-[source,bash]
+[source,shell]
....
# pkg install mod_php74
....
@@ -1894,7 +1894,7 @@ In addition, the `DirectoryIndex` in the configuration file will also need to be
Support for many of the PHP features may also be installed by using `pkg`. For example, to install support for XML or SSL, install their respective ports:
-[source,bash]
+[source,shell]
....
# pkg install php74-xml php74-openssl
....
@@ -1903,20 +1903,20 @@ As before, the Apache configuration will need to be reloaded for the changes to
To perform a graceful restart to reload the configuration, issue the following command:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
Once the install is complete, there are two methods of obtaining the installed PHP support modules and the environmental information of the build. The first is to install the full PHP binary and running the command to gain the information:
-[source,bash]
+[source,shell]
....
# pkg install php74
....
-[source,bash]
+[source,shell]
....
# php -i |less
....
@@ -1969,7 +1969,7 @@ To enable HTTP2 for individual VirtualHosts, add the same line within the Virtua
Reload the configuration using the `apachectl`[parameter]#reload# command and test the configuration either by using either of the following methods after visiting one of the hosted pages:
-[source,bash]
+[source,shell]
....
# grep "HTTP/2.0" /var/log/httpd-access.log
....
@@ -2048,14 +2048,14 @@ ftpd_enable="YES"
To start the service now:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Test the connection to the FTP server by typing:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2146,7 +2146,7 @@ Samba has several different backend authentication models. Clients may be authen
FreeBSD user accounts must be mapped to the `SambaSAMAccount` database for Windows(R) clients to access the share. Map existing FreeBSD user accounts using man:pdbedit[8]:
-[source,bash]
+[source,shell]
....
# pdbedit -a username
....
@@ -2164,7 +2164,7 @@ samba_server_enable="YES"
To start Samba now:
-[source,bash]
+[source,shell]
....
# service samba_server start
Performing sanity check on Samba configuration: OK
@@ -2181,7 +2181,7 @@ winbindd_enable="YES"
Samba can be stopped at any time by typing:
-[source,bash]
+[source,shell]
....
# service samba_server stop
....
@@ -2249,7 +2249,7 @@ The `leapfile` keyword specifies the location of a file containing information a
Set `ntpd_enable=YES` to start ntpd at boot time. Once `ntpd_enable=YES` has been added to [.filename]#/etc/rc.conf#, ntpd can be started immediately without rebooting the system by typing:
-[source,bash]
+[source,shell]
....
# service ntpd start
....
@@ -2376,14 +2376,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#. If this file is edited after the daemon starts, use this command so that the changes take effect immediately:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
@@ -2452,7 +2452,7 @@ iscsid_enable="YES"
To start man:iscsid[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service iscsid start
....
@@ -2463,7 +2463,7 @@ Connecting to a target can be done with or without an [.filename]#/etc/iscsi.con
To connect an initiator to a single target, specify the IP address of the portal and the name of the target:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0
....
@@ -2478,7 +2478,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Connected: da0
In this example, the iSCSI session was successfully established, with [.filename]#/dev/da0# representing the attached LUN. If the `iqn.2012-06.com.example:target0` target exports more than one LUN, multiple device nodes will be shown in that section of the output:
-[source,bash]
+[source,shell]
....
Connected: da0 da1 da2.
....
@@ -2517,7 +2517,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Authentication f
To specify a CHAP username and secret, use this syntax:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret
....
@@ -2542,14 +2542,14 @@ The `t0` specifies a nickname for the configuration file section. It will be use
To connect to the defined target, specify the nickname:
-[source,bash]
+[source,shell]
....
# iscsictl -An t0
....
Alternately, to connect to all targets defined in the configuration file, use:
-[source,bash]
+[source,shell]
....
# iscsictl -Aa
....
diff --git a/documentation/content/en/books/handbook/ports/_index.adoc b/documentation/content/en/books/handbook/ports/_index.adoc
index ef304f4b65..2da3bfaabc 100644
--- a/documentation/content/en/books/handbook/ports/_index.adoc
+++ b/documentation/content/en/books/handbook/ports/_index.adoc
@@ -115,7 +115,7 @@ FreeBSD's list of available applications is growing all the time. There are a nu
* If finding a particular application becomes challenging, try searching a site like http://www.sourceforge.net/[SourceForge.net] or http://www.github.com/[GitHub.com] then check back at the link:https://www.FreeBSD.org/ports/[FreeBSD site] to see if the application has been ported.
* To search the binary package repository for an application:
+
-[source,bash]
+[source,shell]
....
# pkg search subversion
git-subversion-1.9.2
@@ -133,7 +133,7 @@ subversion17-1.7.16_2
+
Package names include the version number and, in the case of ports based on python, the version number of the version of python the package was built with. Some ports also have multiple versions available. In the case of Subversion, there are different versions available, as well as different compile options. In this case, the statically linked version of Subversion. When indicating which package to install, it is best to specify the application by the port origin, which is the path in the ports tree. Repeat the `pkg search` with `-o` to list the origin of each package:
+
-[source,bash]
+[source,shell]
....
# pkg search -o subversion
devel/git-subversion
@@ -152,7 +152,7 @@ devel/subversion-static
Searching by shell globs, regular expressions, exact match, by description, or any other field in the repository database is also supported by `pkg search`. After installing package:ports-mgmt/pkg[] or package:ports-mgmt/pkg-devel[], see man:pkg-search[8] for more details.
* If the Ports Collection is already installed, there are several methods to query the local version of the ports tree. To find out which category a port is in, type `whereis _file_`, where _file_ is the program to be installed:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -160,7 +160,7 @@ lsof: /usr/ports/sysutils/lsof
+
Alternately, an man:echo[1] statement can be used:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -169,7 +169,7 @@ Alternately, an man:echo[1] statement can be used:
Note that this will also return any matched files downloaded into the [.filename]#/usr/ports/distfiles# directory.
* Another way to find software is by using the Ports Collection's built-in search mechanism. To use the search feature, cd to [.filename]#/usr/ports# then run `make search name=program-name` where _program-name_ is the name of the software. For example, to search for `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -192,7 +192,7 @@ The "Path:" line indicates where to find the port.
+
To receive less information, use the `quicksearch` feature:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -228,7 +228,7 @@ Not all FreeBSD versions and architectures support this bootstrap process. The c
To bootstrap the system, run:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -237,7 +237,7 @@ You must have a working Internet connection for the bootstrap process to succeed
Otherwise, to install the port, run:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -246,7 +246,7 @@ Otherwise, to install the port, run:
When upgrading an existing system that originally used the older pkg_* tools, the database must be converted to the new format, so that the new tools are aware of the already installed packages. Once pkg has been installed, the package database must be converted from the traditional format to the new format by running this command:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -281,12 +281,12 @@ Usage information for pkg is available in the man:pkg[8] manual page or by runni
Each pkg command argument is documented in a command-specific manual page. To read the manual page for `pkg install`, for example, run either of these commands:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -300,7 +300,7 @@ The `Quarterly` branch provides users with a more predictable and stable experie
To switch from quarterly to latest run the following commands:
-[source,bash]
+[source,shell]
....
# mkdir -p /usr/local/etc/pkg/repos
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
@@ -323,7 +323,7 @@ FreeBSD: {
And finally run this command to update from the new (latest) repository metadata.
-[source,bash]
+[source,shell]
....
# pkg update -f
....
@@ -335,7 +335,7 @@ Information about the packages installed on a system can be viewed by running `p
For example, to see which version of pkg is installed, run:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.1.4_1
@@ -346,14 +346,14 @@ pkg-1.1.4_1
To install a binary package use the following command, where _packagename_ is the name of the package to install:
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
This command uses repository data to determine which version of the software to install and if it has any uninstalled dependencies. For example, to install curl:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -380,7 +380,7 @@ Cleaning up cache files...Done
The new package and any additional packages that were installed as dependencies can be seen in the installed packages list:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.15.1_1 The root certificate bundle from the Mozilla Project
@@ -390,7 +390,7 @@ pkg-1.1.4_6 New generation package manager
Packages that are no longer needed can be removed with `pkg delete`. For example:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -408,7 +408,7 @@ Proceed with deleting packages [y/N]: y
Installed packages can be upgraded to their latest versions by running:
-[source,bash]
+[source,shell]
....
# pkg upgrade
....
@@ -420,7 +420,7 @@ This command will compare the installed versions with those available in the rep
Software vulnerabilities are regularly discovered in third-party applications. To address this, pkg includes a built-in auditing mechanism. To determine if there are any known vulnerabilities for the software installed on the system, run:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -430,7 +430,7 @@ Software vulnerabilities are regularly discovered in third-party applications. T
Removing a package may leave behind dependencies which are no longer required. Unneeded packages that were installed as dependencies (leaf packages) can be automatically detected and removed using:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -444,7 +444,7 @@ Deinstalling ca_root_nss-3.15.1_1... done
Packages installed as dependencies are called _automatic_ packages. Non-automatic packages, i.e the packages that were explicity installed not as a dependency to another package, can be listed using:
-[source,bash]
+[source,shell]
....
# pkg prime-list
nginx
@@ -454,7 +454,7 @@ sudo
`pkg prime-list` is an alias command declared in [.filename]#/usr/local/etc/pkg.conf#. There are many others that can be used to query the package database of the system. For instance, command `pkg prime-origins` can be used to get the origin port directory of the list mentioned above:
-[source,bash]
+[source,shell]
....
# pkg prime-origins
www/nginx
@@ -466,7 +466,7 @@ This list can be used to rebuild all packages installed on a system using build
Marking an installed package as automatic can be done using:
-[source,bash]
+[source,shell]
....
# pkg set -A 1 devel/cmake
....
@@ -475,7 +475,7 @@ Once a package is a leaf package and is marked as automatic, it gets selected by
Marking an installed package as _not_ automatic can be done using:
-[source,bash]
+[source,shell]
....
# pkg set -A 0 devel/cmake
....
@@ -493,7 +493,7 @@ To disable the periodic script from backing up the package database, set `daily_
To restore the contents of a previous package database backup, run the following command replacing _/path/to/pkg.sql_ with the location of the backup:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkg.sql
....
@@ -505,7 +505,7 @@ If restoring a backup taken by the periodic script, it must be decompressed prio
To run a manual backup of the pkg database, run the following command, replacing _/path/to/pkg.sql_ with a suitable file name and location:
-[source,bash]
+[source,shell]
....
# pkg backup -d /path/to/pkg.sql
....
@@ -515,14 +515,14 @@ To run a manual backup of the pkg database, run the following command, replacing
By default, pkg stores binary packages in a cache directory defined by `PKG_CACHEDIR` in man:pkg.conf[5]. Only copies of the latest installed packages are kept. Older versions of pkg kept all previous packages. To remove these outdated binary packages, run:
-[source,bash]
+[source,shell]
....
# pkg clean
....
The entire cache may be cleared by running:
-[source,bash]
+[source,shell]
....
# pkg clean -a
....
@@ -534,21 +534,21 @@ Software within the FreeBSD Ports Collection can undergo major version number ch
To change the package origin for the above example, run:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
As another example, to update package:lang/ruby18[] to package:lang/ruby19[], run:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
As a final example, to change the origin of the [.filename]#libglut# shared libraries from package:graphics/libglut[] to package:graphics/freeglut[], run:
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -557,7 +557,7 @@ As a final example, to change the origin of the [.filename]#libglut# shared libr
====
When changing package origins, it is important to reinstall packages that are dependent on the package with the modified origin. To force a reinstallation of dependent packages, run:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -582,21 +582,21 @@ The base system of FreeBSD includes Portsnap. This is a fast and user-friendly t
. To download a compressed snapshot of the Ports Collection into [.filename]#/var/db/portsnap#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. When running Portsnap for the first time, extract the snapshot into [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. After the first use of Portsnap has been completed as shown above, [.filename]#/usr/ports# can be updated as needed by running:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -604,7 +604,7 @@ The base system of FreeBSD includes Portsnap. This is a fast and user-friendly t
+
When using `fetch`, the `extract` or the `update` operation may be run consecutively, like so:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -619,7 +619,7 @@ If more control over the ports tree is needed or if local changes need to be mai
. Subversion must be installed before it can be used to check out the ports tree. If a copy of the ports tree is already present, install Subversion like this:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -627,21 +627,21 @@ If more control over the ports tree is needed or if local changes need to be mai
+
If the ports tree is not available, or pkg is being used to manage packages, Subversion can be installed as a package:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Check out a copy of the ports tree:
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
+
. As needed, update [.filename]#/usr/ports# after the initial Subversion checkout:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -674,7 +674,7 @@ Using the Ports Collection assumes a working Internet connection. It also requir
To compile and install the port, change to the directory of the port to be installed, then type `make install` at the prompt. Messages will indicate the progress:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make install
@@ -716,7 +716,7 @@ Some shells keep a cache of the commands that are available in the directories l
During installation, a working subdirectory is created which contains all the temporary files used during compilation. Removing this directory saves disk space and minimizes the chance of problems later when upgrading to the newer version of the port:
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-88.d,8
@@ -746,7 +746,7 @@ For users who cannot be connected to the Internet all the time, `make fetch` can
In rare cases, such as when an organization has a local distfiles repository, the `MASTER_SITES` variable can be used to override the download locations specified in the [.filename]#Makefile#. When using, specify the alternate location:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -755,21 +755,21 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
The `WRKDIRPREFIX` and `PREFIX` variables can override the default working and target directories. For example:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
will compile the port in [.filename]#/usr/home/example/ports# and install everything under [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
will compile the port in [.filename]#/usr/ports# and install it in [.filename]#/usr/home/example/local#. And:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -785,7 +785,7 @@ Installed ports can be uninstalled using `pkg delete`. Examples for using this c
Alternately, `make deinstall` can be run in the port's directory:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make deinstall
@@ -808,14 +808,14 @@ Over time, newer versions of software become available in the Ports Collection.
To determine if newer versions of installed ports are available, ensure that the latest version of the ports tree is installed, using the updating command described in either <<ports-using-portsnap-method, “Portsnap Method”>> or <<ports-using-subversion-method, “Subversion Method”>>. On FreeBSD 10 and later, or if the system has been converted to pkg, the following command will list the installed ports which are out of date:
-[source,bash]
+[source,shell]
....
# pkg version -l "<"
....
For FreeBSD 9._X_ and lower, the following command will list the installed ports that are out of date:
-[source,bash]
+[source,shell]
....
# pkg_version -l "<"
....
@@ -842,7 +842,7 @@ The choice of which tool is best for a particular system is up to the system adm
package:ports-mgmt/portmaster[] is a very small utility for upgrading installed ports. It is designed to use the tools installed with the FreeBSD base system without depending on other ports or databases. To install this utility as a port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -857,7 +857,7 @@ Portmaster defines four categories of ports:
To list these categories and search for updates:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -884,7 +884,7 @@ To list these categories and search for updates:
This command is used to upgrade all outdated ports:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -896,14 +896,14 @@ By default, Portmaster makes a backup package before deleting the existing port.
If errors are encountered during the upgrade process, add `-f` to upgrade and rebuild all ports:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Portmaster can also be used to install new ports on the system, upgrading all dependencies before building and installing the new port. To use this function, specify the location of the port in the Ports Collection:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -915,7 +915,7 @@ More information about package:ports-mgmt/portmaster[] may be found in its [.fil
package:ports-mgmt/portupgrade[] is another utility that can be used to upgrade ports. It installs a suite of applications which can be used to manage ports. However, it is dependent upon Ruby. To install the port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -925,21 +925,21 @@ Before performing an upgrade using this utility, it is recommended to scan the l
To upgrade all the outdated ports installed on the system, use `portupgrade -a`. Alternately, include `-i` to be asked for confirmation of every individual upgrade:
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
To upgrade only a specified application instead of all available ports, use `portupgrade _pkgname_`. It is very important to include `-R` to first upgrade all the ports required by the given application:
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
If `-P` is included, Portupgrade searches for available packages in the local directories listed in `PKG_PATH`. If none are available locally, it then fetches packages from a remote site. If packages can not be found locally or fetched remotely, Portupgrade will use ports. To avoid using ports entirely, specify `-PP`. This last set of options tells Portupgrade to abort if no packages are available:
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome3
....
@@ -953,28 +953,28 @@ More information about package:ports-mgmt/portupgrade[] may be found in its [.fi
Using the Ports Collection will use up disk space over time. After building and installing a port, running `make clean` within the ports skeleton will clean up the temporary [.filename]#work# directory. If Portmaster is used to install a port, it will automatically remove this directory unless `-K` is specified. If Portupgrade is installed, this command will remove all [.filename]#work# directories found within the local copy of the Ports Collection:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
In addition, outdated source distribution files accumulate in [.filename]#/usr/ports/distfiles# over time. To use Portupgrade to delete all the distfiles that are no longer referenced by any ports:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Portupgrade can remove all distfiles not referenced by any port currently installed on the system:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
If Portmaster is installed, use:
-[source,bash]
+[source,shell]
....
# portmaster --clean-distfiles
....
@@ -999,7 +999,7 @@ The number of processor cores detected is used to define how many builds will ru
After configuration, initialize poudriere so that it installs a jail with the required FreeBSD tree and a ports tree. Specify a name for the jail using `-j` and the FreeBSD version with `-v`. On systems running FreeBSD/amd64, the architecture can be set with `-a` to either `i386` or `amd64`. The default is the architecture shown by `uname`.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11amd64 -v 11.4-RELEASE
[00:00:00] Creating 11amd64 fs at /poudriere/jails/11amd64... done
@@ -1047,7 +1047,7 @@ Scanning //usr/share/certs/trusted for certificates...
[00:04:07] Jail 11amd64 11.4-RELEASE-p1 amd64 is ready to be used
....
-[source,bash]
+[source,shell]
....
# poudriere ports -c -p local -m svn+https
[00:00:00] Creating local fs at /poudriere/ports/local... done
@@ -1070,14 +1070,14 @@ ports-mgmt/pkg
Options and dependencies for the specified ports are configured:
-[source,bash]
+[source,shell]
....
# poudriere options -j 10amd64 -p local -z workstation -f 10amd64-local-workstation-pkglist
....
Finally, packages are built and a package repository is created:
-[source,bash]
+[source,shell]
....
# poudriere bulk -j 10amd64 -p local -z workstation -f 10amd64-local-workstation-pkglist
....
diff --git a/documentation/content/en/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/en/books/handbook/ppp-and-slip/_index.adoc
index bb6502f17f..0292741014 100644
--- a/documentation/content/en/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/en/books/handbook/ppp-and-slip/_index.adoc
@@ -355,14 +355,14 @@ An alternative is to set up a "dfilter" to block SMTP traffic. Refer to the samp
All that is left is to reboot the machine. After rebooting, either type:
-[source,bash]
+[source,shell]
....
# ppp
....
and then `dial provider` to start the PPP session, or, to configure `ppp` to establish sessions automatically when there is outbound traffic and [.filename]#start_if.tun0# does not exist, type:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -447,7 +447,7 @@ device uart
The [.filename]#uart# device is already included in the `GENERIC` kernel, so no additional steps are necessary in this case. Just check the `dmesg` output for the modem device with:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -458,33 +458,33 @@ This should display some pertinent output about the [.filename]#uart# devices. T
Connecting to the Internet by manually controlling `ppp` is quick, easy, and a great way to debug a connection or just get information on how the ISP treats `ppp` client connections. Lets start PPP from the command line. Note that in all of our examples we will use _example_ as the hostname of the machine running PPP. To start `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
This second command sets the modem device to [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
This sets the connection speed to 115,200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
This tells `ppp` to configure the resolver and add the nameserver lines to [.filename]#/etc/resolv.conf#. If `ppp` cannot determine the hostname, it can manually be set later.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -497,7 +497,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -506,56 +506,56 @@ atdt123456789
Use `at` to initialize the modem, then use `atdt` and the number for the ISP to begin the dial in process.
-[source,bash]
+[source,shell]
....
CONNECT
....
Confirmation of the connection, if we are going to have any connection problems, unrelated to hardware, here is where we will attempt to resolve them.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
At this prompt, return the prompt with the username that was provided by the ISP.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
At this prompt, reply with the password that was provided by the ISP. Just like logging into FreeBSD, the password will not echo.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Depending on the ISP, this prompt might not appear. If it does, it is asking whether to use a shell on the provider or to start `ppp`. In this example, `ppp` was selected in order to establish an Internet connection.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Notice that in this example the first `p` has been capitalized. This shows that we have successfully connected to the ISP.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
We have successfully authenticated with our ISP and are waiting for the assigned IP address.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
We have made an agreement on an IP address and successfully completed our connection.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -574,14 +574,14 @@ PPP may not return to the command mode, which is usually a negotiation error whe
If a login prompt never appears, PAP or CHAP authentication is most likely required. To use PAP or CHAP, add the following options to PPP before going into terminal mode:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Where _myusername_ should be replaced with the username that was assigned by the ISP.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -631,7 +631,7 @@ name_of_service_provider:
As `root`, run:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -681,7 +681,7 @@ net.graph.nonstandard_pppoe=1
or can be done immediately with the command:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -751,14 +751,14 @@ adsl:
It is possible to initialize the connection easily by issuing the following command as `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
To view the status of the connection:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -793,7 +793,7 @@ adsl:
Since the account's password is added to [.filename]#ppp.conf# in plain text form, make sure nobody can read the contents of this file:
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -803,7 +803,7 @@ Since the account's password is added to [.filename]#ppp.conf# in plain text for
This will open a tunnel for a PPP session to the DSL router. Ethernet DSL modems have a preconfigured LAN IP address to connect to. In the case of the Alcatel SpeedTouch(TM) Home, this address is `10.0.0.138`. The router's documentation should list the address the device uses. To open the tunnel and start a PPP session:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -816,7 +816,7 @@ If an ampersand ("&") is added to the end of this command, pptp will return the
A [.filename]#tun# virtual tunnel device will be created for interaction between the pptp and ppp processes. Once the prompt is returned, or the pptp process has confirmed a connection, examine the tunnel:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
diff --git a/documentation/content/en/books/handbook/preface/_index.adoc b/documentation/content/en/books/handbook/preface/_index.adoc
index 6654d58775..1c0216159b 100644
--- a/documentation/content/en/books/handbook/preface/_index.adoc
+++ b/documentation/content/en/books/handbook/preface/_index.adoc
@@ -219,21 +219,21 @@ Would mean that the user is expected to type the kbd:[Ctrl] and kbd:[X] keys sim
Examples starting with [.filename]#C:\># indicate a MS-DOS(R) command. Unless otherwise noted, these commands may be executed from a "Command Prompt" window in a modern Microsoft(R) Windows(R) environment.
-[source,bash]
+[source,shell]
....
C:\> tools\fdimage floppies\kern.flp A:
....
Examples starting with # indicate a command that must be invoked as the superuser in FreeBSD. You can login as `root` to type the command, or login as your normal account and use man:su[1] to gain superuser privileges.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Examples starting with % indicate a command that should be invoked from a normal user account. Unless otherwise noted, C-shell syntax is used for setting environment variables and other shell commands.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/en/books/handbook/printing/_index.adoc b/documentation/content/en/books/handbook/printing/_index.adoc
index e230fcb75f..d475e637ce 100644
--- a/documentation/content/en/books/handbook/printing/_index.adoc
+++ b/documentation/content/en/books/handbook/printing/_index.adoc
@@ -52,7 +52,7 @@ Basic printing can be set up quickly. The printer must be capable of printing pl
****
. Create a directory to store files while they are being printed:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -98,7 +98,7 @@ lpd_enable="YES"
+
Start the service:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -106,7 +106,7 @@ Starting lpd.
+
. Print a test:
+
-[source,bash]
+[source,shell]
....
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
....
@@ -119,7 +119,7 @@ If both lines do not start at the left border, but "stairstep" instead, see <<pr
+
Text files can now be printed with `lpr`. Give the filename on the command line, or pipe output directly into `lpr`.
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -235,14 +235,14 @@ Descriptions of many PDLs can be found at http://www.undocprint.org/formats/page
For occasional printing, files can be sent directly to a printer device without any setup. For example, a file called [.filename]#sample.txt# can be sent to a `USB` printer:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
Direct printing to network printers depends on the abilities of the printer, but most accept print jobs on port 9100, and man:nc[1] can be used with them. To print the same file to a printer with the `DNS` hostname of _netlaser_:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -259,7 +259,7 @@ FreeBSD includes a spooler called man:lpd[8]. Print jobs are submitted with man:
A directory for storing print jobs is created, ownership is set, and the permissions are set to prevent other users from viewing the contents of those files:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -292,7 +292,7 @@ lp:\ <.>
After creating [.filename]#/etc/printcap#, use man:chkprintcap[8] to test it for errors:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -308,7 +308,7 @@ lpd_enable="YES"
Start the service:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -318,7 +318,7 @@ Start the service:
Documents are sent to the printer with `lpr`. A file to be printed can be named on the command line or piped into `lpr`. These two commands are equivalent, sending the contents of [.filename]#doc.txt# to the default printer:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -326,7 +326,7 @@ Documents are sent to the printer with `lpr`. A file to be printed can be named
Printers can be selected with `-P`. To print to a printer called _laser_:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -392,7 +392,7 @@ CR=$'\r'
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -421,7 +421,7 @@ Create [.filename]#/usr/local/libexec/enscript# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -452,7 +452,7 @@ Create [.filename]#/usr/local/libexec/ps2pcl# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -468,7 +468,7 @@ Modify [.filename]#/etc/printcap# to use this new input filter:
Test the filter by sending a small PostScript(R) program to it:
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -504,7 +504,7 @@ esac
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -564,7 +564,7 @@ man:lpq[1] shows the status of a user's print jobs. Print jobs from other users
Show the current user's pending jobs on a single printer:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -573,7 +573,7 @@ Rank Owner Job Files Total Size
Show the current user's pending jobs on all printers:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -592,7 +592,7 @@ man:lprm[1] is used to remove print jobs. Normal users are only allowed to remov
Remove all pending jobs from a printer:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -605,7 +605,7 @@ cfA004smithy dequeued
Remove a single job from a printer. man:lpq[1] is used to find the job number.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -623,7 +623,7 @@ man:lpc[8] is used to check and modify printer status. `lpc` is followed by a co
Show the status of all printers:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -640,7 +640,7 @@ laser:
Prevent a printer from accepting new jobs, then begin accepting new jobs again:
-[source,bash]
+[source,shell]
....
# lpc disable lp
lp:
@@ -652,7 +652,7 @@ lp:
Stop printing, but continue to accept new jobs. Then begin printing again:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -665,7 +665,7 @@ lp:
Restart a printer after some error condition:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -676,7 +676,7 @@ lp:
Turn the print queue off and disable printing, with a message to explain the problem to users:
-[source,bash]
+[source,shell]
....
# lpc down lp Repair parts will arrive on Monday
lp:
@@ -686,7 +686,7 @@ lp:
Re-enable a printer that is down:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -713,14 +713,14 @@ lp|repairsprinter|salesprinter:\
Aliases can be used in place of the printer name. For example, users in the Sales department print to their printer with
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Users in the Repairs department print to _their_ printer with
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....
diff --git a/documentation/content/en/books/handbook/security/_index.adoc b/documentation/content/en/books/handbook/security/_index.adoc
index 6c80890c1f..8c194efdac 100644
--- a/documentation/content/en/books/handbook/security/_index.adoc
+++ b/documentation/content/en/books/handbook/security/_index.adoc
@@ -93,14 +93,14 @@ In securing a system, a good starting point is an audit of accounts. Ensure that
To deny login access to accounts, two methods exist. The first is to lock the account. This example locks the `toor` account:
-[source,bash]
+[source,shell]
....
# pw lock toor
....
The second method is to prevent login access by changing the shell to [.filename]#/usr/sbin/nologin#. Only the superuser can change the shell for other users:
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -116,7 +116,7 @@ The second, and recommended, method to permit privilege escalation is to install
After installation, use `visudo` to edit [.filename]#/usr/local/etc/sudoers#. This example creates a new `webadmin` group, adds the `trhodes` account to that group, and configures that group access to restart package:apache24[]:
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
# visudo
@@ -135,7 +135,7 @@ Blowfish is not part of AES and is not considered compliant with any Federal Inf
To determine which hash algorithm is used to encrypt a user's password, the superuser can view the hash for the user in the FreeBSD password database. Each hash starts with a symbol which indicates the type of hash mechanism used to encrypt the password. If DES is used, there is no beginning symbol. For MD5, the symbol is `$`. For SHA256 and SHA512, the symbol is `$6$`. For Blowfish, the symbol is `$2a$`. In this example, the password for `dru` is hashed using the default SHA512 algorithm as the hash starts with `$6$`. Note that the encrypted hash, not the password itself, is stored in the password database:
-[source,bash]
+[source,shell]
....
# grep dru /etc/master.passwd
dru:$6$pzIjSvCAn.PBYQBA$PXpSeWPx3g5kscj3IMiM7tUEUSPmGexxta.8Lt9TGSi2lNQqYGKszsBPuGME0:1001:1001::0:0:dru:/usr/home/dru:/bin/csh
@@ -179,7 +179,7 @@ The `similar` setting denies passwords that are similar to the user's previous p
Once this file is saved, a user changing their password will see a message similar to the following:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -210,7 +210,7 @@ So, to set an expiry of 90 days for this login class, remove the comment symbol
To set the expiration on individual users, pass an expiration date or the number of days to expiry and a username to `pw`:
-[source,bash]
+[source,shell]
....
# pw usermod -p 30-apr-2015 -n trhodes
....
@@ -226,7 +226,7 @@ A rootkit does do one thing useful for administrators: once detected, it is a si
After installation of this package or port, the system may be checked using the following command. It will produce a lot of information and will require some manual pressing of kbd:[ENTER]:
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -244,7 +244,7 @@ FreeBSD provides native support for a basic IDS system. While the nightly securi
The built-in `mtree` utility can be used to generate a specification of the contents of a directory. A seed, or a numeric constant, is used to generate the specification and is required to check that the specification has not changed. This makes it possible to determine if a file or binary has been modified. Since the seed value is unknown by an attacker, faking or checking the checksum values of files will be difficult to impossible. The following example generates a set of SHA256 hashes, one for each system binary in [.filename]#/bin#, and saves those values to a hidden file in ``root``'s home directory, [.filename]#/root/.bin_chksum_mtree#:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
# mtree: /bin checksum: 3427012225
@@ -282,7 +282,7 @@ The machine's hostname, the date and time the specification was created, and the
To verify that the binary signatures have not changed, compare the current contents of the directory to the previously generated specification, and save the results to a file. This command requires the seed that was used to generate the original specification:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
# mtree: /bin checksum: 3427012225
@@ -290,7 +290,7 @@ To verify that the binary signatures have not changed, compare the current conte
This should produce the same checksum for [.filename]#/bin# that was produced when the specification was created. If no changes have occurred to the binaries in this directory, the [.filename]#/root/.bin_chksum_output# output file will be empty. To simulate a change, change the date on [.filename]#/bin/cat# using `touch` and run the verification command again:
-[source,bash]
+[source,shell]
....
# touch /bin/cat
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
@@ -348,7 +348,7 @@ This section describes four different sorts of operations. The first is how to s
To initialize OPIE for the first time, run this command from a secure location:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
Adding unfurl:
@@ -373,7 +373,7 @@ The `ID` line lists the login name (`unfurl`), default iteration count (`499`),
To initialize or change the secret password on an insecure system, a secure connection is needed to some place where `opiekey` can be run. This might be a shell prompt on a trusted machine. An iteration count is needed, where 100 is probably a good value, and the seed can either be specified or the randomly-generated one used. On the insecure connection, the machine being initialized, use man:opiepasswd[1]:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -392,7 +392,7 @@ LINE PAP MILK NELL BUOY TROY
To accept the default seed, press kbd:[Return]. Before entering an access password, move over to the secure connection and give it the same parameters:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -407,7 +407,7 @@ Switch back over to the insecure connection, and copy the generated one-time pas
After initializing OPIE and logging in, a prompt like this will be displayed:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -427,7 +427,7 @@ At this point, generate the one-time password to answer this login prompt. This
On the trusted system:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -442,7 +442,7 @@ Once the one-time password is generated, continue to log in.
Sometimes there is no access to a trusted machine or secure connection. In this case, it is possible to use man:opiekey[1] to generate a number of one-time passwords beforehand. For example:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -510,7 +510,7 @@ qpopper : ALL : allow
Whenever this file is edited, restart inetd:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -602,14 +602,14 @@ While running a KDC requires few computing resources, a dedicated machine acting
To begin, install the package:security/heimdal[] package as follows:
-[source,bash]
+[source,shell]
....
# pkg install heimdal
....
Next, update [.filename]#/etc/rc.conf# using `sysrc` as follows:
-[source,bash]
+[source,shell]
....
# sysrc kdc_enable=yes
# sysrc kadmind_enable=yes
@@ -660,7 +660,7 @@ In order for clients to be able to find the Kerberos services, they _must_ have
Next, create the Kerberos database which contains the keys of all principals (users and hosts) encrypted with a master password. It is not required to remember this password as it will be stored in [.filename]#/var/heimdal/m-key#; it would be reasonable to use a 45-character random password for this purpose. To create the master key, run `kstash` and enter a password:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxxxxxxxxxxxxxxxxx
@@ -669,7 +669,7 @@ Verifying password - Master key: xxxxxxxxxxxxxxxxxxxxxxx
Once the master key has been created, the database should be initialized. The Kerberos administrative tool man:kadmin[8] can be used on the KDC in a mode that operates directly on the database, without using the man:kadmind[8] network service, as `kadmin -l`. This resolves the chicken-and-egg problem of trying to connect to the database before it is created. At the `kadmin` prompt, use `init` to create the realm's initial database:
-[source,bash]
+[source,shell]
....
# kadmin -l
kadmin> init EXAMPLE.ORG
@@ -678,7 +678,7 @@ Realm max ticket life [unlimited]:
Lastly, while still in `kadmin`, create the first principal using `add`. Stick to the default options for the principal for now, as these can be changed later with `modify`. Type `?` at the prompt to see the available options.
-[source,bash]
+[source,shell]
....
kadmin> add tillman
Max ticket life [unlimited]:
@@ -692,7 +692,7 @@ Verifying password - Password: xxxxxxxx
Next, start the KDC services by running:
-[source,bash]
+[source,shell]
....
# service kdc start
# service kadmind start
@@ -700,7 +700,7 @@ Next, start the KDC services by running:
While there will not be any kerberized daemons running at this point, it is possible to confirm that the KDC is functioning by obtaining a ticket for the principal that was just created:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -708,7 +708,7 @@ tillman@EXAMPLE.ORG's Password:
Confirm that a ticket was successfully obtained using `klist`:
-[source,bash]
+[source,shell]
....
% klist
Credentials cache: FILE:/tmp/krb5cc_1001
@@ -720,7 +720,7 @@ Aug 27 15:37:58 2013 Aug 28 01:37:58 2013 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
The temporary ticket can be destroyed when the test is finished:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -735,7 +735,7 @@ Of course, `kadmin` is a kerberized service; a Kerberos ticket is needed to auth
After installing [.filename]#/etc/krb5.conf#, use `add --random-key` in `kadmin`. This adds the server's host principal to the database, but does not extract a copy of the host principal key to a keytab. To generate the keytab, use `ext` to extract the server's host principal key to its own keytab:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -750,7 +750,7 @@ kadmin> exit
Note that `ext_keytab` stores the extracted key in [.filename]#/etc/krb5.keytab# by default. This is good when being run on the server being kerberized, but the `--keytab _path/to/file_` argument should be used when the keytab is being extracted elsewhere:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext_keytab --keytab=/tmp/example.keytab host/myserver.example.org
@@ -865,7 +865,7 @@ For more information about SSL, read the free https://www.feistyduck.com/books/o
To generate a certificate that will be signed by an external CA, issue the following command and input the information requested at the prompts. This input information will be written to the certificate. At the `Common Name` prompt, input the fully qualified name for the system that will use the certificate. If this name does not match the server, the application verifying the certificate will issue a warning to the user, rendering the verification provided by the certificate as useless.
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.key -sha256 -newkey rsa:2048
Generating a 2048 bit RSA private key
@@ -900,7 +900,7 @@ This command will create two files in the current directory. The certificate req
Alternately, if a signature from a CA is not required, a self-signed certificate can be created. First, generate the RSA key:
-[source,bash]
+[source,shell]
....
# openssl genrsa -rand -genkey -out cert.key 2048
0 semi-random bytes loaded
@@ -912,7 +912,7 @@ e is 65537 (0x10001)
Use this key to create a self-signed certificate. Follow the usual prompts for creating a certificate:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key cert.key -out cert.crt -sha256
You are about to be asked to enter information that will be incorporated
@@ -953,14 +953,14 @@ sendmail_cert_cn="localhost.example.org"
This will automatically create a self-signed certificate, [.filename]#/etc/mail/certs/host.cert#, a signing key, [.filename]#/etc/mail/certs/host.key#, and a CA certificate, [.filename]#/etc/mail/certs/cacert.pem#. The certificate will use the `Common Name` specified in `sendmail_cert_cn`. After saving the edits, restart Sendmail:
-[source,bash]
+[source,shell]
....
# service sendmail restart
....
If all went well, there will be no error messages in [.filename]#/var/log/maillog#. For a simple test, connect to the mail server's listening port using `telnet`:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1003,7 +1003,7 @@ IPsec supports two modes of operation. The first mode, _Transport Mode_, protect
IPsec support is enabled by default on FreeBSD 11 and later. For previous versions of FreeBSD, add these options to a custom kernel configuration file and rebuild the kernel using the instructions in crossref:kernelconfig[kernelconfig,Configuring the FreeBSD Kernel]:
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -1011,7 +1011,7 @@ device crypto
If IPsec debugging support is desired, the following kernel option should also be added:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1028,7 +1028,7 @@ To begin, package:security/ipsec-tools[] must be installed from the Ports Collec
The next requirement is to create two man:gif[4] pseudo-devices which will be used to tunnel packets and allow both networks to communicate properly. As `root`, run the following commands, replacing _internal_ and _external_ with the real IP addresses of the internal and external interfaces of the two gateways:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 internal1 internal2
@@ -1057,7 +1057,7 @@ inet6 fe80::250:bfff:fe3a:c1f%gif0 prefixlen 64 scopeid 0x4
Once complete, both internal IP addresses should be reachable using man:ping[8]:
-[source,bash]
+[source,shell]
....
priv-net# ping 10.0.0.5
PING 10.0.0.5 (10.0.0.5): 56 data bytes
@@ -1083,7 +1083,7 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
As expected, both sides have the ability to send and receive ICMP packets from the privately configured addresses. Next, both gateways must be told how to route packets in order to correctly send traffic from either network. The following commands will achieve this goal:
-[source,bash]
+[source,shell]
....
corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
corp-net# route add net 10.0.0.0: gateway 10.0.0.5
@@ -1093,7 +1093,7 @@ priv-net# route add host 10.246.38.0: gateway 10.246.38.1
At this point, internal machines should be reachable from each gateway as well as from machines behind the gateways. Again, use man:ping[8] to confirm:
-[source,bash]
+[source,shell]
....
corp-net# ping 10.0.0.8
PING 10.0.0.8 (10.0.0.8): 56 data bytes
@@ -1198,14 +1198,14 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Once in place, racoon may be started on both gateways using the following command:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
The output should be similar to the following:
-[source,bash]
+[source,shell]
....
corp-net# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf
Foreground mode.
@@ -1223,7 +1223,7 @@ Foreground mode.
To ensure the tunnel is working properly, switch to another console and use man:tcpdump[1] to view network traffic using the following command. Replace `em0` with the network interface card as required:
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1293,7 +1293,7 @@ This section provides an overview of the built-in client utilities to securely a
To log into a SSH server, use `ssh` and specify a username that exists on that server and the IP address or hostname of the server. If this is the first time a connection has been made to the specified server, the user will be prompted to first verify the server's fingerprint:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
The authenticity of host 'example.com (10.0.0.1)' can't be established.
@@ -1309,7 +1309,7 @@ By default, recent versions of OpenSSH only accept SSHv2 connections. By default
Use man:scp[1] to securely copy a file to or from a remote machine. This example copies [.filename]#COPYRIGHT# on the remote system to a file of the same name in the current directory of the local system:
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
Password for user@example.com: *******
@@ -1329,7 +1329,7 @@ To open an interactive session for copying files, use `sftp`. Refer to man:sftp[
Instead of using passwords, a client can be configured to connect to the remote machine using keys. To generate RSA authentication keys, use `ssh-keygen`. To generate a public and private key pair, specify the type of key and follow the prompts. It is recommended to protect the keys with a memorable, but hard to guess passphrase.
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa
Generating public/private rsa key pair.
@@ -1373,7 +1373,7 @@ Authentication is handled by `ssh-agent`, using the private keys that are loaded
To use `ssh-agent` in a shell, start it with a shell as an argument. Add the identity by running `ssh-add` and entering the passphrase for the private key. The user will then be able to `ssh` to any host that has the corresponding public key installed. For example:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1400,7 +1400,7 @@ OpenSSH has the ability to create a tunnel to encapsulate another protocol in an
The following command tells `ssh` to create a tunnel for telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1431,7 +1431,7 @@ This method can be used to wrap any number of insecure TCP protocols such as SMT
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1449,7 +1449,7 @@ This can be used in conjunction with `ssh-keygen` and additional user accounts t
====
In this example, there is an SSH server that accepts connections from the outside. On the same network resides a mail server running a POP3 server. To check email in a secure manner, create an SSH connection to the SSH server and tunnel through to the mail server:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1465,7 +1465,7 @@ Some firewalls filter both incoming and outgoing connections. For example, a fir
The solution is to create an SSH connection to a machine outside of the network's firewall and use it to tunnel to the desired service:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1480,7 +1480,7 @@ In addition to providing built-in SSH client utilities, a FreeBSD system can be
To see if sshd is operating, use the man:service[8] command:
-[source,bash]
+[source,shell]
....
# service sshd status
....
@@ -1494,7 +1494,7 @@ sshd_enable="YES"
This will start sshd, the daemon program for OpenSSH, the next time the system boots. To start it now:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1532,7 +1532,7 @@ AllowUsers root@192.168.1.32 admin
After making changes to [.filename]#/etc/ssh/sshd_config#, tell sshd to reload its configuration file by running:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1600,7 +1600,7 @@ In this example, [.filename]#directory1#, [.filename]#directory2#, and [.filenam
File system ACLs can be viewed using `getfacl`. For instance, to view the ACL settings on [.filename]#test#:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1613,14 +1613,14 @@ File system ACLs can be viewed using `getfacl`. For instance, to view the ACL se
To change the ACL settings on this file, use `setfacl`. To remove all of the currently defined ACLs from a file or file system, include `-k`. However, the preferred method is to use `-b` as it leaves the basic fields required for ACLs to work.
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
To modify the default ACL entries, use `-m`:
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1644,7 +1644,7 @@ Installation provides man:periodic[8] configuration files for maintaining the pk
After installation, and to audit third party utilities as part of the Ports Collection at any time, an administrator may choose to update the database and view known vulnerabilities of installed packages by invoking:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -1860,7 +1860,7 @@ If more fine-grained accounting is needed, refer to crossref:audit[audit,Securit
Before using process accounting, it must be enabled using the following commands:
-[source,bash]
+[source,shell]
....
# sysrc accounting_enable=yes
# service accounting start
@@ -1872,7 +1872,7 @@ Once enabled, accounting will begin to track information such as CPU statistics
To display the commands issued by users, use `lastcomm`. For example, this command prints out all usage of `ls` by `trhodes` on the `ttyp1` terminal:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1899,7 +1899,7 @@ In the traditional method, login classes and the resource limits to apply to a l
====
Whenever [.filename]#/etc/login.conf# is edited, the [.filename]#/etc/login.conf.db# must be updated by executing the following command:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1976,7 +1976,7 @@ In this rule, the subject is `user`, the subject-id is `trhodes`, the resource,
Some care must be taken when adding rules. Since this user is constrained to `10` processes, this example will prevent the user from performing other tasks after logging in and executing a `screen` session. Once a resource limit has been hit, an error will be printed, as in this example:
-[source,bash]
+[source,shell]
....
% man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1985,7 +1985,7 @@ eval: Cannot fork: Resource temporarily unavailable
As another example, a jail can be prevented from exceeding a memory limit. This rule could be written as:
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -2000,14 +2000,14 @@ jail:httpd:memoryuse:deny=2G/jail
To remove a rule, use `rctl` to remove it from the list:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
A method for removing all rules is documented in man:rctl[8]. However, if removing all rules for a single user is required, this command may be issued:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
@@ -2023,7 +2023,7 @@ Up to this point, the security chapter has covered permitting access to authoriz
Sudo allows administrators to configure more rigid access to system commands and provide for some advanced logging features. As a tool, it is available from the Ports Collection as package:security/sudo[] or by use of the man:pkg[8] utility. To use the man:pkg[8] tool:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -2039,21 +2039,21 @@ user1 ALL=(ALL) /usr/sbin/service webservice *
The user may now start _webservice_ using this command:
-[source,bash]
+[source,shell]
....
% sudo /usr/sbin/service webservice start
....
While this configuration allows a single user access to the webservice service; however, in most organizations, there is an entire web team in charge of managing the service. A single line can also give access to an entire group. These steps will create a web group, add a user to this group, and allow all members of the group to manage the service:
-[source,bash]
+[source,shell]
....
# pw groupadd -g 6001 -n webteam
....
Using the same man:pw[8] command, the user is added to the webteam group:
-[source,bash]
+[source,shell]
....
# pw groupmod -m user1 -n webteam
....
@@ -2106,14 +2106,14 @@ Once this directive has been added to the [.filename]#sudoers# file, any user co
From this point on, all _webteam_ members altering the status of the _webservice_ application will be logged. The list of previous and current sessions can be displayed with:
-[source,bash]
+[source,shell]
....
# sudoreplay -l
....
In the output, to replay a specific session, search for the `TSID=` entry, and pass that to sudoreplay with no other options to replay the session at normal speed. For example:
-[source,bash]
+[source,shell]
....
# sudoreplay user1/00/00/02
....
@@ -2137,7 +2137,7 @@ After the installation [.filename]#/usr/local/etc/doas.conf# must be configured
The simpliest entry could be the following, which grants local_user root permissions without asking for its password when executing the doas command.
-[source,bash]
+[source,shell]
....
permit nopass local_user as root
....
@@ -2146,7 +2146,7 @@ For more configuration examples, please read man:doas.conf[5].
After the installation and configuration of the `doas` utility, a command can now be executed with enhanced privileges, like for example.
-[source,bash]
+[source,shell]
....
$ doas vi /etc/rc.conf
....
diff --git a/documentation/content/en/books/handbook/serialcomms/_index.adoc b/documentation/content/en/books/handbook/serialcomms/_index.adoc
index 4634572da2..f461ff723c 100644
--- a/documentation/content/en/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/en/books/handbook/serialcomms/_index.adoc
@@ -341,7 +341,7 @@ By default, FreeBSD supports four serial ports which are commonly known as [.fil
To see if the system recognizes the serial ports, look for system boot messages that start with `uart`:
-[source,bash]
+[source,shell]
....
# grep uart /var/run/dmesg.boot
....
@@ -350,21 +350,21 @@ If the system does not recognize all of the needed serial ports, additional entr
To determine the default set of terminal I/O settings used by the port, specify its device name. This example determines the settings for the call-in port on [.filename]#COM2#:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
System-wide initialization of serial devices is controlled by [.filename]#/etc/rc.d/serial#. This file affects the default settings of serial devices. To change the settings for a device, use `stty`. By default, the changed settings are in effect until the device is closed and when the device is reopened, it goes back to the default set. To permanently change the default set, open and adjust the settings of the initialization device. For example, to turn on `CLOCAL` mode, 8 bit communication, and `XON/XOFF` flow control for [.filename]#ttyu5#, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
To prevent certain settings from being changed by an application, make adjustments to the locking device. For example, to lock the speed of [.filename]#ttyu5# to 57600 bps, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -400,7 +400,7 @@ There are at least two utilities in the base-system of FreeBSD that can be used
+
For example, to connect from a client system that runs FreeBSD to the serial connection of another system:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuauN
....
@@ -459,7 +459,7 @@ The final field is used to specify whether the port is secure. Marking a port as
After making any changes to [.filename]#/etc/ttys#, send a SIGHUP (hangup) signal to the `init` process to force it to re-read its configuration file:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -481,7 +481,7 @@ Make sure the terminal and FreeBSD agree on the bps rate and parity settings. Fo
Use `ps` to make sure that a `getty` process is running and serving the terminal. For example, the following listing shows that a `getty` is running on the second serial port, [.filename]#ttyu1#, and is using the `std.38400` entry in [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
# ps -axww|grep ttyu
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
@@ -589,14 +589,14 @@ ttyu0 "/usr/libexec/getty V19200" dialup on
After editing [.filename]#/etc/ttys#, wait until the modem is properly configured and connected before signaling `init`:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
High-speed modems, like V.32, V.32bis, and V.34 modems, use hardware (`RTS/CTS`) flow control. Use `stty` to set the hardware flow control flag for the modem port. This example sets the `crtscts` flag on [.filename]#COM2#'s dial-in and dial-out initialization devices:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu1.init crtscts
# stty -f /dev/cuau1.init crtscts
@@ -610,7 +610,7 @@ Hook up the modem to the FreeBSD system and boot the system. If the modem has st
If the DTR indicator does not light, login to the FreeBSD system through the console and type `ps ax` to see if FreeBSD is running a `getty` process on the correct port:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -661,7 +661,7 @@ Use the highest bps rate the modem supports in the `br` capability. Then, type `
Or, use `cu` as `root` with the following command:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -693,7 +693,7 @@ tip57600|Dial any phone number at 57600 bps:\
This should now work:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -708,7 +708,7 @@ cu115200|Use cu to dial any number at 115200bps:\
and type:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -824,7 +824,7 @@ This section provides a fast overview of setting up the serial console. This pro
. Connect the serial cable to [.filename]#COM1# and the controlling terminal.
. To configure boot messages to display on the serial console, issue the following command as the superuser:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -892,7 +892,7 @@ The options, except for `-P`, are passed to the boot loader. The boot loader wil
+
When FreeBSD starts, the boot blocks echo the contents of [.filename]#/boot.config# to the console. For example:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -929,7 +929,7 @@ After the message, there will be a small pause before the boot blocks continue l
+
Press any key, other than kbd:[Enter], at the console to interrupt the boot process. The boot blocks will then prompt for further action:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -970,7 +970,7 @@ By default, the serial port settings are 9600 baud, 8 bits, no parity, and 1 sto
* Edit [.filename]#/etc/make.conf# and set `BOOT_COMCONSOLE_SPEED` to the new console speed. Then, recompile and install the boot blocks and the boot loader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/en/books/handbook/usb-device-mode/_index.adoc b/documentation/content/en/books/handbook/usb-device-mode/_index.adoc
index 798c90d6a5..a0a2d2baba 100644
--- a/documentation/content/en/books/handbook/usb-device-mode/_index.adoc
+++ b/documentation/content/en/books/handbook/usb-device-mode/_index.adoc
@@ -92,14 +92,14 @@ notify 100 {
Reload the configuration if man:devd[8] is already running:
-[source,bash]
+[source,shell]
....
# service devd restart
....
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
-[source,bash]
+[source,shell]
....
umodem_load="YES"
hw.usb.template=3
@@ -107,7 +107,7 @@ hw.usb.template=3
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload umodem
# sysctl hw.usb.template=3
@@ -117,7 +117,7 @@ To load the module and set the template without rebooting use:
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. Use `pstat -t` on the host to list the terminal lines. Near the end of the list you should see a USB serial port, eg "ttyU0". To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/ttyU0
....
@@ -128,7 +128,7 @@ After pressing the kbd:[Enter] key a few times you will see a login prompt.
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/cu.usbmodemFreeBSD1
....
@@ -137,7 +137,7 @@ To connect to a board configured to provide USB device mode serial ports, connec
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# minicom -D /dev/ttyACM0
....
@@ -161,7 +161,7 @@ hw.usb.template=1
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload if_cdce
# sysctl hw.usb.template=1
@@ -188,7 +188,7 @@ cfumass_enable="YES"
To configure the target without restarting, run this command:
-[source,bash]
+[source,shell]
....
# service cfumass start
....
@@ -201,7 +201,7 @@ The rest of this chapter provides detailed description of setting the target wit
USB Mass Storage does not require the man:ctld[8] daemon to be running, although it can be used if desired. This is different from iSCSI. Thus, there are two ways to configure the target: man:ctladm[8], or man:ctld[8]. Both require the [.filename]#cfumass.ko# kernel module to be loaded. The module can be loaded manually:
-[source,bash]
+[source,shell]
....
# kldload cfumass
....
@@ -215,7 +215,7 @@ cfumass_load="YES"
A LUN can be created without the man:ctld[8] daemon:
-[source,bash]
+[source,shell]
....
# ctladm create -b block -o file=/data/target0
....
@@ -247,14 +247,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#. If this file is edited after the daemon starts, reload the changes so they take effect immediately:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
diff --git a/documentation/content/en/books/handbook/virtualization/_index.adoc b/documentation/content/en/books/handbook/virtualization/_index.adoc
index 3158342e52..bc4830c5ce 100644
--- a/documentation/content/en/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/en/books/handbook/virtualization/_index.adoc
@@ -315,7 +315,7 @@ These commands are run in the FreeBSD guest.
First, install the package:emulators/virtualbox-ose-additions[] package or port in the FreeBSD guest. This will install the port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -397,14 +397,14 @@ HAL users should create the following [.filename]#/usr/local/etc/hal/fdi/policy/
Shared folders for file transfers between host and VM are accessible by mounting them using `mount_vboxvfs`. A shared folder can be created on the host using the VirtualBox GUI or via `vboxmanage`. For example, to create a shared folder called _myshare_ under [.filename]#/mnt/bsdboxshare# for the VM named _BSDBox_, run:
-[source,bash]
+[source,shell]
....
# vboxmanage sharedfolder add 'BSDBox' --name myshare --hostpath /mnt/bsdboxshare
....
Note that the shared folder name must not contain spaces. Mount the shared folder from within the guest system like this:
-[source,bash]
+[source,shell]
....
# mount_vboxvfs -w myshare /mnt
....
@@ -419,7 +419,7 @@ VirtualBox(TM) is an actively developed, complete virtualization package, that i
VirtualBox(TM) is available as a FreeBSD package or port in package:emulators/virtualbox-ose[]. The port can be installed using these commands:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -429,7 +429,7 @@ One useful option in the port's configuration menu is the `GuestAdditions` suite
A few configuration changes are needed before VirtualBox(TM) is started for the first time. The port installs a kernel module in [.filename]#/boot/modules# which must be loaded into the running kernel:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -450,14 +450,14 @@ vboxnet_enable="YES"
The `vboxusers` group is created during installation of VirtualBox(TM). All users that need access to VirtualBox(TM) will have to be added as members of this group. `pw` can be used to add new members:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
The default permissions for [.filename]#/dev/vboxnetctl# are restrictive and need to be changed for bridged networking:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -473,7 +473,7 @@ perm vboxnetctl 0660
To launch VirtualBox(TM), type from an Xorg session:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -487,7 +487,7 @@ VirtualBox(TM) can be configured to pass USB devices through to the guest operat
For VirtualBox(TM) to be aware of USB devices attached to the machine, the user needs to be a member of the `operator` group.
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m yourusername
....
@@ -509,7 +509,7 @@ devfs_system_ruleset="system"
Then, restart devfs:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -528,7 +528,7 @@ HAL needs to run for VirtualBox(TM)DVD/CD functions to work, so enable it in [.f
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -542,7 +542,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -559,14 +559,14 @@ The bhyve design requires a processor that supports Intel(R) Extended Page Table
The first step to creating a virtual machine in bhyve is configuring the host system. First, load the bhyve kernel module:
-[source,bash]
+[source,shell]
....
# kldload vmm
....
Then, create a [.filename]#tap# interface for the network device in the virtual machine to attach to. In order for the network device to participate in the network, also create a bridge interface containing the [.filename]#tap# interface and the physical interface as members. In this example, the physical interface is _igb0_:
-[source,bash]
+[source,shell]
....
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
@@ -581,14 +581,14 @@ net.link.tap.up_on_open: 0 -> 1
Create a file to use as the virtual disk for the guest machine. Specify the size and name of the virtual disk:
-[source,bash]
+[source,shell]
....
# truncate -s 16G guest.img
....
Download an installation image of FreeBSD to install:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-bootonly.iso
FreeBSD-12.2-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
@@ -596,7 +596,7 @@ FreeBSD-12.2-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
FreeBSD comes with an example script for running a virtual machine in bhyve. The script will start the virtual machine and run it in a loop, so it will automatically restart if it crashes. The script takes a number of options to control the configuration of the machine: `-c` controls the number of virtual CPUs, `-m` limits the amount of memory available to the guest, `-t` defines which [.filename]#tap# device to use, `-d` indicates which disk image to use, `-i` tells bhyve to boot from the CD image instead of the disk, and `-I` defines which CD image to use. The last parameter is the name of the virtual machine, used to track the running machines. This example starts the virtual machine in installation mode:
-[source,bash]
+[source,shell]
....
# sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-12.2-RELEASE-amd64-bootonly.iso guestname
....
@@ -605,7 +605,7 @@ The virtual machine will boot and start the installer. After installing a system
Reboot the virtual machine. While rebooting the virtual machine causes bhyve to exit, the [.filename]#vmrun.sh# script runs `bhyve` in a loop and will automatically restart it. When this happens, choose the reboot option from the boot loader menu in order to escape the loop. Now the guest can be started from the virtual disk:
-[source,bash]
+[source,shell]
....
# sh /usr/share/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
....
@@ -617,7 +617,7 @@ In order to boot operating systems other than FreeBSD, the package:sysutils/grub
Next, create a file to use as the virtual disk for the guest machine:
-[source,bash]
+[source,shell]
....
# truncate -s 16G linux.img
....
@@ -632,14 +632,14 @@ Starting a virtual machine with bhyve is a two step process. First a kernel must
Use package:sysutils/grub2-bhyve[] to load the Linux(R) kernel from the ISO image:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
....
This will start grub. If the installation CD contains a [.filename]#grub.cfg#, a menu will be displayed. If not, the `vmlinuz` and `initrd` files must be located and loaded manually:
-[source,bash]
+[source,shell]
....
grub> ls
(hd0) (cd0) (cd0,msdos1) (host)
@@ -653,7 +653,7 @@ grub> boot
Now that the Linux(R) kernel is loaded, the guest can be started:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024M linuxguest
@@ -661,14 +661,14 @@ Now that the Linux(R) kernel is loaded, the guest can be started:
The system will boot and start the installer. After installing a system in the virtual machine, reboot the virtual machine. This will cause bhyve to exit. The instance of the virtual machine needs to be destroyed before it can be started again:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
Now the guest can be started directly from the virtual disk. Load the kernel:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r hd0,msdos1 -M 1024M linuxguest
grub> ls
@@ -685,7 +685,7 @@ grub> boot
Boot the virtual machine:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024M linuxguest
@@ -693,7 +693,7 @@ Boot the virtual machine:
Linux(R) will now boot in the virtual machine and eventually present you with the login prompt. Login and use the virtual machine. When you are finished, reboot the virtual machine to exit bhyve. Destroy the virtual machine instance:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
@@ -707,7 +707,7 @@ In order to make use of the UEFI support in bhyve, first obtain the UEFI firmwar
With the firmware in place, add the flags `-l bootrom,_/path/to/firmware_` to your bhyve command line. The actual bhyve command may look like this:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -718,7 +718,7 @@ guest
package:sysutils/bhyve-firmware[] also contains a CSM-enabled firmware, to boot guests with no UEFI support in legacy BIOS mode:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -736,7 +736,7 @@ Support for the UEFI-GOP framebuffer may also be enabled with the `-s 29,fbuf,tc
The resulting bhyve command would look like this:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -754,14 +754,14 @@ Note, in BIOS emulation mode, the framebuffer will cease receiving updates once
If ZFS is available on the host machine, using ZFS volumes instead of disk image files can provide significant performance benefits for the guest VMs. A ZFS volume can be created by:
-[source,bash]
+[source,shell]
....
# zfs create -V16G -o volmode=dev zroot/linuxdisk0
....
When starting the VM, specify the ZFS volume as the disk drive:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest
@@ -772,7 +772,7 @@ When starting the VM, specify the ZFS volume as the disk drive:
It is advantageous to wrap the bhyve console in a session management tool such as package:sysutils/tmux[] or package:sysutils/screen[] in order to detach and reattach to the console. It is also possible to have the console of bhyve be a null modem device that can be accessed with `cu`. To do this, load the [.filename]#nmdm# kernel module and replace `-l com1,stdio` with `-l com1,/dev/nmdm0A`. The [.filename]#/dev/nmdm# devices are created automatically as needed, where each is a pair, corresponding to the two ends of the null modem cable ([.filename]#/dev/nmdm0A# and [.filename]#/dev/nmdm0B#). See man:nmdm[4] for more information.
-[source,bash]
+[source,shell]
....
# kldload nmdm
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
@@ -790,7 +790,7 @@ handbook login:
A device node is created in [.filename]#/dev/vmm# for each virtual machine. This allows the administrator to easily see a list of the running virtual machines:
-[source,bash]
+[source,shell]
....
# ls -al /dev/vmm
total 1
@@ -803,7 +803,7 @@ crw------- 1 root wheel 0x1a1 Mar 17 12:19 otherguest
A specified virtual machine can be destroyed using `bhyvectl`:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=guestname
....
@@ -856,14 +856,14 @@ Users of FreeBSD 11 should install the package:emulators/xen-kernel47[] and pack
Configuration files must be edited to prepare the host for the Dom0 integration after the Xen packages are installed. An entry to [.filename]#/etc/sysctl.conf# disables the limit on how many pages of memory are allowed to be wired. Otherwise, DomU VMs with higher memory requirements will not run.
-[source,bash]
+[source,shell]
....
# echo 'vm.max_wired=-1' >> /etc/sysctl.conf
....
Another memory-related setting involves changing [.filename]#/etc/login.conf#, setting the `memorylocked` option to `unlimited`. Otherwise, creating DomU domains may fail with `Cannot allocate memory` errors. After making the change to [.filename]#/etc/login.conf#, run `cap_mkdb` to update the capability database. See crossref:security[security-resourcelimits,"Resource Limits"] for details.
-[source,bash]
+[source,shell]
....
# sed -i '' -e 's/memorylocked=64K/memorylocked=unlimited/' /etc/login.conf
# cap_mkdb /etc/login.conf
@@ -871,7 +871,7 @@ Another memory-related setting involves changing [.filename]#/etc/login.conf#, s
Add an entry for the Xen(TM) console to [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
# echo 'xc0 "/usr/libexec/getty Pc" xterm onifconsole secure' >> /etc/ttys
....
@@ -880,7 +880,7 @@ Selecting a Xen(TM) kernel in [.filename]#/boot/loader.conf# activates the Dom0.
The following command is used for Xen 4.7 packages:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf hw.pci.mcfg=0
# sysrc -f /boot/loader.conf if_tap_load="YES"
@@ -890,7 +890,7 @@ The following command is used for Xen 4.7 packages:
For Xen versions 4.11 and higher, the following command should be used instead:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf if_tap_load="YES"
# sysrc -f /boot/loader.conf xen_kernel="/boot/xen"
@@ -905,14 +905,14 @@ Log files that Xen(TM) creates for the DomU VMs are stored in [.filename]#/var/l
Activate the xencommons service during system startup:
-[source,bash]
+[source,shell]
....
# sysrc xencommons_enable=yes
....
These settings are enough to start a Dom0-enabled system. However, it lacks network functionality for the DomU machines. To fix that, define a bridged interface with the main NIC of the system which the DomU VMs can use to connect to the network. Replace _em0_ with the host network interface name.
-[source,bash]
+[source,shell]
....
# sysrc cloned_interfaces="bridge0"
# sysrc ifconfig_bridge0="addm em0 SYNCDHCP"
@@ -921,14 +921,14 @@ These settings are enough to start a Dom0-enabled system. However, it lacks netw
Restart the host to load the Xen(TM) kernel and start the Dom0.
-[source,bash]
+[source,shell]
....
# reboot
....
After successfully booting the Xen(TM) kernel and logging into the system again, the Xen(TM) management tool `xl` is used to show information about the domains.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -942,21 +942,21 @@ The output confirms that the Dom0 (called `Domain-0`) has the ID `0` and is runn
Unprivileged domains consist of a configuration file and virtual or physical hard disks. Virtual disk storage for the DomU can be files created by man:truncate[1] or ZFS volumes as described in crossref:zfs[zfs-zfs-volume,“Creating and Destroying Volumes”]. In this example, a 20 GB volume is used. A VM is created with the ZFS volume, a FreeBSD ISO image, 1 GB of RAM and two virtual CPUs. The ISO installation file is retrieved with man:fetch[1] and saved locally in a file called [.filename]#freebsd.iso#.
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-bootonly.iso -o freebsd.iso
....
A ZFS volume of 20 GB called [.filename]#xendisk0# is created to serve as the disk space for the VM.
-[source,bash]
+[source,shell]
....
# zfs create -V20G -o volmode=dev zroot/xendisk0
....
The new DomU guest VM is defined in a file. Some specific definitions like name, keymap, and VNC connection details are also defined. The following [.filename]#freebsd.cfg# contains a minimum DomU configuration for this example:
-[source,bash]
+[source,shell]
....
# cat freebsd.cfg
builder = "hvm" <.>
@@ -987,7 +987,7 @@ These lines are explained in more detail:
After the file has been created with all the necessary options, the DomU is created by passing it to `xl create` as a parameter.
-[source,bash]
+[source,shell]
....
# xl create freebsd.cfg
....
@@ -999,7 +999,7 @@ Each time the Dom0 is restarted, the configuration file must be passed to `xl cr
The output of `xl list` confirms that the DomU has been created.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -1009,7 +1009,7 @@ freebsd 1 1024 1 -b---- 663.9
To begin the installation of the base operating system, start the VNC client, directing it to the main network address of the host or to the IP address defined on the `vnclisten` line of [.filename]#freebsd.cfg#. After the operating system has been installed, shut down the DomU and disconnect the VNC viewer. Edit [.filename]#freebsd.cfg#, removing the line with the `cdrom` definition or commenting it out by inserting a `#` character at the beginning of the line. To load this new configuration, it is necessary to remove the old DomU with `xl destroy`, passing either the name or the id as the parameter. Afterwards, recreate it using the modified [.filename]*freebsd.cfg*.
-[source,bash]
+[source,shell]
....
# xl destroy freebsd
# xl create freebsd.cfg
@@ -1035,7 +1035,7 @@ In order to troubleshoot host boot issues you will likely need a serial cable, o
FreeBSD should also be booted in verbose mode in order to identify any issues. To activate verbose booting, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf boot_verbose="YES"
....
@@ -1049,7 +1049,7 @@ Issues can also arise when creating guests, the following attempts to provide so
The most common cause of guest creation failures is the `xl` command spitting some error and exiting with a return code different than 0. If the error provided is not enough to help identify the issue, more verbose output can also be obtained from `xl` by using the `v` option repeatedly.
-[source,bash]
+[source,shell]
....
# xl -vvv create freebsd.cfg
Parsing config from freebsd.cfg
diff --git a/documentation/content/en/books/handbook/wine/_index.adoc b/documentation/content/en/books/handbook/wine/_index.adoc
index 8410dec58b..ee1c1e7846 100644
--- a/documentation/content/en/books/handbook/wine/_index.adoc
+++ b/documentation/content/en/books/handbook/wine/_index.adoc
@@ -170,14 +170,14 @@ The Windows(R) operating system has for some time had a default web browser pre-
Install this package with the following:
-[source,bash]
+[source,shell]
....
# pkg install wine-gecko
....
Alternately, compile the port with the following:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulator/wine-gecko
# make install
@@ -189,14 +189,14 @@ This port installs the MONO framework, an open source implementation of Microsof
To install the package:
-[source,bash]
+[source,shell]
....
# pkg install wine-mono
....
To compile from the ports collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulator/wine-mono
# make install
@@ -207,14 +207,14 @@ To compile from the ports collection:
With the pre-requisites in place, install WINE via package with the following command:
-[source,bash]
+[source,shell]
....
# pkg install wine
....
Alternately compile the WINE sub-system from source with the following:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulator/wine
# make install
@@ -232,14 +232,14 @@ However, using old software no longer supported by default is a common use for e
However, given a 64-bit version of FreeBSD and need to run *32-bit* Windows(R) applications, installing a different port is required to enable 32-bit compatibility. To install the pre-compiled package, use the following:
-[source,bash]
+[source,shell]
....
# pkg install i386-wine
....
Or compile the port with the following:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulator/i386-wine
# make install
@@ -257,21 +257,21 @@ So-called "portable" versions of applications are good choices for this test, as
There are two different methods to launch a Windows program from the terminal. The first, and most straightforward is to navigate to the directory containing the program's executable ([.filename]#.EXE#) and issue the following:
-[source,bash]
+[source,shell]
....
% wine program.exe
....
For applications that take command-line arguments, add them after the executable as usual:
-[source,bash]
+[source,shell]
....
% wine program2.exe -file file.txt
....
Alternately, supply the full path to the executable to use it in a script, for example:
-[source,bash]
+[source,shell]
....
% wine /home/user/bin/program.exe
....
@@ -321,7 +321,7 @@ While WINE will create a default prefix in the user's [.filename]#$HOME/.wine/#,
Creating a prefix from the terminal requires the following command:
-[source,bash]
+[source,shell]
....
% WINEPREFIX="/home/username/.wine-new" winecfg
....
@@ -330,7 +330,7 @@ This will run the winecfg program, which can be used to configure wine prefixes
Supplying the same variable to the wine program will similarly cause the selected program to be run with the specified prefix:
-[source,bash]
+[source,shell]
....
% WINEPREFIX="/home/username/.wine-new" wine program.exe
....
@@ -447,14 +447,14 @@ winetricks is a cross-platform, general purpose helper program for WINE. It is n
To install winetricks on a FreeBSD using binary packages, use the following commands (note winetricks requires either the i386-wine or i386-wine-devel package, and is therefore not installed automatically with other dependencies):
-[source,bash]
+[source,shell]
....
# pkg install i386-wine winetricks
....
To compile it from source, issue the following in the terminal:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/i386-wine
# make install
@@ -469,7 +469,7 @@ If a manual installation is required, refer to the https://github.com/Winetricks
Run winetricks with the following command:
-[source,bash]
+[source,shell]
....
% winetricks
....
@@ -516,14 +516,14 @@ Homura is an application similar to winetricks, although it was inspired by the
To install Homura's binary package, issue the following command:
-[source,bash]
+[source,shell]
....
# pkg install homura
....
Homura is available in the FreeBSD Ports system. However, than the _emulators_ section of Ports or binary packages, look for it in the _games_ section.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/games/homura
# make install
@@ -534,7 +534,7 @@ Homura is available in the FreeBSD Ports system. However, than the _emulators_ s
Homura's usage is quite similar to that of winetricks. When using it for the first time, launch it from the command line (or a desktop environment runner applet) with:
-[source,bash]
+[source,shell]
....
% Homura
....
@@ -628,14 +628,14 @@ If, on the other hand, there are many applications to be shared, or they require
Create a new user with the following command (as root), which will step through the required details:
-[source,bash]
+[source,shell]
....
# adduser
....
Enter the username (e.g., _windows_) and Full name ("Microsoft Windows"). Then accept the defaults for the remainder of the questions. Next, install the sudo utlity using binary packages with the following:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -677,7 +677,7 @@ The result of these changes is the users named in the _User_Alias_ section are p
Next provide access to the display back to the _windows_ user, as whom the WINE programs will be running:
-[source,bash]
+[source,shell]
....
% xhost +local:windows
....
diff --git a/documentation/content/en/books/handbook/x11/_index.adoc b/documentation/content/en/books/handbook/x11/_index.adoc
index 029489b3a7..a47e847fd5 100644
--- a/documentation/content/en/books/handbook/x11/_index.adoc
+++ b/documentation/content/en/books/handbook/x11/_index.adoc
@@ -103,14 +103,14 @@ On FreeBSD, Xorg can be installed as a package or port.
The binary package can be installed quickly but with fewer options for customization:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
To build and install from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -137,7 +137,7 @@ Video cards, monitors, and input devices are automatically detected and do not r
[.procedure]
. If Xorg has been used on this computer before, move or remove any existing configuration files:
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -145,14 +145,14 @@ Video cards, monitors, and input devices are automatically detected and do not r
. Add the user who will run Xorg to the `video` or `wheel` group to enable 3D acceleration when available. To add user _jru_ to whichever group is available:
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
. The `TWM` window manager is included by default. It is started when Xorg starts:
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -164,7 +164,7 @@ Video cards, monitors, and input devices are automatically detected and do not r
Access to [.filename]#/dev/dri# is needed to allow 3D acceleration on video cards. It is usually simplest to add the user who will be running X to either the `video` or `wheel` group. Here, man:pw[8] is used to add user _slurms_ to the `video` group, or to the `wheel` group if there is no `video` group:
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -348,7 +348,7 @@ Other resolutions supported by the monitor can be chosen by setting the desired
Using man:xrandr[1]::
Run man:xrandr[1] without any parameters to see a list of video outputs and detected monitor modes:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -371,7 +371,7 @@ This shows that the `DVI-0` output is being used to display a screen resolution
+
Any of the other display modes can be selected with man:xrandr[1]. For example, to switch to 1280x1024 at 60 Hz:
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -380,7 +380,7 @@ A common task is using the external video output on a notebook computer for a vi
+
The type and quantity of output connectors varies between devices, and the name given to each output varies from driver to driver. What one driver calls `HDMI-1`, another might call `HDMI1`. So the first step is to run man:xrandr[1] to list all the available outputs:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -406,7 +406,7 @@ Four outputs were found: the built-in panel `LVDS1`, and external `VGA1`, `HDMI1
+
The projector has been connected to the `VGA1` output. man:xrandr[1] is now used to set that output to the native resolution of the projector and add the additional space to the right side of the desktop:
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -566,14 +566,14 @@ A configuration file can be generated by Xorg based on the detected hardware. Th
Generating an [.filename]#xorg.conf#:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
The configuration file is saved to [.filename]#/root/xorg.conf.new#. Make any changes desired, then test that file (using `-retro` so there is a visible background) with:
-[source,bash]
+[source,shell]
....
# Xorg -retro -config /root/xorg.conf.new
....
@@ -590,14 +590,14 @@ The default fonts that ship with Xorg are less than ideal for typical desktop pu
To install the above Type1 font collections from binary packages, run the following commands:
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
Alternatively, to build from the Ports Collection, run the following commands:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -612,7 +612,7 @@ FontPath "/usr/local/shared/fonts/urwfonts/"
Alternatively, at the command line in the X session run:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/urwfonts
% xset fp rehash
@@ -632,14 +632,14 @@ Load "freetype"
Now make a directory for the TrueType(R) fonts (for example, [.filename]#/usr/local/shared/fonts/TrueType#) and copy all of the TrueType(R) fonts into this directory. Keep in mind that TrueType(R) fonts cannot be directly taken from an Apple(R) Mac(R); they must be in UNIX(R)/MS-DOS(R)/Windows(R) format for use by Xorg. Once the files have been copied into this directory, use mkfontscale to create a [.filename]#fonts.dir#, so that the X font renderer knows that these new files have been installed. `mkfontscale` can be installed as a package:
-[source,bash]
+[source,shell]
....
# pkg install mkfontscale
....
Then create an index of X font files in a directory:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/fonts/TrueType
# mkfontscale
@@ -647,7 +647,7 @@ Then create an index of X font files in a directory:
Now add the TrueType(R) directory to the font path. This is just the same as described in <<type1>>:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/TrueType
% xset fp rehash
@@ -682,7 +682,7 @@ As previously stated, all fonts in [.filename]#/usr/local/shared/fonts/# as well
After adding new fonts, and especially new font directories, rebuild the font caches:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -793,7 +793,7 @@ This section demonstrates how to configure the X Display Manager on FreeBSD. Som
To install XDM, use the package:x11/xdm[] package or port. Once installed, XDM can be configured to run when the machine boots up by editing this entry in [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -840,7 +840,7 @@ By default, only users on the same system can login using XDM. To enable users o
To configure XDM to listen for any remote connection, comment out the `DisplayManager.requestPort` line in [.filename]#/usr/local/etc/X11/xdm/xdm-config# by putting a `!` in front of it:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -861,14 +861,14 @@ GNOME is a user-friendly desktop environment. It includes a panel for starting a
This desktop environment can be installed from a package:
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
To instead build GNOME from ports, use the following command. GNOME is a large application and will take some time to compile, even on a fast computer.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -906,14 +906,14 @@ GDM will start automatically when the system boots.
A second method for starting GNOME is to type `startx` from the command-line after configuring [.filename]#~/.xinitrc#. If this file already exists, replace the line that starts the current window manager with one that starts [.filename]#/usr/local/bin/gnome-session#. If this file does not exist, create it with this command:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
A third method is to use XDM as the display manager. In this case, create an executable [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -925,14 +925,14 @@ KDE is another easy-to-use desktop environment. This desktop provides a suite of
To install the KDE package, type:
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
To instead build the KDE port, use the following command. Installing the port will provide a menu for selecting which components to install. KDE is a large application and will take some time to compile, even on a fast computer.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -954,7 +954,7 @@ dbus_enable="YES"
Since KDE Plasma 5, the KDE Display Manager, KDM is no longer developed. A possible replacement is SDDM. To install it, type:
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -975,7 +975,7 @@ exec ck-launch-session startplasma-x11
A third method for starting KDE Plasma is through XDM. To do so, create an executable [.filename]#~/.xsession# as follows:
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startplasma-x11" > ~/.xsession
....
@@ -989,14 +989,14 @@ Xfce is a desktop environment based on the GTK+ toolkit used by GNOME. However,
To install the Xfce package:
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
Alternatively, to build the port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1011,14 +1011,14 @@ dbus_enable="YES"
Unlike GNOME or KDE, Xfce does not provide its own login manager. In order to start Xfce from the command line by typing `startx`, first create [.filename]#~/.xinitrc# with this command:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
An alternate method is to use XDM. To configure this method, create an executable [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1041,7 +1041,7 @@ Having determined the correct driver to use for your card, installation is as si
For example, to install the latest driver:
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1142,7 +1142,7 @@ Section "Module"
The preceding can be done automatically with package:x11/nvidia-xconfig[] by running (as root):
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1154,14 +1154,14 @@ The preceding can be done automatically with package:x11/nvidia-xconfig[] by run
Installing Compiz Fusion is as simple as any other package:
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
When the installation is finished, start your graphic desktop and at a terminal, enter the following commands (as a normal user):
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp &
% emerald --replace &
@@ -1180,7 +1180,7 @@ emerald --replace &
Save this in your home directory as, for example, [.filename]#start-compiz# and make it executable:
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1189,7 +1189,7 @@ Then use the GUI to add it to [.guimenuitem]#Startup Programs# (located in [.gui
To actually select all the desired effects and their settings, execute (again as a normal user) the Compiz Config Settings Manager:
-[source,bash]
+[source,shell]
....
% ccsm
....
@@ -1238,7 +1238,7 @@ You will have to reboot your machine to force hald to read this file.
It is possible to do the same configuration from an X terminal or a script with this command line:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -1296,7 +1296,7 @@ One of the tools available to assist you during troubleshooting process are the
If all is well, the configuration file needs to be installed in a common location where man:Xorg[1] can find it. This is typically [.filename]#/etc/X11/xorg.conf# or [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -1384,7 +1384,7 @@ You are probably missing a setting in [.filename]#/etc/X11/xorg.conf#. Review th
If you check [.filename]#/var/log/Xorg.0.log#, you will probably find error messages during the X startup. The most common would be:
-[source,bash]
+[source,shell]
....
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
diff --git a/documentation/content/en/books/handbook/zfs/_index.adoc b/documentation/content/en/books/handbook/zfs/_index.adoc
index 9719c75499..66aaafc27f 100644
--- a/documentation/content/en/books/handbook/zfs/_index.adoc
+++ b/documentation/content/en/books/handbook/zfs/_index.adoc
@@ -70,7 +70,7 @@ zfs_enable="YES"
Then start the service:
-[source,bash]
+[source,shell]
....
# service zfs start
....
@@ -82,14 +82,14 @@ The examples in this section assume three SCSI disks with the device names [.fil
To create a simple, non-redundant pool using a single disk device:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
To view the new pool, review the output of `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -101,7 +101,7 @@ example 17547136 0 17547136 0% /example
This output shows that the `example` pool has been created and mounted. It is now accessible as a file system. Files can be created on it and users can browse it:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -115,7 +115,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
However, this pool is not taking advantage of any ZFS features. To create a dataset on this pool with compression enabled:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -125,14 +125,14 @@ The `example/compressed` dataset is now a ZFS compressed file system. Try copyin
Compression can be disabled with:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
To unmount a file system, use `zfs umount` and then verify with `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -145,7 +145,7 @@ example 17547008 0 17547008 0% /example
To re-mount the file system to make it accessible again, use `zfs mount` and verify with `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -159,7 +159,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
The pool and file system may also be observed by viewing the output from `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -171,7 +171,7 @@ example/compressed on /example/compressed (zfs, local)
After creation, ZFS datasets can be used like any file systems. However, many other features are available which can be set on a per-dataset basis. In the example below, a new file system called `data` is created. Important files will be stored here, so it is configured to keep two copies of each data block:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -179,7 +179,7 @@ After creation, ZFS datasets can be used like any file systems. However, many ot
It is now possible to see the data and space utilization by issuing `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -195,7 +195,7 @@ Notice that each file system on the pool has the same amount of available space.
To destroy the file systems and then destroy the pool as it is no longer needed:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -209,7 +209,7 @@ Disks fail. One method of avoiding data loss from disk failure is to implement R
This example creates a RAID-Z pool, specifying the disks to add to the pool:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -221,14 +221,14 @@ Sun(TM) recommends that the number of devices used in a RAID-Z configuration be
The previous example created the `storage` zpool. This example makes a new file system called `home` in that pool:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Compression and keeping extra copies of directories and files can be enabled:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -236,7 +236,7 @@ Compression and keeping extra copies of directories and files can be enabled:
To make this the new home directory for users, copy the user data to this directory and create the appropriate symbolic links:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -248,7 +248,7 @@ Users data is now stored on the freshly-created [.filename]#/storage/home#. Test
Try creating a file system snapshot which can be rolled back later:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
@@ -257,35 +257,35 @@ Snapshots can only be made of a full file system, not a single directory or file
The `@` character is a delimiter between the file system name or the volume name. If an important directory has been accidentally deleted, the file system can be backed up, then rolled back to an earlier snapshot when the directory still existed:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
To list all available snapshots, run `ls` in the file system's [.filename]#.zfs/snapshot# directory. For example, to see the previously taken snapshot:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
It is possible to write a script to perform regular snapshots on user data. However, over time, snapshots can consume a great deal of disk space. The previous snapshot can be removed using the command:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
After testing, [.filename]#/storage/home# can be made the real [.filename]#/home# using this command:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Run `df` and `mount` to confirm that the system now treats the file system as the real [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -314,21 +314,21 @@ daily_status_zfs_enable="YES"
Every software RAID has a method of monitoring its `state`. The status of RAID-Z devices may be viewed with this command:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
If all pools are <<zfs-term-online,Online>> and everything is normal, the message shows:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
If there is an issue, perhaps a disk is in the <<zfs-term-offline,Offline>> state, the pool state will look similar to:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -352,21 +352,21 @@ errors: No known data errors
This indicates that the device was previously taken offline by the administrator with this command:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Now the system can be powered down to replace [.filename]#da1#. When the system is back online, the failed disk can replaced in the pool:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
From here, the status may be checked again, this time without `-x` so that all pools are shown:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -399,14 +399,14 @@ Checksums can be disabled, but it is _not_ recommended! Checksums take very litt
Checksum verification is known as _scrubbing_. Verify the data integrity of the `storage` pool with this command:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
The duration of a scrub depends on the amount of data stored. Larger amounts of data will take proportionally longer to verify. Scrubs are very I/O intensive, and only one scrub is allowed to run at a time. After the scrub completes, the status can be viewed with `status`:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -440,7 +440,7 @@ Creating a ZFS storage pool (_zpool_) involves making a number of decisions that
Create a simple mirror pool:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2
# zpool status
@@ -460,7 +460,7 @@ errors: No known data errors
Multiple vdevs can be created at once. Specify multiple groups of disks separated by the vdev type keyword, `mirror` in this example:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2 mirror /dev/ada3 /dev/ada4
# zpool status
@@ -485,7 +485,7 @@ Pools can also be constructed using partitions rather than whole disks. Putting
Create a <<zfs-term-vdev-raidz,RAID-Z2>> pool using partitions:
-[source,bash]
+[source,shell]
....
# zpool create mypool raidz2 /dev/ada0p3 /dev/ada1p3 /dev/ada2p3 /dev/ada3p3 /dev/ada4p3 /dev/ada5p3
# zpool status
@@ -518,7 +518,7 @@ A pool created with a single disk lacks redundancy. Corruption can be detected b
Upgrade the single disk (stripe) vdev _ada0p3_ to a mirror by attaching _ada1p3_:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -584,7 +584,7 @@ When attaching additional devices to a boot pool, remember to update the bootcod
Attach a second mirror group ([.filename]#ada2p3# and [.filename]#ada3p3#) to the existing mirror:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -626,7 +626,7 @@ Currently, vdevs cannot be removed from a pool, and disks can only be removed fr
Remove a disk from a three-way mirror group:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -663,7 +663,7 @@ errors: No known data errors
Pool status is important. If a drive goes offline or a read, write, or checksum error is detected, the corresponding error count increases. The `status` output shows the configuration and status of each device in the pool and the status of the entire pool. Actions that need to be taken and details about the last <<zfs-zpool-scrub,`scrub`>> are also shown.
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -696,7 +696,7 @@ There are a number of situations where it may be desirable to replace one disk w
Replace a functioning device in the pool:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -768,7 +768,7 @@ When replacing a failed disk, the name of the failed disk is replaced with the G
Replace a failed disk using `zpool replace`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -828,7 +828,7 @@ errors: No known data errors
It is recommended that pools be <<zfs-term-scrub,scrubbed>> regularly, ideally at least once every month. The `scrub` operation is very disk-intensive and will reduce performance while running. Avoid high-demand periods when scheduling `scrub` or use <<zfs-advanced-tuning-scrub_delay,`vfs.zfs.scrub_delay`>> to adjust the relative priority of the `scrub` to prevent it interfering with other workloads.
-[source,bash]
+[source,shell]
....
# zpool scrub mypool
# zpool status
@@ -861,7 +861,7 @@ The checksums stored with data blocks enable the file system to _self-heal_. Thi
The next example demonstrates this self-healing behavior. A mirrored pool of disks [.filename]#/dev/ada0# and [.filename]#/dev/ada1# is created.
-[source,bash]
+[source,shell]
....
# zpool create healer mirror /dev/ada0 /dev/ada1
# zpool status healer
@@ -884,7 +884,7 @@ healer 960M 92.5K 960M - - 0% 0% 1.00x ONLINE -
Some important data that have to be protected from data errors using the self-healing feature are copied to the pool. A checksum of the pool is created for later comparison.
-[source,bash]
+[source,shell]
....
# cp /some/important/data /healer
# zfs list
@@ -903,7 +903,7 @@ Data corruption is simulated by writing random data to the beginning of one of t
This is a dangerous operation that can destroy vital data. It is shown here for demonstrational purposes only and should not be attempted during normal operation of a storage pool. Nor should this intentional corruption example be run on any disk with a different file system on it. Do not use any other disk device names other than the ones that are part of the pool. Make certain that proper backups of the pool are created before running the command!
====
-[source,bash]
+[source,shell]
....
# zpool export healer
# dd if=/dev/random of=/dev/ada1 bs=1m count=200
@@ -915,7 +915,7 @@ This is a dangerous operation that can destroy vital data. It is shown here for
The pool status shows that one device has experienced an error. Note that applications reading data from the pool did not receive any incorrect data. ZFS provided data from the [.filename]#ada0# device with the correct checksums. The device with the wrong checksum can be found easily as the `CKSUM` column contains a nonzero value.
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -939,7 +939,7 @@ errors: No known data errors
The error was detected and handled by using the redundancy present in the unaffected [.filename]#ada0# mirror disk. A checksum comparison with the original one will reveal whether the pool is consistent again.
-[source,bash]
+[source,shell]
....
# sha1 /healer >> checksum.txt
# cat checksum.txt
@@ -949,7 +949,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
The two checksums that were generated before and after the intentional tampering with the pool data still match. This shows how ZFS is capable of detecting and correcting any errors automatically when the checksums differ. Note that this is only possible when there is enough redundancy present in the pool. A pool consisting of a single device has no self-healing capabilities. That is also the reason why checksums are so important in ZFS and should not be disabled for any reason. No man:fsck[8] or similar file system consistency check program is required to detect and correct this and the pool was still available during the time there was a problem. A scrub operation is now required to overwrite the corrupted data on [.filename]#ada1#.
-[source,bash]
+[source,shell]
....
# zpool scrub healer
# zpool status healer
@@ -976,7 +976,7 @@ errors: No known data errors
The scrub operation reads data from [.filename]#ada0# and rewrites any data with an incorrect checksum on [.filename]#ada1#. This is indicated by the `(repairing)` output from `zpool status`. After the operation is complete, the pool status changes to:
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -1000,7 +1000,7 @@ errors: No known data errors
After the scrub operation completes and all the data has been synchronized from [.filename]#ada0# to [.filename]#ada1#, the error messages can be <<zfs-zpool-clear,cleared>> from the pool status by running `zpool clear`.
-[source,bash]
+[source,shell]
....
# zpool clear healer
# zpool status healer
@@ -1034,7 +1034,7 @@ Pools are _exported_ before moving them to another system. All datasets are unmo
Export a pool that is not in use:
-[source,bash]
+[source,shell]
....
# zpool export mypool
....
@@ -1043,7 +1043,7 @@ Importing a pool automatically mounts the datasets. This may not be the desired
List all available pools for import:
-[source,bash]
+[source,shell]
....
# zpool import
pool: mypool
@@ -1058,7 +1058,7 @@ List all available pools for import:
Import the pool with an alternative root directory:
-[source,bash]
+[source,shell]
....
# zpool import -o altroot=/mnt mypool
# zfs list
@@ -1074,7 +1074,7 @@ After upgrading FreeBSD, or if a pool has been imported from a system using an o
Upgrade a v28 pool to support `Feature Flags`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1123,7 +1123,7 @@ The newer features of ZFS will not be available until `zpool upgrade` has comple
Upgrade a pool to support additional feature flags:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1181,14 +1181,14 @@ The boot code on systems that boot from a pool must be updated to support the ne
For legacy boot using GPT, use the following command:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
....
For systems using EFI to boot, execute the following command:
-[source,bash]
+[source,shell]
....
# gpart bootcode -p /boot/boot1.efifat -i 1 ada1
....
@@ -1201,7 +1201,7 @@ Apply the bootcode to all bootable disks in the pool. See man:gpart[8] for more
Commands that modify the pool are recorded. Recorded actions include the creation of datasets, changing properties, or replacement of a disk. This history is useful for reviewing how a pool was created and which user performed a specific action and when. History is not kept in a log file, but is part of the pool itself. The command to review this history is aptly named `zpool history`:
-[source,bash]
+[source,shell]
....
# zpool history
History for 'tank':
@@ -1215,7 +1215,7 @@ The output shows `zpool` and `zfs` commands that were executed on the pool along
`zpool history` can show even more information when the options `-i` or `-l` are provided. `-i` displays user-initiated events as well as internally logged ZFS events.
-[source,bash]
+[source,shell]
....
# zpool history -i
History for 'tank':
@@ -1230,7 +1230,7 @@ History for 'tank':
More details can be shown by adding `-l`. History records are shown in a long format, including information like the name of the user who issued the command and the hostname on which the change was made.
-[source,bash]
+[source,shell]
....
# zpool history -l
History for 'tank':
@@ -1249,7 +1249,7 @@ Both options to `zpool history` can be combined to give the most detailed inform
A built-in monitoring system can display pool I/O statistics in real time. It shows the amount of free and used space on the pool, how many read and write operations are being performed per second, and how much I/O bandwidth is currently being utilized. By default, all pools in the system are monitored and displayed. A pool name can be provided to limit monitoring to just that pool. A basic example:
-[source,bash]
+[source,shell]
....
# zpool iostat
capacity operations bandwidth
@@ -1262,7 +1262,7 @@ To continuously monitor I/O activity, a number can be specified as the last para
Even more detailed I/O statistics can be displayed with `-v`. Each device in the pool is shown with a statistics line. This is useful in seeing how many read and write operations are being performed on each device, and can help determine if any individual device is slowing down the pool. This example shows a mirrored pool with two devices:
-[source,bash]
+[source,shell]
....
# zpool iostat -v
capacity operations bandwidth
@@ -1292,7 +1292,7 @@ Unlike traditional disks and volume managers, space in ZFS is _not_ preallocated
Create a new dataset and enable <<zfs-term-compression-lz4,LZ4 compression>> on it:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1332,7 +1332,7 @@ Destroying a dataset is much quicker than deleting all of the files that reside
Destroy the previously-created dataset:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1377,7 +1377,7 @@ A volume is a special type of dataset. Rather than being mounted as a file syste
A volume can be formatted with any file system, or used without a file system to store raw data. To the user, a volume appears to be a regular disk. Putting ordinary file systems on these _zvols_ provides features that ordinary disks or file systems do not normally have. For example, using the compression property on a 250 MB volume allows creation of a compressed FAT file system.
-[source,bash]
+[source,shell]
....
# zfs create -V 250m -o compression=on tank/fat32
# zfs list tank
@@ -1401,7 +1401,7 @@ The name of a dataset can be changed with `zfs rename`. The parent of a dataset
Rename a dataset and move it to be under a different parent dataset:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1440,7 +1440,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
Snapshots can also be renamed like this. Due to the nature of snapshots, they cannot be renamed into a different parent dataset. To rename a recursive snapshot, specify `-r`, and all snapshots with the same name in child datasets will also be renamed.
-[source,bash]
+[source,shell]
....
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
@@ -1458,7 +1458,7 @@ Each ZFS dataset has a number of properties that control its behavior. Most prop
User-defined properties can also be set. They become part of the dataset configuration and can be used to provide additional information about the dataset or its contents. To distinguish these custom properties from the ones supplied as part of ZFS, a colon (`:`) is used to create a custom namespace for the property.
-[source,bash]
+[source,shell]
....
# zfs set custom:costcenter=1234 tank
# zfs get custom:costcenter tank
@@ -1468,7 +1468,7 @@ tank custom:costcenter 1234 local
To remove a custom property, use `zfs inherit` with `-r`. If the custom property is not defined in any of the parent datasets, it will be removed completely (although the changes are still recorded in the pool's history).
-[source,bash]
+[source,shell]
....
# zfs inherit -r custom:costcenter tank
# zfs get custom:costcenter tank
@@ -1483,7 +1483,7 @@ tank custom:costcenter - -
Two commonly used and useful dataset properties are the NFS and SMB share options. Setting these define if and how ZFS datasets may be shared on the network. At present, only setting sharing via NFS is supported on FreeBSD. To get the current status of a share, enter:
-[source,bash]
+[source,shell]
....
# zfs get sharenfs mypool/usr/home
NAME PROPERTY VALUE SOURCE
@@ -1495,14 +1495,14 @@ mypool/usr/home sharesmb off local
To enable sharing of a dataset, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs=on mypool/usr/home
....
It is also possible to set additional options for sharing datasets through NFS, such as `-alldirs`, `-maproot` and `-network`. To set additional options to a dataset shared through NFS, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs="-alldirs,-maproot=root,-network=192.168.1.0/24" mypool/usr/home
....
@@ -1521,7 +1521,7 @@ Snapshots are created with `zfs snapshot _dataset_@_snapshotname_`. Adding `-r`
Create a recursive snapshot of the entire pool:
-[source,bash]
+[source,shell]
....
# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
@@ -1564,7 +1564,7 @@ Snapshots are not shown by a normal `zfs list` operation. To list snapshots, `-t
Snapshots are not mounted directly, so no path is shown in the `MOUNTPOINT` column. There is no mention of available disk space in the `AVAIL` column, as snapshots cannot be written to after they are created. Compare the snapshot to the original dataset from which it was created:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/usr/home
NAME USED AVAIL REFER MOUNTPOINT
@@ -1574,7 +1574,7 @@ mypool/usr/home@my_recursive_snapshot 0 - 184K -
Displaying both the dataset and the snapshot together reveals how snapshots work in <<zfs-term-cow,COW>> fashion. They save only the changes (_delta_) that were made and not the complete file system contents all over again. This means that snapshots take little space when few changes are made. Space usage can be made even more apparent by copying a file to the dataset, then making a second snapshot:
-[source,bash]
+[source,shell]
....
# cp /etc/passwd /var/tmp
# zfs snapshot mypool/var/tmp@after_cp
@@ -1592,7 +1592,7 @@ The second snapshot contains only the changes to the dataset after the copy oper
ZFS provides a built-in command to compare the differences in content between two snapshots. This is helpful when many snapshots were taken over time and the user wants to see how the file system has changed over time. For example, `zfs diff` lets a user find the latest snapshot that still contains a file that was accidentally deleted. Doing this for the two snapshots that were created in the previous section yields this output:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1629,7 +1629,7 @@ Comparing two snapshots is helpful when using the ZFS replication feature to tra
Compare two snapshots by providing the full dataset name and snapshot name of both datasets:
-[source,bash]
+[source,shell]
....
# cp /var/tmp/passwd /var/tmp/passwd.copy
# zfs snapshot mypool/var/tmp@diff_snapshot
@@ -1651,7 +1651,7 @@ When at least one snapshot is available, it can be rolled back to at any time. M
In the first example, a snapshot is rolled back because of a careless `rm` operation that removes too much data than was intended.
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1668,7 +1668,7 @@ vi.recover
At this point, the user realized that too many files were deleted and wants them back. ZFS provides an easy way to get them back using rollbacks, but only when snapshots of important data are performed on a regular basis. To get the files back and start over from the last snapshot, issue the command:
-[source,bash]
+[source,shell]
....
# zfs rollback mypool/var/tmp@diff_snapshot
# ls /var/tmp
@@ -1677,7 +1677,7 @@ passwd passwd.copy vi.recover
The rollback operation restored the dataset to the state of the last snapshot. It is also possible to roll back to a snapshot that was taken much earlier and has other snapshots that were created after it. When trying to do this, ZFS will issue this warning:
-[source,bash]
+[source,shell]
....
# zfs list -rt snapshot mypool/var/tmp
AME USED AVAIL REFER MOUNTPOINT
@@ -1693,7 +1693,7 @@ mypool/var/tmp@diff_snapshot
This warning means that snapshots exist between the current state of the dataset and the snapshot to which the user wants to roll back. To complete the rollback, these snapshots must be deleted. ZFS cannot track all the changes between different states of the dataset, because snapshots are read-only. ZFS will not delete the affected snapshots unless the user specifies `-r` to indicate that this is the desired action. If that is the intention, and the consequences of losing all intermediate snapshots is understood, the command can be issued:
-[source,bash]
+[source,shell]
....
# zfs rollback -r mypool/var/tmp@my_recursive_snapshot
# zfs list -rt snapshot mypool/var/tmp
@@ -1710,7 +1710,7 @@ The output from `zfs list -t snapshot` confirms that the intermediate snapshots
Snapshots are mounted in a hidden directory under the parent dataset: [.filename]#.zfs/snapshots/snapshotname#. By default, these directories will not be displayed even when a standard `ls -a` is issued. Although the directory is not displayed, it is there nevertheless and can be accessed like any normal directory. The property named `snapdir` controls whether these hidden directories show up in a directory listing. Setting the property to `visible` allows them to appear in the output of `ls` and other commands that deal with directory contents.
-[source,bash]
+[source,shell]
....
# zfs get snapdir mypool/var/tmp
NAME PROPERTY VALUE SOURCE
@@ -1724,7 +1724,7 @@ mypool/var/tmp snapdir hidden default
Individual files can easily be restored to a previous state by copying them from the snapshot back to the parent dataset. The directory structure below [.filename]#.zfs/snapshot# has a directory named exactly like the snapshots taken earlier to make it easier to identify them. In the next example, it is assumed that a file is to be restored from the hidden [.filename]#.zfs# directory by copying it from the snapshot that contained the latest version of the file:
-[source,bash]
+[source,shell]
....
# rm /var/tmp/passwd
# ls -a /var/tmp
@@ -1738,7 +1738,7 @@ passwd vi.recover
When `ls .zfs/snapshot` was issued, the `snapdir` property might have been set to hidden, but it would still be possible to list the contents of that directory. It is up to the administrator to decide whether these directories will be displayed. It is possible to display these for certain datasets and prevent it for others. Copying files or directories from this hidden [.filename]#.zfs/snapshot# is simple enough. Trying it the other way around results in this error:
-[source,bash]
+[source,shell]
....
# cp /etc/rc.conf /var/tmp/.zfs/snapshot/after_cp/
cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
@@ -1757,7 +1757,7 @@ A clone is a copy of a snapshot that is treated more like a regular dataset. Unl
To demonstrate the clone feature, this example dataset is used:
-[source,bash]
+[source,shell]
....
# zfs list -rt all camino/home/joe
NAME USED AVAIL REFER MOUNTPOINT
@@ -1768,7 +1768,7 @@ camino/home/joe@backup 0K - 87K -
A typical use for clones is to experiment with a specific dataset while keeping the snapshot around to fall back to in case something goes wrong. Since snapshots cannot be changed, a read/write clone of a snapshot is created. After the desired result is achieved in the clone, the clone can be promoted to a dataset and the old file system removed. This is not strictly necessary, as the clone and dataset can coexist without problems.
-[source,bash]
+[source,shell]
....
# zfs clone camino/home/joe@backup camino/home/joenew
# ls /usr/home/joe*
@@ -1785,7 +1785,7 @@ usr/home/joenew 1.3G 31k 1.3G 0% /usr/home/joenew
After a clone is created it is an exact copy of the state the dataset was in when the snapshot was taken. The clone can now be changed independently from its originating dataset. The only connection between the two is the snapshot. ZFS records this connection in the property `origin`. Once the dependency between the snapshot and the clone has been removed by promoting the clone using `zfs promote`, the `origin` of the clone is removed as it is now an independent dataset. This example demonstrates it:
-[source,bash]
+[source,shell]
....
# zfs get origin camino/home/joenew
NAME PROPERTY VALUE SOURCE
@@ -1798,7 +1798,7 @@ camino/home/joenew origin - -
After making some changes like copying [.filename]#loader.conf# to the promoted clone, for example, the old directory becomes obsolete in this case. Instead, the promoted clone can replace it. This can be achieved by two consecutive commands: `zfs destroy` on the old dataset and `zfs rename` on the clone to name it like the old dataset (it could also get an entirely different name).
-[source,bash]
+[source,shell]
....
# cp /boot/defaults/loader.conf /usr/home/joenew
# zfs destroy -f camino/home/joe
@@ -1819,7 +1819,7 @@ Keeping data on a single pool in one location exposes it to risks like theft and
These examples demonstrate ZFS replication with these two pools:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -1829,7 +1829,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
The pool named _mypool_ is the primary pool where data is written to and read from on a regular basis. A second pool, _backup_ is used as a standby in case the primary pool becomes unavailable. Note that this fail-over is not done automatically by ZFS, but must be manually done by a system administrator when needed. A snapshot is used to provide a consistent version of the file system to be replicated. Once a snapshot of _mypool_ has been created, it can be copied to the _backup_ pool. Only snapshots can be replicated. Changes made since the most recent snapshot will not be included.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@backup1
# zfs list -t snapshot
@@ -1839,7 +1839,7 @@ mypool@backup1 0 - 43.6M -
Now that a snapshot exists, `zfs send` can be used to create a stream representing the contents of the snapshot. This stream can be stored as a file or received by another pool. The stream is written to standard output, but must be redirected to a file or pipe or an error is produced:
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1
Error: Stream can not be written to a terminal.
@@ -1848,7 +1848,7 @@ You must redirect standard output.
To back up a dataset with `zfs send`, redirect to a file located on the mounted backup pool. Ensure that the pool has enough free space to accommodate the size of the snapshot being sent, which means all of the data contained in the snapshot, not just the changes from the previous snapshot.
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1 > /backup/backup1
# zpool list
@@ -1861,7 +1861,7 @@ The `zfs send` transferred all the data in the snapshot called _backup1_ to the
Instead of storing the backups as archive files, ZFS can receive them as a live file system, allowing the backed up data to be accessed directly. To get to the actual data contained in those streams, `zfs receive` is used to transform the streams back into files and directories. The example below combines `zfs send` and `zfs receive` using a pipe to copy the data from one pool to another. The data can be used directly on the receiving pool after the transfer is complete. A dataset can only be replicated to an empty dataset.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica1
# zfs send -v mypool@replica1 | zfs receive backup/mypool
@@ -1880,7 +1880,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
`zfs send` can also determine the difference between two snapshots and send only the differences between the two. This saves disk space and transfer time. For example:
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica2
# zfs list -t snapshot
@@ -1895,7 +1895,7 @@ mypool 960M 50.2M 910M - - 0% 5% 1.00x ONLINE -
A second snapshot called _replica2_ was created. This second snapshot contains only the changes that were made to the file system between now and the previous snapshot, _replica1_. Using `zfs send -i` and indicating the pair of snapshots generates an incremental replica stream containing only the data that has changed. This can only succeed if the initial snapshot already exists on the receiving side.
-[source,bash]
+[source,shell]
....
# zfs send -v -i mypool@replica1 mypool@replica2 | zfs receive /backup/mypool
send from @replica1 to mypool@replica2 estimated size is 5.02M
@@ -1938,14 +1938,14 @@ This configuration is required:
* Normally, the privileges of the `root` user are needed to send and receive streams. This requires logging in to the receiving system as `root`. However, logging in as `root` is disabled by default for security reasons. The <<zfs-zfs-allow,ZFS Delegation>> system can be used to allow a non-`root` user on each system to perform the respective send and receive operations.
* On the sending system:
+
-[source,bash]
+[source,shell]
....
# zfs allow -u someuser send,snapshot mypool
....
* To mount the pool, the unprivileged user must own the directory, and regular users must be allowed to mount file systems. On the receiving system:
+
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -1957,7 +1957,7 @@ vfs.usermount: 0 -> 1
The unprivileged user now has the ability to receive and mount datasets, and the _home_ dataset can be replicated to the remote system:
-[source,bash]
+[source,shell]
....
% zfs snapshot -r mypool/home@monday
% zfs send -R mypool/home@monday | ssh someuser@backuphost zfs recv -dvu recvpool/backup
@@ -1974,21 +1974,21 @@ The following examples assume that the users already exist in the system. Before
To enforce a dataset quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
To enforce a reference quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set refquota=10G storage/home/bob
....
To remove a quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=none storage/home/bob
....
@@ -2002,14 +2002,14 @@ The general format is `userquota@_user_=_size_`, and the user's name must be in
For example, to enforce a user quota of 50 GB for the user named _joe_:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
To remove any quota:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -2023,14 +2023,14 @@ The general format for setting a group quota is: `groupquota@_group_=_size_`.
To set the quota for the group _firstgroup_ to 50 GB, use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
To remove the quota for the group _firstgroup_, or to make sure that one is not set, instead use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -2041,7 +2041,7 @@ To display the amount of space used by each user on a file system or snapshot al
Users with sufficient privileges, and `root`, can list the quota for [.filename]#storage/home/bob# using:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -2053,14 +2053,14 @@ Users with sufficient privileges, and `root`, can list the quota for [.filename]
The general format of the `reservation` property is `reservation=_size_`, so to set a reservation of 10 GB on [.filename]#storage/home/bob#, use:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
To clear any reservation:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -2069,7 +2069,7 @@ The same principle can be applied to the `refreservation` property for setting a
This command shows any reservations or refreservations that exist on [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -2084,7 +2084,7 @@ ZFS offers several different compression algorithms, each with different trade-o
The administrator can monitor the effectiveness of compression using a number of dataset properties.
-[source,bash]
+[source,shell]
....
# zfs get used,compressratio,compression,logicalused mypool/compressed_dataset
NAME PROPERTY VALUE SOURCE
@@ -2120,14 +2120,14 @@ When enabled, <<zfs-term-deduplication,deduplication>> uses the checksum of each
To activate deduplication, set the `dedup` property on the target pool:
-[source,bash]
+[source,shell]
....
# zfs set dedup=on pool
....
Only new data being written to the pool will be deduplicated. Data that has already been written to the pool will not be deduplicated merely by activating this option. A pool with a freshly activated deduplication property will look like this example:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2136,7 +2136,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
The `DEDUP` column shows the actual rate of deduplication for the pool. A value of `1.00x` shows that data has not been deduplicated yet. In the next example, the ports tree is copied three times into different directories on the deduplicated pool created above.
-[source,bash]
+[source,shell]
....
# for d in dir1 dir2 dir3; do
> mkdir $d && cp -R /usr/ports $d &
@@ -2145,7 +2145,7 @@ The `DEDUP` column shows the actual rate of deduplication for the pool. A value
Redundant data is detected and deduplicated:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2156,7 +2156,7 @@ The `DEDUP` column shows a factor of `3.00x`. Multiple copies of the ports tree
Deduplication is not always beneficial, especially when the data on a pool is not redundant. ZFS can show potential space savings by simulating deduplication on an existing pool:
-[source,bash]
+[source,shell]
....
# zdb -S pool
Simulated DDT histogram:
diff --git a/documentation/content/en/books/porters-handbook/makefiles/chapter.adoc b/documentation/content/en/books/porters-handbook/makefiles/chapter.adoc
index 6c82539957..bcfae7facc 100644
--- a/documentation/content/en/books/porters-handbook/makefiles/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/makefiles/chapter.adoc
@@ -82,7 +82,7 @@ When updating a port, it is possible to use man:pkg-version[8]'s `-t` argument t
====
`pkg version -t` takes two versions as arguments, it will respond with `<`, `=` or `>` if the first version is less, equal, or more than the second version, respectively.
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.3
< <.>
@@ -214,7 +214,7 @@ DISTVERSION= 1.2p4
Both will generate a `PORTVERSION` of `1.2.p4` which is before than 1.2. man:pkg-version[8] can be used to check that fact:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2.p4 1.2
<
@@ -236,7 +236,7 @@ PORTVERSION= 1.2p4
In this case, using `DISTVERSION` is not possible because it would generate a version of `1.2.p4` which would be before `1.2` and not after. man:pkg-version[8] will verify this:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.2.p4
> <.>
@@ -292,7 +292,7 @@ From time to time a software vendor or FreeBSD porter will do something silly an
The results of version number comparisons are not always obvious. `pkg version` (see man:pkg-version[8]) can be used to test the comparison of two version number strings. For example:
-[source,bash]
+[source,shell]
....
% pkg version -t 0.031 0.29
>
@@ -1018,7 +1018,7 @@ BIND9 uses a version scheme that is not compatible with the ports versions (it h
The order into which the ports framework, and pkg, will sort versions is checked using the `-t` argument of man:pkg-version[8]:
-[source,bash]
+[source,shell]
....
% pkg version -t 9.9.9 9.9.9.p1
> <.>
@@ -1437,7 +1437,7 @@ GH_TAGNAME= c472d66b
This creates a versioning scheme that increases over time, and that is still before version `0` (see <<makefile-versions-ex-pkg-version>> for details on man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t g20140411 0
<
@@ -1453,7 +1453,7 @@ Which means using `PORTEPOCH` will not be needed in case upstream decides to cut
If the current version of the software uses a Git tag, and the port needs to be updated to a newer, intermediate version, without a tag, use man:git-describe[1] to find out the version to use:
-[source,bash]
+[source,shell]
....
% git describe --tags f0038b1
v0.7.3-14-gf0038b1
@@ -1482,7 +1482,7 @@ USE_GITHUB= yes
This creates a versioning scheme that increases over time (well, over commits), and does not conflict with the creation of a `0.7.4` version. (See <<makefile-versions-ex-pkg-version>> for details on man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t 0.7.3 0.7.3.14
<
@@ -1494,7 +1494,7 @@ This creates a versioning scheme that increases over time (well, over commits),
****
If the requested commit is the same as a tag, a shorter description is shown by default. The longer version is equivalent:
-[source,bash]
+[source,shell]
....
% git describe --tags c66c71d
v0.7.3
@@ -1632,7 +1632,7 @@ Using package:finance/moneymanagerex[] as an example, its GitHub repository is h
The only information missing from that file is the commit hash or tag to use as a version. This information is found after cloning the repository:
-[source,bash]
+[source,shell]
....
% git clone --recurse-submodules https://github.com/moneymanagerex/moneymanagerex.git
Cloning into 'moneymanagerex'...
@@ -4584,7 +4584,7 @@ The most common content of one of these variable is the package base of another
package:dns/bind99[] cannot be installed if package:dns/bind910[] is present because they install same files. First gather the package base to use:
-[source,bash]
+[source,shell]
....
% make -C dns/bind99 -V PKGBASE
bind99
@@ -4633,7 +4633,7 @@ package:deskutils/gnotime[] does not have any conflicts line because its current
The variable `DISABLE_CONFLICTS` may be temporarily set when making targets that are not affected by conflicts. The variable is not to be set in port Makefiles.
-[source,bash]
+[source,shell]
....
% make -DDISABLE_CONFLICTS patch
....
diff --git a/documentation/content/en/books/porters-handbook/quick-porting/chapter.adoc b/documentation/content/en/books/porters-handbook/quick-porting/chapter.adoc
index 08f96c6dab..1c22755703 100644
--- a/documentation/content/en/books/porters-handbook/quick-porting/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/quick-porting/chapter.adoc
@@ -42,7 +42,7 @@ These steps assume that the software compiled out-of-the-box. In other words, ab
====
It is recommended to set the `DEVELOPER` man:make[1] variable in [.filename]#/etc/make.conf# before getting into porting.
-[source,bash]
+[source,shell]
....
# echo DEVELOPER=yes >> /etc/make.conf
....
@@ -234,7 +234,7 @@ Next, create a man:patch[1], file. Assuming the port is called `oneko` and is in
====
Add all the files with `svn add`. `cd` to the base of the ports tree so full paths to the changed files are included in the diff, then generate the diff with `svn diff`. For example:
-[source,bash]
+[source,shell]
....
% svn add .
% cd ../..
@@ -269,7 +269,7 @@ It is also possible to submit ports using a man:shar[1] file. Using the previous
====
go to the directory above where the port directory is located, and use `tar` to create the shar archive:
-[source,bash]
+[source,shell]
....
% cd ..
% tar cf oneko.shar --format shar oneko
diff --git a/documentation/content/en/books/porters-handbook/security/chapter.adoc b/documentation/content/en/books/porters-handbook/security/chapter.adoc
index 3a3d5b9b26..18069eaa7e 100644
--- a/documentation/content/en/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/security/chapter.adoc
@@ -178,14 +178,14 @@ As a prerequisite, install a fresh version of package:security/vuxml[] port.
First, check whether there already is an entry for this vulnerability. If there were such an entry, it would match the previous version of the package, `2013.58`:
-[source,bash]
+[source,shell]
....
% pkg audit dropbear-2013.58
....
If there is none found, add a new entry for this vulnerability.
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml
% make newentry
@@ -193,7 +193,7 @@ If there is none found, add a new entry for this vulnerability.
Verify its syntax and formatting:
-[source,bash]
+[source,shell]
....
% make validate
....
@@ -201,7 +201,7 @@ Verify its syntax and formatting:
The previous command generates the [.filename]#vuln-flat.xml# file. It can also
be generated with:
-[source,bash]
+[source,shell]
....
% make vuln-flat.xml
....
@@ -213,7 +213,7 @@ At least one of these packages needs to be installed: package:textproc/libxml2[]
Verify that the `<affected>` section of the entry will match the correct packages:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln-flat.xml dropbear-2013.58
....
@@ -222,7 +222,7 @@ Make sure that the entry produces no spurious matches in the output.
Now check whether the right package versions are matched by the entry:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln-flat.xml dropbear-2013.58 dropbear-2013.59
dropbear-2012.58 is vulnerable:
diff --git a/documentation/content/en/books/porters-handbook/slow-porting/chapter.adoc b/documentation/content/en/books/porters-handbook/slow-porting/chapter.adoc
index ce39c850bb..d89c0b074f 100644
--- a/documentation/content/en/books/porters-handbook/slow-porting/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/slow-porting/chapter.adoc
@@ -96,7 +96,7 @@ Unless explicitly stated, patch files, scripts, and other files created and cont
In the preparation of the port, files that have been added or changed can be recorded with man:diff[1] for later feeding to man:patch[1]. Doing this with a typical file involves saving a copy of the original file before making any changes using a [.filename]#.orig# suffix.
-[source,bash]
+[source,shell]
....
% cp file file.orig
....
@@ -135,14 +135,14 @@ Patches are saved into files named [.filename]#patch-*# where * indicates the pa
After the file has been modified, man:diff[1] is used to record the differences between the original and the modified version. `-u` causes man:diff[1] to produce "unified" diffs, the preferred form.
-[source,bash]
+[source,shell]
....
% diff -u file.orig file > patch-pathname-file
....
When generating patches for new, added files, `-N` is used to tell man:diff[1] to treat the non-existent original file as if it existed but was empty:
-[source,bash]
+[source,shell]
....
% diff -u -N newfile.orig newfile > patch-pathname-newfile
....
@@ -253,7 +253,7 @@ Sometime, there are many patches that are needed for a feature, in this case, it
Create a subdirectory in [.filename]#${PATCHDIR}#, and move the patches in it. For example:
-[source,bash]
+[source,shell]
....
% ls -l files/foo-patches
-rw-r--r-- 1 root wheel 350 Jan 16 01:27 patch-Makefile.in
diff --git a/documentation/content/en/books/porters-handbook/special/chapter.adoc b/documentation/content/en/books/porters-handbook/special/chapter.adoc
index 3a62cff100..93774b0637 100644
--- a/documentation/content/en/books/porters-handbook/special/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/special/chapter.adoc
@@ -80,7 +80,7 @@ ${RLN} ${STAGEDIR}/var/cache/foo ${STAGEDIR}${PREFIX}/share/foo
Will generate:
-[source,bash]
+[source,shell]
....
% ls -lF ${STAGEDIR}${PREFIX}/lib
lrwxr-xr-x 1 nobody nobody 181 Aug 3 11:27 libfoo.so@ -> libfoo.so.42
@@ -527,7 +527,7 @@ GH_ACCOUNT= Aaronepower
Generate an initial [.filename]#distinfo#:
-[source,bash]
+[source,shell]
....
% make makesum
=> Aaronepower-tokei-v7.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -538,7 +538,7 @@ Aaronepower-tokei-v7.0.2_GH0.tar.gz 45 kB 239 kBps 00m00s
Now the distribution file is ready to use and we can go ahead and extract crate dependencies from the bundled [.filename]#Cargo.lock#:
-[source,bash]
+[source,shell]
....
% make cargo-crates
CARGO_CRATES= aho-corasick-0.6.4 \
@@ -579,7 +579,7 @@ CARGO_CRATES= aho-corasick-0.6.4 \
[.filename]#distinfo# needs to be regenerated to contain all the crate distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> rust/crates/aho-corasick-0.6.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -652,7 +652,7 @@ PULSEAUDIO_VARS= CARGO_FEATURES+=pulseaudio_backend
====
Crates have their own licenses. It is important to know what they are when adding a `LICENSE` block to the port (see <<licenses,Licenses>>). The helper target `cargo-crates-licenses` will try to list all the licenses of all crates defined in `CARGO_CRATES`.
-[source,bash]
+[source,shell]
....
% make cargo-crates-licenses
aho-corasick-0.6.4 Unlicense/MIT
@@ -759,7 +759,7 @@ GH_ACCOUNT= motemen
Generate an initial [.filename]#distinfo#:
-[source,bash]
+[source,shell]
....
% make makesum
===> License MIT accepted by the user
@@ -771,7 +771,7 @@ motemen-ghq-v0.12.5_GH0.tar.gz 32 kB 177 kBps 00s
Now the distribution file is ready to use and we can extract the required Go module dependencies. This step requires having package:ports-mgmt/modules2tuple[] installed:
-[source,bash]
+[source,shell]
....
% make gomod-vendor
[...]
@@ -815,7 +815,7 @@ GH_TUPLE= Songmu:gitconfig:v0.0.2:songmu_gitconfig/vendor/github.com/Songmu/gitc
[.filename]#distinfo# needs to be regenerated to contain all the distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> Songmu-gitconfig-v0.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -882,7 +882,7 @@ USES= cabal
This minimal Makefile allows us to fetch the distribution file:
-[source,bash]
+[source,shell]
....
% make cabal-extract
[...]
@@ -895,7 +895,7 @@ Unpacking to ShellCheck-0.6.0/
Now we have ShellCheck.cabal package description file, which allows us to fetch all package's dependencies, including transitive ones:
-[source,bash]
+[source,shell]
....
% make cabal-extract-deps
[...]
@@ -912,7 +912,7 @@ Downloading dlist-0.8.0.7
As a side effect, the package's dependencies are also compiled, so the command may take some time. Once done, a list of required dependencies can generated:
-[source,bash]
+[source,shell]
....
% make make-use-cabal
USE_CABAL=QuickCheck-2.12.6.1 \
@@ -923,7 +923,7 @@ integer-logarithms-1.0.3 \
Haskell packages may contain revisions, just like FreeBSD ports. Revisions can affect only [.filename]#.cabal# files, but it is still important to pull them in. To check `USE_CABAL` items for available revision updates, run following command:
-[source,bash]
+[source,shell]
....
% make make-use-cabal-revs
USE_CABAL=QuickCheck-2.12.6.1_1 \
@@ -936,7 +936,7 @@ Note additional version numbers after `_` symbol. Put newly generated `USE_CABAL
Finally, [.filename]#distinfo# needs to be regenerated to contain all the distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> ShellCheck-0.6.0.tar.gz doesn't seem to exist in /usr/local/poudriere/ports/git/distfiles/cabal.
@@ -4241,7 +4241,7 @@ The package:devel/rclint[] port can check for most of these, but it is not a sub
. Make sure there is no `KEYWORD: FreeBSD` present. This has not been necessary nor desirable for years. It is also an indication that the new script was copy/pasted from an old script, so extra caution must be given to the review.
. If the script uses an interpreted language like `perl`, `python`, or `ruby`, make certain that `command_interpreter` is set appropriately, for example, for Perl, by adding `PERL=${PERL}` to `SUB_LIST` and using `%%PERL%%`. Otherwise,
+
-[source,bash]
+[source,shell]
....
# service name stop
....
diff --git a/documentation/content/en/books/porters-handbook/testing/chapter.adoc b/documentation/content/en/books/porters-handbook/testing/chapter.adoc
index ad96e35279..0da30c0b46 100644
--- a/documentation/content/en/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/testing/chapter.adoc
@@ -57,7 +57,7 @@ The package:ports-mgmt/porttools[] program is part of the Ports Collection.
`port` is the front-end script, which can help simplify the testing job. Whenever a new port or an update to an existing one needs testing, use `port test` to test the port, including the <<testing-portlint,`portlint`>> checking. This command also detects and lists any files that are not listed in [.filename]#pkg-plist#. For example:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -75,7 +75,7 @@ Avoiding hard-coded [.filename]#/usr/local# paths in the source makes the port m
Make sure the application is not installing things in [.filename]#/usr/local# instead of `PREFIX`. A quick test for such hard-coded paths is:
-[source,bash]
+[source,shell]
....
% make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
@@ -84,7 +84,7 @@ If anything is installed outside of `PREFIX`, the package creation process will
In addition, it is worth checking the same with the stage directory support (see <<staging,Staging>>):
-[source,bash]
+[source,shell]
....
% make stage && make check-plist && make stage-qa && make package
....
@@ -138,14 +138,14 @@ The examples in this section show a default file layout, as standard in FreeBSD.
Poudriere is available in the ports tree in package:ports-mgmt/poudriere[]. It can be installed using man:pkg[8] or from ports:
-[source,bash]
+[source,shell]
....
# pkg install poudriere
....
or
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/ports-mgmt/poudriere install clean
....
@@ -194,14 +194,14 @@ The server from where jails are installed and updated when using Subversion. Als
Create the base jails which Poudriere will use for building:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 113Ramd64 -v 11.3-RELEASE -a amd64
....
Fetch a `11.3-RELEASE` for `amd64` from the FTP server given by `FREEBSD_HOST` in [.filename]#poudriere.conf#, create the zfs file system `tank/poudriere/jails/113Ramd64`, mount it on [.filename]#/poudriere/jails/113Ramd64# and extract the `11.3-RELEASE` tarballs into this file system.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11 -a i386 -m svn+https
....
@@ -213,7 +213,7 @@ Create `tank/poudriere/jails/11i386`, mount it on [.filename]#/poudriere/jails/1
If a specific Subversion revision is needed, append it to the version string. For example:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11@123456 -a i386 -m svn+https
....
@@ -229,7 +229,7 @@ While it is possible to build a newer version of FreeBSD on an older version, mo
====
To create a Poudriere jail for `13.0-CURRENT`:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 13amd64 -v head -a amd64 -m svn+https
....
@@ -245,7 +245,7 @@ The default `svn` protocol works but is not very secure. Using `svn+https` along
A list of jails currently known to Poudriere can be shown with `poudriere jail -l`:
-[source,bash]
+[source,shell]
....
# poudriere jail -l
JAILNAME VERSION ARCH METHOD
@@ -258,7 +258,7 @@ JAILNAME VERSION ARCH METHOD
Managing updates is very straightforward. The command:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -j JAILNAME
....
@@ -270,7 +270,7 @@ updates the specified jail to the latest version available. For FreeBSD releases
For jails employing a `svn+*` method, it is helpful to add `-J _NumberOfParallelBuildJobs_` to speed up the build by increasing the number of parallel compile jobs used. For example, if the building machine has 6 CPUs, use:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -J 6 -j JAILNAME
....
@@ -282,21 +282,21 @@ For jails employing a `svn+*` method, it is helpful to add `-J _NumberOfParallel
There are multiple ways to use ports trees in Poudriere. The most straightforward way is to have Poudriere create a default ports tree for itself, using either man:portsnap[8] (if running FreeBSD {rel121-current} or {rel114-current}) or Subversion (if running FreeBSD-CURRENT):
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m portsnap
....
or
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m svn+https
....
These commands create `tank/poudriere/ports/default`, mount it on [.filename]#/poudriere/ports/default#, and populate it using either man:portsnap[8] or Subversion. Afterward it is included in the list of known ports trees:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -328,21 +328,21 @@ Depending on the workflow, it can be extremely helpful to use ports trees which
* For Poudriere older than version 3.1.20:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -F -f none -M /work/ports -p development
....
* For Poudriere version 3.1.20 and later:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m null -M /work/ports -p development
....
This will be listed in the table of known trees:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -359,7 +359,7 @@ The dash or `null` in the `METHOD` column means that Poudriere will not update o
As straightforward as with jails described earlier:
-[source,bash]
+[source,shell]
....
# poudriere ports -u -p PORTSTREE
....
@@ -378,7 +378,7 @@ After jails and ports trees have been set up, the result of a contributor's modi
For example, local modifications to the package:www/firefox[] port located in [.filename]#/work/ports/www/firefox# can be tested in the previously created 11.3-RELEASE jail:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -o www/firefox
....
@@ -391,14 +391,14 @@ The directory name `113Ri386-development` is derived from the arguments to `-j`
By default, Poudriere cleans up the jails and leaves log files in the directories mentioned above. To ease investigation, jails can be kept running after the build by adding `-i` to `testport`:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -i -o www/firefox
....
After the build completes, and regardless of whether it was successful, a shell is provided within the jail. The shell is used to investigate further. Poudriere can be told to leave the jail running after the build finishes with `-I`. Poudriere will show the command to run when the jail is no longer needed. It is then possible to man:jexec[8] into it:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -I -o www/firefox
[...]
@@ -415,7 +415,7 @@ After the build completes, and regardless of whether it was successful, a shell
An integral part of the FreeBSD ports build infrastructure is the ability to tweak ports to personal preferences with options. These can be tested with Poudriere as well. Adding the `-c`:
-[source,bash]
+[source,shell]
....
# poudriere testport -c -o www/firefox
....
@@ -435,7 +435,7 @@ For all actions involving builds, a so-called _set_ can be specified using `-z _
To use sets, Poudriere expects an existing directory structure similar to `PORT_DBDIR`, defaults to [.filename]#/var/db/ports# in its configuration directory. This directory is then man:nullfs[5]-mounted into the jails where the ports and their dependencies are built. Usually a suitable starting point can be obtained by recursively copying the existing `PORT_DBDIR` to [.filename]#/usr/local/etc/poudriere.d/jailname-portname-setname-options#. This is described in detail in man:poudriere[8]. For instance, testing package:www/firefox[] in a specific set named `devset`, add the `-z devset` parameter to the testport command:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -454,7 +454,7 @@ From this list, Poudriere man:nullfs[5]-mounts the _first existing_ directory tr
After the directory structure for a set is provided, the options for a particular port can be altered. For example:
-[source,bash]
+[source,shell]
....
# poudriere options -c www/firefox -z devset
....
@@ -471,7 +471,7 @@ Poudriere is very flexible in the option configuration. They can be set for part
Similar to using sets, Poudriere will also use a custom [.filename]#make.conf# if it is provided. No special command line argument is necessary. Instead, Poudriere looks for existing files matching a name scheme derived from the command line. For instance:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -511,14 +511,14 @@ Note the use of `+=` so that if the variable is already set in the default [.fil
Poudriere comes with a built-in mechanism to remove outdated distfiles that are no longer used by any port of a given tree. The command
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree
....
will scan the distfiles folder, `DISTFILES_CACHE` in [.filename]#poudriere.conf#, versus the ports tree given by the `-p _portstree_` argument and prompt for removal of those distfiles. To skip the prompt and remove all unused files unconditionally, the `-y` argument can be added:
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree -y
....
diff --git a/documentation/content/en/books/porters-handbook/upgrading/chapter.adoc b/documentation/content/en/books/porters-handbook/upgrading/chapter.adoc
index 795075f9a8..01722aca52 100644
--- a/documentation/content/en/books/porters-handbook/upgrading/chapter.adoc
+++ b/documentation/content/en/books/porters-handbook/upgrading/chapter.adoc
@@ -43,7 +43,7 @@ If the maintainer asks you to do the upgrade or there is no maintainer, then hel
To create a suitable `diff` for a single patch, copy the file that needs patching to [.filename]#something.orig#, save the changes to [.filename]#something# and then create the patch:
-[source,bash]
+[source,shell]
....
% diff -u something.orig something > something.diff
....
@@ -80,7 +80,7 @@ Now that all of that is done, read about how to keep up-to-date in <<keeping-up,
When possible, please submit a man:svn[1] diff. They are easier to handle than diffs between "new and old" directories. It is easier to see what has changed, and to update the diff if something was modified in the Ports Collection since the work on it began, or if the committer asks for something to be fixed. Also, a patch generated with `svn diff` can be easily applied with `svn patch` and will save some time to the committer.
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% svn co https://svn.FreeBSD.org/ports/head/dns/pdnsd <.>
@@ -93,7 +93,7 @@ When possible, please submit a man:svn[1] diff. They are easier to handle than d
While in the port directory, make any changes that are needed. If adding, copying, moving, or removing a file, use `svn` to track these changes:
-[source,bash]
+[source,shell]
....
% svn add new_file
% svn copy some_file file_copy
@@ -103,7 +103,7 @@ While in the port directory, make any changes that are needed. If adding, copyin
Make sure to check the port using the checklist in <<porting-testing,Testing the Port>> and <<porting-portlint,Checking the Port with `portlint`>>.
-[source,bash]
+[source,shell]
....
% svn status
% svn update <.>
@@ -132,7 +132,7 @@ If `C` is displayed as a result of `svn update`, it means something changed in t
The last step is to make a unified man:diff[1] of the changes:
-[source,bash]
+[source,shell]
....
% svn diff > ../`make -VPKGNAME`.diff
....
@@ -166,14 +166,14 @@ YYYYMMDD:
When including exact portmaster, portupgrade, and/or pkg instructions, please make sure to get the shell escaping right. For example, do _not_ use:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml* docbook-sk* docbook[2345]??-* docbook-4*
....
As shown, the command will only work with bourne shells. Instead, use the form shown below, which will work with both bourne shell and c-shell:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml\* docbook-sk\* docbook\[2345\]\?\?-\* docbook-4\*
....
@@ -207,7 +207,7 @@ Any changes must be validated with `Tools/scripts/MOVEDlint.awk`.
If using a ports directory other than [.filename]#/usr/ports#, use:
-[source,bash]
+[source,shell]
....
% cd /home/user/ports
% env PORTSDIR=$PWD Tools/scripts/MOVEDlint.awk
diff --git a/documentation/content/es/articles/contributing/_index.adoc b/documentation/content/es/articles/contributing/_index.adoc
index e082230afb..982a18df06 100644
--- a/documentation/content/es/articles/contributing/_index.adoc
+++ b/documentation/content/es/articles/contributing/_index.adoc
@@ -130,14 +130,14 @@ Suponiendo que pueda obtener acceso a una versión lo suficientemente actualizad
El formato man:diff[1] recomendado para enviar parches es el formato de salida unificado generado por el comando `diff -u`.
-[source,bash]
+[source,shell]
....
% diff -u fichero-antiguo fichero-nuevo
....
o
-[source,bash]
+[source,shell]
....
% diff -u -r -N directorio-antiguo directorio-nuevo
....
diff --git a/documentation/content/es/articles/cups/_index.adoc b/documentation/content/es/articles/cups/_index.adoc
index c20dd143a6..c0af1facc6 100644
--- a/documentation/content/es/articles/cups/_index.adoc
+++ b/documentation/content/es/articles/cups/_index.adoc
@@ -48,7 +48,7 @@ El sitio principal de CUPS es http://www.cups.org/[http://www.cups.org/].
Para instalar CUPS utilizando un binario precompilado, utilice el siguiente comando desde un terminal con el usuario root:
-[source,bash]
+[source,shell]
....
# pkg install cups
....
@@ -93,7 +93,7 @@ application/octet-stream
Una vez que se han realizado estos cambios, los sistemas man:devfs[8] y CUPS deben reiniciarse, ya sea reiniciando el ordenador o ejecutando los siguientes dos comandos en un terminal con el usuario root:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
# /usr/local/etc/rc.d/cupsd restart
diff --git a/documentation/content/es/articles/filtering-bridges/_index.adoc b/documentation/content/es/articles/filtering-bridges/_index.adoc
index 05c19ad099..a7880eb72d 100644
--- a/documentation/content/es/articles/filtering-bridges/_index.adoc
+++ b/documentation/content/es/articles/filtering-bridges/_index.adoc
@@ -113,7 +113,7 @@ Si hay algún problema, debe solucionarlo ahora antes de continuar.
En este momento para habilitar el bridge debe ejecutar los siguientes comandos (no olvide reemplazar los nombres de las dos interfaces de red [.filename]#fxp0# y [.filename]#xl0# por las suyas):
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.config=fxp0:0,xl0:0
# sysctl net.link.ether.bridge.ipfw=1
diff --git a/documentation/content/es/articles/fonts/_index.adoc b/documentation/content/es/articles/fonts/_index.adoc
index e1b2fe6874..b2554c5b3c 100644
--- a/documentation/content/es/articles/fonts/_index.adoc
+++ b/documentation/content/es/articles/fonts/_index.adoc
@@ -106,7 +106,7 @@ font8x8="iso-8x8" # tipo 8x8 de /usr/shared/syscons/fonts/* (o NO para cargar e
El comando para cambiar el modo es man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
% vidcontrol VGA_80x60
....
@@ -129,7 +129,7 @@ X11 puede utilizar tanto el formato [.filename]#.pfa# como el formato [.filename
Ya existe un directorio llamado [.filename]#Type1#. La forma más sencilla de añadir un nuevo tipo es ponerla en ese directorio. Una forma aun mejor sería colocar todos los tipos que quiera añadir en un directorio separado y utilizar un enlace simbólico a los tipos adicionales. Esto permite identificar los tipos sin mezclarlos con los originales. Por ejemplo:
-[source,bash]
+[source,shell]
....
Crear un directorio para alojar los archivos de tipos.
% mkdir -p /usr/local/shared/fonts/type1
@@ -164,7 +164,7 @@ Para poder usar el nuevo tipo en X11 debe hacer que el archivo de tipo esté dis
Cada nuevo tipo necesita tener un nombre específico. Si en la documentación que acompaña al tipo encuentra la información requerida puede usarla como base para crear el nombre. Si no hay información puede hacerse una idea utilizando el comando man:strings[1] en el tipo. Por ejemplo:
-[source,bash]
+[source,shell]
....
% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
@@ -195,7 +195,7 @@ end readonly def
Basándonos esta información podríamos usar un nombre como este:
-[source,bash]
+[source,shell]
....
-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
....
@@ -225,7 +225,7 @@ proporcional o monoespaciado. La opción _Proportional_ se usa cuando _isFixedPi
Todos estos nombres son arbitrarios, pero uno debe tratar de ser compatible con las convenciones existentes. El nombre hace referencia al tipo con posibles comodines del programa X11, por lo que el nombre elegido debe tener algún sentido. Simplemente puede comenzar a usar
-[source,bash]
+[source,shell]
....
…-normal-r-normal-…-p-…
....
@@ -234,7 +234,7 @@ como nombre, y luego usar man:xfontsel[1] para examinarla y ajustar el nombre en
Para completar nuestro ejemplo:
-[source,bash]
+[source,shell]
....
Haga que el tipo esté accesible para X11
% cd /usr/X11R6/lib/X11/fonts/Type1
@@ -270,7 +270,7 @@ Referencias: man:xfontsel[1], man:xset[1], The X Windows System in a Nutshell, h
Ghostscript hace referencia a un tipo a través de su archivo [.filename]#Fontmap#. Para modificarlo hay que proceder de forma parecida a cuando mofidicamos el archivo [.filename]#fonts.dir# de X11. Ghostscript puede usar los formatos [.filename]#.pfa# y [.filename]#.pfb#. A continuación ofrecemos una guía paso a paso en la que usaremos el tipo anterior para mostrar cómo usarla con Ghostscript:
-[source,bash]
+[source,shell]
....
Coloque el tipo en el directorio de tipos de Ghostscript
% cd /usr/local/shared/ghostscript/fonts
@@ -310,7 +310,7 @@ Ahora que el nuevo tipo puede ser utilizada tanto por X11 como por Ghostscript
La primera herramienta es `afmtodit`. No está instalada por defecto, pero puede encontrarla en la distribución original. Descubrí que tenía que cambiar la primera línea del archivo, así que procedí del siguiente modo:
-[source,bash]
+[source,shell]
....
% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
@@ -322,7 +322,7 @@ La primera herramienta es `afmtodit`. No está instalada por defecto, pero puede
Esta herramienta creará el archivo de tipo Groff a partir del archivo de métricas (sufijo [.filename]#.afm#). Siguiendo con nuestro ejemplo:
-[source,bash]
+[source,shell]
....
Muchos archivos .afm están en formato Mac, con ^M delimitando las líneas
Tenemos que convertirlos al estilo UNIX que delimita las líneas con ^J
@@ -339,7 +339,7 @@ Ahora se puede hacer referencia al tipo con el nombre SHOWBOAT.
Si se usa Ghostscript con las impresoras del sistema no es necesario hacer nada más. Sin embargo si las impresoras usan PostScript(R) el tipo se debe descargar a la impresora para poder usarse (a menos que la impresora tenga el tipo showboat incorporado o pueda acceder a una unidad en la que esté .) El último paso es crear un tipo descargable. La herramienta `pfbtops` se utiliza para crear el formato de tipo [.filename]#.pfa# y el archivo [.filename]#download# se modifica para hacer referencia al nuevo tipo. El archivo [.filename]#download# debe hacer referencia al nombre interno del tipo. Esto se puede determinar fácilmente a partir del archivo de tipo de groff como vemos a continuación:
-[source,bash]
+[source,shell]
....
Cree el archivo de tipo .pfa
% pfbtops /usr/local/shared/fonts/type1/showboat.pfb >showboat.pfa
@@ -347,7 +347,7 @@ Cree el archivo de tipo .pfa
Por supuesto, si el archivo [.filename]#.pfa# ya existe, simplemente cree un enlace simbólico para referenciarlo.
-[source,bash]
+[source,shell]
....
Obtener el nombre interno del tipo
% fgrep internalname SHOWBOAT
@@ -363,7 +363,7 @@ Showboat showboat.pfa
Para probar el tipo:
-[source,bash]
+[source,shell]
....
% cd /tmp
@@ -433,7 +433,7 @@ Si cree que trabajar en [.filename]#/usr/src# no es muy buena idea puede copiar
+
En el directorio, necesitará compilar la utilidad. Escriba:
+
-[source,bash]
+[source,shell]
....
# make -f Makefile.sub afmtodit
....
@@ -444,7 +444,7 @@ Una vez que todas estas utilidades estén en su sitio, estará listo para comenz
. Cree el archivo [.filename]#.afm# escribiendo:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -q -- ttf2pf.ps nombre_TTF nombre_tipo_PS nombre_AFM
....
@@ -455,7 +455,7 @@ Esto también produce un archivo [.filename]#.pfa#, el archivo ascii de las mét
+
Por ejemplo, para convertir el tipo para código de barras 30f9 usando los nombres de archivo predeterminados use el siguiente comando:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -466,7 +466,7 @@ Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
+
Si desea que los tipos convertidos se almacenen en [.filename]#A.pfa# y [.filename]#B.afm# use este comando:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -479,14 +479,14 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
Vaya al directorio [.filename]#/usr/shared/groff_font/devps# para que sea más fácil de ejecutar el siguiente comando. Probablemente necesitará privilegios de root. (O bien, si no se siente confortable del todo trabajando en ese directorio, asegúrese de hacer referencia a los archivos [.filename]#DESC#, [.filename]#text.enc# y [.filename]#generate/textmap# que están en el directorio).
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc file.afm generate/textmap nombre_tipo_PS
....
+
Donde, [.filename]#file.afm# es el _AFM_name_ creado anteriormente por `ttf2pf.ps` y _PS_font_name_ es el nombre del tipo utilizado para ese comando, así como el nombre que man:groff[1] utilizará para las referencias a este tipo. Por ejemplo, suponiendo que haya utilizado el comando `tiff2pf.ps` anterior, el tipo para código de barras 3of9 se puede crear usando el comando:
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc 3of9.afm generate/textmap 3of9
....
diff --git a/documentation/content/es/articles/freebsd-questions/_index.adoc b/documentation/content/es/articles/freebsd-questions/_index.adoc
index f8ea9b93d7..8e28bff54e 100644
--- a/documentation/content/es/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/es/articles/freebsd-questions/_index.adoc
@@ -169,7 +169,7 @@ Se trata de una opinión personal, desde luego, pero la salida del comando man:d
* Mucha de la información que debe proporcionar es la salida de programas, como man:dmesg[8] o mensajes de consola, que generalmente aparecen en [.filename]#/var/log/messages#. No intente copiar esa información escribiéndola de nuevo; es un suplicio, y cometerá un error. Para enviar el contenido del log, haga una copia del archivo y use un editor para recortar la información que sea relevante, o corte y pegue en su mensaje. Para la salida de programas como man:dmesg[8], redirija la salida a un archivo e inclúyalo. Por ejemplo,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/es/articles/ipsec-must/_index.adoc b/documentation/content/es/articles/ipsec-must/_index.adoc
index 5c6ab3ca4c..1f83f41d1b 100644
--- a/documentation/content/es/articles/ipsec-must/_index.adoc
+++ b/documentation/content/es/articles/ipsec-must/_index.adoc
@@ -63,7 +63,7 @@ También necesitamos una forma de capturar los datos de red sin procesar. Un pro
El comando:
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -82,7 +82,7 @@ Aquí está el experimento:
. En la ventana "segura", ejecute el comando UNIX(R) man:yes[1], que transmitirá el carácter `y`. Después de un rato, detenga el comando. Cambie a la ventana insegura, y repita. Espere un poco, detenga el comando.
. Ahora ejecute <<code>> en los paquetes capturados. Debería ver algo como lo siguiente. Lo importante a tener en cuenta es que la conexión segura tiene un 93% (6,7) del valor esperado (7,18), y la conexión "normal" tiene un 29% (2,1) del valor esperado.
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
diff --git a/documentation/content/es/articles/leap-seconds/_index.adoc b/documentation/content/es/articles/leap-seconds/_index.adoc
index ec9d56c508..9b84394e84 100644
--- a/documentation/content/es/articles/leap-seconds/_index.adoc
+++ b/documentation/content/es/articles/leap-seconds/_index.adoc
@@ -67,7 +67,7 @@ Por favor, intente asegurarse de que nada horrible suceda debido al segundo inte
Es posible probar si un segundo intercalar será usado. Debido a la naturaleza de NTP, la prueba puede funcionar hasta 24 horas antes del segundo intercalar. Algunas fuentes importantes de referencia de tiempo solo anuncian el segundo intercalar una hora antes del acontecimiento. Realice una consulta al demonio de NTP:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/es/articles/linux-users/_index.adoc b/documentation/content/es/articles/linux-users/_index.adoc
index d68bed9e78..31a6c78b58 100644
--- a/documentation/content/es/articles/linux-users/_index.adoc
+++ b/documentation/content/es/articles/linux-users/_index.adoc
@@ -75,7 +75,7 @@ Una lista completa de todos los ports y paquetes disponibles se puede encontrar
Packages are pre-compiled applications, the FreeBSD equivalents of [.filename]#.deb# files on Debian/Ubuntu based systems and [.filename]#.rpm# files on Red Hat/Fedora based systems. Packages are installed using `pkg`. For example, the following command installs Apache 2.4:
-[source,bash]
+[source,shell]
....
# pkg install apache24
....
@@ -91,7 +91,7 @@ La Colección de Ports, a veces llamada el árbol de ports, se puede instalar en
Para compilar un port, acceda al directorio del port e inicie el proceso de build. El siguiente ejemplo instala Apache 2.4 de la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make install clean
@@ -99,7 +99,7 @@ Para compilar un port, acceda al directorio del port e inicie el proceso de buil
El beneficio de usar ports para instalar software es la capacidad de personalizar las opciones de instalación. Este ejemplo especifica que el módulo mod_ldap también debe ser instalado:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make WITH_LDAP="YES" install clean
@@ -131,7 +131,7 @@ apache24_flags="-DSSL"
Una vez que un servicio ha sido activado en [.filename]#/etc/rc.conf#, puede iniciarse sin reiniciar el sistema:
-[source,bash]
+[source,shell]
....
# service sshd start
# service apache24 start
@@ -139,7 +139,7 @@ Una vez que un servicio ha sido activado en [.filename]#/etc/rc.conf#, puede ini
Si un servicio no ha sido activado, puede iniciarse desde la línea de comandos usando `onestart`:
-[source,bash]
+[source,shell]
....
# service sshd onestart
....
@@ -149,7 +149,7 @@ Si un servicio no ha sido activado, puede iniciarse desde la línea de comandos
Instead of a generic _ethX_ identifier that Linux(R) uses to identify a network interface, FreeBSD uses the driver name followed by a number. The following output from man:ifconfig[8] shows two Intel(R) Pro 1000 network interfaces ([.filename]#em0# and [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -248,7 +248,7 @@ En algunas distribuciones de Linux(R), puede consultar [.filename]#/proc/sys/net
Por ejemplo, utilice el siguiente comando para comprobar si IP forwarding está habilitado en FreeBSD:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -256,14 +256,14 @@ net.inet.ip.forwarding: 0
Use `-a` para listar todos los ajustes del sistema:
-[source,bash]
+[source,shell]
....
% sysctl -a | more
....
Si una aplicación necesita procfs, añada la siguiente línea a [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -272,7 +272,7 @@ Incluir `noauto` evitará que [.filename]#/proc# se monte automáticamente en el
Para montar el sistema de archivos sin reiniciar:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/es/articles/mailing-list-faq/_index.adoc b/documentation/content/es/articles/mailing-list-faq/_index.adoc
index ca3d52058f..4e157b5578 100644
--- a/documentation/content/es/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/es/articles/mailing-list-faq/_index.adoc
@@ -112,7 +112,7 @@ Trate de no usar MIME: muchas personas usan correos que no se llevan muy bien co
* Asegúrese de que su hora y zona horaria están configuradas correctamente. Esto puede parecer un poco estúpido a primera vista, ya que su mensaje será recibido, pero muchas de las personas en estas listas de correo reciben varios cientos de mensajes al día. Frecuentemente, ordenan los mensajes entrantes por asunto y por fecha, y si su mensaje no aparece antes de la primera respuesta, pueden asumir que lo pasaron por alto y no molestarse en mirar.
* Mucha de la información que deberá proporcionar es la salida de programas, como man:dmesg[8] o mensajes de consola, que generalmente aparecen en [.filename]#/var/log/messages#. No intente copiar esta información escribiéndola nuevamente; no solo es un trabajo penoso sino que es muy probable que se cometan errores. Para enviar contenidos de ficheros de log o bien haga una copia del fichero para que sea adjuntado al mensaje previa eliminación de la información no relevante, o bien utilice el método de copiar y pegar. Para la salida de programas tales como `dmesg`, redireccione la salida a un fichero y utilice alguno de los procedimientos anteriores. Por ejemplo,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/es/articles/nanobsd/_index.adoc b/documentation/content/es/articles/nanobsd/_index.adoc
index f5de72023c..b6f890e683 100644
--- a/documentation/content/es/articles/nanobsd/_index.adoc
+++ b/documentation/content/es/articles/nanobsd/_index.adoc
@@ -69,7 +69,7 @@ La partición del archivo de configuración reside en el directorio [.filename]#
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -92,7 +92,7 @@ Una imagen de NanoBSD se compila usando un simple shell script [.filename]#nanob
Los comandos necesarios para compilar una imagen de NanoBSD son:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -114,7 +114,7 @@ Esta es probablemente la característica más importante y más interesante de N
Invocar el siguiente comando forzará a [.filename]#nanobsd.sh# a leer su configuración desde el archivo [.filename]#myconf.nano# localizado en el directorio actual:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -264,7 +264,7 @@ Según que servicios que se encuentren disponibles en el huésped sirviendo la n
Si la velocidad de transferencia es una prioridad para usted, utilice este ejemplo:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -274,7 +274,7 @@ get _.disk.image "| sh updatep1"
Si prefiere una transferencia segura, considere usar este ejemplo:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -287,7 +287,7 @@ Puede utilizar este ejemplo si el huésped remoto no está ejecutando los servic
====
. En primer lugar, abra un puerto TCP en el huésped que se encuentra sirviendo la imagen y haga que envíe la imagen al cliente:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -298,7 +298,7 @@ Asegúrese de que el puerto usado no esté bloqueado para recibir conexiones ent
======
. Conéctese al huésped sirviendo la nueva imagen y ejecute el script [.filename]#updatep1#:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/es/articles/releng/_index.adoc b/documentation/content/es/articles/releng/_index.adoc
index 3aa7abc502..5d27b3bd8b 100644
--- a/documentation/content/es/articles/releng/_index.adoc
+++ b/documentation/content/es/articles/releng/_index.adoc
@@ -96,21 +96,21 @@ Cuando todos los problemas encontrados en las releases candidatas se han corregi
Como se describe en la introducción, la rama `RELENG_X_Y` es una característica relativamente nueva de nuestra metodología de generación de releases. El primer paso para crear esta rama consiste en asegurar que el código fuente utilizado "proviene" de la versión más reciente de `RELENG_X`.
-[source,bash]
+[source,shell]
....
/usr/src# cvs update -rRELENG_4 -P -d
....
El siguiente paso consiste en crear una etiqueta de rama, (__tag__), de esta forma se pueden generar diferencias entre el código actual y la rama de inicio fácilmente, utilizando CVS:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4 RELENG_4_8_BP src
....
Y a continuación se crea la etiqueta de la rama:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -b -rRELENG_4_8_BP RELENG_4_8 src
....
@@ -172,7 +172,7 @@ Después de construir la release se debe actualizar el número almacenado en los
Cuando la release final se encuentra preparada se utiliza el siguiente comando para crear la etiqueta (a modo de ejemplo) `RELENG_4_8_0_RELEASE`.
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4_8 RELENG_4_8_0_RELEASE src
....
@@ -201,7 +201,7 @@ Si se omite `RELEASETAG`, la release se construirá a partir de la rama `HEAD` (
Existen otras variables que se pueden editar para adaptar el proceso de construcción de la release. La mayoría de estas variables se encuentran documentadas al comienzo de [.filename]#src/release/Makefile#. El comando exacto para contruir la release oficial de FreeBSD 4.7 (x86) fue:
-[source,bash]
+[source,shell]
....
make release CHROOTDIR=/local3/release \
BUILDNAME=4.7-RELEASE \
@@ -250,7 +250,7 @@ Las actividades de ingeniería de releases para nuestra colección de paquetes s
A partir de FreeBSD 4.4, el Proyecto FreeBSD decidió lanzar gratuitamente al público las cuatro imágenes ISO que anteriormente se vendían en _BSDi/Wind River Systems/FreeBSD Mall_ como distribuciones en CDROM "oficiales". Cada uno de los cuatro discos debe contener un [.filename]#README.TXT# que explica el contenido de cada disco, un [.filename]#CDROM.INF# que proporciona metadatos para que man:sysinstall[8] pueda validar la información en él contenida y un [.filename]#filename.txt# que proporciona un "manifiesto". Este _manifiesto_ se puede crear utilizando un simple comando:
-[source,bash]
+[source,shell]
....
/stage/cdrom# find . -type f | sed -e 's/^\.\///' | sort > filename.txt
....
diff --git a/documentation/content/es/articles/remote-install/_index.adoc b/documentation/content/es/articles/remote-install/_index.adoc
index deb008e36f..46ffcfb347 100644
--- a/documentation/content/es/articles/remote-install/_index.adoc
+++ b/documentation/content/es/articles/remote-install/_index.adoc
@@ -80,7 +80,7 @@ Tenga en cuenta que los aspectos internos de mfsBSD están fuera del alcance de
Descargue y extraiga la última versión de mfsBSD y cambie su directorio de trabajo al directorio donde se encuentren los scripts de mfsBSD:
-[source,bash]
+[source,shell]
....
# fetch http://mfsbsd.vx.sk/release/mfsbsd-2.1.tar.gz
# tar xvzf mfsbsd-2.1.tar.gz
@@ -131,7 +131,7 @@ El proceso de creación de una imagen de mfsBSD es bastante sencillo.
El primer paso es montar el CD de instalación de FreeBSD, o la imagen ISO de instalación en [.filename]#/cdrom#. Por ejemplo, en este artículo asumiremos que ha descargado la ISO FreeBSD 10.1-RELEASE. Montar esta imagen ISO en el directorio [.filename]#/cdrom# es fácil con la utilidad man:mdconfig[8]:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -u 10 -f FreeBSD-10.1-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /cdrom
@@ -139,7 +139,7 @@ El primer paso es montar el CD de instalación de FreeBSD, o la imagen ISO de in
Como las versiones recientes de FreeBSD no contienen los sets regulares de la distribución, es necesario extraerlos de la imagen ISO:
-[source,bash]
+[source,shell]
....
# mkdir DIST
# tar -xvf /cdrom/usr/freebsd-dist/base.txz -C DIST
@@ -148,7 +148,7 @@ Como las versiones recientes de FreeBSD no contienen los sets regulares de la di
A continuación, genere la imagen mfsBSD de arranque:
-[source,bash]
+[source,shell]
....
# make BASE=DIST
....
@@ -162,14 +162,14 @@ El comando make anterior debe ejecutarse desde el nivel superior del árbol de d
Ahora que la imagen mfsBSD está lista, se debe cargar en el sistema remoto ejecutando el sistema de recuperación o una distribución de Linux(R) preinstalada. La herramienta más adecuada para esta tarea es scp:
-[source,bash]
+[source,shell]
....
# scp disk.img root@192.168.0.2:.
....
Para iniciar correctamente la imagen mfsBSD, debe colocarse en el primer dispositivo (bootable) de la máquina en cuestión. Se puede hacer utilizando este ejemplo, siempre que [.filename]#sda# sea el primer dispositivo de arranque:
-[source,bash]
+[source,shell]
....
# dd if=/root/disk.img of=/dev/sda bs=1m
....
@@ -187,7 +187,7 @@ La primera tarea es asignar espacio en disco para FreeBSD, es decir: crear slice
Al principio, marque todos los discos del sistema como vacíos. Repita el siguiente comando para cada disco duro:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/ad0 count=2
....
@@ -196,7 +196,7 @@ A continuación, cree las slices y etiquételas con su herramienta preferida. A
El siguiente ejemplo describirá cómo crear slices y etiquetas, inicializar man:gmirror[8] en cada partición y cómo crear un sistema de archivos UFS2 en cada partición en mirror:
-[source,bash]
+[source,shell]
....
# fdisk -BI /dev/ad0 <.>
# fdisk -BI /dev/ad1
@@ -231,7 +231,7 @@ El siguiente ejemplo describirá cómo crear slices y etiquetas, inicializar man
Esta es la parte más importante. Esta sección describirá cómo instalar la distribución mínima de FreeBSD en los discos duros que hemos preparado en la sección anterior. Para lograr este objetivo, todos los sistemas de archivos deben montarse, para que Sysinstall pueda escribir el contenido de FreeBSD en los discos duros:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/root /mnt
# mkdir /mnt/var /mnt/usr
@@ -263,7 +263,7 @@ El sistema operativo FreBSD ya debería estar instalado; sin embargo, el proceso
Ahora debe usar el comando man:chroot[8] en el sistema recién instalado. Use el siguiente comando:
-[source,bash]
+[source,shell]
....
# chroot /mnt
....
@@ -272,7 +272,7 @@ Para completar nuestro objetivo, siga estos pasos:
* Copie el kernel `GENERIC` al directorio [.filename]#/boot/kernel#:
+
-[source,bash]
+[source,shell]
....
# cp -Rp /boot/GENERIC/* /boot/kernel
....
@@ -297,7 +297,7 @@ zfs_load="YES"
....
* Ejecute el siguiente comando, hará que ZFS se encuentre disponible en el siguiente arranque:
+
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
....
@@ -314,14 +314,14 @@ Si su sistema sobrevivió al reinicio, ahora debería poder iniciar sesión. ¡B
El único paso que queda es configurar man:zpool[8] y crear algunos sistemas de archivos man:zfs[8]. Crear y administrar ZFS es muy sencillo. Primero, cree un pool reflejado:
-[source,bash]
+[source,shell]
....
# zpool create tank mirror /dev/ad[01]s1f
....
A continuación, cree algunos sistemas de archivos:
-[source,bash]
+[source,shell]
....
# zfs create tank/ports
# zfs create tank/src
diff --git a/documentation/content/es/articles/solid-state/_index.adoc b/documentation/content/es/articles/solid-state/_index.adoc
index 4d6f3808d1..40f5fd3a59 100644
--- a/documentation/content/es/articles/solid-state/_index.adoc
+++ b/documentation/content/es/articles/solid-state/_index.adoc
@@ -90,14 +90,14 @@ Algunas aplicaciones en el sistema comenzarán a fallar inmediatamente como resu
Una cosa importante a recordar es que un sistema de archivos que fue montado como solo lectura con [.filename]#/etc/fstab# puede ser montado como lectura-escrita en cualquier momento ejecutando el comando:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partition
....
y se puede cambiar de nuevo a solo lectura con el comando:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partition
....
@@ -119,7 +119,7 @@ Después de arrancar con los disquetes kern y mfsroot, seleccione `custom` en el
+
Salga del menú de instalación personalizado y, en el menú de instalación principal, elija la opción `fixit`. Después de entrar en el entorno de fixit, escriba el siguiente comando:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -133,7 +133,7 @@ a: 123456 0 4.2BSD 0 0
+
Donde _123456_ es exactamente el mismo número que la entrada `c:`. Básicamente, está duplicando la línea `c:` como `a:`, asegúrese de que el fstype es `4.2BSD`. Guarde el archivo y ciérrelo.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -143,14 +143,14 @@ Donde _123456_ es exactamente el mismo número que la entrada `c:`. Básicamente
+
Monte el medio flash recién preparado:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
+
Coloque esta máquina en la red para poder transferir nuestro archivo tar y extraerlo en nuestro sistema de archivos del medio flash. Un ejemplo de cómo hacerlo es:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -158,21 +158,21 @@ Coloque esta máquina en la red para poder transferir nuestro archivo tar y extr
+
Ahora que la máquina está en la red, transfiera su archivo tar. Es posible que se enfrente a un pequeño dilema en este punto - si su memoria flash tiene por ejemplo 128 megabytes, y su archivo tar tiene más de 64 megabytes, no podrá tener el archivo tar en el medio de flash al mismo tiempo que realiza la descompresión - se quedará sin espacio. Una solución a este problema, si está utilizando FTP, es descomprimir el archivo mientras se transfiere por FTP. Si realiza la transferencia de esta forma, nunca tendrá el archivo tar y los contenidos en el disco al mismo tiempo:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| tar xvf -"
....
+
Si su archivo tar está comprimido en gzip, puede hacerlo de esta forma:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| zcat | tar xvf -"
....
+
Una vez que el contenido de su sistema de archivos comprimido por tar está en el sistema de archivos de la memoria flash, puede desmontar la memoria flash y reiniciar:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -197,7 +197,7 @@ Sin embargo, esto no resuelve el problema de mantener las cron tabs entre los re
[.filename]#syslog.conf# especifica las ubicaciones de ciertos ficheros de log que hay en [.filename]#/var/log#. Estos archivos no son creados por [.filename]#/etc/rc.d/var# durante la inicialización del sistema. Por lo tanto, en algún lugar de [.filename]#/etc/rc.d/var#, justo después de la sección que crea los directorios en [.filename]#/var#, tendrá que añadir algo como esto:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -211,14 +211,14 @@ Para que sea posible entrar en el directorio de ports y ejecutar con éxito el c
Primero, cree el directorio para la base de datos de los paquetes. Normalmente se encuentra en [.filename]#/var/db/pkg#, pero no podemos colocarlo allí ya que desaparecerá cada vez que se inicie el sistema.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Ahora, agregue una línea al archivo [.filename]#/etc/rc.d/var# que enlace [.filename]#/etc/pkg# a [.filename]#/var/db/pkg#. Un ejemplo:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -238,7 +238,7 @@ En primer lugar, agregue el directorio `log/apache` a la lista de directorios qu
En segundo lugar, agregue estos comandos a [.filename]#/etc/rc.d/var# después de la sección de creación del directorio:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -246,7 +246,7 @@ En segundo lugar, agregue estos comandos a [.filename]#/etc/rc.d/var# después d
Por último, elimine el directorio [.filename]#apache_log_dir# y reemplácelo por un enlace:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_dir
# ln -s /var/log/apache apache_log_dir
diff --git a/documentation/content/es/books/faq/_index.adoc b/documentation/content/es/books/faq/_index.adoc
index 5d6bafaae0..a3d93f115a 100644
--- a/documentation/content/es/books/faq/_index.adoc
+++ b/documentation/content/es/books/faq/_index.adoc
@@ -339,7 +339,7 @@ Luego de elegir el formato y mecanismo de compresión, descargue los archivos co
Por ejemplo, la versión HTML split del FAQ, comprimida usando man:bzip2[1], puede encontrarse en [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2#. Para descargar y descomprimir dicho archivo, escriba:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -441,14 +441,14 @@ Si Windows(TM) es instalado primero, entonces si. El gestor de arranque de FreeB
Depende del gestor de arranque. El menú de selección de arranque de FreeBSD puede reinstalarse usando man:boot0cfg[8]. Por ejemplo, para restaurar el menu de arranque al disco _ada0_:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
El cargador de arranque no interactivo MBR bootloader puede instalarse usando man:gpart[8]:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -587,7 +587,7 @@ FreeBSD también soporta cualquier tipo de dispositivos CSI CD-R o CD-RW. Instal
El controlador de consola por defecto, man:syscons[4], provee la habilidad de usar un puntero del ratón en consolas de texto para copiar & pegar texto. Corra el demonio del ratón, man:moused[8], e inicie el puntero del ratón en la consola virtual:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -638,7 +638,7 @@ Para más información, vea http://www.ibb.net/\~anne/keyboard.html[esta página
Algunas tarjetas de sonido ajustan su volumen de salida a con cada arranque. Corra el siguiente comando cada vez que la maquina arranque:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -740,7 +740,7 @@ La computadora tiene dos o más relojes, y FreeBSD eligió usar el incorrecto.
Corra man:dmesg[8], y verifique las líneas que contengan `Timecounter`. El del valor de calidad más alto que eligio FreeBSD.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -751,7 +751,7 @@ Timecounters tick every 1.000 msec
Confirme esto verificando el man:sysctl[3]`kern.timecounter.hardware`.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -768,7 +768,7 @@ O el BIOS puede modificar el reloj TSC quizás para cambiar la velocidad del pro
En este ejemplo, el reloj `i8254` también esta disponible, y puede ser seleccionando escribiendo su nombre en el man:sysctl[3]`kern.timecounter.hardware`.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -874,7 +874,7 @@ La implementación existente es nuestro mejor esfuerzo para satisfacer simultane
Para crear CDs de audio a partir de archivos MIDI, primero instale package:audio/timidity[] desde ports y luego instale manualmente el set de parches GUS por Eric A. Welsh, disponible en link:http://alleg.sourceforge.net/digmid.html[http://alleg.sourceforge.net/digmid.html]. Luego de que TiMidity++ haya sido instalada con propiedad, los archivos MIDI pueden convertirse a archivos WAV con el siguiente comando:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -948,7 +948,7 @@ Hay varias causas posibles para este problema:
El nombre del planificador siendo usado actualmente esta directamente disponible como el valor del sysctl `kern.sched.name`:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: ULE
@@ -984,7 +984,7 @@ Cuando los discos esten formateados con UFS, nunca use nada excepto man:dump[8]
Por ejemplo, para mover [.filename]#/dev/ada1s1a# con [.filename]#/mnt# como punto de montaje temporario, escriba:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -994,7 +994,7 @@ Por ejemplo, para mover [.filename]#/dev/ada1s1a# con [.filename]#/mnt# como pun
Reorganizar particiones con `dump` lleva un poco más de trabajo. Para combinar una partición como [.filename]#/var# con su padre, cree una nueva partición que sea lo suficientemente grande como para ambas, mueva la partición padre como se describió anteriormente, y luego mueva la partición hija al directorio vacío que creo la primera movida:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -1006,7 +1006,7 @@ Reorganizar particiones con `dump` lleva un poco más de trabajo. Para combinar
Para separar un directorio de su padre, por ejemplo poniendo [.filename]#/var# en su propia partición cuando no estaba ahi anteriormente, cree ambas particiones, luego monte la partición hija en el directorio apropiado en el punto de montaje temporario, luego mueva la vieja partición:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -1062,7 +1062,7 @@ FreeBSD incluye el Network File System NFS y la colección de ports de FreeBSD P
Las particiones de DOS secundarias se encuentras luego de _todas_ las particiones primarias. Por ejemplo, si `E` es la segunda partición DOS en el segundo dispositivo SCSI, habrá un dispositivo para "slice 5" en [.filename]#/dev#. Para montarlo corra:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1098,14 +1098,14 @@ Esto no puede lograrse con el cargador de arranque estándar sin reescribirlo. E
Si el disco ya tiene un sistema de archivos en el, use un comando como este:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
Si el disco solo puede ser usado con sistemas FreeBSD, particionelo con UFS o ZFS. Esto proveerá soporte para nombres de archivo largos, mejoras en performance y estabilidad. Si el disco va a ser usado por otros sistemas operativos, una opción más portable, tal como msdosfs, es preferible.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1114,14 +1114,14 @@ Si el disco solo puede ser usado con sistemas FreeBSD, particionelo con UFS o ZF
Finalmente, cree un nuevo sistema de archivos:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
y móntelo:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1165,7 +1165,7 @@ Por defecto, man:mount[8] intentara montar la última pista de datos (sesión) a
Como `root` ajuste la variable de sysctl `vfs.usermount` a `1`.
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1185,7 +1185,7 @@ Por ejemplo, para permitir a los usuarios montar el primer dispositivo de USB a
Ahora todos los usuarios pueden montar dispositivos que podrían leer a un directorio propio:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1193,7 +1193,7 @@ Ahora todos los usuarios pueden montar dispositivos que podrían leer a un direc
Desmontar el dispositivo es fácil:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1269,7 +1269,7 @@ Deduplicación también puede llevar a situaciones inesperadas. En particular, b
Esto puede ocurrir porque el pool esta 100% lleno. ZFS requiere espacio en el disco para escribir los metadatos de transacción. Para restaurar el pool a un estado usable, trunque el archivo a borrar:
-[source,bash]
+[source,shell]
....
% truncate -s 0 archivo-sin-importancia
....
@@ -1305,7 +1305,7 @@ El archivo de configuración principal es [.filename]#/etc/defaults/rc.conf# el
Por ejemplo, para arrancar man:named[8], el servidor de DNS incluido
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1324,7 +1324,7 @@ Esto usualmente esta provocado por editar el crontab del sistema. Esta no es la
Para borrar el contrab extra e incorrecto:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1335,7 +1335,7 @@ Esta es una característica de seguridad. Para hacer `su` a `root`, o cualquier
Para permitir que alguien haga `su` a `root`, póngalo(s) en el grupo `wheel` usando `pw`:
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1429,7 +1429,7 @@ options SC_DISABLE_REBOOT
Esto también puede hacerse ajustando el siguiente man:sysctl[8] que no requiere un reinicio o una recompilación de kernel:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -1443,7 +1443,7 @@ Los dos métodos anteriores son exclusivos: el man:sysctl[8] no existe si el ker
Use este comando de man:perl[1]:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1452,7 +1452,7 @@ donde _file(s)_ es uno o más archivos a procesar. La modificación se hace en e
Alternativamente, use man:tr[1]:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1465,7 +1465,7 @@ Otra forma de reformatear archivos de texto de DOS es usar el port package:conve
Vaya al modo de un solo usuario y luego vuelva al modo multiusuario:
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1488,7 +1488,7 @@ Respuesta corta: el nivel de seguridad es mayor a 0. Reinicie directamente al mo
Respuesta larga: FreeBSD deshabilita cambiar las banderas del sistema cuando los niveles de seguridad son mayores a 0. Para verificar el nivel actual de seguridad:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1501,7 +1501,7 @@ Respuesta corta: el sistema esta en un nivel de seguridad mayor a 1. Reinicie di
Respuesta larga: FreeBSD deshabilita cambiar el tiempo por más de un segundo a niveles de seguridad mayores que 1. Para verificar el nivel de seguridad:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1546,7 +1546,7 @@ Hay varios tipos de "memoria libre". Un tipo es la cantidad de memoria directame
Para ver lo que haría man:newsyslog[8], use lo siguiente:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1573,7 +1573,7 @@ Use package:x11/xorg-minimal[], que compila e instala solo los componentes de Xo
Instale Xorg desde los paquetes de FreeBSD:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1618,7 +1618,7 @@ link sysmouse mouse
Este vínculo puede ser creado reiniciando man:devfs[5] con el siguiente comando (como `root`):
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1686,7 +1686,7 @@ Por razones de seguridad, la configuración por defecto es no permitir que la ma
Para habilitar esta característica arranque X con el argumento opcional `-listen_tcp`:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1806,7 +1806,7 @@ Asumiendo que todos los teclados de windows sean estándares, los códigos de te
Para hacer que la tecla kbd:[Windows]izquierda imprima una coma, intente esto.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1886,14 +1886,14 @@ Si. Para instrucciones acerca de como usar NAT sobre una conexión PPP, vea la l
Si el alias esta en la misma subred que una dirección ya configurada en la interfaz, agregue `netmask 0xffffffff` a este comando:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
De otro modo, especifique la dirección de red y netmask de la manera usual:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1904,7 +1904,7 @@ Puede encontrarse más información en el manual link:{handbook}#configtuning-vi
Algunas versiones del código NFS de Linux(TM) solo aceptan pedidos de montaje de un puerto privilegiado; intente con el siguiente comando:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1927,7 +1927,7 @@ Si el kernel fue compilado con la opción `IPFIREWALL`, este al tanto de que la
Si el firewall esta mal configurado, restaure la operabilidad de la red escribiendo lo siguiente como `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1940,7 +1940,7 @@ Para más información acerca de configurar este firewall vea el link:{handbook}
Posiblemente porque la traducción de direcciones de red (NAT) es necesaria en lugar de simplemente envíar paquetes needed. Una regla "fwd" solo envía paquetes, no cambia realmente los datos adentro del paquete. Considere esta regla:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -1986,14 +1986,14 @@ Este mensaje del kernel indica que alguna actividad esta provocando que envie un
El primer número en el mensaje indica cuantos paquetes hubiera enviado el kernel si el límite no existiera, y el segundo indica el límite. Este límite se controla usando `net.inet.icmp.icmplim`. Este ejemplo ajusta el límite a `300` paquetes por segundo:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
Para deshabilitar estos mensajes sin deshabilitar la limitación de la respuesta, use `net.inet.icmp.icmplim_output` para deshabilitar la salida:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -2046,7 +2046,7 @@ Un proceso UNIX(TM) tiene por dueño una userid en particular. Si el ID de susua
Para verificar el estado del securelevel en un sistema corriendo:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -2227,7 +2227,7 @@ Si el ISP es servicial, deberían poder habilitar logueo en su extremo, luego cu
En este caso, recompile man:ppp[8] con información de debug, y luego use man:gdb[1] para obtener un stack trace desde el proceso de ppp que esta parado. Para recompilar la utilidad ppp con información de debug, escriba:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/ppp
# env DEBUG_FLAGS='-g' make clean
@@ -2236,7 +2236,7 @@ En este caso, recompile man:ppp[8] con información de debug, y luego use man:gd
Luego, reinicie ppp y espere a que se cuelgue nuevamente. Cuando la compilación de depuración de ppp se cuelgue, inicie gdb en el proceso que se colgó escribiendo:
-[source,bash]
+[source,shell]
....
# gdb ppp `pgrep ppp`
....
@@ -2464,7 +2464,7 @@ Vea link:{handbook}#serialconsole-setup[esta sección del manual].
Mientras el kernel de FreeBSD arranca, verificara los puertos en serie para los que esta configurado el kernel. Vea los mensajes de inicio con atención o corra este comando luego de que el sistema haya arrancado:
-[source,bash]
+[source,shell]
....
% dmesg | grep -E "^sio[0-9]"
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2531,7 +2531,7 @@ Las utilidades man:tip[1] y man:cu[1] incluidas solo pueden acceder el directori
Alternativamente, todos pueden configurarse para correr man:tip[1] and man:cu[1] escribiendo:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2553,7 +2553,7 @@ La respuesta simple es que la memoria libre es memoria gastada. Cualquier memori
Los symlinks no tienen permisos, y por defecto, man:chmod[1] seguirá los symlinks para cambiar los permisos en el archivo fuente, de ser posible. Para el archivo, [.filename]#foo# co un symlink llamado [.filename]#bar#, este comando siempre tendrá éxito.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2567,7 +2567,7 @@ Al cambiar los modos de las jerarquías de archivo que tienen raíz en los archi
`-R` hace una man:chmod[1]_recursivo_. Tenga cuidado con especificar directorios o symlinks a directorios en man:chmod[1]. Para cambiar los permisos de un directorio referenciado por un symlink, use man:chmod[1] sin opciones y agregue una barra ([.filename]#/#) al final del symlink. Por ejemplo, si [.filename]#foo# es un symlink al directorio [.filename]#bar#, para cambiar los permisos de [.filename]#foo# (que en realidad es [.filename]#bar#), haga algo como:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2816,14 +2816,14 @@ Para proceder:
. Anote el valor del puntero de instrucción. Note que la parte `0x8:` al inicio no es importante en este caso: es la parte `0xf0xxxxxx` la que nos interesa.
. Cuando el sistema reinicie, haga lo siguiente:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.que.causo.el.panico | grep f0xxxxxx
....
+
donde `f0xxxxxx` es el valor del puntero de instrucción. Lo más probable es que no consiga una coincidencia exacta dado que los símbolos en la tabla de símbolos del kernel son para puntos de entrada de las funciones y la dirección del puntero de instrucción estará en algún lugar adentro de una función, no al inicio. Si no consigue una coincidencia exacta, omita el último dígito del valor del puntero de instrucción e inténtelo nuevamente:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.que.causo.el.panico | grep f0xxxxx
....
@@ -2846,21 +2846,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
. Cambie el directorio a [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compile el kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Espere a que man:make[1] termine de compilar.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2884,7 +2884,7 @@ Los volcados de fallos de FreeBSD suelen ser del mismo tamaño que la RAM físic
Una vez que se haya recuperado el volcado de fallos, obtenga un seguimiento de pila de esta manera:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/es/books/handbook/advanced-networking/_index.adoc b/documentation/content/es/books/handbook/advanced-networking/_index.adoc
index db8743d7e2..e64aa73e01 100644
--- a/documentation/content/es/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/es/books/handbook/advanced-networking/_index.adoc
@@ -81,7 +81,7 @@ Para que una máquina sea capaz de encontrar otra máquina remota a través de l
Para ilustrar diferentes aspectos del sistema de encaminamiento veamos el siguiente ejemplo obtenido mediante `netstat`.
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -204,7 +204,7 @@ defaultrouter="10.20.30.1"
También se puede hacer directamente desde la línea de órdenes mediante man:route[8]:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -273,7 +273,7 @@ En este escenario `RouterA` es nuestra máquina FreeBSD que actúa como pasarela
Si observamos la tabla de rutas de `RouterA` veremos algo como lo siguiente:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -288,7 +288,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Con la tabla de rutas actual `RouterA` no es capaz de alcanzar la red interna 2. Esto es así porque no posee ninguna ruta para la red `192.168.2.0/24`. Una forma de mitigar esto es añadir de forma manual la ruta que falta. La siguiente orden añade la red interna 2 a la tabla de rutas de la máquina `RouterA` utilizando `192.168.1.2` como siguiente salto:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -308,7 +308,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
La variable de configuración `static_routes` es una lista de cadenas separadas por espacios. Cada cadena identifica un nombre para la ruta que se desea definir. En el ejemplo anterior sólamente se dispone de una cadena dentro de la variable `static_routes`. Esta cadena es _redinterna2_. A continuación se añade otra variable de configuración denominada `route_redinterna2` donde se escriben todos los parámetros de configuración que normalmente utilizaríamos normalmente utilizaríamos con man:route[8]. En el ejemplo que estamos comentando se utilizaría la siguiente orden:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -398,7 +398,7 @@ El uso como punto de acceso "wireless" (también denominado _hostap_) funciona m
Primero debemos asegurarnos de que el sistema reconoce la tarjeta "wireless":
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -417,7 +417,7 @@ No se preocupe si no entiende algo de la configuración anterior, lo importante
A continuación, para que podamos disponer de un "bridge" deberá cargar el módulo del kernel man:bridge[4] por el sencillo procedimiento de ejecutar la siguiente orden:
-[source,bash]
+[source,shell]
....
# kldload bridge
....
@@ -426,7 +426,7 @@ No debería aparecer mensaje de error alguno al ejecutar dicha orden. Si apareci
Una vez que tenemos el soporte de "bridging" cargado debemos indicar a FreeBSD qué interfaces se desean puentear. Para ello emplearemos man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge=1
# sysctl net.link.ether.bridge_cfg="wi0,xl0"
@@ -435,7 +435,7 @@ Una vez que tenemos el soporte de "bridging" cargado debemos indicar a FreeBSD q
En FreeBSD 5.2-RELEASE y posteriores se deben emplear las siguientes opciones en lugar de las anteriormente expuestas:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.enable=1
# sysctl net.link.ether.bridge.config="wi0,xl0"
@@ -444,7 +444,7 @@ En FreeBSD 5.2-RELEASE y posteriores se deben emplear las siguientes opciones en
Ahora es el momento de configurar la tarjeta de red inalámbrica. La siguiente orden convierte la tarjeta en un punto de acceso:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 ssid mi_red channel 11 media DS/11Mbps mediaopt hostap up stationname "PA FreeBSD"
@@ -460,7 +460,7 @@ También le recomemdamos leer la sección sobre cifrado que econtrará más adel
Una vez que el punto de acceso estáconfigurado resulta interesante poder obtener información acerca de los clientes que estén asociados. La persona encargada de la administración del punto de acceso puede ejecutar cuando estime oportuno lo siguiente:
-[source,bash]
+[source,shell]
....
# wicontrol -l
1 station:
@@ -492,7 +492,7 @@ En este ejemplo no se utiliza cifrado, lo cual resulta ser bastante peligroso. E
Asegúrese de que FreeBSD reconoce su tarjeta de red inalámbrica:
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -509,7 +509,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
A continuación debemos especificar los parámetros correctos para nuestra red:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid mi_red
....
@@ -520,14 +520,14 @@ Llegados a este punto deberíamos poder hacer ping a las máquinas de la red cab
Si se presentan problemas con la conexión inalámbrica se puede comprobar si la tarjeta " wireless" se encuentra correctamente asociada (conectada) con el punto de acceso:
-[source,bash]
+[source,shell]
....
# ifconfig wi0
....
ebería devolver algún tipo de información entre la que deberíamos observar la siguiente línea:
-[source,bash]
+[source,shell]
....
status: associated
....
@@ -546,7 +546,7 @@ WEP son las siglas de Wired Equivalency Protocol. WEP es un un intento de crear
No obstante es mejor que no utilizar nada; puede activar WEP en el sistema que hace de punto de acceso mediante:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet up ssid
mi_red wepmode on wepkey
@@ -556,7 +556,7 @@ No obstante es mejor que no utilizar nada; puede activar WEP en el sistema que h
y en un cliente inalámbrico mediante la siguiente orden:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid mi_red wepmode on wepkey 0x1234567890
....
@@ -612,7 +612,7 @@ La pila de Bluetooth en FreeBSD se implementa utilizando el entorno de Netgraph
Por defecto los controladores de los dispositivos Bluetooth se encuentran disponibles como módulos del kernel. Antes de enchufar el dispositivo Bluetooth se debe cargar el módulo correspondiente dentro del núcleo.
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -626,7 +626,7 @@ ng_ubt_load="YES"
Al conectar el dispositivo Bluetooth aparecerá en la consola (o en syslog) la siguiente información:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -636,7 +636,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
Se debe copiar [.filename]#/usr/shared/examples/netgraph/bluetooth/rc.bluetooth# a algún lugar más conveniente, por ejemplo [.filename]#/etc/rc.bluetooth#. Este script se usa para ejecutar y detener la pila Bluetooth del sistema. Se suele recomendar quitar la pila antes de desenchufar el dispositivo pero si no se hace no debería producirse ningún desastre. Cuando se arranca la pila aparece un mensaje similar a este:
-[source,bash]
+[source,shell]
....
# /etc/rc.bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -660,7 +660,7 @@ Se crea un nodo Netgraph de tipo _HCI_ para cada dispositivo Bluetooth. El nodo
Una de las tareas más importantes que se deben realizar es el descubrimiento automático de otros dispositivos Bluetooth que se encuentren dentro del radio de cobertura. Esta operación se denomina en inglés _inquiry_ (consulta). Esta operación o otras operaciones HCI relacionadas se realizan mediante la utilidad man:hccontrol[8]. El siguiente ejemplo muestra cómo descubrir dispositivos en pocos segundos. Tenga siempre presente que un dispositivo remoto sólo contesta a la consulta si se encuentra configurado en modo descubrimiento (_discoverable mode_).
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -676,7 +676,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` es la dirección identificativa única del dispositivo Bluetooth, similar a las direcciones MAC de las tarjetas Ethernet. Esta dirección se necesita para transmitir otro tipo de información a otros dispositivos. Se puede asignar un nombre más significativo para los humanos en la variable BD_ADDR. El fichero [.filename]#/etc/bluetooth/hosts# contiene información relativa a los dispositivos Bluetooth conocidos. El siguiente ejemplo muestra cómo obtener un nombre significativo para los humanos que fué asignado a un dispositivo remoto:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -687,7 +687,7 @@ Si se realiza una consulta (inquiry) sobre el dispositivo Bluetooth remoto, dich
El sistema Bluetooth proporciona una conexión punto a punto (con sólo dos unidades Bluetooth involucradas) o también una conexión punto multipunto. En el último caso, la conexión se comparte entre varios dispositivos Bluetooth. El siguiente ejemplo muestra como obtener una lista de las conexiones de banda base activas en el dispositivo local:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -696,7 +696,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Resulta útil disponer de un _manejador de la conexión_ cuando se necesita terminar la conexión de banda base. Es importante recalcar que normalmente no es necesario realizar esta terminación de forma manual. La pila Bluetooth puede concluír automáticamente las conexiones de banda base que se encuentren inactivas.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -715,7 +715,7 @@ Para cada dispositivo Bluetooth se cre un único nodo Netgraph de tipo _l2cap_.
man:l2ping[8] le será muy útil para hacer ping a otros dispositivos. Algunas implementaciones de Bluetooth no devuelven todos los datos que se envían, de tal forma que el valor _0 bytes_ que se observa a continuación es normal:
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -726,7 +726,7 @@ man:l2ping[8] le será muy útil para hacer ping a otros dispositivos. Algunas i
La herramienta man:l2control[8] se utiliza para realizar varias operaciones sobre los nodos L2CAP. Este ejemplo muestra cómo obtener la lista de conexiones lógicas (canales) y la lista de conexiones de banda base (física) que mantiene el dispositivo local:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -740,7 +740,7 @@ Remote BD_ADDR Handle Flags Pending State
Otra herramienta de diagnóstico interesante es man:btsockstat[1]. Realiza un trabajo similar a la orden man:netstat[1], pero en este caso para las estructuras de datos relacionadas con el sistema Bluetooth. A continuación se muestra la información relativa a la misma conexión lógica del ejemplo anterior.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -802,7 +802,7 @@ Normalmente, un cliente SDP realiza una búsqueda de servicios acotada por deter
El servidor Bluetooth SDP denominado man:sdpd[8] y el cliente de línea de órdenes man:sdpcontrol[8] se incluyen en la instalación estándar de FreeBSD. El siguiente ejemplo muestra cómo realizar una consulta de navegación una consulta de navegación SDP.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -830,14 +830,14 @@ Bluetooth Profile Descriptor List:
... y así sucesivamente. Resulta importante resaltar una vez más que cada servicio posee una lista de atributos (por ejemplo en el canal RFCOMM). Dependiendo de los servicios que se quieran utilizar puede resultar necesario anotar algunos de los atributos. Algunas implementaciones de Bluetooth no soportan navegación de servicios y pueden devolver una lista vacía. En este caso se puede intentar buscar algún servicio determinado. El ejemplo siguiente muestra cómo buscar el servicio OBEX Object Push (OPUSH):
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
En FreeBSD los servicios a clientes Bluetooth se suministran mediante el servidor man:sdpd[8].
-[source,bash]
+[source,shell]
....
# sdpd
....
@@ -846,7 +846,7 @@ La aplicación local servidora que quiere proporcionar servicio Bluetooth a los
Se puede obtener la lista de servicios registrados con el servidor SDP local lanzando una consulta de navegación SDP utilizando el canal de control local.
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -868,14 +868,14 @@ En FreeBSD ambos perfiles se implementan bajo las órdenes man:ppp[8] y man:rfco
En el siguiente ejemplo se va a utilizar man:rfcomm_pppd[8] para abrir una conexión RFCOMM con un dispositivo remoto con BD_ADDR 00:80:37:29:19:a4 sobre un canal RFCOMM basado en DUN (Dial-Up Networking). El número de canal RFCOMM se obtiene a partir del dispositivo remoto a través de SDP. Es posible especificar el canal RFCOMM a mano, en cuyo caso man:rfcomm_pppd[8] no realizará ninguna consulta SDP. Se puede utilizar la orden man:sdpcontrol[8] para descubrir el canal RFCOMM utilizado en el dispositivo remoto.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
Para proporcionar el servicio de Acceso a Redes a través de PPP (LAN) se debe ejecutar el servidor man:sdpd[8]. Se debe crear una nueva entrada en [.filename]#/etc/ppp/ppp.conf#. Le rogamos que consulte man:rfcomm_pppd[8] y observe los ejemplos que se facilitan. Por último se debe ejecutar el servidor PPP RFCOMM sobre un número de canal RFCOMM adecuado. El servidor PPP RFCOMM registrará automáticamente el servicio LAN de Bluetooth con el servidor SDP local. El ejemplo que se muestra a continuación describe cómo ejecutar el servidor PPP RFCOMM.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -888,7 +888,7 @@ El cliente y el servidor de OBEX se implementan como un paquete denominado obexa
El cliente OBEX se utiliza para introducir y para recuperar recuperar objetos del servidor OBEX. Un objeto puede por ejemplo ser una tarjeta de visita o una cita. El cliente OBEX puede obtener un número de canal RFCOMM del dispositivo remoto utilizando SDP. Esto se hace especificando el nombre del servicio en lugar del número de canal RFCOMM. Los nombres de servicios soportados son: IrMC, FTRN y OPUSH. Es posible especificar el canal RFCOMM como un número. A continuación se muestra un ejemplo de una sesión OBEX donde el objeto que posee la información del dispositivo se recupera del teléfono celular y un nuevo objeto (la tarjeta de visita) se introduce en el directorio de dicho teléfono.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get
@@ -905,7 +905,7 @@ Success, response: OK, Success (0x20)
Para proporcionar servicio de OBEX el servidor man:sdpd[8] debe estar en funcionamiento. Además se debe crear un directorio raíz donde todos los objetos van a ser almacenados. La ruta por defecto para el directorio raíz es [.filename]#/var/spool/obex#. Por último se debe ejecutar el servidor OBEX en un número de canal RFCOMM válido. El servidor OBEX registra automáticamente el servicio de Object Push con el dæmon SDP local. El ejemplo que se muestra a local. El ejemplo que se muestra a continuación continuación describe cómo ejecutar el servidor OBEX.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -916,7 +916,7 @@ El perfil de puerto serie (Serial Port o SP) permite que dispositivos Bluetooth
La aplicación man:rfcomm_sppd[1] implementa el perfil Puerto Serie. Usa una pseudo tty como abstracción de puerto serie virtual. El ejemplo de más abajo muestra cómo conectarse a un servicio de dispositivo remoto de Puerto Serie. Observe que no necesita especificarse el canal RFCOMM: man:rfcomm_sppd[1] puede obtenerlo del dispotivo remoto via SDP. Si necesita especificarlo por alguna razón hágalo en la propia línea de órdenes.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -924,7 +924,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Una vez conectado el pseudo tty se puede utilizar como un puerto serie.
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -935,7 +935,7 @@ Una vez conectado el pseudo tty se puede utilizar como un puerto serie.
Algunos dispositivos Bluetooh antiguos no soportan el cambio de cambio de roles. Por defecto, roles. Cuando FreeBSD acepta una nueva conexión por defecto intenta realizar un cambio de rol y convertirse en maestro. Dispositivos que no son capaces de realizar este cambio no pueden conectarse. Es interesante resaltar que el cambio de roles se realiza cuando se está estableciendo una nueva conexión de tal forma que no es posible preguntar al dispositivo si soporta intercambio de roles. Existe una opción HCI para desactivar el intercambio de roles en la parte local.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1168,7 +1168,7 @@ El ejemplo que se muestra a continuación es una muestra de una lista de exporta
Se debe reiniciar el dæmon mountd siempre que se modifique el contenido del archivo [.filename]#/etc/exports# para que los cambios surtan efecto. Esto se realiza enviando la señal HUP al proceso `mountd`:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
@@ -1177,7 +1177,7 @@ También se puede reiniciar FreeBSD para que se cargue la nueva configuración p
En el servidor de NFS:
-[source,bash]
+[source,shell]
....
# portmap
# nfsd -u -t -n 4
@@ -1186,14 +1186,14 @@ En el servidor de NFS:
En el cliente de NFS:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
En este punto todo debería estar preparado para poder anclar el sistema de ficheros remoto en la máquina cliente. En los siguientes ejemplos el nombre del servidor es `server` y el punto de montaje temporal utilizado por el cliente es `client`. Si se desea montar el sistema de ficheros de forma temporal o simplemente comprobar que la configuración funciona sin problemas se puede ejecutar una orden como la que se muestra a continuación con permisos de `root` en la máquina cliente:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -1231,7 +1231,7 @@ amd detecta cualquier intento de acceder a un fichero dentro del directorio [.fi
====
`showmount` muestra los puntos de montaje que posee una máquina remota. Por ejemplo para conocer los montajes de un máquina llamada `foobar`, se puede utilizar:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -1284,7 +1284,7 @@ fastws:/sfcompartido /projecto nfs rw,-r=1024 0 0
Orden de ejecución manual para `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sfcompartido /projecto
....
@@ -1298,7 +1298,7 @@ freebox:/sfcompartido /projecto nfs rw,-w=1024 0 0
Orden de ejecución manual para `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sfcompartido /projecto
....
@@ -1454,7 +1454,7 @@ Para nuestros propósitos se utilizará un disquete de arranque. Para utilizar o
Para crear un disco de arranque se debe insertar un disco en la unidad de disquetes de la máquina donde se ha instalado etherboot, cambiar al directorio [.filename]#src# dentro del árbol de directorios de etherboot y teclear:
-[source,bash]
+[source,shell]
....
# gmake bin32/tipo_de_dispositivo.fd0
@@ -1492,7 +1492,7 @@ Parece que al menos algunas versiones de PXE utilizan la versión TCP de TFTP. E
. Indicar a inetd que vuelva a leer su fichero de configuración:
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat
/var/run/inetd.pid`
@@ -1522,7 +1522,7 @@ nfs_server_enable="YES"
. Indicar a mountd que vuelva a leer su archivo de configuración. Si en un primer paso se ha configurado la activación automática del sistema de NFS en [.filename]#/etc/rc.conf# lo mejor es reiniciar para que los cambios surtan efecto.
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat
/var/run/mountd.pid`
@@ -1634,7 +1634,7 @@ El tamaño del fichero dedicado a intercambio se debe expresar en [.filename]#/e
. En el servidor de ficheros NFS donde va a residir el fichero de "swap" se debe(n) crear dicho(s) fichero(s)
+
-[source,bash]
+[source,shell]
....
# mkdir /volumenintercambiored/intercambiored
# cd /volumenintercambiored/intercambiored
@@ -1660,7 +1660,7 @@ A continuación indicar a mountd que vuelva a leer el fichero [.filename]#/etc/e
El núcleo no soporta la activación del intercambio a través de NFS en tiempo de arranque. De esta forma la "swap" se debe activar mediante los "scripts" montando un sistema de ficheros de lectura-escritura y creando y activando el fichero de intercambio. Para crear un fichero de intercambio de un determinado tamaño se puede ejecutar lo siguiente:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/ruta/al/fichero/de/intercambio bs=1k count=1 oseek=100000
....
@@ -1947,7 +1947,7 @@ Una vez hecho esto todo lo que tenemos que hacer es ejecutar `/etc/netstart` com
Las _asociaciones o mapeos de NIS_ no son más que ficheros de base de datos. Estos ficheros se generan a partir de los ficheros de configuración contenidos en el directorio [.filename]#etc/# excepto para el caso del fichero [.filename]#etc/master.passwd#. Esto es así por una buena razón ya que no suele ser buena idea propagar las contraseñas de `root` y de otras cuentas de administración a todos los servidores NIS del dominio. servidores NIS del dominio. Así, antes de inicializar los mapeos se debe ejecutar:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -1963,7 +1963,7 @@ Asegúrese de que [.filename]#/var/yp/master.passwd# no se puede leer ni por gru
Una vez hecho esto es hora de inicializar las asociaciones de NIS. FreeBSD incluye un "script" denominado `ypinit` para realizar esta tarea (consulte su página del manual para obtener más información). Recuerde que este "script" se encuentra disponible en la mayoría de los sistemas UNIX(R), pero no en todos. En sistemas Digital UNIX/Compaq Tru64 UNIX se denomina `ypsetup`. Debido a que se pretende generar asociaciones para un servidor NIS maestro vamos a ejecutar `ypinit` con la opción `-m`. A modo de ejemplo, suponiendo que todos los pasos comentados anteriormente se han realizado con éxito, ejecute:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -1992,7 +1992,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` debería haber creado el fichero [.filename]#/var/yp/Makefile# a partir de [.filename]#/var/yp/Makefile.dist#. Una vez creado este archivo presupone que se está usando un entorno NIS con un único servidor utilizando sólamente máquinas FreeBSD. Debido a que `test-domain` posee también un servidor NIS esclavo se debe editar el fichero [.filename]#var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi
/var/yp/Makefile
@@ -2011,7 +2011,7 @@ NOPUSH = "True"
La configuración de un servidor NIS esclavo resulta ser incluso más sencilla que la del maestro. Basta con entrar en el servidor esclavo y editar [.filename]#/etc/rc.conf# de foma semejante a como se realizó en el apartado anterior. La única diferencia consiste en que ahora debemos utilizar la opción `-s` cuando ejecutemos ejecutemos `ypinit`. A continuación del parámetro `-s` se debe especificar el nombre del servidor maestro de modo que la orden tendría que ser algo parecido a esto:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -2171,7 +2171,7 @@ En nuestro laboratorio de ejemplo existe una máquina denominada `basie` que act
Existe una forma de prohibir el acceso a determinados usuarios sobre una determinada máquina incluso aunque se encuentren dados de alta en la base de datos de NIS. Para realizar esto todo lo que debemos hacer es añadir `-nombredeusuario` al final del fichero [.filename]#/etc/master.passwd# en la máquina cliente donde _nombredeusuario_ es el nombre de usuario del usuario al que queremos prohibirle el acceso. Esto se debe realizar a poder ser mediante `vipw` ya que `vipw` realiza comprobaciones de seguridad sobre los cambios realizados y además se encarga de reconstruir la base de datos de contraseñas cuando se termina la edición. Por ejemplo, si quisiéramos prohibir el acceso al usuario `bill` a la máquina `basie` haríamos:
-[source,bash]
+[source,shell]
....
basie# vipw
[añadimos -bill al final y salimos]
@@ -2256,7 +2256,7 @@ La gestión de esta situación mediante netgroups ofrece varias ventajas. Cada u
El primer paso consiste en la inicialización de la asociación o mapeo del netgroup. La orden de FreeBSD man:ypinit[8] no crea este mapeo por defecto pero una vez creado será tenido en cuenta por la implementación de NIS. Para crear una asociación vacía simplemente escriba:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -2299,7 +2299,7 @@ Se puede repetir este proceso si se tienen que definir más de 225 usuarios dent
La activación y distribución de nuestro nuevo mapeo NIS resulta sencillo:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -2307,7 +2307,7 @@ ellington# make
Esto genera las tres asociaciones NIS [.filename]#netgroup#, [.filename]#netgroup.byhost# y [.filename]#netgroup.byuser#. Utilice man:ypcat[1] para comprobar si el nuevo mapeo NIS se encuentra disponible:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -2436,7 +2436,7 @@ Todavía quedan un par de cosas que tendremos que hacer de forma distinta a lo c
* Cada vez que deseemos añadir un usuario a nuestro laboratorio debemos añadirlo al servidor NIS maestro _únicamente_ y es tarea fundamental del administrador _acordarse de reconstruir los mapeos NIS_. Si nos olvidamos de esto el nuevo usuario será incapaz de acceder a ninguna máquina excepto al servidor NIS. Por ejemplo, si necesitáramos añadir el nuevo usuario `jsmith` al laboratorio tendríamos que ejecutar lo siguiente:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -2487,7 +2487,7 @@ Otros posibles valores para característica de `passwd_format` pueden ser `blf`
Se debe reconstruir la base de datos de acceso siempre que se modifique el fichero [.filename]#/etc/login.conf# mediante la ejecución de la siguiente orden como `root`:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -2650,7 +2650,7 @@ host mailhost {
Una vez que se ha acabado de configurar el fichero [.filename]#dhcpd.conf# se puede proceder con la ejecución del servidor mediante la siguiente orden:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd.sh start
....
@@ -2785,7 +2785,7 @@ named_enable="YES"
Para arrancar el dæmon de forma manual (una vez configurado)
-[source,bash]
+[source,shell]
....
# ndc start
....
@@ -2796,7 +2796,7 @@ Para arrancar el dæmon de forma manual (una vez configurado)
Asegúrese de hacer los siguiente
-[source,bash]
+[source,shell]
....
# cd /etc/namedb
# sh make-localhost
@@ -3143,7 +3143,7 @@ Debido a que named no va a poder acceder a nada que se encuentre fuera del direc
* Cree todos los directorios que named espera tener a su disposición:
+
-[source,bash]
+[source,shell]
....
# cd /etc/namedb
# mkdir -p bin dev etc var/tmp var/run master slave
@@ -3153,7 +3153,7 @@ Debido a que named no va a poder acceder a nada que se encuentre fuera del direc
* Reorganizar y crear los archivos de configuración de zona básicos:
+
-[source,bash]
+[source,shell]
....
# cp /etc/localtime etc <.>
# mv named.conf etc && ln -sf etc/named.conf
@@ -3178,7 +3178,7 @@ $TTL 6h
* Si está usando una versión de FreeBSD anterior a 4.9-RELEASE se debe construir una copia estáticamente enlazada de named-xfer y copiarla dentro del directorio del "sandbox":
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libisc
# make cleandir && make cleandir && make depend && make all
@@ -3192,7 +3192,7 @@ $TTL 6h
<.> Despueés de instalar la versión estática de `named-xfer` se deben realizar algunas tareas de limpieza para evitar dejar copias de bibliotecas o de programas en nuestros ficheros de fuentes:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libisc
# make cleandir
@@ -3207,7 +3207,7 @@ En algunas ocasiones este paso puede fallar. Si es su caso ejecute lo siguiente:
Si se está usando FreeBSD version 4.9-RELEASE o posterior el ejecutable de `named-xfer` del directorio [.filename]#/usr/libexec# ya se encuentra enlazado estáticamente y se puede utilizar man:cp[1] para copiarlo directamente en nuestro "sandbox".
* Cree el fichero [.filename]#dev/null# de tal forma que named pueda verlo y pueda escribir sobre él:
+
-[source,bash]
+[source,shell]
....
# cd /etc/namedb/dev && mknod null c 2 2
# chmod 666 null
@@ -3215,7 +3215,7 @@ Si se está usando FreeBSD version 4.9-RELEASE o posterior el ejecutable de `nam
* Enlace simbólicamente [.filename]#/var/run/ndc# con [.filename]#/etc/namedb/var/run/ndc#:
+
-[source,bash]
+[source,shell]
....
# ln -sf /etc/namedb/var/run/ndc /var/run/ndc
....
@@ -3394,7 +3394,7 @@ Para asegurarnos de que el servidor de NTP se ejecuta en tiempo de arranque se d
Para ejecutar el servidor sin reiniciar la máquina ejecute `ntpd` junto con todos aquellos parámetros que haya especificado en la variable de arranque `xntpd_flags` del fichero [.filename]#/etc/rc.conf#. Por ejemplo:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -3684,7 +3684,7 @@ Cuando se realiza una modificación en el fichero [.filename]#/etc/inetd.conf# s
[example]
====
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -3958,7 +3958,7 @@ BUSY
En primer lugar debemos tener en nuesras manos un cable " laplink". A continuación se debe comprobar que ambos sistemas poseen núcleos con soporte para el controlador man:lpt[4]:
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -3982,7 +3982,7 @@ hint.ppc.0.irq="7"
A continuación se debe comprobar que el fichero de configuración del núcleo posee una línea con `device plip` o también puede comprobar si se ha cargado el módulo del núcleo [.filename]#plip.ko#. Tanto en un caso como en el otro, cuando se ejecute man:ifconfig[8] debería aparecer el interfaz de red paralelo. En FreeBSD 4.X se muestra algo parecido a lo siguiente:
-[source,bash]
+[source,shell]
....
# ifconfig lp0
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -3990,7 +3990,7 @@ lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
y en FreeBSD 5.X:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -4013,14 +4013,14 @@ Dirección IP 10.0.0.1 10.0.0.2
Configure la interfaz de `host1` así:
-[source,bash]
+[source,shell]
....
# ifconfig lp0 10.0.0.1 10.0.0.2
....
Configure la interfaz de `host2` por medio de:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -4038,7 +4038,7 @@ Además se debe añadir ambas máquinas al fichero [.filename]#/etc/hosts#:
Para comprobar que efectivamente la conexión funciona se puede probar a hacer un ping desde cada máquina. Por ejemplo en la máquina `host1`:
-[source,bash]
+[source,shell]
....
# ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -4166,7 +4166,7 @@ Una tercera forma de escribir direciones IPv6 es utilizando la ya tradicional no
A estas alturas el lector debería ser capaz de comprender lo siguiente:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -4200,7 +4200,7 @@ En primer lugar se recomienda consultar el sitio web de http://www.6bone.net/[6b
Veamos un ejemplo típico de configuración de un de un túnel man:gif[4]:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0
@@ -4220,13 +4220,13 @@ Para que el lector no se quede pensando en el significado significado de la dire
A continuación se configura la ruta por defecto hacia nuestro enlace 6bone; observe que es muy semejante a lo que hay que hacer en IPv4:
-[source,bash]
+[source,shell]
....
# route add -inet6 default -interface gif0
# ping6 -n MI_UPLINK
....
-[source,bash]
+[source,shell]
....
# traceroute6 www.jp.FreeBSD.org
(3ffe:505:2008:1:2a0:24ff:fe57:e561) from 3ffe:8060:100::40:2, 30 hops max, 12 byte packets
@@ -4312,7 +4312,7 @@ Para construir una red completamente mallada necesitamos una conexión ATM entre
Los valores VPI y VCI en cada extremo de la conexión pueden ser diferentes pero por simplicidad suponemos que son iguales. A continuación necesitamos configurar las interfaces ATM en cada máquina:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -4322,7 +4322,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
Suponiendo que la interfaz ATM es [.filename]#hatm0# en todas las máquinas. Ahora necesitamos configurar los PVCs en las máquinas (suponemos que ya se han configurado de forma correcta en el "switch" ATM, para lo cual puede ser necesario consultar el manual del "switch").
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -4343,7 +4343,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Por supuesto que se pueden utilizar otras especificaciones de tráfico siempre y cuando las tarjetas de red las soporten. En este caso la especificación del tipo de tráfico se completa con los parámetros del tráfico. Puede acceder a la ayuda de man:atmconfig[8] así:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -4364,7 +4364,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
El estado de todas las rutas CLIP se puede obtener en todo momento con:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
diff --git a/documentation/content/es/books/handbook/basics/_index.adoc b/documentation/content/es/books/handbook/basics/_index.adoc
index 68798f67ba..d26da3677e 100644
--- a/documentation/content/es/books/handbook/basics/_index.adoc
+++ b/documentation/content/es/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ FreeBSD puede utilizarse de muchas maneras. Una de ellas es tecleando órdenes e
Si no ha configurado FreeBSD para ejecutar automáticamente un entorno gráfico en el arranque, el sistema le presentará un «prompt» de entrada después del arranque, inmediatamente después de que los «scripts» de inicio terminen de ejecutarse. Verá algo similar a esto:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ Cada sistema multiusuario necesita algún modo de distinguir a un «usuario» de
Justo después de que FreeBSD arranque y termine de ejecutar sus «scripts» de inicio , le presentará un «prompt» y solicitará un nombre válido de usuario:
-[source,bash]
+[source,shell]
....
login:
....
En este ejemplo vamos a asumir que su nombre de usuario es `john`. Teclée `john` en el «prompt» y pulse kbd:[Intro]. Debería presentársele un «prompt» donde introducir una «contraseña»:
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -203,14 +203,14 @@ options SC_PIXEL_MODE
Una vez recompilado el kernel con esas dos opciones en él determine qué modos de video admite su hardware; para ello use man:vidcontrol[1]. Con lo siguiente le mostrará una lista de modos de video soportados:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
La salida de esta orden es una lista de los modos de que admite su tarjeta. Para elegir uno de ellos tendrá que ejecutar man:vidcontrol[1] en una consola como `root`:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -271,7 +271,7 @@ Debido a que el sistema es capaz de soportar múltiples usuarios, todo lo que el
Puede utilizar el parámetro de línea de órdenes `-l` de man:ls[1] para ver un listado largo que incluya una columna con información acerca de los permisos de fichero para el propietario, grupo y los demás. Por ejemplo, un `ls -l` en un directorio puede mostrar algo como esto:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -283,7 +283,7 @@ total 530
Aquí está como se divide la primera columna de `ls -l`:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -360,14 +360,14 @@ Los permisos simbólicos, también conocidos como expresiones simbólicas, utili
Estos valores se aplican con man:chmod[1] de la misma manera que los anteriores, pero con letras. Por ejemplo, podría usar la siguiente orden para bloquear a otros usuarios el acceso a _FICHERO_:
-[source,bash]
+[source,shell]
....
% chmod go= FICHERO
....
Puede usarse una lista separada por comas cuando se quiera aplicar más de un conjunto de cambios a un fichero. Por ejemplo la siguiente orden eliminará los permisos de escritura de grupo y «mundo» a _FICHERO_, y añade permisos de ejecución para todos:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -380,21 +380,21 @@ Las banderas de fichero añaden un nivel adicional de control sobre los ficheros
Las banderas de fichero se modifican mediante man:chflags[1], gracias a una interfaz muy sencilla. Por ejemplo, para habilitar la bandera imborrable de sistema en [.filename]#fichero1#, escriba lo siguiente:
-[source,bash]
+[source,shell]
....
# chflags sunlink fichero1
....
Y para dehabilitar la bandera imborrable de sistema, simplemente escriba la orden previa con «no» antes de `sunlink`. Observe:
-[source,bash]
+[source,shell]
....
# chflags nosunlink fichero1
....
Para ver las banderas de este fichero, utilice man:ls[1] con las opciones `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo fichero1
....
@@ -423,7 +423,7 @@ La opción `nosuid` de man:mount[8] hace que estos binarios den errores silencio
El permiso setuid puede asignarse colocando un número cuatro (4) antes de los permisos. Se ve mejor con un ejemplo:
-[source,bash]
+[source,shell]
....
# chmod 4755 ejemplosuid.sh
....
@@ -441,7 +441,7 @@ Si quiere ver un ejemplo con sus propios ojos abra dos terminales. En una arranq
En la terminal A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -449,12 +449,12 @@ Old Password:
En la terminal B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -466,14 +466,14 @@ El permiso `setgid` actúa del mismo modo que el `setuid`, pero afecta a los per
Si quiere utilizar el permiso `setgid` debe situar un núnmero dos (2) al principio de los permisos que vaya a asignar mediante `chmod`.
-[source,bash]
+[source,shell]
....
# chmod 2755 ejemplosuid.sh
....
La nueva configuración tiene un aspecto muy similar a la que tenía antes, pero observe que la `s` de antes está ahora en el campo de los permisos de grupo:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 ejemplosuid.sh
....
@@ -487,19 +487,19 @@ Los dos permisos que acabamos de mostrar los bits de permisos (`setuid` y `setgi
El `sticky bit`( que podríamos traducir como «bit pegajoso») aplicado a un directorio hace que solamente el propietario de un fichero pueda borrarlo. Esto evita el borrado de ficheros ajenos en directorios públicos como [.filename]#/tmp#. Si quiere usarlo coloque un uno (1) antes de los permisos. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Para ver el `;sticky bit` en acción usamos `ls`:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -832,7 +832,7 @@ man:mount[8] es al fin y al cabo quien monta los sistemas de ficheros.
En su forma más básica se usa lo siguiente:
-[source,bash]
+[source,shell]
....
# mount dispositivo punto-de-montaje
....
@@ -897,7 +897,7 @@ Hay dos órdenes particularmente útiles para ver los procesos en el sistema, ma
Por omisión `ps` solo le muestra las órdenes que están ejecutando _y_ que sean propiedad de su usuario. Por ejemplo:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -925,7 +925,7 @@ man:ps[1] admite muchas opciones sobre la información que se desea ver. Uno de
La salida de man:top[1] es similar. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -982,7 +982,7 @@ Este ejemplo muestra como enviar una señal a man:inetd[8]. El fichero de config
. Identifique el ID de proceso del proceso al que quiere enviarle la señal mediante man:ps[1] y man:grep[1]. man:grep[1] se usa para buscar cadenas de texto de su elección en la salida estándar. Puede ejecutarse como un usuario normal, mientras que man:inetd[8] se ejecuta como `root`, así que debe pasarle los parámetros `ax` a man:ps[1].
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -992,7 +992,7 @@ Vemos que el PID de man:inetd[8] es 198. En algunos casos `grep inetd` también
+
. Utilice man:kill[1] para enviar la señal. Debido a que man:inetd[8] está siendo ejecutado po `root` tendrá que usar primero man:su[1] para volverse `root`.
+
-[source,bash]
+[source,shell]
....
% su
@@ -1072,14 +1072,14 @@ Otra función de la shell son las variables de entorno. Las variables de entorno
Establecer una variable de entorno difiere ligeramente de shell a shell. Por ejemplo, en las shells al estilo C como `tcsh` y `csh`, se usa `setenv` para establecer las variables de entorno. Bajo shells Bourne como `sh` y `bash`, se usa `export` para establecer las variables de entorno actuales. Por ejemplo, para establecer o modificar la variable de entorno `EDITOR` (bajo `csh` o `tcsh`) la siguiente orden establece `EDITOR` como [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Bajo shells Bourne:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1097,7 +1097,7 @@ La manera más fácil de cambiar de shell es mediante `chsh`. `chsh` le colocar
También se le puede suministrar a `chsh` la opción `-s`; ésto establecerá la shell sin necesidad de entrar en el editor de texto. Si por ejemplo quiere que `bash` sea su shell por omisión puede configurarlo del siguiente modo:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1110,7 +1110,7 @@ La shell que se desee usar _debe_ estar incluida en [.filename]#/etc/shells#. Si
Por ejemplo, si instaló manualmente `bash` y lo ubicó en [.filename]#/usr/local/bin# debería hacer lo siguiente:
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash /etc/shells
....
@@ -1185,14 +1185,14 @@ ELF es más expresivo que [.filename]#a.out# y permite un sistema base más exte
La documentación más exhaustiva de FreeBSD está en las páginas de manual. Casi todos los programas del sistema vienen con un breve manual de referencia explicando el funcionamiento básico y sus diferentes argumentos. Estos manuales pueden revisarse mediante `man`. El uso de `man` es simple:
-[source,bash]
+[source,shell]
....
% man orden
....
`orden` es el nombre de la orden sobre la que que desea saber más. Por ejemplo, para más información sobre `ls` escriba:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1211,7 +1211,7 @@ El manual en línea está dividido en secciones numeradas:
En algunos casos, el mismo tema puede aparecer en más de una sección del manual en línea. Por ejemplo, existe una orden de usuario `chmod` y una llamada del sistema `chmod()`. En este caso se le puede decir a `man` cuál desea consultar especificando la sección:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1220,7 +1220,7 @@ Esto desplegará la página de manual de la orden de usuario `chmod`. Las refere
Esto está muy bien si se conoce el nombre del programa y simplemente se quiere saber como usarlo. Pero ?y si no puede recordar el nombre de la orden? Se puede usar man para que realice una búsqueda mediante palabras clave en las descripciones de programas utilizando el argumento `-k`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1229,7 +1229,7 @@ Dicha orden mostrará una lista de órdenes que contengan la palabra clave «mai
Así que, ¿está viendo todos esos programas tan atractivos en [.filename]#/usr/bin# pero no tiene ni la menor idea de lo que la mayoría de ellos hace? Haga lo siguiente:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1237,7 +1237,7 @@ Así que, ¿está viendo todos esos programas tan atractivos en [.filename]#/usr
o
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1252,7 +1252,7 @@ FreeBSD incluye muchas aplicaciones y utilidades producidas por la FSF (Free Sof
Si quiere utilizar la orden man:info[1] teclée:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/es/books/handbook/boot/_index.adoc b/documentation/content/es/books/handbook/boot/_index.adoc
index a936478255..16d1b8fd93 100644
--- a/documentation/content/es/books/handbook/boot/_index.adoc
+++ b/documentation/content/es/books/handbook/boot/_index.adoc
@@ -95,7 +95,7 @@ El fichero [.filename]#boot0# es muy simple, dado que el programa en el sólo p
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -110,7 +110,7 @@ Default: F2
Es sabido que otros sistemas, en particular Windows 95, sobreescriben el RMA con el suyo. Si esto le sucede, o bien desea reemplazar su RMA actual con el RMA de FreeBSD, entonces puede utilizar las siguientes órdenes.
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 dispositivo
....
@@ -152,7 +152,7 @@ En virtud de que el <<boot-loader,cargador>> (loader) es mucho más sofisticado,
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/kernel
@@ -163,7 +163,7 @@ boot:
Si alguna vez requiere reemplazar los ficheros [.filename]#boot1# y [.filename]#boot2# instalados, utilice man:disklabel[8].
-[source,bash]
+[source,shell]
....
# disklabel -B partición
....
@@ -243,14 +243,14 @@ He aqui unos ejemplos prácticos sobre el uso correcto del cargador.
* Para arrancar simplemente su kernel usual, pero en modo mono-usuario, deberá hacer lo siguiente:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Para descargar su kernel usual y sus módulos correspondientes, y posteriormente cargar su kernel anterior (o cualquier otro):
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -262,7 +262,7 @@ Puede utilizar [.filename]#kernel.GENERIC# para referirse al kernel generico act
====
Utilice lo siguiente para cargar sus módulos actuales con otro kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -273,7 +273,7 @@ boot-conf
* Para cargar un escrito de configuración (script que de forma automática hará todo lo que normalmente hace usted de forma manual al momento de ejecutarse el configurador de arranque):
+
-[source,bash]
+[source,shell]
....
load -t escrito_de_configuración /boot/kernel.conf
....
diff --git a/documentation/content/es/books/handbook/desktop/_index.adoc b/documentation/content/es/books/handbook/desktop/_index.adoc
index a5d66aeb7e..686727d508 100644
--- a/documentation/content/es/books/handbook/desktop/_index.adoc
+++ b/documentation/content/es/books/handbook/desktop/_index.adoc
@@ -116,14 +116,14 @@ En máquinas lentas, con una CPU de velocidad inferior a 233MHz o con menos de 6
Si no puede o no quiere compilar Mozilla por algún motivo, el equipo de FreeBSD GNOME ya lo ha hecho por usted. Instale el package desde la red del siguiente modo:
-[source,bash]
+[source,shell]
....
# pkg_add -r mozilla
....
Si no hay package disponible y tiene suficiente tiempo y espacio en el disco puede obtener el código de Mozilla, compilarlo e instalarlo en su sistema. Esto se hace con:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/mozilla
# make install clean
@@ -133,14 +133,14 @@ El port de Mozilla se asegura de que se inicialice adecuadamente ejecutando la c
Una vez efectuada la instalación de Mozilla no es necesario ser `root` por más tiempo. Puede arrancar Mozilla como navegador escribiendo:
-[source,bash]
+[source,shell]
....
% mozilla
....
Puede arrancarlo directamente como lector de correo y noticias del siguiente modo:
-[source,bash]
+[source,shell]
....
% mozilla -mail
....
@@ -151,14 +151,14 @@ Firefox es un navegador de nueva generación basado en el código fuente de Mozi
Puede instalarlo como package del siguiente modo:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Si prefiere compilar el código fuente e instalarlo desde los ports puede hacer esto otro:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -178,7 +178,7 @@ Para añadir soporte Java(TM) a Firefox o Mozilla tiene que instalar el port the
Arranque su navegador, introduzca `about:plugins` en la barra de navegación y pulse kbd:[Intro]. Verá una página con una lista de los «plugins» que tenga instalados; el «plugin» Java(TM) debería ser uno de los que aparezcan. Si no es así ejecute (como `root`) lo siguiente
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/local/lib/browser_plugins/
@@ -192,14 +192,14 @@ Opera es un navegador muy rápido, completo y que cumple con los estándares. Ha
Para navegar por la web con la versión para FreeBSD de Opera tendrá que instalar el package:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Algunos sitios FTP no tienen todos los paquetes, pero puede instalarlo desde la Colección de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -259,14 +259,14 @@ Antes de instalar el último KOffice asegúrese de que tiene una versión actual
Para instalar KOffice como un paquete ejecute la siguiente orden:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Si el paquete no está disponible puede usar la colección de ports. Por ejemplo, para instalar KOffice para KDE3 haga lo siguiente:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -280,14 +280,14 @@ AbiWord puede importar o exportar muchos formatos de fichero, incluyendo algunos
AbiWord está disponible como package. Si quiere instalarlo haga lo siguiente:
-[source,bash]
+[source,shell]
....
# pkg_add -r AbiWord2
....
Si el package no está disponible por el motivo que fuere puede instalarlo desde la colección de Ports. La colección de ports debería estar más actualizada:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/AbiWord2
# make install clean
@@ -299,14 +299,14 @@ GIMP es un programa de manipulación de imágenes muy sofisticado que le permiti
Instale el package mediante la siguiente orden:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Si su servidor FTP no tiene este package puede usar la colección de ports. El directorio http://www.FreeBSD.org/ports/[graphics] de la colección de ports también contiene The Gimp Manual. Si quiere instalarlo haga lo siguiente:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -327,7 +327,7 @@ El procesador de textos de OpenOffice.org usa un fichero XML nativo para aumenta
Para instalar OpenOffice.org ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice
....
@@ -339,7 +339,7 @@ Si usa una versión -RELEASE de FreeBSD todo lo antedicho funcionará. Si usa cu
Una vez instalado el package escriba la siguiente orden para ejecutar OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -351,7 +351,7 @@ En el primer arranque se le harán diversas preguntas se creará un directorio [
Si no hay packages de OpenOffice.org disponibles siempre tiene la opción de compilar el port. Tenga muy en cuenta que necesitará gran cantidad de espacio en disco y que este port necesita una cantidad de tiempo monstruosa para efectuar la compilación.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-2
# make install clean
@@ -361,7 +361,7 @@ Si no hay packages de OpenOffice.org disponibles siempre tiene la opción de com
====
Si quiere compilar una de las muchas versiones que existen en idiomas distintos del inglés sustituya la orden anterior por la que se muestra a continuación:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=su_idioma install clean
....
@@ -371,7 +371,7 @@ Sustituya _su_idioma_ por el código ISO del idioma que quiera. Tiene una lista
Hecho esto puede ejecutar OpenOffice.org con la orden:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -418,7 +418,7 @@ Muchos documentos se distribuyen en formato PDF, siglas de «Portable Document F
Para instalar Acrobat Reader(R) 7 desde la Colección de Ports ejecute:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread7
# make install clean
@@ -432,14 +432,14 @@ gv es un visor de PostScript(R) y PDF. Tiene su origen en ghostview pero tiene u
Para instalar gv como package ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Si no puede obtener el package puede usar la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -451,14 +451,14 @@ Si quiere un visor de PDF pequeño, Xpdf es un visor ligero y eficiente. Requier
Para instalar el package de Xpdf use la siguiente orden:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Si el paquete no está disponible o prefiere usar la colección de ports ejecute:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -472,14 +472,14 @@ GQview es un visor de imágenes. Puede ver un fichero con un click, lanzar un ed
Si quiere instalar el paquete de GQview ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Si el paquete no está disponible o prefiere usar la colección de ports ejecute:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -529,14 +529,14 @@ GnuCash dispone de un registro elegante, un sistema jerárquico de cuentas, much
Para instalar GnuCash en su sistema ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Si el paquete no está disponible puede usar la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -548,14 +548,14 @@ Gnumeric es una hoja de cálculo que forma parte del entorno de escritorio GNOME
Para instalar Gnumeric como package ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Si el package no está disponible puede usar la colección de ports del siguiente modo:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -567,14 +567,14 @@ Abacus es una hoja de cálculo pequeña y fácil de usar. Tiene muchas funciones
Para instalar Abacus como package ejecute:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Si no hay package al alcance puede usar la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
diff --git a/documentation/content/es/books/handbook/disks/_index.adoc b/documentation/content/es/books/handbook/disks/_index.adoc
index 4f1d32857b..7e88b73f26 100644
--- a/documentation/content/es/books/handbook/disks/_index.adoc
+++ b/documentation/content/es/books/handbook/disks/_index.adoc
@@ -152,7 +152,7 @@ El último paso es editar [.filename]#/etc/fstab# y añadir una entrada para su
Esta configuración le permitirá a su disco convivir sin sobresaltos con otro sistema operativo que pueda estar instalado en su sistema y no confundirá a las utilidades `fdisk` de esos otros sistemas operativos. Se recomienda utilizar este método para instalar discos nuevos. _Utilice el modo dedicado sólamente si tiene un buen motivo para hacerlo_.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 #Initialice el nuevo disco.
@@ -170,7 +170,7 @@ Si tiene un disco IDE, sustituya [.filename]#ad# por [.filename]#da#. En sistema
Si no va a compartir el nuevo disco con otro sistema operativo puede utilizar el modo `dedicado`. Recuerde que este modo puede confundir a los sistemas operativos de Microsoft, aunque no podrán dañar por ello el disco o su contenido. Tenga en cuenta que FreeBSD (de IBM) se "apropiará" de cualquier partición que encuentre y no entienda.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# disklabel -Brw da1 auto
@@ -183,7 +183,7 @@ Si no va a compartir el nuevo disco con otro sistema operativo puede utilizar el
Una forma alternativa de hacerlo sería:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# disklabel /dev/da1 | disklabel -BrR da1 /dev/stdin
@@ -407,7 +407,7 @@ ar0: WARNING - mirror lost
Consulte man:atacontrol[8] para más información:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -435,7 +435,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Primero debe desconectar el disco del array para que pueda retirarlo con seguridad:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach 3
....
@@ -443,7 +443,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Reemplace el disco.
. Conecte el disco de repuesto:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach 3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -452,14 +452,14 @@ Slave: no device present
. Reconstruya el array:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
. El comando de reconstrucción no responderá hasta que termine la tarea. Puede abrir otra terminal (mediante kbd:[Alt+Fn]) y revisar el progreso ejecutando lo siguiente:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[texto eliminado]
@@ -526,7 +526,7 @@ En FreeBSD 4.X, El dæmon USB (man:usbd[8]) debe ejecutarse para poder ver ciert
La configuración está lista para probarse: conecte su dispositivo USB; en el búfer de mensajes del sistema (man:dmesg[8]), la unidad debe aparecer como algo similar a esto:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -540,7 +540,7 @@ Obviamente la marca, el nodo de dispositivo ([.filename]#da0#) y otros detalles
Ya que el dispositivo USB aparece como uno SCSI, puede usar `camcontrol` para ver una lista de dispositivos USB conectados al sistema:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -550,7 +550,7 @@ Si la unidad tiene un sistema de ficheros puede montarla. La <<disks-adding>> co
Si desconecta el dispositivo (el disco debe desmontarse previamente), debería ver en el búfer de mensajes del sistema algo parecido a esto:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -592,7 +592,7 @@ Si quiere usar un interfaz gráfico con su software de grabación de CD quizás
El programa man:mkisofs[8] (que forma parte del port package:sysutils/cdrtools[]) genera un sistema de ficheros ISO 9660 que es una imagen de un árbol de directorios en el espacio de nombres del sistema de ficheros UNIX(R). Esta es la forma más simple de usarlo:
-[source,bash]
+[source,shell]
....
# mkisofs -o ficherodeimagen.iso /ruta/del/árbol
....
@@ -605,14 +605,14 @@ Puede utilizar `-U` para deshabilitar todas las restricciones de nombres de fich
La última opción de uso general es `-b`. Se usa para configurar la ubicación de la imagen de arranque que se usará al crear un CD arrancable "El Torito". Esta opción usa como argumento la ruta a la imagen de arranque desde la raíz del árbol de directorios que se va a escribir en el CD. Por defecto man:mkisofs[8] crea una imagen ISO en un modo llamado "de emulación de disquete (floppy)", y por lo tanto espera que la imagen de arranque sea exactamente de 1.200, 1.440 o 2880 KB de tamaño. Algunos cargadores de arranque, como el que se usa en los discos de la distribución FreeBSD, no utilizan modo de emulación: se usa la opción `-no-emul-boot`. Por tanto, si [.filename]#/tmp/miarranque# tiene un sistema FreeBSD arrancable con la imagen de arranque en [.filename]#/tmp/miarranque/boot/cdboot# podría crear la imagen en un sistema de ficheros ISO 9660 en [.filename]#/tmp/arrancable.iso# de la siguiente manera:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/arrancable.iso /tmp/miarranque
....
Hecho esto, si tiene [.filename]#vn# (FreeBSD 4.X), o [.filename]#md# (FreeBSD 5.X) configurado en su kernel, puede montar el sistema de ficheros del siguiente modo:
-[source,bash]
+[source,shell]
....
# vnconfig -e vn0c /tmp/arrancable.iso
# mount -t cd9660 /dev/vn0c /mnt
@@ -620,7 +620,7 @@ Hecho esto, si tiene [.filename]#vn# (FreeBSD 4.X), o [.filename]#md# (FreeBSD 5
En FreeBSD 4.X y FreeBSD 5.X proceda del siguiente modo:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/arrancable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -635,7 +635,7 @@ Existen muchas otras opciones que puede usar para depurar el comportamiento de m
Si tiene una grabadora ATAPI puede usar `burncd` para grabar una imagen ISO en un CD. `burncd` forma parte del sistema base, y está en [.filename]#/usr/sbin/burncd#. Su uso es muy sencillo, ya que tiene pocas opciones:
-[source,bash]
+[source,shell]
....
# burncd -f unidaddecd data ficheroimagen.iso fixate
....
@@ -649,14 +649,14 @@ Si no dispone de una grabadora ATAPI de CD, tendrá que usar `cdrecord` para gra
Aunque `cdrecord` tiene muchas opciones, el uso básico es incluso más simple que el de `burncd`. Así se graba una imagen ISO 9660:
-[source,bash]
+[source,shell]
....
# cdrecord dev=dispositivo ficheroimagen.iso
....
La parte complicada de utilizar `cdrecord` es encontrar qué `dev` usar. Utilice la bandera `-scanbus` para dar con la configuración apropiada. La salida será parecida a la siguiente:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord 1.9 (i386-unknown-freebsd4.2) Copyright (C) 1995-2000 Jörg Schilling
@@ -694,14 +694,14 @@ Puede duplicar un CD de audio extrayendo los datos de audio del CD a ficheros y
. Use `cdda2wav` para extraer el audio.
+
-[source,bash]
+[source,shell]
....
% cdda2wav -v255 -D2,0 -B -Owav
....
. Use `cdrecord` para escribir los ficheros [.filename]#.wav#.
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -717,7 +717,7 @@ Asegúrese de que _2,0_ este configurado apropiadamente, como se describe en la
+
Asegúrese de que existen los ficheros apropiados en [.filename]#/dev#.
+
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV acd0t99
@@ -730,7 +730,7 @@ En FreeBSD 5.0 man:devfs[5] creará y gestionará automáticamente las entradas
. Extraer cada pista con man:dd[1]. También deberá declarar un tamaño específico de bloque al extraer los ficheros.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=pista1.cdr bs=2352
# dd if=/dev/acd0t02 of=pista2.cdr bs=2352
@@ -739,7 +739,7 @@ En FreeBSD 5.0 man:devfs[5] creará y gestionará automáticamente las entradas
. Grabar los ficheros extraídos a disco con `burncd`. Debe declarar que son ficheros de audio y que `burncd` debe cerrar ("fixate") el disco al terminar la grabación.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio pista1.cdr pista2.cdr ... fixate
....
@@ -750,7 +750,7 @@ En FreeBSD 5.0 man:devfs[5] creará y gestionará automáticamente las entradas
Puede copiar un CD de datos a un fichero de imagen que será funcionalmente equivalente al fichero de imagen creado con man:mkisofs[8], y puede usarlo para duplicar cualquier CD de datos. El ejemplo dado aquí asume que su dispositivo CDROM es [.filename]#acd0#. Sustitúyalo por el dispositivo CDROM correcto para su configuración. Bajo FreeBSD 4.X, se debe añadir una `c` al final del nombre del dispositivo para indicar la partición entera o, en el caso de los CDROM, el disco entero.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=fichero.iso bs=2048
....
@@ -762,21 +762,21 @@ Hecha la imagen puede garbarla en un CD como se describió anteriormente.
Ahora que ha creado un CDROM de datos estándar tal vez quiera montarlo y leer los datos que contiene. Por defecto man:mount[8] asume que los sistemas de ficheros son de tipo `ufs`. Si trata de hacer algo como
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
recibirá un error como este: `Incorrect super block` y no se montará. Un CDROM no es un sistema de ficheros `UFS` así que los intentos de montarlo como tal fallarán. Tendrá que decirle a man:mount[8] que el sistema de ficheros es de tipo `ISO9660` y funcionará. Puede hacerlo mediante la opción `-t cd9660`. Por ejemplo, si quiere montar el dispositivo CDROM [.filename]#/dev/cd0# en [.filename]#/mnt# ejecute:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Tenga en cuenta que el nombre de su dispositivo ([.filename]#/dev/cd0# en este ejemplo) puede ser diferente, dependiendo de la interfaz que su CDROM utilice. Además la opción `-t cd9660` sólo ejecuta man:mount_cd9660[8]. El ejemplo de arriba puede resumirse del siguiente modo:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -799,14 +799,14 @@ Esto le indica a su bus SCSI que haga una pausa de 15 segundos durante el arranq
Puede guardar un fichero directamente a CD sin crear un sistema de ficheros ISO 9660. Algunas personas hacen esto al crear respaldos. Es un proceso más rápido que grabar un CD estándar:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data fichero.tar.gz fixate
....
Para recuperar los datos guardardados de este modo en un CD, debe leer los datos desde el nodo de dispositivo "crudo":
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -839,7 +839,7 @@ device pass
Recompile, instale su nuevo kernel y reinicie su máquina. Durante el proceso de arranque su grabadora debe ser detectada; veamos un ejemplo:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -850,14 +850,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
Puede acceder a la unidad a través del del nombre de dispositivo [.filename]#/dev/cd0#; por ejemplo, para montar un CDROM en [.filename]#/mnt#, teclée lo siguiente:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Como `root`, puede ejecutar el siguiente comando para obtener las direcciones SCSI del dispositivo:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -915,7 +915,7 @@ man:growisofs[1] es un "frontend" de <<mkisofs,mkisofs>>, invocará a man:mkisof
La grabación en DVD+R o DVD-R de los datos del directorio [.filename]#/ruta/a/los/datos#, se hace del siguiente modo:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /ruta/a/los/datos
....
@@ -926,7 +926,7 @@ La opción `-Z` se usa la sesión inicial de grabación en todos los casos, sesi
También es posible grabar una imagen pre-masterizada, por ejemplo para guardar la imagen _ficheroimagen.iso_:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=ficheroimagen.iso
....
@@ -939,7 +939,7 @@ Un DVD de vídeo es una estructura de ficheros específica basada en las especif
Si ya tiene una imagen de un sistema de ficheros de DVD de vídeo grábelo de la misma manera que cualquier otra imagen; consulte la sección previa para ver un ejemplo. Si ha creado el DVD y el resultado está en, por ejemplo, el directorio [.filename]#/ruta/al/vídeo#, use el siguiente comando para grabar el DVD de vídeo:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /ruta/al/vídeo
....
@@ -950,7 +950,7 @@ La opción `-dvd-video` de man:mkisofs[8] hará posible la creación de una estr
A diferencia de un CD-RW, un DVD+RW virgen necesita ser formateado antes de usarse por primera vez. El programa man:growisofs[1] se encargará de ello automáticamente cuando sea necesario, lo cual es el método _recomendado_. De todas formas puede usted usar el comando `dvd+rw-format` para formatear el DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -959,7 +959,7 @@ Necesita ejecutar esta operación solamente una vez, recuerde que sólo los DVD+
Si desea guardar nuevos datos (grabar un sistema de ficheros totalmente nuevo, no añadir más datos) en un DVD+RW no necesita borrarlo, sólo tiene que escribir sobre la grabación anterior (realizando una nueva sesión inicial):
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /ruta/alos/datosnuevos
....
@@ -968,7 +968,7 @@ El formato DVD+RW ofrece la posibilidad de añadir datos fácilmente a una graba
Si, por ejemplo, añadir datos al DVD+RW del ejemplo anterior tenemos que usar lo siguiente:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /ruta/alos/datosnuevos
....
@@ -982,7 +982,7 @@ Puede usar la opción `-dvd-compat` si desea mejor la compatibilidad de medios c
Si por alguna razón desea borrar el contenido del medio, haga lo siguiente:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -995,7 +995,7 @@ Un DVD-RW virgen puede utilizarse directamente sin necesidad de formateo, sin em
Para borrar un DVD-RW en modo secuencial, ejecute:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1004,7 +1004,7 @@ Para borrar un DVD-RW en modo secuencial, ejecute:
====
Un borrado total (`-blank=full`) tardará aproximadamente una hora en un medio 1x. Un borrado rápido puede realizarse con la opción `-blank` si el DVD-RW fué grabado en modo Disk-At-Once (DAO). Para grabar el DVD-RW en modo DAO use el comando:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=ficheroimagen.iso
....
@@ -1016,7 +1016,7 @@ Debería usarse el modo de reescritura restringida en los DVD-RW, pues este form
Para escribir datos en un DVD-RW secuencial proceda del mismo modo que con los demás formatos de DVD:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /ruta/alos/datos
....
@@ -1027,14 +1027,14 @@ Un DVD-RW en formato de sobreescritura restringido no necesita ser borrado antes
Para poner un DVD-RW en el formato de sobreescritura restringido haga lo siguiente:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Para devolverlo al formato secuencial use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1045,7 +1045,7 @@ Muy pocas unidades DVD-ROM soportan DVDs multisesión. La mayoría de las veces
Usando el siguiente comando despues de una sesión inicial (no-cerrada) en un DVD+R, DVD-R o DVD-RW en formato secuencial añadirá una nueva sesión al disco:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /ruta/alos/nuevosdatos
....
@@ -1089,7 +1089,7 @@ También existen dispositivos [.filename]#/dev/fdN.tamaño#, donde _tamaño_ es
Algunas veces las entradas bajo [.filename]#/dev# tendrán que ser (re)creadas. Para ello, ejecute:
-[source,bash]
+[source,shell]
....
# cd /dev && ./MAKEDEV "fd*"
....
@@ -1112,7 +1112,7 @@ Tome nota de cualquier mensaje de error, ya que éstos pueden ayudarle a determi
Use el dispositivo [.filename]#/dev/fdN.tamaño# para formatear el disquete. Inserte un disco de 3'5 pulgadas en su unidad y ejecute:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat /dev/fd0.1440
....
@@ -1121,7 +1121,7 @@ Use el dispositivo [.filename]#/dev/fdN.tamaño# para formatear el disquete. Ins
Use el dispositivo [.filename]#/dev/fdN# para formatear el disquete. Inserte un disco de 3'5 pulgadas en su unidad y ejecute:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1134,7 +1134,7 @@ La nueva etiqueta de disco ocupará todo el disco, y contendrá toda la informac
Ejecute man:disklabel[8] así:
-[source,bash]
+[source,shell]
....
# /sbin/disklabel -B -r -w /dev/fd0 fd1440
....
@@ -1152,7 +1152,7 @@ El sistema de ficheros del disquete puede ser UFS o o FAT. FAT suele ser una mej
Para formatear un disquete ejecute:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1224,7 +1224,7 @@ Las bibliotecas como ésta cuestan alrededor de 20.000 dólares, lo que las alej
La primera vez que trate de leer o escribir una cinta nueva, completamente en blanco, la operación fallará. El mensaje de la consola se parecerá al siguiente:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1266,14 +1266,14 @@ La mejor manera de respaldar a un disquete es usar man:tar[1] con la opción `-M
Para respaldar todos los ficheros en el directorio actual y sus subdirectorios use esto (como `root`):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Cuando el primer disquete esté lleno man:tar[1] le solicitará que inserte el siguiente volumen (debido a que man:tar[1] es independiente del medio se refiere a volúmenes; en éste contexto se refiere a disquetes).
-[source,bash]
+[source,shell]
....
Prepare volume #2 for /dev/fd0 and hit return:
....
@@ -1290,14 +1290,14 @@ Desafortunadamente, man:tar[1] no permite el uso de la opción `-z` para archivo
Para restaurar el archivo completo use:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Hay dos maneras que puede usar para restaurar ficheros específicos. La primera, puede comenzar por el primer disco flexible y usar:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 nombredefichero
....
@@ -1324,7 +1324,7 @@ Si utiliza `dump` en su directorio raíz, no respaldará [.filename]#/home#, [.f
También es posible respaldar datos a través de la red a una unidad de cinta conectada a otra computadora con `rdump` y `rrestore`. Ambos programas dependen de man:rcmd[3] y man:ruserok[3] para acceder a la unidad de cinta remota. Por consiguiente, el usuario que realiza el respaldo debe estar listado en el fichero [.filename]#.rhosts# de la computadora remota. Los argumentos para `rdump` y `rrestore` deben ser adecuados para usarse en la computadora remota. Cuando realice un `rdump` desde FreeBSD a una unidad de cinta Exabyte conectada a una Sun llamada `komodo`, use:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1337,7 +1337,7 @@ También es posible usar `dump` y `restore` de una forma más segura a través d
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
usuario@maquinaobjetivo.ejemplo.com dd of=/misficherosgrandes/dump-usr-l0.gz
@@ -1351,7 +1351,7 @@ Uso del método integrado de `dump`, configurando la variable de ambiente `RSH`:
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f usuario@maquinaobjetivo.ejemplo.com:/dev/sa0 /usr
....
@@ -1364,14 +1364,14 @@ man:tar[1] también es de la época de la Version 6 de AT&T UNIX (alrededor de 1
En FreeBSD 5.3 y posteriores, tiene a su disposición GNU `tar` y el comando por defecto `bsdtar`. La versión GNU puede ser invocada mediante `gtar`. Soporta dispositivos remotos mediante la misma sintaxis que `rdump`. Para hacer un `tar` a una unidad de cinta conectada a una Sun llamada `komodo`, use:
-[source,bash]
+[source,shell]
....
# /usr/bin/gtar cf komodo:/dev/nsa8 . 2>&1
....
Puede hacer lo mismo con o con `bsdtar` usando un "pipe" y `rsh` para mandar los datos a una unidad de cinta remota.
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh nombredemaquina dd of=dispositivo-de-cinta obs=20b
....
@@ -1384,7 +1384,7 @@ man:cpio[1] es el programa de intercambio de archivos de cinta para medios magn
`cpio` no permite respaldos a través de la red. Puede usar un pipe y `rsh` para mandar los datos a una unidad de cinta remota.
-[source,bash]
+[source,shell]
....
# for f in lista_directorios; do
@@ -1646,7 +1646,7 @@ Para montar una imagen de un sistema de ficheros:
[example]
====
-[source,bash]
+[source,shell]
....
# vnconfig vn0 imagendedisco
# mount /dev/vn0c /mnt
@@ -1660,7 +1660,7 @@ Para crear una nueva imagen de un sistema de ficheros con man:vnconfig[8]:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=nuevaimagen bs=1k count=5k
5120+0 records in
@@ -1699,7 +1699,7 @@ Para montar una imagen de un sistema de ficheros:
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f imagendedisco -u 0
# mount /dev/md0 /mnt
@@ -1713,7 +1713,7 @@ Para crear una imagen nueva de un sistema de ficheros con man:mdconfig[8]:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=nuevaimagen bs=1k count=5k
5120+0 records in
@@ -1746,7 +1746,7 @@ man:mdconfig[8] es muy útil, aunque requiere muchas líneas de comando para cre
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=nuevaimagen bs=1k count=5k
5120+0 records in
@@ -1772,7 +1772,7 @@ Sencillamete toma un sistema de ficheros que usted ha preparado con, por ejemplo
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=nuevaimagen of=/dev/md0
5120+0 records in
@@ -1796,7 +1796,7 @@ Se usan las mismas herramientas para tratar con sistemas de ficheros basados en
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t malloc -s 5m -u 1
# newfs -U md1
@@ -1817,7 +1817,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -M -s 5m md2 /mnt
# df /mnt
@@ -1835,7 +1835,7 @@ Cuando un sistema de ficheros basado en memoria o basado en fichero no se usa pu
Por ejemplo, para desconectar y liberar todos los recursos usados por [.filename]#/dev/md4#:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1844,7 +1844,7 @@ Es posible listar información sobre dispositivos man:md[4] configurados en el s
En FreeBSD 4.X se usa man:vnconfig[8] para desconectar el dispositivo. Por ejemplo, para desconectar y liberar todos los recursos usados por [.filename]#/dev/vn4#:
-[source,bash]
+[source,shell]
....
# vnconfig -u vn4
....
@@ -1860,21 +1860,21 @@ La bandera inalterable de fichero `snapshot` se activa con man:mksnap_ffs[8] des
Las instantáneas se crean con man:mount[8]. Veamos un ejemplo. Vamos a colocar una instantánea de [.filename]#/var# en [.filename]#/var/snapshot/snap#:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
También puede usar man:mksnap_ffs[8] para crear una instantánea:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Si busca ficheros de instantánea en un sistema de de ficheros (por ejemplo [.filename]#/var#) puede usar man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1887,7 +1887,7 @@ Una instantánea tiene distintos usos:
* Ejecutar un man:mount[8] contra la instantánea como una imagen congelada del sistema de ficheros. Para montar la instantánea [.filename]#/var/snapshot/snap# ejecute:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1895,7 +1895,7 @@ Una instantánea tiene distintos usos:
Podrá recorrer la jerarquía de su sistema de ficheros [.filename]#/var# congelado montado en [.filename]#/mnt#. Todo estará en el mismo estado en el que estaba cuando creó la instantánea. La única excepción es que cualquier instantánea anterior aparecerá como un fichero de longitud cero. Cuando haya acabado de usar una instantánea puede desmontarla con:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1959,7 +1959,7 @@ En el curso normal de operaciones no se le debería pedir que ejecute man:quotac
Una vez que tenga configurado su sistema para usar cuotas verifique que en realidad estén habilitadas. Una manera sencilla de hacer esto es ejecutar:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1976,7 +1976,7 @@ Los límites suaves pueden excederse por un periodo Este periodo de tiempo recib
Veamos un ejemplo de uso de man:edquota[8]. Si se usa man:edquota[8] se entra en el el editor declarado en la variable de entorno `EDITOR`, o en el editor vi si no ha modificado el valor por defecto de la variable `EDITOR`, para que pueda editar los límites de cuota.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -2008,7 +2008,7 @@ Los nuevos límites de cuota se aplicarán en cuanto salga del editor.
Algunas veces se quieren activar límites de cuota en un rango de UIDs. Esto puede realizarse con la opción `-p` de man:edquota[8]. Primero asigne el límite de cuota deseado a un usuario y luego ejecute `edquota -p protouser startuid-enduid`. Por ejemplo, si el usuario `test` tiene el límite de cuota deseado, el siguiente comando puede usarse para duplicar esos límites de cuota para los UIDs de 10,000 hasta 19,999:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -2046,7 +2046,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Y reinicie `inetd`:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -2067,7 +2067,7 @@ Independientemente de cómo un atacante pueda conseguir acceso a un disco duro a
+
La configuración de gbde requiere privilegios de superusuario.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -2077,7 +2077,7 @@ Password:
+
man:gbde[4] requiere FreeBSD 5.0 o posterior.
+
-[source,bash]
+[source,shell]
....
# uname -r
5.0-RELEASE
@@ -2105,7 +2105,7 @@ El siguiente ejemplo asume que añade a su sistema un disco duro nuevo que conte
+
Instale el nuevo disco en el sistema como se explicó en la <<disks-adding>>. En nuestro ejemplo hemos añadido una nueva partición de disco como [.filename]#/dev/ad4s1c#. Los dispositivos [.filename]#/dev/ad0s1*# representan particiones FreeBSD estándar que i existían previamente en el sistema.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -2115,7 +2115,7 @@ Instale el nuevo disco en el sistema como se explicó en la <<disks-adding>>. En
. Crée un directorio para los ficheros "lock" de gbde
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -2125,7 +2125,7 @@ Los ficheros "lock" de gbde contienen información que gbde requiere para accede
+
Una partición gbde debe inicializarse antes de que pueda utilizarse. Esta inicialización sólo debe hacerse una vez:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c
....
@@ -2159,14 +2159,14 @@ Es imprescindible que los ficheros "lock" de gbde _deben_ respaldarse junto con
. Conecte al kernel la partición cifrada
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
+
Se le pedirá la contraseña que elijió al inicializar la partición cifrada. El nuevo dispositivo cifrado aparecerá en [.filename]#/dev# como [.filename]#/dev/nombre_de_dispositivo.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -2183,7 +2183,7 @@ Una vez el dispositivo cifrado está conectado al kernel puede crear un sistema
La opción `-O2` es el valor por defecto en FreeBSD 5.1-RELEASE y siguientes.
======
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -2197,14 +2197,14 @@ man:newfs[8] debe ejecutarse en una partición gbde conectada, que podrá identi
+
Crée un punto de montaje para el sistema cifrado de ficheros.
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Montar el sistema cifrado de ficheros.
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2213,7 +2213,7 @@ Montar el sistema cifrado de ficheros.
+
el sistema cifrado de ficheros debería ser visible para man:df[1] y estar listo para su uso.
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2235,7 +2235,7 @@ Todos los sistemas cifrados de ficheros deben reconectarse al kernel después de
. Conectar la partición gbde al kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
@@ -2245,14 +2245,14 @@ Se le pedirá la contraseña que elijió en la inicialización de la partición
+
Como que los sistemas cifrados de ficheros no pueden aparecer en [.filename]#/etc/fstab# (lo que haría que fueran montados automáticamente), los sistemas de ficheros deben revisarse manualmente mediante man:fsck[8] antes de montarlos.
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
. Montar los sistemas cifrados de ficheros
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2272,7 +2272,7 @@ man:gbde[8] cifra el XXX sector payload usando AES de 128 bits en modo CBC. Cada
man:sysinstall[8] es incompatible con dispositivos gbde cifrados. Todos los dispositivos [.filename]#*.bde# deben desconectarse del kernel antes de iniciar man:sysinstall[8] o se "congelará" durante la prueba inicial de dispositivos. Para desconectar el el dispositivo cifrado de nuestro ejemplo haga lo siguiente:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
diff --git a/documentation/content/es/books/handbook/eresources/_index.adoc b/documentation/content/es/books/handbook/eresources/_index.adoc
index 91abac99a5..0b018cf297 100644
--- a/documentation/content/es/books/handbook/eresources/_index.adoc
+++ b/documentation/content/es/books/handbook/eresources/_index.adoc
@@ -313,7 +313,7 @@ subscribe <listname> [<optional address>]
en el cuerpo del mensaje. Por ejemplo, para suscribirse a `freebsd-announce` usted haría esto:
-[source,bash]
+[source,shell]
....
% mail majordomo@FreeBSD.org
subscribe freebsd-announce local-announce@ejemplo.com
@@ -322,7 +322,7 @@ subscribe freebsd-announce local-announce@ejemplo.com
Si quisiera suscribirse bajo otro nombre o enviar una petición de suscripción para una lista de correo local (un sistema muy eficiente si dispone de varias personas interesadas que tengan cuentas de correo en un mismo servidor ¡esto nos facilita mucho el trabajo!) ésto es lo que debe hacer:
-[source,bash]
+[source,shell]
....
% mail majordomo@FreeBSD.org
subscribe freebsd-announce local-announce@ejemplo.com
@@ -331,7 +331,7 @@ subscribe freebsd-announce local-announce@ejemplo.com
Por último, también es posible desuscribirse de una lista, obtener una lista de los suscriptores de una lista u obtener una lista de las listas de correo disponibles enviando otro tipo de mensajes de control a majordomo. Para obtener una lista completa de las órdenes disponibles haga esto:
-[source,bash]
+[source,shell]
....
% mail majordomo@FreeBSD.org
help
diff --git a/documentation/content/es/books/handbook/geom/_index.adoc b/documentation/content/es/books/handbook/geom/_index.adoc
index 919766f817..6498576280 100644
--- a/documentation/content/es/books/handbook/geom/_index.adoc
+++ b/documentation/content/es/books/handbook/geom/_index.adoc
@@ -84,42 +84,42 @@ image::striping.png[Ilustració de la distribución por bandas de los discos]
. Cargue el módulo [.filename]#geom_stripe#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe.ko
....
. Asegúrese de que existe un punto de montaje adecuado. Si este volumen se convertirá en una partición raíz, utilice temporalmente otro punto de montaje, como [.filename]#/mnt#.
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
. Determine los nombres de dispositivo de los discos que serán configurados en bandas, y cree el nuevo dispositivo de banda. Por ejemplo, podría utilizar la siguiente orden para configurar en bandas dos discos ATA sin usar ni particionar: [.filename]#/dev/ad2# y [.filename]#/dev/ad3#.
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
....
+
. Si se va a usar este volumen como dispositivo raíz para arrancar el sistema, debe ejecutar la siguiente orden antes de crear el sistema de ficheros:
+
-[source,bash]
+[source,shell]
....
# fdisk -vBI /dev/stripe/st0
....
. Se debe crear una tabla de particiones en el nuevo volumen con la siguiente orden:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
. Aademás del dispositivo [.filename]#st0#, este proceso debería haber creado otros dos dispositivos en el directorio [.filename]#/dev/stripe#, incluyendo [.filename]#st0a# y [.filename]#st0c#. Ahora se debe crear un sistema de ficheros en el dispositivo [.filename]#st0a# usando la siguiente orden `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -129,14 +129,14 @@ Por la pantalla se deslizarán muchos números, y al cabo de unos pocos segundos
Se puede usar la siguiente orden para montar manualmente una banda de discos recién creada:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Para montar automáticamente este sistema de ficheros distribuido por bandas durante el proceso de arranque, ponga la información del volumen en el fichero [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
# echo "/dev/stripe/st0a /mnt ufs rw 2 2" \
>> /etc/fstab
@@ -144,7 +144,7 @@ Para montar automáticamente este sistema de ficheros distribuido por bandas dur
También se debe cargar automáticamente durante la inicialización del sistema el módulo geom, añadiendo una línea a [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -162,14 +162,14 @@ Reinicie y espere a que el sistema se inicie por completo. Una vez haya finaliza
Cree el dispositivo [.filename]#/dev/mirror/gm# y enlácelo a [.filename]#/dev/da1#:
-[source,bash]
+[source,shell]
....
# gmirror label -vnb round-robin gm0 /dev/da1
....
El sistema debería responder con:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da1.
Done.
@@ -177,7 +177,7 @@ Done.
Inicialice GEOM, esto cargará el módulo del núcleo [.filename]#/boot/kernel/geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -189,14 +189,14 @@ Esta orden debería haber creado en el directorio [.filename]#/dev/mirror# los n
Instale una etiqueta genérica `fdisk` y el código de arranque en el recién creado dispositivo [.filename]#gm0#:
-[source,bash]
+[source,shell]
....
# fdisk -vBI /dev/mirror/gm0
....
Ahora instale la información `bsdlabel` genérica:
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/mirror/gm0s1
....
@@ -208,21 +208,21 @@ Si hay varias slices (rodajas) y particiones, necesitará modificar las opciones
Utilice la utilidad man:newfs[8] para crear un sistema de ficheros predefinido en nodo de dispositivo [.filename]#gm0s1a#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
....
Esto debería haber hecho que el sistema mostrara alguna información y un puñado de números. Esto es bueno. Examine la pantalla por si hay algún mensaje de error y monte el dispositivo en el punto de montaje [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
....
Ahora mueva todos los datos del disco de arranque a este nuevo sistema de ficheros. Este ejemplo usa las órdenes man:dump[8] y man:restore[8]; aunque, man:dd[1] también debería funcionar en este escenario. Evitamos utilizar man:tar[1] porque no copiará el código de arranque. De ese modo, el fallo estaría garantizado.
-[source,bash]
+[source,shell]
....
# dump -L -0 -f- / |(cd /mnt restore -r -v -f-)
....
@@ -240,12 +240,12 @@ Ahora edite el fichero replicado [.filename]#/mnt/etc/fstab# y elimine o comente
Ahora cree un fichero [.filename]#boot.conf# tanto en la partición actual como en la nueva partición raíz. Este fichero "ayudará" al BIOS del sistema a arrancar la unidad correcta:
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" /boot.config
....
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" /mnt/boot.config
....
@@ -257,7 +257,7 @@ Lo hemos colcoado en ambas particiones raíz para asegurar un arranque correcto.
Ahora agregue la siguiente línea al nuevo [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' /mnt/boot/loader.conf
....
@@ -266,14 +266,14 @@ Esto le dice a la utilidad man:loader[8] que cargue el [.filename]#geom_mirror.k
Reinicie el sistema:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Si todo ha ido bien, el sistema debería haber arrancado desde el dispositivo [.filename]#gm0s1a#, y un prompt `login` debería estar a la espera. Si algo fue mal, consulte la sección posterior de resolución de problemas. Ahora agregue el disco [.filename]#da0# al dispositivo [.filename]#gm0#:
-[source,bash]
+[source,shell]
....
# gmirror configure -a gm0
# gmirror insert gm0 /dev/da0
@@ -296,7 +296,7 @@ mountroot
Reinicie la máquina utilizando el botón de encendido o el de reset. En el menú de arranque, seleccione la opción seis (6). Esto llevará al sistema a un prompt de man:loader[8]. Cargue el módulo del núcleo manualmente:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror.ko
OK? boot
diff --git a/documentation/content/es/books/handbook/install/_index.adoc b/documentation/content/es/books/handbook/install/_index.adoc
index dbb4363d97..c97d990404 100644
--- a/documentation/content/es/books/handbook/install/_index.adoc
+++ b/documentation/content/es/books/handbook/install/_index.adoc
@@ -237,7 +237,7 @@ Siguiendo las normas de los manuales de Digital / Compaq todos los datos suminis
Use `SHOW DEVICE` en la consola de SRM para saber qué tipo de discos hay en su sistema:
-[source,bash]
+[source,shell]
....
>>>SHOW DEVICE
dka0.0.0.4.0 DKA0 TOSHIBA CD-ROM XM-57 3476
@@ -350,7 +350,7 @@ Si va a crear los disquetes de arranque en un sistema en el que se está ejecuta
+
Si las imágenes están en el CDROM y su CDROM es la unidad [.filename]#E:# ejecute lo siguiente:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
@@ -359,7 +359,7 @@ Repita el proceso con cada fichero [.filename]#.flp# reemplazando cada vez el di
+
Si va a crear los disquetes en un sistema UNIX(R) (por ejemplo otro sistema FreeBSD) puede utilizar man:dd[1] para volcar las imágenes a los discos. En FreeBSD puede ejecutar algo como:
+
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
@@ -426,7 +426,7 @@ Si su sistema arranca normalmente y carga el sistema operativo que ya está inst
. FreeBSD comenzará a arrancar. Si está arrancando desde CDROM debería ver algo parecido a esto (se ha omitido la información de número de versión):
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
Boot from ATAPI CD-ROM :
@@ -452,7 +452,7 @@ Booting [kernel] in 9 seconds... _
+
Si arranca desde floppy verá algo parecido a esto (se ha omitido la información de número de versión):
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
@@ -472,7 +472,7 @@ Please insert MFS root floppy and press enter:
Siga las instrucciones y extraiga el disco [.filename]#kern.flp# disc, inserte el disco [.filename]#mfsroot.flp# y pulse kbd:[Intro].
. Tanto si arranca desde disquete como CDROM el proceso de arranque llegará a este punto:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -489,21 +489,21 @@ Dicho y hecho: espere diez segundos o pulse kbd:[Enter]. Esto lanzará el menú
. Encienda su computadora y espera un mensaje de arranque en el monitor.
. Si va a arrancar desde disquetes, tal y como se describe en la <<install-floppies>>, uno de ellos será el primer disco de arranque, probablemente el que contiene [.filename]#kern.flp#. Ponga este disco en la unidad de disquetes y escriba el siguiente comando para lanzar el arranque desde el disco (corrija el nombre de su unidad de disquetes si fuera necesario):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DVA0 -FLAGS '' -FILE ''
....
+
Si va a arrancar desde CDROM introduzca el CDROM en la unidad y escriba el siguiente comando para iniciar la instalación (corrija el nombre de la unidad correcta de CDROM si fuera necesario):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DKA0 -FLAGS '' -FILE ''
....
. FreeBSD comenzará a arrancar. Si está arrancando desde disquete llegado un cierto punto verá usted este mensaje:
+
-[source,bash]
+[source,shell]
....
Please insert MFS root floppy and press enter:
....
@@ -511,7 +511,7 @@ Please insert MFS root floppy and press enter:
Siga las instrucciones del programa de instalación y retire el disco [.filename]#kern.flp#, inserte el disco [.filename]#mfsroot.flp# y pulse kbd:[Intro].
. Tanto si arrancó desde disquete como desde CDROM el proceso de arranque llegará a este punto:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -526,7 +526,7 @@ La mayoría de sistemas sparc64 están configurados para arrancar automáticamen
Reinicie el sistema y espere hasta que aparezca el mensaje de arranque. Depende del modelo, pero debería parecerse a este:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -536,7 +536,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Si en este punto su sistema arranca desde el disco pulse kbd:[L1+A] o kbd:[Stop+A], o envíe un `BREAK` desde la consola serie serial console (usando, por ejemplo, `~#` en man:tip[1] o man:cu[1]) para así recuperar el prompt de PROM. Tiene este aspecto:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -562,7 +562,7 @@ Pruébelo, revise el texto que ha generado el kernel al probar los dispositivos
[example]
====
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -643,7 +643,7 @@ image::sysinstall-exit.png[]
Para salir de sysinstall utilice las flechas del teclado para seleccionar [.guimenuitem]#Exit Install# en el menú de la pantalla principal de instalación. Aparecerá el siguiente mensaje:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot
@@ -787,7 +787,7 @@ Aún no ha hecho modificaciones en su disco duro. Si cree que ha cometido algún
Si ha elegido iniciar una instalación estándar sysinstall le mostrará el siguiente mensaje:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -804,7 +804,7 @@ Si ha elegido iniciar una instalación estándar sysinstall le mostrará el sigu
Es decir:
-[source,bash]
+[source,shell]
....
Mensaje
En el siguiente menú tendrá que configurar un esquema de particionado
@@ -970,7 +970,7 @@ Si va a instalar FreeBSD en más de un disco puede crear particiones el las dem
Una vez que haya elegido el esquema de particiones creelo en sysinstall. Verá este mensaje:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -986,7 +986,7 @@ Una vez que haya elegido el esquema de particiones creelo en sysinstall. Verá e
Es decir:
-[source,bash]
+[source,shell]
....
Message
Debe crear particiones BSD dentro de las 'particiones
@@ -1090,7 +1090,7 @@ Tras seleccionar la distribución elegida se le presentará la opción de instal
El programa de instalación no comprueba si tiene espacio suficiente. Seleccione esta opción si dispone de sitio en el disco. En FreeBSD {rel120-current} los ports ocupan cerca de {ports-size} en disco. Puede asumir tranquilamente que en las nuevas versiones del sistema irán ocupando más y más.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1114,7 +1114,7 @@ El programa de instalación no comprueba si tiene espacio suficiente. Seleccione
Es decir:
-[source,bash]
+[source,shell]
....
Petición de confirmación del usuario
?Quiere instalar la colección de ports de FreeBSD?
@@ -1184,7 +1184,7 @@ Dado accede al directorio [.filename]#/pub/FreeBSD# de `ftp.FreeBSD.org` a trav
A partir de aquí entramos en la instalación propiamente dicha. Esta es la última oportunidad antes de empezar a escribir datos en el disco duro.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1199,7 +1199,7 @@ A partir de aquí entramos en la instalación propiamente dicha. Esta es la últ
Es decir:
-[source,bash]
+[source,shell]
....
Petición de confirmación del usuario
¡Última oportunidad!. ?SEGURO que quiere seguir con la instalación?
@@ -1219,7 +1219,7 @@ La instalación tardará más o menos tiempo según la distribución que haya el
Cuando acabe la instalación verá un mensaje como este:
-[source,bash]
+[source,shell]
....
Message
@@ -1238,7 +1238,7 @@ do so by typing: sysinstall .
Es decir:
-[source,bash]
+[source,shell]
....
Mensaje
@@ -1259,7 +1259,7 @@ Pulse kbd:[Intro]; pasaremos a acometer ciertas tareas posteriores a la instalac
Si selecciona btn:[no] y pulsa kbd:[Intro] la instalación se detendrá para evitar hacer más modificaciones en su sistema. Verá el el siguiente mensaje.
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1272,7 +1272,7 @@ installation menus to retry whichever operations have failed.
Es decir:
-[source,bash]
+[source,shell]
....
Mensaje
La instalación ha finalizado con errores. Puede moverse por la
@@ -1298,7 +1298,7 @@ Si ha tenido que configurar PPP para poder instalar desde FTP esta pantalla no a
Si necesita información sobre redes de área local y la configuración de FreeBSD necesaria para que haga de «gateway/router» consulte el crossref:advanced-networking[advanced-networking,Advanced Networking] chapter.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or SLIP/PPP network devices?
@@ -1314,7 +1314,7 @@ image::ed0-conf.png[]
Seleccione con las flechas el interfaz de red que desea configurar y pulse kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1326,7 +1326,7 @@ En la red local del ejemplo el tipo de protocolo de Internet que había (IPv4) p
Si puede conectar con alguna red IPv6 mediante un servidor RA elija btn:[yes] y pulse kbd:[Intro]. La búsqueda de servidores RA se hará en unos instantes.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1369,7 +1369,7 @@ Cualquiera de las opciones que quiera agregar a su interfaz mediante `ifconfig`.
Utilice el kbd:[tabulador] para seleccionar btn:[OK] cuando haya acabado y pulsekbd:[Intro].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to Bring Up the ed0 interface right now?
@@ -1382,7 +1382,7 @@ Seleccione btn:[yes] y pulse kbd:[Enter] si quiere conectar inmediatamente su si
[[gateway]]
=== Configuración del «gateway»
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1395,7 +1395,7 @@ Si el sistema hará de enlace de la red local y reenviará paquetes entre otras
[[inetd-services]]
=== Configuración de servicios de internet
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1409,7 +1409,7 @@ Dichos servicios pueden activarse en cualquier momento editando [.filename]#/etc
Seleccione btn:[yes] si desea configurar estos servicios durante la instalación. Se le mostrará el siguiente mensaje:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1424,7 +1424,7 @@ With this in mind, do you wish to enable inetd?
Select btn:[yes] to continue.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1442,7 +1442,7 @@ use the current settings.
Es decir:
-[source,bash]
+[source,shell]
....
Petición de confirmación del usuario
El Super Servidor de Internet (inetd) le permite activar diversos
@@ -1466,7 +1466,7 @@ Una vez que haya añadido los servicios que quiera en el sistema pulse kbd:[Esc]
[[ssh-login]]
=== Activar el acceso al sistema mediante SSH
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1478,7 +1478,7 @@ Si selecciona btn:[yes] activará man:sshd[8], el dæmon de OpenSSH. De este mod
[[ftpanon]]
=== FTP anónimo
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1498,7 +1498,7 @@ Si decide aceptar conexiones FTP anónimas cualquiera podrá conectarse al siste
Si ha decidido activar el FTP anónimo seleccione con las flechas btn:[yes] y pulse kbd:[Intro]. Verá la siguiente pantalla (o una muy similar):
-[source,bash]
+[source,shell]
....
This screen allows you to configure the anonymous FTP user.
@@ -1522,7 +1522,7 @@ Upload subdirectory:
Es decir:
-[source,bash]
+[source,shell]
....
En esta pantalla puede configurar el usuario de FTP
anónimo.
@@ -1550,7 +1550,7 @@ Por omisión el directorio raíz del ftp será [.filename]#/var#. Si no hay siti
Cuando haya terminado con la configuración pulse kbd:[Intro].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1576,7 +1576,7 @@ NFS («Network File System» (de Network File System, o Sistema de Ficheros en R
[[nsf-server-options]]
==== Servidor NFS
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1588,7 +1588,7 @@ Si no tiene necesidad de usar un servidor NFS seleccione btn:[no] y pulse kbd:[I
Si ha elegido btn:[yes] verá un mensaje emergente indicando que hay que crear el fichero [.filename]#exports#.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1600,7 +1600,7 @@ Press [Enter] now to invoke an editor on /etc/exports
Es decir:
-[source,bash]
+[source,shell]
....
Mensaje
Hacer funcionar un servidor NFS implica que tendrá que configurar
@@ -1625,7 +1625,7 @@ Pulse kbd:[Escape]; aparecerá un mensaje emergente que por omisión le ofrecer
El cliente NFS permite que su máquina pueda acceder a servidores NFS.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1640,7 +1640,7 @@ Utilice las flechas para elegir si quiere o no disponer de cliente NFS (respecti
La consola del sistema tiene diversas opciones que puede usted adaptar a sus gustos o necesidades.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1683,7 +1683,7 @@ Si su sistema tiene correctamente configurada la zona horaria podrá corregir cu
El ejemplo que se muestra en las capturas de pantalla es de una máquina ubicada en la zona horaria del Este de los EEUU.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1695,7 +1695,7 @@ Seleccione btn:[yes] y pulse kbd:[Intro]. Vamos a configurar la zona horaria del
Seleccione btn:[yes] y pulse kbd:[Intro].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1724,7 +1724,7 @@ image::timezone3.png[]
Elija la zona horaria adecuada con las flechas y pulse kbd:[Intro].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1737,7 +1737,7 @@ Confirme si la abreviatura de la zona horaria es la correcta. Cuando todo esté
[[linuxcomp]]
=== Compatibilidad con Linux(R)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1754,7 +1754,7 @@ Si realiza la instalación por FTP la máquina necesitará conectarse a Internet
Esta opción le permitirá cortar y pegar texto en consola y en otros programas mediante un ratón de tres botones. Consulte man:moused[8] si usa uno de 2 botones, es posible emular ese tercer botón. En el siguiente ejemplo veremos la configuración de un ratón «no USB» (es decir, PS/2 o de puerto COM):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1809,7 +1809,7 @@ Los «packages» son binarios precompilados; son una forma muy cómoda de instal
Veamos la instalación de un «package» Este es un buen momento para instalar «packages» si así lo desea. De todos modos una vez concluida la instalación puede entrar cuando quiera a `sysinstall` e instalar lo que necesite.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1862,7 +1862,7 @@ Tras la instalación de «packages» nos quedan unos toques finales a la configu
Deberí al menos añadir un usuario al sistema para poder usarlo para acceder al sistema una vez reiniciado sin tener que recurrir a `root`. La partición raíz suele ser pequeña y ejecutar aplicaciones como `root` tiene a llenarla rápidamente. Pero hay un peligro mucho mayor:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1875,7 +1875,7 @@ Deberí al menos añadir un usuario al sistema para poder usarlo para acceder al
Es decir:
-[source,bash]
+[source,shell]
....
Petición de confirmación del usuario
?Quiere añadir algún usuario al sistema? Le sugerimos que añada al menos
@@ -1940,7 +1940,7 @@ Cuando haya acabado de añadir usuarios seleccione [.guimenuitem]#Exit# con las
[[rootpass]]
=== Asignar contraseña a `root` Password
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1953,7 +1953,7 @@ Cuando haya acabado de añadir usuarios seleccione [.guimenuitem]#Exit# con las
Es decir:
-[source,bash]
+[source,shell]
....
Mensaje
Debe asignar la contraseña del administrador del sistema.
@@ -1969,7 +1969,7 @@ Pulse kbd:[Intro] y asígnele una contraseña a `root`.
Tendrá que escribir la contraseña correctamente dos veces. No hay necesidad de decirle que es importante que recuerde esa contraseña.
-[source,bash]
+[source,shell]
....
New password:
Retype new password :
@@ -1982,7 +1982,7 @@ La instalación proseguirá una vez que introduzca la contraseña correctamente
Si tiene que configurar <<network-services,servicios de red>> o cualquier otra cosa, puede hacerlo ahora mismo o tras terminar la instalación ejecutando `sysinstall`.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1999,7 +1999,7 @@ image::mainexit.png[]
Seleccione btn:[X Exit Install] con las flechas y pulse kbd:[Intro]. Se le pedirá que confirme que quiere salir de la instalación:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot (be sure to
@@ -2010,7 +2010,7 @@ Seleccione btn:[X Exit Install] con las flechas y pulse kbd:[Intro]. Se le pedir
Es decir:
-[source,bash]
+[source,shell]
....
Petición del Confirmación al usuario
?Seguro que quiere salir? El sistema reiniciará (compruebe que
@@ -2044,7 +2044,7 @@ Si selecciona la opción [.guimenuitem]#AMD# añadirá al sistema la aplicación
La siguiente opción es [.guimenuitem]#AMD Flags#. Si la selecciona verá un menú emergente que le requerirá parámetros específicos de AMD. El menú dispone ya de un conjunto de opciones por omisión:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -2115,7 +2115,7 @@ Entre al sistema utilizando un nombre de usuario y contraseña que haya creado d
Este es un típico mensaje de arranque (se ha eliminado la información de la versión):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2255,14 +2255,14 @@ Una vez acabado el proceso de instalación podrá arrancar FreeBSD tecleando alg
Once the install procedure has finished, you will be able to start FreeBSD by typing something like this to the SRM prompt:
-[source,bash]
+[source,shell]
....
>>>BOOT DKC0
....
Esto hace que el firmware arranque desde el disco especificado. Para que FreeBSD arranque automáticamente de ahí en adelante utilice lo siguiente:
-[source,bash]
+[source,shell]
....
>>> SET BOOT_OSFLAGS A
>>> SET BOOT_FILE ''
@@ -2277,7 +2277,7 @@ Los mensajes de arranque serán muy similares (aunque no iguales) a los que apar
Es importante apagar correctamente el sistema operativo. No basta con darle al interruptor. Lo primero que debe hacer es convertirse en superusuario tecleando en la shell `su` e introduciendo la contraseña de `root`. Tenga en cuenta que esto funcionará solamente si el usuario es miembro del grupo `wheel`. Si no lo es siempre puede acceder al sistema como `root` y utilizar `shutdown -h now`.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2326,7 +2326,7 @@ El directorio [.filename]#/dos# debe existir previamente o no funcionará. Tiene
Veamos ahora un ejemplo de llamada de man:mount[8] a un sistema de ficheros MS-DOS(R):
-[source,bash]
+[source,shell]
....
# mount_msdos /dev/ad0s1 /mnt
....
@@ -2346,7 +2346,7 @@ Las particiones NTFS se montan de una forma muy similar gracias a man:mount_ntfs
FreeBSD utiliza profusamente el servicio ACPI del sistema en las plataformas i386, amd64 e ia64 con el fin de ayudar en la configuración del sistema durante la detección de hardware durante el arranque. Por desgracia todavía hay errores tanto en el controlador ACPI como en algunas BIOS y placas base. Puede desactivar ACPI en la tercera fase del cargador de arranque del sistema haciendo que `hint.acpi.0.disabled` tenga el siguiente valor:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2363,7 +2363,7 @@ El primer caso es cuando hay dos discos IDE, ambos configurados como maestros de
FreeBSD está en el disco BIOS 1, de tipo `ad` y el número de disco FreeBSD es el 2, así que habrá que decir lo siguiente:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2372,7 +2372,7 @@ Tenga en cuenta que si tiene un disco esclavo en el bus primario esto no es nece
El segundo escenario es el arranque desde un disco SCSI teniendo uno o más discos IDE en el sistema. En este caso el número de disco FreeBSD es más bajo que el número de disco BIOS. Si tiene dos discos IDE además del disco SCSI, el disco SCSI es el disco 2 de BIOS, del tipo `da` y para FreeBSD es el disco número disk number 0, so 0, así que tendrá que usar
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2418,28 +2418,28 @@ Tendrá que modificar esos disquetes para que arranquen en la consola serie; sig
+
Si arrancara con los disquetes que acaba de crear FreeBSD arrancaría en el modo normal de instalación. Lo que queremos es que FreeBSD arranque en una consola serie, así que hemos de montar el disquete [.filename]#kern.flp# en un sistema FreeBSD mediante man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/fd0 /mnt
....
+
Una vez montado el disquete entre en el directorio [.filename]#/mnt# :
+
-[source,bash]
+[source,shell]
....
# cd /mnt
....
+
Aquí es donde enseñaremos al disquete a arrancar en la consola serie. Debe crearse un fichero llamado [.filename]#boot.config# que contenga lo siguiente: `/boot/loader -h`. Con esto le pasamos cargador de arranque (el «bootloader») el parámetro necesario para que intente arrancar en una consola serie.
+
-[source,bash]
+[source,shell]
....
# echo "/boot/loader -h" boot.config
....
+
Una vez configurado correctamente nuestro disquete lo desmontamos con man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /mnt
@@ -2456,7 +2456,7 @@ Podemos iniciar la instalación. Introduzca el disquete [.filename]#kern.flp# en
+
Conéctese usando man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuaa0
....
@@ -2541,7 +2541,7 @@ Los discos de FreeBSD tienen la misma estructura que los sitios FTP. Esa circuns
====
. Monte el CDROM en el directorio [.filename]#/cdrom# del sistema que va a albergar el sitio FTP.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2574,7 +2574,7 @@ _No_ confíe en el preformateo de fábrica de los disquetes. Formatéelos usted
Si puede crear los disquetes en una máquina FreeBSD un formateo sigue sin ser una mala idea, pero no necesitará crear un sistema de ficheros DOS en cada floppy. Use `disklabel` y `newfs` para crear un sistema de ficheros UFS en los disquetes tal y como se muestra aquí (en un floppy de 1.44 MB y 3.5") :
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# disklabel -w -r fd0.1440 floppy3
@@ -2597,7 +2597,7 @@ Una vez en el menú de selección de medio de instalación elija [.guimenuitem]#
Copie los ficheros de la distribución en un directorio llamado [.filename]#freebsd# en el directorio raíz de la partición, por ejemplo [.filename]#c:\freebsd#. La estructura de directorios del sitio FTP o el CDROM debe reproducirse parcialmente en este directorio, así que le sugerimos que use `xcopy` si está copiando los datos desde un CD. En el siguiente ejemplo vamos a preparar una instalación mínima de FreeBSD:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2614,7 +2614,7 @@ La única distribución _imprescindible_ es `BIN`. Guarde esta y todas las distr
La instalación desde cinta es probablemente el método más fácil, casi tanto como una instalación desde una réplica FTP o desde un CDROM. Lo único que el programa de instalación necesita es que los ficheros estén empaquetados con tar y en una cinta. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/es/books/handbook/jails/_index.adoc b/documentation/content/es/books/handbook/jails/_index.adoc
index 0973764931..215a65f786 100644
--- a/documentation/content/es/books/handbook/jails/_index.adoc
+++ b/documentation/content/es/books/handbook/jails/_index.adoc
@@ -111,7 +111,7 @@ Además, las jaulas pueden tener sus propios usuarios e incluso su propio `root`
Algunos administradores dividen las jaulas en dos tipos: jaulas "completas", que recrean un sistema FreeBSD real, y jaulas "de servicio", que son aquellas que están dedicadas a una sola aplicación o servicio, en muchos casos ejecutándose sin privilegios. Se trata de una división exclusivamente conceptual, por lo que el proceso de generación de una jaula no se ve afectado por ella. La página de manual man:jail[8] explica claramente el procedimiento a seguir para generar una jaula:
-[source,bash]
+[source,shell]
....
# setenv D /aquí/está/la/jaula
# mkdir -p $D <.>
@@ -164,7 +164,7 @@ Si quiere consultar la lista completa de opciones consulte la página de manual
Puede arrancar o parar a mano una jaula mediante el script [.filename]#/etc/rc.d/jail# siempre y cuando la jaula aparezca en [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -172,7 +172,7 @@ Puede arrancar o parar a mano una jaula mediante el script [.filename]#/etc/rc.d
De momento no hay una forma limpia de apagar una jaula (man:jail[8]) debido a que los comandos que se usan normalmente para producir un apagado limpio del sistema no pueden usarse dentro de una jaula. La mejor forma de parar una jaula es ejecutar el siguiente comando desde dentro de la propia jaula o bien mediante man:jexec[8] desde fuera:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -208,7 +208,7 @@ El sistema base de FreeBSD contiene un conjunto básico de herramientas que perm
* Conectarse a una jaula en ejecució desde el servidor y ejecutar un comando dentro de la jaula o realizar tareas administrativas dentro de dicha jaula. Esto es muy útil cuando el usuario `root` quiere apagar la jaula de forma limpia. La herramienta man:jexec[8] permite también arrancar una shell dentro de la jaula para realizar tareas administrativas. Veamos un ejemplo:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -279,7 +279,7 @@ Siempre es recomendable actualizar el sistema FreeBSD a la última rama -RELEASE
[.procedure]
. Lo primero que haremos será crear una estructura de directorios para el sistema de ficheros de sólo lectura que contendrá los binarios de nuestras jaulas, luego iremos al directorio que contiene el árbol de código de FreeBSD e instalaremos el sistema de ficheros de sólo lectura en la plantilla de las jaulas:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -288,7 +288,7 @@ Siempre es recomendable actualizar el sistema FreeBSD a la última rama -RELEASE
. Una vez hecho esto, prepararemos la Colección de Ports de FreeBSD para nuestras jaulas así como un árbol de código FreeBSD, necesario para usar mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -298,7 +298,7 @@ Siempre es recomendable actualizar el sistema FreeBSD a la última rama -RELEASE
. Crear la estructura de directorios necesaria para la parte de lectura-escritura del sistema:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -310,7 +310,7 @@ Siempre es recomendable actualizar el sistema FreeBSD a la última rama -RELEASE
. Usamos mergemaster para instalar los ficheros de configuración que falten. Después nos libramos de los directorios adicionales que haya creado mergemaster:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -319,7 +319,7 @@ Siempre es recomendable actualizar el sistema FreeBSD a la última rama -RELEASE
. Ahora enlazamos simbólicamente el sistema de ficheros de lectura-escritura con el sistema de ficheros de sólo lectura. Por favor, asegúrese de que los enlaces simbólicos se crean en las ubicaciones correctas: [.filename]#s/#. Si se usan directorios reales o directorios erróneos la instalación no funcionará.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -396,14 +396,14 @@ jail_www_devfs_enable="YES"
. Creamos los puntos de montaje de sistemas de ficheros de sólo lectura correspondientes a cada jaula:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
. Instalamos la plantilla de lectura-escritura dentro de cada jaula. Observe que utilizamos package:sysutils/cpdup[] para asegurarnos de que se hace una copia exacta de cada directorio:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -413,7 +413,7 @@ jail_www_devfs_enable="YES"
. Llegados a este punto las jaulas están configuradas y listas para arrancar. Monte los sistemas de ficheros de cada jaula y luego arránquelas con el script [.filename]#/etc/rc.d/jail#:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
@@ -422,7 +422,7 @@ jail_www_devfs_enable="YES"
Las jaulas deberían haber arrancado. Asegúrese de ello con man:jls[8]. La salida que verá debe parecerse a esta:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -433,7 +433,7 @@ Las jaulas deberían haber arrancado. Asegúrese de ello con man:jls[8]. La sali
En este punto debería ser posible entrar a cada una de las jaulas, añadir nuevos usuarios o configurar dæmons. La columna `JID` indica el número de identificación de cada jaula que esté funcionando en el sistema. Con el siguiente comando puede ejecutar tareas administrativas en la jaula cuyo `JID` sea 3:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -448,7 +448,7 @@ Llegará el momento en el que sea necesario actualizar el sistema, bien por segu
. El primer paso es actualizar el servidor que aloja las jaulas de la forma habitual. Después creamos una plantilla de sólo lectura temporal en [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -460,7 +460,7 @@ Llegará el momento en el que sea necesario actualizar el sistema, bien por segu
+
La ejecución de `installworld` crea unos cuantos directorios innecesarios que debemos borrar:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -468,7 +468,7 @@ La ejecución de `installworld` crea unos cuantos directorios innecesarios que d
. Creamos de nuevo los enlaces simbólicos de lectura-escritura del sistema de ficheros principal:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -481,14 +481,14 @@ La ejecución de `installworld` crea unos cuantos directorios innecesarios que d
. Ha llegado el momento de parar las jaulas:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail stop
....
. Desmontamos los sistemas de ficheros originales:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -505,7 +505,7 @@ Los sistemas de ficheros de lectura-escritura cuelgan del sistema de sólo lectu
. Movemos el sistema de ficheros de sólo lectura viejo y lo reemplazamos por el nuevo. Nos servirá de copia de seguridad y como archivo en caso de que haya problemas. Para darle un nombre usamos la fecha en la que se creado una nueva copia del sistema de ficheros de sólo lectura. Movemos también la Colección de Ports de FreeBSD al sistema de ficheros nuevo para ahorrar un poco más de espacio e inodos:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -515,7 +515,7 @@ Los sistemas de ficheros de lectura-escritura cuelgan del sistema de sólo lectu
. Una vez llegados a este punto la nueva plantilla de sólo lectura está lista, de manera que lo único que nos queda por hacer es montar los sistemas de ficheros y arrancar las jaulas:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
diff --git a/documentation/content/es/books/handbook/kernelconfig/_index.adoc b/documentation/content/es/books/handbook/kernelconfig/_index.adoc
index 1d425f700c..3123939f98 100644
--- a/documentation/content/es/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/es/books/handbook/kernelconfig/_index.adoc
@@ -110,7 +110,7 @@ Este fragmento, obtenido con `pciconf -lv` muestra cómo el controlador [.filena
La opción `-k` de man:man[1] le suministrará valiosa información. Sigamos con el ejemplo anterior:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -161,7 +161,7 @@ A lo largo de este capítulo asumiremos que está utilizando la arquitectura i38
====
Si _no existe_ el directorio [.filename]#/usr/src/sys# en su sistema quiere decir que no están instaladas las fuentes del kernel. La forma más sencilla de tenerlas es mediante `/stand/sysinstall`. Como usuario `root` seleccione `Configure`, luego `Distributions`, después `src` y finalmente `sys`. Si no le gusta mucho sysinstall y tiene acceso a un CDROM "oficial" de FreeBSD puede instalar las fuentes por medio de la siguiente línea de órdenes:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -173,7 +173,7 @@ Si _no existe_ el directorio [.filename]#/usr/src/sys# en su sistema quiere deci
Ahora vaya al al directorio [.filename]#arch/conf# y copie el fichero de configuración [.filename]#GENERIC# con el nombre que desee. Por ejemplo:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MIKERNEL
@@ -190,7 +190,7 @@ Le proponemos una alternativa: guardar su fichero de configuración cualquier ot
Por ejemplo:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -216,7 +216,7 @@ Ahora es momento de llevar a cabo la compilación del código fuente del kernel.
. Vaya al directorio [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -224,7 +224,7 @@ Ahora es momento de llevar a cabo la compilación del código fuente del kernel.
. Compile el kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MIKERNEL
....
@@ -232,7 +232,7 @@ Ahora es momento de llevar a cabo la compilación del código fuente del kernel.
. Instale el nuevo kernel:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MIKERNEL
....
@@ -278,7 +278,7 @@ El formato de un fichero de configuración es bastante simple. Cada línea conti
====
Puede generar un fichero que contenga todas las opciones disponibles en un kernel. Esto es algo que solamente se usa para hacer pruebas. Si quiere generarlo ejecute, como `root`, lo siguiente:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1112,7 +1112,7 @@ Hay cuatro categorías de problemas que podemos encontrarnos en el proceso de co
Fallo de `config`:::
Si man:config[8] falla cuando le pasa la descripción de su kernel seguramente ha cometido algún pequeño error. Por suerte man:config[8] les mostrará el número de la línea que le está dando problemas, así que no tendrá mayor problema para localizarla. Veamos un ejemplo:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1131,7 +1131,7 @@ Tras arrancar con un kernel de fiar verifique el fichero de configuración e int
====
Si tiene problemas compilando un kernel recuerde que es de vital importancia que guarde una copia de un kernel [.filename]#GENERIC# u otro del que pueda fiarse y que (esto es muy importante) tenga un nombre distinto de [.filename]#kernel.old# para evitar que el sistema lo borre una vez que termine una nueva compilación. No puede confiar en su kernel [.filename]#kernel.old# porque al instalar un nuevo kernel (que aún no sabe si será el que funcione tal y como espera de él) el kernel [.filename]#kernel.old# se sobreescribe con el kernel que instale. Otra cosa importante es que copie ese kernel de fiar a [.filename]#/boot/kernel#, o ciertas herramientas como man:ps[1] no funcionarán. Basta con que haga lo siguiente:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.malo
# mv /boot/kernel.bueno /boot/kernel
diff --git a/documentation/content/es/books/handbook/l10n/_index.adoc b/documentation/content/es/books/handbook/l10n/_index.adoc
index 7c88c33ed1..eb6db40e02 100644
--- a/documentation/content/es/books/handbook/l10n/_index.adoc
+++ b/documentation/content/es/books/handbook/l10n/_index.adoc
@@ -228,7 +228,7 @@ Utilice `adduser` para añadir nuevos usuarios, y haga lo siguiente:
* Establezca `defaultclass = idioma` en [.filename]#/etc/adduser.conf#. Recuerde que en este caso debe introducir una clase `default` (por omisión) para todos los usuarios de otros idiomas.
* Una variante alternativa es contestar el idioma indicado cada vez que man:adduser[8] muestre
+
-[source,bash]
+[source,shell]
....
Enter login class: default
[]:
@@ -236,7 +236,7 @@ Enter login class: default
* Otra alternativa es utilizar lo siguiente para cada usuario de un idioma diferente al que desee añadir:
+
-[source,bash]
+[source,shell]
....
# adduser -class
idioma
@@ -246,7 +246,7 @@ Enter login class: default
Si utiliza man:pw[8] para añadir nuevos usuarios, llámelo de esta manera:
-[source,bash]
+[source,shell]
....
# pw useradd
nombre_usuario -L
diff --git a/documentation/content/es/books/handbook/linuxemu/_index.adoc b/documentation/content/es/books/handbook/linuxemu/_index.adoc
index 00d624e032..9064517aba 100644
--- a/documentation/content/es/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/es/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ Antes de leer este capítulo es necesario que sepa:
La compatibilidad binaria con Linux no viene activada por omisión. La forma más sencilla de habilitarla es cargar el KLD ("objeto cargable en el kernel") `linux`. Como usuario `root` proceda del siguiente modo:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
Utilice man:kldstat[8] para verificar que el KLD esté cargado:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ Puede hacerse de dos maneras, ya sea usando el port <<linuxemu-libs-port,linux_b
Este es con mucho el método mas sencillo para instalar bibliotecas de ejecución. Es como instalar cualquier otro port de la link:file://localhost/usr/ports/[Colección de Ports]. Es tan sencillo como esto:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base
# make install distclean
@@ -131,7 +131,7 @@ Si tiene acceso a un sistema Linux busque en él qué bibliotecas necesita la ap
Asumiremos que utilizó FTP para conseguir los binarios Linux de Doom y los puso en un sistema Linux. Para ver qué bibliotecas compartidas necesitará ejecute `ldd linuxdoom`:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -141,7 +141,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Necesitaría todos los ficheros de la segunda columna, y tendrá que ponerlos en [.filename]#/compat/linux# con los nombres de la primera columna como enlaces simbólicos apuntando hacia ellos. De este modo tendría en su sistema FreeBSD los siguientes ficheros:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -155,7 +155,7 @@ Necesitaría todos los ficheros de la segunda columna, y tendrá que ponerlos en
====
Recuerde que si ya tiene una biblioteca compartida Linux con un número de versión mayor que coincida con la primera columna de la salida de `ldd` no necesitará copiar el fichero que aparece en la última columna; el que tiene debería funcionar, aunque se aconseja copiar la biblioteca compartida de todas maneras si es una nueva versión. Puede eliminar la vieja siempre que haga que el enlace simbólico apunte a la nueva. Si tiene estas bibliotecas en su sistema:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -163,14 +163,14 @@ Recuerde que si ya tiene una biblioteca compartida Linux con un número de versi
y un binario requiere una versión más reciente (como indica la siguiente salida de `ldd`):
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
si solo ve una o dos versiones desfasadas en los últimos dígitos no se preocupe de copiar [.filename]#/lib/libc.so.4.6.29#, el programa debería funcionar bien con una versión ligeramente antigua. De todas formas, si así lo prefiere, puede actualizar [.filename]#libc.so#; el resultado sería este:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -187,7 +187,7 @@ El mecanismo de enlazado simbólico _sólamente_ es necesario con binarios Linux
Los binarios ELF algunas veces requieren un paso extra de "marcado". Si trata de ejecutar un binario ELF no marcado recibirá un mensaje de error como el siguiente:
-[source,bash]
+[source,shell]
....
% ./mi-binario-elf
ELF binary type not known
@@ -196,7 +196,7 @@ Abort
Para ayudar al kernel de FreeBSD a distinguir entre un binario ELF de FreeBSD y uno de Linux utilice man:brandelf[1].
-[source,bash]
+[source,shell]
....
% brandelf -t Linux mi-binario-elf-de-linux
....
@@ -207,7 +207,7 @@ Las herramientas GNU se encargan de ubicar automáticamente la marca apropiada e
Si el DNS no funciona u obtiene este mensaje:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -234,7 +234,7 @@ Puede pedir a Wolfram, el fabricante, La versión para para Linux de Mathematica
Lo primero que tiene que hacer es decirle a FreeBSD que los binarios de Mathematica(R) para Linux utilizan la ABI Linux. La forma más sencilla de hacerlo es marcar por omisión todos los binarios sin marcas como Linux ELF.
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -243,7 +243,7 @@ Hecho esto FreeBSD asumirá que cualquier binario sin marca que encuentre utiliz
Copie el fichero [.filename]#MathInstaller# en su disco duro
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /directoriolocal/
@@ -281,7 +281,7 @@ La primera es copiarlos en uno de los directorios de tipos que hay en [.filename
La segunda forma de utilizar estos tipos es copiarlos bajo [.filename]#/usr/X11R6/lib/X11/fonts#:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -297,7 +297,7 @@ La segunda forma de utilizar estos tipos es copiarlos bajo [.filename]#/usr/X11R
Añada los nuevos directorios de tipos a su ruta de tipos:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -383,7 +383,7 @@ exit 0
. Prueba de arranque de Maple(TM):
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -436,7 +436,7 @@ Para instalar MATLAB(R) haga lo siguiente:
. Inserte el CD de instalación y móntelo. Conviértase en `root` e inicie la instalación:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -474,7 +474,7 @@ La instalación MATLAB(R) ha finalizado. Los siguientes pasos aplicarán el "peg
. Crée los enlaces simbólicos que necesitan los "scripts" del administrador de licencias:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -510,7 +510,7 @@ exit 0
====
El fichero debe ser ejecutable:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -521,7 +521,7 @@ Tendrá que reemplazar la entrada _nombre-de-usuario_ de nuestro ejemplo por un
. Arranque el administrador de licencias:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -531,7 +531,7 @@ Tendrá que reemplazar la entrada _nombre-de-usuario_ de nuestro ejemplo por un
Cambie el enlace del entorno de ejecución Java(TM) (JRE) a uno que funcione en FreeBSD:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -606,7 +606,7 @@ exit 0
. El fichero tiene que ser ejecutable:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -629,7 +629,7 @@ Debe tener instalados los ports package:emulators/linux_base[] y package:devel/l
Si quiere usar el agente inteligente también tendrá que instalar el paquete Tcl de Red Hat, [.filename]#tcl-8.0.3-20.i386.rpm#. La orden genérica para instalar paquetes con el port oficial de RPM (package:archivers/rpm[]) es:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm paquete
....
@@ -716,7 +716,7 @@ Debido a una pequeña inconsistencia en el emulador Linux tendrá que crear un d
Un problema que se da con una cierta frecuencia es que el adaptador del protocolo TCP no está correctamente instalado. Como consecuencia no puede iniciarse ninguna escucha TCP, a las que también se les llama directamente «listeners». Esto le ayudará a resolver el problema.:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -1078,7 +1078,7 @@ Descargue las fuentes -STABLE más recientes. Ejecute `make world` y compile su
Primero instale el port <<linuxemu-libs-port,linux_base>> (como `root`):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base
# make install distclean
@@ -1089,7 +1089,7 @@ Primero instale el port <<linuxemu-libs-port,linux_base>> (como `root`):
El entorno de desarrollo Linux es imprescindible si quiere instalar Oracle(R) en FreeBSD según se explica en la <<linuxemu-oracle>>:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/linux_devtools
# make install distclean
@@ -1102,7 +1102,7 @@ El entorno de desarrollo Linux solo ha de instalarse si sigue el proceso para in
Necesitará soporte PAM para iniciar el programa `R3SETUP`. Durante la primera instalación de SAP(R) en FreeBSD 4.3-STABLE intentamos instalar PAM con todas las dependencias y finalmente forzamos la instalación del paquete PAM, y funcionó. En SAP(R) R/3(R) 4.6C SR2 forzamos la instalación del RPM PAM, que también funcionó, así que parece que las dependencias no lo son tanto:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \
pam-0.68-7.i386.rpm
@@ -1141,7 +1141,7 @@ Para una instalación sencilla es suficiente con crear los siguientes sistemas d
También es necesario crear algunos enlaces. Si no, el instalador SAP(R) tendrá problemas ya que buscará los siguientes enlaces:
-[source,bash]
+[source,shell]
....
# ln -s /compat/linux/oracle /oracle
# ln -s /compat/linux/sapmnt /sapmnt
@@ -1150,7 +1150,7 @@ También es necesario crear algunos enlaces. Si no, el instalador SAP(R) tendrá
Veamos unos cuantos errores que se le pueden presentar durante la instalación (en este caso con el sistema _PRD_ y la instalación de SAP(R) R/3(R) 4.6C SR2):
-[source,bash]
+[source,shell]
....
INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200
Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to
@@ -1260,7 +1260,7 @@ Estos directorios se crean como sistemas de ficheros independientes. Esto depend
Primero vamos a configurar los propietarios y los derechos de algunos directorios (como `root`):
-[source,bash]
+[source,shell]
....
# chmod 775 /oracle
# chmod 777 /sapmnt
@@ -1271,7 +1271,7 @@ Primero vamos a configurar los propietarios y los derechos de algunos directorio
Luego vamos a crear directorios como el usuario `ora__sid__`. Estos serán todos subdirectorios de [.filename]#/oracle/SID#:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle/SID
@@ -1283,7 +1283,7 @@ Luego vamos a crear directorios como el usuario `ora__sid__`. Estos serán todos
Para la instalación de Oracle(R) 8.1.7 tendrá que crear unos cuantos directorios más:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle
@@ -1302,7 +1302,7 @@ El directorio [.filename]#client/80x_32# tiene que tener exactamente este nombre
En el tercer paso creamos directorios como usuario `__sid__adm`:
-[source,bash]
+[source,shell]
....
# su - sidadm
# cd /usr/sap
@@ -1342,7 +1342,7 @@ en_US.ISO-8859-1
Haga los enlaces de esta manera:
-[source,bash]
+[source,shell]
....
# cd /compat/linux/usr/shared/locale
# ln -s de_DE de_DE.ISO-8859-1
@@ -1401,7 +1401,7 @@ Hay que montar y desmontar muchos CD-ROM durante la instalación. Si tiene sufic
Donde _nombre-cd_ era [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#EXPORT1#, [.filename]#EXPORT2#, [.filename]#EXPORT3#, [.filename]#EXPORT4#, [.filename]#EXPORT5# y [.filename]#EXPORT6# para la instalación 4.6B/IDES, y [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#DISK1#, [.filename]#DISK2#, [.filename]#DISK3#, [.filename]#DISK4# y [.filename]#LANG# para la instalación 4.6C SR2. Todos los nombres de fichero en los CDs montados deben estar en mayúsculas; si no es así use la opción `-g` al montar. Utilice lo siguiente:
-[source,bash]
+[source,shell]
....
# mount_cd9660 -g /dev/cd0a /mnt
# cp -R /mnt/* /oracle/SID/sapreorg/nombre-cd
@@ -1413,7 +1413,7 @@ Donde _nombre-cd_ era [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#EXPOR
Primero tendrá que preparar un directorio [.filename]#install#:
-[source,bash]
+[source,shell]
....
# cd /oracle/SID/sapreorg
# mkdir install
@@ -1422,7 +1422,7 @@ Primero tendrá que preparar un directorio [.filename]#install#:
Una vez arrancado el "script" de instalación copiará casi todos los ficheros relevantes en el directorio [.filename]#install#:
-[source,bash]
+[source,shell]
....
# /oracle/SID/sapreorg/KERNEL/UNIX/INSTTOOL.SH
....
@@ -1438,14 +1438,14 @@ Durante y después de la instalación, SAP(R) necesita que `hostname` devuelva _
Asegúrese de que `LD_LIBRARY_PATH` esté configurada correctamente:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib
....
Inicie `R3SETUP` como `root` desde el directorio de instalación:
-[source,bash]
+[source,shell]
....
# cd /oracle/IDS/sapreorg/install
# ./R3SETUP -f CENTRDB.R3S
@@ -1592,14 +1592,14 @@ Aparte de algunos problemas que se detallan más adelante deberíamos ir llegand
Asegúrese de que `LD_LIBRARY_PATH` esté correctamente configurada. Tenga en cuenta de que es un valor diferente de la instalación 4.6B con Oracle(R) 8.0.5:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib
....
Arranque `R3SETUP` como el usuario `root` desde el directorio de instalación:
-[source,bash]
+[source,shell]
....
# cd /oracle/PRD/sapreorg/install
# ./R3SETUP -f CENTRAL.R3S
@@ -1727,7 +1727,7 @@ Instale el paquete Tcl de RedHat para compilar el agente inteligente. Si no pued
Aparte del reenlazado, la instalación es muy sencilla:
-[source,bash]
+[source,shell]
....
# su - oraids
# export TERM=xterm
@@ -1797,7 +1797,7 @@ Aquí tuvimos problemas con `dipgntab` en la instalación de 4.6B.
Arranque las escuchas de Oracle(R) con el usuario `ora__sid__` de la siguiente manera:
-[source,bash]
+[source,shell]
....
% umask 0; lsnrctl start
....
@@ -1822,14 +1822,14 @@ Aunque no necesite soporte MNLS sigue siendo necesario que revise la tabla TCPDB
Tiene que solicitar una licencia de SAP(R) R/3(R). No tendrá más remedio, puesto que la licencia temporal que se usa durante la instalación tiene un límite de validez de cuatro semanas. Necesitará la llave hardware. Entre al sistema como usuario `idsadm` y ejecute `saplicense`:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -get
....
Si ejecuta `saplicense` sin parámetros verá una lista de opciones. Una vez que tenga la licencia en su poder la podrá instalar del siguiente modo:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -install
....
@@ -1982,14 +1982,14 @@ Mem: 547M Active, 305M Inact, 109M Wired, 40M Cache, 112M Buf, 3492K Free
Cuando quiera reiniciar `R3SETUP` inícielo con el fichero [.filename]#R3S# correspondiente:
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRDB.R3S
....
en el caso de 4.6B, o con
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRAL.R3S
....
@@ -2075,7 +2075,7 @@ Este error tuvo lugar con Oracle(R) 8.1.7. Aparece si se arranca la base de dato
Una solución (entre otras) es iniciar la base de datos con el usuario `oraprd` en lugar de hacerlo con `svrmgrl`:
-[source,bash]
+[source,shell]
....
% svrmgrl
SVRMGR> connect internal;
@@ -2088,7 +2088,7 @@ SVRMGR> exit
Inicie la escucha de Oracle(R) como usuario `oraids` con la siguiente orden:
-[source,bash]
+[source,shell]
....
# umask 0; lsnrctl start
....
@@ -2121,7 +2121,7 @@ se usaron las siguientes rutas:
Para continuar con la instalación creamos un enlace y un directorio adicional:
-[source,bash]
+[source,shell]
....
# pwd
/compat/linux/usr/sap
@@ -2195,7 +2195,7 @@ El cargador ELF busca entonces una marca (_brand_) especial, una sección de com
Para que los binarios de Linux funcionen deben estar marcados con man:brandelf[1] como tipo `Linux`:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/es/books/handbook/mail/_index.adoc b/documentation/content/es/books/handbook/mail/_index.adoc
index 0ec7bdd317..bdc7e41125 100644
--- a/documentation/content/es/books/handbook/mail/_index.adoc
+++ b/documentation/content/es/books/handbook/mail/_index.adoc
@@ -103,7 +103,7 @@ El DNS es la entidad responsable de asociar nombres con direcciones IP, pero ade
Se pueden consultar los registros MX para cualquier dominio utilizando el comando man:host[1], como se puede observar en el siguiente ejemplo:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -540,7 +540,7 @@ En las instalaciones del sistema FreeBSD por defecto sendmail se configura para
Existen varias formas de solventar este problema. La más sencilla consiste en escribir la dirección IP de su proveedor de servicios dentro del fichero [.filename]#/etc/mail/relay-domains#. Una forma rápida de hacerlo sería:
-[source,bash]
+[source,shell]
....
# echo "un.isp.ficticio.com" > /etc/mail/relay-domains
....
@@ -579,7 +579,7 @@ Cumpliendo las dos puntualizaciones anteriores podemos recibir correo electróni
Por ejemplo:
-[source,bash]
+[source,shell]
....
# hostname
ejemplo.FreeBSD.org
@@ -591,7 +591,7 @@ Si se observa esta configuración la entrega directa de correo para mailto:su_lo
Si en lugar de lo anterior ve algo como esto:
-[source,bash]
+[source,shell]
....
# host ejemplo.FreeBSD.org
ejemplo.FreeBSD.org has address 204.216.27.XX
@@ -663,7 +663,7 @@ El ajuste de forma manual del archivo [.filename]#/etc/mail/sendmail.cf# es un t
Si no se instaló el sistema base con todas las fuentes el conjunto de ficheros de configuración de sendmail se puede obtener a partir de un paquete de fuentes determinado. Suponiendo que tengamos el CDROM con el código fuente de FreeBSD montado se puede ejecutar:
-[source,bash]
+[source,shell]
....
# cd /cdrom/src
# cat scontrib.?? | tar xzf - -C /usr/src/contrib/sendmail
@@ -675,7 +675,7 @@ La mejor forma de soportar la entrega de correo mediante UUCP es utilizando la c
En primer lugar creamon el fichero [.filename]#.mc#. El directorio [.filename]#/usr/src/usr.sbin/sendmail/cf/cf# alberga varios ejemplos del mismo. Suponiendo que nuestro fichero configuración se llama [.filename]#foo.mc# para convertir dicho archivo en un fichero [.filename]#sendmail.cf# válido basta con ejecutar lo siguiente:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail/cf/cf
# make foo.cf
@@ -737,7 +737,7 @@ Recuerde que este fichero debe convertirse en una base de datos DBM antes de que
Un consejo final: si dudamos sobre una determinada ruta de encaminamiento de correo se puede ejecutar sendmail con el parámetro `-bt`. Este parámetro ejecuta sendmail en _modo prueba de direcciones_; simplemente basta con escribir `3,0` seguido por la dirección de correo de la que queremos comprobar su correcto encaminamiento. La última línea nos dice el agente de correo interno que se utiliza, la máquina de destino con que el agente será invocado y la dirección (posiblemente traducida) de correo. Se puede abandonar este modo de funcionamiento escribiendo kbd:[Ctrl+D].
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -763,7 +763,7 @@ Si además estamos utilizando un servicio de acceso a internet típico nuestro c
La forma más sencilla de utilizar un servicio de pasarela es mediante la instalación del port package:mail/ssmtp[]. Basta con ejecutar el siguiente comando como `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -873,7 +873,7 @@ SENDMAIL_LDADD=-lsasl
Estas líneas proporcionan a sendmail las opciones de configuración necesarias para enlazar con package:cyrus-sasl[] en tiempo de compilación. Debemos asegurarnos de que package:cyrus-sasl[] ha sido instalado correctamente recompilar sendmail.
. Recompile sendmail utilizando el siguiente comando:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail
# make cleandir
@@ -925,14 +925,14 @@ Aunque `mail` no soporta de forma nativa la interacción con servidores de corre
Para enviar y recibir correo eletrónico basta con ejecutar el comando `mail`. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
% mail
....
El contenido de la carpeta de usuario en el directorio [.filename]#/var/mail# se leen automáticamente. Si la carpeta se encuentra vacía la aplicación termina su ejecución con un mensaje que indica que no ha podido encontrar correo. Una vez que la carpeta ha sido leída la interfaz de la aplicación entra en funcionamiento y se muestra por pantalla un listado de los mensajes recuperados. Los mensajes se numeran automáticamente y pueden leerse como se observa en el siguiente ejemplo:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -944,7 +944,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Los mensajes se pueden leer utilizando el comando kbd:[
t] de `mail` escribiendo a continuación el número del mensaje que queremos leer. En este ejemplo vamos a leer el primer correo:
-[source,bash]
+[source,shell]
....
% t 1
Message 1:
@@ -963,7 +963,7 @@ Como podemos observar en el ejemplo anterior el comando kbd:[t] muestra el conte
Si el correo eletrónico requiere una contestación se puede utilizar la aplicación `mail` para responder utilizando la tecla kbd:[R] o kbd:[r]. La tecla kbd:[R] indica a `mail` que conteste sólo al origen (remitente) del correo, mientras que la tecla kbd:[r] tanto al remitente a los otros usuarios receptores del mensaje original. Además ambos comandos se pueden ejecutar escribiendo a continuación el número que identifica al mensaje que se quiere responder. Tras esto la respuesta puede redactarse , y se debe indicar el final del mensaje mediante un punto (kbd:[.]) a continuación de un salto de línea. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
% R 1
To: root@localhost
@@ -976,7 +976,7 @@ EOT
Para enviar nuevos correos eletrónicos se debe utilizar la tecla kbd:[m] seguida de la dirección de de correo del destinatario. Se pueden especificar varios destinatarios de correo separando cada dirección de correo con una coma ( kbd:[,] ). El asunto del mensaje de correo se puede escribir a continuación seguido por el cuerpo del mensaje. El final del mensaje se especifica como en el caso anterior, utilizando un kbd:[.] tras un saldo de línea y pulsando la tecla "enter".
-[source,bash]
+[source,shell]
....
% mail root@localhost
Subject: I mastered mail
@@ -1008,7 +1008,7 @@ Toda estas características hacen de mutt uno de los agentes de correo más avan
La versión estable de mutt se puede instalar usando el port package:mail/mutt[] mientras que la versión de desarrollo está en package:mail/mutt-devel[]. Una vez que se ha instalado el port, mutt puede ejecutarse mediante el siguiente comando:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -1047,7 +1047,7 @@ Se han descubierto en pine varias vulnerabilidades que pueden explotarse de form
La versión actual de pine se puede instalar utilizando el port package:mail/pine4[]. Una vez que se ha instalado pine se puede ejecutar mediante el siguiente comando:
-[source,bash]
+[source,shell]
....
% pine
....
@@ -1088,7 +1088,7 @@ fetchmail es un cliente de IMAP y POP que permite a los usuarios descargar autom
Queda fuera del objetivo de este documento explicar todas las características de fetchmail pero algunas de ellas se exponen a ontinuación. fetchmail usa un fichero de configuración denominado [.filename]#.fetchmailrc#. Este fichero incluye información sobre el servidor de correo remoto y los datos necesarios para poder hacer login en él. Debido a la naturaleza sensible de la información que se almacena en dicho fichero se recomienda modificar los permisos para que sea de sólo sea legible por su propietario. Lo conseguirá mediante el siguiente comando:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1113,7 +1113,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail se puede ejecutar en modo dæmon mediante el parámetro `-d` seguido seguido por un intervalo de tiempo (expresado en segundos) que indica cada cuánto tiempo debe fetchmail interrogar a los distintos servidores listados en [.filename]#.fetchmailrc#. El siguiente ejemplo hace que fetchmail interroge cada 60 segundos:
-[source,bash]
+[source,shell]
....
% fetchmail -d 60
....
diff --git a/documentation/content/es/books/handbook/multimedia/_index.adoc b/documentation/content/es/books/handbook/multimedia/_index.adoc
index b63734b2b3..4dc9c814cc 100644
--- a/documentation/content/es/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/es/books/handbook/multimedia/_index.adoc
@@ -86,7 +86,7 @@ Antes de nada tendrá que saber a ciencia cierta el modelo de tarjeta que tiene,
Para poder usar su dispositivo de sonido en FreeBSD tiene que cargar el controlador de dispositivo adecuado, cosa que puede hacerse de dos maneras. La forma más fácil es cargar el módulo del kernel correspondiente a su tarjeta de sonido mediante man:kldload[8]. Puede hacerlo en su shell con la siguiente orden
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -100,7 +100,7 @@ snd_emu10k1_load="YES"
Ambos ejemplos son para una tarjeta de sonido Creative SoundBlaster(R) Live!. Encontrará una lista de módulos de sonido que puede cargar del mismo modo en [.filename]#/boot/defaults/loader.conf#. Si no está del todo seguro sobre el controlador que debe usar pruebe con el módulo [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -159,7 +159,7 @@ En el ejemplo se muestran los parámetros por omisión. En ciertos casos habrá
Una vez que haya reiniciado con su kernel personalizado, o tras cargar el mólo del kernel necesario la tarjeta de sonido aparecerá en el búfer de mensajes del sistema (man:dmesg[8]); deberí ser algo muy parecido a esto:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -168,7 +168,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
Puede comprobar el estado de la tarjeta de sonido en el fichero [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -181,7 +181,7 @@ El resultado en su sistema seguramente será distinto. Si no aparecen dispositiv
Si todo ha ido bien ya tiene una tarjeta de sonido funcionando en su sistema. Si los pins de salida de sonido de su CD-ROM o DVD-ROM están colocados correctamente puede poner un CD en la unidad y reproducirlo con man:cdcontrol[1].
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -190,7 +190,7 @@ Hay muchas aplicaciones como package:audio/workman[] que le ofrecerán un interf
Hay otra via aún más rápida de probar su tarjeta de sonido. Envíe datos a to [.filename]#/dev/dsp# del siguiente modo:
-[source,bash]
+[source,shell]
....
% cat fichero > /dev/dsp
....
@@ -238,7 +238,7 @@ FreeBSD permite hacerlo gracias a los _Virtual Sound Channels_ (`canales virtual
El número de canales virtuales se configura utilizando dos sysctl; como `root` escriba lo siguiente:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4
@@ -282,7 +282,7 @@ El port package:audio/mpg123[] es un reproductor MP3 que se usa desde la shell.
Puede especificarle desde la misma línea de órdenes a mpg123 el dispositivo de sonido que debe usar y el fichero MP3 que debe reproducir. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 ASaber-GrandesÉxitos.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -305,14 +305,14 @@ La herramienta `cdda2wav`, que forma parte del port package:sysutils/cdrtools[],
Con el CD en la unidad la siguiente orden (como `root`) un CD entero en ficheros WAV individuales, uno por pista:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav soporta unidades CDROM ATAPI (IDE). En el caso de unidades IDE especifique el número de dispositivo en el lugar correspondiente al núro de unidad SCSI. Por ejemplo, para extraer la pista 7 desde una unidad IDE:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -321,14 +321,14 @@ La opción `-D _0,1,0_` indica el dispositivo SCSI [.filename]#0,1,0#, que corre
Para extraer pistas de forma selectiva use la opción `-t`:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Esta opción extrae la séptima pista de un CDROM de sonido. Si quiere extraer un rango de pistas, por ejemplo las pistas de la uno a la siete, declare el rango del siguiente modo:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -342,7 +342,7 @@ Hoy por hoy el codificador de MP3 por antonomasia es lame. Puede encontrar lame
Partiendo de ficheros WAV previamente extraidos la siguiente orden convierte [.filename]#audio01.wav# en [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Título de copla o cantar" \
@@ -381,7 +381,7 @@ Escritura de la salida estándar en mpg123:
XMMS genera un fichero WAV, mientras que mpg123 convierte MP3 a datos de sonido raw PCM. Puede usar cdrecord con ambos formatos para crear CD de sonido. Tendrá que usar man:burncd[8] para raw PCM. Si lo que tiene son ficheros WAV escuchará un ligero clic al principio de cada pista: se trata de la cabecera del fichero WAV. Puede eliminar esta cabecera mediante SoX (que puede instalar como port desde package:audio/sox[] o si lo prefiere como package):
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 pista.wav pista.raw
....
@@ -397,7 +397,7 @@ Antes de comenzar es imprescindible que sepa con certeza cuál es el modelo de s
Le recomendamos que tenga a mano un fichero MPEG no muy grande para usarlo en las pruebas que haga con los diversos reproductores y opciones. Algunos reproductores de DVD buscarán por omisión soportes DVD en [.filename]#/dev/dvd# (algunos incluso tienen fijado en el código el nombre de dicha unidad) seguramente le resultará útil ejecutar los siguientes enlaces simbólicos:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -441,14 +441,14 @@ Xorg y XFree86(TM) 4.X tienen una extensión llamada _XVideo_ (también conocida
Utilice `xvinfo` para saber qué extensión está utilizando:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo is supported for your card if the result looks like:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -524,7 +524,7 @@ Tenga en cuenta que los formatos que aparecen en el listado (YUV2, YUV12, etc) n
Si el resultado se parece mucho a esto
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -581,7 +581,7 @@ MPlayer es un reproductor de vídeo desarrollado muy recientemente y con un desa
Encontrará MPlayer en package:multimedia/mplayer[]. MPlayer ejecuta una serie de pruebas de hardware durante el proceso de compilación, dando como resultado un binario que no tiene por qué funcionar en otros sistemas. Recuerde, por tanto, compilar la aplicación como port y no utilice el package binario. Además hay múltiples parámetros que puede pasarle a `make`, tal y como verá al comenzar la compilación:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -609,7 +609,7 @@ La documentación en HTML de MPlayer es muy informativa. Si el lector no cubre t
Los usuarios de MPlayer deben crear un subdirectorio [.filename]#.mplayer# en su «home». Para crear este directorio (necesario para el funcionamiento de la aplicación) teclée lo siguiente:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -619,27 +619,27 @@ Las opciones de `mplayer` para la línea de órdenes se detallan en la página d
Para reproducir el fichero [.filename]#ficherodeprueba.avi#, mediante una de las diversas interfaces de vídeo utilice la opción `-vo`:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv ficherodeprueba.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl ficherodeprueba.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 ficherodeprueba.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga ficherodeprueba.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' ficherodeprueba.avi
....
@@ -648,7 +648,7 @@ Merece la pena que pruebe todas, puesto que el rendimiento relativo depende en g
Si quiere reproducir un DVD sustituya [.filename]#ficherodeprueba.avi# por `dvd://_N_ -dvd-device _DISPOSITIVO_`, donde _N_ es el número de título que quiere reproducir y [.filename]#DISPOSITIVO# es el nodo de dispositivo del DVD-ROM. Veamos un ejemplo: para reproducir el título 3 desde [.filename]#/dev/dvd# ejecutaremos:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -673,7 +673,7 @@ zoom=yes
Para terminar, puede usar `mplayer` para extraer un título de un DVD a un fichero [.filename]#.vob#. Por ejemplo, si quiere extraer el segundo título de un DVD escriba esto:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile salida.vob dvd://2 -dvd-device /dev/dvd
....
@@ -685,7 +685,7 @@ El fichero de salida, [.filename]#salida.vob#, un MPEG y puede manipularlo con l
Antes de empezar a usar `mencoder` le recomendamos que se familiarice con las opciones que se detallan en la documentación HTML. Hay también una página de manual, pero no es de mucha utilidad sin la documentación HTML. Hay una ingente cantidad de formas de mejorar la calidad, reducir el ratio de bits y cambiar formatos; alguno de esos pequeños trucos pueden marcar la diferencia entre un buen y un mal rendimiento. Le mostramos un par de ejemplos por los que puede empezar. El primero es una simple copia:
-[source,bash]
+[source,shell]
....
% mencoder entrada.avi -oac copy -ovc copy -o salida.avi
....
@@ -694,7 +694,7 @@ Ciertas combinaciones erróneas de opciones en la línea de órdenes pueden dar
Para convertir [.filename]#entrada.avi# con codificación MPEG4 y audio con codificación MPEG3 (necesitará package:audio/lame[]):
-[source,bash]
+[source,shell]
....
% mencoder entrada.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o salida.avi
@@ -717,14 +717,14 @@ Comparado con MPlayerxine deja las cosas más hechas para el usuario, pero al mi
Por omisión xine arranca con un intefaz gráfico de usuario. Los menús pueden usarse para abrir un fichero en concreto:
-[source,bash]
+[source,shell]
....
% xine
....
También puede invocar la aplicación desde la línea de órdenes para que reproduzca un fichero inmediatamente y sin utilizar el GUI:
-[source,bash]
+[source,shell]
....
% xine -g -p fichero.avi
....
@@ -736,7 +736,7 @@ transcode no es un reproductor, sino una suite de herramientas para recodificar
Puede configurar gran cantidad de opciones en el momento de la compilación de package:multimedia/transcode[]; le recomendamos que use la siguiente línea de órdenes para compilar transcode:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -746,7 +746,7 @@ La configuración que le proponemos deberí satisfacer a la mayoría de los usua
Veamos un ejemplo ilustrativo de las posibilidades de `transcode`: convertir un fichero DivX en un fichero PAL MPEG-1 (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -823,7 +823,7 @@ options OVERRIDE_TUNER=6
Puede utilizar directamente man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -876,7 +876,7 @@ Según cual sea el chipset de su placa base tendrá que usar `device uhci` o `de
Si por cualquier motivo no quiere recompilar su kernel y su kernel no es el [.filename]#GENERIC# puede cargar el módulo controlador de dispositivo man:uscanner[4] con man:kldload[8]:
-[source,bash]
+[source,shell]
....
# kldload uscanner
....
@@ -890,7 +890,7 @@ uscanner_load="YES"
Tras reiniciar con el kernel correcto (o una vez que el módulo esté cargado) conecte su escáner USB. Debe aparecer en el «buffer» de mensajes del sistema (man:dmesg[8]) un mensaje una línea como la siguiente:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -909,7 +909,7 @@ device pass
Una vez compilado e instalado el kernel correctamente tiene ya que ver sus nuevos dispositivos en el «buffer» de mensajes del sistema:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -918,7 +918,7 @@ pass2: 3.300MB/s transfers
Si su escáner estaba apagado durante el arranque puede forzar manualmente la detección si ejecuta una búsqueda de buses SCSI con man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -929,7 +929,7 @@ Re-scan of bus 3 was successful
El escáner aparecerá en la lista de dispositivos SCSI:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -946,7 +946,7 @@ El sistema SANE se divide en dos partes: los «backends» (package:graphics/sane
Lo primero que hay que hacer es instalar el port o package de package:graphics/sane-backends[]. Después ejecute la orden `sane-find-scanner` para comprobar el funcionamiento de la detección de escáneres del sistema SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -961,7 +961,7 @@ Algunos escáneres USB necesitan que les instale un «firmware»; esto se explic
Ahora hay que comprobar que el «frontend» de escaneo puede identificar el escáner. Por omisión los «backends» de SANE incorporan una herramienta de línea de órdenes llamada man:sane[1], que le mostrará una lista de dispositivos e incluso una captura de imagen desde la shell. La opción `-L` muestra una lista de escáners:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -971,7 +971,7 @@ Si el software no lanza ningún mensaje, o si el mensaje indica que no se han en
Por ejemplo, con el escáner que hemos usado en la <<scanners-kernel-usb>> la orden `sane-find-scanner` nos da la siguiente información:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -979,7 +979,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
El escáner ha sido detectado sin problemas, utiliza el interfaz USB y está conectado al nodo de dispositivo [.filename]#/dev/uscanner0# . Ahora comprobaremos que podemos identificar correctamente el escáner:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -998,7 +998,7 @@ usb /dev/uscanner0
Por favor, lea los comentarios que encontrará en el fichero de configuración del «backend» y la pángina de manual de del «backend» si necesita más información sobre la sintaxis que debe usar. Hecho esto podemos verificar si ya podemos identificar el escáner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1016,7 +1016,7 @@ Otro «frontend» gráfico para escanear que se ha hecho muy popular es Xsane (p
Todo lo que se ha mostrado en esta sección se ha ejecutado con privilegios de `root`. Lo normal es que haya otros usuarios que tengan que tener acceso al escáner. Un usuario que quiera usar el escáner tiene que tener acceso de lectura y escritura al nodo de dispositivo que usa el escáner. Por ejemplo, nuestro escáner USB utiliza el nodo de dispositivo [.filename]#/dev/uscanner0# propiedad del grupo `operator`. Al añadir al usuario `_joe_` al grupo `operator` éste podrá acceder al escáner:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m joe
....
diff --git a/documentation/content/es/books/handbook/ports/_index.adoc b/documentation/content/es/books/handbook/ports/_index.adoc
index 9d95a6deea..b668f56b59 100644
--- a/documentation/content/es/books/handbook/ports/_index.adoc
+++ b/documentation/content/es/books/handbook/ports/_index.adoc
@@ -126,7 +126,7 @@ La lista de software disponible para FreeBSD crece constantemente. Afortunadamen
* Si no conoce el nombre de la aplicación que desea pruebe a usar un sitio como FreshMeat (http://www.freshmeat.net/[http://www.freshmeat.net/]) para encontrar una aplicación; después consulte el sitio web de FreeBSD para ver si la aplicación ha sido portada.
* Si sabe el nombre exacto del port y solo necesita saber en qué categoria está puede usar man:whereis[1]. Simplemente escriba `whereis fichero`, donde _fichero_ es el programa que quiera instalar. Si está en su sistema, le dirá dónde está:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -135,7 +135,7 @@ lsof: /usr/ports/sysutils/lsof
Esto nos dice que `lsof` (una utilidad de sistema) está en el directorio [.filename]#/usr/ports/sysutils/lsof#.
* Otra forma de encontrar un port en particular es usando el mecanismo de búsqueda integrado en la colección de ports. Para poder usar esta opción de búsqueda debe estar en el directorio [.filename]#/usr/ports#. Una vez en ese directorio ejecute `make search name=nombre-del-programa`, donde _nombre-del-programa_ es el nombre del programa que desea encontrar. Por ejemplo, si busca `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -165,7 +165,7 @@ Puede usar man:pkg_add[1] para instalar un package de FreeBSD desde un fichero l
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -196,7 +196,7 @@ ftp> exit
Si no tiene una fuente local de packages (por ejemplo un CDROM de FreeBSD) probablemente la mejor opción sea utilizar el argumento `-r` de man:pkg_add[1], que hará que determine automáticamente el formato del objeto correcto, para posteriormente descargarlo e instalarlo desde un FTP.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -216,7 +216,7 @@ La estructura del directorio de packageckages es idéntica a la de los ports, y
Para eliminar un package instalado en el sistema utilice man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
@@ -252,7 +252,7 @@ Asegúrese de que [.filename]#/usr/ports# está vacío antes de ejecutar csup po
. Ejecute `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -269,7 +269,7 @@ Puede usar una versión de [.filename]#ports-supfile# confeccionada a su gusto,
.. Reemplace _CHANGE_THIS.FreeBSD.org_ por un servidor CVSup que esté cerca de donde esté usted. Consulte crossref:mirrors[cvsup-mirrors,Réplicas CVSup] (crossref:mirrors[cvsup-mirrors,Servidores]) si necesita ver una lista completa de las mismas.
.. Ejecute `csup` del siguiente modo:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -285,34 +285,34 @@ Puede usar una versión de [.filename]#ports-supfile# confeccionada a su gusto,
Portsnap es un método alternativo de distribuir la Colección de Ports. Se incluyó por primera vez en FreeBSD 6.0. Puede instalar man:portsnap[8] en versiones anteriores de FreeBSD como port (package:ports-mgmt/portsnap[]) o como package:
-[source,bash]
+[source,shell]
....
# pkg_add -r portsnap
....
. Puede saltarse esta paso a partir de FreeBSD 6.1-RELEASE y en versiones recientes de Portsnap (port o package). [.filename]#/usr/ports# se creará automáticamente la primera vez que ejecute man:portsnap[8]. En versiones anteriores de portsnap había que crear un [.filename]#/usr/ports# vacío si no existía previamente:
+
-[source,bash]
+[source,shell]
....
# mkdir /usr/ports
....
. Descargue una instantánea comprimida de la Colección de Ports en [.filename]#/var/db/portsnap#. Hecho esto puede desconectar de Internet si quiere.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
. Si está ejecutando Portsnap por vez primera debe extraer la instantánea en [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Si ya tiene un [.filename]#/usr/ports# y solamente está actualizando su árbol de ports ejecute lo siguiente:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -326,7 +326,7 @@ Este método implica el uso de sysinstall para instalar la Colección de Ports.
. Como usuario `root` ejecute `sysinstall` (`/stand/sysinstall` en cualquier versión previa a FreeBSD 5.2); del siguiente modo:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -373,14 +373,14 @@ La Colección de Ports asume que tiene usted conexión con Internet. Si no es as
El primer paso es ubicarse en el directorio del port que desea instalar:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Una vez en el directorio [.filename]#lsof# puede ver el esqueleto del port. El siguiente paso es compilar el port. Solamente tiene que teclear `make` en el prompt. Una vez hecho verá algo como esto:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -405,7 +405,7 @@ Una vez en el directorio [.filename]#lsof# puede ver el esqueleto del port. El s
Una vez que acabe la compilación se le devolverá el control del prompt. El siguiente paso es instalar el port. Para ello bastará con que añada una palabra a la orden `make`: esa palabra es `install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -425,7 +425,7 @@ Una vez que vuelva usted al prompt podrá ejecutar la aplicación que acaba de i
Le recomendamos que borre el directorio que contiene todos los ficheros temporales necesarios durante la compilación. No solo consume valioso espacio en disco sino que puede dar problemas cuando vaya a actualizar el port a una versión más reciente.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -460,7 +460,7 @@ Si quiere compilar todos los ports de una categoría y de una sola vez ejecutand
En algunos casos (raros) el usuario tendrá que descargar los tarball de un sitio que no es el que se guarda en la variable de entorno `MASTER_SITES` (el sitio desde el que se descargan todos los demás normalmente). Puede sobreescribir la opción `MASTER_SITES` con la siguiente orden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -478,14 +478,14 @@ Algunos ports permiten (o incluso exigen) que se le faciliten opciones de compil
Algunas veces es útil (u obligatorio) utilizar un directorio de trabajo o un «target» distinto al que tenemos por omisión. Las variables de entorno `WRKDIRPREFIX` y `PREFIX` pueden sobreescribirse según nuestra conveniencia. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/ejemplo/ports install
....
compilará el port en [.filename]#/usr/home/ejemplo/ports# y lo instalará en [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/ejemplo/local install
....
@@ -494,7 +494,7 @@ lo compilará en [.filename]#/usr/ports# y lo instalará en [.filename]#/usr/hom
Y por supuesto,
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -516,7 +516,7 @@ Al compilar ciertos ports se le presentará un menú basado en ncurses en el cua
Ahora que sabe instalar ports probablemente quiera saber cómo eliminarlos; puede que haya instalado alguno y posteriormente se haya dado cuenta de que ha instalado el port incorrecto. Vamos a desinstalar el port del ejemplo anterior (que, para todos aquellos que no estaban atentos, era `lsof`). Igual que al instalar ports, lo primero que debemos hacer es ubicarnos en el directorio del port que deseamos eliminar del sistema, en nuestro caso [.filename]#/usr/ports/sysutils/lsof#. Los ports se desinstalan exactamente igual que los packages; esto se explica en la <<packages-using,sección de packages>>) utilizando la orden man:pkg_delete[1]:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -526,7 +526,7 @@ Ahora que sabe instalar ports probablemente quiera saber cómo eliminarlos; pued
Antes de nada necesita ver una lista de ports instalados de los cuales exista una nueva versión en la Colección de Ports. Utilice man:pkg_version[1]:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -543,7 +543,7 @@ Si [.filename]#UPDATING# se contradice de cualquier modo con lo que lea aquí te
La aplicación portupgrade se diseñó para actualizar fácilmente los ports instalados en un sistema. Puede instalarla desde el port package:ports-mgmt/portupgrade[]. La instalación es como al de cualquier otro port, use la orden `make install clean` command:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -553,21 +553,21 @@ Compruebe la lista de ports instalados con `pkgdb -F` y arregle todas las incons
Si ejecuta `portupgrade -a` portupgrade intentará actualizar todos y cada uno de los ports instalados en su sistema. Utilice el parámetro `-i` si quiere que le pida confirmación antes de actualizar cada uno de los ports.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Si solamente quiere actualizar una sola aplicación (y no absolutamente todos los ports) utilice la orden `portupgrade nombre-de-aplicación`. Añada el modificador `-R` si quiere que portupgrade actualice antes todos los ports de los que depende la aplicación en cuestión.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Si quiere usar packages en lugar de ports use el modificador `-P` flag. Con esta opción portupgrade busca en los directorios locales que aparezcan en `PKG_PATH` o descarga los packages desde un sitio remoto si es que no los encuentra en local. Si es imposible encontrar los packages ni en local ni en remoto portupgrade utilizará ports. Si no quiere usar ports pase lo que pase utilice el modificador `-PP`.
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -579,7 +579,7 @@ Si quiere solamente descargar los distfiles (o los packages, usando `-P`) sin co
Portmanager es otra aplicación pensada para la actualización sencilla de ports instalados en el sistema. Puede encontrarla en package:ports-mgmt/portmanager[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
@@ -587,21 +587,21 @@ Portmanager es otra aplicación pensada para la actualización sencilla de ports
Puede actualizar todos los ports que tenga instalados con una sola orden:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
Si usa el modificador `-ui` se le pedirá confirmación a cada paso que Portmanager vaya a dar. Portmanager también puede usarse para instalar nuevos ports. A diferencia del habitual `make install clean` actualizará todos los ports que dependan antes de compilar e instalar ese port que queramos instalar.
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
Si aparecen problemas con las dependencias del port que quiere instalar puede usar Portmanager para recompilar todos ello en el orden correcto. Una vez que acabe el port que estaba dando problemas será también recompilado.
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -613,7 +613,7 @@ Para más información consulte man:portmanager[1].
Portmaster es otra aplicación para actualizar ports. Portmaster se diseñó para que utilizara las herramientas del sistema «base» (es decir, no depende de otros ports) y utiliza la información que se almacena en el directorio [.filename]#/var/db/pkg/# para determinar qué port es el que hay que actualizar. Puede encontrarlo en package:ports-mgmt/portmaster[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -628,7 +628,7 @@ Portmaster agrupa los ports en cuatro categorías:
Puede ver una lista de los ports instalados y buscar actualizaciones para ellos usando el modificador `-L` :
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -655,7 +655,7 @@ Puede ver una lista de los ports instalados y buscar actualizaciones para ellos
Con la siguiente orden puede actualizar todos los ports del sistema:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -667,14 +667,14 @@ Por omisión Portmaster guardará una copia de seguridad (un package) de cada po
Si se encuentra con errores durante el proceso de actualización puede utilizar el modificador `-f` para actualizar o recompilar todos los ports:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
También puede usar Portmaster para instalar nuevos ports en el sistema, actualizando todas sus dependencias antes de compilar e instalar el nuevo port:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -686,21 +686,21 @@ Por favor, consulte man:portmaster[8] para más información.
Usar la Colección de Ports consume mucho espacio de disco según pasa el tiempo. Por culpa de la tendencia del árbol de ports a crecer sin parar le recomendamos que después de compilar e instalar sofware desde los ports recuerde limpiar los directorios temporales [.filename]#work# mediante la orden `make clean`. Puede limpiar de un plumazo los directorios temporales de toda la Colección de Ports con la siguiente orden:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Rápidamente acumulará gran cantidad de viejas distribuciones de código en [.filename]#distfiles#. Puede borrarlos a mano, pero también puede usar la siguiente orden para borrar todos los distfiles que no tengan relación con ningún port:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
También puede borrar todos los distfiles sin relación con ningún port instalado en el sistema:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -722,7 +722,7 @@ Obviamente los pasos exactos para configurar cada aplicación son distintos de u
* Use man:pkg_info[1] para ver qué ficheros se instalaron y dónde. Por ejemplo, si instalón el paquete Un-Package 1.0.0, lo siguiente:
+
-[source,bash]
+[source,shell]
....
# pkg_info -L un-package-1.0.0 | less
....
@@ -733,7 +733,7 @@ mostrará los ficheros instalados por el paquete. Preste especial atención a lo
Si no está seguro de qué versión del paquete ha instalado, teclée:
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i un-package
....
@@ -744,7 +744,7 @@ y verá todos los paquetes que se llaman _un-package_. Reemplace _un-package_ en
* Si la aplicación tiene sitio web visítelo. Es muy posible que encuentre más documentación, listas de preguntas frecuentes (FAQ), etc. Si no sabe cuál puede ser la dirección del sitio web examine la salida de la orden
+
-[source,bash]
+[source,shell]
....
# pkg_info un-package-1.0.0
....
diff --git a/documentation/content/es/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/es/books/handbook/ppp-and-slip/_index.adoc
index 45769d4cf4..e95a6b009e 100644
--- a/documentation/content/es/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/es/books/handbook/ppp-and-slip/_index.adoc
@@ -117,7 +117,7 @@ Para instalaciones de FreeBSD que no tienen el habilitado el DEVFS la existencia
La forma más sencilla de verificar si el dispositivo [.filename]#tun0# se encuentra configurado correctamente, es la de rehacer el dispositivo. Para hacer esto simplemente siga los siguientes pasos:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV tun0
@@ -125,7 +125,7 @@ La forma más sencilla de verificar si el dispositivo [.filename]#tun0# se encue
Si usted necesita 16 dispositivos tun en su kernel, deberá crearlos. Esto puede hacerse de la siguiente manera:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV tun15
@@ -291,7 +291,7 @@ Si usted esta utilizando el metodo PAP o CHAP, no habrá un login en este punto,
+
La cadena de acceso (login), utiliza la misma sintáxis que se utiliza en la cadena de marcado. En este ejemplo, la cadena sirve para un servicio, en el cual el inicio de sesión se ve algo así como lo siguiente:
+
-[source,bash]
+[source,shell]
....
Proveedor de servicios X
login: foo
@@ -406,7 +406,7 @@ exec /usr/sbin/ppp -direct $IDENT
Este script deberá ser ejecutable. Ahora cree un enláce simbólico llamado [.filename]#ppp-dialup# a este script, utilizando los siguientes comandos:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -420,7 +420,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Cree un directorio llamado [.filename]#/home/ppp# que contenga los siguentes archivos de 0 bytes:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -434,7 +434,7 @@ Cree el fichero [.filename]#ppp-shell# al igual que el mencionado con anteriorid
Por ejemplo, si usted cuenta con tres usuarios que utilicen este servicio; `fred`, `sam` y `mary`, los cuales redirecciona a una red de clase C, habria que hacer lo siguiente:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -674,7 +674,7 @@ sendmail_flags="-bd"
La parte negativa de esta conifguración es que tiene que forzar a `sendmail` a re-examinar los llamados del servidor de correo, cada vez que `ppp` realiza una conexión, con el siguiente comando:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -693,14 +693,14 @@ Si usted no desea hacer esto, es posible establecer un "dfilter" (filtro), para
Ahora lo único que queda pendiente de hacerse es reiniciar el equipo. Una vez reiniciado el equipo, puede teclear:
-[source,bash]
+[source,shell]
....
# ppp
....
y posteriormente `dial proveedor` para iniciar la sesión, o bien si desea que `ppp` inicie la sesión automáticamente, cuando haya una petición de salida (y no haya creado el fichero [.filename]#start_if.tun0#), puede teclear:
-[source,bash]
+[source,shell]
....
# ppp -auto proveedor
....
@@ -783,7 +783,7 @@ Para conectarse:
. Salga de kermit (sin colgar la línea).
. Ingrese lo siguiente:
+
-[source,bash]
+[source,shell]
....
# /usr/src/usr.sbin/pppd.new/pppd /dev/tty01 19200
....
@@ -925,7 +925,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDT<numero.de.telefono>
Una vez que estos ficheros han sido modificados correctamente e instalados, todo lo que necesita es ejecutar el comando `pppd`, algo como:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1182,7 +1182,7 @@ nombre_del_proveedor_del_servicio_de_internet:
Estando en modo `superusuario` (root) puede ejecutar:
-[source,bash]
+[source,shell]
....
# ppp -ddial nombre_del_proveedor_de_inet
....
@@ -1300,14 +1300,14 @@ adsl:
La conexión es fácil de inicializarla, al ingresar los siguientes comandos como `root`.
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
El estatus de la conexión la puede ver con el comando.
-[source,bash]
+[source,shell]
....
% ifconfig ng0
: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1343,7 +1343,7 @@ adsl:
Debido a que debe poner su contraseña en el fichero [.filename]#ppp.conf# en texto plano, debe asegurarse que nadie tenga acceso de lectura a este fichero. Los siguientes comandos se aseguran de que el fichero solo pueda se leido por `root`. Ve las páginas de ayuda man:chmod[1] y man:chown[8] para mayor información.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1353,7 +1353,7 @@ Debido a que debe poner su contraseña en el fichero [.filename]#ppp.conf# en te
Esto abrirá una sesion por medio de PPP con su ruteador DSL. Los módems Ethernet DSL cuentan con una dirección IP de LAN preconfigurada a la cual se puede conectar. En el caso del Alcatel Speedtouch, esta dirección es `10.0.0.138`. La documentación de su equipo debe indicarle que dirección utiliza. Para abrir el "tunel" e iniciar la sesión ppp, ejecute el siguiente comando.
-[source,bash]
+[source,shell]
....
# pptp dirección proveedor
....
@@ -1366,7 +1366,7 @@ Puede añadir un símbolo de ampersand ("&") al final de este comando, ya que pp
Un dispositivo virtual [.filename]#tun# será creado, para interactuar con los procesos de pptp y ppp. Una vez que regrese al shell puede examinar la conexión por medio del siguiente comando.
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1507,7 +1507,7 @@ El dejar su contraseña en texto plano, en cualquier parte del sistema, generalm
. Dejé a kermit en ese punto trabajando (puede suspenderlo tecleando kbd:[Ctrl+z]) y como `root`, teclee:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1519,7 +1519,7 @@ Si puede hacer `ping` a cualquier host que se encuentre del otro lado del rutead
Para terminar la conexión haga lo siguiente:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1538,7 +1538,7 @@ Si esto no funciona, sientase libre de preguntarme. Lo siguiente es una recapitu
* Usar la opción `s10` en vez de usar la opción `sl0` (puede ser difícil ver la diferencia con algunos tipos de letras).
* Intente `ifconfig sl0` para visualizar el estatus de sus dispositivos de red. Por ejemplo, puede ser que obtenga algo similiar a lo siguiente:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1547,7 +1547,7 @@ sl0: flags=10<POINTOPOINT>
* También el comando `netstat -r` le mostrará la tabla de ruteo, en caso de que obtenga el mensaje "no route to te host", al hacer `ping`. Un ejemplo de esto se muestra a continuación:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1618,7 +1618,7 @@ El kernel de FreeBSD, por omisión, cuenta con 2 dispositivos SLIP definidos ([.
Un ejemplo del resultado de `netstat -i`:
-[source,bash]
+[source,shell]
....
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ed0 1500 <Link>0.0.c0.2c.5f.4a 291311 0 174209 0 133
@@ -1727,7 +1727,7 @@ La línea adicional, `arp -s $5 00:11:22:33:44:55 pub` del script [.filename]#sl
Al tomar en cuenta el ejemplo anterior, es importante que sustituya la dirección Ethernet MAC (`00:11:22:33:44:55`), con la dirección que corresponde a su tarjeta de red, o definitivamente su "proxy ARP" no va a funcionar!. Para efecto de conocer cual es la dirección MAC del dispositivo Ethernet (tarjeta de red), de su servidor SLIP, puede ejecutar el comando `netstat -i`, el cual tendrá como resultado algo similar a lo siguiente:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/es/books/handbook/preface/_index.adoc b/documentation/content/es/books/handbook/preface/_index.adoc
index b6ee5911a1..b27b049aa2 100644
--- a/documentation/content/es/books/handbook/preface/_index.adoc
+++ b/documentation/content/es/books/handbook/preface/_index.adoc
@@ -215,21 +215,21 @@ Esto significa que el usuario debe pulsar simultáneamente las teclas kbd:[Ctrl]
Un comienzo como [.filename]#E:\># indica un ejemplo de comando de MS-DOS(R). A menos que se especifique otra cosa, estos comandos deben ejecutarse en una terminal "Command Prompt" de un sistema Microsoft(R) Windows(R) moderno.
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
Si hay un # indica que el comando debe ejecutarse como superusuario en FreeBSD. Puede acceder al sistema como `root` y ejecutar el comando o bien con su usuario habitual y utilizar man:su[1] para disponer de privilegios de superusuario.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Si el ejemplo comienza con un % indica que el comando puede ejecutarse en una cuenta de usuario normal. Salvo que se indique otra cosa se usa la sintaxis de C-shell para asignar valores a variables de entorno u otros comandos.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/es/books/handbook/security/_index.adoc b/documentation/content/es/books/handbook/security/_index.adoc
index 2596c22188..956e1a374e 100644
--- a/documentation/content/es/books/handbook/security/_index.adoc
+++ b/documentation/content/es/books/handbook/security/_index.adoc
@@ -271,7 +271,7 @@ Explicaremos cuatro tipos de operaciones diferentes. La primera es usar `keyinit
Para inicializar S/Key por primera vez cambie su contraseña, o cambie su semilla mientras está conectado a través de una conexión segura (esto es, en la consola de una máquina o vía ssh); use `keyinit` sin ningún parámetro:
-[source,bash]
+[source,shell]
....
% keyinit
Adding unfurl:
@@ -286,7 +286,7 @@ DEFY CLUB PRO NASH LACE SOFT
En OPIE se utiliza `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -307,7 +307,7 @@ En `Enter new secret pass phrase:` o `Enter secret password:`, debe introducir u
Para inicializar o cambiar su contraseña secreta a través de una conexión insegura, necesitará tener alguna conexión segura a algún lugar donde pueda ejecutar `key` u `opiekey`; puede ser gracias a un accesorio de escritorio o en una Macintosh(R), o un prompt de shell en una máquina en la que confíe. Necesitará también una cuenta iterativa (100 probablemente sea un buen valor), y puede usar su propia semilla, o usar una generada aleatoriamente. Siguiendo con la conexión insegura (hacia la máquina que está inicializando), ejecute `keyinit -s`:
-[source,bash]
+[source,shell]
....
% keyinit -s
Updating unfurl:
@@ -323,7 +323,7 @@ s/key access password:CURE MIKE BANE HIM RACY GORE
En OPIE debe usar `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -343,7 +343,7 @@ LINE PAP MILK NELL BUOY TROY
Para aceptar la semilla por defecto (la que el programa `keyinit` llama `key`, "llave", para terminar de complicar las cosas), pulse kbd:[Enter]. Antes de introducir una una contraseña de acceso cambie a su conexión o accesorio de escritorio S/Key y dele el mismo parámetro:
-[source,bash]
+[source,shell]
....
% key 100 to17759
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -353,7 +353,7 @@ CURE MIKE BANE HIM RACY GORE
O para OPIE:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -368,7 +368,7 @@ Vuelva a la conexión insegura y copie la contraseña de un solo uso generada al
Una vez que ha inicializado S/Key u OPIE, cuando haga login verá un "prompt" parecido al siguiente:
-[source,bash]
+[source,shell]
....
% telnet ejemplo.com
Trying 10.0.0.1...
@@ -384,7 +384,7 @@ Password:
O, en el caso de OPIE:
-[source,bash]
+[source,shell]
....
% telnet ejemplo.com
Trying 10.0.0.1...
@@ -404,7 +404,7 @@ Ahora necesitará generar su contraseña de un sólo uso para responder a este "
En el sistema de confianza:
-[source,bash]
+[source,shell]
....
% key 97 fw13894
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -414,7 +414,7 @@ WELD LIP ACTS ENDS ME HAAG
Con OPIE:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -425,7 +425,7 @@ GAME GAG WELT OUT DOWN CHAT
Ahora que tiene su contraseña de un solo uso puede proceder con el login:
-[source,bash]
+[source,shell]
....
login: <nombre_de_usuario>
s/key 97 fw13894
@@ -439,7 +439,7 @@ Last login: Tue Mar 21 11:56:41 from 10.0.0.2 ...
A veces usted hay que ir a lugares donde no hay acceso a una máquina de fiar o a una conexión segura. En estos casos, puede utilizar `key` y `opiekey` para generar previamente numerosas contraseñas de un solo uso para, una vez impresas, llevárselas a donde hagan falta. Por ejemplo:
-[source,bash]
+[source,shell]
....
% key -n 5 30 zz99999
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -453,7 +453,7 @@ Enter secret password: <secret password>
O para OPIE:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -619,7 +619,7 @@ También puede instalar la implementación de Kerberos del MIT desde la colecci
Esto solo debe hacerse en el servidor Kerberos. Lo primero es asegurarse de que no tiene bases de datos de Kerberos anteriores. Entre al directorio [.filename]#/etc/kerberosIV# y asegúrese de que solo estén los siguientes ficheros:
-[source,bash]
+[source,shell]
....
# cd /etc/kerberosIV
# ls
@@ -630,7 +630,7 @@ Si existe cualquier otro fichero (como [.filename]#principal.*# o [.filename]#ma
Edite [.filename]#krb.conf# y [.filename]#krb.realms# para definir su dominio Kerberos. En nuestro ejemplo el dominio será `EJEMPLO.COM` y el servidor es `grunt.ejemplo.com`. Editamos o creamos [.filename]#krb.conf#:
-[source,bash]
+[source,shell]
....
# cat krb.conf
EJEMPLO.COM
@@ -651,7 +651,7 @@ La primera línea es el dominio en el que el sistema funcionará. Las demás lí
Ahora añadiremos `grunt.ejemplo.com` al dominio `EJEMPLO.COM` y también una entrada para poner todos los equipos en el dominio `.ejemplo.com` Kerberos `EJEMPLO.COM`. Puede actualizar su [.filename]#krb.realms# del siguiente modo:
-[source,bash]
+[source,shell]
....
# cat krb.realms
grunt.ejemplo.com EJEMPLO.COM
@@ -667,7 +667,7 @@ La primera línea pone al sistema _específico_ en el dominio nombrado. El resto
Ya podemos crear la base de datos. Solo se ejecuta en el servidor Kerberos (o centro de distribución de llaves). Ejecute `kdb_init`:
-[source,bash]
+[source,shell]
....
# kdb_init
Realm name [default ATHENA.MIT.EDU ]: EJEMPLO.COM
@@ -679,7 +679,7 @@ Enter Kerberos master key:
Ahora tendremos que guardar la llave para que los servidores en la máquina local puedan recogerla. Utilice `kstash`:
-[source,bash]
+[source,shell]
....
# kstash
@@ -700,7 +700,7 @@ Estos dæmons kpasswd y rcmd permiten a otros sistemas cambiar contraseñas de K
Ahora vamos a añadir estas entradas:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -756,7 +756,7 @@ Principal name: <---- si introduce datos nulos saldrá del programa
Ahora tendremos que extraer todas las instancias que definen los servicios en cada máquina; para ello usaremos `ext_srvtab`. Esto creará un fichero que debe ser copiado o movido _por medios seguros_ al directorio [.filename]#/etc/kerberosIV# de cada cliente Kerberos. Este fichero debe existir en todos los servidores y clientes dada su importancia clave para el funcionamiento de Kerberos.
-[source,bash]
+[source,shell]
....
# ext_srvtab grunt
Enter Kerberos master key:
@@ -769,14 +769,14 @@ Generating 'grunt-new-srvtab'....
Esta orden solo genera un fichero temporal al que tendrá que cambiar el nombre a [.filename]#srvtab# para que todos los servidores puedan recogerlo. Utilice man:mv[1] para moverlo al lugar correcto en el sistema original:
-[source,bash]
+[source,shell]
....
# mv grunt-new-srvtab srvtab
....
Si el fichero es para un sistema cliente y la red no puede considerarse segura copie el [.filename]#cliente-new-srvtab# en un medio extraíble y transpórtelo por medios físicos seguros. Asegúrese de cambiar su nombre a [.filename]#srvtab# en el directorio [.filename]#/etc/kerberosIV# del cliente, y asegúrese también de que tiene modo 600:
-[source,bash]
+[source,shell]
....
# mv grumble-new-srvtab srvtab
# chmod 600 srvtab
@@ -786,7 +786,7 @@ Si el fichero es para un sistema cliente y la red no puede considerarse segura c
Ahora tenemos que añadir entradas de usuarios a la base de datos. Primero vamos a crear una entrada para el usuario `jane`. Para ello usaremos `kdb_edit`:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -821,7 +821,7 @@ Principal name: <---- si introduce datos nulos saldrá del programa
Primero tenemos que iniciar los dæmons de Kerberos. Tenga en cuenta que si su [.filename]#/etc/rc.conf# está configurado correctamente el inicio tendrá ligar cuando reinicie el sistema. Esta prueba solo es necesaria en el servidor Kerberos; los clientes Kerberos tomarán lo que necesiten automáticamente desde el directorio [.filename]#/etc/kerberosIV#.
-[source,bash]
+[source,shell]
....
# kerberos &
Kerberos server starting
@@ -845,7 +845,7 @@ Master key entered. BEWARE!
Ahora podemos probar a usar `kinit` para obtener un ticket para el ID `jane` que creamos antes:
-[source,bash]
+[source,shell]
....
% kinit jane
MIT Project Athena (grunt.ejemplo.com)
@@ -856,7 +856,7 @@ Password:
Pruebe a listar los tokens con `klist` para ver si realmente están:
-[source,bash]
+[source,shell]
....
% klist
Ticket file: /tmp/tkt245
@@ -868,7 +868,7 @@ Apr 30 11:23:22 Apr 30 19:23:22 krbtgt.EJEMPLO.COM@EJEMPLO.COM
Ahora trate de cambiar la contraseña usando man:passwd[1] para comprobar si el dæmon kpasswd está autorizado a acceder a la base de datos Kerberos:
-[source,bash]
+[source,shell]
....
% passwd
realm EJEMPLO.COM
@@ -883,7 +883,7 @@ Password changed.
Kerberos nos permite dar a _cada_ usuario que necesite privilegios de `root` su _propia_ contraseña para man:su[1]. Podemos agregar un ID que esté autorizado a ejecutar man:su[1] `root`. Esto se controla con una instancia de `root` asociada con un usuario. Vamos a crear una entrada `jane.root` en la base de datos, para lo que recurrimos a `kdb_edit`:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -917,7 +917,7 @@ Principal name: <---- si introduce datos nulos saldrá del programa
Ahora trate de obtener los tokens para comprobar que todo funciona:
-[source,bash]
+[source,shell]
....
# kinit jane.root
MIT Project Athena (grunt.ejemplo.com)
@@ -927,7 +927,7 @@ Password:
Hemos de agregar al usuario al [.filename]#.klogin# de `root`:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EJEMPLO.COM
@@ -935,7 +935,7 @@ jane.root@EJEMPLO.COM
Ahora trate de hacer man:su[1]:
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -943,7 +943,7 @@ Password:
y eche un vistazo a qué tokens tenemos:
-[source,bash]
+[source,shell]
....
# klist
Ticket file: /tmp/tkt_root_245
@@ -957,7 +957,7 @@ May 2 20:43:12 May 3 04:43:12 krbtgt.EJEMPLO.COM@EJEMPLO.COM
En un ejemplo anterior creamos un usuario llamado `jane` con una instancia `root`. Nos basamos en un usuario con el mismo nombre del "principal" (`jane`), el procedimiento por defecto en Kerberos: `<principal>.<instancia>` con la estructura `<nombre de usuario>. root` permitirá que `<nombre de usuario>` haga man:su[1] a `root` si existen las entradas necesarias en el [.filename]#.klogin# que hay en el directorio home de `root`:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EJEMPLO.COM
@@ -965,7 +965,7 @@ jane.root@EJEMPLO.COM
De la misma manera, si un usuario tiene en su directorio home lo siguiente:
-[source,bash]
+[source,shell]
....
% cat ~/.klogin
jane@EJEMPLO.COM
@@ -976,7 +976,7 @@ significa que cualquier usuario del dominio `EJEMPLO.COM` que se identifique com
Veamos por ejemplo cómo `jane` se se identifica en otro sistema mediante Kerberos:
-[source,bash]
+[source,shell]
....
% kinit
MIT Project Athena (grunt.ejemplo.com)
@@ -991,7 +991,7 @@ FreeBSD BUILT-19950429 (GR386) #0: Sat Apr 29 17:50:09 SAT 1995
Aquí `jack` se identifica con la cuenta de `jane` en la misma máquina (`jane` tiene configurado su fichero [.filename]#.klogin# como se ha mostrado antes, y la persona encargada de la administración de Kerberos ha configurado un usuario principal _jack_ con una instancia nula):
-[source,bash]
+[source,shell]
....
% kinit
% rlogin grunt -l jane
@@ -1108,7 +1108,7 @@ Para terminar, mientras está todavía en `kadmin` puede crear su primer princip
Veamos un ejemplo de sesión de creación de una base de datos:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -1127,7 +1127,7 @@ Verifying password - Password: xxxxxxxx
Ahora puede arrancar los servicios KDC. Ejecute `/etc/rc.d/kerberos start` y `/etc/rc.d/kadmind start` para levantar dichos servicios. Recuerde que no tendrá ningún dæmon kerberizado ejecutándose pero debe poder confirmar que KDC funciona por el procedimiento de obtener y listar un boleto del principal (usuario) que acaba de crear en la línea de órdenes de KDC:
-[source,bash]
+[source,shell]
....
% k5init tillman
tillman@EJEMPLO.ORG's Password:
@@ -1152,7 +1152,7 @@ Tenga en cuenta que ya debe disponer de un ticket, y que este ticket debe poder
Después de instalar el fichero [.filename]#/etc/krb5.conf# puede usar `kadmin` desde el servidor Kerberos. `add --random-key` le permitirá añadir el principal del equipo servidor, y `ext` le permitirá extraer el principal del equipo servidor a su propio keybat. Por ejemplo:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.ejemplo.org
@@ -1167,7 +1167,7 @@ Tenga en cuenta que `ext` (contracción de "extract") almacena la llave extraíd
Si no tiene `kadmind` ejecutándose en KDC (posiblemente por razones de seguridad) y por lo tanto carece de acceso remoto a `kadmin` puede añadir el principal de equipo (`host/miservidor.EJEMPLO.ORG`) directamente en el KDC y entonces extraerlo a un fichero temporal (para evitar sobreescribir [.filename]#/etc/krb5.keytab# en el KDC) mediante algo parecido a esto:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/ejemplo.keytab host/miservidor.ejemplo.org
@@ -1207,7 +1207,7 @@ Es posible que de vez en cuando quiera dar acceso a una una cuenta de usuario lo
Los ficheros [.filename]#.k5login# y [.filename]#.k5users#, ubicados en el directorio home del usuario, pueden usarse de un modo similar a una combinación potente de [.filename]#.hosts# y [.filename]#.rhosts#. Por ejemplo, si pusiera un fichero [.filename]#.k5login# con el siguiente contenido
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -1304,7 +1304,7 @@ Uno de los usos más comunes de OpenSSL es ofrecer certificados para usar con ap
Para generar un certificado ejecute lo siguiente:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -1339,21 +1339,21 @@ Debería tener dos ficheros en el directorio donde ha ejecutado la orden anterio
Si no necesita la firma de una CA puede crear y firmar usted mismo su certificado. Primero, genere la llave RSA:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
A continuación genere la llave CA:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Utilice esta llave para crear el certificado:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -1387,7 +1387,7 @@ Si todo fué bien no habrá mensajes de error en el fichero [.filename]#/var/log
Puede probarlo todo de una forma muy sencilla; conéctese al servidor de correo mediante man:telnet[1]:
-[source,bash]
+[source,shell]
....
# telnet ejemplo.com 25
Trying 192.0.34.166...
@@ -1428,7 +1428,7 @@ _IPsec_ es un protocolo que está sobre la capa del protocolo de Internet (IP).
====
FreeBSD 5.X contiene una pila IPsec "acelerada por hardware", conocida como "Fast IPsec", que fué obtenida de OpenBSD. Emplea hardware criptográfico (cuando es posible) a través del subsistema man:crypto[4] para optimizar el rendimiento de IPsec. Este subsistema es nuevo, y no soporta todas las opciones disponibles en la versión KAME de IPsec. Para poder habilitar IPsec acelerado por hardware debe añadir las siguientes opciones al fichero de configuración de su kernel:
-[source,bash]
+[source,shell]
....
options FAST_IPSEC # new IPsec (cannot define w/ IPSEC)
....
@@ -1447,7 +1447,7 @@ IPsec puede utilizarse para cifrar directamente el tráfico entre dos equipos (c
Si quiere añdir soporte IPsec a su kernel debe incluir las siguientes opciones al fichero de configuración de su kernel:
-[source,bash]
+[source,shell]
....
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
@@ -1455,7 +1455,7 @@ options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
Si quiere soporte para la depuración de errores no olvide la siguiente opción:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG #debug for IP security
....
@@ -1555,7 +1555,7 @@ gifconfig gif0
y podrá ver la configuración. Por ejemplo, en la puerta de enlace de la red #1 vería algo parecido a esto:
-[source,bash]
+[source,shell]
....
# gifconfig gif0
gif0: flags=8011<UP,POINTTOPOINT,MULTICAST> mtu 1280
@@ -1568,7 +1568,7 @@ Como puede ver se ha creado un túnel entre las direcciones físicas `A.B.C.D` y
Esto también habrá agregado una entrada en la tabla de rutas de ambas máquinas, que puede examinar con `netstat -rn`. Esta salida es de la puerta de enlace de la red #1.
-[source,bash]
+[source,shell]
....
# netstat -rn
Routing tables
@@ -1784,7 +1784,7 @@ spdadd A.B.C.D/32 W.X.Y.Z/32 ipencap -P out ipsec esp/tunnel/A.B.C.D-W.X.Y.Z/req
Ponga estas órdenes en un fichero (por ejemplo [.filename]#/etc/ipsec.conf#) y ejecute
-[source,bash]
+[source,shell]
....
# setkey -f /etc/ipsec.conf
....
@@ -1924,7 +1924,7 @@ Normalmente, al utilizar man:telnet[1] o man:rlogin[1] los datos se envían a tr
El dæmon sshd está habilitado por defecto FreeBSD 4.X y puede elegir habilitarlo o no durante la instalación en FreeBSD 5.X. Si quiere saber si está habilitado revise si la siguiente línea está en [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1935,7 +1935,7 @@ Esta línea cargará man:sshd[8], el programa dæmon de OpenSSH, en el arranque
man:ssh[1] funciona de manera similar a man:rlogin[1].
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1952,7 +1952,7 @@ Por defecto las versiones recientes de los servidores OpenSSH solamente aceptan
man:scp[1] funciona de manera muy similar a man:rcp[1]; copia un fichero desde o hacia un sistema remoto, con la diferencia de que lo hace de una forma segura.
-[source,bash]
+[source,shell]
....
# scp usuario@ejemplo.com:/COPYRIGHT COPYRIGHT
usuario@ejemplo.com's password: *******
@@ -1978,7 +1978,7 @@ Además las opciones `sshd_program` ([.filename]#/usr/sbin/sshd# por defecto), y
man:ssh-keygen[1] le permite validar a un usuario sin pedirle la contraseña:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -2013,7 +2013,7 @@ man:ssh-agent[1] gestionará la validación utilizando la llave (o llaves) priva
Para usar man:ssh-agent[1] en una shell necesitará primero ser invocado como argumento por una shell. Segundo, añada la identidad ejecutando man:ssh-add[1] y facilitando la contraseña de la llave privada. Completados estos pasos el usuario puede hacer man:ssh[1] a cualquier equipo que tenga instalada la llave pública correspondiente. Por ejemplo:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -2038,7 +2038,7 @@ OpenSSH permite crear un túnel en el que encapsular otro protocolo en una sesi
La siguiente orden le dice a man:ssh[1] que cree un túnel para telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 usuario@foo.ejemplo.com
%
@@ -2071,7 +2071,7 @@ Puede usar esto para encapsular cualquier otro protocolo TCP inseguro como SMTP,
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 usuario@correo.ejemplo.com
usuario@correo.ejemplo.com's password: *****
@@ -2090,7 +2090,7 @@ Puede usar esta técnica junto con man:ssh-keygen[1] y cuentas adicionales de us
En el trabajo hay un servidor SSH que acepta conexiones desde el exterior. En la misma red de la oficina reside un servidor de correo que ejecuta un servidor POP3. La red, o ruta de red entre su casa y oficina puede o no ser completamente de fiar. Debido a esto necesita revisar su correo electrónico de forma segura. La solución es crear una conexión SSH al servidor SSH de su oficina y llegar por un túnel al servidor de correo.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:correo.ejemplo.com:110 usuario@servidor-ssh.ejemplo.com
usuario@servidor-ssh.ejemplo.com's password: ******
@@ -2106,7 +2106,7 @@ Tal vez quiera acceder a otros servicios (que tal vez ni siquiera estén relacio
La solución es crear una conexión SSH fuera del cortafuegos de su red y utilizarla para hacer un túnel al servidor Ogg Vorbis.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:musica.ejemplo.com:8000 usuario@sistema-no-filtrado.ejemplo.org
usuario@sistema-no-filtrado.ejemplo.org's password: *******
@@ -2144,7 +2144,7 @@ Es importante que incluya a cada usuario que necesite entrar a esta máquina o n
Después de hacer los cambios a b [.filename]#/etc/ssh/sshd_config# debe decirle a man:sshd[8] que cargue de nuevo sus ficheros de configuración ejecutando:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -2205,7 +2205,7 @@ Aquí vemos que los directorios [.filename]#directorio1#, [.filename]#directorio
Las ACLs del sistema de ficheros pueden comprobarse con man:getfacl[1]. Por ejemplo, para ver las configuraciones de ACL del fichero [.filename]#test#, uno podría usar lo siguiente:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -2218,14 +2218,14 @@ Las ACLs del sistema de ficheros pueden comprobarse con man:getfacl[1]. Por ejem
Para cambiar las configuraciones de las ACL en este fichero use man:setfacl[1]. Observe:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
La bandera `-k` eliminará todas las ACLs definidas para un fichero o sistema ficheros. El método preferible sería utilizar `-b`, ya que deja los campos básicos imprescindibles para que las ACL sigan funcionando.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -2243,7 +2243,7 @@ El port package:security/portaudit[] consulta una base de datos, actualizada y m
Si quiere usar Portaudit instálelo desde la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/portaudit && make install clean
....
@@ -2252,7 +2252,7 @@ Durante el proceso de instalación los ficheros de configuración de man:periodi
Después de la instalación un administrador debe actualizar la base de datos alojada en local en [.filename]#/var/db/portaudit# mediante:
-[source,bash]
+[source,shell]
....
# portaudit -F
....
@@ -2264,7 +2264,7 @@ La base de datos será actualizada automáticamente durante la ejecución de man
Si quiere comproblar si entre las aplicaciones que haya instalado desde el árbol de ports en su sistema hay problemas de seguridad sólo tiene que ejecutar lo siguiente:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -2383,7 +2383,7 @@ Esto en realidad tiene sus puntos positivos y negativos. Uno de los positivos es
Antes de poder usar la contabilidad de procesos tendrá que habilitarla. Ejecute la siguiente orden:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -2396,7 +2396,7 @@ Una vez habilitada, la contabilidad de procesos empezará a seguir el rastro de
Para ver información acerca de las órdenes que se están ejecutados puede usar la man:lastcomm[1]. `lastcomm` imprime órdenes ejecutadas por los usuarios en man:ttys[5] específicas. Veamos un ejemplo:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/es/books/handbook/serialcomms/_index.adoc b/documentation/content/es/books/handbook/serialcomms/_index.adoc
index 761c9a9105..8cb867c5b5 100644
--- a/documentation/content/es/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/es/books/handbook/serialcomms/_index.adoc
@@ -203,7 +203,7 @@ Para ver si su kernel reconoce cualquiera de sus puertos serie, mire los mensaje
Para ver solamente los mensajes que contienen la palabra `sio`, use el comando:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -212,7 +212,7 @@ Para ver solamente los mensajes que contienen la palabra `sio`, use el comando:
Por ejemplo, en un sistema con cuatro puertos serie, éstos son los mensajes de arranque del kernel específicos de puerto serie:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -267,7 +267,7 @@ Un script de shell llamado `MAKEDEV` en el directorio [.filename]#/dev# administ
Despues de crear ficheros especiales de dispositivo nuevos, asegúrese de revisar los permisos en los ficheros (especialmente los ficheros [.filename]#/dev/cua*#) para asegurarse que solamente los usuarios que deben tener acceso a esos ficheros especiales de dispositivo puedan leer y escribir en ellos - probablemente no desee permitir al usuario promedio utilizar sus modems para marcar al exterior. Los permisos por omisión en los ficheros [.filename]#/dev/cua*# deberían ser suficientes:
-[source,bash]
+[source,shell]
....
crw-rw---- 1 uucp dialer 28, 129 Feb 15 14:38 /dev/cuaa1
crw-rw---- 1 uucp dialer 28, 161 Feb 15 14:38 /dev/cuaia1
@@ -281,14 +281,14 @@ Estos permisos permiten al usuario `uucp` y usuarios en el grupo `dialer` utiliz
El dispositivo [.filename]#ttydN# (o [.filename]#cuaaN#) es el dispositivo regular que usted deseará abrir para sus aplicaciones. Cuando un proceso abre el dispositivo, tendrá un conjunto por omisión de propiedades de terminal E/S. Puede ver estas propiedades con el comando
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
Cuando cambia las propiedades de este dispositivo, las propiedades son efectivas hasta que el dispositivo es cerrado. Cuando es reabierto regresa a las propiedades por omisión. Para realizar cambios al conjunto por omisión, usted puede abrir y ajustar las propiedades del dispositivo de "estado inicial" . Por ejemplo, para activar el modo `CLOCAL`, comunicación de 8 bits y control de flujo `XON/XOFF` por omisión para [.filename]#ttyd5#, teclée:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyid5 clocal cs8 ixon ixoff
....
@@ -297,7 +297,7 @@ La inicialización para todo el sistema de los dispositivos serie es controlada
Para prevenir que ciertas propiedades sean cambiadas por una aplicación, haga ajustes al dispositivo "bloquear estado". Por ejemplo, para confinar la velocidad en [.filename]#ttyd5# a 57600 bps, teclée:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyld5 57600
....
@@ -407,7 +407,7 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
Despues de realizar los cambios necesarios al fichero [.filename]#/etc/ttys# debería mandar una señal SIGHUP (hangup) al proceso `init` para forzarlo a releer su fichero de configuración. Por ejemplo:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -434,14 +434,14 @@ Asegúrese que la terminal y FreeBSD concuerdan en la tasa de bps y propiedades
Asegúrese que un proceso `getty` esté corriendo y sirviendo la terminal. Por ejemplo, para obtener una lista de procesos `getty` con `ps`, teclée:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Debería ver una entrada para la terminal. Por ejemplo, el siguiente desplegado muestra que un `getty` está corriendo en el segundo puerto serie `ttyd1` y está utilizando la entrada `std.38400` en [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyd1
....
@@ -494,7 +494,7 @@ FreeBSD soporta interfaces de comunicación NS8250-, NS16450-, NS16550-, y NS165
Como con las terminales, `init` engendra un proceso `getty` para cada puerto serie configurado para conexiones dial-in. Por ejemplo, si un modem está conectado a [.filename]#/dev/ttyd0#, el comando `ps ax` podría mostrar esto:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyd0
....
@@ -599,7 +599,7 @@ El tipo de terminal por omisión (`dialup` en el ejemplo de arriba) puede depend
Despues de realizar los cambios a [.filename]#/etc/ttys#, puede enviar al proceso `init` una señal HUP para que relea el fichero. Puede utilizar el comando
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -711,7 +711,7 @@ Conecte su modem a su sistema FreeBSD, arranque el sistema, y, si su modem tiene
Si el indicador DTR no enciende, entre al sistema FreeBSD a travás de la consola y ponga un `ps ax` para ver si FreeBSD está tratando de correr un proceso `getty` en el puerto correcto. Debería ver líneas como estas entre los procesos desplegados:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd1
@@ -719,7 +719,7 @@ Si el indicador DTR no enciende, entre al sistema FreeBSD a travás de la consol
Si ve algo diferente, como esto:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyd0
....
@@ -780,7 +780,7 @@ Utilice la tasa más alta de bps que su modem soporte en la capacidad br. Entonc
Si no existe un fichero [.filename]#/dev/cuaa0# en su sistema, haga esto:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV cuaa0
@@ -788,7 +788,7 @@ Si no existe un fichero [.filename]#/dev/cuaa0# en su sistema, haga esto:
O use `cu` como `root` con el siguiente comando:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -818,7 +818,7 @@ tip57600|Dial any phone number at 57600 bps:\
Entonces puede hacer cosas como:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -833,7 +833,7 @@ cu115200|Use cu to dial any number at 115200bps:\
y escriba:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -947,7 +947,7 @@ Esta sección asume que está usando la configuración por omisión y solo quier
. Conecte el cable serie a COM1 y la terminal controladora.
. Para ver todos los mensajes de arranque en la consola serie escriba el siguiente comando mientras está firmado como superusuario:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1044,7 +1044,7 @@ Las opciones, excepto por `-P`, serán pasadas al cargador de arranque ([.filena
+
Cuando inicia su equipo FreeBSD, los bloques de arranque mostrarán los contenidos de [.filename]#/boot.config# a la consola. Por ejemplo:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1081,7 +1081,7 @@ Despues de los mensajes de arriba, existirá una pausa pequeña antes que los bl
+
Presione cualquier tecla, diferente a kbd:[Enter], en la consola para interrumpir el proceso de arranque. Los bloques de arranque entonces esperarán una entrada para determinar como continuar. Debe ver algo como esto:
+
-[source,bash]
+[source,shell]
....
FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1240,7 +1240,7 @@ device sio1 at isa? port IO_COM2 flags 0x30 irq 3
Las banderas de consola para otros puertos serie no deben activarse.
. Recompile e instale los bloques de arranque y el cargador de arranque:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/es/books/handbook/users/_index.adoc b/documentation/content/es/books/handbook/users/_index.adoc
index 129a102210..a288c4615f 100644
--- a/documentation/content/es/books/handbook/users/_index.adoc
+++ b/documentation/content/es/books/handbook/users/_index.adoc
@@ -169,7 +169,7 @@ Para crear el fichero inicial de configuración usa `adduser -s -config_create`.
[example]
====
-[source,bash]
+[source,shell]
....
# adduser -v
Use option ``-silent'' if you don't want to see all warnings and questions.
@@ -261,7 +261,7 @@ Por defecto existe un modo interactivo que intenta asegurar que uno sabe lo que
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -292,7 +292,7 @@ Cuando no le pasamos más opciones, salvo un nombre de usuario opcional, `chpass
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -320,7 +320,7 @@ Un usuario normal puede modificar un pequeño subconjunto de esta información,
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/tcsh
@@ -352,7 +352,7 @@ Los usuarios han de introducir su contraseña original antes de cambiarla para p
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -369,7 +369,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -465,7 +465,7 @@ Si no quieres editar [.filename]#/etc/group# manualmente, puedes usar el comando
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -480,7 +480,7 @@ El número `1100` en el ejemplo anterior es el ID de grupo del grupo `teamtwo`.
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -495,7 +495,7 @@ El argumento de la opción `-M` es una lista con los usuarios que son miembros d
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/es/books/handbook/x11/_index.adoc b/documentation/content/es/books/handbook/x11/_index.adoc
index 840916bc8a..afc0c96710 100644
--- a/documentation/content/es/books/handbook/x11/_index.adoc
+++ b/documentation/content/es/books/handbook/x11/_index.adoc
@@ -154,7 +154,7 @@ Xorg es la implementación de X11 por omisión en FreeBSD. Xorg está basado en
Para compilar e instalar Xorg desde la colección de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -169,7 +169,7 @@ Si lo prefiere puede instalar Xorg con packages. Cuando utilice la capacidad de
Veamos qué es lo que hay que hacer para descargar e instalar el package de Xorg:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -202,7 +202,7 @@ La memoria de la tarjeta gráfica determina la resolución y la profundidad de c
A partir de la versión 7.3 Xorg puede funcionar sin utilizar fichero de configuración; basta con teclear en el prompt:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -216,7 +216,7 @@ Ciertos entornos de escritorio como GNOME, KDE o XFce tienen herramientas que pe
La configuración de X11 es un proceso que consta de múltiples pasos. El primero es generar un fichero inicial de configuración. Como superusuario teclee:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -225,7 +225,7 @@ Esto generará un fichero de configuración bastante esquemático pero completo
El siguiente paso es probar el fichero generado para verificar si Xorg puede funcionar con el hardware gráfico del sistema. Para ello teclee:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
@@ -288,7 +288,7 @@ Una de las herramientas disponibles para ayudarle con el proceso de solución de
Si todo ha ido bien ha llegado el momento de ubicar el fichero de configuración donde man:Xorg[1] pueda encontrarlo. Puede dejarlo en [.filename]#/etc/X11/xorg.conf# o [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -384,7 +384,7 @@ Los tipos que X11 incluye por omisión no son precisamente ideales para las apli
Para instalar los tipos Type1 desde los ports ejecute las siguientes órdenes:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -399,7 +399,7 @@ FontPath "/usr/X11R6/lib/X11/fonts/URW/"
o bien desde una emulación de terminal durante una sesión X ejecute
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/X11R6/lib/X11/fonts/URW
% xset fp rehash
@@ -419,7 +419,7 @@ Load "freetype"
Ahora haga un directorio para los tipos TrueType(R) (por ejemplo [.filename]#/usr/X11R6/lib/X11/fonts/TrueType#) y copie todos los tipos TrueType(R) en este directorio. Recuerde que los tipos TrueType(R) no se pueden coger directamente de un Macintosh(R); tienen que estar en formato UNIX(R)/MS-DOS(R)/Windows(R) para usarlas con X11. Una vez que los ficheros se hayan copiado en este directorio use ttmkfdir para crear un fichero [.filename]#fonts.dir#, para que el representador de tipos de X sepa que se han instalado estos ficheros nuevos. `ttmkfdir` forma parte de la Colección de Ports de FreeBSD: package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -427,7 +427,7 @@ Ahora haga un directorio para los tipos TrueType(R) (por ejemplo [.filename]#/us
Ahora añada el directorio TrueType(R) a la ruta de tipos. Esto es igual que lo anteriormente descrito sobre los tipos <<type1,Type1>>. Ejecute:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -463,7 +463,7 @@ Como se ha dicho antes todos los tipos en [.filename]#/usr/local/lib/X11/fonts/#
Después de añadir los nuevos tipos, y en especial los nuevos directorios de tipos, debe ejecutar la siguiente orden para reconstruir la caché de tipos:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -581,7 +581,7 @@ XDM ac6túa como proveedor de la misma funcionalidad que man:getty[8] (consulte
El dæmon XDM está en [.filename]#/usr/local/bin/xdm#. Este programa se puede arrancar en cualquier momento como `root` y empezará a gestionar la pantalla X en la máquina local. Si se quiere que XDM arranque cada vez que la máquina se encienda puede hacerlo añadiendo una entrada a [.filename]#/etc/ttys#. Para más información sobre el formato y uso de este fichero consulte la crossref:serialcomms[term-etcttys,Agregando una entrada a /etc/ttys]. Por omisión hay una línea en [.filename]#/etc/ttys# que permite arrancar el dæmon XDM en una terminal virtual:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -659,7 +659,7 @@ Este fichero contiene la salida de los servidores X que XDM intente arrancar. Si
Para que otros clientes puedan conectar al servidor de pantalla edite las reglas de acceso y habilite la escucha en la conexión. Por omisión se aplican restricciones. Si quiere que XDM escuche conexiones comente la siguiente línea en el fichero [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -692,14 +692,14 @@ GNOME puede instalarse fácilmente utilizando packages precompilados o desde la
Para instalar el paquete de GNOME desde la red, simplemente teclee:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
Para compilar GNOME a partir del código fuente, es decir, como port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -711,7 +711,7 @@ La manera más fácil de arrancar GNOME es con GDM, el gestor de pantalla de GNO
Puede arrancar GNOME también desde la línea de órdenes configurando adecuadamente un fichero llamado [.filename]#.xinitrc#. Si ya tiene un [.filename]#.xinitrc# personalizado tendrá que reemplazar la línea que arranca el gestor de ventanas anterior por otra que contenga /usr/local/bin/gnome-session. Si no ha modificado el fichero previamente basta con que teclée lo siguiente:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -723,7 +723,7 @@ Después teclée `startx` y debería iniciarse el entorno de escritorio GNOME.
Si utiliza un gestor de pantalla antíguo, como XDM, lo anteriormente descrito no funcionará. Cree un fichero ejecutable [.filename]#.xsession# con la misma orden en él. Edite el fichero y sustituya la orden para iniciar su actual gestor de ventanas por /usr/local/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -765,14 +765,14 @@ Igual que sucede con GNOME o cualquier otro entorno de escritorio puede instalar
Si quiere instalar como package KDE3 (desde la red) escriba:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
Si quiere instalar como package KDE4 (desde la red) escriba:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -781,7 +781,7 @@ man:pkg_add[1] descargará automáticamente la versión más reciente de la apli
Si lo que desea es compilar KDE3 desde el código fuente utilice el árbol de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -789,7 +789,7 @@ Si lo que desea es compilar KDE3 desde el código fuente utilice el árbol de po
Si lo que desea es compilar KDE4 desde el código fuente utilice el árbol de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -799,14 +799,14 @@ Una vez instalado KDE debe indicarle al servidor X cómo iniciar la aplicación
Para KDE3:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
Para KDE4:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -865,14 +865,14 @@ Puede encontrar más información sobre XFce en el http://www.xfce.org/[ sitio w
En el momento de escribir este texto existe un paquete binario para XFce. Para instalarlo escriba:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
También puede compilarlo desde el código gracias a la Colección de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -880,7 +880,7 @@ También puede compilarlo desde el código gracias a la Colección de Ports:
Para indicar al servidor X que use XFce la próxima vez que arranque simplemente escriba lo siguiente:
-[source,bash]
+[source,shell]
....
% echo "/usr/X11R6/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/fr/articles/committers-guide/_index.adoc b/documentation/content/fr/articles/committers-guide/_index.adoc
index 5ed7e9ec1a..a9754036fb 100644
--- a/documentation/content/fr/articles/committers-guide/_index.adoc
+++ b/documentation/content/fr/articles/committers-guide/_index.adoc
@@ -250,7 +250,7 @@ Il y a une chose qu'elle ne fera pas à votre place : ajouter le logiciel au [.f
Vérifiez votre portage, pour vous assurez qu'il compile et que le paquetage est correctement construit. Voici ce qu'il est recommandé de faire :
-[source,bash]
+[source,shell]
....
% make install
% make package
diff --git a/documentation/content/fr/articles/contributing/_index.adoc b/documentation/content/fr/articles/contributing/_index.adoc
index 98b5bf3657..2314933dab 100644
--- a/documentation/content/fr/articles/contributing/_index.adoc
+++ b/documentation/content/fr/articles/contributing/_index.adoc
@@ -115,14 +115,14 @@ Le format man:diff[1] préféré pour soumettre des correctifs est le format uni
Par exemple:
-[source,bash]
+[source,shell]
....
% diff -c oldfile newfile
....
ou
-[source,bash]
+[source,shell]
....
% diff -c -r olddir newdir
....
@@ -131,14 +131,14 @@ générera un ensemble de "context diffs" pour un fichier source ou une hiérarc
De même,
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
ou
-[source,bash]
+[source,shell]
....
% diff -u -r olddir newdir
....
diff --git a/documentation/content/fr/articles/filtering-bridges/_index.adoc b/documentation/content/fr/articles/filtering-bridges/_index.adoc
index 00a086c3d3..54a3ebe520 100644
--- a/documentation/content/fr/articles/filtering-bridges/_index.adoc
+++ b/documentation/content/fr/articles/filtering-bridges/_index.adoc
@@ -113,7 +113,7 @@ Si il y a un quelconque problème, vous devriez le corriger maintenant avant de
A ce point, pour activer le pont, vous devez exécuter les commandes suivantes (en pensant bien de remplacer les noms des deux interfaces réseau [.filename]#fxp0# et [.filename]#xl0# avec les vôtres):
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.config=fxp0:0,xl0:0
# sysctl net.link.ether.bridge.ipfw=1
diff --git a/documentation/content/fr/articles/fonts/_index.adoc b/documentation/content/fr/articles/fonts/_index.adoc
index dc784010fe..f22e3a2f94 100644
--- a/documentation/content/fr/articles/fonts/_index.adoc
+++ b/documentation/content/fr/articles/fonts/_index.adoc
@@ -132,7 +132,7 @@ font8x8=/usr/shared/syscons/fonts/cp437-8x8.fnt
La commande pour changer de mode d'affichage est man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
bash$ vidcontrol VGA_80x60
@@ -140,7 +140,7 @@ bash$ vidcontrol VGA_80x60
Différents programmes en mode plein-écran, tel man:vi[1], doivent pouvoir déterminer la taille actuelle de l'écran. Elle peut être configurée avec man:stty[1]:
-[source,bash]
+[source,shell]
....
bash$ stty crt rows 60 columns 80
@@ -183,7 +183,7 @@ Il y a déjà un répertoire appelé [.filename]#Type1#. La façon la plus immé
* _Créer un repertoire pour les fichiers de police de caractères._
+
-[source,bash]
+[source,shell]
....
bash$ mkdir -p /usr/local/shared/fonts/type1
@@ -194,7 +194,7 @@ bash$ cd /usr/local/shared/fonts/type1
* _Y mettre les fichiers [.filename]#.pfa#, [.filename]#.pfb# et [.filename]#.afm#. On peut aussi vouloir y conserver les fichiers [.filename]#README# et autres documentations concernant les polices de caractères._
+
-[source,bash]
+[source,shell]
....
bash$ cp /cdrom/fonts/atm/showboat/showboat.pfb .
@@ -205,7 +205,7 @@ bash$ cp /cdrom/fonts/atm/showboat/showboat.afm .
* _Tenir à jour un index pour créer les références croisées sur les polices._
+
-[source,bash]
+[source,shell]
....
bash$ echo showboat - InfoMagic CICA, Dec 1994, /fonts/atm/showboat >>INDEX
@@ -231,7 +231,7 @@ Pour pouvoir maintenant utiliser une nouvelle police de caractères, il faut met
Il faut créer un nouveau nom pour chaque nouvelle police. Si la documentation qui l'accompagne vous donne quelques informations, elle peut servir de base pour définir ce nom. Si vous n'avez aucune information, vous pouvez utiliser la commande man:strings[1] sur le fichier de police. Par exemple:
-[source,bash]
+[source,shell]
....
bash$ strings showboat.pfb | more
@@ -310,7 +310,7 @@ Donc, pour compléter notre exemple:
* _Rendre la police accessible à X11_
+
-[source,bash]
+[source,shell]
....
bash$ cd /usr/X11R6/lib/X11/fonts/Type1
bash$ ln -s /usr/local/shared/fonts/type1/showboat.pfb .
@@ -319,7 +319,7 @@ bash$ ln -s /usr/local/shared/fonts/type1/showboat.pfb .
* _Editer [.filename]#fonts.scale# et [.filename]#fonts.dir# pour y ajouter une ligne décrivant la nouvelle police et incrémenter le nombre de polices qui est défini en première ligne_
+
-[source,bash]
+[source,shell]
....
bash$ ex fonts.dir
bash$ :1p
@@ -335,21 +335,21 @@ bash$ :wq
* _[.filename]#fonts.scale# et [.filename]#fonts.dir# sont apparemment identiques_
+
-[source,bash]
+[source,shell]
....
bash$ cp fonts.dir fonts.scale
....
* _Informer X11 des modifications_
+
-[source,bash]
+[source,shell]
....
bash$ xset fp rehash
....
* _Visualiser la nouvelle police_
+
-[source,bash]
+[source,shell]
....
bash$ xfontsel -pattern -type1-*
....
@@ -362,7 +362,7 @@ GhostScript référence les polices via son fichier [.filename]#Fontmap#. Il doi
* _Mettre la police dans le répertoire des polices de GhostScript_
+
-[source,bash]
+[source,shell]
....
bash$ cd /usr/local/shared/ghostscript/fonts
bash$ ln -s /usr/local/shared/fonts/type1/showboat.pfb .
@@ -370,7 +370,7 @@ bash$ ln -s /usr/local/shared/fonts/type1/showboat.pfb .
* _Editer le fichier [.filename]#Fontmap# pour que GhostScript ait connaissance de la nouvelle police_
+
-[source,bash]
+[source,shell]
....
bash$ cd /usr/local/shared/ghostscript/4.01
bash$ ex Fontmap
@@ -381,7 +381,7 @@ bash$ :wq
* _Utiliser GhostScript pour visualiser la police_
+
-[source,bash]
+[source,shell]
....
bash$ gs prfont.ps
....
@@ -396,7 +396,7 @@ Loading Times-Roman font from /usr/local/shared/ghostscript/fonts/tir_____.pfb..
/1899520 581354 1300084 13826 0 done.
....
+
-[source,bash]
+[source,shell]
....
GS> Showboat DoFont
....
@@ -410,7 +410,7 @@ Loading Showboat font from /usr/local/shared/ghostscript/fonts/showboat.pfb...
>>showpage, press <return> to continue<<
....
+
-[source,bash]
+[source,shell]
....
GS> quit
....
@@ -423,7 +423,7 @@ Maintenant que nous pouvons utiliser la nouvelle police avec X11 et GhostScript,
Le premier outil est [.filename]#afmtodit#. Il n'est pas normalement installé et doit donc être extrait de la distribution sous forme de sources. Je me suis aperçu qu'il fallait modifier la première ligne du fichier, voici donc ce que j'ai fait:
-[source,bash]
+[source,shell]
....
bash$ cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
bash$ ex /tmp/afmtodit.pl
@@ -439,7 +439,7 @@ Cet outil crée le fichier de police groff à partir du fichier de dimensions de
+
Il faut les convertir au style Unix avec des lignes terminées par des ^J
+
-[source,bash]
+[source,shell]
....
bash$ cd /tmp
bash$ cat /usr/local/shared/fonts/type1/showboat.afm |
@@ -448,7 +448,7 @@ bash$ tr '\015' '\012' >showboat.afm
* _Créons maintenant le fichier de police groff_
+
-[source,bash]
+[source,shell]
....
bash$ cd /usr/shared/groff_font/devps
bash$ /tmp/afmtodit.pl -d DESC -e text.enc /tmp/showboat.afm generate/textmap SHOWBOAT
@@ -460,7 +460,7 @@ Si l'on utilise GhostScript pour piloter les imprimantes du système, il n'y a r
* _Créer le fichier de police [.filename]#.pfa#_
+
-[source,bash]
+[source,shell]
....
bash$ fgrep internalname SHOWBOAT
internalname Showboat
@@ -468,7 +468,7 @@ internalname Showboat
* _Dire à groff qu'il faut charger la police_
+
-[source,bash]
+[source,shell]
....
bash$ ex download
bash$ :$a
@@ -479,7 +479,7 @@ bash$ :wq
Pour tester la police:
-[source,bash]
+[source,shell]
....
bash$ cd /tmp
bash$ cat >exemple.t <<EOF
@@ -513,14 +513,14 @@ bash$ groff -Tps exemple.t >exemple.ps
* _Pour utiliser GhostScript/GhostView_
+
-[source,bash]
+[source,shell]
....
bash$ ghostview exemple.ps
....
* _Pour l'imprimer_
+
-[source,bash]
+[source,shell]
....
bash$ lpr -Ppostscript exemple.ps
....
diff --git a/documentation/content/fr/articles/ipsec-must/_index.adoc b/documentation/content/fr/articles/ipsec-must/_index.adoc
index 56fdb9304c..a1cd459988 100644
--- a/documentation/content/fr/articles/ipsec-must/_index.adoc
+++ b/documentation/content/fr/articles/ipsec-must/_index.adoc
@@ -61,7 +61,7 @@ Nous avons également besoin d'une manière de capturer les données réseau bru
La commande
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -79,7 +79,7 @@ Voici l'expérience:
. Dans la fenêtre "sécurisée", lancez la commande UNIX(R) man:yes[1], qui fera défiler le caractère `y`. Au bout d'un moment, arrêtez cela. Passez à la fenêtre non sécurisée, et faites de même. Au bout d'un moment, arrêtez.
. Maintenant lancez <<code>> sur les paquets capturés. Vous devriez voir quelque chose de semblable à ce qui suit. Ce qui est important de noter est que la connexion non sécurisée a 93% (6,7) de valeurs attendues (7,18), et la connexion "normale" a 29% (2,1) de valeurs attendues.
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
% uliscan ipsecdemo.bin
diff --git a/documentation/content/fr/articles/leap-seconds/_index.adoc b/documentation/content/fr/articles/leap-seconds/_index.adoc
index 3e18145925..37195ed707 100644
--- a/documentation/content/fr/articles/leap-seconds/_index.adoc
+++ b/documentation/content/fr/articles/leap-seconds/_index.adoc
@@ -67,7 +67,7 @@ Essayez de vous assurer que rien d'horrible ne s'est produit à cause de la seco
Il est possible de vérifier si une seconde intercalaire sera utilisée. En raison de la nature de NTP, le test pourra ne pas fonctionner 24 heures avant la seconde intercalaire. Certaines horloges de référence n'annoncent les secondes intercalaires qu'une heure avant leur ajout. Questionnons le démon NTP:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/fr/articles/linux-users/_index.adoc b/documentation/content/fr/articles/linux-users/_index.adoc
index c87a901c55..42be916d26 100644
--- a/documentation/content/fr/articles/linux-users/_index.adoc
+++ b/documentation/content/fr/articles/linux-users/_index.adoc
@@ -60,14 +60,14 @@ En plus de la traditionnelle méthode UNIX(R) d'installation de logiciels (tél
Les paquetages sont des applications pré-compilées, les équivalents FreeBSD des fichiers [.filename]#.deb# pour les systèmes basés sur Debian/Ubuntu et des fichiers [.filename]#.rpm# pour les systèmes basés sur Red Hat/Fedora. Par exemple, la commande suivante installe Apache 2.2:
-[source,bash]
+[source,shell]
....
# pkg_add /tmp/apache-2.2.6_2.tbz
....
Utiliser l'option `-r` indique à man:pkg[add] de télécharger automatiquement le paquetage et de l'installer, ainsi que toutes ses dépendances:
-[source,bash]
+[source,shell]
....
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/apache22.tbz... Done.
@@ -95,7 +95,7 @@ Le catalogue des logiciels portés, parfois appelée l'arbre des ports (ports tr
Installer un logiciel porté est aussi simple (en général) que de se déplacer dans le répertoire du logiciel porté et de lancer le processus de compilation. L'exemple suivant installe Apache 2.2 depuis le catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make install clean
@@ -103,7 +103,7 @@ Installer un logiciel porté est aussi simple (en général) que de se déplacer
Un des avantages majeurs d'utiliser les logiciels portés pour installer des logiciels est de pouvoir adapter les options d'installation. Par exemple, lors de l'installation d' Apache 2.2 depuis une version portée, il vous est possible d'activer mod_ldap en fixant la variable `WITH_LDAP` de man:make[1]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make WITH_LDAP="YES" install clean
@@ -153,14 +153,14 @@ apache22_flags="-DSSL"
Dès lors qu'un service a été activé dans [.filename]#/etc/rc.conf#, ce service peut être démarré depuis la ligne de commande (sans avoir à redémarrer le système):
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd start
....
Si un service n'a pas été activé il peut être démarré depuis la ligne de commande en utilisant `forcestart`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd forcestart
....
@@ -173,7 +173,7 @@ Si un service n'a pas été activé il peut être démarré depuis la ligne de c
À la place d'un identifiant générique _ethX_ que Linux(R) utilise pour identifier une interface réseau, FreeBSD utilise le nom du pilote suivi d'un nombre en tant qu'identifiant. La sortie suivante de man:ifconfig[8] montre deux interfaces réseau Intel(R) Pro 1000 ([.filename]#em0# et [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -275,7 +275,7 @@ Avec Linux(R), il vous est peut-être arrivé de consulter [.filename]#/proc/sys
Dans l'exemple du routage IP voici ce que vous utiliseriez pour déterminer si le routage IP est activé sur votre système FreeBSD:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -283,7 +283,7 @@ net.inet.ip.forwarding: 0
L'option `-a` est utilisée pour lister tous les réglages du système:
-[source,bash]
+[source,shell]
....
% sysctl -a
kern.ostype: FreeBSD
@@ -311,7 +311,7 @@ Certaines de ces valeurs `sysctl` sont uniquement accessibles en lecture.
procfs est parfois nécessaire comme pour faire fonctionner de vieux logiciels, pour examiner des appels système en utilisant man:truss[1], et pour la link:{handbook}#linuxemu[Compatibilité Binaire avec Linux(R)] (celle-ci utilise cependant son propre procfs, man:linprocfs[5]). Si vous avez besoin de monter procfs vous pouvez ajouter la ligne suivante dans [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -323,7 +323,7 @@ proc /proc procfs rw,noauto 0 0
Et ensuite montez procfs avec:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/fr/articles/nanobsd/_index.adoc b/documentation/content/fr/articles/nanobsd/_index.adoc
index 8808c35a72..5e5fa26547 100644
--- a/documentation/content/fr/articles/nanobsd/_index.adoc
+++ b/documentation/content/fr/articles/nanobsd/_index.adoc
@@ -71,7 +71,7 @@ La partition de configuration est montée sur le répertoire [.filename]#/cfg#.
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -94,7 +94,7 @@ Une image NanoBSD est créée à l'aide d'une simple procédure [.filename]#nano
Les commandes nécessaires à la création d'une image NanoBSD sont:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -116,7 +116,7 @@ C'est probablement la fonctionnalité la plus importante et la plus intéressant
L'invocation de la commande suivante va obliger [.filename]#nanobsd.sh# à lire sa configuration dans le fichier [.filename]#myconf.nano# situé dans le répertoire courant:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -251,7 +251,7 @@ En fonction des services disponibles sur la machine qui dispose de la nouvelle i
Si la vitesse de transfert est la priorité, utiliser cet exemple:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -261,7 +261,7 @@ get _.disk.image "| sh updatep1"
Si un transfert sécurisé est préférable, considérer l'utilisation de cet exemple:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -274,7 +274,7 @@ Utiliser cet exemple si la machine distante n'utilise ni man:ftp[1] ni man:sshd[
====
. Tout d'abord, ouvrez un écouteur TCP sur la machine qui dispose de l'image et faites-lui envoyer l'image au client:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -285,7 +285,7 @@ Assurez vous que le port utilisé n'est pas bloqué par un pare-feu afin de rece
======
. Se connecter à la machine qui dispose de la nouvelle image et exécuter la procédure [.filename]#updatep1#:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/fr/articles/new-users/_index.adoc b/documentation/content/fr/articles/new-users/_index.adoc
index 67b6a9f902..321aafcba5 100644
--- a/documentation/content/fr/articles/new-users/_index.adoc
+++ b/documentation/content/fr/articles/new-users/_index.adoc
@@ -42,7 +42,7 @@ Ouvrez une session (quand vous obtenez à l'écran l'invite `login:`) avec le co
Pour terminer la session (vous obtiendrez à nouveau l'invite `login:`), tapez:
-[source,bash]
+[source,shell]
....
# exit
....
@@ -51,21 +51,21 @@ autant de fois que nécessaire. Bien sûr, n'oubliez pas la touche kbd:[Entrée]
Pour arrêtez l'ordinateur, tapez:
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
Ou, pour le redémarrer, tapez:
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
ou:
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -76,14 +76,14 @@ Vous pouvez aussi redémarrer avec: kbd:[Ctrl+Alt+Delete]. Laissez au système u
Si vous n'avez pas créé de compte utilisateur au moment de l'installation, et utilisez donc le compte root, vous devriez maintenant définir un nouvel utilisateur avec:
-[source,bash]
+[source,shell]
....
# adduser
....
La première fois que vous utiliserez adduser, le programme vous demandera peut-être de lui indiquer des options par défaut qu'il sauvegardera. Par exemple, vous préférez peut-être que l'interpréteur de commandes soit csh, s'il vous propose l'interpréteur sh. Sinon, tapez simplement Entrée pour conserver les valeurs par défaut. Celles-ci sont enregistrées dans le fichier [.filename]#/etc/adduser.conf#, que vous pouvez éditer. Supposons que vous ayez créé l'utilisateur _jacques_ dont le nom est __Jacques Dupont__. Attribuez un mot de passe à jacques si la sécurité (pourquoi pas, même des enfants pourraient pianoter sur le clavier) vous préoccupe. Quand le programme vous demande si vous voulez que jacques appartienne à d'autres groupes, répondez:
-[source,bash]
+[source,shell]
....
Login group is ``jacques''. Invite jacques into other groups: wheel
....
@@ -156,7 +156,7 @@ Essayez la commande `whatis` sur quelques utilitaires d'usage courant comme `cat
Certaines de ces commandes ne fonctionnent pas correctement? `locate` et `whatis` interrogent une base de données qui est reconstruite chaque semaine. Si votre machine n'est pas en service le weekend (et sous FreeBSD), vous devrez peut-être exécuter les commandes de maintenance quotidienne, hebdomadaire et mensuelle de temps à autre. Faites-le sous le compte root et attendez qu'elles se terminent avant de lancer la suivante.
-[source,bash]
+[source,shell]
....
# /etc/daily
sortie non mentionnée
@@ -176,14 +176,14 @@ Pour configurer votre système, vous devez éditer des fichiers texte. Ils sont
Avant d'éditer un fichier, faites-en une copie de sauvegarde. Supposons que vous vouliez modifier le fichier [.filename]#/etc/rc.conf#. Avec la commande `cd /etc` vous allez dans le répertoire [.filename]#/etc#, puis tapez:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
pour recopier le fichier [.filename]#rc.conf# dans [.filename]#rc.conf.orig#, de façon à pouvoir ensuite recopier [.filename]#rc.conf.orig# dans _rc.conf_ pour revenir à la version originale. Il serait encore mieux de le déplacer (renommer) puis de faire la copie en sens inverse:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -191,7 +191,7 @@ pour recopier le fichier [.filename]#rc.conf# dans [.filename]#rc.conf.orig#, de
parce que la commande `mv` conserve la date et le nom du propriétaire d'origine du fichier. Vous pouvez maintenant éditer le fichier [.filename]#rc.conf#. Si vous voulez revenir à la version d'origine, utilisez alors `mv rc.conf rc.conf.myedit` (en supposant que vous vouliez conserver la version que vous avez modifiée) puis:
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -200,7 +200,7 @@ pour remettre l'original à sa place.
Pour éditer un fichier, tapez:
-[source,bash]
+[source,shell]
....
# vi nom_de_fichier
....
@@ -252,14 +252,14 @@ Vous pouvez maintenant `cd` vers [.filename]#/etc#, `su` pour devenir root, util
A ce stade, vous n'avez probablement pas encore configuré FreeBSD pour pouvoir utiliser votre imprimante. Voici donc une méthode pour créer un fichier à partir d'une page de manuel, l'enregistrer sur disquette et l'imprimer sous DOS. Si par exemple, vous voulez lire dans le détail ce qui concerne la modification des droits d'accès aux fichiers (c'est assez important), la commande man chmod vous affiche la page de manuel. La commande:
-[source,bash]
+[source,shell]
....
# man chmod > chmod.txt
....
recopie la page de manuel dans le fichier [.filename]#chmod.txt# au lieu de l'afficher à l'écran. Mettez maintenant une disquette formatée DOS dans le lecteur de disquettes A:, `su` pour devenir root, et tapez:
-[source,bash]
+[source,shell]
....
# /sbin/mount -t msdos /dev/fd0 /mnt
....
@@ -268,7 +268,7 @@ pour monter le lecteur de disquettes dans le répertoire [.filename]#/mnt#.
Ensuite (plus besoin d'être root, vous pouvez utiliser `exit` pour redevenir l'utilisateur jacques), vous pouvez aller dans le répertoire où vous avez créé le fichier chmod.txt et le recopier sur la disquette avec la commande:
-[source,bash]
+[source,shell]
....
% cp chmod.txt /mnt
....
@@ -277,7 +277,7 @@ puis utiliser `ls /mnt` pour lister le contenu du répertoire [.filename]#/mnt#,
En particulier, il vous sera utile de créer un fichier à partir du résultat de la commande [.filename]#/sbin/dmesg# en tapant:
-[source,bash]
+[source,shell]
....
% /sbin/dmesg > dmesg.txt
....
@@ -286,7 +286,7 @@ et en copiant [.filename]#dmesg.txt# sur la disquette. `/sbin/dmesg` liste les i
Vous pouvez maintenant démonter le lecteur de disquette (sous le compte root) pour retirer la disquette avec la commande:
-[source,bash]
+[source,shell]
....
# /sbin/umount /mnt
....
@@ -295,7 +295,7 @@ et redémarrer la machine pour passer sous DOS. Copiez ces fichiers dans un rép
Pour pouvoir imprimer depuis FreeBSD, il faut définir l'imprimante dans le fichier [.filename]#/etc/printcap# et créer le répertoire tampon correspondant dans [.filename]#/var/spool/output#. Si votre imprimante est sur le port `lpt0` (qui s'appelle `LPT1` sous DOS), il suffit d'aller dans le répertoire [.filename]#/var/spool/output# et (sous le compte root) de créer le répertoire [.filename]#lpd#, s'il n'existe pas, en tapant:
-[source,bash]
+[source,shell]
....
# mkdir lpd
....
@@ -327,7 +327,7 @@ pages de manuel du système de fichier Unix.
Avec le commande `find` vous pouvez localiser le fichier _nom_de_fichier_ dans [.filename]#/usr# ou un de ses sous-répertoires:
-[source,bash]
+[source,shell]
....
% find /usr -name "nom_de_fichier"
....
@@ -344,7 +344,7 @@ Si vous trouvez le "manuel" trop subtil (avec ses commandes `lndir` et ainsi de
Trouvez le logiciel que vous voulez, par exemple `kermit`. Il y aura un sous-répertoire correspondant sur le CDROM. Copiez ce sous-répertoire dans [.filename]#/usr/local# (là où l'on met généralement les logiciels que l'on installe pour les mettre à la disposition de tous les utilisateurs) avec:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -355,7 +355,7 @@ Recherchez ensuite dans le répertoire [.filename]#/cdrom/ports/distfiles# un fi
Puis `cd` dans le sous-répertoire de [.filename]#/usr/local/kermit# qui contient le fichier [.filename]#Makefile#. Tapez:
-[source,bash]
+[source,shell]
....
# make all install
....
@@ -396,7 +396,7 @@ Utilisez `chsh` pour changer de façon permanente d'interpréteur de commandes,
Note: Il peut être dangereux de changer l'interpréteur de commandes du compte root en autre chose que sh ou csh avec les premières versions de FreeBSD et de nombreuses autres versions d'Unix; vous pourriez ne plus avoir d'interpréteur de commandes quand le système passe en mode mono-utilisateur. La solution est d'utiliser `su -m` pour devenir root et disposer de tcsh, parce que l'interpréteur de commandes est partie intégrante de l'environnement. Vous pouvez rendre ce fonctionnement définitif en ajoutant un alias dans votre fichier [.filename]#.tchsrc#:
-[source,bash]
+[source,shell]
....
alias su su -m
....
@@ -405,7 +405,7 @@ Quand tcsh démarre, il lit les fichiers [.filename]#/etc/csh.cshrc# et [.filena
Maintenant que vous avez installé tcsh, vous pouvez modifier l'invite du système. Vous trouverez plus de détails dans les pages de manuel de tcsh, mais voici une ligne que vous pouvez mettre dans votre fichier [.filename]#.tchsrc#, qui vous dira combien de commandes vous avez tapées, quelle heure il est, et dans quel répertoire vous vous trouvez. Un > sera aussi affiché si vous êtes un utilisateur ordinaire et un # si vous êtes root, mais tcsh fait cela de toute façon:
-[source,bash]
+[source,shell]
....
set prompt = "h t ~ "
....
diff --git a/documentation/content/fr/articles/pam/_index.adoc b/documentation/content/fr/articles/pam/_index.adoc
index 13d2732ec1..ec5fc6d248 100644
--- a/documentation/content/fr/articles/pam/_index.adoc
+++ b/documentation/content/fr/articles/pam/_index.adoc
@@ -109,7 +109,7 @@ Cette section a pour but d'illustrer quelques-uns des termes définis précédem
Cet exemple simple montre `alice` utilisant man:su[1] pour devenir `root`.
-[source,bash]
+[source,shell]
....
% whoami
alice
@@ -133,7 +133,7 @@ root
L'exemple suivant montre `eve` essayant d'initier une connexion man:ssh[1] vers `login.exemple.com`, en demandant à se logguer en tant que `bob`. La connexion réussit. Bob aurait du choisir un meilleur mot de passe !
-[source,bash]
+[source,shell]
....
% whoami
eve
@@ -299,7 +299,7 @@ OpenPAM et Linux-PAM offrent un mécanisme de configuration alternatif où les p
Le gros avantage de [.filename]#/etc/pam.d/# sur [.filename]#/etc/pam.conf# est qu'il est possible d'utiliser la même politique pour plusieurs services en liant chaque nom de service à un fichier de configuration. Par exemple pour utiliser la même politique pour les services `su` et `sudo`, nous pouvons faire comme ceci :
-[source,bash]
+[source,shell]
....
# cd /etc/pam.d
# ln -s su sudo
diff --git a/documentation/content/fr/articles/problem-reports/_index.adoc b/documentation/content/fr/articles/problem-reports/_index.adoc
index 2ea468e210..9672ac038d 100644
--- a/documentation/content/fr/articles/problem-reports/_index.adoc
+++ b/documentation/content/fr/articles/problem-reports/_index.adoc
@@ -86,7 +86,7 @@ Maintenant que vous avez décidé que votre problème mérite un rapport de bogu
Le programme man:send-pr[1] prévoit l'attachement de fichiers à un rapport de bogue. Vous pouvez attacher autant de fichiers que vous le désirez à condition que chacun ait un nom de base unique (i.e. le nom propre du fichier, sans le chemin). Utilisez juste l'option en ligne de commande `-a` pour spécifier le nom des fichiers que vous souhaitez attacher:
-[source,bash]
+[source,shell]
....
% send-pr -a /var/run/dmesg -a /tmp/errors
@@ -150,7 +150,7 @@ Et enfin, il y a une série de champs à plusieurs lignes:
Une fois que vous avez rempli et sauvegardé le formulaire, puis quitté votre éditeur, man:send-pr[1] vous proposera `s)end, e)dit or a)bort?` (envoyer, éditer ou abandonner?). Vous pouvez alors taper `s` pour continuer et envoyer le rapport, `e` pour relancer l'éditeur et faire d'autres modifications, ou encore `a` pour abandonner. Si vous choisissez cette dernière votre rapport de bogue restera sur le disque (man:send-pr[1] vous donnera le nom du fichier avant de terminer), ainsi vous pouvez l'éditer à loisir, ou peut-être même le transférer sur un système avec une meilleure connexion à l'Internet, avant de l'envoyer avec l'option `-F` de man:send-pr[1]:
-[source,bash]
+[source,shell]
....
% send-pr -f ~/my-problem-report
....
diff --git a/documentation/content/fr/books/developers-handbook/driverbasics/chapter.adoc b/documentation/content/fr/books/developers-handbook/driverbasics/chapter.adoc
index 6b575bdde7..33146c8066 100644
--- a/documentation/content/fr/books/developers-handbook/driverbasics/chapter.adoc
+++ b/documentation/content/fr/books/developers-handbook/driverbasics/chapter.adoc
@@ -98,7 +98,7 @@ KMOD=skeleton
Lancer simplement la commande `make` avec ce fichier Makefile créera un fichier [.filename]#skeleton.ko# qui peut être chargé dans votre système en tapant :
-[source,bash]
+[source,shell]
....
# kldload -v ./skeleton.ko
....
@@ -287,14 +287,14 @@ DEV_MODULE(echo,echo_loader,NULL);
Pour installer ce pilote, vous devrez d'abord créer un fichier spécial dans votre système de fichiers avec une commande comme :
-[source,bash]
+[source,shell]
....
# mknod /dev/echo c 33 0
....
Avec ce pilote chargé, vous devriez maintenant être capable de taper quelque chose comme :
-[source,bash]
+[source,shell]
....
# echo -n "Test Donnees" > /dev/echo
# cat /dev/echo
diff --git a/documentation/content/fr/books/developers-handbook/tools/chapter.adoc b/documentation/content/fr/books/developers-handbook/tools/chapter.adoc
index 64ee2997a6..2ce8bddfbb 100644
--- a/documentation/content/fr/books/developers-handbook/tools/chapter.adoc
+++ b/documentation/content/fr/books/developers-handbook/tools/chapter.adoc
@@ -61,7 +61,7 @@ Voici la liste des interpréteurs qui sont disponibles sous la forme de link:ftp
Pour obtenir un de ces logiciels pré-compilés, tout ce que vous avez à faire est de cliquer sur le lien du logiciel et d'exécuter
-[source,bash]
+[source,shell]
....
# pkg_add nom du logiciel
....
@@ -131,14 +131,14 @@ Le mot _compilation_ est souvent utilisé pour les étapes 1 à 4 seules-les aut
Heureusement, la plupart de ces détails vous sont cachés, étant donné que `cc` est un frontal qui s'occupe d'appeler tous les programmes avec les arguments corrects pour vous; tapez simplement
-[source,bash]
+[source,shell]
....
% cc foobar.c
....
compilera [.filename]#foobar.c# avec toutes les étapes au-dessus. Si vous avez plus d'un fichier à compiler, faites simplement quelque chose comme
-[source,bash]
+[source,shell]
....
% cc foo.c bar.c
....
@@ -150,7 +150,7 @@ Il y a beaucoup d'options pour `cc`, qui qui se trouvent toutes dans les pages d
`-o __nom_du_fichier__`::
Le nom de sortie du fichier. Si vous n'utilisez pas cette option, `cc` produira un exécutable appelé [.filename]#a.out#.
+
-[source,bash]
+[source,shell]
....
% cc foobar.c l'exécutable est a.out
% cc -o foobar foobar.c l'exécutable est foobar
@@ -159,7 +159,7 @@ Le nom de sortie du fichier. Si vous n'utilisez pas cette option, `cc` produira
`-c`::
Compile juste le fichier, ne le lie pas. Utile pour les programmes jouets dont vous voulez juste vérifier la syntaxe, ou si vous utilisez un [.filename]#Makefile#.
+
-[source,bash]
+[source,shell]
....
% cc -c foobar.c
....
@@ -169,7 +169,7 @@ Cela va produire un _fichier objet_ (pas un exécutable) appelé [.filename]#foo
`-g`::
Crée une version de déverminage de l'exécutable. Cela oblige le compilateur à placer des informations dans l'exécutable comme telle ligne du fichier source correspond à tel appel de fonction. Un dévermineur peut utiliser cette information pour vous montrer le code source au fur et à mesure que vous avancez pas à pas dans le programme, ce qui est _très_ utile; le désavantage est que toutes ces informations supplémentaires rendent le programme plus gros. Normalement, vous compilez avec l'option `-g` quand vous êtes en train de développer un programme et compilez ensuite une "version de production" sans `-g` quand vous êtes satisfait du fonctionnement.
+
-[source,bash]
+[source,shell]
....
% cc -g foobar.c
....
@@ -181,7 +181,7 @@ Crée une version optimisée de l'exécutable. Le compilateur effectue différen
+
L'optimisation est habituellement activée uniquement lors de la compilation d'une version de production.
+
-[source,bash]
+[source,shell]
....
% cc -O -o foobar foobar.c
....
@@ -203,7 +203,7 @@ Sans ces options, `cc` vous permettrait d'utiliser quelques extensions au standa
Generalement, vous devriez essayer de faire votre code aussi portable que possible, sinon vous pourriez avoir a ré-écrire totalement votre programme plus tard pour le faire fonctionner autre part-et qui sait ce que vous utiliserez dans quelques années?
-[source,bash]
+[source,shell]
....
% cc -Wall -ansi -pedantic -o foobar foobar.c
....
@@ -217,7 +217,7 @@ L'exemple le plus commun de cela est lors de la compilation d'un programme qui u
+
La règle est que si une librairie est appelée [.filename]#libquelque_chose.a#, vous donnez à `cc` l'argument `-l __quelque_chose__`. Par exemple, la librairie des fonctions mathématiques est [.filename]#libm.a#, aussi vous donnez à `cc` le paramètre `-lm`. Un "piège" habituel avec la librairie math est qu'elle doit être la dernière sur la ligne de commande.
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -226,7 +226,7 @@ Cela va lier les fonctions de la librairie math à l'interieur de [.filename]#fo
+
Si vous compilez du {c-plus-plus-command}; vous devrez ajouter {lg-plus-plus}, ou {lstdc-plus-plus} si vous utilisez FreeBSD 2.2 ou ultérieur, à la ligne de commande de `cc` pour lier avec les fonctions de la librairie {c-plus-plus-command}. Alternativement, vous pouvez utiliser {c-plus-plus-command} plutôt que `cc`, qui fait tout cela pour vous. {c-plus-plus-command} peut aussi être invoqué par {gcc-plus-plus-command} sur FreeBSD.
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.cc -lg++ Pour FreeBSD 2.1.6 et antérieur
% cc -o foobar foobar.cc -lstdc++ Pour FreeBSD 2.2 et ultérieur
@@ -241,7 +241,7 @@ Chacune de ces commandes va produire un exécutable [.filename]#foobar# à parti
Lors de l'utilisation des fonctions mathématiques comme `sin()`, vous devez dire à `cc` de lier avec la librairie math, comme :
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -265,7 +265,7 @@ int main() {
Après avoir recompilé comme précédemment, exécutez :
-[source,bash]
+[source,shell]
....
% ./a.out
2.1 ^ 6 = 85.766121
@@ -277,7 +277,7 @@ Si vous utilisez quelques fonctions mathématiques que ce soit, incluez _toujour
Souvenez-vous, `cc` appellera l'exécutable [.filename]#a.out# sauf si vous lui dites de faire autrement. Utilisez l'option `-o _nomfichier_`:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c
....
@@ -286,7 +286,7 @@ Souvenez-vous, `cc` appellera l'exécutable [.filename]#a.out# sauf si vous lui
A l'inverse de MS-DOS, Unix ne regarde pas dans le répertoire courant lorsqu'il essaye de trouver un exécutable que vous voulez exécuter, sauf si vous lui avez dit de le faire. Vous pouvez soit taper `./foobar`, ce qui signifie "exécute le fichier nommé [.filename]#foobar# dans le répertoire courant", soit changer votre variable d'environnement `PATH` de façon à ce qu'elle ressemble à quelque chose comme
-[source,bash]
+[source,shell]
....
bin:/usr/bin:/usr/local/bin:.
....
@@ -297,7 +297,7 @@ Le point à la fin signifie "regarde dans le repertoire courant s'il n'est dans
La plupart des systèmes Unix ont un programme appelé `test` dans [.filename]#/usr/bin# et l'interpréteur prend celui-ci avant de vérifier dans le répertoire courant. Soit vous tapez
-[source,bash]
+[source,shell]
....
% ./test
....
@@ -379,14 +379,14 @@ Non, heureusement non (sauf si bien sûr vous avez réellement un problème mat
Oui, ouvrez une autre console ou xterm, faites
-[source,bash]
+[source,shell]
....
% ps
....
pour trouver l'identifiant du processus de votre programme, et faites
-[source,bash]
+[source,shell]
....
% kill -ABRT identifiant
....
@@ -405,7 +405,7 @@ Si vous voulez créer un fichier [.filename]#core# depuis l'extérieur de votre
Quand vous travaillez sur un programme simple avec seulement un ou deux fichiers source, taper
-[source,bash]
+[source,shell]
....
% cc fichier1.c fichier2.c
....
@@ -414,7 +414,7 @@ n'est pas si mal, mais cela devient rapidement fastidieux quand il y a plusieurs
Une façon de contourner cela est d'utiliser les fichiers objet et de recompiler le fichier source seulement si le code source a changé. Aussi, nous pourrions avoir quelque chose comme ça:
-[source,bash]
+[source,shell]
....
% cc fichier1.o fichier2.o … fichier37.c …
....
@@ -462,7 +462,7 @@ install:
Nous pouvons dire à `make` quelle cible nous voulons en tapant:
-[source,bash]
+[source,shell]
....
% make cible
....
@@ -512,7 +512,7 @@ Si vous voulez jeter un regard sur ces [.filename]##Makefile##s système, ils se
La version de `make` fournies avec FreeBSD est le Berkeley make(make de Berkeley); il y a un cours d'instruction pour celui-ci dans [.filename]#/usr/shared/doc/psd/12.make#. Pour le voir, faites
-[source,bash]
+[source,shell]
....
% zmore paper.ascii.gz
....
@@ -537,14 +537,14 @@ au fichier. Une fois que vous avez fait ceci, vous pouvez taper `info` et ensuit
Le dévermineur fourni avec FreeBSD est appelé `gdb` (GNU debugger). Vous pouvez le démarrer en tapant
-[source,bash]
+[source,shell]
....
% gdb nomprog
....
bien que la plupart des gens préfèrent le démarrer au sein d'Emacs. Vous pouvez faire cela avec:
-[source,bash]
+[source,shell]
....
M-x gdb RET nomprog RET
....
@@ -561,7 +561,7 @@ Cette section a pour but d'être une introduction à l'utilisation de `gdb` et n
Vous devrez avoir compilé le programme avec l'option `-g` pour avoir la meilleure utilisation de `gdb`. Il fonctionnera sans mais vous ne verrez que le nom de la fonction dans laquelle vous vous trouvez plutôt que son code source. Si vous voyez une ligne comme:
-[source,bash]
+[source,shell]
....
... (no debugging symbols found) ...
....
@@ -598,7 +598,7 @@ Le programme met i à `5` et le passe à une fonction `bazz()` qui imprime le no
Puis nous compilons et exécutons le programme obtenu
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -608,7 +608,7 @@ Vous m'avez fourni 4231
Ce n'était pas ce que nous attendions ! Il est temps de voir ce qui se passe !
-[source,bash]
+[source,shell]
....
% gdb temp
GDB is free software and you are welcome to distribute copies of it
@@ -630,7 +630,7 @@ bazz (anint=4231) at temp.c:17 gdb montre la pile
Arrêtons-nous une minute! Comment anint a eu la valeur `4231`? Ne l'avons-nous pas mis à `5` dans `main()`? Remontons dans `main()` et regardons.
-[source,bash]
+[source,shell]
....
(gdb) up Remonte la pile des appels
#1 0x1625 in main () at temp.c:11 gdb montre la pile
@@ -664,7 +664,7 @@ Un fichier [.filename]#core# est basiquement un fichier qui contient l'état com
Pour examiner un fichier [.filename]#core#, démarrez `gdb` de façon habituel. Plutôt que de taper `break` ou `run`, tapez
-[source,bash]
+[source,shell]
....
(gdb) core nomprog.core
....
@@ -673,7 +673,7 @@ Si vous n'êtes pas dans le même répertoire que le fichier [.filename]#core#,
Vous devriez voir quelque chose comme cela:
-[source,bash]
+[source,shell]
....
% gdb a.out
GDB is free software and you are welcome to distribute copies of it
@@ -692,7 +692,7 @@ Dans ce cas, le programme a été appelé [.filename]#a.out#, aussi le fichier [
Quelquefois il est utile de pouvoir voir comment une fonction a été appelée car le problème peut avoir eu lieu bien avant dans la pile des appels dans un programme complexe. La commande `bt` demande à `gdb` d'afficher une trace inverse de la pile des appels:
-[source,bash]
+[source,shell]
....
(gdb) bt
#0 0x164a in bazz (anint=0x5) at temp.c:17
@@ -709,7 +709,7 @@ Une des plus belles caractéristiques de `gdb` est qu'il peut se brancher sur un
Ce que vous devez faire est de démarrer un autre `gdb`, utiliser `ps` pour trouver l'ID du processus fils et faire
-[source,bash]
+[source,shell]
....
(gdb) attach identifiant_processus
....
@@ -718,7 +718,7 @@ dans `gdb`, et déverminer ensuite comme d'habitude.
"C'est tout simple," pensez-vous certainement," mais pendant le temps que je faisais ça, le processus fils sera déjà parti loin". Ne vous en faites pas, noble lecteur, voici comment faire (avec l'appui des pages d'info de `gdb`):
-[source,bash]
+[source,shell]
....
if ((pid = fork()) < 0) /* _Toujours_ verifier cela */
@@ -797,7 +797,7 @@ Malheureusement, il y a beaucoup trop de choses ici pour les expliquer en détai
* Emacs possède déjà une fonction pré-définie appelée `next-error`. Dans la fenêtre de sortie d'une compilation, cela vous permet de vous déplacer d'une erreur de compilation à la suivante en faisant `M-n`; nous définissons une fonction complémentaire `previous-error`, qui vous permet d'aller à l'erreur précédente en faisant `M-p`. Le plus beau dispositif de tous est que `C-c C-c` va ouvrir le fichier source dans lequel l'erreur a eu lieu et sautera à la ligne appropriée.
* Nous autorisons la capacité d'Emacs à agir comme un serveur ainsi si vous faites quelque chose en dehors d'Emacs et voulez éditer un fichier, tapez juste
+
-[source,bash]
+[source,shell]
....
% emacsclient nomfichier
....
@@ -1102,7 +1102,7 @@ Maintenant, Emacs est très bien si vous voulez seulement programmer dans des la
La première chose à faire est de savoir si whizbang est fourni avec des fichiers de configuration pour Emacs. Ceux-ci se terminent habituellement par [.filename]#.el#, raccourci pour "Emacs Lisp". Par exemple, si whizbang est un logiciel porté FreeBSD, nous pouvons localiser ces fichiers en faisant
-[source,bash]
+[source,shell]
....
% find /usr/ports/lang/whizbang -name "*.el" -print
....
@@ -1111,14 +1111,14 @@ et les installer en les copiant dans le répertoire Lisp d'Emacs. Sur FreeBSD 2.
Aisni par exemple, si la sortie de la commande `find` était
-[source,bash]
+[source,shell]
....
/usr/ports/lang/whizbang/work/misc/whizbang.el
....
nous ferions
-[source,bash]
+[source,shell]
....
# cp /usr/ports/lang/whizbang/work/misc/whizbang.el /usr/local/shared/emacs/site-lisp
....
diff --git a/documentation/content/fr/books/faq/_index.adoc b/documentation/content/fr/books/faq/_index.adoc
index 17ff0828f7..ef5f264e1f 100644
--- a/documentation/content/fr/books/faq/_index.adoc
+++ b/documentation/content/fr/books/faq/_index.adoc
@@ -500,7 +500,7 @@ Vous pouvez ré-installer le gestionnaire de démarrage de FreeBSD de deux mani
* Sous DOS, allez dans le répertoire [.filename]#tools# de votre distribution FreeBSD et cherchez un programme [.filename]#bootinst.exe#. Il vous l'exécutez ainsi:
+
-[source,bash]
+[source,shell]
....
c:\tools>bootinst.exe boot.bin
....
diff --git a/documentation/content/fr/books/handbook/advanced-networking/_index.adoc b/documentation/content/fr/books/handbook/advanced-networking/_index.adoc
index b89dd55f1b..23f9e88f2c 100644
--- a/documentation/content/fr/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/fr/books/handbook/advanced-networking/_index.adoc
@@ -76,7 +76,7 @@ Pour qu'une machine soit en mesure d'en contacter une autre, il faut que soit mi
Pour illustrer différents aspects du routage, nous utiliserons l'exemple suivant, qui est produit par la commande `netstat`:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -199,7 +199,7 @@ defaultrouter="10.20.30.1"
Il est également possible de faire directement cela à partir de la ligne de commande avec la commande man:route[8]:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -242,7 +242,7 @@ Dans ce scénario, `RouteurA` est notre machine FreeBSD qui joue le rôle de rou
Si nous regardons la table de routage de `RouteurA` nous verrions quelque chose comme:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -257,7 +257,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Avec la table de routage actuelle, `RouteurA` ne sera pas en mesure d'atteindre notre réseau interne 2. Elle ne dispose pas de route pour `192.168.2.0/24`. Une manière de résoudre cela est d'ajouter manuellement la route. La commande suivante ajouterait le réseau interne 2 à la table de routage de `RouteurA` en utilisant `192.168.1.2` comme point intermédiaire:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -277,7 +277,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
La variable `static_routes` est une liste de chaîne de caractères séparées par une espace. Chaque chaîne fait référence à un nom de route. Dans notre exemple nous avons qu'une seule chaîne dans `static_routes`. Cette chaîne est _internalnet2_. Nous ajoutons ensuite une variable de configuration appelée `route_internalnet2` dans laquelle nous mettons tous les paramètres de configuration que nous passerions à la commande man:route[8]. Pour nous exemple précédent nous aurions utilisé la commande:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -367,7 +367,7 @@ Le mode point d'accès implémenté par FreeBSD fonctionne mieux avec certaines
Assurez-vous tout d'abord que votre système voit la carte réseau sans fil:
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -386,7 +386,7 @@ Ne vous préoccupez pas des détails, verifiez juste que s'affiche quelque chose
Ensuite, vous devrez charger un module afin de mettre en place la partie de FreeBSD faisant office de pont pour le point d'accès. Pour charger le module man:bridge[4], exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# kldload bridge
....
@@ -395,7 +395,7 @@ Vous ne devriez pas voir apparaître de message d'erreur lors du chargement du m
Maintenant que cette partie est assurée, nous devons dire à FreeBSD entre quelles interface le pont doit être installé. Nous effectuons cette configuration en utilisant man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.enable=1
# sysctl net.link.ether.bridge.config="wi0 xl0"
@@ -404,7 +404,7 @@ Maintenant que cette partie est assurée, nous devons dire à FreeBSD entre quel
Sous les versions antérieures à la 5.2, vous devez utiliser à la place les options suivantes:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge=1
# sysctl net.link.ether.bridge_cfg="wi0,xl0"
@@ -413,7 +413,7 @@ Sous les versions antérieures à la 5.2, vous devez utiliser à la place les op
Il est maintenant possible de configurer la carte. La commande suivante positionnera la carte en mode point d'accès:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 ssid my_net channel 11 media DS/11Mbps mediaopt hostap up stationname "FreeBSD AP"
....
@@ -428,7 +428,7 @@ Il est également conseillé de lire la section qui suit sur le chiffrage.
Une fois que le point d'accès est configuré et opérationnel, les opérateurs voudront voir quels clients sont associés avec le point d'accès. A n'importe quel instant, l'opérateur pourra taper:
-[source,bash]
+[source,shell]
....
# wicontrol -l
1 station:
@@ -460,7 +460,7 @@ Dans cet exemple, nous n'utilisons pas le chiffrage des liaisons, ce qui est une
Assurez-vous que votre carte est reconnue par FreeBSD:
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -477,7 +477,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Maintenant, nous pouvons configurer la carte suivant les paramètres de notre réseau:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net
....
@@ -488,14 +488,14 @@ Une fois cela effectué, vous devriez être en mesure d'utiliser man:ping[8] pou
Si vous rencontrez des problèmes avec votre connexion sans fil, vérifiez que vous êtes associé-"associated" (connecté) avec le point d'accès:
-[source,bash]
+[source,shell]
....
# ifconfig wi0
....
devrait retourner un certain nombre d'information; et vous devriez voir s'afficher:
-[source,bash]
+[source,shell]
....
status: associated
....
@@ -514,14 +514,14 @@ WEP est l'abbrévation de "Wired Equivalency Protocol". Le protocole de chiffrag
Cela reste mieux que rien du tout, utilisez ce qui suit pour activer WEP sur votre nouveau point d'accès FreeBSD:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet up ssid my_net wepmode on wepkey 0x1234567890 media DS/11Mbps mediaopt hostap
....
Et vous pouvez activer WEP sur un client avec la commande:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net wepmode on wepkey 0x1234567890
....
@@ -580,7 +580,7 @@ Pour utiliser le NDISulator, vous avez besoin de trois choses:
Vous aurez besoin de compiler le module d'interface du mini-pilote man:ndis[4]. En tant que `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/modules/ndis
# make make install
@@ -590,7 +590,7 @@ Recherchez les fichiers spécifiques à votre carte. Généralement, ils peuvent
L'étape suivante est de compiler le pilote binaire dans un module chargeable du noyau. Pour effectuer cela, en tant que `root`, rendez vous dans le répertoire du module [.filename]#if_ndis# et copiez-y les fichiers du pilote Windows(R):
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/modules/if_ndis
# cp /path/to/driver/W32DRIVER.SYS ./
@@ -599,7 +599,7 @@ L'étape suivante est de compiler le pilote binaire dans un module chargeable du
Nous utiliserons maintenant l'utilitaire `ndiscvt` pour générer le fichier d'entête [.filename]#ndis_driver_data.h# du pilote pour la compilation du module:
-[source,bash]
+[source,shell]
....
# ndiscvt -i W32DRIVER.INF -s W32DRIVER.SYS -o ndis_driver_data.h
....
@@ -613,14 +613,14 @@ Certains pilotes Windows(R) nécessitent des fichiers supplémentaires pour fonc
Nous pouvons enfin compiler et installer le module du pilote:
-[source,bash]
+[source,shell]
....
# make make install
....
Pour utiliser le pilote, vous devez charger les modules appropriés:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -628,7 +628,7 @@ Pour utiliser le pilote, vous devez charger les modules appropriés:
La première commande charge le pilote d'interface NDIS, la seconde charge l'interface réseau. Contrôlez la sortie de man:dmesg[8] à la recherche d'une quelconque erreur au chargement. Si tout s'est bien passé, vous devriez obtenir une sortie ressemblant à ce qui suit:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -652,7 +652,7 @@ La pile Bluetooth(R) sous FreeBSD utilise le système Netgraph (voir man:netgrap
Par défaut les pilotes de périphériques Bluetooth(R) sont disponibles sous la forme de modules du noyau. Avant de brancher le périphérique, vous devrez charger le pilote dans le noyau:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -666,7 +666,7 @@ ng_ubt_load="YES"
Branchez votre clé USB. Une sortie semblable à celle-ci devrait s'afficher sur la console (ou dans les journaux du système):
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -680,7 +680,7 @@ La pile Bluetooth doit être lancée manuellement sous FreeBSD 6.0, et sous les
Copiez [.filename]#/usr/shared/examples/netgraph/bluetooth/rc.bluetooth# à un emplacement adapté, comme [.filename]#/etc/rc.bluetooth#. Cette procédure est utilisée pour démarrer et arrêter la pile Bluetooth(R). C'est une bonne idée d'arrêter la pile avant de débrancher le périphérique, mais ce n'est pas (généralement) fatal. Quand la pile démarre, vous devriez avoir des messages similaires aux suivants:
-[source,bash]
+[source,shell]
....
# /etc/rc.bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -706,7 +706,7 @@ Un seul noeud Netgraph de type _hci_ est créé pour un périphérique Bluetooth
Une des tâches les plus courantes est la recherche de périphériques Bluetooth(R) dans le voisinage hertzien. Cette opération est appelée _inquiry_ (enquête, recherche). Cette recherche et les autres opérations relatives à HCI sont effectuées par l'utilitaire man:hccontrol[8]. L'exemple ci-dessous montre comment déterminer quels périphériques Bluetooth(R) sont dans le voisinage. Vous devriez obtenir une listes de périphériques au bout de quelques secondes. Notez qu'un périphérique distant ne répondra à la recherche que s'il est placé dans le mode _discoverable_.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -722,7 +722,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` est l'adresse unique d'un périphérique Bluetooth(R), similaire à l'adresse MAC d'une carte réseau. Cette adresse est nécessaire pour communiquer avec un périphérique. Il est possible d'assigner un nom humainement compréhensible à l'adresse BD_ADDR. Le fichier [.filename]#/etc/bluetooth/hosts# contient des informations concernant les hôtes Bluetooth(R) connus. L'exemple suivant montre comment obtenir le nom qui a été assigné au périphérique distant:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -733,7 +733,7 @@ Si vous effectuez une recherche sur un périphérique Bluetooth(R) distant, vous
Le système Bluetooth(R) fournit une connexion point à point (seules deux matériels Bluetooth(R) sont concernés), ou une connexion point à multipoints. Dans le cas d'une connexion point à multipoints, la connexion est partagés entre plusieurs périphériques Bluetooth(R). L'exemple suivant montre comment obtenir la liste des connexions en bande de base actives pour le périphérique local:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -742,7 +742,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Une _manipulation de la connexion_ est utile quand la fin d'une connexion en bande de base est nécessaire. Notez qu'il n'est normalement pas nécessaire de le faire à la main. La pile mettra fin automatiquement aux connexions en bande de base inactives.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -761,7 +761,7 @@ Un seul noeud Netgraph de type _l2cap_ est créé pour un périphérique Bluetoo
Une commande utile est man:l2ping[8], qui peut être utilisée pour "pinguer" les autres périphériques. Certaines implémentations de Bluetooth(R) peuvent ne pas renvoyer toutes les données qui leur sont envoyées, aussi `0 bytes` dans ce qui suit est normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -772,7 +772,7 @@ Une commande utile est man:l2ping[8], qui peut être utilisée pour "pinguer" le
L'utilitaire man:l2control[8] est employé pour effectuer diverses opérations sur les noeuds L2CAP. Cet exemple montre comment obtenir la liste des connexions logiques (canaux) et la liste des connexions en bande de base pour le périphérique local:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -786,7 +786,7 @@ Remote BD_ADDR Handle Flags Pending State
Un autre outil de diagnostic est man:btsockstat[1]. Il effectue un travail similaire à celui de man:netstat[1], mais relatif aux structures de données réseau Bluetooth(R). L'exemple ci-dessous montre la même connexion logique que man:l2control[8] ci-dessus.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -857,7 +857,7 @@ Généralement, un client SDP recherche les services sur la base de caractérist
Le serveur SDP Bluetooth(R) man:sdpd[8] et le client en ligne de commande man:sdpcontrol[8] font partie de l'installation FreeBSD standard. L'exemple suivant montre comment effectuer un requête de navigation ("browse") SDP:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -885,7 +885,7 @@ Bluetooth Profile Descriptor List:
... et ainsi de suite. Remarquez que chaque service a une liste d'attributs (canal RFCOMM par exemple). En fonction du service vous pourrez avoir besoin de prendre note de certains de ces attributs. Certaines implémentations Bluetooth(R) ne supportent pas les requêtes de navigation et peuvent renvoyer une liste vide. Dans ce cas il est possible de chercher un service spécifique. L'exemple ci-dessous montre comment chercher le service OBEX Object Push (OPUSH):
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -899,14 +899,14 @@ sdpd_enable="YES"
Ensuite, le "démon"sdpd peut être démarré avec:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sdpd start
....
Sous FreeBSD 6.0, et sous les versions FreeBSD 5.X antérieures à 5.5, sdpd n'est pas intégré aux procédures de démarrage du système. Il doit être lancé manuellement:
-[source,bash]
+[source,shell]
....
# sdpd
....
@@ -915,7 +915,7 @@ L'application serveur locale qui désire offrir un service Bluetooth(R) à des c
La liste des services enregistrés auprès du serveur SDP local peut être obtenue en émettant une requête de navigation ("browse") SDP par l'intermédiaire du canal de contrôle:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -937,14 +937,14 @@ Sous FreeBSD les deux profils sont implémentés par man:ppp[8] et man:rfcomm_pp
Dans l'exemple suivant man:rfcomm_pppd[8] sera employé pour ouvrir un connexion RFCOMM avec le périphérique distant avec une adresse BD_ADDR 00:80:37:29:19:a4 sur un canal DUN RFCOMM. Le numéro de canal RFCOMM réel sera obtenu du périphérique distant par l'intermédiaire de SDP. Il est possible de préciser le canal RFCOMM à la main, dans ce cas man:rfcomm_pppd[8] n'émettra pas de requête SDP. Utilisez man:sdpcontrol[8] pour trouver le canal RFCOMM sur le périphérique distant.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
Afin de fournir un service d'accès au réseau local avec PPP, le serveur man:sdpd[8] doit être en fonctionnement. Une nouvelle entrée pour les clients du réseau local doit être créée dans le fichier [.filename]#/etc/ppp/ppp.conf#. Consultez la page de manuel man:rfcomm_pppd[8] pour des exemples. Enfin, lancez le serveur RFCOMM PPP sur un numéro de canal RFCOMM valide. Le serveur RFCOMM PPP enregistrera automatiquement un service Bluetooth(R) LAN auprès du "daemon" SDP local. L'exemple ci-dessous montre comment démarrer le serveur RFCOMM PPP:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -957,7 +957,7 @@ Le serveur et le client OBEX sont implémentés dans le logiciel tierce-partie o
Le client OBEX est employé pour "pousser" et/ou "tirer" des objets du serveur OBEX. Un objet peut être, par exemple, une carte de visite ou un rendez-vous. Le client OBEX peut obtenir un numéro de canal RFCOMM d'un périphérique distant par l'intermédiaire de SDP. Cela peut être fait en spécifiant le nom du service plutôt que le numéro du canal RFCOMM. Les noms de service supportés sont: IrMC, FTRN et OPUSH. Il est possible de préciser le canal RFCOMM par un nombre. Un exemple de session OBEX est présenté ci-dessous, où l'objet information du périphérique d'un téléphone portable est récupéré, et un nouvel objet (carte de visite) est envoyé dans le répertoire du téléphone.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -970,7 +970,7 @@ Success, response: OK, Success (0x20)
Afin de fournir le service OBEX Object Push, le serveur man:sdpd[8] doit tourner. Un dossier racine où tous les objets entrant seront stockés doit être créé. Le chemin d'accès par défaut du répertoire racine est [.filename]#/var/spool/obex#. Le serveur OBEX enregistrera automatiquement le service OBEX Object Push auprès du "daemon" SDP local. L'exemple ci-dessous montre comment démarrer le serveur OBEX:
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -981,7 +981,7 @@ Le profil port série (SPP) permet aux périphériques Bluetooth(R) d'émuler un
L'utilitaire man:rfcomm_sppd[1] implémente le profil port série. Un pseudo terminal est utilisé comme abstraction de port série virtuel. L'exemple ci-dessous montre comment se connecter à un service port série d'un périphérique distant. Notez que vous n'avez pas besoin d'indiquer un canal RFCOMM - man:rfcomm_sppd[1] peut l'obtenir auprès du périphérique distant via SDP. Si vous désirez forcer cela, spécifiez un canal RFCOMM sur la ligne de commande.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -989,7 +989,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Une fois connecté, le pseudo-terminal peut être utilisé comme un port série:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1000,7 +1000,7 @@ Une fois connecté, le pseudo-terminal peut être utilisé comme un port série:
Certains anciens périphériques Bluetooth(R) ne supportent pas de changement de rôle. Par défaut, quand FreeBSD accepte une nouvelle connexion, il tente d'effectuer un changement de rôle et de devenir maître. Les périphériques qui ne supportent pas cela ne seront pas en mesure de se connecter. Notez qu'un changement de rôle est effectué quand une nouvelle connexion est établie, il n'est donc pas possible de demander au périphérique distant s'il supporte le changement de rôle. Il existe une option HCI pour désactiver le changement de rôle au niveau local:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1252,7 +1252,7 @@ Pour notre configuration nous utiliserons une disquette de démarrage. Pour d'au
Pour créer une disquette de démarrage, insérez une disquette dans le lecteur de la machine où vous avez installé Etherboot, puis rendez-vous dans le répertoire [.filename]#src# de l'arborescence Etherboot et tapez:
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
....
@@ -1289,7 +1289,7 @@ Il apparaît que certaines versions de PXE veulent la version TCP de TFTP. Dans
+
. Demandez à inetd de relire son fichier de configuration:
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -1318,7 +1318,7 @@ nfs_server_enable="YES"
+
. Demandez à mountd de relire son fichier de configuration. Si vous avez eu besoin d'activer NFS dans [.filename]#/etc/rc.conf# lors du premier point, vous voudrez probablement plutot redémarrer la machine.
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
@@ -1429,7 +1429,7 @@ Dans le fichier [.filename]#/etc/bootptab#, la taille de l'espace de pagination
+
. Sur le serveur du fichier de pagination par NFS, créez le(s) fichier(s) de pagination:
+
-[source,bash]
+[source,shell]
....
# mkdir /netswapvolume/netswap
# cd /netswapvolume/netswap
@@ -1453,7 +1453,7 @@ Ensuite demandez à mountd à relire le fichier [.filename]#exports#, comme plus
Le noyau ne supporte pas l'activation de la pagination par NFS au démarrage. L'espace de pagination doit être activé par les procédures de démarrage, en montant un système de fichiers accessible en écriture et en créant et en activant un fichier de pagination. Pour créer un fichier de pagination de la taille appropriée, vous pouvez effectuer ce qui suit:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/path/to/swapfile bs=1k count=1 oseek=100000
....
@@ -1909,7 +1909,7 @@ BUSY
Tout d'abord procurez-vous un câble "laplink". Vérifiez ensuite que les deux ordinateurs disposent d'un noyau avec le support pour le pilote de périphérique man:lpt[4].
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -1933,7 +1933,7 @@ hint.ppc.0.irq="7"
Ensuite vérifiez si le fichier de configuration du noyau contient une ligne `device plip` ou si le module [.filename]#plip.ko# est chargé. Dans les deux cas l'interface réseau parallèle devrait apparaître quand vous utilisez la commande man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -1951,14 +1951,14 @@ IP Address 10.0.0.1 10.0.0.2
Configurez l'interface sur `host1` en tapant:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.1 10.0.0.2
....
Configurez l'interface sur `host2` en tapant:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -1976,7 +1976,7 @@ Vous devriez également ajouter les deux noms de machines dans le fichier [.file
Pour vérifier le bon fonctionnement de la connexion, aller sur les deux machines et effectuez un "ping" vers l'autre machine. Par exemple, sur `host1`:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -2104,7 +2104,7 @@ Une troisième forme est d'écrire les derniers 32 bits dans le style IPv4 bien
Maintenant le lecteur devrait être en mesure de comprendre ce qui suit:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2138,7 +2138,7 @@ Consultez tout d'abord le site http://www.6bone.net/[6bone] et recherchez une co
Voici un exemple typique de configuration d'un tunnel man:gif[4]:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0
@@ -2158,13 +2158,13 @@ Au cas où vous seriez intrigué par l'adresse `ff02:1%gif0`, sachez que c'est u
Désormais, la mise en place d'une route vers votre lien 6bone devrait être relativement directe:
-[source,bash]
+[source,shell]
....
# route add -inet6 default -interface gif0
# ping6 -n MON_LIEN_MONTANT
....
-[source,bash]
+[source,shell]
....
# traceroute6 www.jp.FreeBSD.org
(3ffe:505:2008:1:2a0:24ff:fe57:e561) from 3ffe:8060:100::40:2, 30 hops max, 12 byte packets
@@ -2348,7 +2348,7 @@ Pour réaliser un réseau maillé, nous avons besoin d'une connexion ATM entre c
Les valeurs VPI et VCI à chaque extrémité de la connexion peuvent bien évidemment être différentes, mais par souci de simplicité nous supposerons quelles sont identiques. Ensuite nous devons configurer les interfaces ATM sur chaque machine:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -2358,7 +2358,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
en supposant que l'interface ATM est [.filename]#hatm0# sur toutes les machines. Maintenant les PVCs doivent être configurées sur `hostA` (nous supposons qu'elles sont déjà configurées sur les switches ATM, vous devez consulter le manuel du switch sur comment réaliser cette configuration).
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -2379,7 +2379,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Bien évidemment des contrats de trafic autres qu'UBR ("Unspecified Bit Rate") peuvent être utilisés dès que la carte ATM les supportent. Dans ce cas le nom du contrat de trafic est suivi par les paramètres du trafic. De l'aide concernant l'outil man:atmconfig[8] peut être obtenue avec:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -2400,7 +2400,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
L'état de toutes les routes CLIP peut être obtenu avec:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
diff --git a/documentation/content/fr/books/handbook/audit/_index.adoc b/documentation/content/fr/books/handbook/audit/_index.adoc
index e938151973..a882025fbf 100644
--- a/documentation/content/fr/books/handbook/audit/_index.adoc
+++ b/documentation/content/fr/books/handbook/audit/_index.adoc
@@ -96,7 +96,7 @@ auditd_enable="YES"
Puis, le daemon d'audit peut être lancé:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -309,7 +309,7 @@ Etant donné que les traces d'audit sont stockées sous le format binaire BSM ("
Par exemple, pour afficher sous forme de texte brut l'intégralité du contenu du fichier journal d'audit précisé:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -335,7 +335,7 @@ Le format de sortie XML est également supporté et peut être sélectionné en
Comme les journaux d'audit peuvent être très gros, un sous-ensemble d'enregistrements peut être sélectionné en utilisant `auditreduce`. Cet exemple sélectionne tous les enregistrements produits pour l'utilisateur `trhodes` et stockés dans le fichier _AUDITFILE_:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -346,7 +346,7 @@ Les membres du groupe `audit` sont autorisés à lire les traces d'audit présen
Les tubes ("pipes") d'audit sont des pseudo-périphériques "clonables" qui autorisent aux applications l'accès au flux d'enregistrement des audits en cours. C'est de tout premier intérêt pour les auteurs d'applications de détection des intrusions et de surveillance du système. Cependant, le tube d'audit est un moyen pratique pour l'administrateur pour autoriser la surveillance en direct sans avoir à faire face aux problèmes de permissions ou de rotation des fichiers journaux interrompant le flux des enregistrements des événements. Pour suivre le flux des enregistrements de l'audit en cours:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -370,7 +370,7 @@ Il est relativement simple de produire un effet de boucle sans fin, dans lequel
Les traces d'audit sont écrites par le noyau, et sont gérées par le "démon" d'audit, man:auditd[8]. Les administrateurs ne devraient donc pas tenter d'utiliser man:newsyslog.conf[5] ou tout autre outil pour assurer la rotation directe des journaux d'audit. A la place, l'utilitaire `audit` devrait être employé pour stopper l'audit, reconfigurer le système d'audit et effectuer la rotation des journaux. La commande suivante provoque la création d'un nouveau fichier journal d'audit par le "démon" et signale au noyau d'utiliser le nouveau fichier pour les enregistrements. L'ancien fichier journal sera fermé et renommé et pourra, à partir de cet instant, être manipulé par l'administrateur:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/fr/books/handbook/basics/_index.adoc b/documentation/content/fr/books/handbook/basics/_index.adoc
index 1ce008600a..34d561fe15 100644
--- a/documentation/content/fr/books/handbook/basics/_index.adoc
+++ b/documentation/content/fr/books/handbook/basics/_index.adoc
@@ -73,7 +73,7 @@ FreeBSD peut être utilisé de diverses façons. L'une d'elles est en tapant des
Si vous n'avez pas configuré FreeBSD pour lancer automatiquement un environnement graphique au démarrage, le système vous présentera une invite d'ouverture de session après son démarrage, juste après la fin des procédures de démarrage. Vous verrez quelque chose de similaire à:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -113,14 +113,14 @@ Chaque système multi-utilisateur a besoin d'un moyen pour distinguer un "utilis
Juste après que FreeBSD ait démarré et en ait terminé avec l'exécution des procédures de démarrage, il présentera une invite et demandera un nom d'utilisateur valide:
-[source,bash]
+[source,shell]
....
login:
....
Pour cet exemple, supposons que votre nom d'utilisateur est `john`. Tapez `john` à cette invite puis appuyez sur kbd:[Entrée]. Alors vous devrez être invité à entrer un "mot de passe":
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -202,14 +202,14 @@ options SC_PIXEL_MODE
Une fois votre noyau recompilé avec ces deux options, vous pouvez déterminer quels sont les modes vidéo supportés par votre matériel en utilisant l'outil man:vidcontrol[1]. Pour obtenir une liste des modes supportés, tapez la ligne suivante:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
La sortie de cette commande est une liste des modes vidéo que supporte votre matériel. Vous pouvez ensuite décider d'utiliser un nouveau mode en le passant à la commande man:vidcontrol[1] tout en ayant les droits de `root`:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -270,7 +270,7 @@ Puisque le système est capable de supporter des utilisateurs multiples, tout ce
Vous pouvez utiliser l'option `-l` avec la commande man:ls[1] pour afficher le contenu du répertoire sous forme une longue et détaillée qui inclut une colonne avec des informations sur les permissions d'accès des fichiers pour le propriétaire, le groupe, et le reste du monde. Par exemple un `ls -l` dans un répertoire quelconque devrait donner:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -282,7 +282,7 @@ total 530
Voici comment est divisée la première colonne de l'affichage généré par `ls -l`:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -359,14 +359,14 @@ Les permissions symboliques, parfois désignées sous le nom d'expressions symbo
Ces valeurs sont utilisées avec la commande man:chmod[1] comme précédemment mais avec des lettres. Par exemple, vous pourriez utiliser la commande suivante pour refuser l'accès au fichier _FICHIER_ à d'autres utilisateurs:
-[source,bash]
+[source,shell]
....
% chmod go= FICHIER
....
Une liste séparé par des virgules peut être fournie quand plus d'un changement doit être effectué sur un fichier. Par exemple la commande suivante retirera les permissions d'écriture au groupe et au "reste du monde" sur le fichier _FICHIER_, puis ajoutera la permission d'exécution pour tout le monde:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FICHIER
....
@@ -379,21 +379,21 @@ Ces indicateurs ajoutent donc un niveau de contrôle supplémentaire des fichier
Les indicateurs de fichiers peuvent être modifiés avec l'utilitaire man:chflags[1], ce dernier présentant une interface simple. Par exemple, pour activer l'indicateur système de suppression impossible sur le fichier [.filename]#file1#, tapez la commande suivante:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Et pour désactiver l'indicateur de suppression impossible, utilisez la commande précédente avec le préfixe "no" devant l'option `sunlink`:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Pour afficher les indicateurs propres à ce fichier, utilisez la commande man:ls[1] avec l'option `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -733,7 +733,7 @@ La commande man:mount[8] est ce qui est finalement utilisé pour monter des syst
Dans sa forme la plus simple, vous utilisez:
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -795,7 +795,7 @@ Deux commandes sont particulièrement utiles pour voir les processus sur le syst
Par défaut, man:ps[1] n'affiche que les commandes que vous faites tourner et dont vous êtes le propriétaire. Par exemple:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -823,7 +823,7 @@ man:ps[1] supporte un certain nombre d'options différentes pour modifier les in
La sortie de man:top[1] est semblable. Un extrait de session ressemble à ceci:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -880,7 +880,7 @@ Cet exemple montre comment envoyer un signal à man:inetd[8]. Le fichier de conf
. Trouvez l'identifiant du processus (PID) auquel vous voulez envoyer le signal. Faites-le en employant man:ps[1] et man:grep[1]. La commande man:grep[1] est utilisée pour rechercher dans le résultat la chaîne de caractères que vous spécifiez. Cette commande est lancée en tant qu'utilisateur normal, et man:inetd[8] est lancé en tant que `root`, donc les options `ax` doivent être passées à man:ps[1].
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -890,7 +890,7 @@ Donc le PID d'man:inetd[8] est 198. Dans certains cas la commande `grep inetd` p
. Utilisez man:kill[1] pour envoyer le signal. Etant donné qu'man:inetd[8] tourne sous les droits de l'utilisateur `root` vous devez utilisez man:su[1] pour devenir, en premier lieu, `root`.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -970,14 +970,14 @@ Une autre caractéristique de l'interpréteur de commandes est l'utilisation de
Fixer une variable d'environnement diffère légèrement d'un interpréteur de commandes à l'autre. Par exemple, dans le style de l'interpréteur de commandes de type C-shell comme `tcsh` et `csh`, vous utiliseriez `setenv` pour fixer le contenu d'une variable d'environnement. Sous les interpréteurs de commandes Bourne comme `sh` et `bash`, vous utiliseriez `export` pour configurer vos variables d'environnement. Par exemple, pour fixer ou modifier la variable d'environnement `EDITOR`, sous `csh` ou `tcsh` une commande comme la suivante fixera `EDITOR` à [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Sous les interpréteurs de commandes Bourne:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -995,7 +995,7 @@ La méthode la plus simple pour changer votre interpréteur de commandes est d'u
Vous pouvez également passer le paramètre `-s` à `chsh`; cela modifiera votre interpréteur de commandes sans avoir à utiliser un éditeur. Par exemple, si vous vouliez changer votre interpréteur de commandes pour `bash`, ce qui suit devrait faire l'affaire:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1006,7 +1006,7 @@ L'interpréteur de commandes que vous désirez utiliser _doit_ être présent da
Par exemple, si vous avez installé `bash` à la main et l'avez placé dans [.filename]#/usr/local/bin#, vous devrez faire:
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash /etc/shells
....
@@ -1081,14 +1081,14 @@ ELF est plus expressif qu'[.filename]#a.out# et permet plus d'extensibilité dan
La documentation la plus complète sur FreeBSD est sous la forme de pages de manuel. Presque chaque programme sur le système est fournit avec un court manuel de référence expliquant l'utilisation de base et les diverses options. Ces manuels peuvent être visualisés avec la commande `man`. L'utilisation de la commande `man` est simple:
-[source,bash]
+[source,shell]
....
% man command
....
`command` est le nom de la commande à propos de laquelle vous désirez en savoir plus. Par exemple, pour en savoir plus au sujet de la commande `ls` tapez:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1107,7 +1107,7 @@ Les manuels en ligne sont divisés en sections numérotées:
Dans certains cas, le même sujet peut apparaître dans plus d'une section du manuel en ligne. Par exemple, il existe une commande utilisateur `chmod` et un appel système `chmod()`. Dans ce cas, vous pouvez préciser à la commande `man` laquelle vous désirez en spécifiant la section:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1116,7 +1116,7 @@ Cela affichera la page de manuel de la commande utilisateur `chmod`. Les référ
C'est parfait si vous connaissez le nom de la commande et vous souhaitez simplement savoir comment l'utiliser, mais qu'en est-il si vous ne pouvez pas vous rappelez du nom de la commande? Vous pouvez utiliser `man` pour rechercher des mots-clés dans les descriptions de commandes en employant l'option `-k`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1125,7 +1125,7 @@ Avec cette commande on vous affichera la liste des commandes qui ont le mot-clé
Ainsi, vous regardez toutes ces commandes fantaisistes contenues dans [.filename]#/usr/bin# mais vous n'avez pas la moindre idée de ce quelles font vraiment? Faites simplement:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1133,7 +1133,7 @@ Ainsi, vous regardez toutes ces commandes fantaisistes contenues dans [.filename
ou
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1148,7 +1148,7 @@ FreeBSD inclut beaucoup d'applications et d'utilitaires produit par la Fondation
Pour utiliser la commande man:info[1], tapez simplement:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/fr/books/handbook/boot/_index.adoc b/documentation/content/fr/books/handbook/boot/_index.adoc
index 89cb4b8ecd..66237ab8a3 100644
--- a/documentation/content/fr/books/handbook/boot/_index.adoc
+++ b/documentation/content/fr/books/handbook/boot/_index.adoc
@@ -97,7 +97,7 @@ Le code contenu dans le MBR ou gestionnaire de démarrage ou d'amorce est parfoi
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -112,7 +112,7 @@ Default: F2
D'autres systèmes d'exploitation, en particulier Windows(R), sont connus pour écraser le MBR existant avec le leur. Si cela vous arrive, ou que vous désirez remplacer le MBR existant avec le MBR de FreeBSD alors utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -149,7 +149,7 @@ Comme le <<boot-loader,chargeur>> est beaucoup plus sophistiqué, et dispose d'u
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -160,7 +160,7 @@ boot:
Si vous avez un jour besoin de remplacer [.filename]#boot1# et [.filename]#boot2#, utilisez man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -240,14 +240,14 @@ Voici quelques exemples pratiques d'utilisation du chargeur:
* Pour simplement démarrer votre noyau habituel, mais en mode mono-utilisateur:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Pour décharger votre noyau et modules habituels, puis charger votre ancien (ou un autre) noyau:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -259,7 +259,7 @@ Vous pouvez utiliser [.filename]#kernel.GENERIC# pour faire référence au noyau
====
Utilisez ce qui suit pour charger vos modules habituels avec un autre noyau:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -270,7 +270,7 @@ boot-conf
* Pour charger une procédure de configuration du noyau (une procédure qui automatise ce que vous faites normalement avec l'outil de configuration du noyau au démarrage):
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -321,14 +321,14 @@ Une fois le système démarré, la commande man:kenv[1] peut être utilisée pou
La syntaxe du fichier [.filename]#/boot/device.hints# est d'une variable par ligne, en utilisant le caractère "#" comme signe de mise en commentaire. Les lignes sont présentées comme suit:
-[source,bash]
+[source,shell]
....
hint.pilote.unité.motclé="valeur"
....
La syntaxe à utiliser avec le chargeur est:
-[source,bash]
+[source,shell]
....
set hint.pilote.unité.motclé=valeur
....
diff --git a/documentation/content/fr/books/handbook/bsdinstall/_index.adoc b/documentation/content/fr/books/handbook/bsdinstall/_index.adoc
index fcfef5dc3c..5924d2ffda 100644
--- a/documentation/content/fr/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/fr/books/handbook/bsdinstall/_index.adoc
@@ -200,7 +200,7 @@ Cet exemple prend [.filename]#/dev/da0# comme périphérique cible sur lequel l'
======
. L'utilitaire en ligne de commande man:dd[1] est disponible sur les systèmes BSD, Linux(R), et Mac OS(R). Pour écrire une image en utilisant `dd`, brancher la clé USB et déterminez son nom de périphérique. Indiquer, alors, le nom du fichier d'installation téléchargé et le nom du périphérique pour la clé USB. Cet exemple écrit le fichier image d'installation amd64 sur le premier périphérique USB sur un système FreeBSD existant.
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-12.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -262,7 +262,7 @@ Si l'ordinateur charge le système d'exploitation existant, alors soit:
Sur la plupart des machines, maintenir la touche kbd:[C] enfoncée lors du démarrage provoquera l'amorçage du CD. Sinon appuyez sur kbd:[Command+Option+O+F], ou kbd:[Windows+Alt+O+F] dans le cas des claviers non-Apple(R). A l'invite `0`, entrez:
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -899,7 +899,7 @@ Les messages qui ont défilé lors du démarrage peuvent être à nouveau visual
Si sshd a été activé dans <<bsdinstall-config-serv>>, le premier démarage pourra être un peu plus lent en raison de la génération des clés RSA et DSA. Les démarrages suivants seront plus rapides. Les empreintes des clés seront affichées, comme montré dans cet exemple:
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1054,7 +1054,7 @@ Les fabricants déconseillent fortement de mettre à jour le BIOS de la carte m
Si le système se bloque au démarrage pendant la détection du matériel, ou se comporte de manière étrange lors de l'installation, l'ACPI peut être le coupable. FreeBSD utilise de manière intensive le système ACPI sur les plateformes i386 et amd64, s'il est détecté au démarrage, pour aider à la configuration du matériel. Malheureusement, des bogues persistent dans le pilote ACPI, et sur les cartes mères et leur BIOS. L'ACPI peut être désactivé en positionnant le paramètre `hint.acpi.0.disabled` pour le chargeur de démarrage:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/fr/books/handbook/config/_index.adoc b/documentation/content/fr/books/handbook/config/_index.adoc
index c47a3abc69..081f41e121 100644
--- a/documentation/content/fr/books/handbook/config/_index.adoc
+++ b/documentation/content/fr/books/handbook/config/_index.adoc
@@ -235,7 +235,7 @@ Ne pas utiliser la procédure décrite ci-dessous pour éditer et installer le f
Pour installer un fichier [.filename]#crontab# utilisateur fraîchement rédigé, tout d'abord utilisez votre éditeur favori pour créer un fichier dans le bon format, ensuite utilisez l'utilitaire `crontab`. L'usage le plus typique est:
-[source,bash]
+[source,shell]
....
# crontab fichier-crontab
....
@@ -253,7 +253,7 @@ Afin d'effacer le fichier [.filename]#crontab# utilisateur complètement, utilis
En 2002, le système [.filename]#rc.d# de NetBSD pour l'initialisation du système a été intégré à FreeBSD. Les utilisateurs noteront les fichiers présents dans le répertoire [.filename]#/etc/rc.d#. Plusieurs de ces fichiers sont destinés aux services de base qui peuvent être contrôlés avec les options `start`, `stop`, et `restart`. Par exemple, man:sshd[8] peut être relancé avec la commande suivante:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -269,14 +269,14 @@ Si une ligne `natd_enable="NO"` est déjà présente, modifiez alors le `NO` par
Comme le système [.filename]#rc.d# est à l'origine destiné pour lancer/arrêter les services au démarrage/à l'arrêt du système, les options standards `start`, `stop` et `restart` ne seront effectives que si les variables appropriées sont positionnées dans le fichier [.filename]#/etc/rc.conf#. Par exemple, la commande `sshd restart` ci-dessus ne fonctionnera que si `sshd_enable` est fixée à `YES` dans [.filename]#/etc/rc.conf#. Pour lancer, arrêter ou redémarrer un service indépendemment des paramétrages du fichier [.filename]#/etc/rc.conf#, les commandes doivent être précédées par "one". Par exemple pour redémarrer `sshd` indépendemment du paramétrage du fichier [.filename]#/etc/rc.conf#, exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
Il est facile de contrôler si un service est activé dans le fichier [.filename]#/etc/rc.conf# en exécutant la procédure [.filename]#rc.d# appropriée avec l'option `rcvar`. Ainsi, un administrateur peut contrôler que `sshd` est réellement activé dans [.filename]#/etc/rc.conf# en exécutant:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -290,7 +290,7 @@ La seconde ligne (`# sshd`) est la sortie de la commande `sshd` et non pas une c
Pour déterminer si un service est actif, une option appelée `status` est disponible. Par exemple pour vérifier que `sshd` a réellement été lancé:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -300,7 +300,7 @@ Dans certains cas, il est également possible de recharger un service avec l'opt
Le système [.filename]#rc.d# n'est pas uniquement utilisée pour les services réseaux, elle participe à la majeure partie de l'initialisation du système. Prenez par exemple le fichier [.filename]#bgfsck#. Quand cette procédure est exécutée, il affichera le message suivant:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -335,7 +335,7 @@ Une fois que vous êtes sûrs que votre carte est supportée, vous devez déterm
Si vous possédez une carte courante, la plupart du temps vous n'aurez pas à chercher trop loin pour trouver un pilote. Les pilotes pour les cartes réseaux courantes sont présents dans le noyau [.filename]#GENERIC#, aussi votre carte devrait apparaître au démarrage, comme suit:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -379,21 +379,21 @@ Le type de pilote doit correspondre à la version de FreeBSD. Pour FreeBSD/i386,
L'étape suivante est de compiler le pilote binaire dans un module chargeable du noyau. En tant que `root`, utilisez man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
L'utilitaire man:ndisgen[8] est interactif, il sollicitera l'utilisateur pour d'éventuelles informations complémentaires si nécessaire. Un nouveau module noyau est créé dans le répertoire courant. Utiliser man:kldload[8] pour charger le nouveau module:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
Avec le module généré, vous devez également charger les modules [.filename]#ndis.ko# et [.filename]#if_ndis.ko#. Cela devrait être fait automatiquement quand vous chargez un module qui dépend de man:ndis[4]. Si vous désirez les charger manuellement, utilisez les commandes suivantes:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -403,7 +403,7 @@ La première commande charge le pilote d'interface NDIS, la seconde charge l'int
Contrôlez maintenant la sortie de man:dmesg[8] à la recherche d'une quelconque erreur au chargement. Si tout s'est bien passé, vous devriez obtenir une sortie ressemblant à ce qui suit:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -427,7 +427,7 @@ Une fois que le bon pilote de périphérique pour la carte réseau est chargé,
Pour afficher la configuration des interfaces réseaux de votre système, entrer la commande suivante:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -470,7 +470,7 @@ Dans cet exemple, le périphérique [.filename]#dc0# est actif et en fonctionnem
Si le résultat de la commande man:ifconfig[8] est similaire à:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -501,7 +501,7 @@ Vous devrez également éditer le fichier [.filename]#/etc/hosts# pour ajouter l
====
S'il n'y a pas de serveur DHCP et qu'un accès à Internet est nécessaire, configurez manuellement la passerelle par défaut et le serveur de noms:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -513,7 +513,7 @@ S'il n'y a pas de serveur DHCP et qu'un accès à Internet est nécessaire, conf
Une fois les modifications nécessaires du fichier [.filename]#/etc/rc.conf# effectuées, vous devrez redémarrer votre système. Cela permettra la prise en compte de la ou les modifications au niveau des interfaces, et permettra de vérifier que le système redémarre sans erreur de configuration. Sinon, une autre méthode pour faire prendre en compte les modifications au niveau de la gestion du réseau consiste à utiliser la commande:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -522,7 +522,7 @@ Une fois les modifications nécessaires du fichier [.filename]#/etc/rc.conf# eff
====
Si une passerelle par défaut a été configurée dans [.filename]#/etc/rc.conf#, lancez également cette commande:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -537,7 +537,7 @@ Pour vérifier qu'une carte Ethernet est configurée correctement, vous devez es
Tout d'abord testons l'interface:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -554,7 +554,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Nous devons maintenant "pinguer" une autre machine sur le réseau:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -853,14 +853,14 @@ man:sysctl[8] remplit deux fonctions: lire et modifier les paramétrages du syst
Pour afficher toutes les variables lisibles:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Pour lire une variable particulière, par exemple, `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -868,7 +868,7 @@ kern.maxproc: 1044
Pour fixer une variable particulière, utilisez la syntaxe intuitive _variable_=_valeur_ :
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -885,7 +885,7 @@ Dans certains cas, il peut être nécessaire de modifier des variables man:sysct
Par exemple sur certains modèles d'ordinateurs portables le périphérique man:cardbus[4] ne sondera pas le système à la recherche des zones mémoires, et échouera avec des erreurs du type:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -933,7 +933,7 @@ L'option de configuration du noyau `SCSI_DELAY` peut être utilisée pour rédui
Le programme man:tunefs[8] peut être utilisé pour régler finement un système de fichiers. Ce programme dispose de nombreuses options différentes, mais pour l'instant nous nous intéresserons uniquement à l'activation et la désactivation des "Soft Updates", ce qui fait avec:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1019,7 +1019,7 @@ Un vnode est la représentation interne d'un fichier ou d'un répertoire. Augmen
Pour connaître le nombre de vnodes actuellement utilisés:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1027,7 +1027,7 @@ vfs.numvnodes: 91349
Pour connaître le maximum de vnodes utilisables:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1049,7 +1049,7 @@ Ajouter un nouveau disque pour l'espace de pagination donne de meilleures perfor
Utiliser la commande `swapon` pour ajouter une partition de pagination au système. Par exemple:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1093,14 +1093,14 @@ device md
Pour plus d'information sur la compilation du noyau, veuillez vous réferer à la crossref:kernelconfig[kernelconfig,Configurer le noyau de FreeBSD].
. Créez un fichier de pagination ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
+
. Fixez les bonnes permissions sur [.filename]#/usr/swap0#:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1114,7 +1114,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
+
. Redémarrez la machine ou activez directement le fichier de pagination:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 swapon /dev/md0
....
@@ -1155,7 +1155,7 @@ L'ACPI et l'APM ne peuvent coexister et devraient être utilisé séparément. L
L'ACPI peut être utilisé pour mettre en veille un système avec man:acpiconf[8], les options `-s` et `1-5`. La plupart des utilisateurs n'auront besoin que de `1` ou `3` (système suspendu en RAM). L'option `5` provoquera un arrêt de l'alimentation par logiciel, effet identique à un:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1185,7 +1185,7 @@ Pour ceux désirant soumettre directement un problème, veuillez faire parvenir
* La sortie de `sysctl hw.acpi`. C'est également un bon moyen de déterminer quelles fonctionnalités sont offertes par votre système.
* Une URL où peut être trouvé votre _code source ACPI_ (ACPI Source Language-ASL). N'envoyez pas directement l'ASL sur la liste de diffusion, ce fichier peut être très gros. Vous pouvez générer une copie de votre ASL en exécutant la commande suivante:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
@@ -1218,7 +1218,7 @@ L'ACPI dispose de trois modes de mise en veille en RAM (STR-Suspend To RAM), `S1
Commencez par examiner la sortie de `sysctl hw.acpi` à la recherche d'éléments concernant les modes de mise en veille. Voici les résultats pour un Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1230,7 +1230,7 @@ Quand vous testez la mise en veille et le réveil, commencez avec le mode `S1`,
Un problème courant avec la mise en veille/le réveil est que de nombreux pilotes de périphériques ne sauvegardent pas, ne restaurent pas, ou ne réinitialisent pas leurs logiciel, registres ou mémoire proprement. En premier lieu pour débogguer le problème, essayez:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1274,7 +1274,7 @@ Si vous rencontrez d'autres problèmes avec l'ACPI (impossible de travailler ave
Le problème le plus courant est le fait que les constructeurs fournissent des "bytecodes" erronés (ou plus simplement bogués!). Cela se manifeste généralement sur la console par des messages du noyau du type:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1284,7 +1284,7 @@ La plupart du temps vous pouvez corriger ces problèmes en mettant à jour votre
Le tout premier test que vous pouvez effectuer est de recompiler votre ASL à la recherche d'erreurs. Les avertissements peuvent être généralement ignorés mais les erreurs sont des bogues qui normalement empêchent l'ACPI de fonctionner correctement. Pour recompiler votre ASL, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1308,7 +1308,7 @@ Certaines méthodes ne renvoient pas explicitement une valeur comme la norme le
Après avoir personnalisé [.filename]#votre.asl#, vous voudrez le compiler, pour cela exécutez:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1332,7 +1332,7 @@ Le pilote ACPI dispose d'une fonction de débogage très flexible. Elle vous per
L'affichage des informations de débogage n'est pas activé par défaut. Pour l'activer, ajoutez la ligne `options ACPI_DEBUG` à votre fichier de configuration du noyau si l'ACPI est compilé dans le noyau. Vous pouvez ajouter la ligne `ACPI_DEBUG=1` à votre fichier [.filename]#/etc/make.conf# pour l'activer de façon globale. Si l'ACPI est sous forme de module, vous pouvez recompiler votre module [.filename]#acpi.ko# comme suit:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/fr/books/handbook/cutting-edge/_index.adoc b/documentation/content/fr/books/handbook/cutting-edge/_index.adoc
index 284c619c0d..ae44f5906a 100644
--- a/documentation/content/fr/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/fr/books/handbook/cutting-edge/_index.adoc
@@ -154,7 +154,7 @@ Cette option fixée à `yes`, `freebsd-update` supposera que la liste de composa
Les correctifs de sécurité sont stockés sur une machine distante et peuvent être téléchargés et installés en utilisant la commande suivante:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -171,7 +171,7 @@ Cette entrée indique qu'une fois par jour, l'utilitaire `freebsd-update` sera e
Si quelque s'est mal passé, `freebsd-update` a la capacité d'annuler le dernier ensemble de changements avec la commande suivante:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -197,7 +197,7 @@ Les mises à jour distribuées via `freebsd-update`, n'impliquent pas toujours l
Ce processus supprimera les anciens fichiers objets et bibliothèques qui rendent inutilisables la plupart des applications tierce-partie. Il est recommandé que tous les logiciels portés soient supprimés et réinstallés ou mis à jour ultérieurement en utilisant l'outil package:ports-mgmt/portupgrade[]. La plupart des utilisateurs voudront lancer une compilation test à l'aide de la commande suivante:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -209,7 +209,7 @@ Si un noyau personnalisé est utilisé, le processus de mise à jour est un peu
* Si un noyau personnalisé a déjà été compilé, le noyau présent dans [.filename]#/boot/kernel.old# est en fait le noyau `GENERIC`. Renommer ce répertoire en [.filename]#/boot/GENERIC#.
* En supposant qu'un accès physique à la machine est possible, une copie du noyau `GENERIC` peut être installé à partir d'un CD-ROM. Insérer votre disque d'installation et utiliser les commandes suivantes:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -219,7 +219,7 @@ Si un noyau personnalisé est utilisé, le processus de mise à jour est un peu
Remplacer [.filename]#X.Y-RELEASE# avec la version que vous utilisez. Le noyau `GENERIC` sera installé par défaut dans [.filename]#/boot/GENERIC#.
* En dehors de ce qui précède le noyau `GENERIC` peut être recompilé et installé à partir des sources:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
@@ -233,14 +233,14 @@ Redémarrer avec le noyau `GENERIC` n'est pas nécessaire à ce stade.
Les mises à jour de versions majeures et mineures peuvent être effectuées en passant à la commande `freebsd-update` la version vers laquelle on désire mettre à jour, par exemple, la commande suivante effectuera la mise à jour vers FreeBSD 8.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 8.1-RELEASE upgrade
....
La commande `freebsd-update` analysera le fichier de configuration et le système afin de récupérer les informations nécessaires à la mise à jour du système. A l'écran s'affichera quels sont les composants détectés et quels sont ceux qui n'ont pas été détectés. Par exemple:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
@@ -264,7 +264,7 @@ A ce niveau `freebsd-update` tentera de télécharger tous les fichiers nécessa
Si un noyau personnalisé est utilisé, l'étape précédente produira un avertissement semblable au suivant:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@@ -283,14 +283,14 @@ Le système n'a pas encore été réellement modifié, les fusions et l'applicat
Une fois les opérations précédentes achevées, la mise à jour peut être appliquée en utilisant la commande suivante:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
Le noyau et les modules seront corrigés les premiers. A ce moment la machine doit être obligatoirement redémarrée. Si le système utilisait un noyau personnalisé, utiliser la commande man:nextboot[8] pour indiquer le noyau [.filename]#/boot/GENERIC# (qui a été mis à jour) pour le prochain démarrage:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -303,14 +303,14 @@ Avant de redémarrer sur le noyau `GENERIC`, assurez-vous qu'il contient tous le
La machine doit maintenant être redémarrée avec le noyau mis à jour:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Une fois la machine de nouveau active, `freebsd-update` devra être lancée à nouveau. L'état du processus de mise à jour a été sauvegardé, et donc `freebsd-update` ne recommencera pas au début, mais supprimera les anciens fichiers objet et bibliothèques partagées. Afin de poursuivre les opérations, taper la commande suivante:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -322,7 +322,7 @@ En fonction d'un changement ou non de numérotation d'une ou plusieurs biblioth
Tous les logiciels tierce-partie doivent être maintenant recompilés et réinstallés. Cela est nécessaire comme certains logiciels peuvent dépendre de bibliothèques qui ont été supprimées lors du processus de mise à jour. La commande package:ports-mgmt/portupgrade[] peut être employée pour automatiser la chose. Les commandes suivantes peuvent être utilisées pour initier le processus:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -333,7 +333,7 @@ Tous les logiciels tierce-partie doivent être maintenant recompilés et réinst
Une fois cela effectué, terminer le processus de mise à jour avec un dernier appel à `freebsd-update`. Taper la commande suivante pour régler les derniers détails:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -347,7 +347,7 @@ Redémarrer la machine avec la nouvelle version de FreeBSD. Le processus de mise
L'utilitaire `freebsd-update` peut être utilisé pour comparer l'état du système FreeBSD installé avec une copie de confiance. Cette fonctionnalité inspecte la version actuelle des utilitaires système, des bibliothèques et des fichiers de configuration. Pour lancer la comparaison, utiliser la commande suivante:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -362,7 +362,7 @@ Le système sera analysé, et une liste de fichiers ainsi que la valeur de leur
Ces lignes sont également très longues mais le format de sortie peut être facilement passé par une analyse syntaxique. Par exemple, pour obtenir une liste des fichiers qui diffèrent avec ceux de la version d'origine, utiliser la commande suivante:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -380,7 +380,7 @@ Ce système peut prendre part à une méthode de mise à jour élaboré, en deho
Le système de base de FreeBSD dispose également d'un utilitaire pour la mise à jour du catalogue des logiciels portés: man:portsnap[8]. Lors de son exécution, il se connectera sur un site distant, contrôlera la clé de sécurité et téléchargera une nouvelle copie du catalogue des logiciels portés. La clé est utilisée pour vérifier l'intégrité de tous les fichiers téléchargés, s'assurant qu'ils n'ont pas été modifiés au vol. Pour récupérer les tout derniers fichiers du catalogue des logiciels portés, utiliser la commande suivante:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
@@ -399,7 +399,7 @@ Cet exemple nous montre que man:portsnap[8] a trouvé et contrôlé plusieurs mi
Lorsque man:portsnap[8] termine avec succès une opération de récupération (`fetch`), le catalogue des logiciels portés et ses mises à jour sont présents sur le système. A la première exécution de `portsnap` vous devez utiliser la commande `extract` pour installer les fichiers téléchargés:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -418,7 +418,7 @@ Lorsque man:portsnap[8] termine avec succès une opération de récupération (`
Pour mettre à jour un catalogue des logiciels portés déjà installé utilisez la commande `portsnap update`:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -427,7 +427,7 @@ Le processus est maintenant terminé et les applications peuvent être installé
Les opérations `fetch` et `extract` ou `update` peuvent être exécutées à la suite comme montré dans l'exemple suivant:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -593,7 +593,7 @@ De nombreuses anciennes documentations préconisent d'utiliser la commande `make
Pour mettre à jour votre système, vous devriez consulter [.filename]#/usr/src/UPDATING# pour toute opération préliminaire nécessaire en fonction de la version de vos sources et ensuite utiliser la procédure suivante:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -609,7 +609,7 @@ Dans quelques rares cas, il est nécessaire de lancer un `mergemaster -p` avant
Une fois l'opération `installkernel` terminée avec succès, vous devrez démarrer en mode mono-utilisateur (en utilisant par exemple la commande `boot -s` à l'invite du chargeur). Exécutez ensuite:
-[source,bash]
+[source,shell]
....
# mount -a -t ufs
# mergemaster -p
@@ -654,7 +654,7 @@ Un exemple de cela fut l'addition de l'utilisateur `smmsp`. Le processus d'insta
La solution est d'exécuter man:mergemaster[8] dans le mode pré-"buildworld" en ajoutant l'option `-p`. Cela effectuera la comparaison uniquement des fichiers essentiels pour le succès de la procédure `buildworld` ou `installworld`. Si votre vieille version de `mergemaster` ne supporte pas l'option `-p`, utilisez la nouvelle version présente dans l'arborescence des sources quand vous l'exécutez pour la première fois:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/mergemaster
# ./mergemaster.sh -p
@@ -665,7 +665,7 @@ La solution est d'exécuter man:mergemaster[8] dans le mode pré-"buildworld" en
Si vous êtes particulièrement paranoïaque, vous pouvez contrôler votre système afin de voir quels fichiers appartiennent au groupe que vous renommez ou effacez:
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -682,7 +682,7 @@ Une autre méthode consiste à compiler le système en mode multi-utilisateurs,
En tant que super-utilisateur, vous pouvez exécuter la commande:
-[source,bash]
+[source,shell]
....
# shutdown now
....
@@ -691,7 +691,7 @@ sur un système en fonctionnement, pour passer en mode mono-utilisateur.
Ou bien, redémarrer le système, et à l'invite de démarrage, sélectionnez l'option "single user". Le système démarrera alors en mode mono-utilisateur. A l'invite de l'interpréteur de commandes, exécutez alors:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -705,7 +705,7 @@ Cela effectue une vérification des systèmes de fichiers, remonte [.filename]#/
====
Si votre horloge CMOS est réglée sur l'heure locale et non pas sur le fuseau GMT (cela est vrai si la sortie de la commande `date` ne donne pas l'heure et le fuseau correct), vous aurez également peut-être besoin d'exécuter la commande suivante:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -721,7 +721,7 @@ Vous pouvez accélérer le processus `make buildworld`, et également vous évit
Certains fichiers dans [.filename]#/usr/obj# peuvent avoir l'indicateur immuable positionné (consultez la page de manuel man:chflags[1] pour plus d'informations) qui doit être retiré en premier.
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -737,7 +737,7 @@ C'est une bonne idée d'enregistrer la sortie de man:make[1] dans un fichier. Si
La méthode la plus aisée pour faire cela est d'utiliser la commande man:script[1], avec en paramètre le nom du fichier où enregistrer les résultats. Vous devez faire cela immédiatement juste avant de recompiler le système, et taper `exit` une fois que c'est terminé.
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -754,7 +754,7 @@ Si vous le faites, _n'enregistrez pas_ le résultat dans [.filename]#/tmp#. Ce r
Vous devez être dans le répertoire [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -765,7 +765,7 @@ Pour recompiler le système, on utilise la commande man:make[1]. Cette commande
Le format général de la ligne de commande que vous taperez sera la suivante:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABLE cible
....
@@ -774,7 +774,7 @@ Dans cet exemple, `-_x_` est une option que vous passez à man:make[1]. Reportez
`-D_VARIABLE_` transmet un variable au fichier [.filename]#Makefile#. Le comportement du [.filename]#Makefile# est défini par ces variables. Ce sont les mêmes variables que l'on trouve dans [.filename]#/etc/make.conf#, et c'est un autre moyen de les positionner.
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE cible
....
@@ -794,7 +794,7 @@ Certaines cibles listées dans le fichier [.filename]#Makefile#, ne doivent pas
La plupart du temps, vous n'aurez pas besoin de passer de paramètres à man:make[1], et votre commande ressemblera à ceci:
-[source,bash]
+[source,shell]
....
# make cible
....
@@ -811,7 +811,7 @@ Bien que la cible `world` existe toujours, vous êtes fortement encouragé à ne
Exécutez:
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -820,7 +820,7 @@ Il est possible de passer l'option `-j` à man:make[1] ce qui lui permettra d'ex
Typiquement sur une machine mono-processeur, vous exécuteriez:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -845,7 +845,7 @@ Sur FreeBSD, il est important de <<make-buildworld,recompiler le système>> avan
====
Si vous désirez compiler un noyau personnalisé, et que vous avez déjà un fichier de configuration, utilisez juste `KERNCONF=_MONNOYAU_` comme suit:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=MONNOYAU
@@ -867,7 +867,7 @@ Si vous avez compilé une version de FreeBSD assez récente pour avoir utilisé
Lancez:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -879,14 +879,14 @@ Si vous spécifiez des variables sur la ligne de commande de `make buildworld`,
Par exemple, si vous exécutez:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
vous devrez ensuite installer les résultats avec:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -932,7 +932,7 @@ La façon la plus simple de procéder est d'installer les fichiers dans un nouve
====
Bien qu'en principe rien ne sera modifié automatiquement dans ce répertoire, prudence est mère de sûreté. Copiez donc votre répertoire [.filename]#/etc# dans un endroit sûr. Quelque chose du genre:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -942,7 +942,7 @@ conviendra; l'option `-R` fait une copie récursive, `-p` préserve la date, les
Vous devez créer un ensemble de répertoires provisoires pour y installer les fichiers du répertoire [.filename]#/etc# et autres. [.filename]#/var/tmp/root# est un bon choix, il y a un certain nombre de sous-répertoires à créer également:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -951,7 +951,7 @@ Vous devez créer un ensemble de répertoires provisoires pour y installer les f
Cela va créer l'arborescence nécessaire et y installera les fichiers. Un grand nombre des sous-répertoires créés dans [.filename]#/var/tmp/root# sont vides et devront être supprimés. La façon la plus simple de le faire est:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2>/dev/null
@@ -965,7 +965,7 @@ Notez que certains des fichiers qui seront installés dans [.filename]#/var/tmp/
La manière la plus simple de procéder est d'utiliser la commande man:diff[1] pour comparer les deux fichiers:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -983,7 +983,7 @@ Vous pouvez accélérer le processus en conservant une copie du dernier ensemble
======
. Recompilez le système comme à l'accoutumé. Au moment de mettre à jour [.filename]#/etc# et les autre répertoires, donnez au répertoire cible un nom basé sur la date du jour. Si vous faisiez cela le 14 février 1998, vous pourriez procéder comme suit:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -997,7 +997,7 @@ _Ne supprimez pas_ le répertoire [.filename]#/var/tmp/root-19980214# quand vous
. Quand vous récupérez la dernière version des sources et la recompilerez, suivez l'étape 1. Vous aurez alors un nouveau répertoire, qui pourrait s'appeler [.filename]#/var/tmp/root-19980221# (si vous faites une mise à jour chaque semaine).
. Vous pouvez maintenant voir les modifications intervenues d'une semaine à l'autre en utilisant man:diff[1] pour afficher les différences entre tous les fichiers deux répertoires:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1006,7 +1006,7 @@ _Ne supprimez pas_ le répertoire [.filename]#/var/tmp/root-19980214# quand vous
Généralement, il y aura beaucoup moins de différences qu'entre [.filename]#/var/tmp/root-19980221/etc# et [.filename]#/etc#. Comme il y a beaucoup moins de différences, il est beaucoup plus facile de les reporter dans le répertoire [.filename]#/etc#.
. Vous pouvez maintenant supprimer le plus ancien des deux répertoires [.filename]#/var/tmp/root-*#:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1016,7 +1016,7 @@ Généralement, il y aura beaucoup moins de différences qu'entre [.filename]#/v
Vous pouvez utiliser man:date[1] pour automatiser la génération des noms de répertoires:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1028,7 +1028,7 @@ Vous pouvez utiliser man:date[1] pour automatiser la génération des noms de r
Vous en avez terminé. Après avoir vérifié que tout semble être en place, vous pouvez alors redémarrez votre système. Un simple man:shutdown[8] devrait suffire:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1039,7 +1039,7 @@ Vous devriez maintenant avoir mis à jour avec succès votre système FreeBSD. F
Si les choses se sont légèrement mal passées, il est facile de recompiler un élément particulier du système. Par exemple, si vous avez accidentellement effacé [.filename]#/etc/magic# lors de la mise à jour de [.filename]#/etc#, la commande man:file[1] ne fonctionnerait plus. Dans ce cas, la solution serait d'exécuter:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1051,7 +1051,7 @@ Si les choses se sont légèrement mal passées, il est facile de recompiler un
Il n'y a pas de réponse toute faite à cette question, tout dépend de la nature des évolutions. Par exemple, si vous venez juste d'exécuter CVSup, et que les fichiers suivants on été mis à jour:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1090,7 +1090,7 @@ _En général_ (et ceci n'est pas une règle absolue) `make buildworld` crée de
Si vous êtes à cette dernière étape, et que vous le savez (parce que vous avez consulté les résultats que vous avez enregistrés) alors vous pouvez (sans trop de risque) faire:
-[source,bash]
+[source,shell]
....
… fix the problem …
# cd /usr/src
@@ -1101,7 +1101,7 @@ Cela ne détruira pas les résultats du travail qu'à déjà effectué `make bui
Si vous voyez le message:
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1122,7 +1122,7 @@ Si vous ne voyez pas ce message, ou que vous doutez de vous, alors prudence est
* Passez l'option `-j__n__` à man:make[1] pour permettre l'exécution de plusieurs processus en parallèle. Cela améliore généralement les choses, que vous ayez une machine mono- ou multi-processeurs.
* Le système de fichiers qui contient [.filename]#/usr/src# peut être monté (ou remonté) avec l'option `noatime`. Cela empêche l'enregistrement des dates d'accès aux fichiers par le système de fichiers. Vous n'avez de toute façon probablement pas besoin de cette information.
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1143,7 +1143,7 @@ Gardez à l'esprit que cette option rend votre système de fichiers plus fragile
S'il n'y a que [.filename]#/usr/obj# sur ce système de fichiers, ce n'est alors pas un problème. Si vous avez d'autres données importantes sur ce système de fichiers, assurez-vous que vos sauvegardes soient à jour avant d'activer cette option.
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1158,7 +1158,7 @@ Comme auparavant, si [.filename]#/usr/obj# ne constitue pas un système de fichi
Soyez absolument sûr que votre environnement ne contient pas des restes de compilation précédentes. Cela est plutôt simple:
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
diff --git a/documentation/content/fr/books/handbook/desktop/_index.adoc b/documentation/content/fr/books/handbook/desktop/_index.adoc
index 98bdd1d234..0cb69b3bc0 100644
--- a/documentation/content/fr/books/handbook/desktop/_index.adoc
+++ b/documentation/content/fr/books/handbook/desktop/_index.adoc
@@ -115,14 +115,14 @@ Sur les machines lentes, avec une vitesse de processeur de moins de 233MHz ou av
Si vous ne pouvez ou ne voulez compiler Mozilla, pour une quelconque raison, l'équipe GNOME de FreeBSD l'a déjà fait pour vous. Installez juste la version pré-compilée à partir du réseau avec:
-[source,bash]
+[source,shell]
....
# pkg_add -r mozilla
....
Si la version pré-compilée n'est pas disponible, et que vous avez suffisamment de temps et d'espace disque, vous pouvez obtenir les sources pour Mozilla, le compiler et l'installer sur votre système. Cela s'effectue en faisant:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/mozilla
# make install clean
@@ -132,14 +132,14 @@ Le logiciel porté Mozilla s'assure d'une initialisation correcte en exécutant
Une fois que vous avez achevé l'installation de Mozilla, vous n'avez plus besoin d'être sous `root`. Vous pouvez lancer Mozilla en tant que navigateur en tapant:
-[source,bash]
+[source,shell]
....
% mozilla
....
Vous pouvez lancer directement les lecteurs de courrier électronique et de forums comme montré ci-dessous:
-[source,bash]
+[source,shell]
....
% mozilla -mail
....
@@ -150,14 +150,14 @@ Firefox est la génération suivante de navigateurs basés sur le code de Mozill
Installez la version pré-compilée du logiciel en tapant:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Vous pouvez également utiliser le catalogue des logiciels portés si vous désirez effectuer la compilation à partir des sources:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -177,7 +177,7 @@ Pour ajouter le support Java(TM) à Firefox ou Mozilla, vous devez installer tou
Lancez votre navigateur et tapez `about:plugins` dans la barre d'adresse et appuyez sur kbd:[Entrée]. Une page listant les greffons installés s'affichera; le greffon Java(TM) devrait désormais apparaître dans la liste. Si ce n'est pas le cas, en tant que `root`, exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/local/lib/browser_plugins/
@@ -194,7 +194,7 @@ Installez le logiciel porté package:www/nspluginwrapper[]. Ce logiciel nécessi
L'étape suivante est l'installation du logiciel porté package:www/linux-flashplugin7[]. Une fois le logiciel installé, le greffon doit être installé par chaque utilisateur à l'aide de la commande `nspluginwrapper`:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
@@ -207,14 +207,14 @@ Opera est un navigateur complet respectant les standards. Il intègre un lecteur
Pour naviguer sur le Web avec la version FreeBSD d'Opera, installez la version pré-compilée:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Certains sites FTP n'ont pas toutes les versions pré-compilées, mais Opera peut également être obtenu avec le catalogue des logiciels portés en tapant:
-[source,bash]
+[source,shell]
....
# cd /usr/port/www/opera
# make install clean
@@ -274,14 +274,14 @@ Avant d'installer la dernière version de KOffice, soyez sûr d'avoir une versio
Pour installer KOffice à partir de la version pré-compilée, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Si la version pré-compilée n'est pas disponible, vous pouvez utiliser le catalogue des logiciels portés. Par exemple, pour installer KOffice pour KDE3, faites:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -295,14 +295,14 @@ AbiWord peut importer et exporter dans de nombreux formats de fichiers, dont cer
AbiWord est disponible sous forme pré-compilée. Vous pouvez l'installer avec:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Si la version pré-compilée n'est pas disponible, il peut être compilé à partir du catalogue des logiciels portés. Le catalogue devra être plus à jour. Cela peut être fait de cette façon:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -314,14 +314,14 @@ Pour la création et la retouche d'image The GIMP est un programme de manipulati
Vous pouvez installer la version pré-compilée en utilisant cette commande:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Si votre site FTP ne dispose pas de la version pré-compilée, vous pouvez utiliser le catalogue des logiciels portés. Le répertoire http://www.FreeBSD.org/ports/[graphics] du catalogue contient également le Manuel de The Gimp. Voici comment les installer:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -342,7 +342,7 @@ Le traitement de texte d'OpenOffice.org utilise un format de fichier natif en XM
Pour installer OpenOffice.org, faites:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -354,7 +354,7 @@ Cette commande devrait fonctionner si vous utilisez une version -RELEASE de Free
Une fois l'installation effective, vous avez juste à taper la commande suivante pour exécuter OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -366,7 +366,7 @@ Lors de la première exécution, quelques questions vous seront posées et un r
Si les version pré-compilées d'OpenOffice.org ne sont pas disponibles, vous avez toujours la possibilité de compiler le logiciel porté. Cependant, vous devez garder à l'esprit que cela demande beaucoup d'espace disque et un temps de compilation relativement long.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-2
# make install clean
@@ -376,7 +376,7 @@ Si les version pré-compilées d'OpenOffice.org ne sont pas disponibles, vous av
====
Si vous désirez compiler une version localisée, remplacez la dernière ligne de commande avec la suivante:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=votre_langage install clean
....
@@ -386,7 +386,7 @@ Vous devez remplacer _votre_langage_ avec le code ISO de langage approprié. Une
Une fois cela effectué, OpenOffice.org peut être lancé avec la commande:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -433,7 +433,7 @@ De nombreux documents sont désormais distribués sous forme de fichiers PDF, qu
Pour installer Acrobat Reader(R) 7, à partir du catalogue de logiciels portés, faire:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread7
# make install clean
@@ -447,14 +447,14 @@ gv un lecteur de fichier PostScript(R) et PDF. Il est a l'origine basé sur ghos
Pour installer gv à partir de la version pré-compilée, faites:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Si vous ne pouvez obtenir la version pré-compilée, vous pouvez utiliser le catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -466,14 +466,14 @@ Si vous désirez un petit lecteur de fichiers PDF, Xpdf est léger et efficace.
Pour installer la version pré-compilée d'Xpdf utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Si la version pré-compilée n'est pas disponible ou que vous préfériez utiliser le catalogue des logiciels portés, faites:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -487,14 +487,14 @@ GQview est un gestionnaire d'image. Vous pouvez visualiser un fichier avec un si
Si vous désirez installer la version pré-compilée de GQview, faites:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Si la version pré-compilée n'est pas disponible ou que vous préférez utiliser le catalogue des logiciels portés, faites:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -544,14 +544,14 @@ GnuCash fournit un registre intelligent, un système hiérarchique pour les comp
Pour installer GnuCash sur votre système, faites:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Si la version pré-compilée n'est pas disponible, vous pouvez utiliser le catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -563,14 +563,14 @@ Gnumeric est un tableur, faisant partie de l'environnement de travail GNOME. Il
Pour installer Gnumeric sous forme pré-compilée, tapez:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Si la version pré-compilée n'est pas disponible, vous pouvez utiliser le catalogue des logiciels portés en faisant:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -582,14 +582,14 @@ Abacus est un tableur léger et facile d'emploi. Il incorpore de nombreuses fonc
Pour installer Abacus à partir de la version pré-compilée, faites:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Si la version pré-compilée n'est pas disponible, vous pouvez utiliser le catalogue des logiciels portés en faisant:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -601,14 +601,14 @@ KMyMoney est un programme de comptabilité personnelle pour KDE. KMyMoney a pour
Pour installer KMyMoney sous forme d'un paquetage:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Si le paquetage n'est pas disponible, vous pouvez utiliser le catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/fr/books/handbook/disks/_index.adoc b/documentation/content/fr/books/handbook/disks/_index.adoc
index 44656957cc..aa49241929 100644
--- a/documentation/content/fr/books/handbook/disks/_index.adoc
+++ b/documentation/content/fr/books/handbook/disks/_index.adoc
@@ -151,7 +151,7 @@ La dernière étape consiste à éditer le fichier [.filename]#/etc/fstab# pour
Cette configuration permettra de faire fonctionner correctement votre disque dure avec d'autres systèmes d'exploitation qui pourraient être installé sur votre machine, et ne perturbera pas les utilitaires `fdisk` de ces autres systèmes d'exploitation. C'est la méthode recommandée pour l'installation de nouveau disques. N'utilisez le mode _dédié_ que si vous avez une bonne raison de le faire!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 #Initialize your new disk
@@ -169,7 +169,7 @@ Si vous avez un disque IDE, remplacez [.filename]#da# par [.filename]#ad#.
Si le nouveau disque n'est pas destiné a être partagé avec un autre système d'exploitation, vous pouvez utiliser le mode _dédié_. Rappelez-vous que ce mode peut perturber les systèmes d'exploitation Microsoft; cependant, ils ne toucheront pas au disque. OS/2(R) d'IBM, au contraire, "s'approprie" toute partition qu'il trouve et ne reconnaît pas.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -182,7 +182,7 @@ Si le nouveau disque n'est pas destiné a être partagé avec un autre système
Un autre méthode est:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -368,7 +368,7 @@ ar0: WARNING - mirror lost
En utilisant man:atacontrol[8], recherchez de plus amples informations:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -396,7 +396,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Vous devrez détacher le canal ATA avec le disque défectueux de façon à pouvoir le retirer sans risque:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -404,7 +404,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Remplacer le disque.
. Rattacher le canal ATA:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -413,21 +413,21 @@ Slave: no device present
+
. Rajouter le disque de rechange à l'unité:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. Recontruire l'unité:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. Il est possible de contrôler l'avancée de la procédure en utilisant la commande suivante:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[output removed]
@@ -489,7 +489,7 @@ device ehci
La configuration est prête à être testée: branchez votre périphérique USB, et dans le tampon des messages du système (man:dmesg[8]), le disque devrait apparaître de cette manière:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -503,7 +503,7 @@ Bien évidement, le modèle, le fichier spécial de périphérique ([.filename]#
Comme le périphérique USB est vu comme étant un périphérique SCSI, la commande `camcontrol` peut être employée pour lister les périphériques de stockage USB attachés au système:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -549,7 +549,7 @@ Notez que ce paramétrage ne prendra effet qu'au prochain redémarrage. Il est
La dernière étape est de créer un répertoire où le système de fichiers sera monté. Ce répertoire doit appartenir à l'utilisateur qui montera le système de fichiers. Une méthode adaptée et la création par `root` d'un sous-répertoire [.filename]#/mnt/$USER# appartenant à l'utilisateur en question (remplacez _$USER_ par le nom d'utilisateur de cet utilisateur):
-[source,bash]
+[source,shell]
....
# mkdir /mnt/$USER
# chown $USER:$USER /mnt/$USER
@@ -557,14 +557,14 @@ La dernière étape est de créer un répertoire où le système de fichiers ser
Supposez qu'une clé USB soit branchée et qu'un périphérique [.filename]#/dev/da0s1# apparaît. Comme ce type de périphériques est en général livré préformaté avec un système de fichiers de type FAT, on pourra le monter de cette manière:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/$USER
....
Si vous débranchez le périphérique (le disque doit être démonté auparavant), vous devriez voir dans les messages du système quelque chose comme:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -599,7 +599,7 @@ Si vous voulez un programme de gravure de CD avec une interface graphique, vous
L'utilitaire man:mkisofs[8], qui fait partie du logiciel porté package:sysutils/cdrtools[], produit un système de fichiers ISO 9660 qui est une image de l'arborescence des répertoires dans un système de fichiers UNIX(R). L'utilisation la plus simple est:
-[source,bash]
+[source,shell]
....
# mkisofs -o fichierimage.iso /chemin/vers/arborescence
....
@@ -612,14 +612,14 @@ Pour des CDs qui sont destinés à n'être utilisé que sur des systèmes FreeBS
La dernière option d'usage général est l'option `-b`. Elle est utilisée pour indiquer l'emplacement de l'image de démarrage à utiliser dans la création d'un CD démarrable "El Torito". Cette option prend en argument le chemin vers une image de démarrage à partir de la racine de l'arborescence qui va être copiée sur le CD. Par défaut, man:mkisofs[8] créé une image ISO dans un mode appelé "émulation de disquette", et s'attend donc à une image de démarrage de 1200, 1440 ou 2880 Ko en taille. Certains chargeurs, comme celui utilisé par les disques d'installation de FreeBSD, n'utilisent pas ce mode d'émulation, dans ce cas l'option `-no-emul-boot` devrait être utilisée. Aussi, si [.filename]#/tmp/monboot# contient un système FreeBSD avec une image de démarrage dans [.filename]#/tmp/monboot/boot/cdboot#, vous pourrez produire l'image d'un système de fichiers ISO 9660 dans [.filename]#/tmp/bootable.iso# de cette façon:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/monboot
....
Cela étant fait, si vous avez le pilote [.filename]#md# configuré dans votre noyau, vous pouvez monter le système de fichiers avec:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -634,7 +634,7 @@ Il existe de nombreuses autres options que vous pouvez utiliser avec man:mkisofs
Si vous disposez d'un graveur de CD ATAPI, vous pouvez utiliser la commande `burncd` pour graver une image ISO sur un CD. `burncd` fait partie du système de base, installé sous [.filename]#/usr/sbin/burncd#. Son utilisation est très simple, car il dispose de peu d'options:
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data fichierimage.iso fixate
....
@@ -648,14 +648,14 @@ Si vous n'avez pas de graveur de CD ATAPI, vous devrez utiliser `cdrecord` pour
Bien que `cdrecord` dispose de nombreuses options, l'usage de base est même plus simple qu'avec `burncd`. La gravure d'une image ISO 9660 se fait avec:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device fichierimage.iso
....
La partie délicate dans l'utilisation de `cdrecord` est la recherche de la valeur à utiliser pour l'option `dev`. Pour déterminer le bon paramètre à utiliser, utilisez l'indicateur `-scanbus` de `cdrecord`, qui produira des résultats du type:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jörg Schilling
@@ -693,14 +693,14 @@ Vous pouvez dupliquer un CD audio en effectuant l'extraction des données audio
. Utiliser `cdda2wav` pour effectuer l'extraction audio.
+
-[source,bash]
+[source,shell]
....
% cdda2wav -v255 -D2,0 -B -Owav
....
+
. Utiliser `cdrecord` pour graver les fichiers [.filename]#.wav#.
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -716,14 +716,14 @@ Assurez-vous que _2,0_ est choisi correctement, comme décrit dans <<cdrecord>>.
+
Assurez-vous que les fichiers appropriés existent sous [.filename]#/dev#. Si ces entrées sont absentes, forcez le système à lire le disque à nouveau:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. Extraire chaque piste en utilisant man:dd[1]. Vous devez également préciser une taille de bloc durant l'extraction des fichiers.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=piste1.cdr bs=2352
# dd if=/dev/acd0t02 of=piste2.cdr bs=2352
@@ -732,7 +732,7 @@ Assurez-vous que les fichiers appropriés existent sous [.filename]#/dev#. Si ce
+
. Graver les fichiers récupérés en utilisant `burncd`. Vous devez spécifier que ce sont des fichiers audio, et que `burncd` devra fermer le disque une fois terminé.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio piste1.cdr piste2.cdr ... fixate
....
@@ -743,7 +743,7 @@ Assurez-vous que les fichiers appropriés existent sous [.filename]#/dev#. Si ce
vous pouvez copier un CD de données vers un fichier image équivalent au fichier créé avec man:mkisofs[8], et vous pouvez l'utiliser pour dupliquer n'importe quel CD de données. L'exemple présenté ici suppose que votre lecteur de CDROM est les périphérique [.filename]#acd0#. Remplacez-le avec le périphérique correct.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=fichier.iso bs=2048
....
@@ -755,21 +755,21 @@ Vous disposez maintenant d'une image, vous pouvez la graver comme décrit plus h
Maintenant que vous avez créé une CDROM de données standard, vous voulez probablement le monter et lire les données présentes. Par défaut, man:mount[8] suppose que le système de fichier à monter est de type `UFS`. Si vous essayez quelque chose comme:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
vous obtiendrez une erreur du type `Incorrect super block`, et pas de montage. Le CDROM n'est pas un système de fichiers de type `UFS`, aussi toute tentative de montage de ce type échouera. Vous devez juste préciser à man:mount[8] que le système de fichiers est du type `ISO9660`, et tout fonctionnera. Cela se fait en spécifiant l'option `-t cd9660` option à man:mount[8]. Par exemple, si vous désirez monter un CDROM, contenu dans le lecteur [.filename]#/dev/cd0#, sous [.filename]#/mnt#, vous devrez exécuter:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Notez que votre nom de lecteur ([.filename]#/dev/cd0# dans cet exemple) pourra être différent, en fonction de l'interface utilisée par votre lecteur de CDROM. De plus l'option `-t cd9660` ne fait qu'exécuter la commande man:mount_cd9660[8]. L'exemple précédent pourrait être réduit à:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -804,14 +804,14 @@ Ceci demande à votre bus SCSI une pause de 15 seconds au démarrage, pour donne
Il est possible de graver directement un fichier sur CD, sans créer de système de fichiers ISO 9660. Certaines personnes le font dans le cas de sauvegardes. Cela est beaucoup plus rapide que de graver un CD standard:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
Afin de récupérer les données gravées sur un tel CD, vous devez lire les données à partir du fichier spécial de périphériques en mode caractère:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -856,7 +856,7 @@ qui devraient être déjà présentes. Puis recompilez, installez votre nouveau
Lors du démarrage, votre graveur devrait apparaître, comme suit:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -867,14 +867,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
Le lecteur doit être accessible via le nom de périphérique [.filename]#/dev/cd0#, par exemple pour monter un CD-ROM sous [.filename]#/mnt#, tapez juste ce qui suit:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
En tant que `root`, vous pouvez exécuter la commande suivante pour obtenir l'adresse SCSI du graveur:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -932,7 +932,7 @@ La commande man:growisofs[1] est une interface à <<mkisofs,mkisofs>>, elle invo
Pour écrire les données du répertoire [.filename]#/path/to/data#, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -943,7 +943,7 @@ L'option `-Z` est utilisée pour la session d'écriture initiale dans tous les c
Il est également possible de graver une image de système de fichiers, par exemple pour graver l'image _imagefile.iso_, nous lancerons:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -956,7 +956,7 @@ Un DVD-Vidéo est un système de fichiers particulier basé sur les spécificati
Si vous disposez déjà d'une image du système de fichiers du DVD-Vidéo, gravez-la de la même façon que pour une autre image, reportez-vous aux sections précédentes pour un exemple. Si vous avez réalisé vous-même l'arborescence du DVD et que le résultat est dans, par exemple, le répertoire [.filename]#/path/to/video#, la commande suivante devrait être utilisée pour graver le DVD-Vidéo:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -967,7 +967,7 @@ L'option `-dvd-video` sera passée à man:mkisofs[8] et lui demandera de créer
Contrairement à un CD-RW, un DVD+RW vierge doit être formaté avant la première utilisation. Le programme man:growisofs[1] s'en chargera automatiquement quand cela sera nécessaire, ce qui est la méthode _recommandée_. Cependant vous pouvez utiliser la commande `dvd+rw-format` pour formater le DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -976,7 +976,7 @@ Vous devez effectuer cette opération qu'une seule fois, gardez à l'esprit que
Si vous voulez graver de nouvelles données (graver un système de fichiers totalement nouveau et pas juste ajouter des données) sur un DVD+RW, vous n'avez pas besoin de l'effacer, vous avez juste à récrire sur l'enregistrement précédent (en effectuant une nouvelle session initiale), comme ceci:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -985,7 +985,7 @@ Le format DVD+RW offre la possibilité d'ajouter facilement des données à un e
Par exemple, si nous voulons ajouter des données à notre DVD+RW précédent, nous devons utiliser cela:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -999,7 +999,7 @@ Vous pouvez ajouter l'option `-dvd-compat` si vous désirez une meilleure compat
Si pour une quelconque raison vous voulez vraiment effacer le disque, faites ce qui suit:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1012,7 +1012,7 @@ Un DVD-RW vierge peut être directement gravé sans le besoin d'une opération d
Pour effacer un DVD-RW en mode séquentiel, exécutez:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1021,7 +1021,7 @@ Pour effacer un DVD-RW en mode séquentiel, exécutez:
====
Une opération d'effacement complète (`-blank=full`) prendra environ une heure avec un support 1x. Un effacement rapide peut être effectué en utilisant l'option `-blank` si le DVD-RW est destiné à être enregistré suivant le mode d'écriture Disk-At-Once (DAO). Pour écrire le DVD-RW suivant le mode DAO, utilisez la commande:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -1033,7 +1033,7 @@ En fait le mode "restricted overwrite" devrait être utilisé avec tout DVD-RW,
Pour écrire des données sur un DVD-RW en mode séquentiel, utilisez les mêmes instructions que pour tout autre format de DVD:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -1044,14 +1044,14 @@ Un DVD-RW dans le format "restricted overwrite" n'a pas besoin d'être effacé a
Pour faire passer un DVD-RW dans le format "restricted overwrite", la commande suivante doit être utilisée:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Pour revenir au format séquentiel, utilisez:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1062,7 +1062,7 @@ Très peu de lecteurs de DVD-ROMs supportent les DVDs multi-sessions, ils ne lir
Utiliser la commande suivante après une session initiale (non fermée) sur un DVD+R, DVD-R, ou DVD-RW en mode séquentiel, ajoutera une nouvelle session sur le disque:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1101,7 +1101,7 @@ hw.ata.atapi_dma="1"
Comme précisé dans l'introduction de cette section, un DVD-RAM peut être vu comme un disque dur extractible. Comme tout autre disque dur le DVD-RAM doit être "préparé" avant la première utilisation. Dans l'exemple, l'intégralité de l'espace sur le disque sera utilisé par un système de fichiers UFS2 standard:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 count=2
# bsdlabel -Bw acd0
@@ -1114,7 +1114,7 @@ Le périphérique DVD [.filename]#acd0# doit être modifié en fonction de la co
Une fois les opérations précédentes effectuées sur le DVD-RAM, il peut être monté comme un disque dur classique:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1146,7 +1146,7 @@ Notez tout message d'erreur, sachant que cela peut aider à déterminer si la di
Utilisez un des périphériques [.filename]#/dev/fdN.size#, pour formater la disquette. Insérez une disquette 3.5pouces dans votre lecteur et tapez:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1159,7 +1159,7 @@ Le nouveau label de disque prendra l'intégralité du disque, et contiendra l'in
Vous pouvez maintenant exécuter man:bsdlabel[8] de la façon suivante:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1172,7 +1172,7 @@ Le système de fichiers de la disquette peut soit être de l'UFS soit utiliser l
Pour placer un nouveau système de fichier sur la disquette faites ceci:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1244,7 +1244,7 @@ Les ensembles de ce type reviennent aux alentour des 20000 dollars, les rendant
La première fois que vous essayez de lire ou d'écrire sur une bande vierge, l'opération échoue. Les messages affichés par la console devraient être du type:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1286,14 +1286,14 @@ La meilleur façon de sauvegarder sur disquette est d'utiliser la commande man:t
Pour sauvegarder tous les fichiers du répertoire courant et des sous-répertoires (en tant que `root`):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Quand la première disquette est pleine man:tar[1] vous réclamera d'introduire le volume suivant (parce que man:tar[1] est indépendant du support il parle en terme de volume; dans notre contexte cela signifie disquette).
-[source,bash]
+[source,shell]
....
Prepare volume 2 for /dev/fd0 and hit return:
....
@@ -1310,14 +1310,14 @@ Malheureusement, man:tar[1] ne permettra pas l'utilisation de l'option `-z` pour
Pour restaurer une archive complète utiliser:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Vous pouvez utiliser deux manières pour restaurer uniquement certains fichiers. Tout d'abord, vous pouvez commencer avec la première disquette et utiliser:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 nomdufichier
....
@@ -1366,7 +1366,7 @@ L'utilitaire man:dump[8] a quelques particularités datant de ses débuts sous l
Il est également possible de sauvegarder les données par l'intermédiaire d'un réseau sur un lecteur de bande se trouvant sur une autre ordinateur à l'aide des commandes `rdump` et `rrestore`. Ces deux programmes utilisent man:rcmd[3] et man:ruserok[3] pour accéder à l'unité de bandes distante. Cependant, l'utilisateur effectuant une sauvegarde doit être présent dans le fichier [.filename]#.rhosts# sur la machine distante. Les arguments de man:rdump[8] et man:rrestore[8] doivent être compatibles avec une utilisation sur la machine distante. Quand on sauvegarde une machine FreeBSD sur un lecteur Exabyte installé sur un ordinateur Sun appelé `komodo`, utilisez:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1379,7 +1379,7 @@ Il est également possible d'utiliser man:dump[8] et man:restore[8] d'une façon
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1393,7 +1393,7 @@ Ou en utilisant une fonction interne de `dump`, positionner la variable d'enviro
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1406,14 +1406,14 @@ Le programme man:tar[1] date aussi de la Version 6 d'ATT UNIX (circa 1975). man:
Sous FreeBSD 5.3 et versions suivantes, GNU `tar` et la version par défaut `bsdtar` sont disponibles. La version GNU peut être invoquée avec la commande `gtar`. Elle supporte les sauvegardes sur des périphériques distants et cela avec la même syntaxe que man:rdump[8]. Pour sauvegarder avec man:tar[1] sur une unité Exabyte connectée sur une machine Sun appelée `komodo`, utilisez:
-[source,bash]
+[source,shell]
....
# /usr/bin/gtar cf komodo:/dev/nsa8 . 2>&1
....
La même opération peut être effectuée avec `bsdtar` en utilisant un tuyau et man:rsh[1] pour envoyer les données sur un lecteur de bande distant:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh hostname dd of=tape-device obs=20b
....
@@ -1426,7 +1426,7 @@ man:cpio[1] est le programme UNIX(R) original pour l'échange de fichiers par ba
man:cpio[1] ne supporte pas les sauvegardes par le réseau. Vous pouvez utiliser un tuyau et man:rsh[1] pour envoyer les données sur un lecteur de bande distant:
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
find $f >> backup.list
@@ -1686,7 +1686,7 @@ Pour monter l'image d'un système de fichiers:
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0 /mnt
@@ -1700,7 +1700,7 @@ Pour créer l'image d'un nouveau système de fichiers avec man:mdconfig[8]:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1728,7 +1728,7 @@ L'outil man:mdconfig[8] est très utile, cependant son utilisation demande de no
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1752,7 +1752,7 @@ Pour un système de fichiers en mémoire la "sauvegarde sur l'espace de paginati
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1773,7 +1773,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1789,7 +1789,7 @@ Quand un système de fichiers en mémoire ou sauvegardé dans un fichier n'est p
Par exemple pour détacher et libérer toutes les ressources utilisées par [.filename]#/dev/md4#:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1807,21 +1807,21 @@ L'indicateur inaltérable `snapshot` est positionné lors de la création initia
Les instantanés sont créés avec la commande man:mount[8]. Pour placer un instantané de [.filename]#/var# dans le fichier [.filename]#/var/snapshot/snap# utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternativement, vous pouvez utiliser man:mksnap_ffs[8] pour créer un instantané:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Les fichiers d'instantanés peuvent être localisés sur un système de fichiers (e.g. [.filename]#/var#) en utilisant la commande man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1834,7 +1834,7 @@ Une fois un instantané créé, ce dernier pourra avoir de nombreux usages:
* Monter l'instantané comme une image figée du système de fichiers. Pour monter l'instantané [.filename]#/var/snapshot/snap# lancer:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1842,7 +1842,7 @@ Une fois un instantané créé, ce dernier pourra avoir de nombreux usages:
Vous pouvez maintenant parcourir l'arborescence de votre système de fichiers [.filename]#/var# figé monter sous [.filename]#/mnt#. Tout sera au départ dans le même état que lors de la création de l'instantané. La seule exception est que les instantanés antérieurs apparaîtront sous la forme de fichiers vides. Quand l'utilisation d'un instantané est terminée, il peut être démonté avec:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1906,7 +1906,7 @@ Vous ne devriez pas avoir à exécuter les commandes man:quotacheck[8], man:quot
Une fois que vous avez activé les quotas sur votre système, assurez-vous que cela fonctionne correctement. Une manière simple de le faire est d'exécuter:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1923,7 +1923,7 @@ Une limite souple peut être dépassée pour une période de temps restreinte. C
Ce qui suit est un exemple de ce que vous pourrez voir en utilisant la commande man:edquota[8]. Quand vous invoquez la commande man:edquota[8], vous vous retrouvez dans l'éditeur défini par la variable d'environnement `EDITOR`, ou sous vi si la variable d'environnement `EDITOR` n'est pas positionnée, ce qui vous permet d'éditer les quotas.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1955,7 +1955,7 @@ Les nouveaux quotas seront en service dès que vous quitterez l'éditeur.
Il est parfois souhaitable de définir des quotas pour une plage d'UIDs (identifiants utilisateur). Cela peut être réalisé avec l'option `-p` de la commande man:edquota[8]. Définissez d'abord les quotas pour un seul utilisateur, et puis exécutez `edquota -p protouser startuid-enduid`. Par exemple, si l'utilisateur `test` dispose des quotas désirés, la commande suivante peut être utilisée pour appliquer ces quotas pour les UIDs de 10000 à 19999:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1993,7 +1993,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Puis redémarrez `inetd`:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -2014,7 +2014,7 @@ Indépendamment de la manière dont une personne malveillante s'est trouvé en p
+
La configuration de gbde requiert les privilèges du super-utilisateur.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -2030,7 +2030,7 @@ Recompilez le noyau comme décrit dans crossref:kernelconfig[kernelconfig,Config
Redémarrez avec le nouveau noyau.
. Au lieu de recompiler le noyau, on peut utiliser `kldload` pour charger le support man:gbde[4]:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -2047,7 +2047,7 @@ L'exemple suivant suppose que vous ajoutez un nouveau disque dur à votre systè
+
Installez le nouveau disque comme expliqué dans <<disks-adding>>. Pour les besoins de cet exemple, une nouvelle partition disque a été ajoutée en tant que [.filename]#/dev/ad4s1c#. Les périphériques du type [.filename]#/dev/ad0s1*# représentent les partitions FreeBSD standards sur le système exemple.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -2057,7 +2057,7 @@ Installez le nouveau disque comme expliqué dans <<disks-adding>>. Pour les beso
+
. Créer un répertoire pour héberger les fichiers de verrouillage de GBDE
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -2067,7 +2067,7 @@ Le fichier de verrouillage de gbde contient l'information nécessaire à gbde po
+
Une partition gbde doit être initialisée avant d'être utilisable. Cette initialisation doit être effectuée une seule fois:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c
....
@@ -2102,14 +2102,14 @@ Les fichiers de verrouillage de gbde _doivent_ être conservés de pair avec le
+
. Attacher la partition chiffrée au noyau
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
+
On vous demandera de fournir la phrase d'authentification que vous avez choisie lors de l'initialisation de la partition chiffrée. Le nouveau périphérique chiffré apparaîtra dans [.filename]#/dev# en tant que [.filename]#/dev/nom_périphérique.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -2121,7 +2121,7 @@ On vous demandera de fournir la phrase d'authentification que vous avez choisie
+
Une fois que le périphérique chiffré a été attaché au noyau, vous pouvez créer un système de fichiers sur le périphérique. Pour créer un système de fichiers sur le périphérique, utilisez man:newfs[8]. Puisqu'il est plus rapide d'initialiser un nouveau système de fichiers UFS2 qu'un nouveau système UFS1, l'utilisation de man:newfs[8] avec l'option `-O2` est recommandé.
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -2135,14 +2135,14 @@ La commande man:newfs[8] peut être effectuée sur une partition gbde attachée
+
Créez un point de montage pour le système de fichiers chiffré.
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Montez le système de fichiers chiffré.
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2151,7 +2151,7 @@ Montez le système de fichiers chiffré.
+
Le système de fichiers chiffré devrait être visible par man:df[1] et prêt à être utilisé:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2173,7 +2173,7 @@ Après chaque démarrage, tout système de fichiers chiffré doit être rattach
. Attacher la partition gdbe au noyau
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
@@ -2183,14 +2183,14 @@ On vous demandera de fournir la phrase d'authentification que vous avez choisie
+
Puisque les systèmes de fichiers chiffrés ne peuvent être encore listés dans le fichier [.filename]#/etc/fstab# pour un montage automatique, on doit donc contrôler les systèmes de fichiers pour d'éventuelles erreurs en exécutant manuellement man:fsck[8] avant le montage.
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. Monter le système de fichiers chiffré
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2220,7 +2220,7 @@ man:gbde[8] chiffre la partie utile des secteurs en utilisant le chiffrage AES 1
man:sysinstall[8] est incompatible avec les périphériques gbde-chiffrés. Tous les périphériques [.filename]#*.bde# doivent être détachés du noyau avant de lancer man:sysinstall[8] ou ce dernier plantera durant son processus initial de recherche des périphériques. Pour détacher le périphérique chiffré utilisé dans notre exemple, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2279,7 +2279,7 @@ Il est recommandé d'utiliser une taille de secteur plus grande (comme 4Ko) pour
+
La clé principale sera protégée avec une phrase d'authentification et la source de données pour le fichier clé sera [.filename]#/dev/random#. La taille des secteurs de [.filename]#/dev/da2.eli#, partition que nous appelons _provider_, sera de 4Ko.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2291,14 +2291,14 @@ Il n'est pas obligatoire d'utiliser la phrase d'authentification et le fichier c
+
Si à la place du fichier clé un "-" est passé, l'entrée standard sera utilisée. Cet exemple montre comment on peut utiliser plus d'un fichier clé:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
+
. Attacher le _provider_ avec la clé générée
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2306,7 +2306,7 @@ Enter passphrase:
+
Le nouveau périphérique sera appelé [.filename]#/dev/da2.eli#.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2314,7 +2314,7 @@ Le nouveau périphérique sera appelé [.filename]#/dev/da2.eli#.
+
. Créer le nouveau système de fichiers
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2323,7 +2323,7 @@ Le nouveau périphérique sera appelé [.filename]#/dev/da2.eli#.
+
Le système de fichiers chiffré devrait être maintenant visible par man:df[1] et disponible à l'utilisation:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2339,7 +2339,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
Une fois l'utilisation de la partition chiffrée achevée et que la partition [.filename]#/private# n'est plus nécessaire, il est prudent de penser à démonter et détacher la partition `geli` chiffrée:
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -2382,7 +2382,7 @@ Pour le reste de cette section, [.filename]#ad0s1b# sera la partition réservée
Jusqu'ici l'espace de pagination n'a jamais été chiffré. Il est fort possible qu'il y ait déjà des mots de passe ou toute autre donnée sensible de présents en clair sur les plateaux du disque. Afin d'y remédier, les données de la partition de pagination doivent être écrasées avec des données aléatoires:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2431,7 +2431,7 @@ Une fois que le système a été redémarré, le fonctionnement correct de l'esp
Si man:gbde[8] est utilisé:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2440,7 +2440,7 @@ Device 1K-blocks Used Avail Capacity
Si man:geli[8] est utilisé:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
diff --git a/documentation/content/fr/books/handbook/dtrace/_index.adoc b/documentation/content/fr/books/handbook/dtrace/_index.adoc
index 6f03f4593f..6573413bb1 100644
--- a/documentation/content/fr/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/fr/books/handbook/dtrace/_index.adoc
@@ -110,7 +110,7 @@ Cette option active la fonction FBT. DTrace fonctionnera sans cette option, mais
Les sources doivent être recompilées et installées avec les options CTF. Pour faire cela, recompiler les sources de FreeBSD en utilisant:
-[source,bash]
+[source,shell]
....
# cd /usr/src
@@ -128,14 +128,14 @@ Finalement, récupérer la boîte à outils DTrace la plus récente. La version
Avant d'utiliser DTrace, il faut que le périphérique DTrace existe. Pour charger le périphérique, exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
Le système devrait maintenant supporter DTrace. Pour afficher toutes les sondes, l'administrateur peut maintenant executer la commande:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -144,7 +144,7 @@ Toutes les données sortantes de cette commande sont passées à l'utilitaire `m
La boîte à outils est une collection de scripts prêts à fonctionner avec DTrace pour rassembler des informations systèmes. Il y a des scripts pour vérifier les fichiers ouvertes, la mémoire, l'usage du CPU et beaucoup plus. Il faut extraire les scripts avec la commande suivante:
-[source,bash]
+[source,shell]
....
# gunzip -c DTracetoolkit* | tar xvf -
....
@@ -162,7 +162,7 @@ Au moment de l'écriture de ces lignes, seuls deux des scripts de la boîte à o
L'outil [.filename]#hotkernel# est censé identifier quel fonction utilise le plus de temps noyau. Fonctionnant normalement, il affichera une liste comparable à la suivante:
-[source,bash]
+[source,shell]
....
# ./hotkernel
Sampling... Hit Ctrl-C to end.
@@ -170,7 +170,7 @@ Sampling... Hit Ctrl-C to end.
L'administrateur système doit utiliser la combinaison de touches kbd:[Ctrl+C] pour arrêter le processus. Le script affichera une liste de fonctions du noyau et des informations de temps, et les triera dans l'ordre croissant du temps consommé:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -202,7 +202,7 @@ kernel`sched_idletd 137 0.3%
Ce script fonctionnera aussi avec des modules de noyau. Pour utiliser ce fonction, exécutez le script avec l'option `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -224,7 +224,7 @@ kernel 874 0.4%
Le script [.filename]#procsystime# capture et affiche le temps consommé en appels système pour un PID ou un processus donné. Dans l'exemple suivant, un nouvel exemplaire de [.filename]#/bin/csh# a été lancé. L'outil [.filename]#procsystime# a été exécuté et laissé en attente pendant que quelques commandes été tapées sur les autres incarnations de `csh`. Voici le résultat de ce test:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/fr/books/handbook/filesystems/_index.adoc b/documentation/content/fr/books/handbook/filesystems/_index.adoc
index a5739bf722..cc72823409 100644
--- a/documentation/content/fr/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/fr/books/handbook/filesystems/_index.adoc
@@ -84,14 +84,14 @@ Ce pilote peut également être utilisé pour accéder à des systèmes de fichi
Pour accéder à un système de fichiers ext, tout d'abord chargez le module du noyau:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Puis, montez le volume ext en indiquant son nom de partition sous FreeBSD et un point de montage. Cette exemple monte [.filename]#/dev/ad1s1# sur [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/fr/books/handbook/geom/_index.adoc b/documentation/content/fr/books/handbook/geom/_index.adoc
index 20eab179de..9d64fcd0ed 100644
--- a/documentation/content/fr/books/handbook/geom/_index.adoc
+++ b/documentation/content/fr/books/handbook/geom/_index.adoc
@@ -83,35 +83,35 @@ image::striping.png[Illustration de l'entrelacement de disques]
. Chargez le module [.filename]#geom_stripe#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. Assurez-vous de l'existence d'un point de montage. Si ce volume doit devenir une partition racine, utilisez alors un autre point de montage comme [.filename]#/mnt#.
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Déterminez les noms de périphériques pour les disques qui seront entrelacé, et créez le nouveau périphérique entrelacé. Par exemple, pour entrelacer deux disques ATA non utilisés et non partitionnés, par exemple [.filename]#/dev/ad2# et [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
....
+
. Créez un label standard, également connu sous le nom de table des partitions, sur le nouveau volume et installez le code d'amoraçage par défaut:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Cette opération doit avoir créé deux autres périphériques dans le répertoire [.filename]#/dev/stripe# en plus du périphérique [.filename]#st0#: [.filename]#st0a# et [.filename]#st0c#. A ce stade, un système de fichiers peut être créé sur [.filename]#st0a# en utilisant la commande `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -121,14 +121,14 @@ Des nombres défileront à l'écran, l'opération sera s'achèvera après quelqu
Pour monter manuellement une grappe de disques entrelacés fraîchement créée:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Pour monter automatiquement au démarrage ce système de fichiers entrelacé, ajoutez les informations concernant ce volume dans le fichier [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
# echo "/dev/stripe/st0a /mnt ufs rw 2 2" \
>> /etc/fstab
@@ -136,7 +136,7 @@ Pour monter automatiquement au démarrage ce système de fichiers entrelacé, aj
Le module [.filename]#geom_stripe# doit également être automatiquement chargé lors de l'initialisation du système en ajoutant une ligne au fichier [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' /boot/loader.conf
....
@@ -154,14 +154,14 @@ Redémarrez et attendez l'initialisation complète du système. Ensuite, ouvrez
Créez le périphérique [.filename]#/dev/mirror/gm# et liez-le avec [.filename]#/dev/da1#:
-[source,bash]
+[source,shell]
....
# gmirror label -vnb round-robin gm0 /dev/da1
....
Le système devrait répondre par:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da1.
Done.
@@ -169,7 +169,7 @@ Done.
Initialisez GEOM, cela devrait charger le module du noyau [.filename]#/boot/kernel/geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -181,14 +181,14 @@ Cette commande devrait créer le fichier spécial de périphérique [.filename]#
Installez un label `fdisk` et un code de d'amorce génériques sur le nouveau périphérique [.filename]#gm0#:
-[source,bash]
+[source,shell]
....
# fdisk -vBI /dev/mirror/gm0
....
Installez maintenant un label générique `bsdlabel`:
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/mirror/gm0s1
....
@@ -200,21 +200,21 @@ S'il existe plusieurs "slices" et plusieurs partitions, il faudra modifier les p
Utilisez l'utilitaire man:newfs[8] pour créer un système de fichiers UFS sur le périphérique [.filename]#gm0s1a#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
....
Le système devrait alors afficher un certain nombre d'informations et de nombres. C'est bon signe. Contrôlez l'affichage à la recherche de messages d'erreur et montez le périphérique sur le point de montage [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
....
Transférez maintenant toutes les données du disque de démarrage vers ce nouveau système de fichiers. Dans notre exemple nous utilisons à cet effet les commandes man:dump[8] et man:restore[8], cependant la commande man:dd[1] conviendrait également.
-[source,bash]
+[source,shell]
....
# dump -L -0 -f- / |(cd /mnt && restore -r -v -f-)
....
@@ -232,12 +232,12 @@ Editez ensuite le fichier [.filename]#/mnt/etc/fstab# et supprimez ou mettez en
Créez maintenant un fichier [.filename]#boot.config# sur la partition racine actuelle et celle nouvellement créée. Ce fichier "aidera" le BIOS à déterminer correctement sur quel disque démarrer:
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" > /boot.config
....
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" > /mnt/boot.config
....
@@ -249,21 +249,21 @@ Nous l'avons ajouter sur les deux partitions racines afin d'assurer un démarrag
Assurez-vous que le module [.filename]#geom_mirror.ko# sera chargé au démarrage du système en lançant la commande suivante:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' /mnt/boot/loader.conf
....
Redémarrez le système:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Si tout s'est bien passé, le système a dû démarrer à partir du périphérique [.filename]#gm0s1a# et une invite d'ouverture de session doit être affichée. En cas de problème, consultez la section suivante consacrée au dépannage. Ajoutez maintenant le disque [.filename]#da0# au périphérique [.filename]#gm0#:
-[source,bash]
+[source,shell]
....
# gmirror configure -a gm0
# gmirror insert gm0 /dev/da0
@@ -286,7 +286,7 @@ mountroot
Redémarrez la machine à l'aide du bouton de mise en marche ou de "reset". Au menu de démarrage, sélectionnez la sixième option (6). Le système basculera alors vers une invite du chargeur (man:loader[8]). Chargez manuellement le module du noyau:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror
OK? boot
@@ -317,14 +317,14 @@ Cette ligne autorisera l'accès au système de fichiers présent sur la partitio
Pour exporter ce périphérique, assurez-vous tout d'abord qu'il n'est pas déjà monté et lancez le "démon" man:ggated[8]:
-[source,bash]
+[source,shell]
....
# ggated
....
Maintenant pour monter le périphérique sur la machine cliente, tapez les commandes suivantes:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -362,7 +362,7 @@ Un label générique disparaîtra au redémarrage suivant. Ces labels seront cr
Les labels permanents peuvent être placés sur le système de fichiers en utilisant les utilitaires `tunefs` ou `newfs`. Pour créer un label permanent pour un système de fichier UFS2 sans endommager de données, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -387,14 +387,14 @@ Le système de fichiers ne doit pas être monté lors de l'utilisation de `tunef
Le système de fichiers peut, maintenant, être normalement monté:
-[source,bash]
+[source,shell]
....
# mount /home
....
La commande suivante peut être employée pour supprimer le label:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
diff --git a/documentation/content/fr/books/handbook/jails/_index.adoc b/documentation/content/fr/books/handbook/jails/_index.adoc
index 78a0df821a..6c45458301 100644
--- a/documentation/content/fr/books/handbook/jails/_index.adoc
+++ b/documentation/content/fr/books/handbook/jails/_index.adoc
@@ -110,7 +110,7 @@ En dehors de cela les environnements jail peuvent avoir leur propre ensemble d'u
Certains administrateurs divisent les environnements jail en deux catégories: les environnements jails "complets", qui ressemblent à un véritable système FreeBSD, et les environnements jails de "service", qui sont dédiés à une application ou un seul service, et tournant éventuellement avec des privilèges. Cette séparation est juste conceptuelle et n'affecte pas la création de l'environnement jail. La page de manuel man:jail[8] est très claire quant à la procédure de création d'un environnement jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -165,7 +165,7 @@ Pour une liste complète des options disponibles, veuillez consulter la page de
La procedure [.filename]#/etc/rc.d/jail# peut être utilisée pour démarrer ou arrêter un environnement jail à la main si une entrée pour l'environnement existe dans le fichier [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -173,7 +173,7 @@ La procedure [.filename]#/etc/rc.d/jail# peut être utilisée pour démarrer ou
Il n'existe pas pour le moment de méthode propre pour arrêter un environnement man:jail[8]. C'est dû au fait que les commandes normalement employées pour arrêter proprement un système ne peuvent être utilisées à l'intérieur d'un environnement jail. La meilleur façon d'arrêter un environnement jail est de lancer la commande suivante à l'intérieur de l'environnement ou en utilisant le programme man:jexec[8] depuis l'extérieur de l'environnement:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -208,7 +208,7 @@ Le système de base de FreeBSD contient un ensemble d'outils basiques pour affic
* Afficher une liste des environnements jail actifs et leur identifiant (JID), leur adresse IP, leur nom de machine et leur emplacement.
* S'attacher à un environnement jail actif, à partir de son système hôte, et exécuter une commande à l'intérieur de l'environnement ou effectuer des tâches d'administration à l'intérieur de environnement lui-même. C'est tout particulièrement utile quand l'utilisateur `root` veut arrêter proprement un environnement. L'utilitaire man:jexec[8] peut également être employé pour lancer un interpréteur de commandes dans un environnement jail pour faire de l'administration; par exemple:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
diff --git a/documentation/content/fr/books/handbook/kernelconfig/_index.adoc b/documentation/content/fr/books/handbook/kernelconfig/_index.adoc
index 42220e4fb2..c6c3b0c8c4 100644
--- a/documentation/content/fr/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/fr/books/handbook/kernelconfig/_index.adoc
@@ -85,7 +85,7 @@ Les exemples de ce chapitre supposent que vous utilisez l'architecture i386. Si
====
S'il n'y a _pas_ de répertoire [.filename]#/usr/src/sys# sur votre système, alors c'est que les sources du noyau n'ont pas été installées. La manière la plus facile de les installer est d'exécuter `sysinstall` en tant que `root`, et sélectionner [.guimenuitem]#Configure#, puis [.guimenuitem]#Distributions#, [.guimenuitem]#src#, puis [.guimenuitem]#base# et [.guimenuitem]#sys#. Si vous avez une aversion envers sysinstall et que vous disposez d'un CDROM "officiel" de FreeBSD, alors vous pouvez installer les sources depuis la ligne de commande:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -98,7 +98,7 @@ S'il n'y a _pas_ de répertoire [.filename]#/usr/src/sys# sur votre système, al
Ensuite allez dans le répertoire [.filename]#arch/conf# et copiez le fichier de configuration [.filename]#GENERIC# dans un fichier qui portera le nom que vous voulez donner à votre noyau. Par exemple:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MONNOYAU
@@ -115,7 +115,7 @@ Vous voudrez peut être conserver votre fichier de configuration du noyau ailleu
Par exemple:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/noyaux
@@ -142,21 +142,21 @@ Vous devez maintenant compiler le code source du noyau.
. Passez dans le répertoire [.filename]#/usr/src#.
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compilez le noyau:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MONNOYAU
....
+
. Installez le nouveau noyau:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MONNOYAU
....
@@ -203,7 +203,7 @@ Le format général du fichier de configuration est assez simple. Chaque ligne e
====
Pour compiler un fichier contenant toutes les options possibles, en général pour effectuer des tests, exécutez la commande suivante en tant que `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf make LINT
....
@@ -1032,7 +1032,7 @@ Il y a cinq types de problèmes qui peuvent survenir lors de la compilation d'un
La commande `config` échoue:::
Si la commande man:config[8] échoue quand vous lui passez en paramètre la description de votre noyau, vous avez probablement fait une simple erreur quelque part. Heureusement man:config[8] affichera le numéro de la ligne qui lui a posé problème, vous pouvez donc localiser rapidement la ligne contenant l'erreur. Par exemple, si vous avez:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1051,7 +1051,7 @@ Après avoir démarré avec un noyau en état de marche, vous pouvez revérifier
====
Si vous avez des difficultés à compiler un noyau, veillez à conserver un noyau [.filename]#GENERIC#, ou un autre noyau dont vous savez qu'il fonctionne, sous la main, avec un nom différent de sorte qu'il ne soit pas écrasé à la prochaine compilation. Vous ne pouvez pas faire confiance au noyau [.filename]#kernel.old# parce qu'en installant un nouveau noyau, [.filename]#kernel.old# est remplacé par le dernier noyau installé dont il n'est pas certain qu'il soit opérationnel. Aussi, dès que possible, déplacez le noyau opérationnel vers le bon emplacement [.filename]#/boot/kernel# où des commandes comme man:ps[1] pourront ne pas fonctionner correctement. Pour cela, renommez le répertoire contenant le bon noyau:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/fr/books/handbook/l10n/_index.adoc b/documentation/content/fr/books/handbook/l10n/_index.adoc
index 68346d45b6..eeb8195d4f 100644
--- a/documentation/content/fr/books/handbook/l10n/_index.adoc
+++ b/documentation/content/fr/books/handbook/l10n/_index.adoc
@@ -211,7 +211,7 @@ german:German Users Accounts:\
Avant de modifier les classes de session des utilisateurs, exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -234,14 +234,14 @@ Utilisez `adduser` pour ajouter de nouveaux utilisateurs, et faites ce qui suit:
* Paramétrez `defaultclass = langue` dans [.filename]#/etc/adduser.conf#. Gardez à l'esprit que vous devez dans ce cas entrer une classe par `default` (défaut) pour tous les utilisateurs d'autres langues.
* Une variante est d'entrer la langue spécifiée à chaque fois que man:adduser[8] affiche
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
+
* Une autre alternative est d'employer ce qui suit pour chaque utilisateur de langue différente que vous désirez ajouter:
+
-[source,bash]
+[source,shell]
....
# adduser -class langue
....
@@ -250,7 +250,7 @@ Enter login class: default []:
Si vous utilisez man:pw[8] pour ajouter de nouveaux utilisateurs, appelez la fonction de cette manière:
-[source,bash]
+[source,shell]
....
# pw useradd nom_utilisateur -L langue
....
diff --git a/documentation/content/fr/books/handbook/linuxemu/_index.adoc b/documentation/content/fr/books/handbook/linuxemu/_index.adoc
index 490af868b5..32f1328d17 100644
--- a/documentation/content/fr/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/fr/books/handbook/linuxemu/_index.adoc
@@ -74,21 +74,21 @@ Par défaut, les bibliothèques Linux(R) ne sont pas installées et la compatibi
Avant de tenter de compiler un logiciel, charger le module du noyau Linux(R), sinon la compilation risque d'échouer:
-[source,bash]
+[source,shell]
....
# kldload linux
....
Pour une compatibilité en 64bits:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
Pour vérifier que le module est bien chargé:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -98,7 +98,7 @@ Pour vérifier que le module est bien chargé:
Le logiciel précompilé package:emulators/linux_base-c7[] ou la version compilée à partir du catalogue des logiciels portés est la méthode la plus simple pour installer l'ensemble des bibliothèques et binaires de base Linux(R) sur un système FreeBSD. Pour installer le logiciel porté:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -121,7 +121,7 @@ Si une application Linux(R) se plaint de l'absence d'une bibliothèque partagée
A partir d'un système Linux(R), la commande `ldd` peut être utilisée pour déterminer quelles sont les bibliothèques partagées dont l'application a besoin. Par exemple, pour contrôler quelles bibliothèques partagées sont nécessaires à `linuxdoom`, exécuter cette commande à partir d'un système Linux(R) où est installé Doom:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -131,7 +131,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Ensuite, copier tous les fichiers mentionnés dans la dernière colonne, du système sous Linux(R) vers [.filename]#/compat/linux# sur le système FreeBSD. Une fois copiés, créer les liens symboliques vers les noms de fichiers donnés dans la première colonne. Cet exemple donnera lieu aux fichiers suivants sur le système FreeBSD:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -145,7 +145,7 @@ Si une bibliothèque Linux(R) partagée existe avec le même numéro de version
Par exemple, les bibliothèques suivantes existent déjà sur le système FreeBSD:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -153,14 +153,14 @@ Par exemple, les bibliothèques suivantes existent déjà sur le système FreeBS
et `ldd` indique qu'un binaire a besoin d'une version plus récente:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Etant donné que la bibliothèque existante n'a qu'une ou deux versions de retard sur le dernier digit, le programme devrait fonctionner avec la version légèrement plus ancienne. Il est, néanmoins, plus sûr de remplacer la [.filename]#libc.so# existante avec la version plus récente:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -172,7 +172,7 @@ Généralement, vous ne devrez cherchez à savoir de quelles bibliothèques part
Une étape supplémentaire est parfois nécessaire pour les binaires ELF. Quand un binaire ELF non marqué est exécuté, une erreur sera générée:
-[source,bash]
+[source,shell]
....
% ./mon-binaire-elf-linux
ELF binary type not known
@@ -181,7 +181,7 @@ Abort
Pour que le noyau FreeBSD puisse distinguer un binaire ELF FreeBSD d'un binaire Linux(R), vous devez employer l'utilitaire man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux mon-binaire-elf-linux
....
@@ -192,7 +192,7 @@ Les outils GNU incorporent désormais automatiquement les marques nécessaires d
Pour installer une application Linux(R) basée sur RPM, installer en premier le logiciel précompilé ou porté package:archivers/rpm4[]. Une fois installé, `root` peut utiliser la commande suivante pour installer un [.filename]#.rpm#:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio /path/to/linux.archive.rpm | cpio -id
@@ -204,7 +204,7 @@ Si nécessaire, utiliser `brandelf` sur les binaires ELF installés. Il faut not
Si le DNS ne fonctionne pas, ou si cette erreur apparaît::
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -239,7 +239,7 @@ Pour le support de l'ABI Linux(R), FreeBSD voit le nombre magique comme un binai
Pour que les binaires Linux(R) puissent fonctionner, ils doivent être _marqués_ sous le type `Linux` avec man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/fr/books/handbook/mail/_index.adoc b/documentation/content/fr/books/handbook/mail/_index.adoc
index b1ed30368d..58682acb27 100644
--- a/documentation/content/fr/books/handbook/mail/_index.adoc
+++ b/documentation/content/fr/books/handbook/mail/_index.adoc
@@ -106,7 +106,7 @@ Le DNS gère la correspondance entre nom de machine et adresse IP, et le stockag
Vous pouvez obtenir les enregistrements MX pour n'importe quel domaine en utilisant la commande man:host[1] est présentée ci-dessous:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -526,7 +526,7 @@ Dans l'installation par défaut de FreeBSD, sendmail est configuré pour envoyer
Il y a plusieurs façons d'y remédier. La solution la plus directe est de mettre l'adresse de votre fournisseur d'accès dans un fichier de domaine à relayer [.filename]#/etc/mail/relay-domains#. Une façon rapide de le faire serait:
-[source,bash]
+[source,shell]
....
# echo "votre.fai.exemple.com" > /etc/mail/relay-domains
....
@@ -565,7 +565,7 @@ Une des deux conditions précédentes vous permettra de recevoir directement le
Essayez:
-[source,bash]
+[source,shell]
....
# hostname
exemple.FreeBSD.org
@@ -577,7 +577,7 @@ Si c'est la réponse que vous obtenez, le courrier adressé à mailto:votreinden
Si au lieu de cela vous obtenez quelque chose de similaire à ceci:
-[source,bash]
+[source,shell]
....
# host exemple.FreeBSD.org
exemple.FreeBSD.org has address 204.216.27.XX
@@ -649,7 +649,7 @@ Modifier manuellement le fichier [.filename]#/etc/mail/sendmail.cf# est un sujet
Si vous n'avez pas installé toutes les sources du système, l'ensemble des fichiers de configuration de sendmail a été regroupé dans une archive séparée des autres sources. En supposant que vous avez monté votre CDROM FreeBSD contenant les sources, faites:
-[source,bash]
+[source,shell]
....
# cd /cdrom/src
# cat scontrib.?? | tar xzf - -C /usr/src/contrib/sendmail
@@ -661,7 +661,7 @@ La meilleure façon d'ajouter le support UUCP est d'utiliser la fonctionnalité
Tout d'abord, vous devez créer votre fichier [.filename]#.mc#. Le répertoire [.filename]#/usr/src/usr.sbin/sendmail/cf/cf# contient quelques exemples. En supposant que vous avez appelé votre fichier [.filename]#foo.mc#, tout ce dont vous avez besoin de faire pour le convertir en un fichier [.filename]#sendmail.cf# valide est:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail/cf/cf
# make foo.cf
@@ -723,7 +723,7 @@ Pour vous rappeler que ce fichier doit être converti en un fichier de base de d
Pour finir: si vous n'êtes pas certain du bon fonctionnement de certaines configurations de routage du courrier électronique, rappelez-vous de l'option `-bt` de sendmail. Cela lance sendmail dans le _mode test d'adresse_; entrez simplement `3,0`, suivi de l'adresse que vous désirez tester. La dernière ligne vous indiquera le type d'agent utilisé pour l'envoi, la machine de destination à laquelle l'agent doit envoyer le message, et l'adresse (peut-être traduite) à laquelle il l'enverra. Pour quitter ce mode tapez kbd:[Ctrl+D].
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -749,7 +749,7 @@ De plus, si vous utilisez un accès Internet classique, votre contrat peut vous
La manière la plus simple pour répondre à ce besoin est d'installer le logiciel porté package:mail/ssmtp[]. Exécutez les commandes suivantes en tant que `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -859,7 +859,7 @@ SENDMAIL_LDADD=-lsasl
Ces lignes passeront à sendmail les bonnes options de configuration au moment de la compilation pour lier package:cyrus-sasl[]. Assurez-vous que package:cyrus-sasl[] a été installé avant de recompiler sendmail.
. Recompilez sendmail en lançant les commandes suivantes:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail
# make cleandir
@@ -911,14 +911,14 @@ Bien que `mail` ne supporte pas l'intéraction avec les serveurs POP ou IMAP, ce
Afin d'envoyer et de recevoir du courrier électronique, invoquez simplement la commande `mail` comme le montre l'exemple suivant:
-[source,bash]
+[source,shell]
....
% mail
....
Le contenu de la boîte aux lettres de l'utilisateur dans [.filename]#/var/mail# est automatiquement lu par l'utilitaire `mail`. Si la boîte est vide, l'utilitaire rend la main avec un message indiquant qu'aucun courrier électronique ne peut être trouvé. Une fois que la boîte aux lettres a été lue, l'interface de l'application est lancée, et une liste de messages sera affichée. Les messages sont automatiquement numérotés, comme on peut le voir dans l'exemple suivant:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -929,7 +929,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Les messages peuvent désormais être lus en utilisant la commande kbd:[t] de `mail`, suivie du numéro du message qui devra être affiché. Dans cet exemple, nous lirons le premier courrier électronique:
-[source,bash]
+[source,shell]
....
% t 1
Message 1:
@@ -948,7 +948,7 @@ Comme nous pouvons le constater dans l'exemple ci-dessus, l'appuie sur la touche
Si le message nécessite une réponse, vous pouvez utiliser `mail` pour cela, en entrant soit la touche kbd:[R], soit la touche kbd:[r]. La touche kbd:[R] demande à `mail` de ne répondre qu'à l'expéditeur du message, alors que kbd:[r] répond à l'expéditeur mais également aux autres destinataires du message. Vous pouvez ajouter à la suite de ces commandes le numéro du courrier auquel vous désirez répondre. Une fois cela effectué, la réponse doit être tapée, et la fin du message doit être indiquée par un kbd:[.] sur une nouvelle ligne. Ci-dessous est présenté un exemple:
-[source,bash]
+[source,shell]
....
% R 1
To: root@localhost
@@ -961,7 +961,7 @@ EOT
Afin d'envoyer un nouveau courrier électronique, la touche kbd:[m] doit être utilisée, suivie de l'adresse électronique du destinataire. Plusieurs destinataires peuvent également être spécifiés en séparant chaque adresse par une kbd:[,]. Le sujet du message peut alors être entré, suivi du corps du message. La fin d'un message doit être indiquée en mettant un kbd:[.] seul sur une nouvelle ligne.
-[source,bash]
+[source,shell]
....
% mail root@localhost
Subject: I mastered mail
@@ -993,7 +993,7 @@ Toutes ces caractéristiques font de mutt un des clients de messagerie les plus
La version stable de mutt peut être installée en utilisant le logiciel porté package:mail/mutt[], tandis que la version actuellement en développement peut être installée par l'intermédiaire du logiciel porté package:mail/mutt-devel[]. Une fois installé, mutt peut être lancé en tapant la commande suivante:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -1032,7 +1032,7 @@ Plusieurs vulnérabilités exploitables à distance ont été découvertes dans
La version actuelle de pine peut être installée en utilisant le logiciel porté package:mail/pine4[]. Une fois installé, pine peut être lancé en tapant la commande suivante:
-[source,bash]
+[source,shell]
....
% pine
....
@@ -1073,7 +1073,7 @@ fetchmail est un client IMAP et POP complet qui offre aux utilisateurs le télé
Bien qu'expliquer l'intégralité des fonctions de fetchmail dépasse le cadre de ce document, certaines fonctions de base seront abordées. L'utilitaire fetchmail nécessite un fichier de configuration nommé [.filename]#.fetchmailrc#, afin de fonctionner correctement. Ce fichier comprend les informations concernant les serveurs ainsi que les accréditations d'accès. En raison du caractère sensible du contenu de ce fichier, il est recommandé de ne le rendre lisible que par l'utilisateur, avec la commande suivante:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1098,7 +1098,7 @@ user "john", with password "XXXXX", is "myth" here;
L'utilitaire fetchmail peut être exécuté en mode "daemon" en le lançant avec le paramètre `-d`, suivi par l'intervalle de temps (en secondes) que fetchmail doit respecter entre chaque consultation des serveurs listés dans le fichier [.filename]#.fetchmailrc#. L'exemple suivant demandera à fetchmail de récupérer le courrier toutes les 60 secondes:
-[source,bash]
+[source,shell]
....
% fetchmail -d 60
....
diff --git a/documentation/content/fr/books/handbook/mirrors/_index.adoc b/documentation/content/fr/books/handbook/mirrors/_index.adoc
index 2d2df79f10..98f0b2e60d 100644
--- a/documentation/content/fr/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/fr/books/handbook/mirrors/_index.adoc
@@ -551,7 +551,7 @@ Bien qu'il soit vraiment recommandé de lire attentivement les pages de manuel d
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -565,7 +565,7 @@ At the prompt, enter any word for « password ».
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs.freebsd.org (128.46.156.46)' can't be established.
@@ -580,7 +580,7 @@ Warning: Permanently added 'anoncvs.freebsd.org' (DSA) to the list of known host
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -594,7 +594,7 @@ At the prompt, enter any word for « password ».
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -608,7 +608,7 @@ At the prompt, enter any word for « password ».
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -679,7 +679,7 @@ Une fois que vous avez sélectionné un delta initial à partir duquel commencer
Pour appliquer les deltas, tapez simplement:
-[source,bash]
+[source,shell]
....
# cd /où/vous/voulez/mettre/les/fichiers
# ctm -v -v /où/vous/mettez/vos/deltas/src-xxx.*
@@ -723,7 +723,7 @@ Vous pouvez contrôler la liste de fichiers sur laquelle travaillera CTM en donn
Par exemple, pour extraire une version à jour de [.filename]#lib/libc/Makefile# de la série de deltas CTM que vous avez sauvegardé, lancez les commandes:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/to/extract/it/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -927,7 +927,7 @@ Le fichier [.filename]#refuse# indique essentiellement à CVSup qu'il ne doit pa
Le fichier [.filename]#refuse# a un format très simple; il contient tout simplement les noms des fichiers ou des répertoires que vous ne désirez pas rapatrier. Par exemple, si vous ne pouvez parler d'autres langues que l'anglais ou un peu d'allemand, et vous ne ressentez pas le besoin de lire la traduction en allemand de la documentation, vous pouvez mettre ce qui suit dans le fichier [.filename]#refuse#:
-[source,bash]
+[source,shell]
....
doc/bn_*
doc/da_*
@@ -955,7 +955,7 @@ Avec cette fonction très utile, les utilisateurs disposant d'une connexion lent
Vous êtes maintenant prêt à essayer de faire une mise à jour. La ligne de commande à utiliser est très simple:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -964,7 +964,7 @@ où [.filename]#supfile# est bien sûr le nom du fichier [.filename]#supfile# qu
Comme, dans cet l'exemple, vous mettez directement à jour votre arborescence [.filename]#/usr/src#, vous devrez exécuter le programme en tant que `root` de façon à ce que `cvsup` ait le droit de mettre à jour vos fichiers. Comme vous venez juste de créer votre fichier de configuration et n'avez encore jamais utilisé le programme, il est compréhensible que cela vous rende nerveux. Il est facile de faire un essai sans toucher à vos précieux fichiers. Créez juste un nouveau répertoire quelque part et donnez-le en argument supplémentaire sur la ligne de commande:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -974,7 +974,7 @@ Le répertoire indiqué sera pris comme destination pour tous les fichiers modif
Si vous n'êtes pas sous X11, ou si vous n'aimez tout simplement pas les interfaces graphiques, vous devrez ajouter quelques options supplémentaires sur la ligne de commande de `cvsup`:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
@@ -1348,7 +1348,7 @@ L'exécution de Portsnap est contrôlée par le fichier de configuration [.filen
====
Si Portsnap est installé à partir du catalogue des logiciels portés, il utilisera [.filename]#/usr/local/etc/portsnap.conf# comme fichier de configuration au lieu de [.filename]#/etc/portsnap.conf#. Ce fichier n'est pas créé lors de l'installation du logiciel, mais un fichier d'exemple est fourni; pour le copier à son emplacement correct, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# cd /usr/local/etc cp portsnap.conf.sample portsnap.conf
....
@@ -1359,14 +1359,14 @@ Si Portsnap est installé à partir du catalogue des logiciels portés, il utili
Au premier lancement de la commande man:portsnap[8], il sera nécessaire de télécharger un instantané compressé de l'intégralité de l'arborescence des logiciels portés dans [.filename]#/var/db/portsnap# (ou [.filename]#/usr/local/portsnap# si Portsnap a été installé à partir du catalogue des logiciels portés). Au début de l'année 2006, cela représentait un téléchargement d'environ 41 Mo.
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
Une fois que l'instantané compressé a été récupéré, une copie utilisable de l'arborescence des logiciels portés peut être extraite dans le répertoire [.filename]#/usr/ports#. Cela est nécessaire même si une arborescence a déjà été créée dans ce répertoire (par exemple en utilisant CVSup), puisque cela met en place une version de référence à partir de laquelle `portsnap` peut déterminer plus tard quelles parties du catalogue des logiciels portés a besoin d'une mise à jour.
-[source,bash]
+[source,shell]
....
# portsnap extract
....
@@ -1380,7 +1380,7 @@ Dans l'installation par défaut de FreeBSD [.filename]#/usr/ports# n'est pas cr
Après qu'un instantané initial du catalogue des logiciels portés ait été récupéré puis décompressé dans le répertoire [.filename]#/usr/ports#, la mise à jour du catalogue se divise en deux étapes: la récupération (_fetch_) des mises à jour de l'instantané, et leur utilisation pour mettre à jour (_update_) le catalogue des logiciels portés en tant que tel. Ces deux étapes peuvent être effectuées par l'intermédiaire d'une seule commande `portsnap`:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -1389,7 +1389,7 @@ Après qu'un instantané initial du catalogue des logiciels portés ait été r
====
Des versions anciennes de `portsnap` ne supporte pas cette syntaxe; en cas d'échec, utilisez à la place ceci:
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
diff --git a/documentation/content/fr/books/handbook/multimedia/_index.adoc b/documentation/content/fr/books/handbook/multimedia/_index.adoc
index c5a5ee88c1..888a0d1069 100644
--- a/documentation/content/fr/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/fr/books/handbook/multimedia/_index.adoc
@@ -86,7 +86,7 @@ Avant que vous commenciez, vous devriez connaître le modèle de carte son que v
Pour utiliser votre carte son, vous devrez charger le pilote de périphérique approprié. Cela peut être fait de deux façons. La plus simple est de charger le module pour votre carte son avec man:kldload[8], ce qui peut être soit fait à partir de la ligne de commande:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -100,7 +100,7 @@ snd_emu10k1_load="YES"
Ces exemples concernent la carte Creative SoundBlaster(R) Live!. Les autres modules son chargeables sont listés dans [.filename]#/boot/defaults/loader.conf#. Si vous n'êtes pas sûr du pilote à utiliser, vous pouvez tenter de charger le pilote [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -159,7 +159,7 @@ Les paramètres donnés ci-dessus sont ceux par défaut. Dans certains cas, vous
Après avoir redémarré avec le noyau modifié, ou après avoir chargé le module nécessaire, la carte son devrait apparaître dans le tampon des messages du système (man:dmesg[8]) d'un manière proche de la suivante:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -168,7 +168,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
L'état de la carte son peut être contrôlée par l'intermédiaire du fichier [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -181,7 +181,7 @@ Le résultat pourra être différent sur votre système. Si aucun périphérique
Si tout va bien, vous devriez avoir maintenant une carte son qui fonctionne. Si la sortie audio de votre lecteur de CD-ROM ou de DVD-ROM est correctement reliée à votre carte son, vous pouvez introduire un CD dans le lecteur et le jouer avec man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -190,7 +190,7 @@ Diverses applications, comme package:audio/workman[] offrent une meilleure inter
Une autre méthode rapide pour tester la carte est d'envoyer des données au [.filename]#/dev/dsp#, de la manière suivante:
-[source,bash]
+[source,shell]
....
% cat filename /dev/dsp
....
@@ -238,7 +238,7 @@ FreeBSD vous permet de le faire par l'intermédiaire de _Canaux Sonores Virtuels
Pour configurer le nombre de canaux virtuels, il existe deux paramètres de sysctl qui, si vous avez les privilèges de l'utilisateur `root`, peuvent être configurés comme ceci:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4
@@ -282,7 +282,7 @@ Le logiciel porté package:audio/mpg123[] est une alternative, un lecteur de MP3
mpg123 peut être utilisé en spécifiant le périphérique sonore et le fichier MP3 sur la ligne de commande, comme montré ci-dessous:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -305,14 +305,14 @@ L'utilitaire `cdda2wav`, qui fait partie de la suite package:sysutils/cdrtools[]
Avec le CD audio dans le lecteur, la commande suivante peut être utilisée (en tant que `root`) pour convertir l'intégralité d'un CD en fichiers WAV (un par piste):
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav supportera également les lecteurs de CDROM ATAPI (IDE). Pour faire l'extraction à partir d'un lecteur IDE, précisez le nom du périphérique à la place de l'unité SCSI. Par exemple, pour extraite la piste 7 à partir d'un lecteur IDE:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -321,14 +321,14 @@ Le `-D _0,1,0_` spécifie le périphérique SCSI [.filename]#0,1,0#, qui corresp
Pour extraire des pistes individuelles, utilisez l'option `-t` comme ceci:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Cet exemple extrait la septième piste du CD audio. Pour extraire un ensemble de pistes, par exemple, de la piste 1 à 7, précisez un intervalle:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -342,7 +342,7 @@ De nos jours, l'encodeur mp3 à utiliser est lame. Lame peut être trouvé dans
En utilisant les fichiers WAV extraits, la commande suivante convertira le fichier [.filename]#audio01.wav# en [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "La chanson XY" \
@@ -385,7 +385,7 @@ Ecriture sur le disque avec mpg123:
XMMS crée un fichier au format WAV, tandis que mpg123 convertit le fichier MP3 en données audio PCM brutes. Ces deux formats peuvent être utilisés avec cdrecord pour créer des CDs audio. Vous devez utiliser des fichiers PCM bruts avec man:burncd[8]. Si vous utilisez des fichiers WAV, vous noterez un petit parasite au début de chaque piste, ce son est l'entête du fichier WAV. Vous pouvez simplement retirer l'entête d'un fichier WAV avec l'utilitaire SoX (il peut être installé à partir du logiciel porté package:audio/sox[] ou de la version pré-compilée):
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -401,7 +401,7 @@ Avant que vous ne commenciez, vous devrez connaître le modèle de carte vidéo
C'est une bonne idée d'avoir un court fichier MPEG qui pourra être utilisé comme fichier test pour évaluer divers lecteurs et leurs options. Comme certains programmes de lecture de DVD chercheront un support DVD sur [.filename]#/dev/dvd# par défaut, ou ont ce périphérique fixé définitivement dans leur code, vous pourrez trouver utile de créer des liens symboliques vers les périphériques corrects:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -445,14 +445,14 @@ Xorg et XFree86(TM) 4.X disposent d'une extension appelée _XVideo_ (également
Pour vérifier si l'extension fonctionne utilisez `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo est supporté pour votre carte si le résultat de la commande ressemble à:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -528,7 +528,7 @@ Notez également que les formats listés (YUV2, YUV12, etc...) ne sont pas prés
Si le résultat ressemble à:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -585,7 +585,7 @@ MPlayer est une application pour lire des vidéos récemment et rapidement déve
MPlayer réside dans package:multimedia/mplayer[]. MPlayer effectue un certain nombre de contrôle du matériel durant le processus de compilation, il en résulte un binaire qui ne sera pas portable d'un système à l'autre. Ainsi il est important d'utiliser le logiciel porté et de ne pas utiliser un logiciel pré-compilé. En plus, un certain nombre d'options peuvent être spécifiées dans la ligne de commande `make`, comme décrit dans le fichier [.filename]#Makefile# et au départ de la compilation:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -613,7 +613,7 @@ La documentation HTML de MPlayer est très complète. Si le lecteur trouve l'inf
Chaque utilisateur de MPlayer doit créer un sous-répertoire [.filename]#.mplayer# dans son répertoire d'utilisateur. Pour créer ce sous-répertoire nécessaire, vous pouvez taper ce qui suit:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -623,27 +623,27 @@ Les options de commande de `mplayer` sont données dans la page de manuel. Pour
Pour lire à un fichier, comme [.filename]#testfile.avi# en utilisant une des diverses interfaces vidéo utilisez l'option `-vo`:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -652,7 +652,7 @@ Cela vaut la peine d'essayer toutes ces options, comme leur performance relative
Pour lire un DVD, remplacez [.filename]#testfile.avi# par `dvd://_N_ -dvd-device _DEVICE_` où _N_ est le numéro du titre à jouer et [.filename]#DEVICE# est le fichier spécial de périphérique correspondant au lecteur de DVD. Par exemple, pour jouer le titre 3 depuis [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -677,7 +677,7 @@ zoom=yes
Enfin, `mplayer` peut être utilisé pour extraire une piste du DVD dans un fichier [.filename]#.vob#. Pour récupérer la seconde piste vidéo d'un DVD, tapez ceci:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -689,7 +689,7 @@ Le fichier de sortie, [.filename]#out.vob#, sera du MPEG et peut être manipulé
Avant d'utiliser `mencoder` c'est une bonne idée de vous familiariser avec les options données par la documentation HTML. Il existe une page de manuel, mais elle n'est pas très utile sans la documentation en HTML. Il y a d'innombrables façons d'améliorer la qualité, diminuer le débit binaire, et modifier les formats, et certaines de ces options peuvent faire la différence entre de bonnes et mauvaises performances. Voici quelques exemples pour y arriver. Tout d'abord une simple copie:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -698,7 +698,7 @@ De mauvaises combinaisons d'options peuvent conduire à des fichiers illisibles
Pour convertir [.filename]#input.avi# au format MPEG4 avec un codage audio MPEG3 (package:audio/lame[] est nécessaire):
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -721,14 +721,14 @@ Comparé à MPlayer, xine fait plus pour l'utilisateur, mais au même moment, re
Par défaut, le lecteur xine lancera une interface graphique. Les menus peuvent alors être utilisés pour ouvrir un fichier précis:
-[source,bash]
+[source,shell]
....
% xine
....
Alternativement, le lecteur peut être invoqué pour jouer directement un fichier sans l'interface graphique avec la commande:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -740,7 +740,7 @@ Le logiciel transcode n'est pas un lecteur, mais une suite d'outils pour ré-enc
Un grand nombre d'options peut être précisé lors de la compilation du logiciel porté package:multimedia/transcode[], nous recommandons d'utiliser la ligne de commande suivante pour compiler transcode:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -750,7 +750,7 @@ Le paramétrage proposé devrait convenir à la plupart des utilisateurs.
Pour illustrer les capacités de `transcode`, voici un exemple montrant comment convertir un fichier DivX en fichier MPEG-1 en standard PAL (VCD PAL):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -827,7 +827,7 @@ options OVERRIDE_TUNER=6
ou vous pouvez directement utiliser man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -880,7 +880,7 @@ En fonction du contrôleur USB présent sur votre carte mère, vous n'avez besoi
Si vous ne désirez pas recompiler votre noyau et que votre noyau n'est pas le [.filename]#GENERIC#, vous pouvez directement charger le module du pilote man:uscanner[4] à l'aide de la commande man:kldload[8]:
-[source,bash]
+[source,shell]
....
# kldload uscanner
....
@@ -894,7 +894,7 @@ uscanner_load="YES"
Après avoir redémarré avec le bon noyau, ou après avoir chargé le module nécessaire, branchez votre scanner USB. Une ligne montrant la détection de votre scanner devrait apparaître dans le tampon des messages du système (man:dmesg[8]):
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -913,7 +913,7 @@ device pass
Une fois que votre noyau a été correctement compilé et installé, vous devriez être en mesure de voir les périphériques au démarrage:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -922,7 +922,7 @@ pass2: 3.300MB/s transfers
Si votre scanner n'était pas alimenté au démarrage du système, il est encore possible de forcer sa détection, en en sondant le bus SCSI avec la commande man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -933,7 +933,7 @@ Re-scan of bus 3 was successful
Ensuite le scanner apparaîtra dans la liste des périphériques SCSI:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -950,7 +950,7 @@ Le système SANE est divisé en deux parties: les "backend"s (package:graphics/s
La première étape est d'installer le logiciel porté package:graphics/sane-backends[] ou sa version pré-compilée. Ensuite, utilisez la commande `sane-find-scanner` pour contrôler la détection du scanner par l'ensemble SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -965,7 +965,7 @@ Certains scanners USB requièrent le chargement préalable d'un "firmware", cela
Nous devons maintenant vérifier si le scanner sera identifié par un "frontend" de numérisation. Par défaut, les "backend"s SANE sont fournies avec un outil en ligne de commande appelé man:sane[1]. Cette commande vous permet de lister les périphériques et d'effectuer une acquisition d'image à partir de la ligne de commande. L'option `-L` est employée pour afficher les scanners présents sur le système:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -975,7 +975,7 @@ Aucun résultat, ou un message disant qu'aucun scanner n'a été identifié indi
Par exemple, avec le scanner USB utilisé dans la <<scanners-kernel-usb>>, `sane-find-scanner` nous donne l'information suivante:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -983,7 +983,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
Le scanner est correctement détecté, il utilise l'interface USB et est attaché au fichier spécial de périphérique [.filename]#/dev/uscanner0#. Nous pouvons maintenant vérifier si le scanner est correctement identifié:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1002,7 +1002,7 @@ usb /dev/uscanner0
Veuillez vous assurer de bien lire les commentaires fournis dans les fichiers de configurations des "backend"s ainsi que les pages de manuel correspondantes pour plus de détails concernant la syntaxe correcte à utiliser. Nous pouvons maintenant vérifier si le scanner est identifié:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1020,7 +1020,7 @@ Xsane (package:graphics/xsane[]) est une autre interface graphique de numérisat
Toutes les opérations précédentes ont été effectuées avec les privilèges `root`. Vous pourrez, cependant, avoir besoin que d'autres utilisateurs puissent accéder au scanner. L'utilisateur devra avoir les permissions de lecture et d'écriture sur le fichier spécial de périphérique [.filename]#/dev/uscanner0# dont le propriétaire est le groupe `operator`. L'ajout de l'utilisateur `joe` au groupe `operator` lui autorisera l'accès au scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m joe
....
diff --git a/documentation/content/fr/books/handbook/network-servers/_index.adoc b/documentation/content/fr/books/handbook/network-servers/_index.adoc
index 309a3201c9..2cf5739ca4 100644
--- a/documentation/content/fr/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/fr/books/handbook/network-servers/_index.adoc
@@ -98,7 +98,7 @@ inetd_enable="NO"
dans [.filename]#/etc/rc.conf# activera ou désactivera le lancement d'inetd à la mise en route du système. La commande:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd rcvar
....
@@ -142,7 +142,7 @@ Quand le fichier [.filename]#/etc/inetd.conf# est modifié, inetd peut être for
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -377,14 +377,14 @@ Ce qui suit est un exemple de liste d'exportation valide, où les répertoires [
Le "daemon"mountd doit être forcé de relire le fichier [.filename]#/etc/exports# à chacune de ses modifications, afin que les changements puissent prendre effet. Cela peut être effectué soit en envoyant un signal HUP au "daemon":
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
soit en invoquant la procédure man:rc[8] de `mountd` avec le paramètre approprié:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -395,7 +395,7 @@ De plus, un redémarrage permettra à FreeBSD de tout configurer proprement. Un
Sur le serveur NFS:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -404,14 +404,14 @@ Sur le serveur NFS:
Sur le client NFS:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Maintenant il devrait être possible de monter un système de fichiers distant. Dans nos exemples le nom du serveur sera `serveur` et le nom du client `client`. Si vous voulez monter temporairement un système de fichiers distant ou vous voulez simplement tester la configuration, exécutez juste une commande comme celle-ci en tant que `root` sur le client:
-[source,bash]
+[source,shell]
....
# mount serveur:/home /mnt
....
@@ -439,7 +439,7 @@ rpc_statd_enable="YES"
Lancez l'application en utilisant:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/nfslocking start
....
@@ -468,7 +468,7 @@ Un accès à un fichier dans [.filename]#/host/foobar/usr# demandera à amd de t
====
Vous pouvez voir les systèmes de fichiers exportés par une machine distante avec la commande `showmount`. Par exemple, pour voir les répertoires exportés par une machine appelée `foobar`, vous pouvez utiliser:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -521,7 +521,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
Commande de montage manuelle sur `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -535,7 +535,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
Commande de montage manuelle sur `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -702,7 +702,7 @@ Maintenant, tout ce que vous devez faire est d'exécuter la commande `/etc/netst
Les _tables NIS_ sont des fichiers de base de données, qui sont conservés dans le répertoire [.filename]#/var/yp#. Elles sont générées à partir des fichiers de configuration du répertoire [.filename]#/etc# du serveur NIS maître, avec une exception: le fichier [.filename]#/etc/master.passwd#. Et cela pour une bonne raison, vous ne voulez pas divulguer les mots de passe pour l'utilisateur `root` et autres comptes d'administration aux autres serveurs du domaine NIS. Par conséquent, avant d'initialiser les tables NIS, vous devrez faire:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -718,7 +718,7 @@ Assurez-vous que le fichier [.filename]#/var/yp/master.passwd# n'est pas lisible
Cela achevé, il est temps d'initialiser les tables NIS! FreeBSD dispose d'une procédure appelée `ypinit` pour le faire à votre place (consultez sa page de manuel pour plus d'informations). Notez que cette procédure est disponible sur la plupart des systèmes d'exploitation du type UNIX(R), mais pas tous. Sur Digital UNIX/Compaq Tru64 UNIX, elle est appelée `ypsetup`. Comme nous voulons générer les tables pour un maître NIS, nous passons l'option `-m` à `ypinit`. Pour générer les tables NIS, en supposant que vous avez effectué les étapes précédentes, lancez:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -747,7 +747,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` devrait avoir créé [.filename]#/var/yp/Makefile# à partir de [.filename]#/var/yp/Makefile.dist#. Une fois créé, ce fichier suppose que vous être dans un environnement composé uniquement de machines FreeBSD et avec un seul serveur. Comme `test-domain` dispose également d'un serveur esclave, vous devez éditer [.filename]#/var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -765,7 +765,7 @@ NOPUSH = "True"
Configurer un serveur NIS esclave est encore plus simple que de configurer un serveur maître. Ouvrez une session sur le serveur esclave et éditez le fichier [.filename]#/etc/rc.conf# comme précédemment. La seule différence est que nous devons maintenant utiliser l'option `-s` avec `ypinit`. L'option `-s` a besoin du nom du serveur NIS maître, donc notre ligne de commande ressemblera à:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -926,7 +926,7 @@ Dans notre laboratoire, il y a une machine `basie` qui est supposée être une s
Il existe une méthode pour interdire à certains utilisateurs d'ouvrir une session sur une machine, même s'ils sont présents dans la base de données NIS. Pour cela, tout ce dont vous avez besoin de faire est d'ajouter __-nom_utilisateur__ à la fin du fichier [.filename]#/etc/master.passwd# sur la machine cliente, où _nom_utilisateur_ est le nom de l'utilisateur auquel vous désirez refuser l'accès. Ceci doit être fait de préférence avec `vipw`, puisque `vipw` contrôlera vos changements au fichier [.filename]#/etc/master.passwd#, et régénérera automatiquement la base de données à la fin de l'édition. Par exemple, si nous voulions interdire l'ouverture de session à l'utilisateur `bill` sur la machine `basie` nous ferions:
-[source,bash]
+[source,shell]
....
basie# vipw
[add -bill to the end, exit]
@@ -1011,7 +1011,7 @@ Traiter cette situation avec les groupes réseau présente plusieurs avantages.
La première étape est l'initialisation de la table NIS du groupe réseau. La version FreeBSD d'man:ypinit[8] ne crée pas de table par défaut, mais son implémentation NIS la supportera une fois créée. Pour créer une table vide, tapez simplement
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1054,7 +1054,7 @@ Vous pouvez répéter ce processus si vous avez besoin de plus de 255 utilisateu
Activer et propager votre nouvelle table NIS est simple:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1062,7 +1062,7 @@ ellington# make
Ceci générera les trois tables NIS [.filename]#netgroup#, [.filename]#netgroup.byhost# et [.filename]#netgroup.byuser#. Utilisez man:ypcat[1] pour contrôler si vos nouvelles tables NIs sont disponibles:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1189,7 +1189,7 @@ Il y a un certain nombre de choses que vous devrez effectuer différemment maint
* A chaque fois que vous désirez ajouter un utilisateur au laboratoire, vous devez l'ajouter _uniquement_ sur le serveur NIS et _vous devez ne pas oublier de reconstruire les tables NIS_. Si vous oubliez de le faire, le nouvel utilisateur ne pourra pas ouvrir de session en dehors du serveur maître NIS. Par exemple, si nous devons ajouter au laboratoire un nouvel utilisateur `jsmith`, nous ferions:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1239,7 +1239,7 @@ D'autres valeurs possibles pour la capacité `passwd_format` sont `blf` et `md5`
Si vous avez modifié le fichier [.filename]#/etc/login.conf#, vous devrez également regénérer la base de données des capacités de classes de session, ce qui est accompli en exécutant la commande suivante en tant que `root`:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1412,7 +1412,7 @@ Remplacez le nom de l'interface `dc0` avec celui de l'interface (ou des interfac
Ensuite, vous pouvez lancer le serveur en tapant la commande suivante:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd.sh start
....
@@ -1536,7 +1536,7 @@ Puisque BIND est installé par défaut, sa configuration est relativement simple
La configuration par défaut de named est un serveur de noms résolveur basique, tournant dans un environnement man:chroot[8]. Pour lancer le serveur avec cette configuration, utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named forcestart
....
@@ -1558,7 +1558,7 @@ Les fichiers de configuration pour named se trouvent dans le répertoire [.filen
Pour configurer une zone maître, il faut se rendre dans le répertoire [.filename]#/etc/namedb/# et exécuter la commande suivante:
-[source,bash]
+[source,shell]
....
# sh make-localhost
....
@@ -1974,28 +1974,28 @@ C'est toujours une bonne idée de faire des copies de sauvegarde de votre fichie
Apache n'est pas lancé à partir du "super-serveur" inetd comme pour beaucoup d'autres serveurs réseau. Il est configuré pour tourner de façon autonome pour de meilleures performances à la réception des requêtes HTTP des navigateurs web. Une procédure est fournie pour rendre le démarrage, l'arrêt, et le redémarrage du serveur aussi simple que possible. Pour démarrer Apache pour la première fois, exécutez:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
Vous pouvez arrêter le serveur à tout moment en tapant:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
Après avoir effectué des modifications dans le fichier de configuration, vous devez redémarrer le serveur:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
Pour redémarrer Apache sans faire échouer les connexions en cours, exécutez:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2031,7 +2031,7 @@ NameVirtualHost *
Si votre serveur web est appelé `www.domain.tld` et que vous voulez mettre en place un domain virtuel pour `www.someotherdomain.tld` alors vous ajouterez les entrées suivantes au fichier [.filename]#httpd.conf#:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2076,7 +2076,7 @@ Pour ajouter le support de PHP5 au serveur Web Apache, commencez par installer l
Si c'est la première installation du logiciel package:lang/php5[], les `OPTIONS` disponibles seront affichées automatiquement. Si aucun menu n'est affiché, parce que le logiciel porté package:lang/php5[] a été installé par le passé, il est toujours possible de forcer l'affichage du menu des options de compilation en utilisant la commande:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2111,7 +2111,7 @@ AddModule mod_php5.c
Ensuite, un simple appel à la commande `apachectl` pour un redémarrage élégant est requis pour charger le module PHP:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2124,7 +2124,7 @@ Par exemple, pour ajouter à PHP5 le support pour le serveur de bases de donnée
Après l'installation d'une extension, le serveur Apache doit être redémarré pour prendre en compte les changements de configuration:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2157,7 +2157,7 @@ Comme expliqué dans la <<network-inetd-reread>>, la configuration d'inetd doit
Vous pouvez maintenant ouvrir une session FTP sur votre serveur en tapant:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2230,7 +2230,7 @@ Samba possède plusieurs modèles de support d'authentification. Vous pouvez aut
En supposant que le modèle `smbpasswd` par défaut est utilisé, le fichier [.filename]#/usr/local/private/smbpasswd# doit être créé pour permettre à Samba d'identifier les clients. Si vous désirez donner accès à vos comptes utilisateur UNIX(R) à partir de clients Windows(R), utilisez la commande suivante:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2261,7 +2261,7 @@ Avec cela, Samba sera automatiquement lancé au démarrage.
Il est alors possible de démarrer Samba à n'importe quel moment en tapant:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2275,7 +2275,7 @@ Samba consiste essentiellement en trois "daemon"s séparés. Vous devriez vous r
Vous pouvez arrêter Samba à tout moment en tapant:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba stop
....
@@ -2361,7 +2361,7 @@ Pour s'assurer que le serveur NTP est lancé au démarrage, ajoutez la ligne `nt
Pour lancer le serveur sans redémarrer votre machine, exécutez `ntpd` en étant sûr de préciser tout paramètre supplémentaire de `ntpd_flags` dans [.filename]#/etc/rc.conf#. Par exemple:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
diff --git a/documentation/content/fr/books/handbook/ports/_index.adoc b/documentation/content/fr/books/handbook/ports/_index.adoc
index bd00dfabea..65968b03e4 100644
--- a/documentation/content/fr/books/handbook/ports/_index.adoc
+++ b/documentation/content/fr/books/handbook/ports/_index.adoc
@@ -127,7 +127,7 @@ La liste des applications disponibles pour FreeBSD augmente de jours en jours. H
* Si vous ne connaissez pas le nom de l'application que vous voulez, essayez d'utiliser un site comme FreshMeat (http://www.freshmeat.net/[http://www.freshmeat.net/]) pour trouver une application, ensuite vérifiez sur le site de FreeBSD si l'application a déjà été portée.
* Si vous connaissez le nom exact du logiciel, vous devez juste déterminer dans quelle catégorie il se trouve, vous pouvez utiliser la commande man:whereis[1] pour cela. Tapez simplement `whereis file` où _file_ est le programme que vous voulez installer. S'il est trouvé sur le système, on vous indiquera où il se trouve, de la manière suivante:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -136,7 +136,7 @@ lsof: /usr/ports/sysutils/lsof
Cela nous indique que `lsof` (un utilitaire système) peut être trouvé dans le répertoire [.filename]#/usr/ports/sysutils/lsof#.
* Vous pouvez également utiliser une simple commande man:echo[1] pour déterminer où se trouve un logiciel porté dans le catalogue de logiciels portés. Par exemple:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -145,7 +145,7 @@ Cela nous indique que `lsof` (un utilitaire système) peut être trouvé dans le
Notez que cette commande retournera tout fichier téléchargé du répertoire [.filename]#/usr/ports/distfiles# correspondant à ce motif de recherche.
* Encore une autre façon de trouver un logiciel porté particulier est d'utiliser le mécanisme de recherche interne du catalogue des logiciels portés. Pour utiliser la fonction de recherche, vous devrez vous trouver dans le répertoire [.filename]#/usr/ports#. Une fois dans ce répertoire, lancez `make search name=program-name` où _program-name_ représente le nom du programme que vous voulez localiser. Par exemple, si vous recherchiez `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -179,7 +179,7 @@ Vous pouvez utiliser l'utilitaire man:pkg_add[1] pour installer un logiciel pré
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -210,7 +210,7 @@ ftp> exit
Si vous ne disposez pas d'une source locale de logiciels pré-compilés (comme l'ensemble de CDROM de FreeBSD) alors il sera probablement plus facile d'utiliser l'option `-r` de man:pkg_add[1]. Cela fera déterminer automatiquement à l'utilitaire le format objet et la version corrects et ensuite récupérer et installer le logiciel pré-compilé à partir d'un site FTP.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -230,7 +230,7 @@ La structure de répertoires du système de logiciels pré-compilés correspond
man:pkg_info[1] est un utilitaire qui liste et décrit les divers logiciels pré-compilés installés.
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -240,7 +240,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
man:pkg_version[1] est un utilitaire qui récapitule les versions de tous les logiciels pré-compilés installés. Il compare la version du logiciel pré-compilé avec la version actuelle trouvée dans le catalogue des logiciels portés.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -279,14 +279,14 @@ Les symboles dans la seconde colonne indiquent l'âge relatif de la version inst
Pour désinstaller un logiciel pré-compilé précédemment installé, utilisez l'utilitaire man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
Notez que man:pkg_delete[1] a besoin du nom complet du paquetage et du numéro de version; la commande précédente n'aurait pas fonctionné avec _xchat_ à la place de _xchat-1.7.1_. It est cependant facile de retrouver la version du paquetage installé à l'aide de la commande man:pkg_version[1]. Vous pouvez à la place simplement utiliser un joker:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -323,7 +323,7 @@ Assurez-vous que le répertoire [.filename]#/usr/ports# est vide avant d'utilise
. Exécuter la commande `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -340,7 +340,7 @@ Certains peuvent vouloir utiliser leur propre [.filename]#ports-supfile#, par ex
.. Remplacez _CHANGE_THIS.FreeBSD.org_ avec un serveur CVSup proche de vous. Voir crossref:mirrors[cvsup-mirrors,Sites CVSup] (crossref:mirrors[cvsup-mirrors,Sites CVSup]) pour une liste complète des sites miroirs.
.. Maintenant pour lancer `csup`, utilisez ce qui suit:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -358,21 +358,21 @@ Portsnap est un système alternatif de distribution du catalogue des logiciels p
. Téléchargez un instantané compressé du catalogue des logiciels portés dans le répertoire [.filename]#/var/db/portsnap#. Vous pouvez vous déconnecter de l'Internet, si vous le désirez, après cette opération:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
. Si vous exécutez Portsnap pour la première fois, il faut extraire l'instantané dans le répertoire [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Si votre répertoire [.filename]#/usr/ports# contient déjà une version du catalogue des logiciels portés et que vous désirez juste mettre à jour, utilisez plutôt la commande:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -386,7 +386,7 @@ Cette méthode implique l'utilisation de sysinstall pour installer le catalogue
. En tant que `root`, lancez `sysinstall` comme montré ci-dessous:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -434,14 +434,14 @@ Le catalogue des logiciels portés suppose que vous disposez d'une connection ac
Pour commencer, rendez-vous dans le répertoire du logiciel porté que vous voulez installer:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Une fois à l'intérieur du répertoire [.filename]#lsof# vous verrez le squelette du logiciel porté. L'étape suivante est de compiler (également appelé la "construction") le logiciel porté. Cela est fait en tapant simplement `make` à l'invite. Une fois que c'est fait, vous devriez voir quelque chose comme ceci:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -466,7 +466,7 @@ Une fois à l'intérieur du répertoire [.filename]#lsof# vous verrez le squelet
Notez qu'une fois la compilation terminée, vous vous retrouvez face à l'invite. L'étape suivante est d'installer le logiciel porté. Afin de l'installer, vous devez juste ajouter un mot à la commande `make`, et ce mot est `install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -486,7 +486,7 @@ Une fois de retour à l'invite, vous devriez être en mesure d'exécuter l'appli
Il est conseillé de supprimer le sous-répertoire de travail, qui contient tous les fichiers temporaires utilisés lors de la compilation. Non seulement cela consomme de l'espace disque, mais cela posera problème plus tard lors de la mise à jour vers une nouvelle version du logiciel porté.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -521,7 +521,7 @@ Vous pouvez compiler tous les logiciels d'une catégorie ou de l'ensemble du cat
Dans de rares cas les utilisateurs peuvent vouloir récupérer les archives à partir d'un site différent du `MASTER_SITES` par défaut (l'emplacement par défaut à partir duquel les fichiers sont téléchargés). Vous pouvez surcharger l'option `MASTER_SITES` avec la commande suivante:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/répertoire
# make MASTER_SITE_OVERRIDE= \
@@ -539,14 +539,14 @@ Certains logiciels portés autorisent (ou même nécessitent) des options de com
Il est parfois utile (ou obligatoire) d'utiliser des répertoires de travail ou cible différents. Les variables `WRKDIRPREFIX` et `PREFIX` permettent de modifier les répertoires par défaut. Par exemple:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
compilera le logiciel dans le répertoire [.filename]#/usr/home/example/ports# et installera tout dans [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -555,7 +555,7 @@ le compilera dans [.filename]#/usr/ports# et l'installera dans [.filename]#/usr/
Et bien sûr
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -577,7 +577,7 @@ Lors de la compilation de certains logiciels portés, un menu man:ncurses[3] pou
Maintenant que vous savez comment installer des logiciels portés, vous vous demandez probablement comment les effacer, juste au cas où vous en installez un et plus tard vous vous apercevez que vous n'avez pas installé le bon logiciel porté. Nous désinstallerons notre exemple précédent (qui était `lsof` pour ceux d'entre vous qui n'ont pas suivi). Les logiciels portés sont supprimés de la même manière que pour les logiciels pré-compilés (comme décrit dans la section <<packages-using,Utiliser le système des logiciels pré-compilés>>) en utilisant la commande man:pkg_delete[1]:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -587,7 +587,7 @@ Maintenant que vous savez comment installer des logiciels portés, vous vous dem
Tout d'abord, listez les logiciels portés périmés dont une nouvelle version est disponible dans le catalogue des logiciels portés à l'aide de la commande man:pkg_version[1]:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -604,7 +604,7 @@ Si le contenu du fichier [.filename]#UPDATING# prime même s'il est en est en co
Le logiciel portupgrade a été conçu pour une mise à jour aisée des logiciels portés installés. Il est disponible via le logiciel porté package:ports-mgmt/portupgrade[]. Installez-le de la même manière que pour n'importe quel autre logiciel en employant la commande `make install clean`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -614,21 +614,21 @@ Ensuite, parcourez la liste des logiciels installés avec la commande `pkgdb -F`
En lançant `portupgrade -a`, portupgrade mettra à jour tous les logiciels portés périmés installés sur votre système. Ajoutez l'indicateur `-i` si vous voulez être consulté pour confirmer chaque mise à jour individuelle.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Si vous désirez mettre à jour qu'une seule application bien particulière et non pas l'intégralité des applications, utilisez la commande: `portupgrade nom_du_logiciel_porté`. Ajoutez l'option `-R` si portupgrade doit mettre à jour en premier lieu tous les logiciels portés nécessaires à l'application.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Pour utiliser les versions pré-compilées plutôt que les logiciels portés pour l'installation, utilisez l'option `-P`. Avec cette option portupgrade cherche les répertoires locaux listé dans la variable `PKG_PATH`, ou récupère les paquetages à partir d'un site distant s'ils ne sont pas trouvés localement. Si les paquetages ne peuvent pas être trouvés localement ou récupérés à distance, portupgrade utilisera les logiciels portés. Pour éviter l'usage des logiciels portés, spécifiez l'option `-PP`.
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -640,7 +640,7 @@ Pour juste récupérer les sources (ou les paquetages, si l'option `-P` est util
Portmanager est un autre utilitaire de mise à jour aisée des logiciels portés installés. Il est disponible via le logiciel portés package:ports-mgmt/portmanager[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
@@ -648,21 +648,21 @@ Portmanager est un autre utilitaire de mise à jour aisée des logiciels portés
Tous les logiciels portés installés peuvent être mis à jour en utilisant cette simple commande:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
Vous pouvez ajouter l'option `-ui` pour être sollicité pour une confirmation à chaque opération qu'effectuera Portmanager. Portmanager peut également être employé pour installer de nouveaux logiciels portés sur le système. Contrairement à la commande `make install clean` habituelle, il mettra à jour toutes les dépendances avant de compiler et d'installer le logiciel sélectionné.
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
Si des problèmes concernant les dépendances du logiciel porté sélectionné apparaissent, vous pouvez utiliser Portmanager pour toutes les recompiler dans le bon ordre. Cette recompilation achevée, le logiciel porté en question peut alors être à son tour recompilé.
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -674,7 +674,7 @@ Pour plus d'information, consultez la page de manuel de Portmanager.
Portmaster est un autre utilitaire destiné à la mise à jour des logiciels installés. Portmaster a été conçu pour utiliser les outils présents dans le système de "base" (il ne dépend pas d'un autre logiciel porté) et utilise les informations contenues dans le répertoire [.filename]#/var/db/pkg/# pour déterminer quel logiciel doit être mis à jour. Il est disponible à partir du logiciel porté package:ports-mgmt/portmaster[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -689,7 +689,7 @@ Portmaster répartit les logiciels portés en quatre catégories:
Vous pouvez lister tous les logiciels installés et rechercher les mises à jour en utilisant l'option `-L`:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -716,7 +716,7 @@ Vous pouvez lister tous les logiciels installés et rechercher les mises à jour
L'ensemble des logiciels portés installés peut être mis à jour en utilisant cette simple commande:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -728,14 +728,14 @@ Par défaut Portmaster fera une sauvegarde avant la suppression d'un logiciel po
Si vous rencontrez des erreurs lors du processus de mise à jour, vous pouvez utiliser l'option `-f` pour mettre à jour ou recompiler tous les logiciels installés:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Vous pouvez également employer Portmaster pour installer de nouveaux logiciels portés en mettant à jour toutes les dépendances avant la compilation et l'installation du nouveau logiciel:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -747,14 +747,14 @@ Pour plus d'information veuillez consulter la page de manuel man:portmaster[8].
A la longue, l'utilisation du catalogue des logiciels portés consommera rapidement votre espace disque. Après la compilation et l'installation de logiciels à partir du catalogue des logiciels portés, vous devriez toujours penser à supprimer les répertoires de travail temporaires, [.filename]#work#, en utilisant la commande `make clean`. Vous pouvez balayer l'intégralité du catalogue des logiciels portés pour supprimer tous les répertoires temporaires oubliés précédement, employez alors la commande suivante:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Avec le temps, vous accumulerez beaucoup de fichiers sources obsolètes dans le répertoire [.filename]#distfiles#. Vous pouvez les supprimer manuellement, ou vous pouvez utiliser la commande suivante pour effacer toutes les sources qui ne correspondent plus à des logiciels portés d'actualité:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
@@ -777,7 +777,7 @@ Les étapes que vous devez suivre pour configurer chaque application seront bien
* Utilisez man:pkg_info[1] pour déterminer quels fichiers ont été installés et à quel endroit. Par exemple, si vous venez juste d'installer FooPackage version 1.0.0, alors la commande
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -786,7 +786,7 @@ affichera tous les fichiers installés par le logiciel pré-compilé. Portez une
+
Si vous n'êtes pas sûr de la version de l'application qui vient juste d'être installée, une commande comme
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -795,7 +795,7 @@ déterminera tous les logiciels pré-compilés installés qui ont _foopackage_ d
* Une fois que vous avez identifié où les pages de manuel de l'application ont été installées, consultez-les en utilisant la commande man:man[1]. De même, jetez un coup d'oeil aux exemples de fichiers de configuration, et toute autre documentation additionnelle qui peut avoir été fournie.
* Si l'application a un site web, consultez-le pour de la documentation supplémentaire, des listes de questions fréquemment posées, etc. Si vous n'êtes pas sûr de l'adresse du site web, elle peut être affichée dans le résultat de la commande:
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/fr/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/fr/books/handbook/ppp-and-slip/_index.adoc
index 0552775a09..210f262e9f 100644
--- a/documentation/content/fr/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/fr/books/handbook/ppp-and-slip/_index.adoc
@@ -120,7 +120,7 @@ Pour se connecter:
. Quittez kermit (sans raccrocher la ligne).
. Entrez la commande suivante:
+
-[source,bash]
+[source,shell]
....
# /usr/src/usr.sbin/pppd.new/pppd /dev/tty01 19200
....
@@ -265,7 +265,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTnuméro_de_téléphone
Une fois que ces fichiers sont installés et correctement modifiés, tout ce dont vous avez besoin de faire est de lancer `pppd`, comme suit:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -522,7 +522,7 @@ nom_du_fournisseur_d'accès:
En tant que `root`, vous pouvez lancer:
-[source,bash]
+[source,shell]
....
# ppp -ddial nom_du_fournisseur_d'accès
....
@@ -577,7 +577,7 @@ net.graph.nonstandard_pppoe=1
ou peut être paramétré pour prendre immédiatement effet avec la commande:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -679,14 +679,14 @@ adsl:
Il est possible d'initialiser aisément une connexion en tapant la commande suivante en tant que `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Vous pouvez voir quel est l'état de votre connexion à l'aide de la commande suivante:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -722,7 +722,7 @@ adsl:
Etant donné que vous devez mettre le mot de passe de votre compte en clair dans le fichier [.filename]#ppp.conf#, vous devez vous assurer que personne d'autre ne puisse lire le contenu de ce fichier. La série de commandes suivante s'assurera que ce fichier n'est lisible que par `root`. Référez-vous aux pages de manuel de man:chmod[1] et man:chown[8] pour plus d'informations.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -732,7 +732,7 @@ Etant donné que vous devez mettre le mot de passe de votre compte en clair dans
Cela créera un tunnel pour une session PPP vers votre routeur DSL. Les modems DSL Ethernet ont une adresse IP pour le réseau local pré-configurée à laquelle vous vous connectez. Dans le cas du modem SpeedTouch(TM) Home d'Alcatel cette adresse est `10.0.0.138`. La documentation de votre routeur devrait mentionner quelle adresse utilise votre périphérique. Pour créer le tunnel et démarrer une session PPP exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -745,7 +745,7 @@ Vous pourrez ajouter un "et commercial" ("") à la fin de la commande précéden
Un périphérique virtuel de tunnel ([.filename]#tun#) sera créé pour la communication entre les processus pptp et ppp. Une fois retourné à l'invite, ou que le processus pptp a confirmé la connexion, vous pouvez examiner le tunnel de cette manière:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -894,7 +894,7 @@ Conserver votre mot de passe en clair dans un fichier quelconque est en généra
+
. Laissez ensuite Kermit tel quel (vous pouvez le mettre en arrière-plan avec kbd:[Ctrl+z]) et en tant que `root`, tapez:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -906,7 +906,7 @@ Si vous êtes en mesure d'envoyer un `ping` vers des machines situées de l'autr
Effectuez ceci:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -925,7 +925,7 @@ Si cela ne fonctionne pas, n'hésitez pas à contacter la liste de diffusion lin
* Utiliser `s10` au lieu de `sl0` (avec certaines polices de caractères, il est parfois difficile de faire la différence).
* Essayez `ifconfig sl0` pour connaître la configuration de votre interface. Vous obtiendrez, par exemple:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -934,7 +934,7 @@ sl0: flags=10<POINTOPOINT>
* Si vous obtenez le message d'erreur `no route to host` lors de l'utilisation de man:ping[8], il se peut qu'il y ait un problème avec votre table de routage. Vous pouvez utiliser la commande `netstat -r` pour afficher les routes actives:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1104,7 +1104,7 @@ La ligne supplémentaire dans ce fichier [.filename]#slip.login#, `arp -s $5 00:
Dans l'exemple donné ci-dessus, remplacez l'adresse MAC Ethernet (`00:11:22:33:44:55`) avec l'adresse MAC de la carte Ethernet de votre système, ou sinon votre "proxy ARP" ne fonctionnera jamais! Vous pouvez déterminer l'adresse MAC de votre serveur SLIP en examinant le résultat de la commande `netstat -i`; la seconde ligne doit ressembler à ce qui suit:
-[source,bash]
+[source,shell]
....
ed0 1500 Link0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/fr/books/handbook/preface/_index.adoc b/documentation/content/fr/books/handbook/preface/_index.adoc
index b309555afc..b1b1165ee5 100644
--- a/documentation/content/fr/books/handbook/preface/_index.adoc
+++ b/documentation/content/fr/books/handbook/preface/_index.adoc
@@ -213,7 +213,7 @@ Signifiera que l'on on attend à ce que l'utilisateur tape les touches kbd:[Ctrl
Les exemples commençant par [.filename]#E:\# indiquent une commande MS-DOS(R). Sauf indication contraire, on peut exécuter ces commandes depuis une fenêtre "d'invite de commande" dans un environnement Microsoft(R) Windows(R) moderne.
-[source,bash]
+[source,shell]
....
E:\ tools\fdimage floppies\kern.flp A:
@@ -221,14 +221,14 @@ E:\ tools\fdimage floppies\kern.flp A:
Les exemples commençant par # indiquent que la commande doit être lancée en tant que super-utilisateur sous FreeBSD. Vous pouvez ouvrir une session en tant que `root` pour taper cette commande, ou ouvrir une session sous votre compte normal et utiliser man:su[1] pour obtenir les privilèges de super-utilisateur.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Les exemples commençant par % indiquent une commande qui devrait être lancée par un utilisateur normal. Sauf indication contraire, la syntaxe de l'interpréteur de commandes C-shell est utilisée pour configurer les variables d'environnement et autres commandes de l'interpréteur.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/fr/books/handbook/printing/_index.adoc b/documentation/content/fr/books/handbook/printing/_index.adoc
index c7e6ac965c..e3d77dc6f3 100644
--- a/documentation/content/fr/books/handbook/printing/_index.adoc
+++ b/documentation/content/fr/books/handbook/printing/_index.adoc
@@ -180,14 +180,14 @@ Le noyau du système d'exploitation est compilé avec le support d'un certain en
Pour savoir si le support d'une interface série est activé dans le noyau que vous êtes en train d'utiliser, entrez:
-[source,bash]
+[source,shell]
....
# # grep sioN /var/run/dmesg.boot
....
Où _N_ représente le numéro du port série, en commençant à zéro. Si vous obtenez un affichage similaire à:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa sio2: type 16550A
....
@@ -196,14 +196,14 @@ alors le port est activé dans le noyau.
Pour savoir si le noyau supporte une interface parallèle, entrez:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Où _N_ représente le numéro du port parallèle, en commençant à zéro. Si vous obtenez un affichage similaire à:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -268,7 +268,7 @@ _Pour paramétrer le mode de communication avec_ man:lptcontrol[8]:
. Entrez:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -276,7 +276,7 @@ _Pour paramétrer le mode de communication avec_ man:lptcontrol[8]:
pour sélectionner le mode par interruption pour `lptN`.
. Entrez:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -325,7 +325,7 @@ _Pour tester une imprimante connectée sur un port parallèle:_
** Si l'imprimante peut sortir du texte simple, alors utilisez man:lptest[1]. Entrez:
+
-[source,bash]
+[source,shell]
....
# lptest /dev/lptN
....
@@ -333,7 +333,7 @@ _Pour tester une imprimante connectée sur un port parallèle:_
Où _N_ est le numéro du port parallèle, en commençant à zéro.
** Si l'imprimante comprend le PostScript(R) ou un autre langage d'imprimante, alors envoyez lui un petit programme. Entrez:
+
-[source,bash]
+[source,shell]
....
# cat /dev/lptN
....
@@ -342,7 +342,7 @@ Tapez ensuite le programme, ligne à ligne et _attentivement_, car vous ne pouve
+
Une autre manière de procéder est de placer le programme dans un fichier et d'entrer:
+
-[source,bash]
+[source,shell]
....
# cat fichier /dev/lptN
....
@@ -381,7 +381,7 @@ printer:dv=/dev/ttyd2:br#19200:pa=none
. Connectez-vous à l'imprimante avec man:tip[1]. Entrez:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -391,7 +391,7 @@ Si cette étape ne fonctionne pas, éditez le fichier [.filename]#/etc/remote#
** Si l'imprimante peut sortir du texte simple, alors utilisez man:lptest[1]. Entrez:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -400,7 +400,7 @@ Si cette étape ne fonctionne pas, éditez le fichier [.filename]#/etc/remote#
+
Une autre manière de procéder est de placer le programme dans un fichier et d'entrer:
+
-[source,bash]
+[source,shell]
....
% >fichier
....
@@ -493,14 +493,14 @@ A cause de la nature variable des répertoires de file d'attente, il est d'usage
Il est également d'usage de créer le répertoire avec un nom identique à celui de l'imprimante, comme dans l'exemple ci-dessous:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/nom-de-l-imprimante
....
Toutefois, si votre réseau comporte beaucoup d'imprimantes, vous pouvez préférer placer les répertoires de file d'attente dans un unique répertoire que vous réserverez à l'impression avec LPD. C'est ce que nous allons faire pour les deux imprimantes de notre exemple, `rattan` et `bamboo`:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -511,7 +511,7 @@ Toutefois, si votre réseau comporte beaucoup d'imprimantes, vous pouvez préfé
====
Si la confidentialité des travaux imprimés par les utilisateurs vous importe, vous souhaiterez certainement protéger le répertoire de file d'attente afin qu'il ne soit pas accessible par tout le monde. Les répertoires de file d'attente doivent appartenir, être accessibles en lecture et écriture et pouvoir être parcourus par l'utilisateur `daemon` et le groupe `daemon`, et personne d'autre. C'est ce que nous allons faire pour les deux imprimantes de notre exemple:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -617,7 +617,7 @@ exit 2
Rendez le fichier exécutable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -655,7 +655,7 @@ lpd_enable="YES"
à votre [.filename]#/etc/rc.conf#, puis relancez votre machine, ou lancez simplement man:lpd[8].
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -671,7 +671,7 @@ _Pour tester la configuration simple de LPD_
Entrez:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pnom-de-l-imprimante
....
@@ -903,7 +903,7 @@ Après avoir mené à bien la configuration basique décrite à la section <<pri
Les filtres de conversion facilitent l'impression de différentes sortes de fichiers. Par exemple, supposons que nous travaillions énormément avec le système de composition TeX, et que nous ayons une imprimante PostScript(R). Chaque fois que nous générerons un fichier DVI à partir de TeX, nous ne pouvons l'imprimer directement avant d'avoir converti ce fichier DVI en PostScript(R). La séquence de commandes serait la suivante:
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -911,7 +911,7 @@ Les filtres de conversion facilitent l'impression de différentes sortes de fich
En installant un filtre de conversion pour fichiers DVI, nous pouvons à chaque fois nous passer de l'étape de conversion manuelle en chargeant LPD de le faire à notre place. Maintenant, à chaque fois que nous avons un fichier DVI, nous ne sommes plus qu'à un pas de l'impression:
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1553,7 +1553,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Ensuite, nous n'avons qu'à créer les répertoires de file d'impression sur `orchid`:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1562,7 +1562,7 @@ Ensuite, nous n'avons qu'à créer les répertoires de file d'impression sur `or
Maintenant les utilisateurs d'``orchid`` peuvent imprimer sur `rattan` et `bamboo`. Par exemple, si un utilisateur sur `orchid` entrait:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1629,7 +1629,7 @@ Le système LPD facilite l'impression de plusieurs copies d'un même fichier par
Si vous estimez que les copies multiples provoquent charge et usure inutiles pour vos imprimantes, vous pouvez désactiver l'option `-#` de man:lpr[1] en ajoutant le paramètre `sc` au fichier [.filename]##/etc/printcap##. Lorsque des utilisateurs soumettront un travail d'impression avec l'option `-#`, ils obtiendront cet affichage:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1678,7 +1678,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
En recourant au paramètre `sc`, nous empêchons l'utilisation de `lpr -#`, mais cela n'empêche toujours pas les utilisateurs de lancer man:lpr[1] à plusieurs reprises, ou de soumettre le même fichier plusieurs fois en un seul travail, de cette façon:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1803,7 +1803,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
Le répertoire de file d'impression est précisé par le paramètre `sd`. Nous placerons à trois méga-octets (soit 6144 blocs disque) la limite d'espace libre devant exister sur le système de fichiers pour que LPD accepte les travaux d'impression distants:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1850,7 +1850,7 @@ Vous devriez utiliser un fichier de comptabilisation séparé pour chaque imprim
Lorsque vous serez prêts à faire payer les utilisateurs pour leurs impressions, lancez le programme man:pac[8]. Placez-vous simplement dans le répertoire de file d'impression de l'imprimante pour laquelle vous voulez collecter les informations, et tapez `pac`. Vous obtiendrez un récapitulatif en dollars ressemblant à ceci:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1889,7 +1889,7 @@ N'imprimer des statistiques que pour les utilisateurs dont les __nom__s sont don
Dans le récapitulatif produit par défaut par man:pac[8], vous pouvez lire le nombre de pages imprimées par chaque utilisateur depuis les différentes machines. Si, sur votre site, la machine n'a pas d'importance (parce que les utilisateurs peuvent utiliser n'importe quelle machine), lancez `pac -m`, afin de produire le récapitulatif ci-dessous:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1903,7 +1903,7 @@ total 337.00 154 $ 6.74
Afin de calculer le montant dû en dollars, man:pac[8] utilise le paramètre `pc` de [.filename]#/etc/printcap# (200 par défaut, c'est à dire 2 cents par page). Précisez avec ce paramètre le prix par page ou par pied, exprimé en centièmes de cents, que vous voulez imputer aux impressions. Vous pouvez spécifier cette valeur lorsque vous lancez man:pac[8] avec l'option `-p`. Cependant, avec cette option, les unités sont exprimées en dollars, et non en centièmes de cents. Par exemple,
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
diff --git a/documentation/content/fr/books/handbook/security/_index.adoc b/documentation/content/fr/books/handbook/security/_index.adoc
index 584e5a81e8..69a3f7b699 100644
--- a/documentation/content/fr/books/handbook/security/_index.adoc
+++ b/documentation/content/fr/books/handbook/security/_index.adoc
@@ -146,7 +146,7 @@ Nous décrirons quatre sortes d'opérations. La première est l'utilisation du p
Pour initialiser S/Key pour la première fois, changer votre mot de passe, ou changer votre germe quand vous êtes attaché sous votre compte par l'intermédiaire d'une connexion sécurisée (e.g., sur la console d'une machine ou via ssh), utilisez la commande `keyinit` sans paramètres:
-[source,bash]
+[source,shell]
....
% keyinit
Adding unfurl:
@@ -161,7 +161,7 @@ DEFY CLUB PRO NASH LACE SOFT
Pour OPIE, `opiepasswd` est utilisé à la place:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -182,7 +182,7 @@ A l'invite `Enter new secret pass phrase:` ou `Enter secret password:`, vous dev
Pour initialiser ou changer votre mot de passe secret par l'intermédiaire d'une connexion non sécurisée, il faudra avoir déjà une connexion sécurisée sur une machine où vous pouvez exécuter `key` ou `opiekey`; ce peut être depuis une icone sur le bureau d'un Macintosh ou depuis la ligne de commande d'une machine sûre. Il vous faudra également donner une valeur au compteur d'itération (100 est probablement une bonne valeur), et indiquer un germe ou utiliser la valeur aléatoire générée par le programme. Sur la connexion non sécurisée (vers la machine que vous initialisez), employez la commande `keyinit -s`:
-[source,bash]
+[source,shell]
....
% keyinit -s
Updating unfurl:
@@ -197,7 +197,7 @@ s/key access password:CURE MIKE BANE HIM RACY GORE
Pour OPIE, vous devez utiliser `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -216,7 +216,7 @@ LINE PAP MILK NELL BUOY TROY
Pour accepter le germe par défaut (que le programme `keyinit` appelle `key`, ce qui prête à confusion), appuyez sur kbd:[Entrée]. Ensuite avant d'entrer un mot de passe d'accès, passez sur votre connexion sécurisée et donnez lui les mêmes paramètres:
-[source,bash]
+[source,shell]
....
% key 100 to17759
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -226,7 +226,7 @@ CURE MIKE BANE HIM RACY GORE
Ou pour OPIE:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -241,7 +241,7 @@ Retournez maintenant sur votre connexion non sécurisée, et copiez le mot de pa
Une fois que vous avez initialisé S/Key ou OPIE, lorsque que vous ouvrez une session, une invite de ce type apparaîtra:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -257,7 +257,7 @@ Password:
Ou pour OPIE:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -277,7 +277,7 @@ A ce moment vous devez générer votre mot de passe non réutilisable pour répo
Sur le système sûr:
-[source,bash]
+[source,shell]
....
% key 97 fw13894
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -287,7 +287,7 @@ WELD LIP ACTS ENDS ME HAAG
Pour OPIE:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -298,7 +298,7 @@ GAME GAG WELT OUT DOWN CHAT
Maintenant que vous disposez de votre mot de passe non réutilisable vous pouvez continuer et vous connecter:
-[source,bash]
+[source,shell]
....
login: <username>
s/key 97 fw13894
@@ -312,7 +312,7 @@ Last login: Tue Mar 21 11:56:41 from 10.0.0.2 ...
Il faut parfois se rendre en des endroits où vous n'avez pas accès à une machine de confiance ou à une connexion sécurisée. Dans ce cas, vous pouvez utiliser la commande `key` ou `opiekey` pour générer plusieurs mots de passe non réutilisables que vous pouvez imprimer et transporter avec vous. Par exemple:
-[source,bash]
+[source,shell]
....
% key -n 5 30 zz99999
Reminder - Do not use this program while logged in via telnet or rlogin.
@@ -326,7 +326,7 @@ Enter secret password: <secret password>
Ou pour OPIE:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -492,7 +492,7 @@ Alternativement, l'implémentation du MIT de Kerberos est disponible dans le cat
Cela se fait uniquement sur le serveur Kerberos. Vérifiez tout d'abord qu'il ne traîne pas d'anciennes bases Kerberos. Allez dans le répertoire [.filename]#/etc/kerberosIV# et assurez-vous qu'il ne contient que les fichiers suivants:
-[source,bash]
+[source,shell]
....
# cd /etc/kerberosIV
# ls
@@ -503,7 +503,7 @@ S'il y a d'autres fichiers (comme [.filename]#principal.*# ou [.filename]#master
Vous devez maintenant éditer les fichiers [.filename]#krb.conf# et [.filename]#krb.realms# pour définir votre domaine Kerberos. Dans notre cas, le domaine sera `EXAMPLE.COM` et le serveur `grunt.example.com`. Nous éditons ou créons le fichier [.filename]#krb.conf#:
-[source,bash]
+[source,shell]
....
# cat krb.conf
EXAMPLE.COM
@@ -524,7 +524,7 @@ La première ligne indique pour quel domaine cette machine agit. Les autre ligne
Nous devons maintenant ajouter `grunt.example.com` au domaine `EXAMPLE.COM` et ajouter une entrée pour mettre toutes les machines du domaine DNS `.example.com` dans le domaine Kerberos `EXAMPLE.COM`. Le fichier [.filename]#krb.realms# aura alors l'allure suivante:
-[source,bash]
+[source,shell]
....
# cat krb.realms
grunt.example.com EXAMPLE.COM
@@ -540,7 +540,7 @@ La première ligne assigne un système _particulier_ au domaine désigné. Les l
Nous sommes maintenant prêt pour la création de la base de données. Il n'y a à le faire que sur le serveur Kerberos (ou Centre de Distribution de Clés). Cela se fait avec la commande `kdb_init`:
-[source,bash]
+[source,shell]
....
# kdb_init
Realm name [default ATHENA.MIT.EDU ]: EXAMPLE.COM
@@ -552,7 +552,7 @@ Enter Kerberos master key:
Nous devons maintenant sauvegarder la clé pour que les serveurs sur la machine locale puissent la lire. Utilisons la commande `kstash` pour faire cela:
-[source,bash]
+[source,shell]
....
# kstash
@@ -573,7 +573,7 @@ Ces "daemons", kpasswd et rcmd permettent aux autres systèmes de changer les mo
Ajoutons donc maintenant ces entrées:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -629,7 +629,7 @@ Principal name: <---- ne rien entrer ici permet de quitter le programme
Il faut maintenant extraire les instances qui définissent les services sur chaque machine. Pour cela on utilise la commande `ext_srvtab`. Cela créera un fichier qui doit être copié ou déplacé _par un moyen sûr_ dans le répertoire [.filename]#/etc/kerberosIV# de chaque client Kerberos. Ce fichier doit être présent sur chaque serveur et client, et est crucial au bon fonctionnement de Kerberos.
-[source,bash]
+[source,shell]
....
# ext_srvtab grunt
Enter Kerberos master key:
@@ -642,14 +642,14 @@ Generating 'grunt-new-srvtab'....
Cette commande ne génère qu'un fichier temporaire qui doit être renommé en [.filename]#srvtab# pour que tous les serveurs puissent y accéder. Utilisez la commande man:mv[1] pour l'installer sur le système d'origine:
-[source,bash]
+[source,shell]
....
# mv grunt-new-srvtab srvtab
....
Si le fichier est destiné à un client, et que le réseau n'est pas considéré comme sûr, alors copiez le fichier [.filename]#client-new-srvtab# sur un support amovible et transportez-le par un moyen physiquement sûr. Assurez-vous de le renommer en [.filename]#srvtab# dans le répertoire [.filename]#/etc/kerberosIV# du client, et mettez-le bien en mode 600:
-[source,bash]
+[source,shell]
....
# mv grumble-new-srvtab srvtab
# chmod 600 srvtab
@@ -659,7 +659,7 @@ Si le fichier est destiné à un client, et que le réseau n'est pas considéré
Nous devons maintenant créer des entrées utilisateurs dans la base de données. Tout d'abord créons une entrée pour l'utilisateur `jane`. Utilisez la commande `kdb_edit` pour cela:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -694,7 +694,7 @@ Principal name: <---- ne rien entrer ici permet de quitter le programme
Il faut tout d'abord démarrer les "daemons" Kerberos. Notez que si vous avez correctement modifié votre fichier [.filename]#/etc/rc.conf#, cela se fera automatiquement au redémarrage du système. Ceci n'est nécessaire que sur le serveur Kerberos. Les clients Kerberos récupéreront automatiquement les informations dont ils ont besoin via leur répertoire [.filename]#/etc/kerberosIV#.
-[source,bash]
+[source,shell]
....
# kerberos &
Kerberos server starting
@@ -718,7 +718,7 @@ Master key entered. BEWARE!
Nous pouvons maintenant utiliser la commande `kinit` pour obtenir un "ticket d'entrée" pour l'utilisateur `jane` que nous avons créé plus haut:
-[source,bash]
+[source,shell]
....
% kinit jane
MIT Project Athena (grunt.example.com)
@@ -728,7 +728,7 @@ Password:
Essayons de lister les informations associées avec la commande `klist` pour voir si nous avons vraiment tout ce qu'il faut:
-[source,bash]
+[source,shell]
....
% klist
Ticket file: /tmp/tkt245
@@ -740,7 +740,7 @@ Apr 30 11:23:22 Apr 30 19:23:22 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Essayons maintenant de modifier le mot de passe en utilisant la commande man:passwd[1] pour vérifier si le "daemon" kpasswd est autorisé à accéder à la base de données Kerberos:
-[source,bash]
+[source,shell]
....
% passwd
realm EXAMPLE.COM
@@ -755,7 +755,7 @@ Password changed.
Kerberos permet d'attribuer à _chaque_ utilisateur qui a besoin des droits du super-utilisateur son _propre_ mot de passe man:su[1]. Nous pouvons créer un identifiant qui est autorisé à utiliser man:su[1] pour devenir `root`. Cela se fait en associant une instance `root` un identificateur ("principal") de base. En utilisant la commande `kdb_edit` nous pouvons créer l'entrée `jane.root` dans la base de données Kerberos:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -789,7 +789,7 @@ Principal name: <---- ne rien entrer ici permet de quitter le programm
Vérifions maintenant les caractéristiques associées pour voir si cela fonctionne:
-[source,bash]
+[source,shell]
....
# kinit jane.root
MIT Project Athena (grunt.example.com)
@@ -799,7 +799,7 @@ Password:
Nous devons maintenant ajouter l'utilisateur au fichier [.filename]#.klogin# de `root`:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -807,7 +807,7 @@ jane.root@EXAMPLE.COM
Essayons maintenant la commande man:su[1]:
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -815,7 +815,7 @@ Password:
et voyons quelles sont nos caractéristiques:
-[source,bash]
+[source,shell]
....
# klist
Ticket file: /tmp/tkt_root_245
@@ -829,7 +829,7 @@ May 2 20:43:12 May 3 04:43:12 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Dans l'exemple précédent, nous avons créé une entrée principale nommée `jane` avec une instance `root`. Cette entrée reposait sur un utilisateur ayant le même nom que l'entrée principale, c'est ce que fait par défaut Kerberos; une `entrée_principale.instance` de la forme `nom_d_utilisateur`. `root` autorisera `nom_d_utilisateur.` à utiliser man:su[1] pour devenir `root` si le fichier [.filename]#.klogin# du répertoire personnel de l'utilisateur `root` est correctement renseigné:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -837,7 +837,7 @@ jane.root@EXAMPLE.COM
De même, si un utilisateur a dans son répertoire des lignes de la forme:
-[source,bash]
+[source,shell]
....
% cat ~/.klogin
jane@EXAMPLE.COM
@@ -848,7 +848,7 @@ Cela permet à quiconque dans le domaine `EXAMPLE.COM` s'étant authentifié en
Par exemple, `jane` ouvre maintenant une session sur un autre système en utilisant Kerberos:
-[source,bash]
+[source,shell]
....
% kinit
MIT Project Athena (grunt.example.com)
@@ -863,7 +863,7 @@ FreeBSD BUILT-19950429 (GR386) #0: Sat Apr 29 17:50:09 SAT 1995
Ou bien `jack` ouvre une session sur le compte de `jane` sur la même machine (`jane` ayant modifié son fichier [.filename]#.klogin# comme décrit plus haut, et la personne an charge de Kerberos ayant défini une entrée principale _jack_ sans instance):
-[source,bash]
+[source,shell]
....
% kinit
% rlogin grunt -l jane
@@ -903,7 +903,7 @@ Une des utilisations les plus courantes d'OpenSSL est de fournir des certificats
Pour générer un certificat, la commande suivante est disponible:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -938,21 +938,21 @@ Deux fichiers doivent maintenant être présents dans le répertoire dans lequel
Pour les cas où une signature d'une CA n'est pas indispensable, un certificat auto-signé peut être créé. Générez tout d'abord la clé RSA:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
Générez ensuite la clé de la CA:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Utilisez cette clé pour créer le certificat:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -986,7 +986,7 @@ Si tout s'est bien passé il n'y aura pas de message d'erreur dans le fichier [.
Comme test simple, connectez vous au serveur de messagerie à l'aide de l'utilitaire man:telnet[1]:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1049,7 +1049,7 @@ La longueur de la clé dépend de chaque algorithme. Par exemple, elle doit êtr
Définissons maintenant le SPI (_Security Parameter Index_) pour chaque protocole. Remarquez qu'il nous faut 3 SPIs pour ce canal sécurisé puisqu'il y aura trois entêtes de sécurité (une de la Machine A vers la Machine B et deux de la Machine B vers la Machine A). Notez également que les SPIs doivent être supérieurs à 256. Nous choisirions 1000, 2000 et 3000 respectivement.
-[source,bash]
+[source,shell]
....
(1)
Machine A ------> Machine B
@@ -1081,7 +1081,7 @@ Définissons maintenant le SPI (_Security Parameter Index_) pour chaque protocol
Maintenant, définissons l'association de sécurité. Exécutons man:setkey[8] sur la Machine A et la Machine B:
-[source,bash]
+[source,shell]
....
# setkey -c
add 10.2.3.4 10.6.7.8 ah-old 1000 -m transport -A keyed-md5 "MYSECRETMYSECRET" ;
@@ -1092,7 +1092,7 @@ Maintenant, définissons l'association de sécurité. Exécutons man:setkey[8] s
En fait, la communication IPsec n'aura pas lieu avant que les entrées de politique de sécurité ne soient définies. Dans notre cas, il faut le faire sur les deux machines.
-[source,bash]
+[source,shell]
....
Côté A:
@@ -1125,7 +1125,7 @@ Un autre exemple utilisant IPv6.
Le mode de transport ESP est recommandé pour le port TCP numéro 110 entre la Machine-A et la Machine-B.
-[source,bash]
+[source,shell]
....
============ ESP ============
| |
@@ -1135,7 +1135,7 @@ Le mode de transport ESP est recommandé pour le port TCP numéro 110 entre la M
L'algorithme de chiffrement est blowfish-cbc avec la clé "kamekame", et l'algorithme d'authentification est hmac-sha1 avec la clé "this is the test key". Configuration de la Machine-A:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd fec0::10[any] fec0::11[110] tcp -P out ipsec
@@ -1155,7 +1155,7 @@ L'algorithme de chiffrement est blowfish-cbc avec la clé "kamekame", et l'algor
et de la Machine-B:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd fec0::11[110] fec0::10[any] tcp -P out ipsec
@@ -1179,7 +1179,7 @@ Mode tunnel entre deux passerelles de sécurité
Le protocole de sécurité est l'ancien mode tunnel AH, i.e. spécifié par la RFC1826, avec keyed-md5 comme algorithme d'authentification et "this is the test" comme clé.
-[source,bash]
+[source,shell]
....
======= AH =======
| |
@@ -1189,7 +1189,7 @@ Le protocole de sécurité est l'ancien mode tunnel AH, i.e. spécifié par la R
Configuration de la Passerelle-A:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd 10.0.1.0/24 10.0.2.0/24 any -P out ipsec
@@ -1208,7 +1208,7 @@ Si le numéro de port n'est pas précisé comme ci-dessus, alors `[any]` est uti
et de la Passerelle-B:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd 10.0.2.0/24 10.0.1.0/24 any -P out ipsec
@@ -1227,7 +1227,7 @@ Etablir une SA regroupée entre deux passerelles de sécurité
On désire le mode de transport AH et le mode tunnel ESP entre Passerelle-A et Passerelle-B. Dans ce cas, on applique d'abord le mode tunnel ESP puis le mode de transport AH.
-[source,bash]
+[source,shell]
....
========== AH =========
| ======= ESP ===== |
@@ -1240,7 +1240,7 @@ On désire le mode de transport AH et le mode tunnel ESP entre Passerelle-A et P
L'algorithme de chiffrement est 3des-cbc, et l'algorithme d'authentification est hmac-sha1. L'algorithme d'authentification pour AH est hmac-md5. Configuration de la Passerelle-A:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd fec0:0:0:1::/64 fec0:0:0:2::/64 any -P out ipsec
@@ -1267,7 +1267,7 @@ Etablir des SAs avec les différentes extrémités
On désire un mode tunnel ESP entre Machine-A et Passerelle-A. L'algorithme de chiffrement est cast128-cbc, et l'algorithme d'authentification pour ESP est hmac-sha1. Le mode de transport ESP est recommandé entre Machine-A et Machine-B. L'algorithme de chiffrement est rc5-cbc, et l'algorithme d'authentification pour ESP est hmac-md5.
-[source,bash]
+[source,shell]
....
================== ESP =================
| ======= ESP ======= |
@@ -1279,7 +1279,7 @@ On désire un mode tunnel ESP entre Machine-A et Passerelle-A. L'algorithme de c
Configuration de la Machine-A:
-[source,bash]
+[source,shell]
....
# setkey -c <<EOF
spdadd fec0:0:0:1::1[any] fec0:0:0:2::2[80] tcp -P out ipsec
@@ -1321,7 +1321,7 @@ Normalement, quand on utilise man:telnet[1] ou man:rlogin[1], les données sont
Assurez-vous d'ajouter la ligne suivante à votre fichier [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1332,7 +1332,7 @@ Cela chargera le "daemon" ssh à l'initialisation suivante du système. Alternat
L'utilitaire man:ssh[1] fonctionne de la même manière que man:rlogin[1]:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1351,7 +1351,7 @@ Par défaut, les serveurs OpenSSH sont configurés pour accepter les connexions
La commande man:scp[1] fonctionne de la même manière que man:rcp[1]; elle copie un fichier vers ou à partir d'une machine distante à la différence qu'elle le fait d'une façon sécurisé.
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1376,7 +1376,7 @@ De plus, les options `sshd_program` ([.filename]#/usr/sbin/sshd# par défaut), e
Au lieu d'utiliser des mots de passe, man:ssh-keygen[1] peut être employé pour générer des clés RSA pour authentifier un utilisateur:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa1
Initializing random number generator...
@@ -1421,7 +1421,7 @@ OpenSSH a la capacité de créer un tunnel pour encapsuler un autre protocole da
La commande suivante demande à man:ssh[1] de créer un tunnel pour telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1454,7 +1454,7 @@ Cela peut être utilisé pour encapsuler n'importe quel nombre de protocoles TCP
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1473,7 +1473,7 @@ Ceci peut être utilisé en conjonction avec man:ssh-keygen[1] et des comptes ut
Au travail, il y a un serveur SSH qui accepte les connexions de l'extérieur. Sur le même réseau d'entreprise réside un serveur de courrier électronique faisant fonctionner un serveur POP3. Le réseau ou le chemin entre chez vous et le bureau peut ou peut ne pas être complètement sûr. Pour cette raison, vous devez récupérer votre courrier électronique d'une façon sécurisée. La solution est de créer une connexion SSH vers le serveur SSH de votre entreprise, et d'utiliser ce tunnel vers le serveur de courrier.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1489,7 +1489,7 @@ Vous pouvez vouloir accéder à un autre (n'ayant peut-être aucun rapport avec
La solution est de créer une connexion SSH vers une machine à l'extérieur du réseau protégé par le coupe-feu, et l'utiliser pour créer un tunnel vers le serveur Ogg Vorbis.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1553,7 +1553,7 @@ Ici nous voyons que les répertoires [.filename]#directory1#, [.filename]#direct
Les ACLs peuvent être affichées par l'utilitaire man:getfacl[1]. Par exemple pour voir les ACLs sur le fichier [.filename]#test#, on utilisera la commande:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1566,14 +1566,14 @@ Les ACLs peuvent être affichées par l'utilitaire man:getfacl[1]. Par exemple p
Pour modifier le paramétrage des ACLs sur ce fichier, invoquez la commande man:setfacl[1]. Intéressons-nous à la ligne:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
L'indicateur `-k` supprimera toutes les ACLs actuellement définies pour un fichier ou un système de fichiers. Une méthode plus adaptée est d'utiliser l'option `-b` étant donné qu'elle conserve les champs de base nécessaires au bon fonctionnement des ACLs.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1591,7 +1591,7 @@ Le logiciel porté package:ports-mgmt/portaudit[] consulte une base de données,
Pour utiliser Portaudit, ce dernier doit être installé à partir du catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -1600,7 +1600,7 @@ Lors du processus d'installation, les fichiers de configuration de man:periodic[
Après l'installation, un administrateur peut mettre à jour la base de données et afficher les vulnérabilités connues des logiciels installés en invoquant la commande suivante:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -1612,7 +1612,7 @@ La base de données sera automatiquement mise à jour lors de l'exécution de ma
Pour contrôler à n'importe quel moment les programmes tierce-partie installés à partir du catalogue des logiciels portés, un administrateur n'aura qu'à exécuter la commande suivante:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -1729,7 +1729,7 @@ Ce système possède des avantages et des inconvénients. Un de ses avantages es
Avant de pouvoir utiliser la comptabilité des processus, il faut l'activer. Cela se fait en exécutant les commandes suivantes:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -1742,7 +1742,7 @@ Une fois activée, les statistiques concernant le CPU, les commandes, etc. comme
Pour afficher les informations sur les commandes utilisées, on emploiera l'utilitaire man:lastcomm[1]. La commande `lastcomm` peut être employée pour afficher les commandes tapées par les utilisateurs sur des terminaux (man:ttys[5]) spécifiques; par exemple:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/fr/books/handbook/users/_index.adoc b/documentation/content/fr/books/handbook/users/_index.adoc
index da405081cb..e8dbaeebe2 100644
--- a/documentation/content/fr/books/handbook/users/_index.adoc
+++ b/documentation/content/fr/books/handbook/users/_index.adoc
@@ -166,7 +166,7 @@ man:adduser[8] est un programme simple pour ajouter de nouveaux utilisateurs. Il
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -236,7 +236,7 @@ Par défaut, la commande travaille en mode interactif, pour garantir que vous so
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -272,7 +272,7 @@ On vous demandera votre mot de passe en quittant l'éditeur si vous n'êtes pas
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -299,7 +299,7 @@ Un utilisateur ordinaire ne peut modifier qu'une partie de ces informations, et
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -331,7 +331,7 @@ Pour prévenir des modifications accidentelles ou non autorisées, le mot de pas
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -348,7 +348,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -385,7 +385,7 @@ Les classes de session sont définies dans [.filename]#/etc/login.conf#. La sém
====
Le système ne lit normalement pas directement le fichier [.filename]#/etc/login.conf#, mais plutôt la base de données [.filename]#/etc/login.conf.db# qui fournit plus rapidement les réponses au système. Pour générer [.filename]#/etc/login.conf.db# à partir du fichier [.filename]#/etc/login.conf#, exécutez la commande suivante:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -450,7 +450,7 @@ Si vous ne voulez pas éditer [.filename]#/etc/group# à la main, vous pouvez ut
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -465,7 +465,7 @@ Le nombre `1100` ci-dessus est l'identificateur de groupe pour le groupe `teamtw
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -480,7 +480,7 @@ Le paramètre ajouté à l'option `-M` est une liste, délimitée par des virgul
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/fr/books/handbook/vinum/_index.adoc b/documentation/content/fr/books/handbook/vinum/_index.adoc
index ec6121df87..e20cc16b7b 100644
--- a/documentation/content/fr/books/handbook/vinum/_index.adoc
+++ b/documentation/content/fr/books/handbook/vinum/_index.adoc
@@ -461,7 +461,7 @@ Les volumes apparaissent pour le système comme des disques, avec une seule exce
Normalement, man:newfs[8] interprète le nom du disque et se plaint s'il ne peut le comprendre. Par exemple:
-[source,bash]
+[source,shell]
....
# newfs /dev/vinum/concat
newfs: /dev/vinum/concat: can't figure out file system partition
@@ -469,7 +469,7 @@ newfs: /dev/vinum/concat: can't figure out file system partition
Afin de créer un système de fichiers sur ce volume, utilisez l'option `-v` de man:newfs[8]:
-[source,bash]
+[source,shell]
....
# newfs -v /dev/vinum/concat
....
diff --git a/documentation/content/fr/books/handbook/virtualization/_index.adoc b/documentation/content/fr/books/handbook/virtualization/_index.adoc
index 1088463b37..4b0b1f0afd 100644
--- a/documentation/content/fr/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/fr/books/handbook/virtualization/_index.adoc
@@ -159,7 +159,7 @@ L'hyperviseur Xen(TM) est un logiciel libre de para-virtualisation qui est suppo
Récupérez l'archive http://bits.xensource.com/oss-xen/release/3.0.4-1/src.tgz/xen-3.0.4_1-src.tgz[xen-3.0.4_1-src.tgz] auprès de http://www.xensource.com/[http://www.xensource.com/].
. Extraire l'archive
+
-[source,bash]
+[source,shell]
....
# cd xen-3.0.4_1-src
# KERNELS="linux-2.6-xen0 linux-2.6-xenU" make world
@@ -170,7 +170,7 @@ Récupérez l'archive http://bits.xensource.com/oss-xen/release/3.0.4-1/src.tgz/
======
Pour recompiler le noyau pour le domaine dom0:
-[source,bash]
+[source,shell]
....
# cd xen-3.0.4_1-src/linux-2.6.16.33-xen0
# make menuconfig
@@ -204,7 +204,7 @@ Tout d'abord, éditez [.filename]#/etc/xen/xend-config.sxp#, et ajoutez la ligne
+
Nous pouvons maintenant lancer Xen(TM):
+
-[source,bash]
+[source,shell]
....
# /etc/init.d/xend start
# /etc/init.d/xendomains start
@@ -212,7 +212,7 @@ Nous pouvons maintenant lancer Xen(TM):
+
Notre domaine dom0 fonctionne:
+
-[source,bash]
+[source,shell]
....
# xm list
Name ID Mem VCPUs State Time(s)
@@ -248,14 +248,14 @@ Le fichier [.filename]#mdroot-7.0.bz2# doit être décompressé.
Ensuite, la section __xen_guest du fichier [.filename]#kernel-current# doit être modifiée pour y ajouter le paramètre VIRT_BASE dont a besoin Xen(TM) 3.0.3:
-[source,bash]
+[source,shell]
....
# objcopy kernel-current -R __xen_guest
# perl -e 'print "LOADER=generic,GUEST_OS=freebsd,GUEST_VER=7.0,XEN_VER=xen-3.0,BSD_SYMTAB,VIRT_BASE=0xC0000000\x00"' > tmp
# objcopy kernel-current --add-section __xen_guest=tmp
....
-[source,bash]
+[source,shell]
....
# objdump -j __xen_guest -s kernel-current
@@ -272,7 +272,7 @@ Contents of section __xen_guest:
Nous sommes maintenant prêt à créer et lancer notre domU:
-[source,bash]
+[source,shell]
....
# xm create /etc/xen/xmexample1.bsd -c
Using config file "/etc/xen/xmexample1.bsd".
@@ -338,7 +338,7 @@ login:
Le domaine domU devrait exécuter le noyau FreeBSD 7.0-CURRENT:
-[source,bash]
+[source,shell]
....
# uname -a
FreeBSD demo.freebsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #113: Wed Jan 4 06:25:43 UTC 2006
@@ -347,7 +347,7 @@ kmacy@freebsd7.gateway.2wire.net:/usr/home/kmacy/p4/freebsd7_xen3/src/sys/i386-x
Le réseau peut maintenant être configuré sur le domaine domU. Le domaine domU FreeBSD utilisera une interface spécifique appelée [.filename]#xn0#:
-[source,bash]
+[source,shell]
....
# ifconfig xn0 10.10.10.200 netmask 255.0.0.0
# ifconfig
@@ -362,7 +362,7 @@ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
Sur le domaine dom0 Slackware, des interfaces réseaux relatives à Xen(TM) devraient apparaître:
-[source,bash]
+[source,shell]
....
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:E9:A0:02:C2
@@ -411,7 +411,7 @@ xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
RX bytes:112 (112.0 b) TX bytes:0 (0.0 b)
....
-[source,bash]
+[source,shell]
....
# brctl show
bridge name bridge id STP enabled interfaces
diff --git a/documentation/content/fr/books/handbook/x11/_index.adoc b/documentation/content/fr/books/handbook/x11/_index.adoc
index 906a3ddf78..dc9e3e746f 100644
--- a/documentation/content/fr/books/handbook/x11/_index.adoc
+++ b/documentation/content/fr/books/handbook/x11/_index.adoc
@@ -106,14 +106,14 @@ Sous FreeBSD, Xorg peut être installé à l'aide soit d'un paquet précompilé
Le paquet pré-compilé peut être installé rapidement mais avec moins d'options de personnalisation:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
Pour compiler et installer à partir du catalogue des logiciels portés:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -140,7 +140,7 @@ Les cartes graphiques, moniteurs et périphériques d'entrée sont détectés au
[.procedure]
. Si Xorg a déjà été utilisé sur cet ordinateur avant, déplacez ou supprimez les fichiers existants:
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -148,14 +148,14 @@ Les cartes graphiques, moniteurs et périphériques d'entrée sont détectés au
. Ajouter au groupe `video` ou `wheel` l'utilisateur qui exécutera Xorg pour activer l'accélération 3D quand elle est disponible. Pour ajouter l'utilisateur _jru_ aux groupes disponibles:
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
. Le gestionnaire de fenêtres twm est inclu par défaut. Il est lancé quand Xorg démarre:
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -167,7 +167,7 @@ Les cartes graphiques, moniteurs et périphériques d'entrée sont détectés au
L'accès à [.filename]#/dev/dri# est nécessaire pour autoriser l'accélération 3D sur les cartes graphiques. Il est en général plus simple d'ajouter l'utilisateur qui exécutera X soit au groupe `video` soit au groupe `wheel`. Ici, man:pw[8] est utilisé pour ajouter l'utilisateur _slurms_ au groupe `video`, ou au groupe `wheel` s'il n'y a pas de groupe `video`:
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -352,7 +352,7 @@ Les autres définitions supportées par le moniteur peuvent être sélectionnée
Utilisation de man:xrandr[1]::
Exécutez man:xrandr[1] sans aucun paramètre pour voir la liste des sorties vidéos et des modes détectés du moniteur:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -375,7 +375,7 @@ Ceci montre que la sortie `DVI-0` est utilisée actuellement pour afficher une d
+
N'importe quel autre mode d'affichage peut être choisi avec man:xrandr[1]. Par exemple, pour basculer sur 1280x1024 à 60 Hz:
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -384,7 +384,7 @@ Une opération courante est d'utiliser une sortie vidéo externe sur un ordinate
+
Le type et le nombre de connecteurs de sortie varient en fonction des systèmes, et le nom donné à chaque sortie varie d'un pilote graphique à l'autre. Ce qu'un pilote appelle `HDMI-1`, un autre l'appellera `HDMI1`. Aussi la première chose à faire est de lancer man:xrandr[1] pour lister toutes les sorties disponibles.
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -410,7 +410,7 @@ Quatre sorties ont été trouvées: l'écran intégré `LVDS1`, et les connecteu
+
Le projecteur a été connecté à la sortie `VGA1`. man:xrandr[1] est maintenant utilisé pour régler cette sortie sur la définition native de ce vidéo-projecteur et pour ajouter l'espace d'affichage supplémentaire à droite du bureau:
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -568,14 +568,14 @@ Un fichier de configuration basé sur le matériel détecté peut être génér
Génération d'un fichier [.filename]#xorg.conf#:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
Le fichier de configuration est enregistré sous [.filename]#/root/xorg.conf.new#. Effectuez les modifications désirées, puis tester ce fichier (avec l'option `-retro` de manière à avoir un fond d'écran visible) avec:
-[source,bash]
+[source,shell]
....
# Xorg -retro -config /root/xorg.conf.new
....
@@ -592,14 +592,14 @@ Les polices de caractères livrées par défaut avec Xorg sont loin d'être idé
Pour installer les collections de polices de caractères Type1 précédentes à partir des paquets binaires, lancez les commandes suivantes:
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
Pour les compiler à partir du catalogue des logiciels portés, lancez les commandes suivantes:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -614,7 +614,7 @@ FontPath "/usr/local/share/fonts/URW/"
Autre possibilité, en ligne de commande dans une session X lancez:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/share/fonts/urwfonts
% xset fp rehash
@@ -634,14 +634,14 @@ Load "freetype"
Maintenant créez un répertoire pour les polices TrueType(R) (par exemple [.filename]#/usr/local/share/fonts/TrueType#) et copiez toutes les polices TrueType(R) dans ce répertoire. Gardez à l'esprit que les polices TrueType(R) ne peuvent être directement prises d'un Apple(R) Mac(R); elles doivent être dans un format UNIX(R)/MS-DOS(R)/Windows(R) pour être utilisées sous Xorg. Une fois les fichiers copiés dans ce répertoire, utilisez mkfontscale pour créer un fichier [.filename]#fonts.dir#, de façon à ce que le moteur d'affichage des polices d'X sache que de nouveaux fichiers ont été installés. mkfontscale peut être installé à partir d'un paquet binaire:
-[source,bash]
+[source,shell]
....
# pkg install mkfontscale
....
Puis créez un index des polices de caractères pour X dans le répertoire:
-[source,bash]
+[source,shell]
....
# cd /usr/local/share/fonts/TrueType
# mkfontscale
@@ -649,7 +649,7 @@ Puis créez un index des polices de caractères pour X dans le répertoire:
Maintenant ajoutez le répertoire des polices TrueType(R) au chemin des polices de caractères. Cela est identique à ce qui est décrit dans la section <<type1>>:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/share/fonts/TrueType
% xset fp rehash
@@ -684,7 +684,7 @@ dir/chemin/vers/mes/fontes/dir
Après l'ajout de nouvelles polices, et tout particulièrement de nouveaux répertoires de polices, vous devrez exécuter la commande suivante pour reconstituer le cache des polices de caractères:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -795,7 +795,7 @@ Cette section montre comment configurer le gestionnaire de connexion graphique X
Pour installer XDM, utilisez le logiciel porté ou la version pré-compilée package:x11/xdm[]. Une fois installé, XDM peut être configuré pour être lancé au démarrage de la machine en modifiant la ligne suivante dans [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -842,7 +842,7 @@ Par défaut, seuls les utilisateurs sur le même système peuvent ouvrir une ses
Pour configurer XDM pour l'écoute des demandes de connexions distantes, commentez la ligne `DisplayManager.requestPort` dans le fichier [.filename]#/usr/local/etc/X11/xdm/xdm-config# en ajoutant un `!` devant:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -863,14 +863,14 @@ GNOME est un environnement de bureau convivial. Il comprend un panneau ("panel")
Cet environnement de bureau peut être installé à partir d'un paquet pré-compilé:
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
Pour plutôt compiler GNOME à partir du catalogue des logiciels portés, utilisez la commande qui suit. GNOME est une application importante en taille et qui demandera un temps notable pour être compilée, et cela, même sur un ordinateur rapide.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -909,14 +909,14 @@ GDM sera lancé automatiquement au démarrage du système.
Une deuxième méthode de lancement de GNOME est de taper `startx` à partir de la ligne de commande après avoir configuré le fichier [.filename]#~/.xinitrc#. Si ce fichier existe déjà, remplacez la ligne qui lance le gestionnaire de fenêtres actuel par une qui exécute [.filename]#/usr/local/bin/gnome-session#. Si ce fichier n'existe pas, créez-le avec la commande:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
Une troisième méthode est d'utiliser XDM comme gestionnaire d'affichage. Dans ce cas, créez un exécutable [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -928,14 +928,14 @@ KDE est un autre environnement de bureau simple d'utilisation. Ce bureau propose
Pour installer la version pré-compilée de KDE, tapez:
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
Pour plutôt compiler KDE à partir du catalogue des logiciels portés, utilisez la commande qui suit. L'installation du logiciel porté proposera un menu pour sélectionner quel composant à installer. KDE est une application importante en taille et qui demandera un temps notable pour être compilée, et cela, même sur un ordinateur rapide.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -958,7 +958,7 @@ hald_enable="YES"
Depuis KDE Plasma 5, le gestionnaire d'affichage KDE, KDM, n'est plus développé. Un remplacement possible est SDDM. Pour l'installer, tapez:
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -979,7 +979,7 @@ exec ck-launch-session startplasma-x11
Une troisième méthode de lancement de KDE Plasma utilise XDM. Dans ce cas, créez un exécutable [.filename]#~/.xsession# comme indiqué:
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startplasma-x11" > ~/.xsession
....
@@ -993,14 +993,14 @@ XFce est un environnement de bureau basé sur le "toolkit" GTK+ utilisé par GNO
Pour installer le paquet pré-compilé de Xfce:
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
Alternativement, pour compiler le logiciel porté:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1015,14 +1015,14 @@ dbus_enable="YES"
Contrairement à GNOME ou KDE, Xfce ne fournit pas son propre gestionnaire de session. Afin de lancer Xfce à partir de la ligne de commande en tapant `startx`, créez d'abord le fichier [.filename]#~/.xinitrc# à l'aide de la ligne:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
Une méthode alternative est d'utiliser XDM. Pour configurer cette méthode, créez un exécutable [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1045,7 +1045,7 @@ Après avoir déterminé le pilote correct à utiliser pour votre carte, l'insta
Par exemple, pour installer la dernière version du pilote:
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1146,7 +1146,7 @@ Section "Module"
Ce qui précède peut être effectué automatiquement avec package:x11/nvidia-xconfig[] en exécutant (en tant que `root`):
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1158,14 +1158,14 @@ Ce qui précède peut être effectué automatiquement avec package:x11/nvidia-xc
L'installation de Compiz Fusion est aussi simple que celle de n'importe quel paquet binaire:
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
Quand l'installation est achevée, lancez votre environnement de bureau et, à un terminal, entrez les commandes suivantes (sous l'utilisateur normal):
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp
% emerald --replace
@@ -1184,7 +1184,7 @@ emerald --replace
Sauvegardez ce fichier dans votre répertoire personnel sous le nom, par exemple, [.filename]#start-compiz# et rendez-le exécutable:
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1193,7 +1193,7 @@ Utilisez ensuite l'interface graphique pour l'ajouter au menu [.guimenuitem]#Sta
Pour sélectionner tous les effets visuels désirés et leurs paramètres, exécutez (toujours en tant qu'utilisateur normal) le programme Compiz Config Settings Manager:
-[source,bash]
+[source,shell]
....
% ccsm
....
diff --git a/documentation/content/hu/articles/cups/_index.adoc b/documentation/content/hu/articles/cups/_index.adoc
index 0a4a3e76f6..9a37f2eca2 100644
--- a/documentation/content/hu/articles/cups/_index.adoc
+++ b/documentation/content/hu/articles/cups/_index.adoc
@@ -46,14 +46,14 @@ A CUPS hivatalos oldala a http://www.cups.org/[http://www.cups.org/] címen érh
A CUPS telepíthetõ portként vagy csomagként. Ha portként szeretnénk telepíteni, akkor ahhoz a következõ parancsot kell kiadnunk rendszergazdaként:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/cups && make install clean
....
A CUPS csomagjának telepítését pedig ezzel a paranccsal tudjuk (szintén rendszergazdaként) elvégezni:
-[source,bash]
+[source,shell]
....
# pkg_add -r cups
....
@@ -98,7 +98,7 @@ application/octet-stream
Miután végrehajtottuk ezeket a módosításokat, az alábbi parancsok használatával vagy az operációs rendszerrel együtt indítsuk újra a man:devfs[8] és CUPS szolgáltatásokat:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
# /usr/local/etc/rc.d/cupsd restart
diff --git a/documentation/content/hu/articles/gjournal-desktop/_index.adoc b/documentation/content/hu/articles/gjournal-desktop/_index.adoc
index da69826cdf..2f116389a0 100644
--- a/documentation/content/hu/articles/gjournal-desktop/_index.adoc
+++ b/documentation/content/hu/articles/gjournal-desktop/_index.adoc
@@ -165,28 +165,28 @@ Ahogy a rendszer újra elindul, készen is állunk a naplózás beállítására
A naplózást nagyon könnyû lesz beállítani miután már elõkészítettük az ehhez szükséges partíciókat. Váltsunk át egyfelhasználós módba, tehát jelentkezzünk be `root` felhasználóként és gépeljük be:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Ezután az kbd:[Enter] billentyû lenyomásával megkapjuk az alapértelmezett parancsértelmezõt. Válasszuk le azokat a partíciókat, amelyeken engedélyezni kívánjuk a naplózást. Ezek a példánkban a [.filename]#/usr# és [.filename]#/var# partíciók voltak:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Töltsük be a naplózáshoz szükséges modult:
-[source,bash]
+[source,shell]
....
# gjournal load
....
Most pedig a korábbi feljegyzéseink alapján állapítsuk meg melyik naplóhoz melyik partíciót fogjuk rendelni. A példánkban a [.filename]#/usr# csatlakozási ponthoz az [.filename]#ad0s1f# eszköz tartozik, és ennek a naplója az [.filename]#ad0s1g# eszköz lesz, miközben a [.filename]#/var# ponthoz az [.filename]#ad0s1d# eszközt rendeltük, és ezt az [.filename]#ad0s1h# eszközön naplózzuk. Ennek megfelelõen a következõ parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
# gjournal label ad0s1f ad0s1g
GEOM_JOURNAL: Journal 2948326772: ad0s1f contains data.
@@ -201,7 +201,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
====
A `gjournal` hibát fog jelezni, ha bármelyik partíció utolsó szektora már használatban van. Ilyen helyzetekben az `-F` kapcsoló segítségével felülírásra tudjuk kényszeríteni a parancsot, mint például:
-[source,bash]
+[source,shell]
....
# gjournal label -f ad0s1d ad0s1h
....
@@ -211,7 +211,7 @@ Mivel most telepítettük a rendszerünket, elég kicsi a valószínûsége, hog
Létrejött két új eszköz, név szerint az [.filename]#ad0s1d.journal# és az [.filename]#ad0s1f.journal#. Ezek képviselik azokat a [.filename]#/var# és [.filename]#/usr# partíciókat, amelyeket valójában csatlakoztatnunk kell. A csatlakoztatásuk elõtt azonban állítsuk be hozzájuk a naplózást és tiltsuk le a Soft Updates használatát:
-[source,bash]
+[source,shell]
....
# tunefs -J enable -n disable ad0s1d.journal
tunefs: gjournal set
@@ -224,7 +224,7 @@ tunefs: soft updates cleared
Ezt követõen parancssorból csatlakoztassuk az új eszközöket a nekik megfelelõ pontokra (itt most már használhatjuk az `async` beállítást):
-[source,bash]
+[source,shell]
....
# mount -o async /dev/ad0s1d.journal /var
# mount -o async /dev/ad0s1f.journal /usr
@@ -252,7 +252,7 @@ geom_journal_load="YES"
Gratulálunk, sikeresen beállítottuk a rendszerünkön a naplózást! Innen vagy az `exit` begépelésével lépjünk vissza a többfelhasználós módba, vagy egy újraindítással próbáljuk ki a konfiguráció eredményét (mi ezt javasoljuk). A rendszerindítás során a következõhöz hasonló üzeneteket kell majd látnunk:
-[source,bash]
+[source,shell]
....
ad0: 76293MB XEC XE800JD-00HBC0 08.02D08 at ata0-master SATA150
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -265,7 +265,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Szabálytalan leállások esetén az iménti üzenetek némileg változhatnak, például:
-[source,bash]
+[source,shell]
....
GEOM_JOURNAL: Journal ad0s1d consistent.
....
@@ -277,7 +277,7 @@ Ez általában arra utal, hogy a man:gjournal[8] a naplóterületen tárolt info
Míg az elõbbiekben tárgyalt megoldást leginkább olyan partíciók esetén alkalmazhatjuk, amelyek már eleve tartalmaznak adatokat, addig egy újonnan létrehozott partíciót némileg könnyebb naplózással ellátni, mivel ilyenkor az adat- és a naplóterület egyazon partíción is kialakítható. Például most tegyük fel, hogy hozzáadtunk egy újabb lemezt a rendszerünkhöz, amelyen készítettünk egy új [.filename]#/dev/ad1s1d# nevû partíciót. A napló létrehozása ekkor csupán ennyi:
-[source,bash]
+[source,shell]
....
# gjournal label ad1s1d
....
@@ -286,14 +286,14 @@ A napló mérete alapértelmezés szerint 1 GB lesz, amelyet viszont a `-s` opci
Például egy 2 GB méretû napló az alábbi paranccsal hozható létre:
-[source,bash]
+[source,shell]
....
# gjournal label -s 2G ad1s1d
....
Mellé hozzunk létre egy állományrendszert az új partíción, ahol a `-J` kapcsolóval engedélyezzük a naplózást:
-[source,bash]
+[source,shell]
....
# newfs -J /dev/ad1s1d.journal
....
@@ -326,14 +326,14 @@ A napló ilyenkor valószínûleg gyorsabban betelik, mint ahogy kiíródhatna a
Ilyenkor vagy elfelejtettük (vagy netalán elírtuk) a [.filename]#/boot/loader.conf# állományban szükséges bejegyzést, vagy az [.filename]#/etc/fstab# állományunk hibákat tartalmaz. Az ilyen jellegû problémákat viszonylag könnyû helyrehozni. Az kbd:[Enter] billentyû lenyomásával hozzuk elõ az egyfelhasználós módhoz tartozó parancsértelmezõt. Ha ez sikerült, akkor kutassuk fel a probléma okát:
-[source,bash]
+[source,shell]
....
# cat /boot/loader.conf
....
Ha innen hiányzik vagy nem helyesen szerepel a `geom_journal_load` bejegyzés, akkor a naplózás használatához szükséges eszközök nem fognak létrejönni. Töltsük be a modult manuálisan, csatlakoztassuk az összes partíciót és folytassuk a többfelhasználós mód indítását:
-[source,bash]
+[source,shell]
....
# gjournal load
@@ -357,28 +357,28 @@ Hogyne. A most következõ módszer segítségével megfordítható az egész fo
Jelentkezzük be `root` felhasználóként és váltsunk egyfelhasználós módba:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Válasszuk le a naplózást alkalmazó partíciókat:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Írassuk ki lemezre a naplók tartalmát:
-[source,bash]
+[source,shell]
....
# gjournal sync
....
Állítsuk le a naplózóterületek használatát:
-[source,bash]
+[source,shell]
....
# gjournal stop ad0s1d.journal
# gjournal stop ad0s1f.journal
@@ -386,7 +386,7 @@ Válasszuk le a naplózást alkalmazó partíciókat:
Töröljük le az eszközökön tárolt összes naplózási metainformációt:
-[source,bash]
+[source,shell]
....
# gjournal clear ad0s1d
# gjournal clear ad0s1f
@@ -396,7 +396,7 @@ Töröljük le az eszközökön tárolt összes naplózási metainformációt:
Tiltsuk le az állományrendszer naplózását és állítsuk vissza a Soft Updates használatát:
-[source,bash]
+[source,shell]
....
# tunefs -J disable -n enable ad0s1d
tunefs: gjournal cleared
@@ -409,7 +409,7 @@ tunefs: soft updates set
Manuálisan csatlakoztassuk újra a régi eszközöket:
-[source,bash]
+[source,shell]
....
# mount -o rw /dev/ad0s1d /var
# mount -o rw /dev/ad0s1f /usr
diff --git a/documentation/content/hu/articles/linux-users/_index.adoc b/documentation/content/hu/articles/linux-users/_index.adoc
index a9b1527966..6833f37223 100644
--- a/documentation/content/hu/articles/linux-users/_index.adoc
+++ b/documentation/content/hu/articles/linux-users/_index.adoc
@@ -58,14 +58,14 @@ A szoftverek telepítésének hagyományos UNIX(R)-os megoldásain (a forrás le
A csomagok lényegében elõre lefordított alkalmazások, amelyek megfelelnek a Debian/Ubuntu rendszerekben megtalálható [.filename]#.deb#, vagy a Red Hat/Fedora rendszerekben megtalálható [.filename]#.rpm# állományoknak. A csomagok a man:pkg_add[1] segítségével telepíthetõek. Például az alábbi parancs az Apache 2.2 alkalmazást rakja fel:
-[source,bash]
+[source,shell]
....
# pkg_add /tmp/apache-2.2.6_2.tbz
....
Az `-r` kapcsolóval arra utasítjuk a man:pkg[add] programot, hogy magától töltse le és telepítse a csomagot, valamint annak függõségeit:
-[source,bash]
+[source,shell]
....
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/apache22.tbz... Done.
@@ -95,7 +95,7 @@ A Portgyûjtemény, vagy gyakran egyszerûen csak a "portfa", a [.filename]#/usr
A telepítéshez (általában) csak be kell lépnünk az adott port könyvtárába és el kell indítanunk a fordítást. A következõ példában az Apache 2.2 alkalmazást telepítjük a Portgyûjteménybõl:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make install clean
@@ -103,7 +103,7 @@ A telepítéshez (általában) csak be kell lépnünk az adott port könyvtárá
A portok alkalmazásának egyik legnagyobb elõnye, hogy a szoftverek telepítése során testre tudjuk szabni azok beállításait. Például amikor az Apache 2.2 alkalmazást portként telepítjük, a `WITH_LDAP` man:make[1] változó megadásával engedélyezhetjük a mod_ldap használatát:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make WITH_LDAP="YES" install clean
@@ -153,14 +153,14 @@ apache22_flags="-DSSL"
Miután az [.filename]#/etc/rc.conf# állományban engedélyeztük a szolgáltatásokat, a parancssorból el is tudjuk indítani ezeket (a rendszer újraindítása nélkül):
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd start
....
Ha egy szolgáltatást nem engedélyeztünk, akkor a parancssorból a `forcestart` paraméter megadásával tudjuk elindítani:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd forcestart
....
@@ -173,7 +173,7 @@ Ha egy szolgáltatást nem engedélyeztünk, akkor a parancssorból a `forcestar
A hálózati csatolófelületekre a Linux esetén alkalmazott általános _ethX_ alakú azonosítók helyett a FreeBSD az adott hálózati kártya meghajtójának nevével és utána egy sorszámmal hivatkozik. Az man:ifconfig[8] itt látható kimenetében két Intel(R) Pro 1000 hálózati kártya jelenik meg (em0 és em1):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -275,7 +275,7 @@ A Linux(R) alatt a [.filename]#/proc/sys/net/ipv4/ip_forward# használatával tu
Ha az IP-csomagok továbbításáról szóló példánál maradunk, akkor az alábbi módon kérdezhetjük le, hogy engedélyezett-e a FreeBSD rendszerünkön:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -283,7 +283,7 @@ net.inet.ip.forwarding: 0
Az `-a` paraméter megadásával a rendszer összes jelenlegi beállítását le tudjuk kérdezni:
-[source,bash]
+[source,shell]
....
% sysctl -a
kern.ostype: FreeBSD
@@ -311,7 +311,7 @@ Bizonyos `sysctl`-értékek írásvédettek.
Adódhatnak olyan alkalmak, amikor mégis szükségünk lehet a procfs használatára, mint például régi szoftverek futtatása, a rendszerhívások nyomkövetése a man:truss[1] segítségével, vagy a link:{handbook}#linuxemu[bináris Linux kompatibilitás] használata. (Noha a bináris Linux kompatibilitás egy saját procfs állományrendszert, egy man:linprocfs[5] rendszert használ.) A procfs típusú állományrendszerek csatlakoztatásához a következõt kell megadnunk az [.filename]#/etc/fstab# állományban:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -323,7 +323,7 @@ A `noauto` beállítás megadásával megakadályozzuk, hogy a [.filename]#/proc
A procfs típusú állományrendszereket így lehet csatlakoztatni:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/hu/books/faq/_index.adoc b/documentation/content/hu/books/faq/_index.adoc
index 1863841cf4..3a61b2f468 100644
--- a/documentation/content/hu/books/faq/_index.adoc
+++ b/documentation/content/hu/books/faq/_index.adoc
@@ -350,7 +350,7 @@ Miután kiválasztottuk a számunkra megfelelõ letöltendõ formátumot és tö
Például, ha a GYIK fejezetekre darabolt, man:bzip2[1] segítségével tömörített változata a [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2# állományban található meg. A letöltéséhez és kibontásához a következõket kell tennünk:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# bzip2 -d book.html-split.tar.bz2
@@ -449,7 +449,7 @@ A FreeBSD-hez tartozó boot managert háromféleképpen tudjuk újratelepíteni:
* Indítsuk el a DOS-t, lépjünk be a FreeBSD terjesztéshez tartozó [.filename]#tools# könyvtárba és keressük meg a [.filename]#bootinst.exe# nevû állományt. Indítsuk el a következõ módon:
+
-[source,bash]
+[source,shell]
....
...\TOOLS> bootinst.exe boot.bin
....
@@ -458,7 +458,7 @@ Ekkor a boot manager visszakerül a helyére.
* Használjuk a FreeBSD-hez létrehozott rendszerindító lemezeket, és a telepítõben válasszuk a [.guimenuitem]#Custom# (Egyéni telepítés) menüpontot, majd azon belül válasszuk a [.guimenuitem]#Partition# (Partíció) pontot. Itt válasszuk ki azt a meghajtót, ahol korábban a boot managerünk volt (ez valószínûleg a felsorolásban az elsõ lesz) és amikor belépünk a partíciószerkesztõbe, akkor egybõl válasszuk a `Write` (kbd:[W]) opciót (tehát ne változtassunk semmit). Ez megerõsítést fog kérni, amire válasszuk a btn:[yes] gombot, és amikor a boot manager kiválasztása rész jelenik meg, válasszuk a FreeBSD Boot Manager pontot. Ezzel a boot manager újra a lemezre íródik. Miután ezzel végeztünk, lépjünk ki a telepítõbõl és indítsuk újra a rendszerünket a megszokott módon.
* Indítsuk a rendszerünket a FreeBSD rendszerindító lemezérõl (vagy CD-jérõl), majd válasszuk a telepítõben a [.guimenuitem]#Fixit# (Javítás) menüpontot. Ezután válasszuk a javítófloppy vagy a(z "élõ" állományrendszerrel rendelkezõ) 2. CD használatát, majd lépjünk be a javításhoz elindított parancsértelmezõbe. Ezt követõen adjuk ki az alábbi parancsot:
+
-[source,bash]
+[source,shell]
....
Fixit# fdisk -B -b /boot/boot0 eszköz
....
@@ -516,7 +516,7 @@ Ezt követõen az alábbi utasításokat követve tudjuk telepíteni a FreeBSD-t
. Másoljuk át az imént letöltött [.filename]#boot1# és [.filename]#boot2# állományokat a helyi állományrendszerre.
. A man:disklabel[8] segítségével rögzítsük a [.filename]#boot1# és [.filename]#boot2# tartalmát a FreeBSD slice-unkra.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -b boot1 -s boot2 ad0sn
....
@@ -687,21 +687,21 @@ A rendszerindítás második fokozatában közvetlenül meg tudjuk adni a betöl
Próbáljuk meg letiltani az ACPI támogatást. Ezt úgy tudjuk megtenni, hogy amikor a rendszertöltõ elindul, lenyomjuk a kbd:[Szóköz] billentyût. Ekkor a következõt kapjuk:
-[source,bash]
+[source,shell]
....
OK
....
Itt gépeljük be az alábbi parancsot:
-[source,bash]
+[source,shell]
....
unset acpi_load
....
Majd ezt:
-[source,bash]
+[source,shell]
....
boot
....
@@ -825,14 +825,14 @@ A FreeBSD alapból ismeri az USB billentyûzeket. Miután engedélyeztük rendsz
Ha az USB billentyûzetet konzolban akarjuk használni, akkor erre figyelmeztetnünk kell a konzolos meghajtót. Ezt úgy tudjuk megtenni, ha a következõ parancsot lefuttatjuk a rendszer indítása közben:
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/kbd1 < /dev/console > /dev/null
....
Amikor viszont csak USB billentyûzetünk van, akkor az [.filename]#/dev/ukbd0# eszközön keresztül tudjuk elérni, ezért a parancsnak ilyenkor így kell kinéznie:
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/ukbd0 < /dev/console > /dev/null
....
@@ -846,14 +846,14 @@ Miután ezt megcsináltuk, az USB billentyûzet X alatt is mûködni fog minden
Ezzel a paranccsal tudunk visszaváltani az alapértelmezett billentyûzetre:
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/kbd0 > /dev/null
....
A man:kbdmux[4] meghajtón keresztül az alábbi parancsok kiadásával engedélyezhetjük az elsõdleges AT billentyûzet és a másodlagos USB billentyûzet párhuzamos használatát a konzolon:
-[source,bash]
+[source,shell]
....
# kbdcontrol -K < /dev/console > /dev/null
# kbdcontrol -a atkbd0 < /dev/kbdmux0 > /dev/null
@@ -897,7 +897,7 @@ Miután a rendszermag a rendszer indítása során helyesen észlelte a [.filena
Ha az alapértelmezett konzolos man:syscons[4] meghajtót használjuk, akkor a szöveges felületû konzolokon az egérmutató segítségével tudunk szövegrészeket kijelölni és másolni. Ehhez nem kell mást tennünk, csupán elindítani a man:moused[8] egérdémont és engedélyezni az egérmutatót a virtuális konzolokon:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -992,7 +992,7 @@ Ez azonban csak a hangra vonatkozik! Ez a meghajtó a SoundBlaster(R) kivételé
Egyes hangkártyák esetében a hangerõ minden indításkor nullára állítódik. Ezért ilyenkor mindig ki kell adni a következõ parancsot:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -1010,7 +1010,7 @@ A FreeBSD ezenkívül még a legújabb hardverekben megtalálható ACPI lehetõs
Tegyük bele az alábbi sort az [.filename]#/boot/device.hints# állományba:
-[source,bash]
+[source,shell]
....
hint.acpi.0.disabled="1"
....
@@ -1051,7 +1051,7 @@ A SCSI-meghajtók esetében a meghajtó általában képes önmagától átképe
A hibás szektorok átképezéséhez az eszköz elsõ lapmódját kell átírnunk, amelyet (`root` felhasználóként) így tehetünk meg:
-[source,bash]
+[source,shell]
....
# camcontrol modepage sd0 -m 1 -e -P 3
....
@@ -1197,7 +1197,7 @@ Az elavult [.filename]#/var/db/kvm_*.db# állományokat összegyûjtõ rutin id
Amikor ilyen történik, indítsuk újra a rendszert egyfelhasználós módban és gépeljük be:
-[source,bash]
+[source,shell]
....
# rm /var/db/kvm_*.db
....
@@ -1242,7 +1242,7 @@ A 4.0 esetében azonban az ISA eszközöket kezelõ kód már sokkal inkább a P
Tehát egy ilyen eszköz mûködtetéséhez szükségünk lesz a PnP azonosítójára, valamint arra, hogy felvegyük a felderítendõ PnP eszközök ISA eszközök közé. Ezt a man:pnpinfo[8] segítségével kérhetjük le, amely például egy belsõ modem esetén a következõ kimenetet fogja adni:
-[source,bash]
+[source,shell]
....
# pnpinfo
Checking for Plug-n-Play devices...
@@ -1262,7 +1262,7 @@ TAG Start DF
[a többi részt kihagytuk]
-[source,bash]
+[source,shell]
....
TAG End DF
End Tag
@@ -1283,7 +1283,7 @@ Innen a `Vendor ID` kezdetû sorra lesz szükségünk. A zárójelek között sz
Ha a man:pnpinfo[8] lefuttatásának eredményeképpen megjelenõ lista nem tartalmazza a kérdéses eszközt, akkor helyette a man:pciconf[8] használatával is próbálkozhatunk. Íme a `pciconf -vl` parancs kimenete egy integrált hangkártya esetében:
-[source,bash]
+[source,shell]
....
# pciconf -vl
chip1@pci0:31:5: class=0x040100 card=0x00931028 chip=0x24158086 rev=0x02 hdr=0x00
@@ -1356,7 +1356,7 @@ Ha ilyen hibaüzenetet látunk, akkor az arra utal, hogy kifogytunk a rendszerü
Ismert egy olyan probléma, hogy a BIOS-ban engedélyezzük az Intel(R) Enhanced SpeedStep technológiáját, akkor a rendszermag ehhez hasonló `calcru` üzeneteket kezd el küldözgetni:
-[source,bash]
+[source,shell]
....
calcru: runtime went backwards from 6 usec to 3 usec for pid 37 (pagezero)
calcru: runtime went backwards from 6 usec to 3 usec for pid 36 (vmdaemon)
@@ -1379,7 +1379,7 @@ A számítógépnek kettõ vagy több idõmérõ eszköze van, és a FreeBSD pon
Adjuk ki a man:dmesg[8] parancsot és vizsgáljuk meg a `Timecounter` kezdetû sorokat. Ezek közül a FreeBSD a legnagyobb "quality" értékkel rendelkezõt választotta.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -1390,7 +1390,7 @@ Timecounters tick every 1.000 msec
Errõl a `kern.timecounter.hardware` man:sysctl[3] változó lekérdezésével tudunk ténylegesen megbizonyosodni:
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -1407,7 +1407,7 @@ Vagy a BIOS is tudja módosítani a TSC idõzítõt - például azért, hogy cs
Ahogy viszont az iménti példában is látható, itt még az `i8254` idõzítõ is használható, méghozzá úgy, hogy a `kern.timecounter.hardware` man:sysctl[8] változó értékét átállítjuk erre az értékre:
-[source,bash]
+[source,shell]
....
# sysctl -w kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -1626,7 +1626,7 @@ Ha úgy korábban úgy frissítettük a CVSup használatával a Portgyûjtemény
Ha MIDI állományokból akarunk audio CD-t készíteni, akkor elõször telepítsük fel a Portgyûjteménybõl a package:audio/timidity[] portot, majd kézzel tegyük hozzá Eric A. Welsh GUS patch-eit, melyek a http://alleg.sourceforge.net/digmid.html[http://alleg.sourceforge.net/digmid.html] címrõl tölthetõek le. Miután a TiMidity++ sikeresen felkerült a rendszerünkre, a MIDI állományokat a következõ paranccsal tudjuk átkonvertálni WAV állományokra:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -1694,7 +1694,7 @@ Ennek több oka is lehet. Ezek közül néhány, de nem feltétlenül ebben a so
Nézzük meg, hogy a rendszerünkben elérhetõ-e a `kern.sched.quantum` változó. Ha van ilyenünk, akkor valami ilyesmit kell tapasztalnunk:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.quantum
kern.sched.quantum: 99960
@@ -1702,7 +1702,7 @@ kern.sched.quantum: 99960
Ha létezik a `kern.sched.quantum` nevû sysctl változó, akkor a 4BSD ütemezõ fut (lásd man:sched_4bsd[4]). Ha nem, akkor egy ilyen hibát kapunk a man:sysctl[8] parancstól (ezt nyugodtan figyelmen kívül hagyhatjuk):
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.quantum
sysctl: unknown oid 'kern.sched.quantum'
@@ -1710,7 +1710,7 @@ sysctl: unknown oid 'kern.sched.quantum'
Az aktuálisan használt ütemezõ neve közvetlenül elérhetõ a `kern.sched.name` sysctl változó lekérdezésén keresztül:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: 4BSD
@@ -1746,7 +1746,7 @@ A rendszerindító állományrendszer átmozgatásához egyedül a man:dump[8]
Például, ha a [.filename]#/mnt# könyvtárba csatlakoztatott [.filename]#/dev/ad1s1a# eszközrõl akarjuk átvinni a jelenlegi gyökérpartíciónkat, akkor ezeket a parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# mount /dev/ad1s1a /mnt
@@ -1756,7 +1756,7 @@ Például, ha a [.filename]#/mnt# könyvtárba csatlakoztatott [.filename]#/dev/
További munkát igényel, ha a `dump` parancs segítségével a partícióinkat is át akarjuk szervezni. Például a [.filename]#/var# partíciót úgy tudjuk beleolvasztani a tövébe, ha létrehozunk egy olyan partíciót, amely mind a kettõ számára elegendõ nagy, majd a fentebb leírt módszerrel elõször átmozgatjuk a tövét, utána pedig átmozgatjuk az alpartíció tartalmát az elsõ mozgatás során létrejött egyik üres könyvtárba:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# mount /dev/ad1s1a /mnt
@@ -1768,7 +1768,7 @@ További munkát igényel, ha a `dump` parancs segítségével a partícióinkat
Egy könyvtárat, például [.filename]#/var# tartalmát pedig úgy tudunk leválasztani a tövérõl, vagyis átrakni egy korábban nem létezõ partícióra, ha elõször létrehozzuk mind a két partíciót, csatlakoztatjuk a leendõ alpartíciót az ideiglenes csatlakozási ponton belül a megfelelõ könyvtárba és mindkettõre átmozgatjuk a régi partíció teljes tartalmát:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# newfs /dev/ad1s1d
@@ -1801,14 +1801,14 @@ Miután sikerült egyeztetnünk a BIOS és a FreeBSD geometriai beállításait,
Ha a "veszélyesen dedikált" mód használatáról szeretnénk visszatérni a megszokottra, akkor két lehetõségünk van. Elõször is teljesen le kell nulláznunk az MBR-t, így biztosra vehetjük, hogy az ezután következõ telepítések során egy teljesen üres lemezt látunk. Ezt például így lehet megtenni:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda0 count=15
....
A másik módszer egy hivatalosan nem dokumentált DOS-os "lehetõség" használata:
-[source,bash]
+[source,shell]
....
C:\> fdisk /mbr
....
@@ -1835,7 +1835,7 @@ A gyökérpartíció hagyományosan az egyik legkisebb partíció. Ha viszont az
A hibajelenség:
-[source,bash]
+[source,shell]
....
# ccdconfig -C
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format
@@ -1847,7 +1847,7 @@ Ez általában olyankor történik, amikor olyan `c` partíciókat próbálunk m
A hibajelenség:
-[source,bash]
+[source,shell]
....
# disklabel ccd0
(itt valami gondot ír ki, ezért megpróbáljuk szerkeszteni a címkét)
@@ -1859,7 +1859,7 @@ use "disklabel -r" to install initial label
Ezt általában azért kapjuk, mert a man:ccd[4] által visszaadott lemezcímke valójában "nem létezik" a lemezen. Ezen úgy tudunk segíteni, ha explicit módon visszaírjuk, valahogy így:
-[source,bash]
+[source,shell]
....
# disklabel ccd0 > /tmp/lemezcimke.tmp
# disklabel -Rr ccd0 /tmp/lemezcimke.tmp
@@ -1895,7 +1895,7 @@ A FreeBSD hálózati állományrendszereket is támogat, többek közt az NFS-t
A logikai DOS partíciók az elsõdleges partíciók _után_ találhatóak. Például, ha van egy "E" betûjelû logikai partíciónk a második SCSI-meghajtónkon, akkor lennie kell egy "ötödik slice-nak" a [.filename]#/dev# könyvtárban, amelyet majd csatlakoztatni tudunk:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1958,7 +1958,7 @@ other=/dev/dab4
Bizonyos helyzetekben elõfordulhat, hogy a FreeBSD rendszertöltõjének át kell adnunk a meghajtó BIOS szerinti sorszámát, mert csak így tudjuk rendesen elindítani a második lemezrõl. Például, ha a FreeBSD szerint a SCSI-lemezünk a BIOS-ban az 1-es lemez, akkor ezt kell megadnunk a FreeBSD rendszertöltõjének:
-[source,bash]
+[source,shell]
....
Boot: 1:da(0,a)/boot/kernel/kernel
....
@@ -1998,14 +1998,14 @@ Legyen az akár egy Zip(R), EZ drive meghajtó (esetleg egy floppy, ha így akar
Ha tehát egy ZIP meghajtóról vagy floppylemezrõl beszélünk, amelyen egy DOS-os állományrendszer található, akkor azt parancssorból így érhetjük el, ha floppy:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/fd0c /floppy
....
vagy így, ha egy gyári beállításokkal rendelkezõ ZIP-lemez:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da2s4 /zip
....
@@ -2016,7 +2016,7 @@ A következõ példákban egy [.filename]#da2# eszközként, vagyis egy harmadik
Hacsak nem floppyval van dolgunk, illetve nem tervezzük másoknak is odaadni a cserélhetõ médiumot, akkor érdemes inkább BSD típusú állományrendszert telepíteni rá. Így támogatottak lesznek a hosszú állománynevek, és legalább egy kétszer gyorsabb és egy sokkal megbízhatóbb megoldást kapunk. Ehhez elõször is le kell szednünk a DOS-szintû partíciókat és állományrendszereket. Erre a célra egyaránt megfelel a man:fdisk[8] vagy a man:sysinstall[8], illetve kisebb lemezek esetén valószínûleg nem is lesz szükségünk több operációs rendszer támogatására, így aztán közvetlenül is törülhetjük ezeket:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda2 count=2
# disklabel -Brw da2 auto
@@ -2026,14 +2026,14 @@ A man:disklabel[8] vagy a man:sysinstall[8] használatával ezután létre tudun
Végezetül hozzunk létre egy új állományrendszert. Itt most ez egész ZIP-lemezen egyetlen partíció lesz:
-[source,bash]
+[source,shell]
....
# newfs /dev/rda2c
....
Csatlakoztassuk:
-[source,bash]
+[source,shell]
....
# mount /dev/da2c /zip
....
@@ -2082,7 +2082,7 @@ A normál felhasználók számára engedélyezni tudjuk az eszközök csatlakozt
. `root` felhasználóként állítsuk be a `vfs.usermount` sysctl változót az `1` értékre:
+
-[source,bash]
+[source,shell]
....
# sysctl -w vfs.usermount=1
....
@@ -2091,14 +2091,14 @@ A normál felhasználók számára engedélyezni tudjuk az eszközök csatlakozt
+
Például a felhasználóknak így tudjuk engedélyezni az elsõ floppymeghajtó használatát:
+
-[source,bash]
+[source,shell]
....
# chmod 666 /dev/fd0
....
+
Az `operator` csoportban levõ felhasználók pedig így fognak tudni CD-ket csatlakoztatni:
+
-[source,bash]
+[source,shell]
....
# chgrp operator /dev/acd0c
# chmod 640 /dev/acd0c
@@ -2129,7 +2129,7 @@ perm /dev/acd0 0660
Most már mindegyik felhasználó képes csatlakoztatni a [.filename]#/dev/fd0# eszközleírón keresztül elérhetõ lemezt a saját könyvtárába:
-[source,bash]
+[source,shell]
....
% mkdir ~/az-én-csatlakozási-pontom
% mount -t msdosfs /dev/fd0 ~/az-én-csatlakozási-pontom
@@ -2137,7 +2137,7 @@ Most már mindegyik felhasználó képes csatlakoztatni a [.filename]#/dev/fd0#
A `operator` csoport tagjai is képesek most már az [.filename]#/dev/acd0c# eszközleírón keresztül elérhetõ CD-ket csatlakoztatni a saját könyvtárukba:
-[source,bash]
+[source,shell]
....
% mkdir ~/az-én-csatlakozási-pontom
% mount -t cd9660 /dev/acd0c ~/az-én-csatlakozási-pontom
@@ -2145,7 +2145,7 @@ A `operator` csoport tagjai is képesek most már az [.filename]#/dev/acd0c# esz
Az eszközök leválasztása is hasonlóan egyszerû:
-[source,bash]
+[source,shell]
....
% umount ~/az-én-csatlakozási-pontom
....
@@ -2191,7 +2191,7 @@ Az ezzel kapcsolatos beállítások elsõsorban az [.filename]#/etc/defaults/rc.
Például, ha el akarjuk indítani a beépített névfeloldó szolgáltatást, a man:named[8] démont, akkor ennyit kell tennünk:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -2208,7 +2208,7 @@ Felhasználókat törölni a man:rmuser[8], vagy amennyiben szükséges, a man:p
Ilyen általában olyankor történik, amikor a rendszerszintû [.filename]#crontab# állományt módosítjuk ([.filename]#/etc/crontab#), majd a man:crontab[1] használatával megpróbáljuk telepíteni:
-[source,bash]
+[source,shell]
....
# crontab /etc/crontab
....
@@ -2217,7 +2217,7 @@ Ezt nem így kell megoldani. A rendszerszintû [.filename]#crontab# felépítés
Ha így csináltuk, akkor a [.filename]#crontab# nem lesz több, mint az [.filename]#/etc/crontab# hibás formátumú változata. Töröljük le:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -2335,7 +2335,7 @@ options SC_DISABLE_REBOOT
Mindezt a rendszermag újrafordítása és a újraindítása nélkül is le tudjuk tiltani, ha beállítjuk az alábbi man:sysctl[8]-változót:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -2356,7 +2356,7 @@ options PCVT_CTRL_ALT_DEL
Használjuk a következõ man:perl[1] parancsot:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' állományok
....
@@ -2365,7 +2365,7 @@ ahol az _állományok_ az átalakítandó állományok. A konverzió helyben tö
Erre a célra viszont ugyanígy megfelel a man:tr[1] parancs is:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-szöveges-állomány > unix-szöveges-állomány
....
@@ -2386,7 +2386,7 @@ Ezt a hibát az elosztott hitelesítést végzõ Kerberos rendszer adja. Maga a
A Kerberos úgy távolítható el a rendszerbõl, ha újratelepítjük a `base` terjesztés tartalmát. Ha CD-rõl telepítettük a rendszert, akkor csatlakoztassuk (most tegyük fel, hogy a [.filename]#/cdrom# könyvtárba) és futassuk a következõ parancsot:
-[source,bash]
+[source,shell]
....
# cd /cdrom/base
# ./install.sh
@@ -2414,7 +2414,7 @@ Váltsunk egyfelhasználós módba, majd vissza többfelhasználós módba.
Konzolon ez így oldható meg:
-[source,bash]
+[source,shell]
....
# shutdown now
(Megjegyzés: nincs -r vagy -h!)
@@ -2439,7 +2439,7 @@ Rövid válasz: A rendszerünk valószínûleg nullánál nagyobb biztonsági sz
A hosszabb válasz: A FreeBSD nem engedi megváltoztatni a rendszerszintû állományjelzõket nullától a nagyobb biztonsági szinteken. A jelenleg érvényben levõ biztonsági szintet a következõ paranccsal lehet lekérdezni:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -2452,7 +2452,7 @@ A rövid válasz: A rendszerünkben a biztonsági szintet (`securelevel`) minden
Egy hosszabb válasz: A FreeBSD nem engedi egy másodpercnél többel megváltoztatni az idõt, ha az aktuális biztonsági szint értéke egy felett van. Ezt a következõ parancs kiadásával tudjuk ellenõrizni:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -2532,7 +2532,7 @@ Az Xorg fejlesztõi azt ígérték, hogy gyorsabban fognak újabb verziókat kia
Amennyiben már egy meglévõ rendszerre szeretnénk telepíteni az X-et, úgy érdemes a package:x11/xorg[] metaportot választanunk, amely magától feltelepíti az összes szükséges komponenst, vagy egyszerûen telepítsük az Xorg alkalmazást csomagból:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -2579,7 +2579,7 @@ link sysmouse mouse
A link maga közvetlenül a man:devfs[5] újraindításával keletkezik. Ehhez (`root` felhasználóként) a következõ parancsot kell kiadnunk:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
....
@@ -2625,7 +2625,7 @@ Biztonsági okokból a szerver alapértelmezés szerint nem engedélyezi, hogy e
Ha szükségünk lenne erre a lehetõségre, akkor nem kell mást tennünk, mint az X-et a `-listen_tcp` paraméterrel indítani:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -2686,7 +2686,7 @@ ttyvb "/usr/libexec/getty Pc" cons25 off secure
Ezt követõen a legegyszerûbben (és egyben a legtisztábban) úgy tudjuk aktiválni a virtuális konzolokat, ha újraindítjuk a rendszerünket. Ha viszont nem akarjuk ezt feltétlenül megtenni, akkor állítsuk le az X szervert, majd (`root` felhasználóként) adjuk ki az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -2759,14 +2759,14 @@ Közben természetesen azt tapasztaljuk, hogy az egerünk nem mûködik rendesen
Ha ilyen történne velünk, akkor tiltsuk le a meghajtó szinkronizáció ellenõrzéséért felelõs rutinjait. Ezt úgy tudjuk megtenni, ha a meghajtónak beállítjuk a `0x100` értéket. Ehhez a rendszertöltõ parancssorában a `-c` kapcsolóval tudjuk behozni a _UserConfig_ részt:
-[source,bash]
+[source,shell]
....
boot: -c
....
Ezután a _UserConfig_ parancssorában gépeljük be a következõt:
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x100
UserConfig> quit
@@ -2778,14 +2778,14 @@ Kaptunk néhány visszajelzést arra vonatkozóan, hogy a MouseSystems által gy
Úgy tudjuk nagy felbontású módban használni az egerünket, ha a PS/2-es egérmeghajtónak a `0x04` beállítást adjuk meg. Ehhez a rendszertöltõ parancssorában gépeljük be a `-c` kapcsolót:
-[source,bash]
+[source,shell]
....
boot: -c
....
Ahogy bejön a _UserConfig_ parancssora, gépeljük be a következõt:
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x04
UserConfig> quit
@@ -2813,7 +2813,7 @@ Feltéve, hogy mindegyik "Windows" billentyûzet szabványos, a következõ bill
Például így lehet beállítani a bal oldali kbd:[Windows] billentyût vesszõre:
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -2903,14 +2903,14 @@ Ezt illetõen a kézikönyv link:{handbook}#network-plip/[PLIP-rõl szóló szak
Amennyiben az álnév ugyanazon az alhálózaton található, mint a hozzá tartozó interfész, akkor egyszerûen csak adjuk meg a `netmask 0xffffffff` paramétert az man:ifconfig[8] parancs meghívásakor, például így:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Minden más esetben a hagyományos módon adjunk meg egy hálózati címet és egy hálózati maszkot:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -2931,7 +2931,7 @@ Ezzel kapcsolatban link:{handbook}#network-nfs/[ kézikönyv NFS-rõl szóló r
A Linux(R) egyes változataiban található NFS kód csak bizonyos privilegizált portokról fogad el kéréseket. Próbáljuk meg a következõt:
-[source,bash]
+[source,shell]
....
# mount -o -P linux:/valami /mnt
....
@@ -2940,7 +2940,7 @@ A Linux(R) egyes változataiban található NFS kód csak bizonyos privilegizál
A SunOS(TM) 4._X_ változatait futtató munkaállomások csak privilegizált portokról fognak el kéréseket. Próbálkozzunk az alábbi paranccsal:
-[source,bash]
+[source,shell]
....
# mount -o -P sun:/valami /mnt
....
@@ -3040,7 +3040,7 @@ Amennyiben a rendszermagot az `IPFIREWALL` beállítással fordítottuk le, akko
Ha véletlenül rosszul állítottuk volna be a rendszerünkön futó tûzfalat, akkor a hálózat mûködését úgy tudjuk visszaállítani, ha `root` felhasználóként kiadjuk a következõ parancsot:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -3053,7 +3053,7 @@ Ha a tûzfalak beállításáról szeretnénk többet megtudni FreeBSD alatt, ak
Valószínûleg azért, mert nem egyszerûen a csomagok továbbítására (forward) van szükségünk, hanem hálózati címfordításra. Az "fwd" szabály pontosan azt csinálja, amirõl a nevét kapta: csomagokat továbbít, de azokon belül semmit sem változtat meg. Tegyük fel, hogy van egy ilyen szabályunk:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to ize 21
....
@@ -3099,14 +3099,14 @@ Ilyen üzeneteket akkor kapunk a rendszermagtól, ha valaminek a hatására töb
Az üzenetben olvasható elsõ szám azt mondja meg, hogy a rendszermag mennyi csomagot küldött volna, ha nem korlátoztuk volna, a második pedig magát a határt jelzi. Ezt a `net.inet.icmp.icmplim` sysctl változó segítségével tudjuk beállítani, ahogy például most megnöveljük az értékét `300`-ra:
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim=300
....
Amennyiben le szeretnénk tiltani az ilyen jellegû üzeneteket a naplókban, viszont még továbbra is szükségünk lenne a válaszküldés korlátozására, a `net.inet.icmp.icmplim_output` sysctl változó segítségével így tudjuk ezt megtenni:
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim_output=0
....
@@ -3170,7 +3170,7 @@ A biztonsági szintek egy rendszermagon belül megvalósított védelmi módszer
A jelenleg futó rendszer biztonsági szintjét a következõ parancs segítségével lehet lekérdezni:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -3364,7 +3364,7 @@ Ha segítõkész szolgáltatót választottuk, akkor a naplózást akár az õ o
A legjobban úgy járunk, ha a man:ppp[8] programot nyomkövetési információkkal fordítjuk újra, majd a man:gdb[1] segítségével lekérünk egy hívási láncot az éppen megakadt ppp példánytól. A ppp alkalmazást a következõ parancsokkal tudjuk úgy újrafordítani, hogy tartalmazza a kívánt információkat:
-[source,bash]
+[source,shell]
....
# gdb ppp `pgrep ppp`
....
@@ -3574,7 +3574,7 @@ ATDT1234567
A ppp (vagy más hasonló program) elméletileg soha nem hoz létre [.filename]#.core# állományt. Mivel a man:ppp[8] tulajdonképpen a nullás felhasználói azonosítóval fut, az operációs rendszer soha nem fogja a man:ppp[8] memórialenyomatát leállítása elõtt a lemezre menteni. Ha viszont man:ppp[8] mûködése valóban leáll egy szegmentációs hiba vagy bármilyen más [.filename]#.core# állományt eredményezõ jelzés miatt, _és_ valóban a legfrissebb változatát használjuk (lásd a fejezet elejét), akkor a következõt tehetjük:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/ppp
# echo STRIP= >> /etc/make.conf
@@ -3586,7 +3586,7 @@ A fenti parancsokkal telepíteni tudjuk a man:ppp[8] egy nyomonkövethetõ vált
Innentõl kezdve, amikor a man:ppp[8] kap egy szegmentációs hibára vonatkozó jelzést, létre fog hozni egy [.filename]#ppp.core# nevû állományt. Ennek birtokában a következõt kell csinálnunk:
-[source,bash]
+[source,shell]
....
% su
# gdb /usr/sbin/ppp ppp.core
@@ -3724,7 +3724,7 @@ Ebben a szakaszban a FreeBSD alatti soros vonali kommunikációval kapcsolatos k
Ahogy a FreeBSD rendszermagja az elindulása után azokat a soros portokat fogja keresni, amelyeket a konfigurációs állományban beállítottunk. Figyeljük a rendszer indulása közben megjelenõ üzeneteket vagy adjuk ki a következõ parancsot a rendszer indulásának befejeztével:
-[source,bash]
+[source,shell]
....
% dmesg | grep -E "^sio[0-9]"
....
@@ -3805,7 +3805,7 @@ Elõfordulhat, hogy rendszerünkön a man:tip[1] és man:cu[1] programok csak az
A következõ parancs kiadásával viszont ettõl függetlenül is engedélyezhetjük a rendszerünkön belül, hogy bárki használhassa a man:tip[1] vagy man:cu[1] parancsokat:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -3871,7 +3871,7 @@ Röviden úgy válaszolhatnánk meg ezt a kérdést, hogy a szabad memória igaz
A szimbolikus linkekhez alapértelmezés szerint nem tartoznak engedélyek, ezért a man:chmod[1] ilyen esetekben az eredeti állomány engedélyeit változtatja meg. Ezért például, ha adott egy [.filename]#ize# nevû állomány, valamint erre egy [.filename]#mize# nevû szimbolikus link, akkor a következõ parancs mindig mûködni fog:
-[source,bash]
+[source,shell]
....
% chmod g-w mize
....
@@ -3885,7 +3885,7 @@ Ha egy adott könyvtárszerkezetben elhelyezkedõ állományok engedélyeit akar
A man:chmod[1] `-R` opciója _rekurzív_ mûködést tesz lehetõvé. Óvatosan bánjunk a könyvtárakkal vagy a könyvtárakra mutató szimbolikus linkekkel a man:chmod[1] használata során. Ha egy szimbolikus link által hivatkozott könyvtár engedélyeit akarjuk megváltoztatni, akkor a man:chmod[1] parancsnak ne adjunk meg semmilyen paramétert és a nevet zárjuk perjellel ([.filename]#/#). Például, ha az [.filename]#ize# a [.filename]#mize# könyvtárra mutató szimbolikus link, és meg akarjuk változtatni az [.filename]#ize# engedélyeit (ami valójában a [.filename]#mize# engedélyeit jelenti), akkor valami ilyesmit kellene megadnunk:
-[source,bash]
+[source,shell]
....
% chmod 555 ize/
....
@@ -4202,14 +4202,14 @@ Ezért a javaslatom a következõ:
. Jegyezzük le az utasításszámláló értékét. A `0x8:` rész ebben az esetben annyira nem fontos, egyedül csak a `0xf0xxxxxx` részre van szükségünk.
. A rendszer újraindításakor írjuk be a következõt:
+
-[source,bash]
+[source,shell]
....
% nm -n /a.hibát.okozó.rendszermag | grep f0xxxxxx
....
+
ahol az `f0xxxxxx` az utasításszámláló értéke. Könnyen elõfordulhat, hogy ilyenkor még nem találunk egyezést, mivel a rendszermag szimbólumtáblájában csak az egyes függvények belépési pontjai találhatóak, és ha az utasításszámláló általában valamelyikük belsejébe mutat, nem az elejükre. Ha tehát nem még látunk semmit, akkor egyszerûen hagyjuk el az utolsó számjegyet és próbálkozzunk így:
+
-[source,bash]
+[source,shell]
....
% nm -n /a.hibát.okozó.rendszermag | grep f0xxxxx
....
@@ -4233,21 +4233,21 @@ makeoptions DEBUG=-g # A rendszermag fordítása gdb(1) szimbólumo
+
. Lépjünk be a [.filename]#/usr/src# könyvtárba:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Fordítsuk le a rendszermagot:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=RENDSZERMAGKONFIG
....
+
. Várjuk meg, amíg a man:make[1] befejezi a fordítást.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=RENDSZERMAGKONFIG
....
@@ -4271,7 +4271,7 @@ A FreeBSD által létrehozott memóriamentések mérete általában a számító
Ahogy sikerült hozzájutnunk a memóriamentéshez, azonnal is kérhetünk a man:kgdb[1] használatával egy hívási láncot belõle:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/sys/RENDSZERMAGKONFIG/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/hu/books/handbook/advanced-networking/_index.adoc b/documentation/content/hu/books/handbook/advanced-networking/_index.adoc
index e09046cce5..139179a161 100644
--- a/documentation/content/hu/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/hu/books/handbook/advanced-networking/_index.adoc
@@ -78,7 +78,7 @@ Egy gép egy másikat úgy tud megtalálni a hálózaton, ha erre létezik egy o
Az útválasztás különbözõ területeit a következõ `netstat` parancs alapján fogjuk bemutatni:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -201,7 +201,7 @@ defaultrouter="10.20.30.1"
A man:route[8] parancs használatával viszont akár közvetlenül is megtehetjük mindezt:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -246,7 +246,7 @@ Ebben a forgatókönyvben az `A-utvalaszto` a mi FreeBSD-s gépünk, amely az in
Ha megnézzük most az `A-utvalaszto` útválasztási táblázatát, akkor nagyjából a következõket fogjuk látni:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -261,7 +261,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Az `A-utvalaszto` útválasztási táblázata alapján jelen helyzetben nem lehet elérni a 2. belsõ hálózatot. Nincs ugyanis olyan útvonal, amely a `192.168.2.0/24` alhálózat felé vezetne. Ezt például úgy tudjuk megoldani, ha manuálisan felvesszük ezt az útvonalat. Az alábbi paranccsal hozzáadjuk a 2. belsõ hálózat elérését az `A-utvalaszto` útválasztási táblázatához, ahol a `192.168.1.2` lesz a következõ ugrási pont (next hop):
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -281,7 +281,7 @@ route_belsohalo2="-net 192.168.2.0/24 192.168.1.2"
A `static_routes` konfigurációs változó karakterláncok szóközzel tagolt felsorolását tartalmazza. Mindegyik karakterlánc egy útvonal neve. Az iménti példában csak egyetlen ilyen név szerepelt a `static_routes` értékében, amely a _belsohalo2_ volt. Utána beírtunk még egy konfigurációs változót is, amelynek a neve `route_belsohalo2`. Ide helyeztük a man:route[8] parancsnak átadandó beállítás összes paraméterét. Ez pontosan olyan, mintha a következõ parancsot adtuk volna ki:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -430,7 +430,7 @@ Az elõbbiek megadásával fordítsuk újra és telepítsük a rendszermagot, ma
Miután a rendszerünk újra elindult, a rendszer indítás során generált üzenetei között találnunk kell valamennyi információt a felismert vezeték nélküli eszközökrõl. Például:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -447,7 +447,7 @@ ath0: AR2413 mac 7.9 RF2413 phy 4.5
A hálózatok kereséséhez az `ifconfig` paranccsal tudunk nekifogni. Egy ilyen kérés kiszolgálása eltarthat néhány pillanatig, mivel ekkor a rendszernek végig kell bóklásznia az összes elérhetõ frekvenciát és azokon hozzáférési pontok után kutatni. Egyedül a rendszeradminisztrátor kezdeményezheti ezeket a kereséseket:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -465,7 +465,7 @@ Csak `up` jelzésû felületen tudunk hálózatokat keresni. További keresések
====
FreeBSD 7._X_ esetén a [.filename]#wlan0# eszköz helyett közvetlenül az adott eszköz nevét kell megadnunk, például [.filename]#ath0#. Az iménti sorokat ennek megfelelõen tehát ebben az esetben így kell értelmezni:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 up scan
....
@@ -492,7 +492,7 @@ Short Slot Time: a 802.11g hálózat rövid slotidõt használ, mivel nem talál
A jelenleg ismert hálózatok listáját így tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -581,14 +581,14 @@ ifconfig_wlan0="DHCP"
Így már készen is állunk a vezeték nélküli felület használatára:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
....
Ahogy a felület mûködõképessé válik, az `ifconfig` parancs segítségével ellenõrizni is tudjuk az [.filename]#ath0# felület állapotát:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -654,7 +654,7 @@ ifconfig_ath0="WPA DHCP"
Innentõl már fel is tudjuk éleszteni a felületet:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -678,7 +678,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Kézzel is megpróbálhatjuk elindítani az <<network-wireless-wpa-wpa-psk,elõbb>> elkészített [.filename]#/etc/wpa_supplicant.conf# állomány használatával:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -689,7 +689,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
A következõ parancs a `dhclient` indítása legyen, amivel megszerezzük a DHCP szervertõl az IP-címünket:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -715,7 +715,7 @@ Ha az [.filename]#/etc/rc.conf# állományban szerepel a `ifconfig_wlan0="DHCP"`
Amikor a DHCP nem használható, megadhatunk a statikus IP-címet is, miután a `wpa_supplicant` sikeresen lebonyolította a hitelesítést:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -733,7 +733,7 @@ ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Ha egyáltalán nem használunk DHCP szervert, akkor nekünk kell beállítani az alapértelmezett átjárót és a névszervert is:
-[source,bash]
+[source,shell]
....
# route add default alapértelmezett_átjáró
# echo "nameserver névszerver" >> /etc/resolv.conf
@@ -793,7 +793,7 @@ ifconfig_wlan0="WPA DHCP"
A következõ lépés a felület felébresztése lesz az [.filename]#rc.d# eszköz segítségével:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -856,7 +856,7 @@ ifconfig_wlan0="WPA DHCP"
Ezután hozzuk mûködésbe a felületet:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -923,7 +923,7 @@ ifconfig_wlan0="WPA DHCP"
Ezután már mûködésbe is hozhatjuk a felületet:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -951,7 +951,7 @@ A WEP (Wired Equivalent Privacy, azaz kábellel egyenértékû titkosság) az er
A WEP `ifconfig` parancs használatán keresztül állítható be:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -982,7 +982,7 @@ network={
Majd:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -995,7 +995,7 @@ Az IBSS vagy más néven ad-hoc módot pont-pont típusú kapcsolatok kialakít
Így állítjuk be az `A` gépet:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -1014,7 +1014,7 @@ Az `adhoc` paraméterrel utalunk arra, hogy a felület most IBSS módban mûköd
A `B` gépen ezután már képesek vagyunk észlelni az `A` gépet:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
@@ -1023,7 +1023,7 @@ A `B` gépen ezután már képesek vagyunk észlelni az `A` gépet:
A kimenetben szereplõ `I` is megerõsíti, hogy az `A` gépet ad-hoc módban érjük el. Így már csak a `B` gépet kell beállítanunk egy másik IP-címmel:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1056,7 +1056,7 @@ Jelenleg az NDIS meghajtón keresztül használt Windows(R)-os meghajtók nem te
Ahogy betöltöttük a vezeték nélküli hálózatok támogatását, egybõl ellenõrizni is tudjuk, hogy a vezeték nélküli eszközünk használható-e hozzáférési pontként (avagy "hostap" módban):
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1068,14 +1068,14 @@ A fenti kimenetben láthatjuk a kártyánk tulajdonságait. A `HOSTAP` szó arr
A vezeték nélküli eszközünket innentõl már csak hozzáférési pontnak állíthatjuk át a viruális hálózati eszköz létrehozásakor, ezért a korábban létrehozott eszközt ehhez elõször meg kell semmisítenünk:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
Ezzel létrejön a megfelelõ beállításokkal, majd ezekhez állítjuk még be a többit:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1083,7 +1083,7 @@ Ezzel létrejön a megfelelõ beállításokkal, majd ezekhez állítjuk még be
Az `ifconfig` parancs ismételt használatával le is tudjuk kérdezni az [.filename]#wlan0# felület állapotát:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1114,7 +1114,7 @@ Habár a hozzáférési pontok mûködtetése nem javasolt hitelesítés vagy ti
Miután sikerült az elõbbiekben bemutatottak alapján beállítani a hozzáférési pontunkat, egy másik vezeték nélküli géprõl rögtön meg is kezdhetjük a keresését:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 up scan
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
@@ -1123,7 +1123,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
Láthatjuk, hogy a kliens megtalálta a hozzáférési pontot és tudunk is rá kapcsolódni:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1191,12 +1191,12 @@ wpa_pairwise=CCMP TKIP <.>
A következõ lépés a hostapd elindítása:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290
@@ -1217,7 +1217,7 @@ A WEP titkosítást nem javasoljuk a hozzáférési pontok esetében, mivel nem
A vezeték nélküli eszközt tegyük hozzáférési pont módba és állítsuk be neki a megfelelõ SSID-t és IP-címet:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1229,7 +1229,7 @@ A vezeték nélküli eszközt tegyük hozzáférési pont módba és állítsuk
A [.filename]#wlan0# felület állapotának megtekintéséhez adjuk ki megint az `ifconfig` parancsot:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -1244,7 +1244,7 @@ A [.filename]#wlan0# felület állapotának megtekintéséhez adjuk ki megint az
Egy másik vezeték nélküli géprõl most már megpróbálhatjuk megkeresni a hozzáférési pontot:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
SSID BSSID CHAN RATE S:N INT CAPS
@@ -1272,7 +1272,7 @@ Ha valamilyen gondunk lenne a vezeték nélküli hálózatok használatával, ak
A `wpa_supplicant` segédprogrammal tudunk nyomkövetést végezni. A `-dd` opció megadásával indítsuk el manuálisan és ellenõrizzük a rendszernaplókat.
* Vannak alacsonyabb szintû nyomkövetési lehetõségek is. A 802.11 protokollt támogató rétegben is tudunk engedélyezni nyomkövetési üzeneteket a [.filename]#/usr/src/tools/tools/net80211# könyvtárban található `wlandebug` program segítségével. Például a
+
-[source,bash]
+[source,shell]
....
# wlandebug -i ath0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1297,7 +1297,7 @@ A FreeBSD-ben megvalósított Bluetooth protokollkészlet a Netgraph rendszerre
Alapértelmezés szerint a Bluetooth eszközmeghajtók modulként érhetõek el. Az eszköz csatlakoztatása elõtt a megfelelõ meghajtót be kell töltenünk a rendszermagba:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1311,7 +1311,7 @@ ng_ubt_load="YES"
Dugjuk be az USB-s hardverzárunkat. Az alábbihoz hasonló kimenet fog keletkezni a konzolon (vagy a rendszernaplóban):
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1321,7 +1321,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
Az [.filename]#/etc/rc.d/bluetooth# szkript fogja végezni a Bluetooth használatához szükséges protokollkészlet elindítását és leállítását. Jó ötlet leállítani az eszköz eltávolítása elõtt, de ha elhagyjuk, (általában) nem okoz végzetes hibát. Az indításkor a következõ kimenetet kapjuk:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1345,7 +1345,7 @@ Az egyes Bluetooth eszközökhöz létrejön egy-egy _hci_ típusú Netgraph-bel
Az egyik legáltalánosabb feladat a Bluetooth eszközök esetében a közelben levõ további eszközök felderítése. Ezt a mûveletet _tudakozódásnak_ ("inquiry") nevezik. A tudakozódást és az összes többi HCI-hez kapcsolódó mûveletet a man:hccontrol[8] segédprogrammal tudjuk elvégezni. A lentebb látható példa azt mutatja meg, hogyan tudunk Bluetooth eszközöket keresni egy adott távolságon belül. Az elérhetõ eszközök listáját néhány másodpercen alatt megkapjuk. A távoli azonban eszközök csak akkor fognak válaszolni, ha _felderíthetõ_ ("discoverable") módban vannak.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1361,7 +1361,7 @@ Inquiry complete. Status: No error [00]
A `BD_ADDR` a Bluetooth eszköz egyedi címe, hasonló a hálózati kártyák MAC-címéhez. Erre a címre lesz szükség ahhoz, hogy a továbbiakban kommunikálni tudjunk az eszközzel. Emberek számára értelmezhetõ nevet is hozzá tudunk rendelni a BD_ADDR címhez. Az [.filename]#/etc/bluetooth/hosts# állomány tartalmazza a Bluetooth eszközökre vonatkozó információkat. A következõ példában azt láthatjuk, hogyan tudunk beszédesebb nevet adni egy távoli eszköznek:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1372,7 +1372,7 @@ Amikor tudakozódni kezdünk a távoli Bluetooth eszközök jelenléte felõl, a
A Bluetooth rendszer lehetõség ad pont-pont (természetesen csak két Bluetooth egység között) vagy pont-multipont típusú kapcsolatok kiépítésére. A pont-multipont kapcsolat esetén a kapcsolaton több Bluetooth eszköz osztozik. A most következõ példában megláthatjuk, hogyan kell az aktív mûködési sávban lekérdezni a helyi eszköz létrejött kapcsolatait:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1381,7 +1381,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
A _kapcsolat azonosítója_ (connection handle) akkor hasznos, amikor egy sávbeli kapcsolatot akarunk lezárni. Ezt általában nem kell kézzel megcsinálni. A rendszer magától lezárja az inaktív sávbeli kapcsolatokat.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1400,7 +1400,7 @@ Minden Bluetooth eszközhöz létrejön egy _l2cap_ típusú Netgraph-csomópont
Ezen a szinten hasznos parancsnak bizonyulhat az man:l2ping[8], amivel más eszközöket tudunk pingelni. Elõfordulhat, hogy egyes Bluetooth implementációk nem válaszolnak semmilyen feléjük küldött adatra, így az alábbi példában is szereplõ `0 bytes` teljesen normális.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1411,7 +1411,7 @@ Ezen a szinten hasznos parancsnak bizonyulhat az man:l2ping[8], amivel más eszk
Az man:l2control[8] segédprogram használható az L2CAP csomópontok különbözõ mûveleteinek kivitelezésére. Ebben a példában a helyi eszközhöz tartozó logikai kapcsolatokat (csatornák) és sávokat kérdezzük le:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1425,7 +1425,7 @@ Remote BD_ADDR Handle Flags Pending State
Másik ugyanilyen diagnosztikai eszköz a man:btsockstat[1]. Ha a viselkedését tekintjük, akkor leginkább a man:netstat[1] programra hasonlít, de a Bluetooth hálózatban megjelenõ adatszerkezetekkel dolgozik. Az alábbi példa az iménti man:l2control[8] parancs kimenetében szereplõ logikai kapcsolatokat mutatja:
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1496,7 +1496,7 @@ Az SDP az SDP szerver és az SDP kliens közti kommunikációt foglalja magában
Az man:sdpd[8] Bluetooth SDP szerver és a parancssoros man:sdpcontrol[8] kliens az alap FreeBSD telepítés része. Az alábbi példában egy SDP böngészési kérést adunk ki:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1524,7 +1524,7 @@ Bluetooth Profile Descriptor List:
és így tovább. Mindegyik szolgáltatáshoz hozzátartozik a tulajdonságok egy listája (például RFCOMM csatorna). Lehetséges, hogy szolgáltatástól függõen bizonyos tulajdonságokat kell figyelnünk. Egyes Bluetooth implementációk nem támogatják a szolgáltatások böngészését és ezért egy üres listát adnak vissza. Ebben az esetben egy konkrét szolgáltatásra tudunk rákeresni. A következõ példában az OBEX Object Push (OPUSH) szolgáltatást keressük:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1538,7 +1538,7 @@ sdpd_enable="YES"
Ezután az sdpd démon így indítható el:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sdpd start
....
@@ -1547,7 +1547,7 @@ A távoli kliensek részére Bluetooth szolgáltatásokat felajánlani kívánó
A helyi SDP szerveren regisztrált szolgáltatásokat a helyi vezérlési csatornán keresztül egy `browse` kéréssel tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1569,14 +1569,14 @@ FreeBSD alatt mind a két profilt a man:ppp[8] és az man:rfcomm_pppd[8] valós
A következõ példában az man:rfcomm_pppd[8] programot fogjuk használni arra, hogy egy RFCOMM típusú kapcsolatot nyissunk a 00:80:37:29:19:a4 címmel rendelkezõ távoli Bluetooth eszköz felé. A tényleges RFCOMM csatorna számát SDP-n keresztül a távoli eszköztõl kapjuk. Az RFCOMM csatorna kézzel is megadható, és ilyen esetekben az man:rfcomm_pppd[8] nem fog SDP kérést küldeni. A man:sdpcontrol[8] használatával tudjuk lekérdezni a távoli eszközön létrejött RFCOMM csatornát.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
A PPP hálózati elérés (LAN) szolgáltatás beindításához futni kell a man:sdpd[8] szervernek. A helyi hálózaton keresztül csatlakozó kliensekhez létre kell hozni egy új bejegyzést az [.filename]#/etc/ppp/ppp.conf# állományban. Az man:rfcomm_pppd[8] man oldalon találhatunk erre példákat. Végezetül indítsuk el az RFCOMM PPP szervert egy érvényes RFCOMM csatornaszámmal. Az RFCOMM PPP szerver ekkor automatikusan regisztrálja a Bluetooth LAN szolgáltatást a helyi SDP démonnál. A következõ példában megmutatjuk, hogyan lehet elindítani egy RFCOMM PPP szervert:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1589,7 +1589,7 @@ Az OBEX szervert és klienst egy külsõ csomag, az obexapp valósítja meg, ame
Az OBEX kliens használható objektumok áttolására vagy lehúzására az OBEX szerverhez. Ez az objektum lehet például egy névjegykártya vagy egy megbeszélt találkozó. Az OBEX kliens SDP-n keresztül tud magának RFCOMM csatornaszámot szerezni. Ezt úgy tehetjük meg, ha a szolgáltatás neve helyett egy RFCOMM csatorna számát adjuk meg. A támogatott szolgáltatások: IrMC, FTRN és OPUSH. Számként RFCOMM csatorna is megadható. Az alábbi példában egy OBEX munkamenetet láthatunk, ahol az eszköz információs objektumát húzzuk le a mobiltelefonról és egy új objektumot (egy névjegykártyát) tolunk fel a telefon könyvtárába.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1602,7 +1602,7 @@ Success, response: OK, Success (0x20)
Az OBEX objektumok tologatásának támogatásához az man:sdpd[8] szervernek kell futnia. Továbbá a beérkezõ objektumok tárolásához létre kell hoznunk még egy könyvtárat is. Ez az könyvtár alapértelmezés szerint a [.filename]#/var/spool/obex#. Végül indítsuk el az OBEX szervert egy érvényes RFCOMM csatorna számának megadásával. Az OBEX szerver ezután automatikusan regisztrálja az "OBEX Object Push" nevû szolgáltatást a helyi SDP démonnál. Ebben a példában láthatjuk az OBEX szerver indítását:
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1613,7 +1613,7 @@ A soros vonali profil (Serial Port Profile, SPP) használatával RS232 (vagy ahh
Az man:rfcomm_sppd[1] segédprogram ezt a soros vonali profilt valósítja meg. Így egy pszeudo terminált tudunk virtuális soros portként használni. Ha nem adunk meg RFCOMM csatornát, akkor az man:rfcomm_sppd[1] képes SDP-n keresztül kérni egyet magának a távoli eszköztõl. Ha ezt felül kívánjuk bírálni, akkor a parancssorban megadhatunk akár egy konkrét RFCOMM csatornát is.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -1621,7 +1621,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Miután csatlakoztunk, a pszeudo terminált tudjuk soros portként használni:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1632,7 +1632,7 @@ Miután csatlakoztunk, a pszeudo terminált tudjuk soros portként használni:
Egyes Bluetooth eszközök nem támogatják a szerepek cseréjét (role switch). Alapértelmezés szerint amikor a FreeBSD elfogad egy új kapcsolatot, megpróbál rajta szerepet cserélni és mesterré válni. Azok az eszközök, amelyek ezt nem támogatják, nem lesznek képesek emiatt csatlakozni. Ez a szerepváltás az új kapcsolatok felépítése során zajlik le, ezért egy távoli eszköztõl nem lehet megtudni, hogy ismeri-e ezt a lehetõséget. A helyi oldalon a következõ HCI opcióval lehet kikapcsolni a szerepcserét:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1694,7 +1694,7 @@ A hálózati híddal forgalmat is tudunk szabályozni az man:altq[4] vagy a man:
Hálózati hidak felületek klónozásával hozhatóak létre. A híd létrehozásához használjuk az man:ifconfig[8] programot, és a megfelelõ meghajtó automatikusan betöltõdik, ha nem lenne még elérhetõ a rendszermagban.
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1710,7 +1710,7 @@ Ekkor létrejön a hálózati hídhoz tartozó felület és véletlenszerûen ge
Vegyük fel a hídhoz tartozó hálózati tagfelületeket. A híd csak akkor fog a tagfelületek között csomagokat továbbküldeni, amikor a híd és a tagok is `up` állapotban vannak:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1729,7 +1729,7 @@ ifconfig_fxp1="up"
Ha a hídhoz IP-címet is rendelni akarunk, akkor inkább magánál a hídnál adjuk meg, ne a tagoknál. Ezt statikusan vagy DHCP használatával is megtehetjük:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1770,7 +1770,7 @@ Az alábbi táblázat a támogatott mûködési módokat láthatjuk:
A tagfelületeken az `stp` paranccsal tudjuk engedélyezni a feszítõfák használatát. Az [.filename]#fxp0# és [.filename]#fxp1# felületeket összekötõ hídfelület esetében tehát így:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1790,7 +1790,7 @@ Láthatjuk, hogy a híd a feszítõfában megkapta a `00:01:02:4b:d4:50`-es azon
Ha a hálózaton már valahol létezik egy másik híd:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1815,7 +1815,7 @@ A hidak támogatják az ún. megfigyelési módot, ahol a csomagokat a man:bpf[4
Az alábbi paranccsal tudjuk megoldani, hogy négy felületrõl érkezõ adatot legyünk képesek egyetlen folyamként olvasni:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1827,7 +1827,7 @@ A hídhoz befutó Ethernet keretek mindegyikérõl készül egy másolat, ami eg
Küldessük az összes keretrõl egy másolatot az [.filename]#fxp4# felületre:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1842,7 +1842,7 @@ Ha a híd egyik tagfelületét tapadósnak (sticky) adjuk meg, akkor a dinamikus
Másik ilyen példa a tapadós címek használatára az lehetne, amikor a hidat VLAN-nal kombináljuk, és így egy olyan útválasztót hozunk létre, ahol az ügyfeleink az IP-címtartomány pocséklása nélkül zárhatóak el egymástól. Tegyük fel, hogy az `A-ugyfel` a `vlan100`, és a `B-ugyfel` a `vlan101` felületen csatlakozik. A híd IP-címe `192.168.0.1`, amely maga is egy internet felé mutató útválasztó.
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1852,7 +1852,7 @@ Mind a két kliens a `192.168.0.1` címet látja alapértelmezett átjáróként
A VLAN-ok közti bárminemû kommunikációt privát felületek létrehozásával akadályozzuk meg (vagy egy tûzfallal):
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1865,7 +1865,7 @@ Korlátozhatóak az egy felület mögül küldeni képes egyedi MAC-címek. Amik
A következõ példában az `vlan100` felületen csatlakozó `A-ugyfel` számára korlátozzuk le 10-re az Ethernet eszközök számát:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
@@ -1886,7 +1886,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
Az IETF BRIDGE-MIB (RFC 4188) használatán keresztül így tudjuk elindítani egy híd felügyeletét:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1910,7 +1910,7 @@ A példában látszik, hogy a `dot1dStpTopChanges.0` értéke kettõ, ami arra u
Több híd felületének felügyeletéhez a belsõ BEGEMOT-BRIDGE-MIB parancsot is használhatjuk:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1931,7 +1931,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
Így tudjuk megadni, hogy a hidat `mib-2.dot1dBridge` részfán keresztül akarjuk megfigyelni:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1975,7 +1975,7 @@ Ebben a példában egy FreeBSD-s gép két felületét kapcsoljuk össze switch-
A Cisco(R) switch-en vegyünk fel a _FastEthernet0/1_ és _FastEthernet0/2_ interfészeket az _1_ csoportba (channel group):
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1988,7 +1988,7 @@ interface FastEthernet0/2
A FreeBSD-s gépen pedig a _fxp0_ és _fxp1_ használatával hozzunk létre a man:lagg[4] interfészt:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto lacp laggport fxp0 laggport fxp1
@@ -1996,14 +1996,14 @@ A FreeBSD-s gépen pedig a _fxp0_ és _fxp1_ használatával hozzunk létre a ma
Ellenõrizzük a felület állapotát:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
....
A _ACTIVE_ jelzésû, vagyis aktív állapotú portok az összefûzéshez kialakított csoport azon tagjai, amelyeknél felépült a kapcsolat a távoli switch felé és készen állnak a küldésre és fogadásra. Ha az man:ifconfig[8] programtól részletesebb kimenetet kérünk, akkor láthatjuk a csoportok azonosítóit is:
-[source,bash]
+[source,shell]
....
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
@@ -2017,7 +2017,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
A `show lacp neighbor` paranccsal kérdezhetjük le a portok állapotát:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2043,7 +2043,7 @@ Részletesebb kijelzést a `show lacp neighbor detail` paranccsal kaphatunk.
====
A hibatûrési mód arra alkalmas, hogy amikor az elsõdleges porton elvesztjük a kapcsolatot, helyette egy másodlagos interfész használatára tudunk áttérni. Hozzuk létre és állítsuk be a _lagg0_ interfészt, ahol az _fxp0_ legyen a fõinterfész, az _fxp1_ pedig a tartalék interfész:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto failover laggport fxp0 laggport fxp1
@@ -2051,7 +2051,7 @@ A hibatûrési mód arra alkalmas, hogy amikor az elsõdleges porton elvesztjük
Az így létrejövõ interfész nagyjából az alábbi lesz, ahol eltérés a MAC-cím és az eszköz neve:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2077,7 +2077,7 @@ A beállítás során a vezeték nélküli interfész MAC-címét úgy kell mód
A most következõ példában a vezetékes hálózatunk lesz az elsõdleges interfész (_bge0_), míg a vezeték nélküli (_wlan0_) a másodlagos. A _wlan0_ interfészt az _iwn0_ interfészbõl hoztuk létre, és a vezetékes kapcsolat MAC-címét állítjuk be neki. Elsõ lépésként tehát le kell kérdeznünk a vezetékes interfész MAC-címét:
-[source,bash]
+[source,shell]
....
# ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2091,21 +2091,21 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
A _bge0_ helyett természetesen a saját vezetékes hálózati interfészünket kell megadni, és az `ether` kezdetû sorban is saját kártyánk MAC-címe fog megjelenni. Ezután már meg is tudjuk változtatni az _iwn0_ címét:
-[source,bash]
+[source,shell]
....
# ifconfig iwn0 ether 00:21:70:da:ae:37
....
Aktiváljuk a vezeték nélküli interfészt, de ne állítsunk be neki semmilyen IP-címet:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 ssid wlan_hálózat up
....
Hozzuk létre a man:lagg[4] interfészt a _bge0_ mint elsõdleges interfész megadásával, valamint a _wlan0_ legyen a szükség esetén használható tartalék:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto failover laggport bge0 laggport wlan0
@@ -2113,7 +2113,7 @@ Hozzuk létre a man:lagg[4] interfészt a _bge0_ mint elsõdleges interfész meg
Az így létrehozott interfész nagyjából így fog megjelenni, egyedüli fontosabb eltérések a MAC-címek és az eszközök nevei:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2284,7 +2284,7 @@ Itt most floppyról fogjuk indítani a rendszert. A többi módszerrel (PROM vag
A rendszerindító lemez elkészítéséhez tegyünk egy lemezt annak a gépnek a meghajtójába, ahová az Etherboot felkerült. Váltsunk az Etherboot könyvtárán belül az [.filename]#src# alkönyvtárba és gépeljük be:
-[source,bash]
+[source,shell]
....
# gmake bin32/eszköztípus.fd0
@@ -2321,7 +2321,7 @@ A tapasztalat szerint egyes PXE verziók a TFTPTCP alapú változatát használj
+
. Mondjuk meg az inetd démonnak, hogy olvassa újra a konfigurációs állományát. Az alábbi parancs megfelelõ mûködéséhez Az `inetd_enable="YES"` sornak szerepelnie kell az [.filename]#/etc/rc.conf# állományban:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -2350,7 +2350,7 @@ nfs_server_enable="YES"
+
. Kérjük meg a mountd démont, hogy olvassa újra a konfigurációs állományát. Elõfordulhat azonban, hogy ehhez elõször az NFS szolgáltatást kell engedélyezni az [.filename]#/etc/rc.conf# állományból és újraindítani a gépet.
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd restart
....
@@ -2417,7 +2417,7 @@ Amennyiben szükséges, a szerveren található lapozóállományt NFS-en keresz
A rendszermag maga nem támogatja az NFS alapú lapozás engedélyezését a rendszer indításakor. A lapozóállományt ezért a rendszerindító szkripteken keresztül aktiváljuk, amelyekben csatlakoztatunk egy írható állományrendszert, ahol létrehozzuk és engedélyezzük a lapozóállományt. Tetszõleges méretû lapozóállományt például így tudunk készíteni:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/a/lapozóállomány/helye bs=1k count=1 oseek=100000
....
@@ -2899,7 +2899,7 @@ BUSY
Elõször is szereznünk kell valahonnan egy laplink kábelt. Ha ez megvan, akkor mind a két gépen ellenõrizzük, hogy a rendszermag tartalmazza az man:lpt[4] meghajtót:
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -2916,7 +2916,7 @@ hint.ppc.0.irq="7"
Ezután nézzük meg, hogy a rendszermag beállításait tartalmazó állományban megjelenik-e a `device plip` sor, vagy a [.filename]#plip.ko# modul betöltõdött-e. Akármelyik is történt, a párhuzamos hálózati felület most már a rendelkezésünkre áll, és az man:ifconfig[8] paranccsal ezt meg is tudjuk nézni:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -2934,14 +2934,14 @@ IP-cím 10.0.0.1 10.0.0.2
Az `_egyikgép_` felületét így állítsuk be:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.1 10.0.0.2
....
A `_másikgép_` felületét így állítsuk be:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -2959,7 +2959,7 @@ Ezt a két gépet vegyük fel az [.filename]#/etc/hosts# állományba is:
A kapcsolat mûködõképességérõl úgy tudunk meggyõzõdni, ha az egyik géprõl megpróbáljuk pingelni a másikat. Például az `_egyikgép_` esetében:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -3086,7 +3086,7 @@ A harmadik forma szerint az utolsó 32 bites részt írjuk fel a megszokott (dec
Mostanra már minden bizonnyal a kedves olvasó érteni fogja a következõt:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -3284,7 +3284,7 @@ A teljes hálózat felépítéséhez minden egyes pár között egy-egy ATM kapc
A kapcsolatok egyes végein szereplõ VPI és VCI értékek természetesen eltérhetnek, de ezeket mi most az egyszerûség kedvéért egyenlõnek tekintettük. A következõ lépésben minden gépen állítsuk be az ATM felület:
-[source,bash]
+[source,shell]
....
A-gep# ifconfig hatm0 192.168.173.1 up
B-gep# ifconfig hatm0 192.168.173.2 up
@@ -3294,7 +3294,7 @@ D-gep# ifconfig hatm0 192.168.173.4 up
Ha feltételezzük, hogy minden gépen a [.filename]#hatm0# az ATM felület neve. Most pedig az `A-gep`-en állítsuk be az állandó csatornákat. (Itt most feltesszük, hogy az ATM switch-eken mindezt már elvégeztük. A switch kézikönyvében errõl részletesebb leírást is találhatunk.)
-[source,bash]
+[source,shell]
....
A-gep# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
A-gep# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -3315,7 +3315,7 @@ D-gep# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Természetesen nem csak UBR használható, hanem minden más olyan forgalmazási beállítás, amit az ATM kártyáink ismernek. Itt most a forgalmi beállítás nevét a hozzá tartozó konkrét paraméterek követik. Az man:atmconfig[8] segédprogram használatához így kérhetünk segítséget:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -3336,7 +3336,7 @@ route_D-gep="192.168.173.4 hatm0 0 102 llc/snap ubr"
A CLIP útvonalak pillanatnyi állapota így kérdezhetõ le:
-[source,bash]
+[source,shell]
....
A-gep# atmconfig natm show
....
@@ -3379,7 +3379,7 @@ A CARP által biztosított lehetõségek ezután már elérhetõek, és számos
A CARP eszközök maguk az `ifconfig` paranccsal készíthetõek el:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -3432,7 +3432,7 @@ Két [.filename]#carp# eszköz használatával a `szolgaltato.minta.org` képes
====
Az alap FreeBSD rendszermag használata esetén _elõfordulhat_, hogy a megszakítás (a "preemption" opció) engedélyezett. Amennyiben így lenne, a `szolgaltato.minta.org` nem fogja minden esetben fogja rendesen visszaadni az IP-címet az eredeti tulajdonosának. Ilyenkor a rendszergazdának kell ezt manuálisan megtennie. Tehát a következõ parancsot kell kiadnia a `szolgaltato.minta.org` gépen:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
diff --git a/documentation/content/hu/books/handbook/audit/_index.adoc b/documentation/content/hu/books/handbook/audit/_index.adoc
index d9339092e1..82089d2cd8 100644
--- a/documentation/content/hu/books/handbook/audit/_index.adoc
+++ b/documentation/content/hu/books/handbook/audit/_index.adoc
@@ -225,7 +225,7 @@ A vizsgálati nyomok a BSM bináris formátumban tárolódnak, ezért a tartalm
Például a `praudit` segédprogram képes kilistázni szövegesen egy adott vizsgálati napló teljes tartalmát:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -251,7 +251,7 @@ Ez a vizsgálat egy sikeres `execve` hívást rögzít, ahol a `finger doug` par
Mivel a vizsgálatokhoz tartozó naplók akár egészen nagyok is lehetnek, ezért a rendszergazdának minden bizonnyal szüksége lehet a számára fontos, például egy adott felhasználóhoz tartozó rekordok kiválogatására:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -266,7 +266,7 @@ Az `audit` csoport tagjai olvashatják a [.filename]#/var/audit# könyvtárban t
A vizsgálati csövek az eszközök állományabsztrakcióit klónozzák le, és ezzel teszik lehetõvé az alkalmazások számára, hogy menet közben megcsapolhassák a megfigyelt eszközök adatait. Ez az elsõdleges célja a különbözõ betörésfigyelõ és rendszerfelügyeleti eszközök készítõinek. A rendszergazda számára azonban a vizsgálati csövek megkönnyítik az élõ megfigyelést, mert itt nem merülnek fel a nyomok jogosultságaiból vagy az archiválás miatt megszakadó eseményfolyamokból adódó problémák. Az élõ eseményfolyamra az alábbi parancs kiadásával lehet rácsatlakozni:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -290,7 +290,7 @@ Könnyen gerjedést lehet elõidézni a vizsgált események megfigyelésével,
A vizsgálati nyomokat egyedül a rendszermag képes írni, illetve csak a vizsgálati démon, az auditd képes felügyelni. A rendszergazdáknak ebben az esetben tehát nem szabad használniuk a man:newsyslog.conf[5] vagy a hozzá hasonló eszközök használatát a vizsgálati naplók archiválásához. Helyettük a `audit` segédprogramot javasolt használni a vizsgálatok leállítására, a vizsgálati rendszer újrakonfigurálására vagy a napló archiválásának elvégzésére. Az alábbi parancs utasítja a vizsgálati démont, hogy hozzon létre egy új vizsgálati naplót és jelzi a rendszermagnak, hogy váltson erre az új naplóra. Az eddig használt naplót lezárja és átnevezi, ami ezután a rendszergazda által tetszõlegesen feldolgozható.
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/hu/books/handbook/basics/_index.adoc b/documentation/content/hu/books/handbook/basics/_index.adoc
index d5636206de..3e3ba067c0 100644
--- a/documentation/content/hu/books/handbook/basics/_index.adoc
+++ b/documentation/content/hu/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ A FreeBSD számos módon használható. Ezek közül az egyik az, ha parancsokat
Ha nem állítottuk volna be, hogy a FreeBSD indulása során automatikusan induljon el a grafikus felület is, akkor a rendszer egy bejelentkezõ képernyõt fog mutatni közvetlenül a rendszerindítás befejezõdése után. Ekkor valami ilyesmit kell majd látnunk:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ Minden többfelhasználós rendszernek valamilyen módon meg kell tudnia külön
Egybõl miután a FreeBSD elindult és befejezte a rendszerindításhoz használt szkriptjeinek lefuttatását , ez a kijelzés (vagy más néven "prompt") fog megjelenni és kér egy érvényes felhasználói nevet:
-[source,bash]
+[source,shell]
....
login:
....
A példa kedvéért most tegyük fel, hogy a felhasználói nevünk `pgj`. Az iménti prompthoz írjuk be, hogy `pgj` és nyomjuk le az kbd:[Enter] billentyût. Ezt követõen meg kell jelennie egy másik promptnak is, amely egy "jelszót" (password) kér:
-[source,bash]
+[source,shell]
....
login: pgj
Password:
@@ -204,14 +204,14 @@ options SC_PIXEL_MODE
Miután a rendszermagot sikeresen újrafordítottuk a fenti beállításokkal, a man:vidcontrol[1] segédprogrammal tudjuk megállapítani, hogy a hardverünk milyen videomódokat enged használni. Az összes támogatott videomódot a következõképpen tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
A parancs eredményeképpen tehát megkapjuk a hardverünk által ismert videomódokat. Ezek közül tudjuk kiválasztani valamelyikõjüket és `root` felhasználóként a man:vidcontrol[1] segítségével beállítani:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -272,7 +272,7 @@ Mivel a rendszer több felhasználót is képes támogatni, az általa kezelt er
A man:ls[1] `-l` kapcsolójának segítségével megnézhetjük a könyvtárak tartalmának részletes listáját, amiben megjelennek az állományok tulajdonosaira, csoportjára és a mindenki másra vonatkozó engedélyek is. Például ezt láthatjuk, ha kiadjuk az `ls -l` parancsot egy tetszõleges könyvtárban:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -284,7 +284,7 @@ total 530
A példabeli `ls -l` parancs kimenetének elsõ oszlopa így bomlik fel:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -361,14 +361,14 @@ A szimbolikus engedélyek (gyakran csak szimbolikus kifejezések) az állományo
Ezek az értékek a man:chmod[1] paranccsal az eddigiekhez hasonló módon használhatóak, csak itt betûket kell megadnunk. Például az alábbi paranccsal akadályozhatjuk meg, hogy a tulajdonosán kívül bárki hozzáférhessen az _ÁLLOMÁNY_ nevû állományhoz:
-[source,bash]
+[source,shell]
....
% chmod go= ÁLLOMÁNY
....
Amennyiben egy állománnyal kapcsolatban több változtatást is el kívánunk végezni, össze tudjuk ezeket fûzni egy vesszõkkel elhatárolt felsorolásban:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x ÁLLOMÁNY
....
@@ -381,21 +381,21 @@ Ezek az állományjelzõk az állományok felett további vezérlést adnak a ke
Az állományjelzõk értékei egy egyszerû felületen keresztül, a man:chflags[1] segédprogrammal változtathatóak meg. Például a következõ paranccsal állíthatjuk a rendszer törölhetetlen (undeletable) jelzését az [.filename]#allomany1# állományon:
-[source,bash]
+[source,shell]
....
# chflags sunlink allomany1
....
A törölhetetlen jelzés eltávolításához egyszerûen csak írjuk be az elõzõ parancsot úgy, hogy a "sunlink" paraméter elejére még beszúrunk egy "no" szövegrészt. Így:
-[source,bash]
+[source,shell]
....
# chflags nosunlink allomany1
....
Az állományokra éppen érvényes jelzéseket az man:ls[1] parancs `-lo` kapcsolójának segítségével jeleníthetjük meg:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -424,14 +424,14 @@ A man:mount[8] `nosuid` beállításával azonban az ilyen típusú binárisok m
Ahogy azt az alábbi példa is szemlélteti, a setuid engedélyt a többi elé egy négyes (4) beszúrásával tudjuk beállítani:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
A [.filename]#suidexample.sh# állomány engedélyei ezt követõen már így fognak megjelenni:
-[source,bash]
+[source,shell]
....
-rwsr-xr-x 1 trhodes trhodes 63 Aug 29 06:36 suidexample.sh
....
@@ -442,7 +442,7 @@ Két terminál megnyitásával mindezt valós idõben is megvizsgálhatjuk. Az e
Tehát az egyik terminálon a következõt látjuk:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -451,7 +451,7 @@ Old Password:
Eközben pedig a másikon:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
@@ -464,14 +464,14 @@ A `setgid` a `setuid` engedélyhez hasonlóan mûködik, egyedül annyiban tér
Úgy tudjuk állományokon beállítani a `setgid` típusú engedélyt, ha az iménti példához hasonlóan a `chmod` parancs hívásakor még egy kettest (2) írunk az engedélyek elé:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Az így beállított engedélyek az elõbbihöz hasonló módon szemlélhetõek meg, azonban ebben az esetben a csoporthoz tartozó engedélyeknél jelenik meg az `s` bit:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -485,14 +485,14 @@ Ez a két speciális engedély (a `setuid` és a `setgid`) a programhoz tartozó
Ha a `sticky` típusú engedélyt könyvtárra adjuk meg, akkor a benne levõ állományok törlését kizárólag azok tulajdonosainak engedi. Ezzel az engedéllyel lényegében a [.filename]#/tmp# könyvtárhoz hasonló nyilvános, bárki által elérhetõ könyvtárakban akadályozhatjuk meg az állományok idegen felhasználók általi törlését. Az engedély beállításához egy egyest (1) kell a többi elé fûznünk, mint például:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Most már az `ls` parancs segítségével láthatjuk ennek a hatását:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
@@ -826,7 +826,7 @@ Az állományrendszerek tényleges csatlakoztatására avagy "mountolására" a
Legegyszerûbb formája:
-[source,bash]
+[source,shell]
....
# mount eszköz csatlakozási-pont
....
@@ -888,7 +888,7 @@ A rendszerben futó programok vizsgálatához két, különösen hasznos parancs
A `ps` alapértelmezés szerint csupán az általunk futtatott programokat mutatja. Például:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -916,7 +916,7 @@ A man:ps[1] számos különféle beállítást ismer az általa megjelenített i
A man:top[1] kimenete is hasonló. Ha elindítjuk, általában ezt láthatjuk:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -973,7 +973,7 @@ Ebben a példában megmutatjuk, hogyan lehet jelzést küldeni az man:inetd[8] d
. Keressük meg annak a folyamatnak az azonosítóját, amelynek a jelzést kívánjuk küldeni. Ezt a man:ps[1] és a man:grep[1] használatával tehetjük meg. A man:grep[1] parancs segítségével más parancsok kimenetében tudunk megkeresni egy általunk megadott szöveget. Ezt a parancsot átlagos felhasználóként futtatjuk, azonban az man:inetd[8] démont a `root` birtokolja, ezért az man:ps[1] használata során meg kell adnunk az `ax` kapcsolókat is.
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -982,7 +982,7 @@ Ebben a példában megmutatjuk, hogyan lehet jelzést küldeni az man:inetd[8] d
Innen kiderül, hogy az man:inetd[8] azonosítója 198. Elõfordulhat, hogy az eredményben maga a `grep inetd` parancs is megjelenik. Ez a man:ps[1] listázási módszere miatt következhet be.
. A jelzés elküldésére használjuk a man:kill[1] parancsot. Mivel az man:inetd[8] démont a `root` felhasználó futtatja, ehhez elõször a man:su[1] parancs kiadásával nekünk is `root` felhasználóvá (rendszeradminisztrátorrá) kell válnunk.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1062,14 +1062,14 @@ A parancsértelmezõk másik általános jellemzõje a környezeti változók ha
A környezeti változók beállítása parancsértelmezõnként valamennyire eltér. Például egy C stílusú parancsértelmezõ, mint például a `tcsh` vagy a `csh`, a `setenv` paranccsal állítja a környezeti változókat. A Bourne-féle parancsértelmezõk, mint például az `sh` vagy a `bash`, az `export` parancsot használják a környezeti változók beállítására. Például a `csh` vagy a `tcsh` használata során a következõképpen tudjuk be- vagy átállítani az `EDITOR` környezeti változó értékét [.filename]#/usr/local/bin/emacs#-re:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Ugyanez a Bourne-féle parancsértelmezõkben:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1087,7 +1087,7 @@ A parancsértelmezõnk legegyszerûbben a `chsh` parancs használatával változ
A `chsh` parancsnak megadhatjuk az `-s` opciót is, amin keresztül szövegszerkesztõ használata nélkül be tudjuk állítani a parancsértelmezõt. Például ha a parancsértelmezõnket a `bash`-re akarjuk lecserélni, akkor ezt írjuk be:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1098,7 +1098,7 @@ A használni kívánt parancsértelmezõnek szerepelnie _kell_ az [.filename]#/e
Például ha a `bash`-t manuálisan telepítettük és másoltuk a [.filename]#/usr/local/bin# könyvtárba, akkor így kell eljárnunk:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1175,14 +1175,14 @@ Az ELF sokkal kifejezõbb az [.filename]#a.out# formátumnál, és jóval több
A FreeBSD legátfogóbb dokumentációja a benne található man oldalak összessége. A rendszerben található szinte majdnem mindegyik programhoz létezik egy rövid használati útmutató, amely bemutatja az adott program alapvetõ mûködését és a különbözõ beállításait. Ezek a leírások a `man` parancs segítségével jeleníthetõek meg. A `man` parancs használata egyszerû:
-[source,bash]
+[source,shell]
....
% man parancs
....
ahol a `parancs` a megismerni kívánt parancsra utal. Például ha az `ls` parancsról szeretnénk többet megtudni, írjuk be:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1201,7 +1201,7 @@ Az elérhetõ használati útmutatókat a következõ számozott szakaszokra osz
Bizonyos esetekben ugyanaz a téma az útmutatók több szakaszában is elérhetõ. Például létezik `chmod` felhasználói parancs és a `chmod()` rendszerhívás. Ilyenkor a `man` parancsnak meg tudjuk adni pontosan, melyik szakaszra is vagyunk kíváncsiak:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1210,7 +1210,7 @@ Ennek hatására a `chmod` felhasználói parancshoz tartozó oldal jelenik meg.
Ez a módszer remekül mûködik abban az esetben, amikor ismerjük a parancs nevét, azonban mit tegyünk akkor, ha nem is emlékszünk a nevére? A `man` parancs a `-k` segítségével paraméterezhetõ úgy is, hogy a parancsok leírásai között keressen valamilyen kulcsszó mentén:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1219,7 +1219,7 @@ Ezzel a paranccsal megkapjuk azon parancsok listáját, amelyek leírásában sz
Szóval szeretnénk megtudni, hogy a [.filename]#/usr/bin# könyvtárban levõ parancsok pontosan mit is csinálnak? Ehhez írjuk be:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1227,7 +1227,7 @@ Szóval szeretnénk megtudni, hogy a [.filename]#/usr/bin# könyvtárban levõ p
vagy
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1242,7 +1242,7 @@ A FreeBSD-ben megtalálható a Szabad Szoftver Alapítvány (Free Software Found
Az man:info[1] parancs használatához ennyit kell beírnunk:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/hu/books/handbook/boot/_index.adoc b/documentation/content/hu/books/handbook/boot/_index.adoc
index d59bfa27b3..63b61b9659 100644
--- a/documentation/content/hu/books/handbook/boot/_index.adoc
+++ b/documentation/content/hu/books/handbook/boot/_index.adoc
@@ -98,7 +98,7 @@ Az MBR-ben található programkódot, avagy boot managert, sokszor csak a rendsz
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
Más operációs rendszerek, különösen a Windows(R), telepítésük során felülírják a már meglevõ MBR-t a sajátjukkal. Ha ez történne, vagy egyszerûen csak szeretnénk a meglevõ MBR-t lecserélni a FreeBSD MBR-jével, adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 eszköznév
....
@@ -150,7 +150,7 @@ Mivel a <<boot-loader,betöltõ>> pedig már ennél is okosabb, és egy könnyen
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -161,7 +161,7 @@ boot:
Ha le kellene váltani a korábban telepített [.filename]#boot1# és [.filename]#boot2# fokozatokat, használjuk a man:bsdlabel[8]-t:
-[source,bash]
+[source,shell]
....
# bsdlabel -B lemezslice
....
@@ -241,14 +241,14 @@ Eltávolítja a memóriából az összes betöltött modult.
* Így indíthatjuk egyfelhasználós módban az általunk használt rendszermagot:
+
-[source,bash]
+[source,shell]
....
boot -s
....
+
* Távolítsuk el a betöltött rendszermagot és a moduljait, és töltsük be helyettük a korábbi (vagy egy másik) rendszermagot:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -260,7 +260,7 @@ Itt használhatjuk a [.filename]#kernel.GENERIC# nevet is, amely a telepítõlem
====
A következõképpen lehet betölteni a szokásos moduljainkat egy másik rendszermaggal:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -271,7 +271,7 @@ boot-conf
+
* Egy rendszermag-konfigurációs szkript (automatizált szkript, amely ugyanazokat a beállításokat végzi el, amelyeket mi magunk tennénk akkor, amikor a rendszermagot indítjuk) betöltése:
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -391,14 +391,14 @@ Ahogy a rendszerünk használatra kész állapotba került, a man:kenv[1] paranc
A [.filename]#/boot/device.hints# állományban soronként egy-egy változót tudunk megadni, illetve a kettõskereszttel ("#") bevezetve megjegyzéseket illeszthetünk bele. A sorok szerkezete az alábbi:
-[source,bash]
+[source,shell]
....
útmutató.meghajtó.egység.kulcsszó="érték"
....
A harmadik fázisban pedig így adhatjuk meg:
-[source,bash]
+[source,shell]
....
set útmutató.meghajtó.egység.kulcsszó=érték
....
diff --git a/documentation/content/hu/books/handbook/config/_index.adoc b/documentation/content/hu/books/handbook/config/_index.adoc
index 95b5d4784d..031bdf4f20 100644
--- a/documentation/content/hu/books/handbook/config/_index.adoc
+++ b/documentation/content/hu/books/handbook/config/_index.adoc
@@ -274,7 +274,7 @@ Nem kötelezõ az itt ismertetésre kerülõ módon szerkeszteni vagy telepíten
Egy frissen készített felhasználói [.filename]#crontab# telepítéséhez elõször a kedvenc szövegszerkesztõnk segítségével létre kell hoznunk a megfelelõ formátumú állományt, majd használnunk a `crontab` segédprogramot. Ennek általános alakja:
-[source,bash]
+[source,shell]
....
% crontab crontab_állomány
....
@@ -292,7 +292,7 @@ Ha a késõbbiekben törölni akarjuk a felhasználónkhoz tartozó [.filename]#
A rendszer indítására a FreeBSD 2002-ben átvette a NetBSD [.filename]#rc.d# rendszerét. Ezt a felhasználók könnyen felismerhetik az [.filename]#/etc/rc.d# könyvtárban található állományokról. A legtöbbjük olyan alapvetõ szolgáltatás, amelyet a `start`, `stop` és `restart` paraméterekkel lehet vezérelni. Például az man:sshd[8] az alábbi paranccsal indítható újra:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -308,14 +308,14 @@ Amennyiben a `natd_enable="NO"` sor már szerepel benne, akkor egyszerûen írju
Mivel az [.filename]#rc.d# rendszert elsõsorban arra használják, hogy szolgáltatásokat indítsanak el vagy állítsanak le az operációs rendszerrel együtt, a szabványos `start`, `stop` és `restart` paraméterek csak abban az esetben látják el a feladatukat, ha a nekik megfelelõ változókat beállítottuk az [.filename]#/etc/rc.conf# állományban. Tehát például az `sshd restart` csak abban az esetben fog bármit is csinálni, ha az [.filename]#/etc/rc.conf# állományban az `sshd_enable` változót a `YES` értékre állítottuk. Ha az [.filename]#/etc/rc.conf# beállításaitól függetlenül kívánunk egy szolgáltatásnak `start`, `stop` vagy `restart` parancsot adni, akkor elé kell tennünk egy "one" szót. Például ha az `sshd` szolgáltatás újraindításához az [.filename]#/etc/rc.conf# tartalmát figyelmen kívül akarjuk hagyni, akkor ezt a parancsot kell kiadnunk:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
Könnyen ellenõrizni tudjuk, hogy az adott szolgáltatás az [.filename]#/etc/rc.conf# részérõl engedélyezett-e, ha a neki megfelelõ [.filename]#rc.d# szkriptnek megadjuk az `rcvar` paramétert. Ennek segítségével például a rendszergazda így képes ellenõrizni, hogy az `sshd` szolgáltatást engedélyezi-e az [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -329,7 +329,7 @@ A második sor (`# sshd`) az `sshd` parancs kimenete, nem pedig a `root` parancs
A `status` paraméterrel kideríthetjük, hogy egy szolgáltatás aktív-e. Ezzel például így tudjuk ellenõrizni az `sshd` szolgáltatás mûködését:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -337,7 +337,7 @@ sshd is running as pid 433.
Az üzenet:
-[source,bash]
+[source,shell]
....
Az sshd a 433-as azonosítóval fut.
....
@@ -346,14 +346,14 @@ Bizonyos esetekben a `reload` paraméter használatával lehetõségünk van a s
Az [.filename]#rc.d# rendszer nem csupán hálózati szolgáltatások esetén használatos, hanem nagyrészben hozzájárul a rendszer indításához is. Erre vegyük példának a [.filename]#bgfsck# állományt. Amikor ez a szkript lefut, a következõ üzenetet jeleníti meg:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
A háttérben 60 másodperc múlva megkezdõdik az állományrendszerek ellenõrzése.
....
@@ -388,7 +388,7 @@ Miután meggyõzõdtünk róla, hogy a kártyánkat ismeri a rendszer, meg kell
Ha egy elterjedt típust sikerült beszereznünk, akkor nem kell különösebben sokáig keresnünk a neki megfelelõ meghajtót. Az ismertebb hálózati kártyák meghajtói ugyanis alapból benne vannak a [.filename]#GENERIC# rendszermagban, ezért a rendszer indítása során ehhez hasonlóan meg is jelennek a kártyák:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -440,21 +440,21 @@ A Windows(R) i386 architektúrájú verziójához készült meghajtóprogramokat
A következõ lépés a meghajtó binárisainak betölthetõ modulba fordítása. Ennek eléréséhez használjuk az man:ndisgen[8] parancsot a `root` felhasználóval:
-[source,bash]
+[source,shell]
....
# ndisgen /windowsos/meghajtó/W32DRIVER.INF /windowsos/meghajtó/W32DRIVER.SYS
....
Az man:ndisgen[8] egy interaktív segédprogram, amely mûködése közben még rákérdez néhány szükséges információra. Az aktuális könyvtárban létrehoz egy rendszermagmodult, amelyet az alábbi módon tudunk betölteni:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
Az elõállított modul mellé be kell töltenünk még az [.filename]#ndis.ko# és az [.filename]#if_ndis.ko# modulokat is. Ez általában minden olyan modul esetén megtörténik magától, amely függ az man:ndis[4] használatától. Kézileg a következõ parancsokkal tudjuk ezeket betölteni:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -464,7 +464,7 @@ Itt az elsõ parancs betölti az NDIS miniport meghajtó burkolására szánt k
Most pedig a man:dmesg[8] kimenetében ellenõrizzük, hogy történt-e valamilyen hiba a betöltés során. Ha minden jól ment, akkor az alábbiakhoz hasonló kimenetet produkált:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -488,7 +488,7 @@ Ahogy betöltõdött a megfelelõ meghajtó a hálózati kártyánkhoz, be is ke
A rendszerünkben beállított hálózati csatolófelületek megjelenítéséhez gépeljük be a következõ parancsot:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -533,7 +533,7 @@ A példában a [.filename]#dc0# eszköz aktív és mûködõképes. Ennek legfon
Amennyiben az man:ifconfig[8] kimenete valami ilyesmi:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -564,7 +564,7 @@ Mindezek mellett az [.filename]#/etc/hosts# állományba is be kell írnunk a he
====
Ha a géppel szeretnénk majd csatlakozni az internetre, akkor ne felejtsük el manuálisan beállítani az alapértelmezett átjárót és a névfeloldáshoz szükséges kiszolgálót:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="alapertelmezett_atjaro"' >> /etc/rc.conf
# echo 'nameserver DNS_kiszolgalo' >> /etc/resolv.conf
@@ -576,7 +576,7 @@ Ha a géppel szeretnénk majd csatlakozni az internetre, akkor ne felejtsük el
Miután az [.filename]#/etc/rc.conf# állományban elvégeztük a szükséges változtatásokat, érdemes újraindítanunk a rendszerünket. Ennek révén érvényesítjük a csatolófelületekkel kapcsolatos változtatásainkat és ellenõrizzük, hogy így a rendszer mindenféle hibaüzenet nélkül képes elindulni. A másik lehetõség, ha csak magát a hálózati alrendszer konfigurációját indítjuk el újra:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif restart
....
@@ -585,7 +585,7 @@ Miután az [.filename]#/etc/rc.conf# állományban elvégeztük a szükséges v
====
Ha az [.filename]#/etc/rc.conf# állományban már beállítottuk az alapértelmezett átjárót, akkor elegendõ csupán ez a parancs:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing restart
....
@@ -600,7 +600,7 @@ Az Ethernet kártyák helyes beállításának vizsgálatához két dolgot kell
Elsõként tehát próbáljuk meg a helyi felületet:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -617,7 +617,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Most pedig pingeljünk meg egy másik számítógépet a helyi hálózaton:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -924,14 +924,14 @@ A man:sysctl[8] két funkciót rejt magában: a rendszer beállításainak leké
Így nézhetjük meg az összes lekérdezhetó változót:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Így kérhetjük egy konkrét változó, például a `kern.maxproc` értékét:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -939,7 +939,7 @@ kern.maxproc: 1044
Egy adott változó értékének módosításához pedig használjuk a _változó_=_érték_ felírást:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -956,7 +956,7 @@ Egyes esetekben szükséges lehet a man:sysctl[8] írásvédett változóinak m
Például egyes laptopoknál a man:cardbus[4] eszköz nem próbálkozik több memóriaterület használatával, ezért egy ehhez hasonló hibával leáll:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1004,7 +1004,7 @@ A rendszermag `SCSI_DELAY` nevû beállítása a rendszer indulásának idejét
A man:tunefs[8] nevû program használható az állományrendszerek finomhangolására. Nagyon sok opciót találhatunk benne, de itt most csak a "Soft Updates" ki- és bekapcsolásával foglalkozunk, amit a következõ módon tehetünk meg:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /allomanyrendszer
# tunefs -n disable /allomanyrendszer
@@ -1090,7 +1090,7 @@ A vnode egy állomány vagy könyvtár belsõ ábrázolása. Ennek megfelelõen
Így kérhetjük le a pillanatnyilag használatban levõ vnode-ok mennyiségét:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1098,7 +1098,7 @@ vfs.numvnodes: 91349
Így tudhatjuk meg a vnode-ok maximális számát:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1140,14 +1140,14 @@ device md # Memória "lemezek"
+
. Hozzunk létre egy lapozóállományt ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
+
. Állítsuk be rá a megfelelõ engedélyeket ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1161,7 +1161,7 @@ swapfile="/usr/swap0" # Állítsuk be swapfile értékét, ha külsõ lapozó
+
. Indítsuk újra a számítógépünket, vagy a lapozóállomány azonnali használtba vételéhez írjuk be:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1203,7 +1203,7 @@ Az ACPI és az APM nem használató egyszerre. Közülük a késõbb betöltött
Az ACPI és az man:acpiconf[8] használatával a rendszerünk készenléti módba helyezhetõ az `-s` valamint az `1-5` paraméterek megadásával. Ezek közül is a legtöbb felhasználó számára csak az `1` vagy a `3` (állapot mentése a fizikai memóriába) érdekes. Az `5` opció egy szoftveres kikapcsolást eredményez, ehhez hasonlóan:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1233,7 +1233,7 @@ Megkérnénk azokat, akik hibát akarnak bejelenteni, hogy a következõ inform
* A `sysctl hw.acpi` parancs kimenete. Ezzel egyébként kitûnõen kideríthetõ, milyen lehetõségeket is kínál fel a rendszerünk.
* Az általunk használt _ACPI forrásnyelvének_ (ACPI Source Language, ASL) elérhetõsége az interneten. Mivel ezek akár igen nagyok is lehetnek, ezért a listára közvetlenül ne küldjünk ASL kódokat! Az ASL másolatát az alábbi parancs kiadásával hozhatjuk létre:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > név-rendszer.asl
....
@@ -1266,7 +1266,7 @@ Az ACPI három (STR) állapotban képes a fizikai memória segítségével kész
A rendszerünk által ismert készenléti módokat a `sysctl hw.acpi` paranccsal ellenõrizhetjük. Íme mindez egy Thinkpad esetén:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1278,7 +1278,7 @@ A felfüggesztés és folytatás kipróbálása során kezdjük az `S1` állapot
Felfüggesztés és folytatás esetén gyakori probléma, hogy sok eszközmeghajtó nem menti el, nem állítja vissza vagy éppen nem hozza újra rendesen mûködésbe az adott eszközön található firmware-t, a regisztereket vagy memóriát. Az okok felderítéséhez elõször érdemes a következõket kipróbálni:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1322,7 +1322,7 @@ Ha más gondjaink lennének az ACPI-val (dokkoló állomásunk van, egyes eszkö
A problémák leggyakoribb forrása, hogy a BIOS-gyártók rossz (vagy kifejezetten hibás!) bytekódokat adnak. Ez általában a következõhöz hasonló rendszerüzenetbõl derül ki:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1332,7 +1332,7 @@ Az ilyen jellegû hibákat gyakran úgy lehet orvosolni, ha a BIOS-unkat frissí
Elsõként próbáljuk meg újrafordítani az így nyert ASL programot és keressünk benne hibákat. A figyelmeztetések általában nyugodtan figyelmen kívül hagyhatóak, azonban a hibák olyan implementációs hibákra utalnak, amelyek akadályozzák az ACPI helyes mûködését. Az ASL újrafordítását az alábbi paranccsal tudjuk elvégezni:
-[source,bash]
+[source,shell]
....
# iasl saját.asl
....
@@ -1356,7 +1356,7 @@ Bizonyos módszerek a szabvány szerint elvártaktól eltérõen nem adnak vissz
Miután módosítottuk a [.filename]#saját.asl# állományunkat, így tudjuk lefordítani:
-[source,bash]
+[source,shell]
....
# iasl saját.asl
....
@@ -1380,7 +1380,7 @@ Az ACPI meghajtója nagyon rugalmas nyomkövetési lehetõségekkel rendelkezik.
A nyomkövetés alapértelmezés szerint nem engedélyezett. Az engedélyezéséhez hozzá kell adnunk az `options ACPI_DEBUG` sort a rendszermagunk beállításait tartalmazó állományhoz, amennyiben a rendszermagba fordítjuk az ACPI támogatást. Ha az [.filename]#/etc/make.conf# állományba írjuk bele az `ACPI_DEBUG=1` sort, akkor azt globálisan engedélyezhetjük. Ha modulként használjuk, elegendõ csak a következõ módon újrafordítani az [.filename]#acpi.ko# modult:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/hu/books/handbook/cutting-edge/_index.adoc b/documentation/content/hu/books/handbook/cutting-edge/_index.adoc
index 4ad8ebf0b0..43ffef9b95 100644
--- a/documentation/content/hu/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/hu/books/handbook/cutting-edge/_index.adoc
@@ -152,7 +152,7 @@ Ha ennél a beállításnál a `yes` értéket adjuk meg, akkor a `freebsd-updat
A biztonsági javítások mindig egy távoli gépen tárolódnak, a következõ parancsok használatával tölthetõek le és telepíthetõek:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -169,7 +169,7 @@ A bejegyzés szerint naponta egyszer le fog futni a `freebsd-update`. Ilyenkor,
Probléma esetén az alábbi paranccsal megkérhetjük a `freebsd-update` programot a legutóbb telepített módosítások visszavonására:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -195,7 +195,7 @@ A `freebsd-update` által terjesztett frissítések nem mindig érintik a rendsz
Verziók közti váltás során a külsõ alkalmazások mûkõdését akadályozó régi tárgykódok és függvénykönyvtárak törlõdni fognak. Ezért javasoljuk, hogy vagy töröljük le az összes portot és telepítsük újra, vagy az alaprendszer frissítése után hozzuk ezeket is naprakész állapotba a package:ports-mgmt/portupgrade[] segédprogram segítségével. Elõször minden bizonnyal szeretnék kipróbálni a frissítést, ezt a következõ paranccsal tehetjük meg:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -207,7 +207,7 @@ Ha saját rendszermagot használunk, akkor ennél valamivel azért több feladat
* Ha a saját rendszermagot még csak egyszer fordítottuk, akkor a [.filename]#/boot/kernel.old# könyvtárban még megtalálható a `GENERIC`. Ezt nevezzük át egyszerûen [.filename]#/boot/GENERIC# könyvtárra.
* Ha fizikailag hozzá tudunk férni az érintett géphez, akkor a `GENERIC` egy példányát akár CD-rõl is átmásolhatjuk. Helyezzük be a telepítõlemezt és adjuk ki a következõ parancsokat:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -217,7 +217,7 @@ Ha saját rendszermagot használunk, akkor ennél valamivel azért több feladat
Itt a [.filename]#X.Y-RELEASE# könyvtár nevében értelemszerûen helyettesítsük be az általunk használt változatot. A `GENERIC` rendszermag ekkor alapértelmezés szerint a [.filename]#/boot/GENERIC# könyvtárba kerül.
* Ha az elõbbiek közül egyik sem lehetséges, akkor a `GENERIC` rendszermagot közvetlenül akár forrásból is lefordíthatjuk és telepíthetjük:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
@@ -231,14 +231,14 @@ Nem kötelezõ újraindítani a rendszert a `GENERIC` rendszermaggal.
A `freebsd-update` képes frissíteni rendszerünket egy adott kiadásra. Például a következõ paraméterek megadásával válthatunk a FreeBSD 6.4 használatára:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 6.4-RELEASE upgrade
....
A parancs elindulása után nem sokkal, a váltáshoz szükséges információk összegyûjtéséhez a `freebsd-update` elemzi a konfigurációs állományában megadott beállításokat és a rendszer jelenleg használt verzióját. A képernyõn ekkor sorban megjelennek a program részérõl érzékelt és nem érzékelt komponensek. Mint például ahogy itt látható:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 6.3-RELEASE from update1.FreeBSD.org... done.
@@ -262,7 +262,7 @@ Ekkor a `freebsd-update` megpróbálja letölteni a verziók közti váltáshoz
A saját rendszermag használatakor az iménti lépés valamilyen ehhez hasonló figyelmeztetést fog adni:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "SAJÁT RENDSZERMAG" kernel, which is not a
kernel configuration distributed as part of FreeBSD 6.3-RELEASE.
@@ -281,14 +281,14 @@ A rendszerben ekkor még nem lesz jelen semmilyen konkrét változás, az össze
A frissítési eljárás végén a következõ parancs kiadásával tudjuk ténylegesen érvényesíteni az eddig elvégzett módosításokat:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
Elõször mindig a rendszermag és a hozzá tartozó modulok cserélõdnek le. Ahogy ez végrehajtódott, újra kell indítanunk a rendszert. Ha saját rendszermagot használunk, akkor a man:nextboot[8] parancs segítségével állítsuk be a következõ rendszerindítás során betöltendõ rendszermagot a [.filename]#/boot/GENERIC# könyvtárban levõre (ezt frissítettük):
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -301,14 +301,14 @@ Mielõtt újraindítanánk a gépünket a `GENERIC` rendszermaggal, gyõzõdjün
A rendszerünk most már újraindítható a frissített rendszermaggal:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
A rendszer sikeres újraindulása után ismét el kell indítanunk a `freebsd-update` programot, amely korábban már elmentette a frissítés állapotát, emiatt a legutóbbi pontról fog folytatódni, illetve törli az osztott könyvtárak és tárgykódok régebbi változatait. Innen az alábbi paranccsal léphetünk tovább:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -320,7 +320,7 @@ A függvénykönyvtárak verziói közti eltérések mértékétõl függõen el
Most pedig újra kell fordítanunk vagy telepítenünk az összes általunk korábban használt külsõ alkalmazást. Erre azért van szükségünk, mert bizonyos alkalmazások a verziók közti váltás során törölt programkönyvtáraktól függtek. Ennek automatizálásában a package:ports-mgmt/portupgrade[] lesz segítségünkre. Az alkalmazások frissítésének elindításához a következõ parancsokat használjuk:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -331,7 +331,7 @@ Most pedig újra kell fordítanunk vagy telepítenünk az összes általunk kor
A parancsok lefutását követõen a `freebsd-update` utolsó hívásával zárjuk le a frissítést. Ezzel a paranccsal tudunk tehát pontot tenni a frissítési procedúra végére:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -345,7 +345,7 @@ Indítsuk újra a rendszert a FreeBSD frissített változatával. A folyamat ezz
A `freebsd-update` ragyogóan felhasználható a FreeBSD egy telepített változatának és egy általunk garantáltan megbízható példányának összevetésére. Ilyenkor a rendszerhez tartozó segédprogramokat, programkönyvtárakat és konfigurációs állományokat ellenõriztethetjük le. Az összehasonlítást ezzel a paranccsal kezdhetjük meg:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> eredmeny.idk
....
@@ -360,7 +360,7 @@ A parancs kiadása után megkezdõdik a rendszer vizsgálata, és az ellenõrzé
Az így keletkezõ állomány sorai ugyan meglehetõsen hosszúak, de szerencsére viszonylag könnyen értelmezhetõek. Például az adott kiadásban szereplõ állományoktól eltérõeket ezzel a paranccsal kérdezhetjük le:
-[source,bash]
+[source,shell]
....
# cat eredmeny.idk | awk '{ print $1 }' | more
/etc/master.passwd
@@ -378,7 +378,7 @@ A korábban tárgyaltaktól függetlenül ez a rendszer alkalmas bonyolultabb fr
A FreeBSD alaprendszer a Portgyûjtemény frissítéséhez is tartalmaz egy man:portsnap[8] elnevezésû segédprogramot. Ez a program elindítása után csatlakozik egy távoli géphez, ellenõrzi a biztonsági kulcsát és letölti a portok legfrissebb változatait. A biztonsági kulcs feladata a frissítés közben letöltött állományok sértetlenségének szavatolása, ezzel gondoskodik róla, hogy az adatok átvitelük közben nem változtak meg. A Portgyûjtemény legújabb változatát így érhetjük el:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
@@ -397,7 +397,7 @@ A példában látható, hogy a man:portsnap[8] eltéréseket talált a helyi és
Ahogy a man:portsnap[8] sikeresen befejezi az imént kiadott `fetch` mûvelet végrehajtását, a helyi rendszeren már telepítésre készen fognak várakozni a Portgyûjtemény és az hozzá tartozó ellenõrzött módosítások. A `portsnap` elsõ használatakor az `extract` parancs segítségével telepíthetjük a frissített állományokat:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -416,7 +416,7 @@ Ahogy a man:portsnap[8] sikeresen befejezi az imént kiadott `fetch` mûvelet v
Egy korábban már telepített Portgyûjteményt a `portsnap update` paranccsal tudunk frissíteni:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -425,7 +425,7 @@ Ezzel lezárult a portok frissítése, innentõl már az aktualizált Portgyûjt
A `fetch`, `extract` vagy `update` mûveletek egyetlen parancsba is összefûzhetõek, ahogy ezt az alábbi példában is láthatjuk:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -465,7 +465,7 @@ A CVSup telepítésével kapcsolatban pedig részletesebb információkat a cros
A [.filename]#/usr/shared/examples/cvsup/doc-supfile# konfigurációs állomány segítségével a CVSup képes letölteni a dokumentáció forrásállományainak legfrissebb példányait. Itt a frissítést alapértelmezés szerint egy nem létezõ géptõl fogjuk kérni (mivel ezt kötelezõ kitölteni), azonban a man:cvsup[1] programnak egy parancssori paraméter segítségével megadhatjuk melyik CVSup szerverrõl töltse le a forrásokat:
-[source,bash]
+[source,shell]
....
# cvsup -h cvsup.FreeBSD.org -g -L 2 /usr/shared/examples/cvsup/doc-supfile
....
@@ -478,7 +478,7 @@ Késõbb a forrásokat ugyanezzel a paranccsal tudjuk frissíteni. A CVSup ugyan
A források letöltése után a dokumentációt például az ekkor keletkezett [.filename]#/usr/doc# könyvtárban található [.filename]#Makefile# használatával állíthatjuk elõ. Tehát miután az [.filename]#/etc/make.conf# állományban beállítottuk a `SUP_UPDATE`, `SUPHOST` és `DOCSUPFILE` változókat, le tudjuk futtatni a következõ parancsot:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update
@@ -528,7 +528,7 @@ Miután sikerült letöltenünk a [.filename]#/usr/doc# könyvtárba a dokument
A `DOCLANG` értékeként megadott nyelven készült dokumentációkat a következõ paranccsal tudjuk frissíteni:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -536,7 +536,7 @@ A `DOCLANG` értékeként megadott nyelven készült dokumentációkat a követk
Ha a [.filename]#make.conf# állományban korábban már megadtuk a `DOCSUPFILE`, `SUPHOST` és `SUP_UPDATE` változók értékeit, akkor a telepítés fázisa könnyedén össze is vonatható a források frissítésével:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update install clean
@@ -544,7 +544,7 @@ Ha a [.filename]#make.conf# állományban korábban már megadtuk a `DOCSUPFILE`
Ha pedig csak bizonyos nyelvekhez tartozó dokumentációt szeretnénk frissíteni, akkor a man:make[1] akár a [.filename]#/usr/doc# könyvtáron belül az egyes nyelvekhez tartozó alkönyvtárakon belül is meghívható, például:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make update install clean
@@ -552,7 +552,7 @@ Ha pedig csak bizonyos nyelvekhez tartozó dokumentációt szeretnénk frissíte
A dokumentáció formátumát a `FORMATS` változó felhasználásával tudjuk meghatározni:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -586,7 +586,7 @@ A dokumentációs portok a következõ módon szervezõdnek:
Az eddigi összefoglaltaknak megfelelõen a dokumentációs portokat forrásból a következõ paranccsal lehet telepíteni (`root` felhasználóként):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -615,7 +615,7 @@ A dokumentáció telepítésének helye. Alapértelmezés szerint ez a [.filenam
Az elõbbieket most egy rövid példán keresztül összefoglaljuk. A következõ paranccsal tudjuk tehát a magyar nyelvû dokumentáció Portable Document Format változatát telepíteni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -635,7 +635,7 @@ A bináris csomagok használata esetén a FreeBSD dokumentációja az adott nyel
Például az alábbi paranccsal a magyar nyelvû dokumentációhoz tartozó legfrissebb bináris csomagot tudjuk telepíteni:
-[source,bash]
+[source,shell]
....
# pkg_add -r hu-freebsd-doc
....
@@ -650,7 +650,7 @@ A csomagok elnevezése eltér a hozzá tartozó port nevétõl. Alakja a követk
Az elõzetesen telepített dokumentációs portok bármilyen portok frissítésére alkalmas eszközzel frissíthetõek. Például a telepített magyar nyelvû dokumentáció a package:ports-mgmt/portupgrade[] eszközön keresztül így frissíthetõ csomagok használatával:
-[source,bash]
+[source,shell]
....
# portupgrade -PP hu-freebsd-doc
....
@@ -865,7 +865,7 @@ A FreeBSD 3._X_ vagy annál is korábbi változatok frissítése még ennél is
+
Röviden tehát a FreeBSD forráskódon keresztüli frissítését így foglalhatjuk össze:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -881,7 +881,7 @@ Néhány ritka esetben a `buildworld` lépés elõtt szükségünk lehet a `merg
Miután az `installkernel` sikeresen befejezte a munkáját, indítsuk újra a számítógépet egyfelhasználós módban (a betöltõ parancssorában adjuk ki `boot -s` parancsot). Itt futtassuk a következõket:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
# mount -a -t ufs
@@ -930,7 +930,7 @@ Erre például szolgálhat a `smmsp` felhasználó esete. Nélküle a felhaszná
Ezt úgy lehetett megoldani, hogy még az alaprendszer lefordítása (a `buildworld`) elõtt meg kellett hívni a man:mergemaster[8] parancsot a `-p` paraméterrel. Így csak azokat az állományokat fogja összehasonlítani, amelyek feltétlenül szükségesek a `buildworld` vagy az `installworld` sikeres mûködéséhez. Amennyiben a `mergemaster` egy olyan verziójával rendelkezünk, amely nem ismeri a `-p` paramétert, akkor az elsõ indításakor használjuk a forrásfában található újabb verzióját:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/mergemaster
# ./mergemaster.sh -p
@@ -941,7 +941,7 @@ Ezt úgy lehetett megoldani, hogy még az alaprendszer lefordítása (a `buildwo
Ha különösen paranoiásak vagyunk, akkor a csoport törlése vagy átnevezése elõtt az alábbi paranccsal ellenõrizni tudjuk az általa birtokolt állományokat:
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -958,14 +958,14 @@ Másik lehetõség gyanánt a rendszert magát lefordíthatjuk többfelhasznál
Egy mûködõ rendszerben rendszeradminisztrátorként az alábbi parancs kiadásával válthatunk át egyfelhasználós módba:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Ezt elérhetjük úgy is, ha újraindítjuk a rendszert és a rendszer indításakor a "single user" pontot választjuk a menübõl. Ekkor a rendszer egyfelhasználós módban indul el. Miután ez megtörtént, adjuk ki a következõ parancsokat:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -979,7 +979,7 @@ Ezekkel a parancsokkal elõször ellenõrizzük az állományrendszereket, ezut
====
Ha a gépünk óráját nem a greenwich-i, hanem a helyi idõ szerint állítottuk be (ez akkor áll fenn, ha a man:date[1] parancs nem a helyes idõt és idõzónát jelzi ki), akkor még erre is szükségünk lehet:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -996,7 +996,7 @@ Ha mindenestõl töröljük ezt a könyvtárat, akkor növeli tudjuk a `make bui
Egyes [.filename]#/usr/obj# könyvtáron belüli állományoknál szerepelhet a "megváltoztathatatlan" (immutable) állományjelzõ (lásd man:chflags[1]), amelyet a mûvelet elvégzéséhez elõször el kell távolítanunk.
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -1012,7 +1012,7 @@ Jól járunk azzal, ha a man:make[1] futásának kimenetét elmentjük egy állo
Ezt egyébként a legegyszerûbben a man:script[1] parancs segítségével oldhatjuk meg, amelynek paraméteréül azt az állományt kell megadni, ahova menteni akarjuk a kimenetet. Ezt közvetlenül a rendszer újrafordítása elõtt kell kiadnunk, majd miután megállt, a `exit` paranccsal kiléphetünk belõle.
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -1029,7 +1029,7 @@ Ilyenkor _soha ne_ a [.filename]#/tmp# könyvtárba mentsük a kimenetet, mert e
A [.filename]#/usr/src# könyvtárban kell állnunk:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -1040,7 +1040,7 @@ Az alaprendszert a man:make[1] paranccsal fordíthatjuk újra. Ez a [.filename]#
A begépelendõ paranccsor általános alakja tehát a következõképpen néz ki:
-[source,bash]
+[source,shell]
....
# make -x -DVÁLTOZÓ target
....
@@ -1049,7 +1049,7 @@ A fenti példában a `-_x_` egy olyan a paraméter, amelyet a man:make[1] progra
A `-D_VÁLTOZÓ_` alakú paraméterek közvetlenül a [.filename]#Makefile# állománynak adnak át olyan változókat, amelyek segítségével vezérelhetõ a viselkedése. Ezek ugyanazok a változók, mint amelyek az [.filename]#/etc/make.conf# állományban is szerepelnek, és itt a beállításuk egy másik módját kapjuk. Így a
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE target
....
@@ -1069,7 +1069,7 @@ Egyes targetek ugyan megjelennek a [.filename]#Makefile# állományban, azonban
A legtöbb esetben azonban semmilyen paramétert nem kell átadnunk a man:make[1] parancsnak, ezért a teljes formája így fog kinézni:
-[source,bash]
+[source,shell]
....
# make target
....
@@ -1086,7 +1086,7 @@ Noha a `world` mint target még mindig létezik, használata határozottan ellen
A
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -1095,7 +1095,7 @@ parancs kiadásakor a `make` parancsnak megadható egy `-j` paraméter is, amell
Tehát egy átlagos egyprocesszoros gépen így adható ki a parancs:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -1121,7 +1121,7 @@ FreeBSD alatt egy új rendszermag építése elõtt fontos <<make-buildworld,új
====
Ha saját beállításaink szerint akarunk rendszermagot létrehozni és már van is ehhez egy konfigurációs állományunk, akkor erre használhatjuk a `KERNCONF=SAJÁTMAG` paramétert is, valahogy így:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=SAJÁTMAG
@@ -1144,7 +1144,7 @@ Ha a FreeBSD friss változatát nemrég fordítottuk le a `make buildworld` para
Tehát írjuk be ezeket:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -1156,14 +1156,14 @@ Amennyiben a paranccsorban a `make buildworld` használata során adtunk meg vá
Ennek megfelelõen tehát ha korábban ezt írtuk be:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
akkor így telepítsünk:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -1210,7 +1210,7 @@ Saját magunk a legegyszerûbben ezt úgy tudjuk megoldani, ha telepítjük az
====
Habár elméletileg magától semmi sem fogja bántani ezt a könyvtárat, azért ettõl függetlenül mindig érdemes biztosra menni. Ezért másoljuk az [.filename]#/etc# könyvtár tartalmát egy megbízható helyre. Például:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -1220,7 +1220,7 @@ Az `-R` itt a rekurzív másolást jelenti, a `-p` pedig a dátumok, az állomá
Az [.filename]#/etc# új változatának telepítéséhez szükségünk lesz még további könyvtárakra is. Erre a feladatra a [.filename]#/var/tmp/root# tökéletesen megfelel, ahol még létre kell hoznunk néhány alkönyvtárat.
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -1229,7 +1229,7 @@ Az [.filename]#/etc# új változatának telepítéséhez szükségünk lesz még
Ezzel létrejön a szükséges könyvtárszerkezet és települnek az állományok. Sok üres alkönyvtár is keletkezik a [.filename]#/var/tmp/root# könyvtáron belül, ezeket töröljük. Ezt a legkönnyebben így tehetjük meg:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2/dev/null
@@ -1243,7 +1243,7 @@ Vegyük észre, hogy a [.filename]#/var/tmp/root# könyvtárba telepített állo
A man:diff[1] alkalmazásával legegyszerûbben így tudunk összehasonlítani két állományt:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -1261,7 +1261,7 @@ Az iménti folyamatot fel tudjuk gyorsítani, hogy ha az [.filename]#/etc# legut
======
. A megszokottak szerint fordítsuk le a rendszert. Majd amikor az [.filename]#/etc# könyvtárat és a többit is frissíteni akarjuk, a célként megadott könyvtár nevében adjuk meg a dátumot. Ha tehát például 1998. február 14. van, akkor írjuk ezt:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -1275,7 +1275,7 @@ Befejezés után _õrizzük meg_ a [.filename]#/var/tmp/root-19980214# könyvtá
. Mikor újra letöltjük a legfrissebb forrásokat és megismételjük az elõbbi lépéseket, haladjunk megint az elsõ lépés szerint. Ekkor tehát létrejön egy újabb könyvtár, amelynek a neve ezúttal már [.filename]#/var/tmp/root-19980221# lesz (ha például hetente frissítünk).
. Most már meg tudjuk vizsgálni a közbeesõ héten született eltéréseket, ha a két könyvtárra kiadunk egy rekurzív man:diff[1] hívást:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1284,7 +1284,7 @@ Befejezés után _õrizzük meg_ a [.filename]#/var/tmp/root-19980214# könyvtá
Általában így kevesebb eltérést kapunk, mint amennyi például a [.filename]#/var/tmp/root-19980221/etc/# és az [.filename]#/etc# összehasonlítása során elkerült volna. Mivel kisebb a keletkezett különbségek száma, ezért könnyebb lesz átvinnünk az [.filename]#/etc# könyvtárunkba is a módosításokat.
. Ezután törölhetjük a régebbi [.filename]#/var/tmp/root-*# könyvtárat:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1294,7 +1294,7 @@ Befejezés után _õrizzük meg_ a [.filename]#/var/tmp/root-19980214# könyvtá
A man:date[1] meghívásával akár automatikussá is tehetjük a könyvtárak névadását:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1306,7 +1306,7 @@ A man:date[1] meghívásával akár automatikussá is tehetjük a könyvtárak n
Ezzel készen is vagyunk. Miután ellenõriztük, hogy minden a megfelelõ helyére került, indítsuk újra a rendszert. Ehhez egy egyszerû man:shutdown[8] is elegendõ:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1317,7 +1317,7 @@ Gratulálunk, sikerült frissítenünk a FreeBSD rendszerünket.
Ha mégis valami balul ütne ki, könnyen újra tudjuk fordítani a rendszer egyes részeit. Például, ha véletlenül letöröltük az [.filename]#/etc/magic# állományt az [.filename]#/etc# frissítése vagy összefésülése során, a man:file[1] parancs nem fog tudni rendesen mûködni. Ilyenkor a következõket kell tennünk a hiba kijavításához:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1330,7 +1330,7 @@ Ha mégis valami balul ütne ki, könnyen újra tudjuk fordítani a rendszer egy
Nem könnyû választ adni erre a kérdésre, mivel ez alapvetõen a változtatás jellegétõl függ. Például, ha elindítjuk a CVSup programot és csak az alábbi állományok frissülnek:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1369,7 +1369,7 @@ _Általában_ (tehát nem feltétlenül minden esetben) a `make buildworld` lefo
Ha tudjuk, hogy az utolsó fázisban álltunk le (mivel megnéztük a fordításhoz tartozó kimenetet), akkor (minden további nélkül) elég ennyi:
-[source,bash]
+[source,shell]
....
kijavítjuk a hibát ...
# cd /usr/src
@@ -1380,7 +1380,7 @@ Ezzel megmarad a korábbi `make buildworld` munkájának eredménye.
Ha ezt az üzenetet látjuk a `make buildworld` kimenetében:
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1401,7 +1401,7 @@ Amennyiben viszont nem látunk ilyen üzenetet, vagy nem vagyunk benne biztosak,
* Ha a man:make[1] parancsnak átadjuk a `-j_n_` paramétert, akkor képes több mindent párhuzamosan futtatni. Ez sok esetben segít attól függetlenül, hogy egy- vagy többprocesszoros gépünk van.
* A [.filename]#/usr/src# könyvtárat tartalmazó állományrendszert csatlakoztathatjuk (vagy újracsatlakoztathatjuk) a `noatime` beállítással. Ilyenkor az állományrendszer nem rögzíti a hozzáférés idejét. Erre az információra sincs igazából szükségünk.
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1422,7 +1422,7 @@ Ne felejtsük el azonban, hogy ezzel együtt az állományrendszerünk is sérü
Ha egyedül csak a [.filename]#/usr/obj# található ezen az állományrendszeren, akkor ez nem jelent akkora veszélyt. Amikor viszont rajta kívül még értékes adat is található az állományrendszeren, a beállítás érvényesítése elõtt mindenképpen készítsünk róla friss mentéseket.
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1437,7 +1437,7 @@ Ahogy arról az elõbb is szó esett, ha a [.filename]#/usr/obj# nem egy külön
Egyértelmûen bizonyosodjunk meg róla, hogy a korábbi fordításokból nem maradtak vissza semmiféle kóbor állományok. Ennyi sokszor pontosan elég.
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
diff --git a/documentation/content/hu/books/handbook/desktop/_index.adoc b/documentation/content/hu/books/handbook/desktop/_index.adoc
index 1e7475a339..e7d58bc596 100644
--- a/documentation/content/hu/books/handbook/desktop/_index.adoc
+++ b/documentation/content/hu/books/handbook/desktop/_index.adoc
@@ -109,21 +109,21 @@ A Firefox egy modern, szabad és nyílt forráskódú böngészõ, amely tökél
Csomagból így telepíthetõ:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Ekkor a Firefox 3.6 változata fog települni. Ha helyette a Firefox 3.5 változatát szeretnénk használni, akkor ezt a parancsot adjuk ki:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox35
....
Ha forrásból szeretnénk felrakni, használhatjuk a Portgyûjteményben található portját is:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -154,7 +154,7 @@ A másik lehetõség a Diablo JRE(TM) (valamint a Diablo JDK(TM)) telepítése a
Indítsuk el a böngészõnket, és írjuk be a címsorba, hogy `about:plugins` és nyomjuk le az kbd:[Enter] billentyût. Az eredményül kapott oldalon láthatjuk az eddig telepített pluginok listáját, ahol mostanra már a Java(TM) pluginnak is meg kell jelennie. Amennyiben ez nem következne be, mindegyik felhasználónál adjuk ki az alábbi parancsot:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
$HOME/.mozilla/plugins/
@@ -162,7 +162,7 @@ Indítsuk el a böngészõnket, és írjuk be a címsorba, hogy `about:plugins`
Vagy ha a Diablo JDK(TM) csomagot telepítettük:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \
$HOME/.mozilla/plugins/
@@ -203,7 +203,7 @@ Ezt követõen telepítsük a package:www/linux-f10-flashplugin10[] portot. Ekko
+
Ezen változat beüzemeléséhez még létre kell hoznunk az alábbi linket:
+
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -212,14 +212,14 @@ Ezen változat beüzemeléséhez még létre kell hoznunk az alábbi linket:
Miután a FreeBSD rendszerünk változatának megfelelõen elvégeztük a Flash(TM) port telepítését, a plugint az egyes felhasználóknak a `nspluginwrapper` paranccsal tehetjük elérhetõvé:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
Ha Flash(TM) animációkat szeretnénk lejátszani, akkor ehhez a [.filename]#/usr/compat/linux/proc# könyvtárba csatlakoztatnunk kell egy man:linprocfs[5] típusú linuxos proc állományrendszert. Ezt a következõ paranccsal tehetjük meg:
-[source,bash]
+[source,shell]
....
# mount -t linprocfs linproc /usr/compat/linux/proc
....
@@ -240,14 +240,14 @@ Az Swfdec egy Flash(TM) animációk dekódolásáért és megjelenítéséért f
Ha nem akarjuk vagy netalán nem tudjuk forrásból lefordítani, akkor egyszerûen csak telepítsük csomagként a hálózaton keresztül:
-[source,bash]
+[source,shell]
....
# pkg_add -r swfdec-plugin
....
Ha valamiért mégsem érhetõ el hozzá csomag, akkor a Portgyûjteménybõl is telepíthetjük:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/swfdec-plugin
# make install clean
@@ -261,14 +261,14 @@ Az Opera egy sokoldalú és szabványokkal kompatibilis böngészõ. Tartalmaz b
Az Opera FreeBSD-s változatát a megfelelõ csomag telepítésével érhetjük el:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Habár egyes FTP oldalakon nem található meg az összes csomag, viszont a Portgyûjteménybõl még ekkor is be tudjuk szerezni az Operat:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -328,14 +328,14 @@ A legfrissebb KOffice telepítése elõtt bizonyosodjuk meg róla, hogy a KDE le
Ha a KOffice-t csomagként akarjuk telepíteni, akkor adjuk ki az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Amennyiben ez a csomag nem érhetõ el, telepíthetjük a Portgyûjteménybõl is. Például a KDE3-hoz tartozó KOffice-t így rakhatjuk fel:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -349,14 +349,14 @@ Az AbiWord képes többféle állományformátumba exportálni és onnan import
Az AbiWord csomagból telepíthetõ a következõ módon:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Amennyiben ez a csomag nem érhetõ el, lefordítható a Portgyûjteménybõl is, ami ráadásul sokszor egy frissebb verziót tartalmaz. Ezt így tudjuk megtenni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -368,14 +368,14 @@ Képek készítésére vagy retusálásra a The GIMP a legfejlettebb képszerkes
A hozzá tartozó csomag a következõ módon telepíthetõ fel:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Ha a csomagoknak beállított FTP oldalon nem található meg ez a csomag, megpróbálkozhatunk vele a Portgyûjteményen keresztül is. A gyûjtemény http://www.FreeBSD.org/ports/[graphics] könyvtárában ezen felül fellelhetjük a The Gimp Manualt, vagyis a The GIMP kézikönyvét. Így kell ezeket innen telepíteni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -396,7 +396,7 @@ Az OpenOffice.org szövegszerkesztõje natív XML állományformátumot használ
Az OpenOffice.org telepítéséhez ennyit kell csak beírni:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -408,7 +408,7 @@ Ha a FreeBSD -RELEASE ágát használjuk, ennek mûködnie kell. Ettõl eltérõ
Ahogy sikerült feltelepíteni a csomagot, egyszerûen csak be kell gépelni a következõ parancsot az OpenOffice.org futtatásához:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -420,7 +420,7 @@ Az elsõ futtatás során válaszolnunk kell még néhány további kérdésre i
Ha nem érhetõek el OpenOffice.org csomagok, lefordíthatjuk a forrását is. Azonban mielõtt még ennek nekilátnánk, el kell fogadnunk, hogy ez a mûvelet a lemezünkön rettenetesen sok területet fog igényelni és meglehetõsen sokáig tart.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-3
# make install clean
@@ -430,7 +430,7 @@ Ha nem érhetõek el OpenOffice.org csomagok, lefordíthatjuk a forrását is. A
====
Ha egy honosított verziót szeretnénk fordítani, az utolsó parancs helyett írjuk inkább ezt:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=nyelv install clean
....
@@ -440,7 +440,7 @@ A _nyelv_ helyett itt természetesen a nyelvnek megfelelõ ISO-kódot kell megad
Ahogy a fordítás befejezõdött, az OpenOffice.org így indítható el parancssorból:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -487,7 +487,7 @@ A dokumentumok többsége manapság PDF (Portable Document Format, avagy "hordoz
Ha az Acrobat Reader(R) 8-at a Portgyûjteménybõl akarjuk telepíteni, akkor írjuk be:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread8
# make install clean
@@ -501,14 +501,14 @@ A gv egy PostScript(R) és PDF megjelenítõ. Eredetileg a ghostview alapján k
A gv csomagjának telepítéséhez a következõ parancsot használhatjuk:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Ha pedig nem tudjuk letölteni a csomagot, használhatjuk a Portgyûjteményt is:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -520,14 +520,14 @@ Ha egy egyszerû FreeBSD-s PDF megjelenítõre lenne szükségünk, erre a célr
Az Xpdf csomagjának felrakásához az alábbi parancs javasolt:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Amennyiben nem áll rendelkezésre az említett csomag, vagy egyszerûen csak a Portgyûjteménybõl szeretnénk felrakni, adjuk ki ezeket a parancsokat:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -541,14 +541,14 @@ A GQview egy képkezelõ. Állományokat tudunk megnyitni benne egyetlen kattint
A GQview csomag telepítéséhez ezt a parancsot kell kiadni:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Amikor ez a csomag nem tölthetõ le, vagy amikor inkább a Portgyûjteménybõl szeretnénk felrakni, ezt írjuk be:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -598,14 +598,14 @@ A GnuCash-ben megtalálhatunk egy intelligens nyilvántartást, a számlák hier
A GnuCash-t az alábbi módon tudjuk telepíteni a rendszerünkre:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Ha ez a csomag nem érhetõ el, használhatjuk a Portgyûjteményt is:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -617,14 +617,14 @@ A Gnumeric egy táblázatkezelõ program, a GNOME munkakörnyezet része. Sok es
A Gnumeric telepítését az alábbi paranccsal adhatjuk ki:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Ha valamiért nem érhetõ el ez a csomag, a Portgyûjteménybõl is fel tudjuk rakni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -636,14 +636,14 @@ Az Abacus egy kicsi és egyszerûen használható táblázatkezelõ program. Sz
Az Abacus telepítéséhez csupán ennyit kell tennünk:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Amennyiben viszont nem érhetõ el ez a csomag, használhatjuk a Portgyûjteményt is:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -655,14 +655,14 @@ A KMyMoney a KDE részeként kifejlesztett személyi pénzügyi nyilvántartó.
A KMyMoney csomagként így telepíthetõ:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Ha ez a csomag nem érhetõ el, akkor a Portgyûjteményen keresztül is fel tudjuk rakni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/hu/books/handbook/disks/_index.adoc b/documentation/content/hu/books/handbook/disks/_index.adoc
index 1c1e339569..1d9e4ec8b8 100644
--- a/documentation/content/hu/books/handbook/disks/_index.adoc
+++ b/documentation/content/hu/books/handbook/disks/_index.adoc
@@ -153,7 +153,7 @@ Most már csak annyi teendõnk maradt, hogy felvegyük az [.filename]#/etc/fstab
Ezzel a beállítással a lemezünkre késõbb más operációs rendszereket is telepíthetünk, és nem okoz gondot a saját `fdisk` segédprogramjaik mûködésében. Az új lemezek telepítésénél ezt a módszer ajánlatos követni. A dedikált módot viszont csak abban az esetben használjuk, ha erre nyomós okunk van!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 # inicializáljuk az új lemezt
@@ -171,7 +171,7 @@ IDE-lemezek esetén az[.filename]##ad## eszközt a [.filename]#da# eszközzel he
Amennyiben az új meghajtót nem akarjuk megosztani egyetlen más operációs rendszerrel sem, használhatjuk a `dedicated` (dedikált) módot. Ne felejtsük el azonban, hogy ez képes összezavarni a Microsoft operációs rendszereit, habár ebbõl semmilyen kárunk nem fog származni. Az IBM OS/2(R) operációs rendszere azonban "kisajátít" minden olyan partíciót, amelyet nem tud olvasni.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -184,7 +184,7 @@ Amennyiben az új meghajtót nem akarjuk megosztani egyetlen más operációs re
Egy másik megoldás:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -370,7 +370,7 @@ ar0: WARNING - mirror lost
További információkat az man:atacontrol[8] programtól szerezhetünk:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -397,7 +397,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
====
. A lemez biztonságos eltávolításához elõször válasszuk le (detach) a meghibásodott lemezhez tartozó csatornát:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -405,7 +405,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Cseréljük ki a lemezt.
. Csatlakoztassuk újra (attach) az ATA csatornát:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -414,21 +414,21 @@ Slave: no device present
+
. Tartalékként (spare) adjuk hozzá az új lemezt a tömbhöz:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. Szervezzük újra (rebuild) a tömböt:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. A folyamat elõrehaladását a következõ parancs begépelésével tudjuk figyelni:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[a kimenet többi része]
@@ -481,7 +481,7 @@ Mivel az író is SCSI eszközként látszik, ezért az man:atapicam[4] nem szer
A beállításaink készen állnak a kipróbálásra: csatlakoztassuk a számítógéphez az USB eszközünket és a rendszerüzeneteket tároló pufferben (man:dmesg[8]) hamarosan meg is jelenik a hozzá tartozó meghajtó:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -495,7 +495,7 @@ Természetesen a gyártóra, márkára, az eszköz leírójára ([.filename]#da0
Mivel az USB eszköz SCSI eszközként látszik, ezért a `camcontrol` parancs használható a rendszerhez csatlakoztatott USB tárolóeszközök listázásához:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -547,7 +547,7 @@ Azonban ne felejtsük el, hogy ez csak a rendszer következõ indításától é
Az utolsó lépésben hozzunk létre egy könyvtárat az állományrendszer csatlakoztatásához. Ezt a könyvtárat az a felhasználó fogja birtokolni, aki az állományrendszert csatlakoztatnia akarja. Ez például `root` felhasználóként úgy tudjuk megtenni, ha a felhasználónak létrehozunk egy könyvtárat [.filename]#/mnt/felhasználó# néven (ahol a _felhasználó_ nevet cseréljük a tényleges felhasználó nevére, a _csoport_ nevet pedig a felhasználóhoz tartozó elsõdleges csoport nevére):
-[source,bash]
+[source,shell]
....
# mkdir /mnt/felhasználó
# chown felhasználó:csoport /mnt/felhasználó
@@ -555,14 +555,14 @@ Az utolsó lépésben hozzunk létre egy könyvtárat az állományrendszer csat
Most tegyük fel, hogy csatlakoztatnuk egy USB pen drive-ot és ennek megfelelõen megjelenik a [.filename]#/dev/da0s1# eszköz. Mivel az ilyen eszközökre általában gyárilag FAT állományrendszert tesznek, ezért így kell ezeket csatlakoztatni a man:mount[8] paranccsal:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/felhasználó
....
Ha leválasztjuk az eszközt (miután kiadtuk a man:umount[8] parancsot), akkor a rendszerüzenetek között valami ilyesmit fogunk látni:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -597,7 +597,7 @@ Ha a CD-író szoftverünket grafikus felhasználói felületen keresztül szere
A package:sysutils/cdrtools[] port részeként elérhetõ man:mkisofs[8] program képes a UNIX(R) típusú állományrendszer könyvtárszerkezete alapján egy ISO 9660 típusú állományrendszert tartalmazó image-et készíteni. Legegyszerûbb módon így használhatjuk:
-[source,bash]
+[source,shell]
....
# mkisofs -o image.iso /az/elérési/út
....
@@ -610,14 +610,14 @@ A kizárólag csak FreeBSD rendszereken használt CD-k esetében a `-U` megadás
Az utolsó általános jelleggel használható beállítás a `-b`. Ezzel lehet megadni az "El Torito" szabványnak megfelelõ rendszerindító CD készítéséhez szükséges rendszerindító image elérését. Ennél a beállításnál tehát meg kell adni a rendszerindításhoz használt lemez image-ét, amely a CD tartalmát magában foglaló könyvtárszerkezetben található valahol. A man:mkisofs[8] alapértelmezés szerint egy ún. "floppy emulációs" módban hozza létre az ISO image-et, ezért a rendszerindításhoz használatos lemez image-ének pontosan 1200, 1440 vagy 2880 KB méretûnek kell lennie. Egyes rendszerbetöltõk, mint amilyen például a FreeBSD terjesztéséhez használt lemezeken található, nem használják ezt az emulációt. Ilyen helyzetekben a `-no-emul-boot` kapcsolót kell megadni. Tehát ha a [.filename]#/tmp/sajátboot# könyvtárban van egy indítható FreeBSD rendszerünk, amelyben a [.filename]#/tmp/sajátboot/boot/cdboot# a rendszerindító lemez image-e, akkor egy [.filename]#/tmp/indítható.iso# nevû ISO 9660 formátumú állományrendszert tartalmazó image-et például így tudunk elkészíteni:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/indítható.iso /tmp/sajátboot
....
Miután ezt megtettük, és a rendszermagunkban benne van az [.filename]#md# eszköz támogatása, csatlakoztathatjuk is az állományrendszert:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/indítható.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -632,7 +632,7 @@ A man:mkisofs[8] viselkedését több más opcióval tudjuk finomhangolni, mint
Ha ATAPI CD-írónk van, akkor a `burncd` paranccsal írhatjuk az ISO image-et a lemezre. A `burncd` az alaprendszer része, és [.filename]#/usr/sbin/burncd# néven érhetõ el. A használata igen egyszerû, csupán pár paramétere van:
-[source,bash]
+[source,shell]
....
# burncd -f eszköz data image.iso fixate
....
@@ -646,14 +646,14 @@ Ha nincs ATAPI CD-írónk, akkor az íráshoz a `cdrecord` parancsot kell haszn
Miközben a `cdrecord` számos paraméterrel rendelkezik, az alapvetõ használata mégis egyszerûbb a `burncd` parancsénál. Egy ISO 9660 formátumú image-et ugyanis a következõ módon tudunk felírni lemezre:
-[source,bash]
+[source,shell]
....
# cdrecord dev=eszköz image.iso
....
A `cdrecord` használatának trükkös része a megfelelõ eszköz megtalálása, tehát a `dev` beállítás helyes megadása. Ehhez használjuk a `cdrecord-scanbus` paraméterét, amely az alábbihoz hasonló eredményt fog produkálni:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jörg Schilling
@@ -691,14 +691,14 @@ Audio CD-t úgy tudunk másolni, ha elõször állományok sorozatába mentjük
. A `cdda2wav` programmal mentsük le a lemez tartalmát.
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
+
. A `cdrecord` paranccsal írjuk fel a [.filename]#.wav# kiterjesztésû állományokat.
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -719,14 +719,14 @@ Az <<atapicam,ATAPI/CAM modul>> segítségével a `cdda2wav` parancs ATAPI megha
+
Ellenõrizzük, hogy ezek az eszközök jelen vannak a [.filename]#/dev# könyvtárban. Amennyiben hiányoznának, kényszerítsük ki a lemez újbóli beolvasását:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. Szedjük le az egyes sávokat a man:dd[1] használatával. A parancs kiadásakor meg kell adnunk egy blokkméretet is:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -735,7 +735,7 @@ Ellenõrizzük, hogy ezek az eszközök jelen vannak a [.filename]#/dev# könyvt
+
. A `burncd` használatával írjuk fel a lemezre az imént lementett állományokat. Meg kell adnunk, hogy ezek audio állományok, és hogy a `burncd` a munka befejeztével zárja le (fixate) a lemezt.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -746,7 +746,7 @@ Ellenõrizzük, hogy ezek az eszközök jelen vannak a [.filename]#/dev# könyvt
Az adatot tartalmazó CD-ket le tudjuk másolni egy olyan image-be, amely funkcionálisan megegyezik egy man:mkisofs[8] által létrehozott image-dzsel és amivel le tudunk másolni bármilyen adat CD-t. Az itt megadott példa azt feltételezi, hogy a CD-meghajtónk neve [.filename]#acd0#. Helyére a saját CD-meghajtónk nevét kell behelyettesíteni.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=állomány.iso bs=2048
....
@@ -758,21 +758,21 @@ Most miután lementettük az image-et, írjuk fel CD-re a fentiek szerint.
Most, hogy már készítettünk egy szabványos adat CD-t, valószínûleg szeretnénk is valamilyen csatlakoztatni és elérni a rajta levõ adatokat. Alapértelmezés szerint a man:mount[8] mindig azt feltételezi, hogy az állományrendszerek `ufs` típusúak. Ezért ha valami ilyesmivel próbálkozunk:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
akkor egy `Incorrect super block` szövegû hibaüzenetet lesz a jutalmunk, és természetesen nem tudjuk csatlakoztatni a CD-t. Mivel a CD nem `UFS` állományrendszert tartalmaz, ezért az ilyen jellegû kísérleteink mind kudarcba fognak fulladni. Valahogy fel kell világosítanunk a man:mount[8] parancsot arról, hogy itt most egy `ISO9660` típusú állományrendszert akarunk csatlakoztatni, és akkor minden a helyére kerül. Ezt úgy tudjuk megtenni, ha a man:mount[8] parancsnak megadjuk a `-t cd9660` paramétert. Például, ha a [.filename]#/dev/acd0# néven elérhetõ CD-meghajtóban levõ lemezt akarjuk a [.filename]#/mnt# könyvtárba csatlakoztatni, akkor ezt kell begépelnünk:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Vegyük észre, hogy az eszköz neve (ez ebben a példában most [.filename]#/dev/cd0#) lehet más is attól függõen, hogy milyen csatolófelületet használ a CD-meghajtónk. Sõt, a `-t cd9660` valójában csak a man:mount_cd9660[8] parancsot indítja el. Ennek tükrében tehát az elõbbi példát így rövidíthetjük le:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -807,14 +807,14 @@ Ezzel utasítjuk a SCSI buszunkat egy 15 másodperces várakozásra a rendszer i
Írhatunk közvetlenül is állományokat a CD-re, ISO 9660 formátumú állományrendszer használata nélkül. Sokan így oldják meg a mentést. Ezt sokkal gyorsabban lebonyolítható egy szabványos CD esetében:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
Az ezen a módon megírt CD-ket szintén nyers módon kell olvasnunk:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -859,7 +859,7 @@ Ezeknek már eleve ott kell szerepelnie. Ezután fordítsuk újra és telepíts
A rendszer indulásakor az írónak ehhez hasonló módon kell megjelennie:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -870,14 +870,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
A meghajtó most már elérhetõ a [.filename]#/dev/cd0# eszközön keresztül, és például ennyi begépelésével csatlakoztatni tudunk róla egy CD-t a [.filename]#/mnt# könyvtárba:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
`root` felhasználóként a következõ paranccsal tudjuk lekérdezi az író SCSI címét:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -935,7 +935,7 @@ A man:growisofs[1] a <<mkisofs,mkisofs>> parancs elõlapja, tehát az állomány
A [.filename]#/az/elérési/út# könyvtárból a következõ paranccsal tudjuk kiírni az adatokat DVD+R vagy DVD-R lemezre:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /az/elérési/út
....
@@ -946,7 +946,7 @@ A `-Z` beállítást a kezdõmenetek létrehozásakor használjuk: több menetbe
Elõre legyártott image-dzsel is dolgozhatunk, tehát például, ha az _image.iso_ állományt akarjuk kiírni, akkor ezt kell lefuttatnunk:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=image.iso
....
@@ -959,7 +959,7 @@ Az írási sebességet magától beállítja a lemez és meghajtó képességein
Példa ilyen lemezkép létrehozására:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /az/új/adat/helye
....
@@ -975,7 +975,7 @@ A DVD-Video az állományok speciális szervezésére utal, amely az ISO 9660 é
Ha már a birtokunkban van egy DVD-Video állományrendszer képe, akkor az eddigiek szerint egyszerûen csak írjuk fel egy lemezre, ahogy azt az elõzõ szakaszban is láthattuk. Ha összeállítottuk a DVD anyagát és például a [.filename]#/a/videó/elérési/útja# könyvtárba raktuk, akkor a következõ paranccsal írathatjuk ki a DVD-Video formátumú lemezt:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /a/videó/elérési/útja
....
@@ -986,7 +986,7 @@ A `-dvd-video` paramétert kell átadni a man:mkisofs[8] programnak, amelynek ha
Eltérõen a CD-RW-tõl, egy érintetlen DVD+RW-t az elsõ használat elõtt meg kell formázni. A man:growisofs[1] program errõl az elsõ adandó alkalommal gondoskodik, és ez az _ajánlott_. Azonban a DVD+RW formázására használhatjuk a `dvd+rw-format` parancsot is:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -995,7 +995,7 @@ Ezt a mûveletet csak egyszer kell elvégezni, hiszen ne feledjük, hogy csak a
Ha a DVD+RW-re új adatot akarunk írni (egy teljesen új állományrendszert, nem pedig adatokat hozzáfûzni), akkor nem kell üressé tenni a lemezt, egyszerûen csak elegendõ felülírni az elõzõeket (egy új kezdõmenet létrehozásával) valahogy így:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /az/új/adat/helye
....
@@ -1004,7 +1004,7 @@ A DVD+RW formátum felajánlja annak lehetõségét is, hogy könnyedén hozzá
Például, ha egy korábban megírt DVD+RW lemezen levõ adatokhoz akarunk hozzáírni, akkor a következõ parancsot kell kiadnunk:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /az/új/adat/helye
....
@@ -1018,7 +1018,7 @@ Ha kompatibilisek akarunk maradni a többi DVD-meghajtóval, akkor adjuk meg `-d
Ha valamilyen okból mégis üressé szeretnénk tenni a lemez, akkor ír járhatunk el:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1031,7 +1031,7 @@ A még fel nem használt DVD-RW lemezek közvetlenül írhatóak külön formáz
Soros módban így kell letörölni egy DVD-RW lemezt:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1040,7 +1040,7 @@ Soros módban így kell letörölni egy DVD-RW lemezt:
====
A teljes törlés (`-blank=full`) egy 1x média esetén körülbelül egy órát vesz igénybe. A `-blank` beállítással egy gyorsított törlés zajlik le, amennyiben a DVD-RW lemezt Disk-At-Once (DAO) módban írjuk. A DVD-RW lemezeket az alábbi paranccsal tudjuk DAO módban írni:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=image.iso
....
@@ -1052,7 +1052,7 @@ A DVD-RW esetében valójában a korlátozott felülírást lenne érdemes haszn
A soros DVD-RW lemezekre ugyanúgy tudunk adatokat rögzíteni, mint az összes többi formátum esetében:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /az/adat/helye
....
@@ -1063,14 +1063,14 @@ A korlátozott felülírású DVD-RW formátum használata esetén nem kell mind
A következõ paranccsal tudjuk a DVD-RW lemezt korlátozott felülírású módba tenni:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Így tudunk visszaváltani a soros formátum használatára:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1081,7 +1081,7 @@ Nagyon kevés DVD-ROM meghajtó ismeri a többmenetes DVD-ket, és legtöbbször
Az alábbi parancs egy újabb menetet ad hozzá egy megkezdett (le nem zárt) DVD+R, DVD-R vagy DVD-RW soros formátumú lemezhez:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /az/új/adat/helye
....
@@ -1120,7 +1120,7 @@ hw.ata.atapi_dma="1"
Ahogy arra már korábban utaltunk a fejezet bevezetésében, a DVD-RAM úgy látható, mint egy cserélhetõ merevlemez. A hagyományos merevlemezekhez hasonlóan a DVD-RAM-ot is "elõ kell készíteni" az elsõ használatához. Ebben a példában a lemez teljes területét egy szabványos UFS2 állományrendszerrel töltjük fel:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -1133,7 +1133,7 @@ A DVD eszköz nevét, vagyis az [.filename]#acd0# eszközt a saját rendszerünk
Miután az elõbbi mûveletet elvégeztük a DVD-RAM lemezen, már tudjuk is normális merevlemezként csatlakoztatni:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1165,7 +1165,7 @@ Figyeljünk a menetközben megjelenõ hibaüzenetekre, mivel ezek segítik eldö
A [.filename]#/dev/fdN# eszközök segítségével tudunk megformázni egy floppy lemezt. Tegyünk be egy 3,5 colos floppy lemezt a meghajtóba, majd adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1178,7 +1178,7 @@ Az új lemezcímke lefedi az egész lemezt, és tartalmazni fogja az összes inf
Most már futtathatjuk is a man:bsdlabel[8] parancsot:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1191,7 +1191,7 @@ A floppy állományrendszere lehet UFS vagy FAT. A FAT általánosságban véve
Az alábbi módon tudunk új állományrendszert tenni a floppyra:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1263,7 +1263,7 @@ Az ilyen könyvtárak a 20 000 dolláros (kb. 3,5 millió forintos) árkategóri
Amikor az elsõ alkalommal akarunk beolvasni vagy írni egy új, teljesen üres szalagot, hibára fogunk futni. Egy ehhez hasonló konzolüzenet fog megjelenni:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1305,21 +1305,21 @@ Legegyszerûbban a man:tar[1] `-M` (többkötetes) opciójával tudunk floppy le
Az aktuális könyvtár és a benne levõ alkönyvtárak tartalmát (`root`) felhasználóként a következõ paranccsal tudjuk lementeni:
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Amikor az elsõ floppy megtelik, a man:tar[1] kérni fogja a következõ kötetet (volume) (mivel a man:tar[1] adathordozótól független módon hivatkozik a kötetekre, tehát ebben a környezetben a kötet egy floppy lemezt jelent):
-[source,bash]
+[source,shell]
....
Prepare volume #2 for /dev/fd0 and hit return:
....
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Készítse elő a 2. kötetet a /dev/fd0 eszközön és nyomja le a
return billentyűt
@@ -1337,14 +1337,14 @@ Sajnos a man:tar[1] többkötetes mentések esetén nem engedi a `-z` beállít
Az egész mentés visszaállításához adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Két módon tudunk csak bizonyos állományokat visszaállítani. Elõször is, tegyük be a mentés elsõ lemezét és adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 állomány
....
@@ -1393,7 +1393,7 @@ A `dump` parancsnak vannak olyan rigolyái, amelyek még az AT&T UNIX 6. verzió
Emellett az `rdump` és `rrestore` programok segítségével hálózaton keresztül is le tudjuk menteni az adatainkat egy másik számítógépre csatlakoztatott szalagos egységre. Mind a két program az man:rcmd[3] és a man:ruserok[3] parancsokat használja a távoli szalagos meghajtó eléréséhez. Az `rdump` és `rrestore` paramétereinek a távoli számítógép használatához kell illeszkedniük. Amikor egy FreeBSD rendszerû számítógépet az `rdump` paranccsal egy Sun rendszerû, `komodo` nevû számítógépre mentünk, amelyhez egy Exabyte szalagos meghajtó csatlakozik, akkor ezt a írjuk be:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1406,7 +1406,7 @@ A `dump` és `restore` parancsokat az `ssh` használatával még biztonságosabb
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
célfelhasználó@cél.gép.hu dd of=/nagyállományok/dump-usr-l0.gz
@@ -1420,7 +1420,7 @@ Vagy az `RSH` környezeti változó megfelelõ beállításával használhatjuk
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f célfelhasználó@cél.gép.hu:/dev/sa0 /usr
....
@@ -1433,14 +1433,14 @@ A man:tar[1] is az AT&T UNIX 6. verziójáig nyúlik vissza (tehát nagyjából
A FreeBSD 5.3 vagy késõbbi változataiban a GNU `tar` és az alapértelmezés szerinti `bsdtar` egyaránt elérhetõ. A GNU változat a `gtar` paranccsal hívható meg. Az `rdump` parancshoz hasonló felírásban képes kezelni a távoli eszközöket. Tehát így tudjuk használni a `tar` parancsot a `komodo` nevû Sun számítógép Exabíte szalagos meghajtójának elérésére:
-[source,bash]
+[source,shell]
....
# /usr/bin/gtar cf komodo:/dev/nsa8 . 2>&1
....
Ugyanez eltérhetõ a `bsdtar` használatával is, amikor az `rsh` programmal összekapcsolva küldünk át a távoli szalagos egységre.
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh hálózati-név dd of=szalagos-eszköz obs=20b
....
@@ -1453,7 +1453,7 @@ A man:cpio[1] eredetileg a UNIX(R) szalagos programjai és szalagos egységei k
A `cpio` nem támogatja a biztonsági mentés átküldését a hálózaton. Programok összekapcsolásával és az `rsh` használatával tudunk adatokat küldeni távoli szalagos meghajtókra.
-[source,bash]
+[source,shell]
....
# for f in könyvtár_lista; do
find $f >> mentési.lista
@@ -1548,7 +1548,7 @@ Egy meglevõ állományrendszer image-ének csatlakoztatása:
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f image -u 0
# mount /dev/md0 /mnt
@@ -1562,7 +1562,7 @@ Egy meglevõ állományrendszer image-ének csatlakoztatása:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=új-image bs=1k count=5k
5120+0 records in
@@ -1590,7 +1590,7 @@ Az man:mdconfig[8] egy nagyon sokoldalú segédeszköz, habár használatakor vi
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=új-image bs=1k count=5k
5120+0 records in
@@ -1614,7 +1614,7 @@ A memória alapú állományrendszerek esetében általában a "lapozóállomán
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1635,7 +1635,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1651,7 +1651,7 @@ Amikor már nem akarunk tovább használni egy memória vagy állomány alapú
Például az [.filename]#/dev/md4# eszközt így lehet lekapcsolni és felszabadítani:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1669,21 +1669,21 @@ Miután az man:mksnap_ffs[8] paranccsal létrehoztunk egy pillanatképet tartalm
A pillanatképek a man:mount[8] paranccsal hozhatóak létre. A következõ módon tudjuk a [.filename]#/var# egy pillanatképét elkészíteni a [.filename]#/var/snapshot/snap# állományban:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Vagy a man:mksnap_ffs[8] meghívásával is készíthetünk pillanatképeket:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Az állományrendszeren (például [.filename]#/var#) a pillanatképeket tartalmazó állományokat a man:find[1] paranccsal kereshetjük meg:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1696,7 +1696,7 @@ Ahogy elkészítettünk egy pillanatképet, több mindenre is felhasználhatjuk:
* A pillanatképet képesek vagyunk a man:mount[8] paranccsal az állományrendszer befagyasztott változataként csatlakoztatni:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1704,7 +1704,7 @@ Ahogy elkészítettünk egy pillanatképet, több mindenre is felhasználhatjuk:
Így már a [.filename]#/mnt# könyvtárba csatlakoztatva be tudjuk járni a befagyasztott [.filename]#/var# állományrendszert. Minden a pillanatfelvétel készítésének idõpontjának megfelelõ állapotban fog maradni. Az egyetlen kivétel talán annyi, hogy korábbi pillanatképek nulla méretû állományként fognak megjelenni. Mikor befejeztük a pillanatképek használatát, a man:umount[8] paranccsal le tudjuk választani:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1768,7 +1768,7 @@ Hétköznapi esetben egyáltalán nem kell manuális futtatnunk a man:quotacheck
Ahogy sikerült beállítani a kvóták használatát, egybõl ellenõrizzük is a mûködõképességüket. Ezt legegyszerûbben a következõ paranccsal tehetjük meg:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1785,7 +1785,7 @@ Ezzel szemben a gyenge korlátok (soft limit) egy adott ideig átléphetõek. Ez
A most következõ példában az man:edquota[8] parancsot mutatjuk be. Amikor meghívjuk az man:edquota[8] parancsot, akkor elindul az `EDITOR` környezeti változónak megfelelõ szövegszerkesztõ, illetve ennek hiányában a vi, és lehetõségünk nyílik a kvóta korlátainak módosítására.
-[source,bash]
+[source,shell]
....
# edquota -u teszt
....
@@ -1817,7 +1817,7 @@ Az új korlátok akkor fognak érvénybe lépni, miután kiléptünk a szövegsz
Néha hasznos lehet a korlátokat adott felhasználói azonosítókhoz beállítani. Ezt az man:edquota[8] parancs `-p` paraméterével tudjuk elvégezni. Elõször is állítsuk be egy felhasználónak a beállítani kívánt korlátokat, majd futtassuk le az `edquota -p teszt kezdõuid-véguid` parancsot. Például ha a `teszt` nevû felhasználónak állítottuk be a számunkra megfelelõ korlátokat, akkor a következõ paranccsal lehet a rá vonatkozó korlátokat kiterjeszteni a 10 000 és 19 999 közötti azonosítójú felhasználókra:
-[source,bash]
+[source,shell]
....
# edquota -p teszt 10000-19999
....
@@ -1855,7 +1855,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Majd ne felejtsük el újraindítani az `inetd` démont sem:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1876,7 +1876,7 @@ Függetlenül attól, hogy a támadó valójában miként is férkõzött hozzá
+
A gbde beállításához rendszeradminisztrátori jogosultságokra lesz szükségünk.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1893,7 +1893,7 @@ Fordítsuk újra a rendszermagot a crossref:kernelconfig[kernelconfig,A FreeBSD
Indítsuk el a számítógépet az új rendszermaggal.
. A rendszermag újrafordítása helyett a `kldload` paranccsal is betölthetjük a man:gbde[4] modulját:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1910,7 +1910,7 @@ A következõ példa azt feltételezi, hogy a rendszerünkhöz egy új merevleme
+
A <<disks-adding>>ban bemutatottak szerint adjuk hozzá a rendszerünkhöz az új merevlemezt. A példában az új lemez partícióját a [.filename]#/dev/ad4s1c# néven fogjuk tudni elérni. A [.filename]#/dev/ad0s1*# eszközök a példában szereplõ FreeBSD rendszer szabványos partícióit jelölik.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1920,7 +1920,7 @@ A <<disks-adding>>ban bemutatottak szerint adjuk hozzá a rendszerünkhöz az ú
+
. Hozzunk létre egy könyvtárat a gbde zárolásainak tárolásához
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1931,7 +1931,7 @@ A gbdenek azért van szüksége a zárolásokat rögzítõ állományokra, hogy
+
A gbde által használt partíciókat használatuk elõtt inicializálni kell. Ezt a mûveletet azonban csak egyszer kell elvégezni:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -1974,14 +1974,14 @@ A gbde zároló állományait a titkosított partíciók tartalmával együtt _k
+
. A titkosított partíció illesztése a rendszermaghoz
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Ekkor a titkosított partíció illesztéséhez a rendszer kérni fogja az inicializálás során választott jelmondatot. Ezután az új titkosított eszköz megjelenik a [.filename]#/dev# könyvtárban [.filename]#/dev/eszköznév.bde# néven:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1993,7 +1993,7 @@ Ekkor a titkosított partíció illesztéséhez a rendszer kérni fogja az inici
+
Ahogy sikerült a titkosított eszközt illeszteni a rendszermaghoz, létre is tudunk hozni egy állományrendszert rajta. Erre a célra a man:newfs[8] remekül használható. Mivel egy új UFS2 állományrendszerek inicializálása sokkal gyorsabb a régi UFS1 állományrendszerek inicializálásánál, ezért a man:newfs[8] használata esetén az `-O2` beállítás megadása ajánlott.
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -2007,14 +2007,14 @@ A man:newfs[8] parancsot egy illesztett gbde partíción kell végrehajtani, ami
+
Hozzunk létre egy csatlakozási pontot a titkosított állományrendszer számára.
+
-[source,bash]
+[source,shell]
....
# mkdir /privát
....
+
Csatlakoztassuk a titkosított állományrendszert.
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /privát
....
@@ -2023,7 +2023,7 @@ Csatlakoztassuk a titkosított állományrendszert.
+
A titkosított állományrendszert most már látja a man:df[1] program és készen áll a használatra.
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2045,7 +2045,7 @@ A rendszer minden egyes indítása után az összes titkosított állományrends
. A gbde partíció illesztése a rendszermaghoz
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -2055,14 +2055,14 @@ A gbde partíció inicializálása során megadott jelmondatot kell megadnunk a
+
Mivel a titkosított állományrendszerek az automatikus csatlakoztatáshoz még nem szerepeltethetõek az [.filename]#/etc/fstab# állományban, ezért az ilyen állományrendszereket csatlakoztatásuk elõtt manuálisan ellenõriztetni kell a man:fsck[8] lefuttatásával.
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. A titkosított állományrendszer csatlakoztatása
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /privát
....
@@ -2093,7 +2093,7 @@ A man:gbde[8] a szektorok tartalmát 128 bites AES használatával CBC módban t
A man:sysinstall[8] nem kompatibilis a gbde által titkosított eszközökkel. A man:sysinstall[8] indítása elõtt minden [.filename]#*.bde# eszközt ki kell iktatni a rendszermagból, különben az eszközök keresése során össze fog omlani. A példánkban használt titkosított eszközt a következõ paranccsal kell lekapcsolni:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2152,7 +2152,7 @@ A nagyobb teljesítmény érdekében javasolt nagyobb szektorméretet választan
+
A mesterkulcsot egy jelmondattal fogjuk védeni és a kulcsok készítéséhez használt adatforrás a [.filename]#/dev/random# lesz. A [.filename]#/dev/da2.eli#, amelyet mit csak adathordozónak fogunk csak hívni, szektorainak mérete 4 kilobyte lesz.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2164,14 +2164,14 @@ Nem kötelezõ egyszerre használni a jelmondatot és a kulcs állományt. A mes
+
Ha a kulcs állomány a "-" paraméterrel adjuk meg, akkor a szabványos bemenetrõl olvassa be a program. Ez a példa több kulcs használatát mutatja be.
+
-[source,bash]
+[source,shell]
....
# cat kulcs1 kulcs2 kulcs3 | geli init -K - /dev/da2
....
+
. Az adathordozó illesztése a generált kulccsal
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2179,7 +2179,7 @@ Enter passphrase:
+
Az új titkosítatlan eszköz neve [.filename]#/dev/da2.eli# lesz.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2187,7 +2187,7 @@ Az új titkosítatlan eszköz neve [.filename]#/dev/da2.eli# lesz.
+
. Az új állományrendszer kialakítása
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2196,7 +2196,7 @@ Az új titkosítatlan eszköz neve [.filename]#/dev/da2.eli# lesz.
+
A titkosított állományrendszer most már man:df[1] számára is látszik és használható:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2212,7 +2212,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
Miután befejeztük a munkát a titkosított partíción, és a [.filename]#/privát# partícióra már nincs tovább szükségünk, érdemes leválasztanunk és kiiktatnunk a `geli` titkosítású partíciót a rendszermagból.
+
-[source,bash]
+[source,shell]
....
# umount /privát
# geli detach da2.eli
@@ -2255,7 +2255,7 @@ A szakasz további részében a [.filename]#ad0s1b# lesz a lapozásra használt
Egészen mostanáig nem titkosítottuk a lapozóterületet. Így elképzelhetõ, hogy a lemezre már titkosítatlanul kikerültek jelszavak vagy bármilyen más érzékeny adatok. A csorba kiköszörülésére a lapozóterületen található összes adatot írjuk felül véletlenszerûen generált szeméttel:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2313,7 +2313,7 @@ Miután újraindítottuk a rendszert, a titkosított lapozóterület helyes mûk
A man:gbde[8] esetében:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2322,7 +2322,7 @@ Device 1K-blocks Used Avail Capacity
Valamint a man:geli[8] esetében:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
diff --git a/documentation/content/hu/books/handbook/dtrace/_index.adoc b/documentation/content/hu/books/handbook/dtrace/_index.adoc
index d0186bc457..8267402a09 100644
--- a/documentation/content/hu/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/hu/books/handbook/dtrace/_index.adoc
@@ -111,7 +111,7 @@ Ezzel a beállítással az FBT ("function boundary tracing") részére nyújtunk
Az egész rendszert újra kell fordítanunk a CTF használatával. Ennek elvégzéséhez a következõ parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make WITH_CTF=1 kernel
@@ -128,14 +128,14 @@ Végül töltsük le a DTrace eszköztárának legfrissebb változatát. Az aktu
A DTrace funkcióinak alkalmazásához léteznie kell egy DTrace eszköznek. Ennek létrehozásához be kell töltenünk a megfelelõ modult:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
Innentõl már mûködésre kész a DTrace. Rendszeradminisztrátorként a következõ módon kérdezhetjük le a rendelkezésre álló vizsgálatokat:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -144,7 +144,7 @@ Mivel lekérdezés eredménye pillanatok alatt betöltené az egész képernyõt
Ez a mellékelt eszközkészlet lényegében a rendszerrel kapcsolatos információk összegyûjtésére alkalmas szkripteket tartalmaz. Vannak szkriptek, amelyekkel a megnyitott állományokat, a memóriát, a processzorhasználatot és még sok minden mást kérdezhetünk le. A szkriptek a következõ parancs segítségével tömöríthetõek ki:
-[source,bash]
+[source,shell]
....
# gunzip -c DTraceToolkit* | tar xvf -
....
@@ -162,7 +162,7 @@ Jelenlegi ismereteink szerint a FreeBSD egyelõre csak két szkriptet támogat t
A [.filename]#hotkernel# feladata segíteni beazonosítani azokat a függvényeket, amelyek a legtöbb idõt veszik igénybe a rendszermagon belül. A szkript futtatásakor nagyjából a következõt csinálja:
-[source,bash]
+[source,shell]
....
# ./hotkernel
Sampling... Hit Ctrl-C to end.
@@ -170,7 +170,7 @@ Sampling... Hit Ctrl-C to end.
A folyamat kbd:[Ctrl+C] billentyûkombináció hatására állítható meg. A szkript futásának befejezõdésekor különbözõ rendszermagbeli függvények és a hozzájuk tartozó idõk jelennek meg, az utóbbi szerint növekvõ sorrendben:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -202,7 +202,7 @@ kernel`sched_idletd 137 0.3%
Ez a szkript modulok esetén is alkalmazható. Ezt a módját a `-m` kapcsoló megadásával aktiválhatjuk:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -224,7 +224,7 @@ kernel 874 0.4%
A [.filename]#procsystime# szkript egy adott azonosítóval vagy névvel rendelkezõ programhoz tudja megadni az általa kezdeményezett rendszerhívások által felhasznált idõt. A most következõ példában elindítjuk a [.filename]#/bin/csh# egy újabb példányát. A [.filename]#procsystime# elindul, majd megvárja, amíg kiadunk néhány parancsot a `csh` frissen indított másolatában. A teszt eredményei tehát a következõk lesznek:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/hu/books/handbook/filesystems/_index.adoc b/documentation/content/hu/books/handbook/filesystems/_index.adoc
index 683570bbe8..7897c3a055 100644
--- a/documentation/content/hu/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/hu/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ A ZFS finomhangolásával kapcsolatos további javasolatokat a http://wiki.freeb
A Z állományrendszerhez létezik egy olyan mechanizmus, amelyen keresztül már a FreeBSD indítása során el tudjuk végezni a közös tárolók csatlakoztatását:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# /etc/rc.d/zfs start
@@ -125,14 +125,14 @@ A leírás fennmaradó részében feltételezzük, hogy három SCSI-lemezünk va
A `zpool` kiadásával egyetlen lemezen is létre tudunk hozni egy egyszerû, nem redundáns ZFS partíciót:
-[source,bash]
+[source,shell]
....
# zpool create minta /dev/da0
....
Az új közös tárterület a `df` parancs felhasználásával rögtön láthatóvá válik:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ minta 17547136 0 17547136 0% /minta
A parancs kimenetében tisztán láthatjuk, hogy a `minta` nevû tároló nem csak egyszerûen elkészült, hanem egyúttal _csatolódott_. Innentõl már a többi állományrendszerhez hasonlóan tetszõlegesen elérhetõ, az alábbi példához hasonlóan állományok hozhatóak rajta létre vagy listázható a tartalma:
-[source,bash]
+[source,shell]
....
# cd /minta
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Sajnos azonban ez a tároló még ki sem használja a ZFS által felkínált lehetõségeket. Ezért most hozzunk létre egy állományrendszert ezen a tárolón belül és engedélyezzük rajta a tömörítést:
-[source,bash]
+[source,shell]
....
# zfs create minta/tomoritett
# zfs set compression=gzip minta/tomoritett
@@ -168,14 +168,14 @@ A `minta/tomoritett` most már egy tömörített Z állományrendszer. Próbálj
Ezután a tömörítés akár ki is kapcsolható:
-[source,bash]
+[source,shell]
....
# zfs set compression=off minta/tomoritett
....
Az állományrendszer leválasztásához adjuk ki a lenti parancsot, majd ellenõrizzük az eredményét a `df` használatával:
-[source,bash]
+[source,shell]
....
# zfs umount minta/tomoritett
# df
@@ -188,7 +188,7 @@ minta 17547008 0 17547008 0% /minta
Tegyük ismét elérhetõvé és csatlakoztassuk újra az állományrendszert, majd nézzük meg az eredményt a `df` paranccsal:
-[source,bash]
+[source,shell]
....
# zfs mount minta/tomoritett
# df
@@ -202,7 +202,7 @@ minta/tomoritett 17547008 0 17547008 0% /minta/tomoritett
A közös terület és az állományrendszer mellesleg a `mount` parancs kimenetébõl is megfigyelhetõ:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -214,7 +214,7 @@ minta/tomoritett on /minta/tomoritett (zfs, local)
Látható, hogy a létrehozásuk után a Z állományrendszerek teljesen hétköznapi módon viselkednek, de természetesen további lehetõségek is elérhetõek hozzájuk. A következõ példában `adat` néven készítünk egy új állományrendszert. Mivel ide majd nagyon fontos állományokat akarunk elhelyezni, állítsuk be, hogy minden adatblokkból két példány legyen:
-[source,bash]
+[source,shell]
....
# zfs create minta/adat
# zfs set copies=2 minta/adat
@@ -222,7 +222,7 @@ Látható, hogy a létrehozásuk után a Z állományrendszerek teljesen hétkö
A `df` újbóli kiadásával most már látható is ez az állományrendszer és annak tárfoglalása:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -236,7 +236,7 @@ minta/adat 17547008 0 17547008 0% /minta/adat
Vegyük észre, hogy a közös területen levõ állományrendszerek mindegyikén ugyanannyi szabad terület van. A `df` segítségével a késõbbiekben remekül megfigyelhetõ lesz, hogy az egyes állományrendszerek mindig csak annyi területet foglalnak el a közös területbõl, amennyire abban a pillanatban ténylegesen szükségünk van. A Z állományrendszerek esetén megszûnik a partíciók és kötetek fogalma, és több állományrendszer tárolódik egyazon közös területen. Ha már nem akarjuk használni, egyszerûen csak töröljük le az állományrendszereket és ezt a közös tárolót:
-[source,bash]
+[source,shell]
....
# zfs destroy minta/tomoritett
# zfs destroy minta/adat
@@ -249,7 +249,7 @@ Nyilván tapasztalhattunk már, hogy a lemezeink olykor menthetetlenül meghibá
Korábban már utaltunk rá, hogy ebben a szakaszban három SCSI-lemez, vagyis a [.filename]#da0#, [.filename]#da1# és [.filename]#da2# eszközök használatát feltételezzük (vagy természetesen [.filename]#ad0# és így tovább, ha IDE-lemezeket használunk). Egy RAID-Z formátumú közös tároló készítéséhez a következõ parancsot kell kiadni:
-[source,bash]
+[source,shell]
....
# zpool create tarolo raidz da0 da1 da2
....
@@ -261,14 +261,14 @@ A Sun(TM) ajánlása szerint egy RAID-Z konfigurációban legalább három, legf
Ennek hatására tehát keletkezik egy `tarolo` nevû Z-tároló. Ez a korábbiakhoz hasonló módon ellenõrizhetõ is a man:mount[8] és man:df[1] parancsokon keresztül. Természetesen az iménti listába további lemezeszközök tetszõlegesen felvehetõek. Most hozzunk létre ezen a közös területen egy `felhasznalok` nevû állományrendszert, ahová majd a felhasználók adatait fogjuk tenni:
-[source,bash]
+[source,shell]
....
# zfs create tarolo/felhasznalok
....
Miután ezzel megvagyunk, az imént létrehozott állományrendszerre nyugodtan beállíthatunk tömörítést és biztonsági másolatokat. Ebben az alábbi parancsok lesznek a segítségünkre:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 tarolo/felhasznalok
# zfs set compression=gzip tarolo/felhasznalok
@@ -276,7 +276,7 @@ Miután ezzel megvagyunk, az imént létrehozott állományrendszerre nyugodtan
Ezt követõen költöztessük át a felhasználókat, vagyis másoljuk át az adataikat ide és hozzuk létre a megfelelõ szimbolikus linkeket:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /tarolo/felhasznalok
# rm -rf /home /usr/home
@@ -288,42 +288,42 @@ A felhasználók adatai immáron a frissen létrehozott [.filename]#/tarolo/felh
Készítsünk most egy pillanatképet is, amelyet aztán késõbb szükség esetén vissza tudunk állítani:
-[source,bash]
+[source,shell]
....
# zfs snapshot tarolo/felhasznalok@08-08-30
....
A `snapshot` csak valós állományrendszerekkel mûködik, könyvtárakra vagy állományokra nem. A nevében a `@` karakter választja el egymástól a hozzá tartozó címkét az állományrendszer vagy kötet nevétõl. Ha netalán a felhasználói könyvtárak valamiért megsérültek volna, a következõ paranccsal állíthatóak vissza:
-[source,bash]
+[source,shell]
....
# zfs rollback tarolo/felhasznalok@08-08-30
....
Az adott idõpontban aktív pillanatképeket az adott állományrendszer [.filename]#.zfs/snapshot# könyvtárában találhatjuk meg. Például az elõbb készített pillanatkép az alábbi paranccsal nézhetõ meg:
-[source,bash]
+[source,shell]
....
# ls /tarolo/felhasznalok/.zfs/snapshot
....
Ha ebbõl elindulunk, akkor pillanatok alatt írható egy olyan szkript, amely a felhasználók adatairól havonta készít egy pillanatképet. Ilyenkor azonban fontos számításba vennünk, hogy az idõvel felgyülemlõ pillanatképek rengeteg helyet el tudnak foglalni. A korábbi pillanatkép így távolítható el:
-[source,bash]
+[source,shell]
....
# zfs destroy tarolo/felhasznalok@08-08-30
....
Miután alaposan kipróbáltuk a [.filename]#/tarolo/felhasznalok# néven létrehozott állományrendszerünket, állítsuk be véglegesen ez eddigi [.filename]#/home# állományrendszer helyére:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home tarolo/felhasznalok
....
Ekkor a `df` és `mount` parancsok használatával meggyõzõdhetünk róla, hogy ezt az állományrendszert innentõl már valóban a [.filename]#/home# könyvtárnak tekintjük:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -342,7 +342,7 @@ tarolo/felhasznalok 26320512 0 26320512 0% /home
Ezzel lényegében befejeztük a RAID-Z tömb konfigurációját. Az állományrendszerek állapotára vonatkozóan a man:periodic[8] alkalmazásával akár naponta kérhetünk ellenõrzést:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -351,21 +351,21 @@ Ezzel lényegében befejeztük a RAID-Z tömb konfigurációját. Az állományr
Minden szoftveres RAID implementáció kínál valamilyen megoldást az állapotának ellenõrzésére, ez alól tulajdonképpen a ZFS sem kivétel. A RAID-Z eszközök állapota a következõ paranccsal kérdezhetõ le:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Ezt az üzenetet láthatjuk, amikor minden tároló kifogástalanul mûködik és semmilyen probléma sincs:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Ha viszont valamilyen gond lenne valamelyik lemezzel, például leállt, akkor az elõbbi parancs eredménye ehhez lesz hasonló:
-[source,bash]
+[source,shell]
....
pool: tarolo
state: DEGRADED
@@ -389,21 +389,21 @@ errors: No known data errors
A válasz szerint az eszközt az adminisztrátor állította le. Ez ennél a példánál valóban igaz. Lemezeket a következõ módon lehet leállítani:
-[source,bash]
+[source,shell]
....
# zpool offline tarolo da1
....
Így miután leállítottuk a rendszert, a [.filename]#da1# eszköz cserélhetõ. A rendszer soron következõ indításakor ezzel a paranccsal tudjuk jelezni logikailag is a lemez cseréjét:
-[source,bash]
+[source,shell]
....
# zpool replace tarolo da1
....
Nézzük meg újra a tömb állapotát, de ezúttal a `-x` kapcsoló megadása nélkül, mivel csak így fogjuk látni:
-[source,bash]
+[source,shell]
....
# zpool status tarolo
pool: tarolo
@@ -427,21 +427,21 @@ A példa szerint minden megfelelõen mûködik.
Elõzetesen már szó esett róla, hogy a ZFS képes a tárolt adatok sértetlenségének ellenõrzésére. Az új állományrendszerek létrehozásánál ez a lehetõség automatikusan aktiválódik, de tetszés szerint letiltható:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off tarolo/felhasznalok
....
Ez a lépés viszont nem feltétlenül jó döntés, mivel az adatintegritás megtartásához felhasznált ellenõrzõ összegek nagyon kevés helyet foglalnak és meglehetõsen hasznosak. Emellett semmilyen észlelhetõ lassulást nem okoznak az állományrendszer használata során. Ha engedélyezzük, a ZFS ilyen ellenõrzõ összegek segítségével folyamatosan figyelni tudja az adatok épségét. Ezt az ellenõrzést a `scrub` paranccsal válthatjuk ki. Nézzük meg például a `tarolo` esetében:
-[source,bash]
+[source,shell]
....
# zpool scrub tarolo
....
Ez a vizsgálat a tárolt adatok mennyiségétõl függõen nagyon sokáig is eltarthat, illetve rengeteg lemezmûveletet foglal magában, ezért egyszerre csak egy ilyen futtatása javasolt. Miután befejezõdött, a tároló állapota az eredményének megfelelõen frissül, amelyet közvetlenül utána le is kérdezhetünk:
-[source,bash]
+[source,shell]
....
# zpool status tarolo
pool: tarolo
diff --git a/documentation/content/hu/books/handbook/firewalls/_index.adoc b/documentation/content/hu/books/handbook/firewalls/_index.adoc
index 0d2481fcb5..e75d459fa6 100644
--- a/documentation/content/hu/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/hu/books/handbook/firewalls/_index.adoc
@@ -113,7 +113,7 @@ pf_enable="YES"
Ezt követõen futtassuk le a hozzá tartozó rendszerindító szkriptet:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pf start
....
@@ -132,7 +132,7 @@ A FreeBSD 7.0 kiadással a minta [.filename]#pf.conf# állomány az [.filename]#
A PF modul parancssorból akár kézzel is betölthetõ:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -146,7 +146,7 @@ pflog_enable="YES"
A modul betöltését a hozzá tartozó rendszerindító szkript segítségével kérhetjük:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pflog start
....
@@ -332,7 +332,7 @@ ipnat_rules="/etc/ipnat.rules" # az ipnat mûködéséhez szükséges definí
Az man:ipf[8] parancs használható a szabályokat tartalmazó állomány betöltésére. Általában egy állományba írjuk össze a tûzfal szabályait és ezzel a paranccsal cseréljük le egyszerre a tûzfalban levõ jelenlegi szabályokat:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -357,7 +357,7 @@ A parancs mûködésének részleteit az man:ipfstat[8] man oldalon olvashatjuk.
Az man:ipfstat[8] meghívása alapból így néz ki:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -386,7 +386,7 @@ Az `ipfstat -on` parancs a kimenõ forgalmat érintõ belsõ szabályokat mutatj
Az eredmény körülbelül ilyen lesz:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -399,7 +399,7 @@ Az `ipfstat -oh` ugyanígy a kimentõ forgalom esetén mutatja a belsõ szabály
A kimenete nagyjából ilyen lesz:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -432,7 +432,7 @@ Egyáltalán nem ritka, hogy a szabályrendszer végén egy alapértelmezés sze
A syslogd egy saját módszert alkalmaz a naplózott adatok elkülönítésére. Egy "funkciók" (facility) és "szintek" (level) segítségével kialakított speciális csoportosítást alkalmaz. Az IPMON `-Ds` módja alapértelmezés szerint a `local0` "funkciót" használja. Ezen túl a következõ szinteken különíthetjük el igényeinknek megfelelõen a naplózott adatokat:
-[source,bash]
+[source,shell]
....
LOG_INFO - az átengedés vagy blokkolás helyett a "log" kulcsszóval ellátott csomagok
LOG_NOTICE - az át is engedett csomagok
@@ -442,7 +442,7 @@ LOG_ERR - a naplózott csomagok közül azok, amelyek túlságosan kicsik (hibá
Az IPFILTER csak akkor tud naplózni a [.filename]#/var/log/ipfilter.log# állományba, ha elõtte létrehozzuk. Az alábbi parancs erre tökéletesen megfelelõ:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -533,7 +533,7 @@ EOF
Ennyi lenne. A példában szereplõ szabályok most nem annyira lényegesek, a hangsúly most igazából a szimbolikus helyettesítésen és annak használatán van. Ha a fenti példát az [.filename]#/etc/ipf.rules.script# állományba mentjük, akkor ezeket a szabályokat a következõ paranccsal újra tudjuk tölteni:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -555,7 +555,7 @@ sh /etc/ipf.rules.script
+
A szkript engedélyeit állítsuk be úgy, hogy a `root` tulajdonában legyen és képes legyen olvasni, írni valamint végrehajtani.
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -950,28 +950,28 @@ Amikor a címfordítás üzembe helyezése után meg akarjuk változtatni a cím
A címfordítási szabályok újratöltését egy ehhez hasonló paranccsal tudjuk elvégezni:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.szabályok
....
A címfordításhoz tartozó statisztikákat ezzel a paranccsal tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
A címfordítási táblázatban pillanatnyilag szereplõ összerendeléseket a következõ paranccsal tudjuk listázni:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
A szabályok feldolgozásával és az aktív szabályokkal/bejegyzésekkel kapcsolatos információk részletezését így engedélyezhetjük:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1170,7 +1170,7 @@ Az IPFW az alap FreeBSD telepítésben külön, futás idõben betölthetõ modu
Ha tehát az [.filename]#rc.conf# állományban megadtuk a `firewall_enable="YES"` sort és újraindítottuk a számítógépünket, akkor a következõ fehérrel kiemelt üzenet fog megjelenni a rendszerindítás során:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -1309,49 +1309,49 @@ Az `ipfw` parancs mellesleg remekül használható a jelenleg futó tûzfalszab
A szabályokat így tudjuk egymás után felsoroltatni:
-[source,bash]
+[source,shell]
....
# ipfw list
....
A szabályokat így tudjuk az utolsó illeszkedésük idejével együtt megjeleníteni:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
A következõ példában a nyilvántartási információkat kérdezzük le, ekkor a szabályok mellett az illeszkedõ csomagok száma is láthatóvá válik. Az elsõ sorban a szabály száma szerepel, majd ezt követi rendre az illeszkedõ kimenõ és bejövõ csomagok mennyisége, valamint végül maga a szabály.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
A statikus szabályok mellett a dinamikusakat így lehet kilistázni:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
A lejárt dinamikus szabályokat is meg tudjuk nézni:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
A számlálók nullázása:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Csak a _SZÁM_ sorszámú szabályhoz tartozó számlálók nullázása:
-[source,bash]
+[source,shell]
....
# ipfw zero SZÁM
....
@@ -1522,7 +1522,7 @@ Ezzel készen is vagyunk. Most ne törõdjünk a példában szereplõ szabályok
Ha az iménti példát az [.filename]#/etc/ipfw.rules# állományba mentettük el, akkor az alábbi parancs kiadásával tudjuk újratölteni a benne szereplõ szabályokat:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1531,7 +1531,7 @@ Az [.filename]#/etc/ipfw.rules# állományt egyébként tetszõleges néven hív
Ugyanez természetesen elérhetõ a következõ parancsok egymás utáni begépelésével is:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
diff --git a/documentation/content/hu/books/handbook/geom/_index.adoc b/documentation/content/hu/books/handbook/geom/_index.adoc
index e324186608..18c8499bc8 100644
--- a/documentation/content/hu/books/handbook/geom/_index.adoc
+++ b/documentation/content/hu/books/handbook/geom/_index.adoc
@@ -84,21 +84,21 @@ image::striping.png[Példa lemezcsíkozásra]
. Töltsük be a [.filename]#geom_stripe.ko# modult:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. Bizonyosodjuk meg róla, hogy a rendszerünkben található egy szabad csatlakozási pont. Ha majd ezt a kötetet szánjuk rendszerünk gyökérpartíciójának, használjunk erre a célra egy másik könyvtárat, például a [.filename]#/mnt#-ot:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Keressük meg a csíkozásra felhasználni kívánt lemezek eszközneveit, és hozzunk létre belõlük egy új csíkozott eszközt. Például, ha két használatban nem levõ, particionálatlan ATA-lemezt, név szerint a [.filename]#/dev/ad2# és [.filename]#/dev/ad3# eszközöket akarjunk csíkozni:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -108,14 +108,14 @@ Done.
+
. Az így létrejött új köteten most hozzunk létre egy általános címkét, vagy más néven egy partíciós táblát, és telepítsük fel rá a rendszer alapértelmezett rendszerindító programját:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Ezzel meg kellett jelennie további másik két eszköznek is a [.filename]#/dev/stripe# könyvtárban, a [.filename]#st0# eszköz mellett. Ezek többek közt az [.filename]#st0a# és az [.filename]#st0c#. Itt már ki is tudunk alakítani egy állományrendszert az [.filename]#st0a# eszközön a `newfs` használatával:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -125,14 +125,14 @@ Sok-sok számot fogunk látni cikázni a képernyõn, majd néhány másodperc m
A kialakított lemezcsíkozást így tudjuk kézzel csatlakoztatni:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
A csíkozott állományrendszert a rendszerindítás folyamán automatikusan becsatlakoztathatjuk, ha elhelyezzük az alábbi kötetinformációkat az [.filename]#/etc/fstab# állományba. Erre a célra [.filename]#stripe# néven létrehozunk egy állandó csatlakozási pontot:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -141,7 +141,7 @@ A csíkozott állományrendszert a rendszerindítás folyamán automatikusan bec
A [.filename]#geom_stripe.ko# modult is automatikusan be kell tölteni a rendszerindítás során. Ehhez a következõ sort kell hozzáadni a [.filename]#/boot/loader.conf# állományhoz:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -159,7 +159,7 @@ Tegyük fel, hogy a FreeBSD az elsõ, [.filename]#da0# nevû lemezmeghajtón tal
A tükrözés létrehozásának megkezdése elõtt a `kern.geom.debugflags` man:sysctl[8] változó megfelelõ beállításával engedélyezzünk további nyomkövetési információkat és hozzáférést az eszközhöz:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=17
....
@@ -172,14 +172,14 @@ Most építsük fel a tükrözést. Kezdjük az egészet a metaadatok elhelyezé
A rendszerindító meghajtóról készített tükrözés adatvesztést okozhat a lemez utolsó szektorában. Ennek kockázata csökkenthetõ, ha közvetlenül a FreeBSD friss telepítése után állítjuk be a tükrözést.
====
-[source,bash]
+[source,shell]
....
# gmirror label -vb round-robin gm0 /dev/da0
....
Erre a rendszernek a következõ módon kell reagálnia:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da0.
Done.
@@ -187,7 +187,7 @@ Done.
A GEOM inicializálásához szükségünk lesz a [.filename]#/boot/kernel/geom_mirror.ko# modul betöltésére:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -199,7 +199,7 @@ A parancs sikeres lefutása után a [.filename]#/dev/mirror# könyvtárban létr
A [.filename]#geom_mirror.ko# modul betöltését így tudjuk engedélyezni a rendszer indításakor:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf
....
@@ -210,7 +210,7 @@ Nyissuk meg az [.filename]#/etc/fstab# állományt, és cseréljük le benne az
====
Ha man:vi[1] szövegszerkesztõt használjuk, akkor a következõ módon tudjuk ezt egyszerûen megtenni:
-[source,bash]
+[source,shell]
....
# vi /etc/fstab
....
@@ -234,14 +234,14 @@ Az így keletkezõ [.filename]#fstab# állomány nagyjából következõ módon
Indítsuk újra a rendszert:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Ennek megfelelõen a rendszer indítása közben a [.filename]#da0# eszköz helyett a [.filename]#gm0# eszközt fogjuk használni. Miután sikeresen befejezõdött a rendszerindítás, a `mount` parancs kiadásával a saját szemünkkel is meggyõzõdhetünk az eredményrõl:
-[source,bash]
+[source,shell]
....
# mount
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -255,21 +255,21 @@ devfs 1 1 0 100% /var/named/dev
A parancs kimenete az elvárásainknak megfelelõen remekül néz ki. Zárásképpen a szinkronizálás megkezdéséhez a következõ paranccsal illesszük be a [.filename]#da1# eszközt a tükrözésbe:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
A tükrözés állapota a létrejöttét követõen az alábbi paranccsal ellenõrizhetõ:
-[source,bash]
+[source,shell]
....
# gmirror status
....
Az iménti parancs eredményének nagyjából a következõnek kell lennie miután a felépítettük a tükrözést és szinkronizáltuk az adatokat:
-[source,bash]
+[source,shell]
....
Name Status Components
mirror/gm0 COMPLETE da0
@@ -293,7 +293,7 @@ mountroot>
Indítsuk újra a gépünket a kikapcsoló gomb vagy a reset segítségével. A rendszerindító menüben válasszuk a hatodik opciót (6). Ennek eredményeképpen megkapjuk a man:loader[8] parancssorát. Töltsük be a modult manuálisan:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror
OK? boot
@@ -314,7 +314,7 @@ A lemezek tükrözésének egyik legcsodálatosabb elõnye, hogy a menet közben
Vegyük az iménti RAID-1 konfigurációt, és tételezzük fel, hogy a [.filename]#da1# eszköz felmondta a szolgáltatot és cserére szorul. A meghajtó leváltásához keressük meg a hibás eszközt, majd állítsuk le a rendszert. Tegyük be a helyére az újat és indítsuk újra a rendszerünket. Miután elindult az operációs rendszer, a következõ parancsok kiadásával tudjuk logikailag is lecserélni a meghibásodott lemezt:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
# gmirror insert gm0 /dev/da1
@@ -338,14 +338,14 @@ Ezzel a belsõ hálózaton levõ összes számítógép képes lesz elérni a [.
Az eszköz megosztásához elõször gondoskodnunk kell róla, hogy ne legyen csatlakoztatva, majd ezután indítsuk el a man:ggated[8] szerver démonját:
-[source,bash]
+[source,shell]
....
# ggated
....
Ezt követõen a `mount` felhasználásával csatoljuk az eszközt a kliensen, az alábbi parancs kiadásával:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -383,7 +383,7 @@ Az ideiglenes címkék a következõ induláskor elvesznek. Ezek a címkék a [.
Ha egy UFS2 állományrendszerre szeretnénk tenni egy állandó címkét az adataink megsemmisítése nélkül, adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -408,7 +408,7 @@ Az állományrendszert tilos csatolni a `tunefs` futtatása alatt!
Most már a megszokott módon csatolhatjuk az állományrendszert:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -419,7 +419,7 @@ Ettõl a ponttól kezdve, amíg a [.filename]#geom_label.ko# modul betöltõdik
Az alábbi paranccsal tudjuk törölni a címkét:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -433,7 +433,7 @@ A rendszerindításra használt lemezen levõ partíciók felcímkézésével a
Indítsuk újra a rendszerünket és a man:loader[8] menüjében a kbd:[4] billentyû lenyomásával válasszuk az egyfelhasználós módot. Ezt követõen adjuk ki a következõ parancsokat:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -462,7 +462,7 @@ A rendszer indítása ezután többfelhasználós módban folytatódik. A rendsz
A rendszer most már újraindítható. Ha mindent jól csináltunk, akkor a rendszer indítása problémáktól mentesen fog zajlani és a `mount` parancs eredménye a következõ lesz:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -476,7 +476,7 @@ devfs on /dev (devfs, local)
A FreeBSD 7.2 kiadásától kezdõdõen a man:glabel[8] osztály az UFS esetén támogatja az `ufsid`, az állományrendszer egyedi rendszerszintû azonosítójából származtatott új címketípus használatát. Ezek a címkék a rendszer indítása során a [.filename]#/dev/ufsid# könyvtárban jönnek automatikusan létre. Az `ufsid` címkéken keresztül tudunk az [.filename]#/etc/fstab# állományban állományrendszereket csatlakoztatni. A jelenleg aktív állományrendszereket és azok `ufsid` azonosítóit a `glabel status` paranccsal tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -528,7 +528,7 @@ options GEOM_JOURNAL
Ha ezt aktiváltuk, egy szabad állományrendszeren az alábbi lépéseken keresztül tudunk létrehozni egy naplót, feltéve, hogy a [.filename]#da4# egy új SCSI-meghajtó:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/ad4
@@ -536,7 +536,7 @@ Ha ezt aktiváltuk, egy szabad állományrendszeren az alábbi lépéseken keres
Ennél a pontnál lennie kell egy [.filename]#/dev/da4# és egy [.filename]#/dev/da4.journal# eszközleírónak. Hozzunk létre egy állományrendszert ezen az eszközön:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -545,7 +545,7 @@ Ez a parancs létrehoz egy UFS2 állományrendszert a naplóval rendelkezõ eszk
Csatoljuk is be a `mount` segítségével az eszközt kívánt csatlakozási pontra:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/hu/books/handbook/install/_index.adoc b/documentation/content/hu/books/handbook/install/_index.adoc
index 601e1f424b..5ad9c171c0 100644
--- a/documentation/content/hu/books/handbook/install/_index.adoc
+++ b/documentation/content/hu/books/handbook/install/_index.adoc
@@ -312,7 +312,7 @@ Az itt található példában a rendszerindításhoz és így a mûvelet végreh
+
A `kern.geom.debugflags` változó értékének megfelelõ beállításával engedélyezzük a céleszközön a Master Boot Record írását.
+
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -321,7 +321,7 @@ A `kern.geom.debugflags` változó értékének megfelelõ beállításával eng
+
Az [.filename]#.img# kiterjesztésû állományt _nem_ egyszerûen a pendrive-ra kell másolni, ez a lemez teljes tartalmát magában foglalja. Ennek megfelelõen _nem_ egyszerûen állományokat kell másolnunk az egyik lemezrõl a másikra. Helyette a man:dd[1] parancs segítségével írjuk az image állomány tartalmát közvetlenül a lemezre.
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# dd if=FreeBSD-{rel120-current}-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -364,7 +364,7 @@ Azok számára, akik a floppykat MS-DOS(R)/Windows(R) rendszerû számítógépe
+
Ha a CD-meghajtónk betûjele például [.filename]#E:# és a telepítõ CD-n található image-eket szeretnénk kiírni vele, akkor ezt a parancsot kell kiadnunk:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
....
@@ -373,7 +373,7 @@ Ezután ismételten adjuk ki az iménti parancsot minden egyes használni kívá
+
Amikor a lemezeket egy UNIX(R) rendszeren készítenénk el (például egy másik FreeBSD rendszeren), akkor a man:dd[1] parancs is használható az image állományok közvetlen lemezreírásához. FreeBSD alatt így néz ki a paraméterezése:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -445,7 +445,7 @@ Ha minden próbálkozásunk ellenére a számítógépünk a megszokott módon i
. A FreeBSD megkezdi az indulását. Ha CD-rõl indítjuk, akkor valami ehhez hasonlót fogunk látni (a konkrét verzióra vonatkozó adatokat itt most kihagytuk):
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
645MB medium detected
@@ -472,7 +472,7 @@ Loading /boot/defaults/loader.conf
+
Amikor floppyról indítjuk a rendszert, ehhez hasonlóval találkozhatunk (itt sem szerepelnek most verzióadatok):
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -507,7 +507,7 @@ A legtöbb sparc64 alapú rendszert úgy állították be, hogy automatikusan le
Mindehhez indítsuk újra a rendszert és várjuk meg, amíg feltûnik a rendszerindító üzenet. A konkrét üzenet nagyban függ a számítógép típusától, azonban valami ilyesmi lesz:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -517,7 +517,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Amikor megpróbálja a rendszert elindítani a lemezrõl, a PROM parancssorának bekéréshez nyomjuk le a billentyûzeten az kbd:[L1+A] vagy a kbd:[Stop+A] billentyûket, esetleg a soros konzolon keresztül küldjünk egy `BREAK` parancsot (például a man:tip[1] vagy man:cu[1] man oldalakon szereplõ `~#` parancs használatával). Körülbelül így néz ki:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -540,7 +540,7 @@ Tegyük most mi is ezt, és nézzük az összes olyan üzenetet, amely a rendsze
[[install-dev-probe]]
.Példa az eszközkeresés eredményeire
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -625,7 +625,7 @@ image::sysinstall-exit.png[]
A telepítõprogram fõképernyõjén válasszuk ki a nyílbillentyûkkel az [.guimenuitem]#Exit Install# ("Kilépés a telepítésbõl") menüpontot. Erre a következõ üzenet fog megjelenni:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot
@@ -635,7 +635,7 @@ A telepítõprogram fõképernyõjén válasszuk ki a nyílbillentyûkkel az [.g
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Valóban ki akar lépni? A rendszer ezt követően újra fog
@@ -777,7 +777,7 @@ Itt még semmilyen változtatás nem kerül lemezre. Ha úgy érezzük, hogy val
A sysinstallban a szabványos telepítés megkezdésekor az alábbi üzenet jelenik meg:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -794,7 +794,7 @@ A sysinstallban a szabványos telepítés megkezdésekor az alábbi üzenet jele
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
A most következő menüben össze kell állítanunk a merevlemezünk
@@ -962,7 +962,7 @@ Ha a FreeBSD-t egynél több lemezre telepítjük, akkor a korábban megadott t
A partíciók elrendezésének kigondolása után most már létre is hozathatjuk ezeket a sysinstall segítségével. Ekkor a következõ üzenetet fogjuk látni:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -978,7 +978,7 @@ A partíciók elrendezésének kigondolása után most már létre is hozathatju
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
Most létre kell hoznunk az fdiskkel nemrég elkészített partíciókban a
@@ -1079,7 +1079,7 @@ Miután kiválasztottuk a nekünk megfelelõ terjesztést, a telepítõprogram f
A telepítõprogram nem fogja ellenõrizni a kibontásához szükséges helyet, ezért csak abban az esetben válasszuk ezt a lehetõséget, ha mindenképpen elfér a merevlemezünkön. A FreeBSD jelenlegi, {rel120-current} változatában a Portgyûjtemény nagyjából {ports-size} helyet foglal el a lemezen. A FreeBSD frissebb verzióiban nyugodtan feltételezhetünk ennél valamivel nagyobb értéket is.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1103,7 +1103,7 @@ A telepítõprogram nem fogja ellenõrizni a kibontásához szükséges helyet,
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Szeretné telepíteni a FreeBSD portjainak gyűjteményét?
@@ -1172,7 +1172,7 @@ Mivel az `ftp.FreeBSD.org` címrõl származó [.filename]#/pub/FreeBSD# könyvt
Ezután ha óhajtjuk, megkezdhetjük a telepítést. Ez egyben az utolsó lehetõségünk a telepítés megszakítására és merevlemezünket érintõ változtatások érvénytelenítésére.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1187,7 +1187,7 @@ Ezután ha óhajtjuk, megkezdhetjük a telepítést. Ez egyben az utolsó lehet
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Utolsó esély: BIZTOSAN folytatni kívánja a telepítést?
@@ -1207,7 +1207,7 @@ A telepítés idõtartama a kiválasztott terjesztéstõl, a telepítésre haszn
A telepítés befejezése után a következõ üzenet jelenik meg:
-[source,bash]
+[source,shell]
....
Message
@@ -1226,7 +1226,7 @@ do so by typing: /usr/sbin/sysinstall.
A szöveg fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
@@ -1246,7 +1246,7 @@ Az kbd:[Enter] billentyû lenyomásával megkezdhetjük a telepítés utáni be
A btn:[no] gomb kiválasztásával és az kbd:[Enter] lenyomásával megszakíthatjuk a telepítést, így a rendszerünkön semmilyen változtatás nem történik. Ilyenkor a következõ üzenet jelenik meg:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1259,7 +1259,7 @@ installation menus to retry whichever operations have failed.
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
A telepítés során hiba történt. A Scroll Lock használatával érdemes
@@ -1284,7 +1284,7 @@ A következõ képernyõ már nem jelenik meg, ha az FTP szerveren keresztüli t
Ha többet szeretnénk megtudni a helyi hálózatokról (LAN), vagy a FreeBSD-t átjáróként, illetve útválasztóként kívánjuk beállítani, olvassuk el az crossref:advanced-networking[advanced-networking,Egyéb haladó hálózati témák] címû fejezetet.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1294,7 +1294,7 @@ Ha többet szeretnénk megtudni a helyi hálózatokról (LAN), vagy a FreeBSD-t
Fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Szeretnénk beállítani valamilyen Ethernet- vagy PPP hálózati eszközt?
@@ -1310,7 +1310,7 @@ image::ed0-conf.png[]
A beállítandó csatoló kiválasztásához használjuk a nyílbillentyûket és utána nyomjuk meg az kbd:[Enter] billentyût.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1320,7 +1320,7 @@ A beállítandó csatoló kiválasztásához használjuk a nyílbillentyûket é
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Megpróbálkozik az IPv6 beállításával a csatolón?
@@ -1332,7 +1332,7 @@ A példánkban szereplõ helyi hálózatban az aktuális internetes protokoll (I
Amennyiben RA-szerveren keresztül egy már létezõ IPv6 hálózathoz csatlakozunk, akkor válasszuk a btn:[yes] gombot és nyomjuk meg az kbd:[Enter] billentyût. Ezt követõen az RA-szerverek felderítése kezdõdik meg, ami néhány másodpercig eltarthat.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1342,7 +1342,7 @@ Amennyiben RA-szerveren keresztül egy már létezõ IPv6 hálózathoz csatlakoz
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Megpróbálkozik a DHCP használatával a csatolón?
@@ -1385,7 +1385,7 @@ Az `ifconfig` parancs adott csatolóra vonatkozó egyéb beállításai. Jelen e
Miután végeztünk, a kbd:[Tab] billentyû lenyomásával válasszuk ki a btn:[OK] gombot és nyomjuk le az kbd:[Enter] billentyût.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to bring the ed0 interface up right now?
@@ -1395,7 +1395,7 @@ Miután végeztünk, a kbd:[Tab] billentyû lenyomásával válasszuk ki a btn:[
A fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Aktiválja most az ed0 csatolót?
@@ -1408,7 +1408,7 @@ A btn:[yes] gomb kiválasztásával, majd az kbd:[Enter] lenyomásával csatlako
[[gateway]]
=== Az átjáró beállítása
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1418,7 +1418,7 @@ A btn:[yes] gomb kiválasztásával, majd az kbd:[Enter] lenyomásával csatlako
A fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Ezt a számítógépet hálózati átjáróként is használni akarja?
@@ -1431,7 +1431,7 @@ Ha a számítógépet a helyi hálózat átjárójaként használni akarjuk gép
[[inetd-services]]
=== A hálózati szolgáltatások beállítása
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1441,7 +1441,7 @@ Do you want to configure inetd and the network services that it provides?
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Beállítja az inetd démont és az általa felkínált hálózati szolgáltatásokat?
@@ -1455,7 +1455,7 @@ Az [.filename]#/etc/inetd.conf# átírásával azonban ezek a szolgáltatások k
A btn:[yes] gomb választásával már a telepítés során beállíthatjuk a szolgáltatásokat. Ekkor egy további párbeszédablak is felbukkan:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1470,7 +1470,7 @@ With this in mind, do you wish to enable inetd?
Fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
A fő internetes kiszolgáló (az inetd) számos egyszerű internetes
@@ -1486,7 +1486,7 @@ Mindezek tudatában használni kívánja az inetd démont?
A folytatáshoz válasszuk a btn:[yes] gombot.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1504,7 +1504,7 @@ use the current settings.
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Az inetd(8) démonnak az elérhető internetes szolgáltatások
@@ -1534,7 +1534,7 @@ Miután felvettük az összes használni kívánt szolgáltatást, az kbd:[Esc]
[[ssh-login]]
=== Az SSH-n keresztüli bejelentkezés engedélyezése
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1543,7 +1543,7 @@ Miután felvettük az összes használni kívánt szolgáltatást, az kbd:[Esc]
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Engedélyezi az SSH-n keresztüli bejelentkezést?
@@ -1555,7 +1555,7 @@ A btn:[yes] gomb kiválasztása engedélyezi az OpenSSH-hoz tartozó man:sshd[8]
[[ftpanon]]
=== Anonim FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1565,7 +1565,7 @@ A btn:[yes] gomb kiválasztása engedélyezi az OpenSSH-hoz tartozó man:sshd[8]
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Hozzáférhető legyen ez a számítógép anonim FTP használatán keresztül?
@@ -1585,7 +1585,7 @@ Ha ezt választjuk, akkor anonim FTP kapcsolaton keresztül bárki hozzáférhet
Az anonim FTP bekapcsolásához a nyílbillentyûkkel válasszuk ki a btn:[yes] feliratú gombot és nyomjuk meg az kbd:[Enter] billentyût. Ekkor egy további párbeszédablak is megjelenik:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1608,7 +1608,7 @@ Az anonim FTP bekapcsolásához a nyílbillentyûkkel válasszuk ki a btn:[yes]
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
@@ -1658,7 +1658,7 @@ Az FTP gyökere alapból a [.filename]#/var# könyvtár lesz. Ha a becsült FTP-
Ha elfogadhatónak találjuk az értékeket, nyomjuk le az kbd:[Enter] billentyût a folytatáshoz.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1668,7 +1668,7 @@ Ha elfogadhatónak találjuk az értékeket, nyomjuk le az kbd:[Enter] billenty
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Létre kíván hozni egy köszöntő üzenetet tartalmazó állományt
@@ -1695,7 +1695,7 @@ A hálózati állományrendszer (Network File System, NFS) állományok közzét
[[nsf-server-options]]
==== Az NFS szerver
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1705,7 +1705,7 @@ A hálózati állományrendszer (Network File System, NFS) állományok közzét
A fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Be akarja állítani NFS szervernek ezt a számítógépet?
@@ -1717,7 +1717,7 @@ Ha nincs szükségünk a hálózati állományrendszer szerver részére, akkor
Amennyiben a btn:[yes] gombot választjuk, egy üzenet fogja közölni velünk, hogy létre kell hoznunk az [.filename]#exports# állományt.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1729,7 +1729,7 @@ Press [Enter] now to invoke an editor on /etc/exports
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
Az NFS szerver működtetéséhez először az /etc/exports állomány
@@ -1755,7 +1755,7 @@ Amikor végeztünk, az kbd:[Esc] billentyûvel felhozható menüben alapból az
Az NFS kliens beállításával NFS szerverekhez tudunk hozzáférni.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1765,7 +1765,7 @@ Az NFS kliens beállításával NFS szerverekhez tudunk hozzáférni.
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Beállítja NFS kliensnek ezt a számítógépet?
@@ -1780,7 +1780,7 @@ A nyílbillentyûkkel igényeinknek megfelelõen válasszuk a btn:[yes] vagy btn
Számos beállítás kapcsolódik a rendszerben található konzolok testreszabásához.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1790,7 +1790,7 @@ Számos beállítás kapcsolódik a rendszerben található konzolok testreszab
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Testreszabja a rendszerkonzol beállításait?
@@ -1833,7 +1833,7 @@ Ha kiválasztjuk számítógépünk számára a megfelelõ idõzónát, akkor le
A példában az Egyesült Államok keleti idõzónájában elhelyezkedõ számítógépet láthatunk. A mi beállításaink természetesen a saját földrajzi helyzetünktõl függenek.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1843,7 +1843,7 @@ A példában az Egyesült Államok keleti idõzónájában elhelyezkedõ számí
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Beállítja most a számítógép időzónáját?
@@ -1853,7 +1853,7 @@ Fordítás:
A btn:[yes] gomb és az kbd:[Enter] billentyû segítségével kiválaszthatjuk az idõzóna beállítását.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1864,7 +1864,7 @@ A btn:[yes] gomb és az kbd:[Enter] billentyû segítségével kiválaszthatjuk
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
A számítógép órája az egységes világidőhöz (UTC) van beállítva? Ha a
@@ -1893,7 +1893,7 @@ image::timezone3.png[]
A nekünk megfelelõ idõzóna a nyilakkal választható meg, amit ezután az kbd:[Enter] billentyûvel tudunk jóváhagyni.
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1903,7 +1903,7 @@ A nekünk megfelelõ idõzóna a nyilakkal választható meg, amit ezután az kb
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Megerősítés
Ezek szerint az 'EDT' elfogadható?
@@ -1921,7 +1921,7 @@ Erõsítsük meg, hogy az idõzóna helyes-e. Ha rendbenlevõnek látszik, nyomj
Ez a rész csak a FreeBSD 7._X_ telepítésére vonatkozik, FreeBSD 8._X_ esetén ez a képernyõ nem jelenik meg.
====
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1931,7 +1931,7 @@ Ez a rész csak a FreeBSD 7._X_ telepítésére vonatkozik, FreeBSD 8._X_ eseté
A fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Engedélyezi a Linux binárisok futtatását?
@@ -1948,7 +1948,7 @@ Ha FTP-n keresztül telepítünk, akkor a számítógépnek csatlakoznia kell az
Ezen beállítás használatával egy háromgombos egérrel lehetõségünk adódik a konzol és a felhasználói programok között kivágni és bemásolni szövegeket. Kétgombos egér használata esetén nézzük meg a man:moused[8] man oldalán, miként tudjuk emulálni a háromgombos mûködést. A következõ példa egy nem USB-s (tehát PS/2-es vagy soros portra csatlakozó) egér beállítását illusztrálja:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1958,7 +1958,7 @@ Ezen beállítás használatával egy háromgombos egérrel lehetõségünk adó
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Csatlakozik a rendszeréhez PS/2-es, soros vagy buszos egér?
@@ -2013,7 +2013,7 @@ A csomagok elõre lefordított binárisokat tartalmaznak, és használatukkal ig
Szemléltetés céljából most bemutatjuk az egyik ilyen csomag telepítését. Természetesen igény szerint más csomagokat is hozzávehetünk. A telepítés után a `sysinstall` parancs használható további csomagok telepítésére.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -2025,7 +2025,7 @@ Szemléltetés céljából most bemutatjuk az egyik ilyen csomag telepítését.
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
A FreeBSD csomaggyűjteménye többezernyi azonnal használható
@@ -2079,7 +2079,7 @@ A beállítások véglegesítése a csomagok telepítése után folytatódik. Am
A telepítés során legalább egy felhasználót érdemes hozzáadnunk a rendszerhez, mivel a rendszer használatához így nem kell `root` felhasználóként bejelentkezni. Általánosságban véve ahhoz egyébként is kicsi a gyökérpartíció, hogy `root` felhasználóként (rendszeradminisztrátorként) futtassunk rajta programokat, és gyorsan be is telik. A nagyobb veszélyt azonban itt olvashatjuk:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -2090,7 +2090,7 @@ A telepítés során legalább egy felhasználót érdemes hozzáadnunk a rendsz
[ Yes ] No
....
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Szeretnénk mosta rendszerbe felvenni felhasználói fiókokat? Ebben a
@@ -2156,7 +2156,7 @@ Amikor befejeztük a felhasználók hozzáadását, a nyilakkal válasszuk ki az
[[rootpass]]
=== A `root` felhasználó jelszavának megadása
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -2169,7 +2169,7 @@ Amikor befejeztük a felhasználók hozzáadását, a nyilakkal válasszuk ki az
Fordítása:
-[source,bash]
+[source,shell]
....
Üzenet
Most meg kell adnia a rendszergazda jelszavát. Ezt a jelszót
@@ -2184,7 +2184,7 @@ A `root` felhasználó jelszavának beállításához nyomjuk meg az kbd:[Enter]
A jelszót kétszer kell megadnunk. Felesleges megemlíteni, hogy gondoskodjunk arról az esetrõl is, ha véletlenül elfelejtenénk ezt a jelszót. Megemlítjük, hogy az itt begépelt jelszó nem lesz látható és a betûk helyett sem jelennek meg csillagok.
-[source,bash]
+[source,shell]
....
New password:
Retype new password :
@@ -2197,7 +2197,7 @@ A jelszó sikeres megadása után a telepítés folytatódik.
Ha be szeretnénk még állítani <<network-services,egyéb hálózati szolgáltatást>> vagy valamilyen más konfigurációs lépést kívánunk még elvégezni, ezen a ponton megtehetjük vagy a telepítés után a `sysinstall` parancs kiadásával.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -2208,7 +2208,7 @@ Ha be szeretnénk még állítani <<network-services,egyéb hálózati szolgált
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Végignézi még utoljára a beállításokat arra az esetre, ha véletlenül
@@ -2225,7 +2225,7 @@ image::mainexit.png[]
Válasszuk ki a nyílbillentyûkkel a btn:[X Exit Install] (Kilépés a telepítõbõl) gombot és nyomjuk meg az kbd:[Enter] billentyût. Ezután meg kell erõsítenünk kilépési szándékunkat:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -2235,7 +2235,7 @@ Válasszuk ki a nyílbillentyûkkel a btn:[X Exit Install] (Kilépés a telepít
Fordítás:
-[source,bash]
+[source,shell]
....
Felhasználói megerősítés szükséges
Valóban ki akar lépni? A rendszer ezt követően újra fog
@@ -2246,7 +2246,7 @@ Fordítás:
Válasszuk a btn:[yes] gombot. Ha CD-meghajtóról indítottuk a telepítést, akkor a következõ üzenet fog figyelmeztetni minket a lemez kivételére:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -2257,7 +2257,7 @@ Válasszuk a btn:[yes] gombot. Ha CD-meghajtóról indítottuk a telepítést, a
Fordítás:
-[source,bash]
+[source,shell]
....
Üzenet
Ne felejtsük el kivenni a CD-lemezt a meghajtóból.
@@ -2289,7 +2289,7 @@ Az [.guimenuitem]#AMD# menüpont kiválasztásával engedélyezzük a BSD automa
A következõ sorban az [.guimenuitem]#AMD Flags# (Az AMD beállításai) menüpont szerepel. Kiválasztása után az AMD beállításait bekérõ ablak fog felbukkani. Ez már számos alapértelmezett beállítást tartalmaz:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -2360,7 +2360,7 @@ Bejelentkezni a telepítéskor megadott felhasználói név/jelszó párossal tu
A rendszer indításakor jellemzõen elõforduló üzenetek (a verzióra vonatkozó adatokat kihagytuk):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2499,7 +2499,7 @@ Ha X szervert is beállítottunk és választottunk hozzá egy alapértelmezett
Fontos, hogy mindig szabályosan állítsuk le az operációs rendszert, ne kapcsoljuk ki csak úgy egyszerûen a számítógépünket! A leállításhoz elõször a `su` parancs kiadásával, majd itt a `root` jelszavának megadásával vegyük fel az ehhez szükséges rendszeradminisztrátori jogosultságokat. Ez viszont csak abban az esetben fog mûködni, ha a felhasználónk tagja a `wheel` csoportnak. Minden más esetben egyszerûen jelentkezzünk be `root` felhasználóként és használjuk a `shutdown -h now` parancsot.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2551,7 +2551,7 @@ A mûvelet végrehajtásához a [.filename]#/dos# könyvtárnak már léteznie k
Az MS-DOS(R) állományrendszerek esetében a man:mount[8] parancsot többnyire így adjuk ki:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2571,7 +2571,7 @@ A man:mount_ntfs[8] parancs használatával az NTFS partíciók hasonló módon
A FreeBSD az i386, amd64 és ia64 platformokon az indítás közben az eszközök felderítésében erõsen építkeznek a rendszeren elérhetõ ACPI szolgáltatásra. Sajnos még mindig vannak hibák az ACPI meghajtóban, az alaplapokban és a BIOS-okban. A rendszerbetöltõ harmadik fokozatában viszont az `hint.acpi.0.disabled` megadásával kikapcsolható az ACPI használata:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2588,7 +2588,7 @@ Az elsõ szituációban két IDE-lemezünk van, mind a kettõt masterként áll
A FreeBSD 1. BIOS-számozású lemezen van, amelynek a típusa `ad` és a FreeBSD szerinti a 2 sorszámot viseli. Ezért ezt kell használnunk:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2597,7 +2597,7 @@ Ha az elsõdleges buszon van egy slave meghajtónk, akkor mindez nem szükséges
A második szituációban egy SCSI-lemezrõl akarjuk indítani a rendszert, miközben egy vagy több IDE-lemez is található a gépünkben. Ebben az esetben a FreeBSD szerinti sorszám kisebb lesz, mint a BIOS szerinti. Ha tehát a két IDE-lemezünk mellett van még egy SCSI-lemez is, akkor annak a BIOS szerinti sorszáma 2, a típusa `da` és a FreeBSD szerinti sorszáma pedig 0. Ennek megfelelõen a
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2648,7 +2648,7 @@ A következõ lépésekkel tehetjük képessé a soros konzolon keresztüli rend
+
Ha a korábban elõkészített pendrive-val most csak egyszerûen elindítanánk a FreeBSD-t, akkor a megszokott telepítési módban indulna el. Mi viszont azt akarjuk, hogy a telepítéshez a FreeBSD a soros konzolon keresztül induljon el. Ehhez csatlakoztassuk az eszközt a számítógéphez, valamint a man:mount[8] paranccsal FreeBSD rendszerünkhöz pedig a hozzátartozó állományrendszert.
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2660,14 +2660,14 @@ A konkrét eszköznevet és csatlakozási pontot módosítsuk a saját környeze
+
Most, miután már fizikailag és logikailag is csatlakoztattuk a pendrive-ot, be kell állítanunk a soros konzol használatára rendszerindítás közben. Ehhez egy [.filename]#loader.conf# nevû állományt kell elhelyeznünk a pendrive állományrendszerén a soros konzolra (mint rendszerkonzolra) vonatkozó beállítással:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /mnt//boot/loader.conf
....
+
Miután a pendrive-on sikeresen elvégeztük a szükséges beállítást, válasszuk le a man:umount[8] parancs kiadásával:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2682,7 +2682,7 @@ Ha a telepítésre szánt ISO image-bõl készített lemezzel (lásd <<install-c
+
A korábban, például a [.filename]#FreeBSD-8.1-RELEASE-i386-disc1.iso# néven letöltött image-bõl a man:tar[1] segédprogrammal tudjuk kinyerni a benne tárolt összes állományt:
+
-[source,bash]
+[source,shell]
....
# mkdir /a/hasznalt/iso/helye
# tar -C /a/hasznalt/iso/helye -pxvf FreeBSD-8.1-RELEASE-i386-disc1.iso
@@ -2690,14 +2690,14 @@ A korábban, például a [.filename]#FreeBSD-8.1-RELEASE-i386-disc1.iso# néven
+
Ezt követõen módosítanunk kell a telepítõlemezt a soros konzol használatára. Ehhez egy [.filename]#loader.conf# állományt kell hozzáadnunk a kibontott ISO image tartalmához. Ebben állítjuk be a soros konzolt rendszerkonzolnak:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /a/hasznalt/iso/helye/boot/loader.conf
....
+
Ezután készítsünk egy új ISO image-et a módosított tartalom alapján. Ehhez a package:sysutils/cdrtools[] port részeként elérhetõ man:mkisofs[8] segédprogramot használjuk:
+
-[source,bash]
+[source,shell]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "soroskonzolos" -o soroskonzolos-FreeBSD-8.1-RELEASE-i386-disc1.iso /a/hasznalt/iso/helye
....
@@ -2710,14 +2710,14 @@ Most már ideje elkezdeni a telepítést. Tegyük a [.filename]#boot.flp# image-
+
Ezután a man:cu[1] parancs felhasználásával kapcsolódjunk rá a gépre:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
+
Ezt FreeBSD 7._X_ esetén így kell használnunk:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuad0
....
@@ -2821,7 +2821,7 @@ A FreeBSD lemezeken az FTP oldalakéhoz hasonló elrendezést találunk. Ez megk
. Az FTP oldalnak otthont adó FreeBSD számítógépen tegyük a CD-t a meghajtóba, majd csatlakoztassuk a [.filename]#/cdrom# könyvtárba.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2859,7 +2859,7 @@ _Ne_ bízzunk a gyárilag formázott ("pre-formatted" jelzésû) lemezekben! Men
A formázás abban az esetben sem bizonyul rossz ötletnek, ha egy másik FreeBSD gépen gyártjuk le a lemezeket, habár nem kell mindegyik lemezre DOS állományrendszert tennünk. Helyette a `bsdlabel` és `newfs` parancsok használatával UFS állományrendszert is tehetünk rájuk, ahogy (1,44 MB méretû lemezek esetén) ezt az alábbi parancsok mutatják:
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w fd0.1440 floppy3
@@ -2882,7 +2882,7 @@ Ahogy elérkezünk a telepítõeszköz kiválasztásához a telepítés folyamat
Amikor egy MS-DOS(R) partícióról akarunk telepíteni, elõkészítés gyanánt másoljuk a terjesztésekhez tartozó állományokat a partícióra egy [.filename]#freebsd# könyvtárba. Ez lesz például a [.filename]#c:\freebsd#. Ebben a könyvtárban igyekezzük minél jobban megtartani a CD vagy az FTP oldal könyvtárszerkezetét, ezért erre a CD-rõl történõ átmásolásra a DOS `xcopy` parancsát javasoljuk. Például így tudjuk elõkészíteni a FreeBSD legegyszerûbb változatának telepítését:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2899,7 +2899,7 @@ Mindegyik telepítendõ terjesztést (ami még elfér) másoljuk át az MS-DOS(R
Valószínûleg a szalagos módszer a legegyszerûbb, egyfajta élõ FTP-s vagy CD-s telepítés. A telepítõprogram arra számít, hogy a szalagon az állományok egymás után helyezkednek el. Tehát miután beszereztük a nekünk kellõ terjesztésekhez tartozó összes állományt, egyszerûen vegyük fel ezeket a szalagra:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/hu/books/handbook/jails/_index.adoc b/documentation/content/hu/books/handbook/jails/_index.adoc
index 14f402be68..d0ea971402 100644
--- a/documentation/content/hu/books/handbook/jails/_index.adoc
+++ b/documentation/content/hu/books/handbook/jails/_index.adoc
@@ -111,7 +111,7 @@ Ezektõl eltekintve a jailek rendelkezhetnek saját felhasználókkal és lehetn
Egyes rendszergazdák a jaileket a következõ két típusba sorolják: "teljes" jail, mely egy valódi FreeBSD rendszerre emlékeztet, és a "szolgáltatás" jail, mely egyetlen, feltehetõen kiemelt jogokkal futó alkalmazás vagy szolgáltatás számára van elõkészítve. Ez a besorolás csupán fogalmi szintû, a jail felépítésének módját nem befolyásolja. A man:jail[8] man oldal részletesen ismerteti a jailek létrehozását:
-[source,bash]
+[source,shell]
....
# setenv D /itt/lesz/a/jail
# mkdir -p $D <.>
@@ -172,7 +172,7 @@ Az összes itt elérhetõ opciót a man:rc.conf[5] man oldalon találhatjuk meg.
Ha léteznek a megfelelõ bejegyzések az [.filename]#rc.conf# állományban, akkor az [.filename]#/etc/rc.d/jail# szkript is használható arra, hogy a jaileket kézzel indítsuk el vagy állítsuk le:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -180,7 +180,7 @@ Ha léteznek a megfelelõ bejegyzések az [.filename]#rc.conf# állományban, ak
A man:jail[8] leállítására jelen pillanatban még nem érhetõ el szabályos módszer. Ez azért van, mert a szabályos rendszerleállítást elvégzõ parancsok nem használhatóak a jailen belül. Emiatt a jaileket a legtisztábban úgy tudjuk leállítani, ha kiadjuk az alábbi parancsot magában a jailben vagy pedig a man:jexec[8] segédprogrammal a jailen kívülrõl:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -215,7 +215,7 @@ A FreeBSD alaprendszere tartalmazza azokat a segédeszközöket, amelyekkel a re
* Ki tudjuk íratni az aktív jailek és hozzájuk tartozó azonosítókat (JID-eket), IP-címeket, neveket és útvonalakat.
* A befogadó rendszerbõl hozzá tudunk csatlakozni egy futó jailhez, és parancsokat tudunk futtatni a jailen belül vagy karbantartási feladatokat tudunk elvégezni magán a jailen belül. Ez különösen hasznosnak bizonyulhat, amikor a `root` felhasználó szabályosan le akarja állítani a jailt. A man:jexec[8] segédprogrammal el tudunk indítani egy parancsértelmezõt a jailen belül, amibõl aztán irányíthatjuk. Példa:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -287,7 +287,7 @@ Ez a rész leírja a fõ sablon létrehozásához szükséges lépéseket. Ez a
====
. Elõször is, készítsük el az írásvédett állományrendszer könyvtárszerkezetét, amely majd tartalmazni fogja a jailek által használt FreeBSD-s programokat. Ezután lépjünk be a FreeBSD forrásfájának könyvtárába és telepítsük fel az írásvédett állományrendszert a sablonba:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -296,7 +296,7 @@ Ez a rész leírja a fõ sablon létrehozásához szükséges lépéseket. Ez a
+
. Ezt követõen készítsük elõ a jailek számára a FreeBSD Portgyûjteményt és FreeBSD forrásfát, melyek kellenek a mergemaster használatához:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -306,7 +306,7 @@ Ez a rész leírja a fõ sablon létrehozásához szükséges lépéseket. Ez a
+
. Hozzuk létre a rendszer írásvédett részének vázát:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -318,7 +318,7 @@ Ez a rész leírja a fõ sablon létrehozásához szükséges lépéseket. Ez a
+
. Használjuk a mergemastert a hiányzó konfigurációs állományok telepítésére. Szabaduljunk meg a mergemaster által készített felesleges könyvtáraktól:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -327,7 +327,7 @@ Ez a rész leírja a fõ sablon létrehozásához szükséges lépéseket. Ez a
+
. Most pedig szimbolikusan linkeljük az írható-olvasható állományrendszert az írásvédett állományrendszerre. Ellenõrizzük, hogy a szimbolikus linkek a megfelelõ [.filename]#s/# könyvtárakban jöttek létre. Valós vagy rossz helyen létrehozott könyvtárak használata esetén a telepítés nem fog sikerülni.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -405,14 +405,14 @@ Azért állítottuk a `jail__név__rootdir` változó értékét a [.filename]#/
+
. Hozzuk létre az egyes jailek írásvédett állományrendszereihez szükséges csatlakozási pontokat:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Telepítsük az írható-olvasható sablont az egyes jailekbe. Figyeljük meg a package:sysutils/cpdup[] használatát, amellyel az egyes könyvtárak pontos másolatait hozhatjuk létre:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -422,7 +422,7 @@ Azért állítottuk a `jail__név__rootdir` változó értékét a [.filename]#/
+
. Ebben a fázisban a jailek már elkészültek és készen állnak a futásra. Elõször csatlakoztassuk az egyes jailekhez szükséges állományrendszereket, majd indítsuk el ezeket a [.filename]#/etc/rc.d/jail# szkripttel:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
@@ -431,7 +431,7 @@ Azért állítottuk a `jail__név__rootdir` változó értékét a [.filename]#/
A jailek most már futnak. Az elindulásuk ellenõrzéséhez használjuk a man:jls[8] parancsot. Valami ilyesmit láthatunk a kiadása után:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -442,7 +442,7 @@ A jailek most már futnak. Az elindulásuk ellenõrzéséhez használjuk a man:j
Itt már be tudunk jelentkezni az egyes jailekbe, új felhasználókat tudunk készíteni vagy démonokat tudunk beállítani. A `JID` oszlop mutatja az egyes jailek azonosítási számát. A 3-as `JID` számú jailben az alábbi parancs használatával karbantartási feladatokat elvégezni:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -457,7 +457,7 @@ Idõrõl idõre adódhat, hogy frissítenünk kell a rendszert a FreeBSD egy új
. Elsõ lépéseként frissítsük magát a befogadó rendszert a megszokott módon. Ezután hozzunk létre egy új írásvédett sablont a [.filename]#/home/j/mroot2# könyvtárban.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -469,7 +469,7 @@ Idõrõl idõre adódhat, hogy frissítenünk kell a rendszert a FreeBSD egy új
+
A `installworld` lefuttatása létrehoz néhány felesleges könyvtárat, melyeket takarítsunk is el:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -477,7 +477,7 @@ A `installworld` lefuttatása létrehoz néhány felesleges könyvtárat, melyek
+
. Hozzuk újra létre az írható-olvasható szimbolikus linkjeinket a fõ állományrendszerre:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -490,14 +490,14 @@ A `installworld` lefuttatása létrehoz néhány felesleges könyvtárat, melyek
+
. Most érkezett el az idõ, hogy leállítsuk a jaileket:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail stop
....
+
. Válasszuk le az eredeti állományrendszereket:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -514,7 +514,7 @@ Az írható-olvasható állományrendszerek hozzá vannak kapcsolva az írásvé
+
. Mozgassuk el az útból a régi írásvédett állományrendszerünket és váltsuk fel az újjal. Így biztonsági mentésként és a régi írásvédett rendszer archívumaként továbbra is rendelkezésre áll, ha valami baj történne. Az itt használt elnevezés az újonnan létrehozott írásvédett állományrendszer dátumából ered. Mozgassuk át az eredeti FreeBSD Portgyûjteményt az új állományrendszerre, hogy megtakarítsunk némi tárhelyet és állományleírót:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -524,7 +524,7 @@ Az írható-olvasható állományrendszerek hozzá vannak kapcsolva az írásvé
+
. Most már készen áll az új írásvédett sablon, így már csak az állományrendszerek újracsatlakoztatása és a jailek újraindítása maradt:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
diff --git a/documentation/content/hu/books/handbook/kernelconfig/_index.adoc b/documentation/content/hu/books/handbook/kernelconfig/_index.adoc
index ef4b073e83..655b57957d 100644
--- a/documentation/content/hu/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/hu/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ A `pciconf -lv` paranccsal kapott kimenet ezen része azt mutatja, hogy az [.fil
A man:man[1] a `-k` paraméter megadásával további hasznos információkkal is tud szolgálni. A fentiekbõl kiindulva például a következõ paranccsal:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -166,7 +166,7 @@ A példák során ez a fejezet feltételezi, hogy az i386 architektúrát haszn
====
Ha _nem lenne_ [.filename]#/usr/src/sys# könyvtár a rendszerünkben, valószínûleg még nem telepítettük a rendszermag forráskódját. Ezt a legkönnyebben úgy tudjuk megtenni, ha `root` felhasználóként elindítjuk a `sysinstall` programot és ott kiválasztjuk a [.guimenuitem]#Configure# (Beállítások), azon belül [.guimenuitem]#Distributions# (Terjesztések) menüpontot, amiben válasszuk ki a [.guimenuitem]#src#, [.guimenuitem]#base# és [.guimenuitem]#sys# terjesztéseket. Ha nem szeretnénk erre a célra a sysinstall programot használni, de rendelkezésünkre áll a "hivatalos" FreeBSD CD, akkor a forrásokat akár parancssorból is telepíthetjük:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -179,7 +179,7 @@ Ha _nem lenne_ [.filename]#/usr/src/sys# könyvtár a rendszerünkben, valószí
Ezután lépjünk be az [.filename]#i386/conf# könyvtárba és másoljuk le a [.filename]#GENERIC# konfigurációs állományt a kedvünk szerinti nevûre. Például:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC SAJÁT
@@ -196,7 +196,7 @@ Tehát érdemes inkább valahol máshol tárolnunk a rendszermagunk konfiguráci
Valahogy így:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernel
@@ -223,21 +223,21 @@ Most pedig le kell lefordítanunk a rendszermag forráskódját.
. Lépjünk be a [.filename]#/usr/src# könyvtárba:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Fordítsuk le a rendszermagot:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=SAJÁT
....
+
. Telepítsük az új rendszermagot:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=SAJÁT
....
@@ -299,7 +299,7 @@ Valószínûleg sok rendszergazda számára jelentõs elõnyt jelent ez a megold
====
Ha olyan állományt akarunk készíteni, amely tartalmazza az összes lehetséges opciót, például teszteléshez, futtassuk le `root` felhasználóként az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1133,7 +1133,7 @@ Négyféle probléma jelentkezhet egy saját rendszermag készítése során. Ez
A `config` hibát jelez:::
Amikor a man:config[8] parancs hibát jelez vissza a rendszermagunk konfigurációs beállításainak feldolgozása során, akkor minden bizonnyal csak egy apró hibát vétettünk valahol. Szerencsére a man:config[8] kiírja a hibás sor számát, ezért gyorsan fel tudjuk kutatni a hibát tartalmazó sort. Például, ha ezt látjuk:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1152,7 +1152,7 @@ Miután sikerült elindítanunk az egyik használható rendszermagot, nézzük
====
Ha gondok merülnének fel a rendszermag elkészítése során, mindenképpen tartsuk meg a [.filename]#GENERIC#, vagy bármilyen másik olyan rendszermagot, amelyrõl tudjuk, hogy mûködik. Nevezzük át, így nem fog felülíródni a következõ fordítás és telepítés során. A [.filename]#kernel.old# állományra ugyanis nem minden esetben számíthatunk, mivel az új rendszermagok telepítésénél a [.filename]#kernel.old# mindig felülíródik a legutóbb telepített rendszermaggal, amely azonban nem feltétlenül lesz mûködõképes. Sõt, amint csak lehetséges, rakjuk a mûködõ rendszermagot a [.filename]#/boot/kernel# könyvtárba vagy különben a man:ps[1] és a hozzá hasonló parancsok nem fognak rendesen mûködni. Mindezek elvégzéséhez egyszerûen nevezzük át a jó rendszermagot tartalmazó könyvtárt:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.rossz
# mv /boot/kernel.jó /boot/kernel
diff --git a/documentation/content/hu/books/handbook/l10n/_index.adoc b/documentation/content/hu/books/handbook/l10n/_index.adoc
index e189f7c1f4..fc682a16a0 100644
--- a/documentation/content/hu/books/handbook/l10n/_index.adoc
+++ b/documentation/content/hu/books/handbook/l10n/_index.adoc
@@ -212,7 +212,7 @@ nemet|Nemet felhasznalok hozzaferesei:\
Mielõtt megváltoztatnánk a felhasználók bejelentkezési osztályait, adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -235,7 +235,7 @@ Az `adduser`-rel az alábbiak szerint tudunk új felhasználókat felvenni a ren
* Adjuk hozzá a `defaultclass = nyelv` sort az [.filename]#/etc/adduser.conf#-hoz. Ne felejtsük el, hogy ezután minden olyan felhasználónál a `default` bejelentkezési osztályt meg kell adni, akik nem ezt a nyelvet használják.
* Egy másik megoldás lehet, hogy a man:adduser[8] használata során minden felhasználó esetén külön megadjuk a nyelvet az
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
@@ -243,7 +243,7 @@ Enter login class: default []:
rész megjelenésekor.
* Vagy használhatjuk az alábbit az egyes eltérõ nyelvû felhasználók hozzáadásánál:
+
-[source,bash]
+[source,shell]
....
# adduser -class nyelv
....
@@ -252,7 +252,7 @@ rész megjelenésekor.
Amennyiben a man:pw[8]-t használjuk új felhasználók hozzáadására, így érdemes meghívnunk:
-[source,bash]
+[source,shell]
....
# pw useradd felhasználó_neve -L nyelv
....
diff --git a/documentation/content/hu/books/handbook/linuxemu/_index.adoc b/documentation/content/hu/books/handbook/linuxemu/_index.adoc
index dcd51b96ae..664a604103 100644
--- a/documentation/content/hu/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/hu/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ A fejezet elolvasásához ajánlott:
A bináris Linux kompatibilitás alapértelmezés szerint nem engedélyezett. Legkönnyebben úgy tudjuk elérhetõvé tenni, ha betöltjük a `linux` nevû KLD modult ("Kernel LoaDable"). Ehhez `root` felhasználóként a következõket kell begépelni:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
A modul betöltõdését a man:kldstat[8] paranccsal tudjuk ellenõrizni:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ A linuxos könyvtárakat két módon is felrakhatjuk: egyrészt a <<linuxemu-lib
A futtatókönyvtárakat a lehetõ legegyszerûbben a package:emulators/linux_base[] porton keresztül tudjuk telepíteni. Teljesen úgy történik, mint a link:file://localhost/usr/ports/[Portgyûjtemény] akármelyik másik portjának telepítése. Csupán ennyit kell beírnunk:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-f10
# make install distclean
@@ -136,7 +136,7 @@ Ha hozzáférünk egy Linux rendszerhez, akkor szedjük össze az alkalmazásunk
Tegyük fel, hogy FTP-n keresztül leszedtük a Doom Linux változatát, és felraktuk egy általunk elérhetõ Linux rendszerre. Az `ldd linuxdoom` parancs segítségével ki tudjuk deríteni, milyen osztott könyvtárak kellenek majd nekünk:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -146,7 +146,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Az utolsó oszlopban levõ állományokat másoljuk át, tegyük ezeket a [.filename]#/compat/linux# könyvtárba, és hozzunk létre az elsõ oszlopban szereplõ szimbolikus linkeket. Így tehát a következõ állományok kellenének:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -160,7 +160,7 @@ Az utolsó oszlopban levõ állományokat másoljuk át, tegyük ezeket a [.file
====
Ha már rendelkezünk az `ldd` kimenetének elsõ oszlopában szereplõ fõverziószámú osztott könyvtárral, akkor nem kell átmásolni az utolsó oszlopban levõ állományokat, hiszen így is mûködnie kellene mindennek. Ha viszont egy újabb változattal találkozunk, akkor érdemes mégis inkább átmásolni. Miután a szimbolikus linkeket átirányítottuk az új változatra, a régit akár törölhetjük is. Ha például ezek a könyvtárak elérhetõek a rendszerünkön:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -168,14 +168,14 @@ Ha már rendelkezünk az `ldd` kimenetének elsõ oszlopában szereplõ fõverzi
Észrevesszük, hogy az `ldd` kimenetében az új bináris egy újabb változatot igényel:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Ha csak az utolsó jegyében marad le valamivel a verziószám, akkor nem kell különösebben aggódnunk a [.filename]#/lib/libc.so.4.6.29# miatt sem, hiszen a programnak egy picivel korábbi verzióval is remekül kellene tudnia mûködni. Természetesen, ha akarjuk, ettõl függetlenül lecserélhetjük a [.filename]#libc.so# állományt, ami ezt eredményezi:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -192,7 +192,7 @@ A szimbolikus linkek karbantartása _csak_ a Linux binárisok esetén szüksége
Az ELF binárisok futtatása elõtt néha még szükség van a "megbélyegzés" (branding) használatára is. Ha egy bélyegezetlen ELF binárist akarunk elindítani, akkor a következõ hibaüzenetet kapjuk:
-[source,bash]
+[source,shell]
....
% ./egy-linux-elf-bináris
ELF binary type not known
@@ -201,7 +201,7 @@ Abort
A FreeBSD rendszermagjának a man:brandelf[1] paranccsal tudunk segíteni a FreeBSD és a Linux binárisainak megkülönböztetésében.
-[source,bash]
+[source,shell]
....
% brandelf -t Linux egy-linux-elf-bináris
....
@@ -214,7 +214,7 @@ A FreeBSD a telepített (akár linuxos) alkalmazások nyomonkövetésére saját
Ennek ellenére akármelyik RPM alapú Linux(R) alkalmazás telepíthetõ rendszerünkre a következõ módon:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio -q < /a/linuxos/allomány.helye.rpm | cpio -id
@@ -226,7 +226,7 @@ Ezt követõen a man:brandelf[1] segítségével állítsuk be az ELF binárisok
Ha a névfeloldás (DNS) valamiért nem mûködne, vagy egy ehhez hasonló üzenetet kapunk:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -253,7 +253,7 @@ A Mathematica(R) vagy a Mathematica(R) for Students linuxos változatai közvetl
Elõször is jeleznünk kell a FreeBSD-nek, hogy a Mathematica(R) binárisai a linuxos ABI-t (Application Binary Interface) fogják használni. Itt legkönnyebben úgy járhatunk el, ha egyszerûen beállítjuk, hogy a rendszer a bélyegezetlen ELF binárisokat automatikusan Linux binárisoknak tekintse:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -262,7 +262,7 @@ Ennek köszönhetõen a FreeBSD most már az összes bélyegezetlen ELF bináris
Most másoljuk át a [.filename]#MathInstaller# nevû állományt a merevlemezünkre:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller helyi_könyvtár
@@ -300,7 +300,7 @@ Az egyik ilyen módszer, ha átmásoljuk az imént említett könyvtárakat a t
Az a másik megoldás, ha a könyvtárakat így másoljuk át a [.filename]#/usr/X11R6/lib/X11/fonts# helyre:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -316,7 +316,7 @@ Az a másik megoldás, ha a könyvtárakat így másoljuk át a [.filename]#/usr
Most adjuk hozzá az új könyvtárakat a betûtípusok könyvtáraihoz:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -402,7 +402,7 @@ exit 0
+
. Próbáljuk meg elindítani a Maple(TM)-t:
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -454,7 +454,7 @@ A MATLAB(R) telepítéséhez a következõket kell tennünk:
. Helyezzük be a telepítõ CD-t és csatlakoztassuk. A telepítõszkript javaslatának megfelelõen váltsunk át a `root` felhasználóra. A szóbanforgó szkript elindításához gépeljük be a következõt:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -492,7 +492,7 @@ Ezzel befejezõdött a MATLAB(R) hagyományos telepítése. Innentõl már csak
====
. Hozzunk létre szimbolikus linkeket a licenckezelõ szkriptjeire:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -527,7 +527,7 @@ exit 0
======
Tegyük ezt az állományt végrehajthatóvá:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -537,7 +537,7 @@ A fenti szkriptben cseréljük ki a _felhasználó_ nevét a rendszerünkben lev
+
. A licenckezelõt az alábbi paranccsal indítsuk el:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -548,7 +548,7 @@ A fenti szkriptben cseréljük ki a _felhasználó_ nevét a rendszerünkben lev
A Java(TM) futtató környezet (Java(TM) Runtime Environment, JRE) linkjét irányítsuk át egy FreeBSD alatt mûködõ változatéra:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -623,7 +623,7 @@ exit 0
+
. Tegyük végrehajthatóvá:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -647,7 +647,7 @@ Telepítsük az package:emulators/linux_base[] és package:devel/linux_devtools[
Fel kell raknunk a Red Hat Tcl csomagját is, ha az alkalmazáshoz tartozó intelligens ügynököt is futtatni szeretnénk. Ez a [.filename]#tcl-8.0.3-20.i386.rpm#. A hivatalos RPM port segítségével az alábbi általános parancson keresztül tudunk csomagokat telepíteni:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm csomag
....
@@ -734,7 +734,7 @@ A Linux emulátorban meghúzódó apró egyenletlenségek miatt a telepítés el
Gyakran problémát okoz, ha a TCP protokollt még nem telepítettük. Ennek következményeképpen ugyanis nem tudnak elindulni a TCP alapú szolgáltatások. Az alábbi mûveletek ebben igyekeznek segíteni:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -1088,7 +1088,7 @@ Töltsük le a legfrissebb -STABLE forrásokat. Fordítsuk újra az összes forr
Elsõként a <<linuxemu-libs-port,linux_base>> portot kell felraknunk (`root` felhasználóként):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-fc4
# make install distclean
@@ -1099,7 +1099,7 @@ Elsõként a <<linuxemu-libs-port,linux_base>> portot kell felraknunk (`root` fe
Ha az Oracle(R)-t FreeBSD-re a <<linuxemu-oracle>>ban leírtak szerint akarjuk telepíteni, akkor szükségünk lesz a linuxos fejlesztõeszközökre is:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/linux_devtools
# make install distclean
@@ -1112,7 +1112,7 @@ A linuxos fejlesztõkörnyezetet csak az SAP(R) R/3(R) 46B IDES telepítéséné
Az `R3SETUP` elindításához PAM támogatásra is szükségünk lesz. Amikor elõször próbáltuk meg telepíteni a FreeBSD 4.3-STABLE változatára az SAP(R)-t, felraktuk a PAM-et és az összes hozzá tartozó csomagot, majd végül úgy bírtuk mûködésre, hogy kényszerítettük a PAM telepítését is. Az SAP(R) R/3(R) 4.6C SR2 esetén szintén sikerült önmagában felrakni a PAM RPM csomagját is, tehát úgy néz ki, hogy a függõségeit már nem kell telepíteni:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \
pam-0.68-7.i386.rpm
@@ -1151,7 +1151,7 @@ Egy egyszerûbb telepítéshez elég csupán a következõ állományrendszereke
Készítenünk kell még néhány linket is, különben az SAP(R) telepítõje panaszkodni fogni az ellenõrzésük során:
-[source,bash]
+[source,shell]
....
# ln -s /compat/linux/oracle /oracle
# ln -s /compat/linux/sapmnt /sapmnt
@@ -1160,7 +1160,7 @@ Készítenünk kell még néhány linket is, különben az SAP(R) telepítõje p
Az egyik ilyen telepítés közben megjelenõ hibaüzenet (a _PRD_ rendszer és az SAP(R) R/3(R) 4.6C SR2 telepítése esetén):
-[source,bash]
+[source,shell]
....
INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200
Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to
@@ -1270,7 +1270,7 @@ A könyvtárakat általában külön állományrendszerekként hozzák létre, d
Ehhez elõször beállítjuk az egyes könyvtárak tulajdonosait és engedélyeit (`root` felhasználóként):
-[source,bash]
+[source,shell]
....
# chmod 775 /oracle
# chmod 777 /sapmnt
@@ -1281,7 +1281,7 @@ Ehhez elõször beállítjuk az egyes könyvtárak tulajdonosait és engedélyei
Másodsorban `ora__sid__` felhasználóként hozzuk létre az [.filename]#/oracle/SID# alkönyvtárait:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle/SID
@@ -1293,7 +1293,7 @@ Másodsorban `ora__sid__` felhasználóként hozzuk létre az [.filename]#/oracl
Az Oracle(R) 8.1.7 telepítésénél még további könyvtárakra is szükségünk lesz:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle
@@ -1312,7 +1312,7 @@ A [.filename]#client/80x_32# könyvtárnak pontosan ilyen névvel kell rendelkez
A harmadik lépésben létrehozzuk a `__sid__adm` felhasználóhoz tartozó könyvtárakat:
-[source,bash]
+[source,shell]
....
# su - sidadm
# cd /usr/sap
@@ -1352,7 +1352,7 @@ en_US.ISO-8859-1
Így hozzuk létre hozzájuk a linkeket:
-[source,bash]
+[source,shell]
....
# cd /compat/linux/usr/shared/locale
# ln -s de_DE de_DE.ISO-8859-1
@@ -1411,7 +1411,7 @@ Sok CD-t kell a telepítés során mozgatni, tehát csatlakoztatni és leválasz
ahol a _cd-neve_ a következõk valamelyike: [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#EXPORT1#, [.filename]#EXPORT2#, [.filename]#EXPORT3#, [.filename]#EXPORT4#, [.filename]#EXPORT5# és [.filename]#EXPORT6# (4.6B/IDES), valamint [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#DISK1#, [.filename]#DISK2#, [.filename]#DISK3#, [.filename]#DISK4# és [.filename]#LANG# (4.6C SR2). A csatlakoztatott CD-ken található állományok neveinek nagybetûseknek kell lenniük. Ha nem így lenne, akkor a csatlakoztatásnál adjuk meg a `-g` opciót. Így tehát a következõ parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
# mount_cd9660 -g /dev/cd0a /mnt
# cp -R /mnt/* /oracle/SID/sapreorg/cd-neve
@@ -1423,7 +1423,7 @@ ahol a _cd-neve_ a következõk valamelyike: [.filename]#KERNEL#, [.filename]#RD
Elsõként egy [.filename]#install# nevû könyvtárat kell elõkészítenünk:
-[source,bash]
+[source,shell]
....
# cd /oracle/SID/sapreorg
# mkdir install
@@ -1432,7 +1432,7 @@ Elsõként egy [.filename]#install# nevû könyvtárat kell elõkészítenünk:
Ezután futtassuk le a telepítõszkriptet, ami pedig bemásolja az [.filename]#install# könyvtárba szinte az összes fontos állományt:
-[source,bash]
+[source,shell]
....
# /oracle/SID/sapreorg/KERNEL/UNIX/INSTTOOL.SH
....
@@ -1448,14 +1448,14 @@ A telepítés közben és után az SAP(R)-nek a `hostname` paranccsal csak a gé
Ne felejtsük el jól beállítani az `LD_LIBRARY_PATH` környezeti változót:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib
....
A telepítés könyvtárában `root` felhasználóként indítsuk el az `R3SETUP` programot:
-[source,bash]
+[source,shell]
....
# cd /oracle/IDS/sapreorg/install
# ./R3SETUP -f CENTRDB.R3S
@@ -1602,14 +1602,14 @@ Függetlenül az imént említett problémáktól, egészen az Oracle(R) adatbá
Állítsuk be jól az `LD_LIBRARY_PATH` környezeti változó értékét. Ez némileg eltér a 4.6B és az Oracle(R) 8.0.5 párosának beállításától:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib
....
A telepítés könyvtárából `root` felhasználóként indítsuk el az `R3SETUP` programot:
-[source,bash]
+[source,shell]
....
# cd /oracle/PRD/sapreorg/install
# ./R3SETUP -f CENTRAL.R3S
@@ -1733,7 +1733,7 @@ Az intelligens ügynök lefordításához fel kell raknunk a RedHat saját Tcl c
Az újralinkeléstõl eltekintve a telepítés többi része szinte adja magát:
-[source,bash]
+[source,shell]
....
# su - oraids
# export TERM=xterm
@@ -1803,7 +1803,7 @@ A 4.6B telepítése során még gondjaink akadtak a `dipgntab` használatával.
Így kell elindítani az `ora__sid__` felhasználóval az Oracle(R) Listenert:
-[source,bash]
+[source,shell]
....
% umask 0; lsnrctl start
....
@@ -1828,14 +1828,14 @@ Ha még nincs is konkrétan szükségünk az MNLS-re, akkor is ellenõriznünk
Az SAP(R) R/3(R) licenckulcsát külön kell kérni. Fontos, mert a telepítéshez használatos ideiglenes licenc csak négy hétig érvényes. Elõször szerezzük meg a hardverkulcsot. Jelentkezzünk be az `idsadm` felhasználóval és adjuk ki a `saplicense` parancsot:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -get
....
A `saplicense` paraméter nélkül meghívására válaszul opciókat listáz ki. A licenckulcsot megérkezése után így tudjuk élesíteni:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -install
....
@@ -1989,14 +1989,14 @@ Az `R3SETUP` hiba esetén leáll. Miután átnéztük a hibára utaló naplókat
Az `R3SETUP` újraindításához egyszerûen adjuk meg a megfelelõ [.filename]#R3S# állományt:
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRDB.R3S
....
a 4.6B verzió esetén, vagy a
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRAL.R3S
....
@@ -2082,7 +2082,7 @@ Ez a hiba az Oracle(R) 8.1.7 használatakor következhet be. Akkor kapjuk ezt a
Erre gyógyír lehet, ha ehelyette az adatbázis elindításához az `oraprd` felhasználóval adjuk ki az `svrmgrl` parancsot:
-[source,bash]
+[source,shell]
....
% svrmgrl
SVRMGR> connect internal;
@@ -2095,7 +2095,7 @@ SVRMGR> exit
Az Oracle(R) Listener alkalmazását `oraids` felhasználóként az alábbi paranccsal indítsuk el:
-[source,bash]
+[source,shell]
....
# umask 0; lsnrctl start
....
@@ -2128,7 +2128,7 @@ helyett a következõt próbálja meg elérni:
A telepítés folytatásához létrehoztunk egy linket és egy másik könyvtárat:
-[source,bash]
+[source,shell]
....
# pwd
/compat/linux/usr/sap
@@ -2206,7 +2206,7 @@ Ezután az ELF formátum betöltõje az ELF állomány megjegyzéseket tároló
A Linux binárisokat mûködésükhöz a man:brandelf[1] segítségével `Linux` típusúnak kell _megbélyegezni_:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux állomány
....
diff --git a/documentation/content/hu/books/handbook/mac/_index.adoc b/documentation/content/hu/books/handbook/mac/_index.adoc
index 92e5b7c8e7..3a4c6a7da0 100644
--- a/documentation/content/hu/books/handbook/mac/_index.adoc
+++ b/documentation/content/hu/books/handbook/mac/_index.adoc
@@ -156,14 +156,14 @@ A címkézéshez kapcsolódó összes beállítást gyakorlatilag az alapvetõ r
Az összes konfigurációs beállítást a man:setfmac[8] és man:setpmac[8] segédprogramokkal végezhetjük el. A `setfmac` segítségével a rendszerszintû objektumokhoz tudunk hozzárendelni a MAC-címkéket, míg a `setpmac` paranccsal a rendszerben levõ alanyokhoz tudunk címkéket rendelni. Vegyük például ezt:
-[source,bash]
+[source,shell]
....
# setfmac biba/high próba
....
Amennyiben az iménti parancs hibátlanul lefutott, visszakapjuk a paranccsort. Ezek a parancsok csak olyankor maradnak nyugodtan, amikor semmilyen hiba nem történt. Mûködésük hasonló a man:chmod[1] és man:chown[8] parancsokéhoz. Bizonyos esetekben `Permission denied` (`A hozzáférés nem engedélyezett`) hibát kapunk, ami általában akkor bukkan fel, ha egy korlátozott objektummal kapcsolatban próbálunk meg címkét beállítani vagy módosítani . A rendszergazda a következõ paranccsal tudja feloldani az ilyen helyzeteket:
-[source,bash]
+[source,shell]
....
# setfmac biba/high próba
Permission denied
@@ -255,7 +255,7 @@ A hálózati csatlakozások esetében is állíthatunk be címkéket, melyek a h
Ha MAC-címkéket akarunk rendelni egy hálózati felülethez, akkor az `ifconfig` parancsnak adjuk meg a `maclabel` paramétert. Például a
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -284,7 +284,7 @@ A `multilabel` opció használata és így speciális, többcímkés védelmi mo
A most következõ paranccsal beállítjuk az állományrendszerre a `multilabel` opciót. Ez csak egyfelhasználós módban tehetõ meg:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -359,7 +359,7 @@ A modul használata során igyekezzünk minél jobban odafigyelni, mert helytele
Miután sikerült betölteni a man:mac_bsdextended[4] modult, a következõ paranccsal tudjuk lekérdezni a jelenleg érvényes szabályokat:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -367,14 +367,14 @@ Miután sikerült betölteni a man:mac_bsdextended[4] modult, a következõ para
Ahogy az várható is volt, pillanatnyilag még egyetlen szabályt sem adtunk meg. Ennek értelmében tehát mindent el tudunk érni. A következõ paranccsal tudunk olyan szabályt létrehozni, ahol a `root` kivételével elutasítjuk az összes felhasználó hozzáférését:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
Ez egyébként egy nagyon buta ötlet, mivel így a felhasználók még a legegyszerûbb parancsokat, mint például az `ls`-t, sem tudják rájuk kiadni. Ennél sokkal humánusabb lesz, ha:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid felhasználó1 object uid felhasználó2 mode n
# ugidfw set 3 subject uid felhasználó1 object gid felhasználó2 mode n
@@ -443,7 +443,7 @@ A man:mac_portacl[4] mûködésének részleteirõl a példákon keresztül vagy
A következõ példák az iméntieket igyekeznek jobban megvilágítani:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -451,21 +451,21 @@ A következõ példák az iméntieket igyekeznek jobban megvilágítani:
Elsõként beállítjuk, hogy a man:mac_portacl[4] vegye át a szabványos privilegizált portok vezérlését és letiltjuk a normál UNIX(R)-os korlátozásokat.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
A `root` felhasználót azonban nem akarjuk kitenni a házirendnek, ezért a `security.mac.portacl.suser_exempt` változónak egy nem nulla értéket adunk meg. A man:mac_portacl[4] modul most pontosan ugyanúgy mûködik, mint a UNIX(R)-szerû rendszerek alapértelmezés szerint.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
A 80-as azonosítóval rendelkezõ felhasználó (aki általában a `www`) számára engedélyezzük a 80-as port használatát. Így a `www` felhasználó anélkül képes webszervert futtatni, hogy szüksége lenne a `root` jogosultságaira.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -493,7 +493,7 @@ A házirend engedélyezésével a felhasználók csak a saját programjaikat lá
A `setpmac` használatával tudunk címkéket készíteni a partíciókhoz és programokat rendelni hozzájuk:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -504,14 +504,14 @@ A `setpmac` használatával tudunk címkéket készíteni a partíciókhoz és p
A következõ parancs megmutatja a partíciók címkéit és a futó programok listáját:
-[source,bash]
+[source,shell]
....
# ps Zax
....
Ezzel paranccsal pedig megnézhetjük egy másik felhasználó programjainak címkéit és a felhasználó által futtatott programokat:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -563,14 +563,14 @@ A speciális szolgáltatások és felületek beállításához az alábbi `sysct
Az MLS címkéit a man:setfmac[8] paranccsal tudjuk módosítani. Egy ehhez hasonló paranccsal tudunk egy objektumhoz címkét rendelni:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 próba
....
A [.filename]#próba# állomány MLS-címkéjét az alábbi paranccsal kérhetjük le:
-[source,bash]
+[source,shell]
....
# getfmac próba
....
@@ -619,7 +619,7 @@ Az alábbi `sysctl`-változókkal vezérlhetjük a Biba házirend mûködését:
A rendszer objektumain a Biba házirendet a `setfmac` és `getfmac` paranccsal állíthatjuk be:
-[source,bash]
+[source,shell]
....
# setfmac biba/low próba
# getfmac próba
@@ -655,7 +655,7 @@ A MAC LOMAC házirendje az összes rendszerszintû objektum esetében jelenlevõ
Hasonlóan a Biba és MLS házirendeknél megszokottakhoz, a `setfmac` és `setpmac` segédprogramok használhatóak a címkék hozzárendeléséhez:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -710,7 +710,7 @@ Valamint egészítsük ki az alapértelmezett (default) felhasználói osztályt
Ahogy ezzel elkészültünk, az hozzá tartozó adatbázis újbóli legyártásához a következõ parancsot kell kiadnunk:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -729,14 +729,14 @@ mac_seeotheruids_load="YES"
Soroljuk be a `root` felhasználót a `default` osztályba:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
Az összes `root` felhasználón kívüli hozzáférésnek vagy rendszerfelhasználónak most kelleni fog egy bejelentkezési osztály. A bejelentkezési osztályra egyébként is szükség lesz, mert ennek hiányában a felhasználók még az olyan egyszerû parancsokat sem tudják kiadni, mint például a man:vi[1]. A következõ `sh` szkript nekünk erre pontosan megfelel:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -744,12 +744,12 @@ Az összes `root` felhasználón kívüli hozzáférésnek vagy rendszerfelhaszn
Helyezzük át a `nagios` és `www` felhasználókat az insecure osztályba:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -800,7 +800,7 @@ Ezzel a házirenddel az információ áramlását szabályozzuk. Ebben a konkré
Ez az iménti állomány a következõ parancs hatására kerül be a rendszerünkbe:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /
@@ -843,7 +843,7 @@ Gondoskodjunk róla, hogy a webszerver és a Nagios nem fog elindulni a rendszer
Ha minden jónak tûnik, akkor a Nagios, Apache és Sendmail most már elindítható a biztonsági házirend szabályozásai szerint. Ezt a következõ parancsokkal tehetjük meg:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -856,7 +856,7 @@ Kétszer is ellenõrizzük, hogy minden a megfelelõ módon viselkedik-e. Ha val
====
A `root` felhasználó különösebb aggodalom nélkül képes megváltoztatni a biztonsági rend betartatását és átírni a konfigurációs állományokat. Egy frissen indított parancsértelmezõ számára ezzel a paranccsal tudjuk csökkenteni a biztonsági besorolást:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/hu/books/handbook/mail/_index.adoc b/documentation/content/hu/books/handbook/mail/_index.adoc
index 7c61c99a10..c23e6ba09c 100644
--- a/documentation/content/hu/books/handbook/mail/_index.adoc
+++ b/documentation/content/hu/books/handbook/mail/_index.adoc
@@ -108,7 +108,7 @@ A DNS valósítja meg a hálózati nevek és az IP-címek összerendelését val
A man:host[1] parancs használatával az alábbi példához hasonlóan tetszõleges tartomány MX rekordját meg tudjuk nézni:
-[source,bash]
+[source,shell]
....
% host -t mx
FreeBSD.org FreeBSD.org mail is handled (pri=10) by
@@ -323,7 +323,7 @@ A sendmail indításával kapcsolatos további beállításokat az man:rc.sendma
Az új levéltovábbítót úgy tudjuk elindítani a rendszerrel együtt, ha az [.filename]#/etc/rc.conf# állományba felvesszük a következõ sort, például a postfix esetében:
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable="YES"' >> /etc/rc.conf
....
@@ -523,7 +523,7 @@ A FreeBSD alapértelmezett telepítése során a sendmail úgy állítódik be,
Több lehetõségünk is van ennek megkerülésére. Az a legegyszerûbb módszer, ha az internet-szolgáltatónk címét felvesszük az [.filename]#/etc/mail/relay-domains# állományba. Például így:
-[source,bash]
+[source,shell]
....
# echo "az.internet.szolgáltató.net" > /etc/mail/relay-domains
....
@@ -562,7 +562,7 @@ A fentiek közül bármelyik elég ahhoz, hogy közvetlenül a gépünkre érkez
Próbáljuk ki:
-[source,bash]
+[source,shell]
....
# hostname
enyem.FreeBSD.org
@@ -574,7 +574,7 @@ Ha ezt látjuk, akkor minden gond nélkül lehet küldeni levelet a mailto:nevem
Ha viszont ehhez hasonlót tapasztalunk:
-[source,bash]
+[source,shell]
....
# host enyem.FreeBSD.org
enyem.FreeBSD.org has address 204.216.27.XX
@@ -648,7 +648,7 @@ A `mailertable` nevû lehetõség használatával tudjuk a legjobban támogatni
Ehhez elsõként hozzuk is létre a saját [.filename]#.mc# állományunkat. Ehhez a [.filename]#/usr/shared/sendmail/cf/cf# könyvtár tartalmaz néhány példát. Hívjuk most ezt az állomnyunkat [.filename]#ize.mc# néven. A következõ módszerrel tudjuk egy valós [.filename]#sendmail.cf# állománnyá alakítani:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make ize.cf
@@ -710,7 +710,7 @@ A feladatból már csak annyi maradt hátra, hogy használat elõtt ezt az állo
Utolsó jótanács: ha nem lennénk biztosak valamelyik kézbesítési útvonal mûködésében, ne felejtsük el a sendmail `-bt` beállítását. Ezzel a sendmail az ún. _címtesztelõ módban_ (address test mode) indul el. Gépeljük be, hogy `3,0`, majd írjuk be a tesztelni kívánt címet. Az utolsó sorban láthatjuk a felhasznált belsõ levéltovábbító ügynököt, a célgépet, amellyel ezt meghívjuk, és a (valószínûleg az átfordított) címet. Innen a kbd:[Ctrl+D] billentyûkombinációval léphetünk ki.
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -736,7 +736,7 @@ Továbbá, ha egy átlagos internet-hozzáféréssel rendelkezünk, adódhat, ho
Legegyszerûbben úgy tudjuk kielégíteni az ilyen jellegû igényeket, ha feltelepítjük a package:mail/ssmtp[] portot. A `root` felhasználóval adjuk ki a következõ parancsokat:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -841,7 +841,7 @@ saslauthd_enable="YES"
+
Végezetül indítsuk el a saslauthd démont:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/saslauthd start
....
@@ -859,7 +859,7 @@ SENDMAIL_LDADD=-lsasl2
Ezek a sorok állítják be a sendmail számára, hogy fordítás közben a package:cyrus-sasl2[] függvényeit használja. A sendmail újrafordítása elõtt mindenképpen legyen fenn a package:cyrus-sasl2[] port.
. A sendmail újrafordítását a következõ parancsok végrehajtásával intézhetjük el:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -901,14 +901,14 @@ Annak ellenére, hogy a `mail` önmaga nem képes kommunikálni POP vagy IMAP sz
A levelek küldéséhez és fogadásához egyszerûen hívjuk be a `mail` programot a következõ módon:
-[source,bash]
+[source,shell]
....
% mail
....
Ezután a [.filename]#/var/mail# könyvtárban található felhasználói postaládánk tartalmát automatikusan beolvassa a `mail` segédprogram. Ha a postaláda üres, akkor a program egybõl befejezi futását és közli, hogy nem talált levelet. Amikor viszont tudott beolvasni leveleket, megjelenik egy felület, ahol a beérkezett üzenetek listáját láthatjuk. Az üzenetek automatikusan sorszámozódnak, ahogy ezt az alábbi példa is szemlélteti:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -919,7 +919,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Az üzenetek olvasásának a kbd:[t] paranccsal kezdhetünk neki, amelyet az elolvasandó üzenet sorszáma követ. Ebben a példában az elsõ e-mailt nyitjuk meg:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -938,7 +938,7 @@ Ahogy az a fenti példából is látszik, a kbd:[t] billentyû hatására az üz
Ha egy levélre válaszolni szeretnénk, akkor ezt a `mail` paranccsal is megtehetjük, vagy az kbd:[R] vagy az kbd:[r] parancsokkal. Az kbd:[R] arra utasítja a `mail` programot, hogy csak az üzenet küldõjének válaszoljon, míg az kbd:[r] hatására nem csupán a küldõ, hanem az üzenet összes címzettje megkapja a válaszunkat. A parancshoz hozzátûzhetjük egy levél sorszámát is, ekkor az adott levélre fogunk válaszolni. Miután kiadtuk a parancsot, írjuk meg a válaszunkat és új sorban kezdve zárjuk le az üzenetet egyetlen kbd:[.] beírásával. Valahogy így:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -951,7 +951,7 @@ EOT
Új levelet az kbd:[m] segítségével tudunk küldeni, ami után meg kell adnunk a címzettet. Egyszerre több címzettet is meg tudunk adni, ha a címzett helyén címeiket egy kbd:[,] karakterrel elválasztva soroljuk fel. Ezután a levél témája is megadható, amit végül a levél szövege követ. Az üzenetet egy új sorban megadott egyetlen kbd:[.] segítségével zárhatjuk le.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: Elsajatitottam a mail hasznalatat
@@ -983,7 +983,7 @@ Ezen lehetõségei révén a mutt ez egyik legfejlettebb levelezõ kliens. A mut
A mutt stabil változata a package:mail/mutt[] port használatával telepíthetõ fel, miközben a fejlesztés alatt levõ változatot a package:mail/mutt-devel[] port telepíti. Miután a portot sikerült felraknunk, a mutt az alábbi parancs begépelésével indítható el:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -1022,7 +1022,7 @@ A pine szoftverrel kapcsolatban a múltban már rengeteg távolról kihasználha
A pine jelenlegi verziója a package:mail/pine4[] porton keresztül telepíthetõ. A telepítés lezajlása után a pine a következõ paranccsal indítható:
-[source,bash]
+[source,shell]
....
% pine
....
@@ -1063,7 +1063,7 @@ A fetchmail egy mindentudó IMAP és POP kliens, amely lehetõvé teszi a felhas
Noha a fetchmail összes lehetõségének aprólékos bemutatása meghaladná ennek a leírásnak a kereteit, azért szót kerítünk néhány alapvetõ funkciójára. A fetchmail segédprogramnak a megfelelõ mûködéshez egy [.filename]#.fetchmailrc# nevû konfigurációs állományra van szüksége. Ez az állomány tárolja a szerverekre vonatkozó, valamint a bejelentkezéshez szükséges információkat. Az állomány kényes tartalmára tekintettel azt javasoljuk, hogy csak a tulajdonosának engedélyezzük az olvasását:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1088,7 +1088,7 @@ user "jani", with password "XXXXX", is "hardstuff" here;
A fetchmail program a `-d` beállítás megadásával démonként is elindítható, amely után meg kell adni (másodpercekben) azt az idõközt, aminek elteltével a fetchmail lekérdi a [.filename]#.fetchmailrc# állományban felsorolt szervereket. Az alábbi példában a fetchmail 600 másodpercenként kéri el a leveleket:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/hu/books/handbook/mirrors/_index.adoc b/documentation/content/hu/books/handbook/mirrors/_index.adoc
index d750063bea..6f4862e568 100644
--- a/documentation/content/hu/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/hu/books/handbook/mirrors/_index.adoc
@@ -546,7 +546,7 @@ Habár a továbbhaladáshoz mindenképpen javasoljuk a man:cvs[1] man oldalának
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -560,7 +560,7 @@ Habár a továbbhaladáshoz mindenképpen javasoljuk a man:cvs[1] man oldalának
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't be established.
@@ -575,7 +575,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -589,7 +589,7 @@ Amikor kéri, "jelszóként" bármit megadhatunk.
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -603,7 +603,7 @@ Itt "jelszóként" bármit megadhatunk.
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -674,7 +674,7 @@ Miután kiválasztottuk a számunkra megfelelõ alapváltozatot, szükségünk l
A delták felhasználásához egyszerûen csak ennyit kell tennünk:
-[source,bash]
+[source,shell]
....
# cd /ahol/tárolni/akarjuk/az/adatokat
# ctm -v -v /ahol/tároljuk/a/deltákat/src-xxx.*
@@ -718,7 +718,7 @@ A CTM számára feldolgozható állományok listáját reguláris kifejezés for
Például ha a [.filename]#lib/libc/Makefile# állomány az összegyûjtött CTM delták szerinti legfrissebb verziójához kívánunk hozzájutni, akkor futtassuk az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# cd /akarhova/ahova/ki/akarjuk/bontani/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -922,7 +922,7 @@ A [.filename]#refuse# állománnyal lényegében arra utasítjuk a CVSup alkalma
A [.filename]#refuse# állomány felépítése igen egyszerû: a letölteni nem kívánt állományok és könyvtárak neveit tartalmazza. Például ha az angolul mellett esetleg még beszélünk egy kevés németet is, de nincs szükségünk az angol dokumentáció német fordítására sem, akkor a következõket írjuk a [.filename]#refuse# állományba:
-[source,bash]
+[source,shell]
....
doc/bn_*
doc/da_*
@@ -952,7 +952,7 @@ Ezzel az alkalmas funkcióval a lassú vagy drága internetes kapcsolattal rende
Most már készen állunk egy próba frissítés elvégzésére. A parancssorban nem sok mindent kell beírnunk ehhez:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -961,7 +961,7 @@ ahol a [.filename]#supfile# a frissen létrehozott [.filename]#supfile# állomá
Mivel a példában a [.filename]#/usr/src# könyvtárunk frissítését állítottuk be, az állományok aktualizálásához szükséges jogosultságok biztosításához a `cvsup` programot `root` felhasználóként kell elindítanunk. Teljesen érthetõ, ha egy kicsit izgatottak vagyunk ezekben a pillanatokban, hiszen az elõbb hoztunk létre egy általunk eddig ismeretlen programhoz egy konfigurációs állományt. Ezért megemlítenénk, hogy ilyenkor elõször mindig próbáljuk ki a konfigurációkat, mielõtt azok bármilyen módosítást végeznének a fontos állományainkon. Ehhez hozzunk létre valahol egy üres könyvtárat, majd adjuk meg a parancssorban ennek a nevét:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/proba
# cvsup supfile /var/tmp/proba
@@ -971,7 +971,7 @@ Az így megadott könyvtárba kerülnek a frissítés eredményeképpen keletkez
Ha nem használunk X11-et vagy egyszerûen csak nincs szükségünk a grafikus felületre, a parancssorban pár további opció megadásával így is kiadhatjuk a `cvsup` parancsot:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
diff --git a/documentation/content/hu/books/handbook/multimedia/_index.adoc b/documentation/content/hu/books/handbook/multimedia/_index.adoc
index dadf4a8ce0..a677aab248 100644
--- a/documentation/content/hu/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/hu/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ A mûvelet megkezdése elõtt ki kell derítenünk, milyen típusú hangkártyá
A hangeszközünk használatához be kell töltenünk a neki megfelelõ meghajtót. Ez két módon is megtehetõ. Ezek közül az a legkönnyebb, ha a man:kldload[8] paranccsal egyszerûen betöltjük a rendszermag hangkártyánkhoz tartozó modulját. Ezt megtehetjük közvetlenül parancssorból:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
A fenti példák a Creative SoundBlaster(R) Live! hangkártyára vonatkoznak. A többi betölthetõ hangkártya-modul felsorolása a [.filename]#/boot/defaults/loader.conf# állományban található. Ha nem vagyunk benne biztosak, hogy melyik meghajtót is akarjuk pontosan használni, akkor próbálkozzunk az [.filename]#snd_driver# modul betöltésével:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ A fentiekben bemutatott beállítások alapértelmezettek, néhány esetben azon
Miután újraindítottuk a számítógépünket a módosított rendszermaggal, vagy miután betöltöttük a szükséges modult, a hangkártyának valahogy így kell megjelennie a rendszerünk üzenetpufferében (man:dmesg[8]):
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
A hangkártyánk állapota a [.filename]#/dev/sndstat# állományon keresztül ellenõrizhetõ:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,7 +182,7 @@ Ez a kiírás rendszerenként eltérhet. Ha nem látunk semmilyen [.filename]#pc
Ha azonban minden remekül haladt, akkor most már van egy mûködõ hangkártyánk. Ha rendesen összekapcsoltuk hangkártyánkat a CD- vagy DVD-meghajtónk audio csatlakozásával, akkor tegyünk egy CD-t a meghajtóba és kezdjük el játszani a man:cdcontrol[1] paranccsal:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -191,7 +191,7 @@ Az olyan alkalmazások, mint például az package:audio/workman[], ehhez egy sok
A kártyát úgy is tesztelhetjük, ha az alábbihoz hasonló módon adatokat küldünk a [.filename]#/dev/dsp# állományba:
-[source,bash]
+[source,shell]
....
% cat állománynév > /dev/dsp
....
@@ -231,7 +231,7 @@ A FreeBSD ezt a _virtuális hangcsatornák_ használatával oldja meg, amit a ma
A virtuális csatornák számának beállításához a sysctl három változóját kell módosítanunk, amelyet `root` felhasználóként így tehetünk meg:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -276,7 +276,7 @@ Mellette az package:audio/mpg123[] port egy másik, parancssoros MP3 lejátszót
Az mpg123 futtatásához paraméterként meg kell adnunk a hangeszközt és lejátszandó MP3 állományt. Ha a hangeszközünk a [.filename]#/dev/dsp1.0# és a _IzéMizé-Sláger.mp3_ nevû MP3 állományt akarjuk rajta lejátszatni, akkor a következõt kell begépelnünk:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 IzéMizé-Sláger.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -297,14 +297,14 @@ A package:sysutils/cdrtools[] csomag részeként elérhetõ `cdda2wav` segédpro
A meghajtóban levõ CD teljes tartalmát (`root` felhasználóként) a következõ parancs kiadásával lehet (sávonként) különálló WAV állományokba menteni:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
A cdda2wav ismeri az ATAPI (IDE) CD-meghajtókat, használatukhoz a SCSI egység sorszáma helyett az eszköz nevét kell megadni. Tehát például így szedjük le egy IDE-meghajtóról a 7. sávot:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -313,14 +313,14 @@ A `-D __0,1,0__` a [.filename]#0,1,0# sorszámú SCSI eszközre utal, ami megfel
Az egyes sávok lementéséhez a `-t` kapcsoló használható:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
A példa szerint a zenei CD-rõl a hetedik sávot szedjük le. Egyszerre több sávot, például az elsõtõl a hetedikig, egy tartomány megadásával menthetünk le:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -334,7 +334,7 @@ Az MP3 állomány tömörítésére manapság a legtöbben a lame elnevezésû k
Az elõbb kimentett WAV állományok felhasználásával az alábbi paranccsal tudjuk átalakítani a [.filename]#audio01.wav# állományt [.filename]#audio01.mp3# állománnyá:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Izé dal címe" \
@@ -377,7 +377,7 @@ Lemezre írás az XMMS-sel:
Az XMMS az állományokat WAV formátumban írja, miközben az mpg123 nyers PCM hangadatokat képez belõlük. A cdrecord használata során mind a két formátumból hozhatóak létre audio CD-k. A nyers PCM a man:burncd[8] programmal használható. Amikor WAV állományokkal dolgozunk, minden egyes sáv elején egy apró kattanást hallhatunk: ez a WAV állomány fejléce lesz. A (package:audio/sox[] portból vagy csomagból telepíthetõ) SoX segédprogrammal a WAV formátumú állományok fejléce pillanatok alatt eltávolítható:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -393,7 +393,7 @@ A kezdéshez nem árt tudnunk, hogy a videokártyánk milyen gyártmányú és m
Érdemes a kezünk ügyében tartani egy rövidke MPEG formátumú állományt, amellyel majd ki tudjuk próbálni a különféle lejátszókat és azok beállításait. Mivel egyes DVD lejátszók alapértelmezés szerint a [.filename]#/dev/dvd# helyen keresik a lejátszandó DVD eszközt, vagy egyszerûen csak így írták meg ezeket, mindenképpen hasznos lehet, ha szimbolikus linkeket hozunk létre a megfelelõ eszközökre:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -437,14 +437,14 @@ Az Xorg és az XFree86(TM) 4.X rendelkezik egy _XVideo_ (avagy Xvideo, Xv, xv) e
A kiterjesztés mûködésérõl az `xvinfo` parancs kiadásával gyõzõdhetünk meg:
-[source,bash]
+[source,shell]
....
% xvinfo
....
Ha a parancs eredménye ehhez hasonló, akkor a kártyánk támogatja az XVideót:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -520,7 +520,7 @@ Az XVideo nem mindegyik implementációjában vannak jelen a felsorolt formátum
Amennyiben viszont ezt látjuk:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -577,7 +577,7 @@ Az MPlayer az utóbbi idõben felbukkant, gyorsan fejlõdõ videolejátszó. Fej
Az MPlayer a package:multimedia/mplayer[] helyen található. A program a fordítási folyamat során elvégez számos hardverellenõrzést, aminek eredményeképpen az egyik rendszeren fordított program nem vihetõ a másikra. Ezért különösen fontos portból fordítani és nem pedig bináris csomagot használni. Mindezek mellett a [.filename]#Makefile# állományban még számos, a `make` parancsnak a fordítás megkezdésekor átadható beállítást találhatunk:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -596,7 +596,7 @@ http://www.mplayerhq.hu/homepage/dload.html
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
F - I - G - Y - E - L - E - M
@@ -620,7 +620,7 @@ Az MPlayer HTML dokumentációja nagyon közlékeny, és ha az olvasó nem talá
Az MPlayer használatához a felhasználói könyvtárunkban rendelkeznünk kell egy [.filename]#.mplayer# elnevezésû könyvtárral. Ezt a következõ paranccsal tudjuk létrehozni:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -630,27 +630,27 @@ Az `mplayer` parancssori paraméterei a hozzá tartozó man oldalon találhatóa
Egy állomány, mint például a [.filename]#tesztvideo.avi#, a `-vo` beállításával játszható le a különbözõ felületeken:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv tesztvideo.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl tesztvideo.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 tesztvideo.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga tesztvideo.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' tesztvideo.avi
....
@@ -659,7 +659,7 @@ Egy állomány, mint például a [.filename]#tesztvideo.avi#, a `-vo` beállít
A DVD-k lejátszásához cseréljük ki a [.filename]#tesztvideo.avi# paramétert a `dvd://_N_ -dvd-device _ESZKÖZ_` paraméterekkel, ahol az _N_ a lejátszandó fejezet sorszáma, valamint az [.filename]#ESZKÖZ# a DVD-hez tartozó eszközleíró. Például így tudjuk elkezdeni [.filename]#/dev/dvd# eszközrõl a 3. fejezet lejátszását:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -684,7 +684,7 @@ zoom=yes
Végezetül megemlítjük, hogy az `mplayer` segítségével a DVD-n található fejezeteket ki tudjuk menteni [.filename]#.vob# állományokba. A DVD második fejezetének kimentéséhez gépeljük be ezt:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -696,7 +696,7 @@ A parancs eredményeképpen keletkezõ [.filename]#out.vob# állomány formátum
A `mencoder` használatának megkezdése elõtt javasolt alaposan beleásnunk magunkat a HTML dokumentációba és megismerkednünk az alapvetõ beállításaival. Van külön man oldala is, azonban a HTML leírás nélkül önmagában ez nem túl sokat ér. Megszámlálhatatlan úton és módon növelhetõ benne a minõség, csökkenthetõ a kódolási arány, változtatható a formátum, és ezen apró finomságok felelõsek a jó vagy éppen a rossz teljesítményért. A témába néhány példa bemutatásával igyekszünk beavatni az olvasót. Elõször vegyünk egy egyszerû másolást:
-[source,bash]
+[source,shell]
....
% mencoder bemenő.avi -oac copy -ovc copy -o eredmény.avi
....
@@ -705,7 +705,7 @@ A parancssori paraméterek helytelen kombinációja olyan állományokat eredmé
A [.filename]#bemenõ.avi# állományt MPEG4 video- és MPEG3 hangtömörítéssel (amihez kell majd a package:audio/lame[]) így tudjuk lekódolni:
-[source,bash]
+[source,shell]
....
% mencoder bemenõ.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o eredmény.avi
@@ -728,14 +728,14 @@ A xine az MPlayerhez képes többet tesz a felhasználóért, azonban ezzel egyi
A xine alapértelmezés szerint grafikus felülettel indul, ahol a menük segítségével tudunk megnyitni egy adott állományt:
-[source,bash]
+[source,shell]
....
% xine
....
Vagy a grafikus felület használata nélkül kiadhatjuk közvetlenül is az állomány lejátszását:
-[source,bash]
+[source,shell]
....
% xine -g -p kedvencmozim.avi
....
@@ -747,7 +747,7 @@ A transcode nem egy újabb lejátszó, hanem a video- és audio állományok új
A package:multimedia/transcode[] port fordítása során temérdek beállítást adhatunk meg, amelyek közül az alábbi parancsban foglaljuk össze az általunk javasolandókat:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -757,7 +757,7 @@ Ezek a beállítások a legtöbb felhasználó számára elegendõek.
A `transcode` képességeinek illusztrálásához lássunk egy példát, amiben megmutatjuk, hogyan kell egy DivX állományt PAL szabványú MPEG-1 formátumú (PAL VCD) állománnyá alakítani:
-[source,bash]
+[source,shell]
....
% transcode -i bemenõ.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o eredmény_vcd.mpg eredmény_vcd.m1v eredmény_vcd.mpa
@@ -834,7 +834,7 @@ options OVERRIDE_TUNER=6
vagy erre közvetlenül használhatjuk a man:sysctl[8] programot is:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -894,14 +894,14 @@ A FreeBSD ezen változataiban a man:uscanner[4] eszközmeghajtón keresztül tud
A megfelelõen elõkészített rendszermag elindítása után csatlakoztassuk az USB-s lapolvasónkat. Ez a sor fog megjelenni a rendszer üzenetpufferében (man:dmesg[8]):
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
Vagy FreeBSD 7._X_ rendszerek esetében:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -920,7 +920,7 @@ device pass
Ahogy sikerült a rendszermagot sikeresen lefordítani és telepíteni, a rendszer indulása során az üzenetpufferben már láthatjuk is a felismert eszközt:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -929,7 +929,7 @@ pass2: 3.300MB/s transfers
Ha a rendszer indulásakor még nem kapcsoltuk volna be a lapolvasónkat, a man:camcontrol[8] parancs segítségével késõbb külön kérhetjük a SCSI buszon található eszközök újbóli felderítését:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -940,7 +940,7 @@ Re-scan of bus 3 was successful
Ekkor a lapolvasó megjelenik a SCSI eszközök felsorolásában:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -957,7 +957,7 @@ A SANE rendszere két részre oszlik: a backendekre (package:graphics/sane-backe
Elsõként telepítsük a package:graphics/sane-backends[] portot vagy csomagot. Ezután ellenõrizzük, hogy a SANE felismeri a lapolvasót, és ehhez adjuk ki a `sane-find-scanner` parancsot:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -972,7 +972,7 @@ Némely USB-s lapolvasók esetén még egy firmware-t is be kell töltenünk, am
Most pedig nézzük meg, hogy vajon a frontend is be tudja-e azonosítani a lapolvasónkat. Alapértelmezés szerint a SANE backendjéhez tartozik még egy man:sane[1] nevû segédprogram is, aminek segítségével listázni tudjuk a használható eszközöket és képeket tudunk beolvasni parancssorból. Közülük a `-L` kapcsoló listáz:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -980,7 +980,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
Vagy ha a <<scanners-kernel-usb>>ban szereplõ USB lapolvasóval nézzük:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -994,7 +994,7 @@ Ha ennek eredményeképpen semmi sem jelenik meg, vagy a man:sane[1] látszólag
Például, ha <<scanners-kernel-usb>>ban használt USB-s lapolvasónkat FreeBSD 8._X_ alatt tökéletesen felismeri a rendszer, de a FreeBSD korábbi változatai esetén (ahol a man:uscanner[4] eszközmeghajtót használják) a `sane-find-scanner` parancs a következõket adja vissza:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -1002,7 +1002,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
Akkor a lapolvasót sikerült megtalálni, és láthatjuk, hogy USB-n keresztül csatlakozik és a [.filename]#/dev/uscanner0# eszközleíró tartozik hozzá. Most már ellenõrizhetjük a lapolvasó helyes beazonosítását is:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1014,7 +1014,7 @@ which came with this software (README, FAQ, manpages).
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Nincs azonosítható lapolvasó. Ha nem erre számítottunk, akkor ellenőrizzük,
hogy az eszközt tényleg bekapcsoltuk, csatlakoztattuk és észlelte a
@@ -1031,7 +1031,7 @@ usb /dev/uscanner0
A megfelelõ formátum és a további részletek leírásához ne felejtsük el azonban elolvasni a backend konfigurációs állományában felbukkanó megjegyzéseket és az ide tartozó man oldalt sem. Most már megpróbálkozhatunk újra a lapolvasó azonosításával:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1052,7 +1052,7 @@ A korábban tárgyalt mûveletek mindegyikét `root` felhasználóként tudjuk c
Tehát erre a célra például megalkotjuk a `_usb_` csoportot. Ehhez elsõ lépésként a man:pw[8] parancs segítségével hozzuk létre magát a csoportot:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1085,7 +1085,7 @@ Az itt szereplõ sorok pontos jelentésérõl a man:devfs[8] man oldaláról tá
Ezután már csak fel kell vennünk azokat a felhasználókat a `_usb_` csoportba, amelyeknek engedélyezzük a lapolvasó használatát:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m pgj
....
diff --git a/documentation/content/hu/books/handbook/network-servers/_index.adoc b/documentation/content/hu/books/handbook/network-servers/_index.adoc
index c6232ac57e..570a0a3928 100644
--- a/documentation/content/hu/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/hu/books/handbook/network-servers/_index.adoc
@@ -100,7 +100,7 @@ inetd_enable="NO"
sort tesszük az [.filename]#/etc/rc.conf# állományba, akkor azzal az inetd démont indíthatjuk el vagy tilthatjuk le a rendszer indítása során. Az
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd rcvar
....
@@ -144,7 +144,7 @@ Amikor az [.filename]#/etc/inetd.conf# állományban módosítunk valamit, az in
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -375,14 +375,14 @@ Most egy érvényes exportlista következik, ahol a [.filename]#/usr# és az [.f
A mountd démonnal az [.filename]#/etc/exports# állományt minden egyes módosítása után újra be kell olvastatni, mivel a változtatásaink csak így fognak érvényesülni. Ezt megcsinálhatjuk úgy is, hogy küldünk egy HUP (hangup, avagy felfüggesztés) jelzést a már futó démonnak:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
vagy meghívjuk a `mountd` man:rc[8] szkriptet a megfelelõ paraméterrel:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -393,7 +393,7 @@ Ezek után akár a FreeBSD újraindításával is aktiválhatjuk a megosztásoka
Az NFS szerveren tehát:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -402,14 +402,14 @@ Az NFS szerveren tehát:
Az NFS kliensen pedig:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Ezzel most már minden készen áll a távoli állományrendszer csatlakoztatására. A példákban a szerver neve `szerver` lesz, valamint a kliens neve `kliens`. Ha csak ideiglenesen akarunk csatlakoztatni egy állományrendszert vagy egyszerûen csak ki akarjuk próbálni a beállításainkat, a kliensen `root` felhasználóként az alábbi parancsot hajtsuk végre:
-[source,bash]
+[source,shell]
....
# mount szerver:/home /mnt
....
@@ -437,7 +437,7 @@ rpc_statd_enable="YES"
A következõ módon indíthatjuk el:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/lockd start
# /etc/rc.d/statd start
@@ -467,7 +467,7 @@ Ha tehát a [.filename]#/host/izemize/usr# könyvtárban akarunk elérni egy ál
====
Egy távoli számítógép által rendelkezésre bocsátott megosztásokat a `showmount` paranccsal tudjuk lekérdezni. Például az `izemize` gépen elérhetõ exportált állományrendszereket így láthatjuk:
-[source,bash]
+[source,shell]
....
% showmount -e izemize
Exports list on izemize:
@@ -520,7 +520,7 @@ gyorsvonat:/osztott /projekt nfs rw,-r=1024 0 0
És így tudjuk manuálisan csatlakoztatni:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 gyorsvonat:/osztott /projekt
....
@@ -534,7 +534,7 @@ freebsd:/osztott /projekt nfs rw,-w=1024 0 0
Manuálisan így csatlakoztathatjuk az állományrendszert:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebsd:/osztott /projekt
....
@@ -697,7 +697,7 @@ A konkrét NIS beállításainktól függõen további bejegyzések felvételér
Miután ezeket beállítottuk, rendszeradminisztrátorként adjuk ki az `/etc/netstart` parancsot. Az [.filename]#/etc/rc.conf# állományban szereplõ adatok alapján mindent beállít magától. Még mielõtt inicializálnánk a NIS táblázatokat, indítsuk el manuálisan az ypserv démont:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ypserv start
....
@@ -706,7 +706,7 @@ Miután ezeket beállítottuk, rendszeradminisztrátorként adjuk ki az `/etc/ne
A _NIS táblázatok_ lényegében a [.filename]#/var/yp# könyvtárban tárolt adatbázisok. A központi NIS szerver [.filename]#/etc# könyvtárában található konfigurációs állományokból állítódnak elõ, egyetlen kivétellel: ez az [.filename]#/etc/master.passwd# állomány. Ennek megvan a maga oka, hiszen nem akarjuk a `root` és az összes többi fontosabb felhasználóhoz tartozó jelszót az egész NIS tartománnyal megosztani. Ennek megfelelõen a NIS táblázatok inicializálásához a következõt kell tennünk:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -722,7 +722,7 @@ Gondoskodjunk róla, hogy az [.filename]#/var/yp/master.passwd# állomány sem a
Ha végeztünk, akkor már tényleg itt az ideje inicializálni NIS táblázatainkat. A FreeBSD erre egy `ypinit` nevû szkriptet ajánl fel (errõl a saját man oldalán tudhatunk meg többet). Ez a szkript egyébként a legtöbb UNIX(R) típusú operációs rendszeren megtalálható, de nem az összesen. A Digital UNIX/Compaq Tru64 UNIX rendszereken ennek a neve `ypsetup`. Mivel most a központi NIS szerver táblázatait hozzuk létre, azért az `ypinit` szkriptnek át kell adnunk a `-m` opciót is. A NIS táblázatok elõállításánál feltételezzük, hogy a fentebb ismertetett lépéseket már megtettük, majd kiadjuk ezt a parancsot:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m proba-tartomany
Server Type: MASTER Domain: proba-tartomany
@@ -751,7 +751,7 @@ ellington has been setup as an YP master server without any errors.
Az üzenetek fordítása:
-[source,bash]
+[source,shell]
....
A szerver típusa: KÖZPONTI, tartomány: proba-tartomany
Az YP szerver létrehozásához meg kell válaszolni néhány kérdést az
@@ -782,7 +782,7 @@ beállítani.
Az `ypinit` a [.filename]#/var/yp/Makefile.dist# állományból létrehozza a [.filename]#/var/yp/Makefile# állományt. Amennyiben ez létrejött, az állomány feltételezi, hogy csak FreeBSD-s gépek részvételével akarunk kialakítani egy egyszerveres NIS környezetet. Mivel a `proba-tartomany` még egy alárendelt szervert is tartalmaz, ezért át kell írnunk a [.filename]#/var/yp/Makefile# állományt:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -800,7 +800,7 @@ NOPUSH = "True"
Az alárendelt NIS szerverek beállítása még a központinál is egyszerûbb. Jelentkezzünk be az alárendelt szerverre és az eddigieknek megfelelõen írjuk át az [.filename]#/etc/rc.conf# állományt. Az egyetlen különbség ezúttal csupán annyi lesz, hogy az `ypinit` lefuttatásakor a `-s` opciót kell megadnunk (mint slave, vagyis alárendelt). A `-s` opció használatához a központi NIS szerver nevét is át kell adnunk, ezért a konkrét parancs valahogy így fog kinézni:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington proba-tartomany
@@ -958,7 +958,7 @@ A laborunkban van egy `basie` nevû gép, amely a tanszék egyetlen munkaállom
Adott felhasználók esetében le tudjuk tiltani a bejelentkezést a gépen még olyankor is, ha léteznek a NIS adatbázisában. Ehhez mindössze a kliensen az [.filename]#/etc/master.passwd# állomány végére be kell tennünk egy `-felhasználónév` sort, ahol a _felhasználónév_ annak a felhasználónak a neve, akit nem akarunk beengedni a gépre. Ezt leginkább a `vipw` használatán keresztül érdemes megtennünk, mivel a `vipw` az [.filename]#/etc/master.passwd# állomány alapján végez némi ellenõrzést, valamint a szerkesztés befejeztével magától újragenerálja a jelszavakat tároló adatbázist. Például, ha a `bill` nevû felhasználót ki akarjuk tiltani a `basie` nevû géprõl, akkor:
-[source,bash]
+[source,shell]
....
basie# vipw
[vegyük fel a -bill sort a végére, majd lépjünk ki]
@@ -1043,7 +1043,7 @@ A hálózati csoportok használata ilyen helyzetekben számos elõnyt rejt. Nem
Az elsõ lépés a hálózati csoportokat tartalmazó NIS táblázat inicializálása. A FreeBSD man:ypinit[8] programja alapértelmezés szerint nem hozza létre ezt a táblázatot, de ha készítünk egy ilyet, akkor a NIS implementációja képes kezelni. Egy ilyen üres táblázat elkészítéséhez ennyit kell begépelni:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1086,7 +1086,7 @@ Ugyanez a folyamat javasolt olyan esetekben is, ahol 225 felhasználónál több
Az így létrehozott új NIS táblázat szétküldése meglehetõsen könnyû feladat:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1094,7 +1094,7 @@ ellington# make
Ez a parancs létrehoz három NIS táblázatot: [.filename]#netgroup#, [.filename]#netgroup.byhost# és [.filename]#netgroup.byuser#. Az man:ypcat[1] paranccsal ellenõrizni is tudjuk az új NIS táblázatainkat:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1222,7 +1222,7 @@ Még mindig akad néhány olyan dolog, amit másképpen kell csinálnunk azután
* Amikor egy új felhasználót akarunk felvenni a laborba, akkor _csak_ a központi NIS szerverre kell felvennünk, és _újra kell generáltatnunk a NIS táblázatokat_. Ha ezt elfelejtjük megtenni, akkor az új felhasználó a központi NIS szerveren kívül sehova sem lesz képes bejelentkezni. Például, ha fel akarjuk venni a `jsmith` nevû felhasználót a laborba, akkor ezt kell tennünk:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1273,7 +1273,7 @@ A `passwd_format` tulajdonság további lehetséges értékei lehetnek a `blf`
Ha változtattunk valamit az [.filename]#/etc/login.conf# állományban, akkor a bejelentkezési tulajdonságok adatbázisát is újra kell generálni, melyet `root` felhasználóként a következõ módon tehetünk meg:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1448,7 +1448,7 @@ A `dc0` felület nevét helyettesítsük annak a felületnek (vagy whitespace ka
Ezután a következõ parancs kiadásával indítsuk el a szervert:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd start
....
@@ -1572,7 +1572,7 @@ Mivel a BIND alapból elérhetõ a rendszerben, viszonylag könnyen be tudjuk á
A named alapértelmezett beállítása szerint egy man:chroot[8] környezetben futó egyszerû névfeloldást végzõ szerver, amely a helyi IPv4 interfészen (127.0.0.1) fogadja a kéréseket. Ezzel a beállítással a következõ parancson keresztül tudjuk elindítani:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named onestart
....
@@ -2157,28 +2157,28 @@ A változtatások végrehajtása elõtt mindig is jó ötlet biztonsági másola
A többi hálózati szervertõl eltérõen az Apache nem az inetd szuperszerverbõl fut. A kliensektõl érkezõ HTTP kérések minél gyorsabb kiszolgálásának érdekében úgy állítottuk be, hogy önállóan fusson. Ehhez egy szkriptet is mellékeltünk, amellyel igyekeztünk a lehetõ legjobban leegyszerûsíteni a szerver indítását, leállítását és újraindítását. Az Apache elsõ indításához adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
Így pedig a szervert bármikor leállíthatjuk:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
Ha valamilyen okból megváltoztattuk volna a szerver beállításait, akkor ezen a módon tudjuk újraindítani:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
Ha a jelenleg megnyitott kapcsolatok felbontása nélkül akarjuk újraindítani az Apache szervert, akkor ezt írjuk be:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2221,7 +2221,7 @@ NameVirtualHost *
Ha a webszerverünk neve `www.tartomany.hu`, és hozzá egy `www.valamilyenmasiktartomany.hu` virtuális nevet akarunk megadni, akkor azt a következõképpen tehetjük meg a [.filename]#httpd.conf# állományon belül:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.tartomany.hu
@@ -2267,7 +2267,7 @@ A Django mûködéséhez a mod_python modulra, az Apache szerverre és egy tetsz
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/py-django; make all install clean -DWITH_MOD_PYTHON3 -DWITH_POSTGRESQL
....
@@ -2282,7 +2282,7 @@ Miután a Django és a hozzá szükséges komponensek felkerültek rendszerünkr
====
A következõ sort kell hozzátennünk a [.filename]#httpd.conf# állományhoz, hogy az Apache bizonyos linkeket a webes alkalmazás felé irányítson át:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -2300,7 +2300,7 @@ A következõ sort kell hozzátennünk a [.filename]#httpd.conf# állományhoz,
A Ruby on Rails egy olyan másik nyílt forráskódú keretrendszer, amivel lényegében egy teljes fejlesztõi készletet kapunk és amelyet kifejezetten arra élezték ki, hogy segítségével a webfejlesztõk sokkal gyorsabban tudjanak haladni és a komolyabb alkalmazások gyorsabb elkészítése se okozzon nekik gondot. A Portrgyûjteménybõl pillanatok alatt telepíthetõ.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/rubygem-rails; make all install clean
....
@@ -2319,7 +2319,7 @@ A PHP5 támogatását úgy tudjuk hozzáadni az Apache webszerverhez, ha telepí
Ha a package:lang/php5[] portot most telepítjük elõször, akkor a vele kapcsolatos beállításokat tartalmazó `OPTIONS` menü automatikusan megjelenik. Ha ezzel nem találkoznánk, mert például valamikor korábban már felraktuk volna a package:lang/php5[] portot, akkor a port könyvtárában következõ parancs kiadásával tudjuk újra visszahozni:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2352,7 +2352,7 @@ AddModule mod_php5.c
Ahogy befejezõdött a mûvelet, a PHP modul betöltéséhez mindösszesen az `apachectl` paranccsal kell óvatosan újraindítanunk a webszervert:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2365,7 +2365,7 @@ Például PHP5 modulhoz úgy tudunk támogatást adni a MySQL adatbázis szerver
Miután telepítettünk egy bõvítményt, az Apache szerverrel újra be kell töltetnünk a megváltozott beállításokat:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2405,14 +2405,14 @@ ftpd_enable="YES"
Miután megadtuk az iménti változót, a szerver el fog indulni a rendszer következõ indítása során. Szükség esetén természetesen `root` felhasználóként a következõ paranccsal is közvetlenül elindítható:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ftpd start
....
Most már be is tudunk jelentkezni az FTP szerverre:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2485,7 +2485,7 @@ A Samba számos különbözõ hitelesítési modellt ismer. A klienseket LDAP, N
Ha feltesszük, hogy az alapértelmezett `smbpasswd` formátumot választottuk, akkor a Samba úgy fogja tudni hitelesíteni a klienseket, ha elõtte létrehozzuk a [.filename]#/usr/local/private/smbpasswd# állományt. Ha a Windows(R)-os kliensekkel is el akarjuk érni a UNIX(R)-os felhasználói hozzáféréseinket, akkor használjuk a következõ parancsot:
-[source,bash]
+[source,shell]
....
# smbpasswd -a felhasználónév
....
@@ -2494,7 +2494,7 @@ Ha feltesszük, hogy az alapértelmezett `smbpasswd` formátumot választottuk,
====
A Samba a 3.0.23c verziójától kezdõdõen a hitelesítéshez szükséges állományokat a [.filename]#/usr/local/etc/samba# könyvtárban tárolja. A felhasználói hozzáférések hozzáadására innentõl már a `tdbsam` parancs használata javasolt:
-[source,bash]
+[source,shell]
....
# pdbedit -a -u felhasználónév
....
@@ -2531,7 +2531,7 @@ Ezzel egyben a rendszer indításakor automatikusan be is indítjuk a Samba szol
A Samba a következõkkel bármikor elindítható:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2545,7 +2545,7 @@ A Samba jelen pillanatban három különálló démonból áll. Láthatjuk is, h
A Samba így állítható le akármikor:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba stop
....
@@ -2631,7 +2631,7 @@ Az [.filename]#/etc/ntp.conf# több `restrict` típusú beállítást is tartalm
Ha a gépünk újraindítása nélkül akarjuk elindítani a szerver, akkor az `ntpd` parancsot adjuk ki az [.filename]#/etc/rc.conf# állományban a `ntpd_flags` változóhoz megadott paraméterekkel. Mint például:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -2707,14 +2707,14 @@ Az elsõ sorral engedélyezzük a `syslogd` elindítását a rendszerindítás s
Befejezésképpen hozzuk létre a naplóállományt. Teljesen mindegy, hogy erre milyen megoldást alkalmazunk, például a man:touch[1] remekül megfelel:
-[source,bash]
+[source,shell]
....
# touch /var/log/naplokliens.log
....
Ezután indítsuk újra és ellenõrizzük a `syslogd` démont:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
# pgrep syslog
@@ -2753,14 +2753,14 @@ A naplószervert meg kell adnunk a kliens [.filename]#/etc/syslog.conf# állomá
Ezután a beállítás érvényesítéséhez újra kell indítanunk a `syslogd` démont:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
....
A man:logger[1] használatával próbáljuk ki a kliensrõl a aplóüzenetek hálózaton keresztüli küldését, és küldjünk valamit a `syslogd` démonnak:
-[source,bash]
+[source,shell]
....
# logger "Udvozlet a naplokliensrol"
....
@@ -2780,14 +2780,14 @@ syslogd_flags="-d -a naploklien.minta.com -vv"
Természetesen ne felejtsük el újraindítani a szervert:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
....
A démon újraindítása után közvetlenül az alábbiakhoz hasonló üzenetek árasztják el a képernyõt:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from naploszerver.minta.com, msg syslogd: restart
syslogd: restarted
@@ -2808,7 +2808,7 @@ syslogd_flags="-d -a naploklien.minta.com -vv"
Láthatjuk, hogy ebben a sorban a `naplokliens` névnek kellene szerepelni, nem pedig a `naploklien` névnek. Miután elvégeztük a szükséges javításokat, indítsuk újra a szervert és vizsgáljuk meg az eredményt:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
logmsg: pri 56, flags 4, from naploszerver.minta.com, msg syslogd: restart
diff --git a/documentation/content/hu/books/handbook/ports/_index.adoc b/documentation/content/hu/books/handbook/ports/_index.adoc
index 9b80fc4f75..6075aa1b60 100644
--- a/documentation/content/hu/books/handbook/ports/_index.adoc
+++ b/documentation/content/hu/books/handbook/ports/_index.adoc
@@ -128,7 +128,7 @@ A FreeBSD-hez elérhetõ alkalmazások listája folyamatosan növekszik. Szerenc
* Amennyiben nem ismerjük a keresett alkalmazás nevét, próbáljuk meg felkutatni a FreshMeaten (http://www.freshmeat.net/[http://www.freshmeat.net/]) vagy hozzá hasonló oldalakon, majd nézzük meg a FreeBSD honlapján, hogy az adott alkalmazást portolták-e már a rendszerre.
* Ha pontosan ismerjük a port nevét, és csak a kategóriáját kellene megkeresnünk, használjuk a man:whereis[1] parancsot. Egyszerûen csak adjuk ki a `whereis név` parancsot, ahol a _név_ a telepítendõ program neve. Ha sikerült megtalálni, részletes információt kapunk arról, hogy hol található, valahogy így:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -137,7 +137,7 @@ lsof: /usr/ports/sysutils/lsof
A fenti példában megtudhatjuk, hogy az `lsof` parancs a [.filename]#/usr/ports/sysutils/lsof# könyvtárban található.
* Vagy egy egyszerû man:echo[1] paranccsal is megkereshetjük a portfában a portokat. Mint például:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -146,7 +146,7 @@ A fenti példában megtudhatjuk, hogy az `lsof` parancs a [.filename]#/usr/ports
Ez a módszer a [.filename]#/usr/ports/distfiles# könyvtárba letöltött összes illeszkedõ állományt is kilistázza.
* Egy másik lehetõség egy adott port megtalálására, ha a Portgyûjtemény beépített keresési mechanizmusát használjuk. Ennek használatához a [.filename]#/usr/ports# könyvtárban kell lennünk. Miután beléptünk ide, futtassuk le a `make search name=programnév` parancsot, ahol a _programnév_ a keresendõ program neve. Például, ha az `lsof` programot keressük:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -181,7 +181,7 @@ A man:pkg_add[1] segédprogram segítségével telepíthetünk FreeBSD-hez kész
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -212,7 +212,7 @@ ftp> exit
Ha nincsenek egyáltalán helyben csomagjaink (például egy FreeBSD CD-készletben), akkor a legjobban úgy járunk, ha használjuk a man:pkg_add[1] `-r` kapcsolóját. Ennek hatására a segédprogram önmagától meghatározza a szükséges állományformátumot és verziót, majd FTP-n keresztül letölti és telepíti a csomagot.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -232,7 +232,7 @@ A csomagrendszer könyvtárszerkezete tehát megegyezik a portok szétosztásáv
A man:pkg_info[1] egy olyan segédprogram, amellyel készíteni lehet egy listát a telepített csomagokról, és emellett még más egyéb információkat tudhatunk meg róluk.
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -242,7 +242,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
A man:pkg_version[1] összefoglalja az összes telepített csomag verzióját. Ezenkívül össze is hasonlítja a csomagok verzióját a portfában található aktuális verziókéval.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -281,14 +281,14 @@ A második oszlopban látható jelek utalnak a telepített verzió a helyi portf
Egy korábban már telepített csomag eltávolításához használjuk a man:pkg_delete[1] segédprogramot.
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
A man:pkg_delete[1] használatánál szükség van a csomag teljes nevének és verziószámának megadására. A fenti parancs tehát nem mûködik, ha csak az _xchat_-et adjuk meg az _xchat-1.7.1_ helyett. A telepített csomag verzióját azonban könnyedén kitalálhatjuk a man:pkg_version[1] alkalmazásával. Esetleg egyszerûen dzsókerkaraktereket is használhatunk:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -326,7 +326,7 @@ Gondoskodjunk róla, hogy a [.filename]#/usr/ports# üres legyen a csup elsõ fu
. Futtassuk a `csup` programot:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -343,7 +343,7 @@ Ha például el akarjuk kerülni a CVSup szerver megadását a parancssorban, ak
.. Írjuk át a _CHANGE_THIS.FreeBSD.org_ értéket a hozzánk legközelebb található CVSup szerverére. A crossref:mirrors[cvsup-mirrors,CVSup tükrözések] (crossref:mirrors[cvsup-mirrors,CVSup oldalak]) címû részben megtaláljuk az összes ilyen tükörszervert.
.. És most indítsuk el a `csup` parancsot az alábbi módon:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -361,21 +361,21 @@ A Portsnap egy másik módszert képvisel a Portgyûjtemény terjesztésére, a
. Töltsük le a Portgyûjtemény tömörített pillanatképét a [.filename]#/var/db/portsnap# könyvtárba. Ha akarjuk, ezután a lépés után már lekapcsolódhatunk az internetrõl.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Ha még csak elõször futtatjuk a Portsnapet, bontsuk ki az imént letöltött állapotot a [.filename]#/usr/ports# könyvtárba:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Ha viszont már korábban is létezett a [.filename]#/usr/ports# könyvtárunk és most csak frissítjük, akkor helyette ezt a parancsot adjuk ki:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -389,7 +389,7 @@ Ebben az esetben a sysinstall nevû programmal telepítjük a Portgyûjteményt
. `root` felhasználóként adjuk ki a `sysinstall` parancsot, ahogy itt is láthatjuk:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -437,14 +437,14 @@ A Portgyûjtemény feltételezi, hogy mûködõ internet-hozzáféréssel rendel
A kezdéshez lépjünk be a telepítendõ port könyvtárába:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Miután beléptünk az [.filename]#lsof# könyvtárába, láthatjuk a port vázát. A következõ lépés a fordítás, avagy a port "buildelése" (elkészítése). Ezt egy szimpla `make` parancs kiadásával kezdeményezhetjük. Miután megtettük, valami ilyesmit kell tapasztalnunk:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -469,7 +469,7 @@ Miután beléptünk az [.filename]#lsof# könyvtárába, láthatjuk a port váz
A fordítás befejeztével visszakapjunk a parancssort. A soron következõ lépés a port telepítése lesz. Ehhez mindössze egyetlen szóval kell kiegészítenünk a `make` parancs meghívását: ez a szó pedig az `install` (telepít) lesz.
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -489,7 +489,7 @@ Miután ismét visszakaptuk a parancssort, már futtatni is tudjuk a frissen tel
A telepítés befejeztével nem árt törölnünk a fordításhoz felhasznált alkönyvtárat (work) is. Ezzel nemcsak a drága lemezterületet spóroljuk meg, hanem megelõzzük a port késõbbi frissítése során felmerülõ esetleges problémákat is.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -524,7 +524,7 @@ Ha a `make` parancsot egy felsõbb szinten futtatjuk, akkor ezzel létre tudjuk
Nagyon ritkán adódhat, hogy a felhasználónak nem a `MASTER_SITES` által mutatott helyekrõl kell beszereznie a szükséges állományokat (innen töltõdnek ugyanis le). A `MASTER_SITES` beállítást az alábbi paranccsal bírálhatjuk felül:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/könyvtár
# make MASTER_SITE_OVERRIDE= \
@@ -542,14 +542,14 @@ A portok némelyike lehetõvé teszi (esetleg meg is követeli), hogy engedélye
Néha hasznos (vagy kötelezõ) lehet eltérõ munka- és célkönyvtárak alkalmazása. A `WRKDIRPREFIX` és a `PREFIX` változókkal ezek alapértelmezéseit tudjuk megváltoztatni. Például a
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
parancs a portot a [.filename]#/usr/home/example/ports# könyvtárban fogja lefordítani és az eredményét a [.filename]#/usr/local# könyvtárba telepíti. A
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -558,7 +558,7 @@ parancs hatására a port a [.filename]#/usr/ports# könyvtárban készül el é
Természetesen a
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -580,7 +580,7 @@ Egyes portok lefordítása elõtt megjelenik egy ncurses alapú menü, ahol ki t
Most már tudjuk, miként lehet portokat telepíteni, azonban valószínûleg még az is érdekelhet minket, hogy miként kell ezeket eltávolítani abban az esetben, ha például késõbb meggondolnánk magunkat velük kapcsolatban. A korábban telepített példaportot fogjuk eltávolítani (a figyelmetlenek kedvéért megemlítjük, hogy ez az `lsof` volt). A portok eltávolítása teljesen egybevág a csomagokéval (errõl a <<packages-using,csomagokról szóló részben>> beszéltünk), mivel ekkor is használhatjuk a man:pkg_delete[1] parancsot:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -590,7 +590,7 @@ Most már tudjuk, miként lehet portokat telepíteni, azonban valószínûleg m
Elõször is a man:pkg_version[1] parancs felhasználásával listázzuk ki azokat a portokat, amik felett már eljárt az idõ és a Portgyûjteményben található belõlük újabb verzió:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -607,7 +607,7 @@ Amennyiben az [.filename]#UPDATING# állomány tartalma ellentmondana az itt olv
A portupgrade nevû segédprogramot a portok egyszerûbb frissítésére találták ki, és a package:ports-mgmt/portupgrade[] portban található meg. A `make install clean` paranccsal bármelyik más porthoz hasonlóan telepíthetjük:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -617,21 +617,21 @@ A `pkgdb -F` paranccsal fésültessük át a telepített portok listáját, és
Miután kiadtuk a `portupgrade -a` parancsot, a portupgrade nekilát frissíteni az összes elavult portot a rendszerünkben. Ha minden egyes frissítést külön meg szeretnénk erõsíteni, használjuk a `-i` kapcsolót is.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Ha nem akarjuk az összes portot frissíteni, csupán egy bizonyos alkalmazásét, használjuk a `portupgrade pkgname` paraméterezést. A `-R` kapcsoló megadásával a portupgrade elõször frissíti az adott alkalmazás függõségeit.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Ha a mûvelet során csomagokat kívánunk használni portok helyett, adjuk meg a `-P` kapcsolót. Ennek révén a portupgrade megkeresi a csomagokat a `PKG_PATH` környezeti változóban felsorolt könyvtárakban vagy ha itt nem találja, letölti ezeket egy távoli szerverrõl. Amennyiben a csomagokat sem helyben, sem pedig a távoli szerveren nem találja, a portupgrade helyettük portokat fog használni. Ilyenkor a portok használatát a `-PP` kapcsoló beállításával lehet elkerülni:
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -643,7 +643,7 @@ Csak a terjesztési állományok (vagy a `-P` esetén csomagok) letöltéséhez
A Portmanager egy másik hasznos segédprogram a portok könnyû frissítéséhez. A package:ports-mgmt/portmanager[] porton keresztül érhetõ el:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
@@ -651,21 +651,21 @@ A Portmanager egy másik hasznos segédprogram a portok könnyû frissítéséhe
Használatával az összes telepített port egyetlen paranccsal frissíthetõ:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
Ha a Portmanager minden egyes lépését külön meg kívánjuk erõsíteni, akkor a `-ui` kapcsolókat se felejtsük el megadni. A Portmanager emellett új portok telepítésére is használható. Eltérõen a `make install clean` parancsban megszokottaktól, a kiválasztott port összes függõségét még a fordítás és a telepítés elõtt fogja frissíteni.
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
Ha bármilyen gondot tapasztalnánk a kiválasztott port függõségeit illetõen, a Portmanagert felkérhetjük az összes függõség helyes sorrendben történõ újrafordítására. Amikor befejezte, a problémás portot is újra létrehozza.
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -676,7 +676,7 @@ Bõvebb információkért lásd man:portmanager[1].
A Portmaster szintén a portok frissítésére alkalmas segédprogram. A Portmaster esetében a hangsúly az "alaprendszerben" is megtalálható eszközök használatán van (tehát nem függ semmilyen más porttól) és a [.filename]#/var/db/pkg/# könyvtárban található információk alapján dönti el, hogy milyen portokat kell frissítenie. A package:ports-mgmt/portmaster[] portból érhetõ el:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -691,7 +691,7 @@ A Portmaster a portokat az alábbi négy kategória valamelyikébe sorolja be:
A következõ paranccsal le tudjuk kérni az összes telepített portot és az `-L` kapcsolóval frissítéseket keresni hozzájuk:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -718,7 +718,7 @@ A következõ paranccsal le tudjuk kérni az összes telepített portot és az `
Az összes telepített port egyetlen egyszerû paranccsal frissíthetõ:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -730,14 +730,14 @@ A Portmaster alapértelmezés szerint minden egyes törlendõ korábbi portról
Amennyiben valamilyen hiba lép fel a frissítés folyamán, az `-f` opció megadásával kérhetjük az összes port frissítését és újrafordítását is:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
A Portmaster használatával új portokat is fel tudunk telepíteni a rendszerre úgy, hogy azok függõségeit is igyekszik frissíteni a lefordításuk elõtt:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -749,21 +749,21 @@ A további részleteket a man:portmaster[8] man oldalon találjuk.
A Portgyûjtemény idõvel egyre több helyet fog elfoglalni a merevlemezünkön. Miután sikeresen létrehoztunk és telepítettünk egy szoftvert a hozzá tartozó portból, érdemes mindig eltakarítanunk magunk után a [.filename]#work# könyvtárban menet közben keletkezett átmeneti állományokat a `make clean` parancs használatával. Az egész Portgyûjteményt egyetlen mozdulattal ezzel a paranccsal tudjuk végigsepregetni:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Az idõ elõrehaladtával a [.filename]#distfiles# könyvtárban is rengeteg régi forrás tud felhalmazódni. Ezeket eltávolíthatjuk kézzel, vagy az alábbi parancs segítségével törölhetjük az összes olyan terjesztési állományt, amelyekre már egyetlen port sem hivatkozik:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Vagy törölhetjük az összes olyan terjesztési állományt, amelyre egyetlen pillanatnyilag feltelepített port sem hivatkozik a rendszerünkben:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -784,7 +784,7 @@ Az egyes alkalmazások beállításához elvégzendõ lépések nyilvánvalóan
* Kérdezzük meg a man:pkg_info[1] programtól, milyen állományok és hova kerültek fel a telepítés során. Például, ha a SzuperCsomag 1.0.0-át raktunk fel, akkor a
+
-[source,bash]
+[source,shell]
....
# pkg_info -L SzuperCsomag-1.0.0 | less
....
@@ -793,7 +793,7 @@ parancs kilistázza az összes állományt, amit a csomagból felraktunk. Ezek k
+
Ha nem emlékszünk pontosan rá, hogy az alkalmazások melyik verzióját is telepítettük, a
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i SzuperCsomag
....
@@ -802,7 +802,7 @@ alakú parancs megkeresi az összes olyan csomagot, aminek a nevében szerepel a
* Ahogy sikerült megtalálnunk az alkalmazáshoz tartozó man oldalakat, lapozzuk fel ezeket a man:man[1] segítségével. Ugyanígy nézzük át a mellékelt minta konfigurációs állományokat és az összes elérhetõ dokumentációt.
* Ha az alkalmazásnak van saját honlapja, kutassunk ott is információk után, olvassuk el a gyakran ismételt kérdéseket és így tovább. Ha nem tudnánk pontosan a honlap címét, a
+
-[source,bash]
+[source,shell]
....
# pkg_info SzuperCsomag-1.0.0
....
diff --git a/documentation/content/hu/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/hu/books/handbook/ppp-and-slip/_index.adoc
index 80753adb1d..390704a2ba 100644
--- a/documentation/content/hu/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/hu/books/handbook/ppp-and-slip/_index.adoc
@@ -196,7 +196,7 @@ Ha a PAP vagy CHAP protokollok valamelyikét használjuk, akkor nem lesz szüks
+
A bejelentkezéshez használt karakterlánc hasonlít a behíváshoz használt, chat-szerû felépítéssel rendelkezõ karakterlánchoz. A példában látható karakterlánc egy olyan szolgáltatáshoz illeszkedik, ahol a bejelentkezés valahogy így néz ki:
+
-[source,bash]
+[source,shell]
....
A Világ Legjobb Szolgáltatója
login: izé
@@ -311,7 +311,7 @@ exec /usr/sbin/ppp -direct $IDENT
Ez a szkript legyen végrehajtható. Ezután az alábbi paranccsal [.filename]#ppp-dialup# néven készítsünk egy szimbolikus linket erre a szkriptre:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -325,7 +325,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Hozzunk létre egy [.filename]#/home/ppp# nevû könyvtárat a következõ bárki által olvasható 0 byte-os állományokkal:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -339,7 +339,7 @@ Az iméntiekhez hasonló módon készítsük el a [.filename]#ppp-shell# állom
Például, ha három betárcsázós ügyfelünk van, `fred`, `sam` és `mary`, feléjük 24 bites CIDR hálózatokat közvetítünk, akkor a következõket kell begépelnünk:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -604,7 +604,7 @@ sendmail_flags="-bd"
Ezért cserébe viszont a `sendmail` programot a ppp kapcsolat létrejöttekor mindig utasítanunk kell, hogy újból ellenõrizze a levelezési sort. Ezt a következõk begépelésével érhetjük el:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -623,14 +623,14 @@ Ha nem felelne meg ez a megoldás, akkor egy "dfilter" is beállítható az SMTP
Ezután már csak a gépünk újraindítása maradt hátra. Az újraindítás után már be is gépelhetjük:
-[source,bash]
+[source,shell]
....
# ppp
....
ahol a `dial szolgaltato` parancs kiadásával meg tudjuk kezdeni a PPP kapcsolat felépítését, vagy a `ppp` programot megkérhetjük arra, hogy automatikusan kezdje el, amint van kimenõ forgalom (és nem készítettük el a [.filename]#start_if.tun0# szkriptet). Ekkor gépeljük be ezt:
-[source,bash]
+[source,shell]
....
# ppp -auto szolgaltato
....
@@ -717,7 +717,7 @@ defaultroute # adjuk meg ezt a sort is, ha a PPP szerverünket egyben az
. Lépjünk ki a Kermit programból (anélkül, hogy bontanánk a vonalat).
. Írjuk be a következõket:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/pppd /dev/tty01 19200
....
@@ -862,7 +862,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTtelefon.szám
Miután ezeket telepítettük és a megfelelõképpen módosítottuk, már csak a `pppd` parancsot kell kiadnunk, valahogy így:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1107,7 +1107,7 @@ device uart
A `GENERIC` rendszermag az [.filename]#uart# eszközt már alapértelmezés szerint tartalmazza, ezért ilyenkor már nincs több teendõnk. Egyszerûen csak a `dmesg` parancs kimenetében keressük meg a modemes eszközhöz tartozó adatokat:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -1118,35 +1118,35 @@ Ennek eredményeképpen kapunk egy rövid összefoglalást a [.filename]#uart# t
A `ppp` kézi irányításával gyorsan, egyszerûen és minden fájdalomtól mentesen tudunk csatlakozni az internethez, de olyankor is hasznos, ha ki akarjuk deríteni, hogy az internet-szolgáltatónk milyen módon kezeli a kliensek `ppp` csatlakozásait. Nos, akkor ehhez indítsuk is el a PPP alkalmazást a paranccsorból. Az alábbi példákban rendre a _pelda_ névvel hivatkozunk a PPP-t mûködtetõ gépre. A `ppp` tehát a `ppp` parancs begépelésével indítható:
-[source,bash]
+[source,shell]
....
# ppp
....
Ezzel elindítottuk a `ppp` programot.
-[source,bash]
+[source,shell]
....
ppp ON pelda> set device /dev/cuau1
....
Beállítjuk a modemünket, ami ebben az esetben a [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON pelda> set speed 115200
....
Beállítjuk a csatlakozás sebességét, ami ebben az esetben 115 200 kbit/mp.
-[source,bash]
+[source,shell]
....
ppp ON pelda> enable dns
....
Azt mondjuk a `ppp` programnak, hogy állítsa be a névfeloldót és az [.filename]#/etc/resolv.conf# állományt egészítse ki a megfelelõ névszerverekkel. Ha a `ppp` nem képes megállapítani a gépünk nevét, akkor késõbb ezt még kézzel is be tudjuk állítani.
-[source,bash]
+[source,shell]
....
ppp ON pelda> term
....
@@ -1159,7 +1159,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1168,56 +1168,56 @@ atdt123456789
Az `at` paranccsal hozzuk alaphelyzetbe a modemet, majd a `atdt` paranccsal és egy telefonszám megadásával megkezdjük a szolgáltató tárcsázását.
-[source,bash]
+[source,shell]
....
CONNECT
....
Ezzel jelez vissza a kapcsolódás megkezdésérõl. Ha itt bármilyen hardvertõl független csatlakozási probléma merülne fel, akkor ezen a ponton tudunk ellene tenni valamit.
-[source,bash]
+[source,shell]
....
ISP Login:felhasznalonev
....
Itt kell megadnunk a felhasználói nevünket, ami megegyezik a szolgáltató által adott azonosítónkkal.
-[source,bash]
+[source,shell]
....
ISP Pass:jelszo
....
Ezúttal a jelszavunkat kell megadni, amit szintén a szolgáltató bocsátott rendelkezésünkre az azonosító mellett. Akárcsak amikor bejelentkezünk a FreeBSD-be, itt sem fog látszódni a jelszavunk.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Szolgáltatótól függõen elõfordulhat, hogy ez a sor soha nem is jelenik meg. Itt kérdezik meg, hogy a szolgáltatónál egy shellt akarunk használni, vagy csak elindítani egy `ppp` kapcsolatot. Ebben a példában természetesen a `ppp` opciót választjuk, mivel egy internet-elõfizetés birtokosai vagyunk.
-[source,bash]
+[source,shell]
....
Ppp ON pelda>
....
Figyeljük meg, hogy az elsõ `p` nagybetûssé vált. Ezzel jelzi a program, hogy sikeresen csatlakoztunk a szolgáltatónkhoz.
-[source,bash]
+[source,shell]
....
PPp ON pelda>
....
Sikeresen azonosítottuk magunkat a szolgáltató felé és várjuk az IP-címünket.
-[source,bash]
+[source,shell]
....
PPP ON pelda>
....
Megkaptuk az IP-címünket és ezzel sikeresen felépült a kapcsolat.
-[source,bash]
+[source,shell]
....
PPP ON pelda>add default HISADDR
....
@@ -1236,14 +1236,14 @@ Amikor a PPP nem tér vissza parancs módba, akkor gyaníthatóan az egyeztetés
Ha egyáltalán nem kapunk promptot a bejelentkezéshez, akkor nagy a alószínûsége, hogy az iménti UNIX(R) stílusú hitelesítés helyett PAP vagy CHAP protokollt kell használnunk. A PAP vagy CHAP használatához mindössze a következõ beállításokat kell megadnunk PPP programnak a terminál mód aktiválása elõtt:
-[source,bash]
+[source,shell]
....
ppp ON pelda>set authname felhasznalonev
....
ahol a _felhasznalonev_ helyett a szolgáltatótól kapott azonosítót kell beírnunk.
-[source,bash]
+[source,shell]
....
ppp ON pelda>set authkey jelszo
....
@@ -1303,7 +1303,7 @@ a_szolgaltato_neve:
`root` felhasználóként adjuk ki az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# ppp -ddial a_szolgaltato_neve
....
@@ -1358,7 +1358,7 @@ net.graph.nonstandard_pppoe=1
vagy közvetlenül az alábbi paranccsal:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -1458,14 +1458,14 @@ adsl:
A kapcsolat ezek után pillanatok alatt felépíthetõ, ha a `root` felhasználóval kiadjuk a következõ parancsot:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
A kapcsolat állapotát a következõ paranccsal tudjuk ezután ellenõrizni:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1500,7 +1500,7 @@ adsl:
Mivel az elõfizetéshez tartozó jelszót a [.filename]#ppp.conf# állományba titkosítatlan formában kell szerepeltetnünk, ezért gondoskodjunk róla, hogy senki sem képes olvasni a tartalmát. A most következõ parancsokkal beállítjuk, hogy ez az állomány csak a `root` felhasználó számára legyen olvasható. A részletekért lásd a man:chmod[1] és man:chown[8] man oldalakat.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1510,7 +1510,7 @@ Mivel az elõfizetéshez tartozó jelszót a [.filename]#ppp.conf# állományba
Ezzel a paranccsal a DSL útválasztónk felé nyitunk egy tunnelt a PPP kapcsolathoz. Az Ethernetes DSL modemek általában egy elõre beállított helyi hálózati IP-címmel rendelkeznek, amelyhez tudunk csatlakozni. Az Alcatel SpeedTouch(TM) Home esetében ez a cím a `10.0.0.138`. Az útválasztóhoz adott dokumentációban keressük meg, hogy az eszközünkhöz konkrétan milyen cím tartozik. A tunnel megnyitásához és a PPP kapcsolat megindításához a következõ parancsot kell kiadnunk:
-[source,bash]
+[source,shell]
....
# pptp cím adsl
....
@@ -1523,7 +1523,7 @@ Az iménti parancs végére még érdemes odatenni az "et" jelet ("&") is, mivel
A parancs hatására a virtuális tunnelt megtestesítõ [.filename]#tun# eszköz jön létre a pptp és ppp programok között. Miután visszakaptuk a parancssort, vagy a pptp program megerõsítette a kapcsolódás sikerességét, a keletkezett járatot így tudjuk ellenõrizni:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1649,7 +1649,7 @@ _Nem_ javasoljuk, hogy az állományrendszeren a jelszavakat titkosítatlan form
+
. Hagyjuk el a Kermit programot (a kbd:[Ctrl+z] billentyûkombinációval bármikor fel tudjuk függeszteni a futását) és `root` felhasználóként írjuk be a következõt:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1661,7 +1661,7 @@ Ha ezután már képesek vagyunk a `ping` paranccsal elérni az útválasztó m
Tegyük a következõket:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1680,7 +1680,7 @@ Ha valamiért ez mégsem válna be, akkor csak nyugodtan kérdezõsködjünk a l
* Az `sl0` helyett `s10`-et írtak be (egyes betûtípusoknál könnyen össze lehet téveszteni ezeket).
* Az `ifconfig sl0` segítségével ellenõrizhetõ a felület állapota. Például ilyet láthatunk:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1689,7 +1689,7 @@ sl0: flags=10<POINTOPOINT>
* Ha a man:ping[8] `no route to host` hibaüzenetet ad, akkor az útválasztási táblázattal van a gond. A `netstat -r` paranccsal gyorsan ki tudjuk listázni a rendszerünkben jelenleg nyilvántartott utakat:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1763,7 +1763,7 @@ Alapértelmezés szerint a FreeBSD nem továbbít semmilyen csomagot. Amennyiben
A változtatások azonnali életbeléptetéséhez adjuk ki `root` felhasználóként a következõ parancsot:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing start
....
@@ -1852,7 +1852,7 @@ Láthatjuk, hogy az elõbbi [.filename]#slip.login# állomány egy `arp -s $5 00
Amikor a fenti példából indulunk ki, a benne megadott MAC-címet (`00:11:22:33:44:55`) feltétlenül cseréljük a rendszerünk Ethernet kártyájának MAC-címével, mert különben az "ARP proxy" egyáltalán nem fog mûködni! A SLIP szerverünk MAC-címét a `netstat -i` paranccsal deríthetjük ki, amelynek a kimenetében a második sor valahogy így néz ki:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/hu/books/handbook/preface/_index.adoc b/documentation/content/hu/books/handbook/preface/_index.adoc
index 3a99d160d6..b5fef27efe 100644
--- a/documentation/content/hu/books/handbook/preface/_index.adoc
+++ b/documentation/content/hu/books/handbook/preface/_index.adoc
@@ -231,21 +231,21 @@ Ez tehát azt jelenti, hogy a felhasználónak elõször a kbd:[Ctrl] és kbd:[X
A [.filename]#E:\># kijelzéssel kezdõdõ példák egy MS-DOS(R) parancsot jelölnek. Ha másképpen nem említjük, ezeket a parancsokat a modern Microsoft(R) Windows(R)-okban található "Parancssorból" kell kiadni.
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
A # kijelzéssel kezdõdõ példák a FreeBSD-ben rendszeradminisztrátori jogokat igénylõ parancsok kiadását jelentik. Ehhez bejelentkezhetünk a `root` felhasználóval, vagy felvethetjük a rendszeradminisztrátori jogokat a saját felhasználói fiókunkból a man:su[1] használatával is.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
A % kijelzéssel kezdõdõ példák olyan parancsra utalnak, amelyeket egy normál felhasználói fiókból érdemes kiadni. Hacsak másképpen nem jelezzük, a C-shell szintaxisát használjuk a környezeti változók és egyéb parancsok megadásakor.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/hu/books/handbook/printing/_index.adoc b/documentation/content/hu/books/handbook/printing/_index.adoc
index 590bff9697..bee6729a3c 100644
--- a/documentation/content/hu/books/handbook/printing/_index.adoc
+++ b/documentation/content/hu/books/handbook/printing/_index.adoc
@@ -182,14 +182,14 @@ Az operációs rendszer magja eszközök egy adott csoportjával képes együttm
Így tudjuk megnézni, hogy a jelenleg használt rendszermag támogatja-e a soros csatolófelületet:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
Itt az _N_ nullától kezdõdõen adja meg a soros port sorszámát. Amennyiben látunk valami ilyesmit:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -199,14 +199,14 @@ Ez azt jelenti, hogy a rendszermag sikeresen észlelte a portot.
A párhuzamos csatolófelület támogatásáról így gyõzõdhetünk meg:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Itt az _N_ nullától kezdõdõen sorszámozza a párhuzamos portot. Ha eredményül valami hasonlót kapunk:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -246,7 +246,7 @@ hint.ppc.0.irq="N"
+
sorba a megfelelõ IRQ számát. A rendszermag beállításait tartalmazó állománynak tartalmaznia kell a man:ppc[4] meghajtót is:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -270,7 +270,7 @@ _A kommunikáció módjának beállítása_ az man:lptcontrol[8] programmal:
. A megszakításos mód beállításához írjuk be:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -278,7 +278,7 @@ _A kommunikáció módjának beállítása_ az man:lptcontrol[8] programmal:
ahol az `lptN` a nyomtatóhoz tartozó eszköz neve.
. A lekérdezéses mód beállításához írjuk be:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -328,7 +328,7 @@ _A párhuzamos porton levõ nyomtató kipróbálásához:_
+
** Ha a nyomtató képes nyers szöveget fogadni, akkor használjuk az man:lptest[1] programot. Ehhez gépeljük be:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -336,7 +336,7 @@ _A párhuzamos porton levõ nyomtató kipróbálásához:_
ahol az _N_ nullától kezdõdõen a párhuzamos port sorszáma.
** Ha a nyomtató PostScript(R) vagy más nyomtatási nyelvet ismer, akkor egy apró programot kell küldenünk neki. Ehhez írjuk be:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -345,7 +345,7 @@ Ezután soronként írjuk be a programot, de _vigyázzunk_, mert az kbd:[Enter]
+
Ezt a programot belerakhatjuk egy állományba is, amire aztán adjuk ki az alábbi parancsot:
+
-[source,bash]
+[source,shell]
....
# cat állomány > /dev/lptN
....
@@ -384,7 +384,7 @@ printer:dv=/dev/ttyd2:br#19200:pa=none
+
. Kapcsolódjunk a nyomtatóhoz a man:tip[1] segítségével. Ennek parancsa:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -394,7 +394,7 @@ Ha az iménti lépés nem mûködne, próbálkozzunk az [.filename]#/etc/remote#
+
** Ha a nyomtató képes nyers szöveget nyomtatni, akkor használjuk az man:lptest[1] segédprogramot. Gépeljük be:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -403,7 +403,7 @@ Ha az iménti lépés nem mûködne, próbálkozzunk az [.filename]#/etc/remote#
+
Vagy tehetjük az egész programot egy állományba, amihez aztán írjuk be ezt:
+
-[source,bash]
+[source,shell]
....
% >állomány
....
@@ -496,14 +496,14 @@ A nyomtatási rendszer adatait tároló könyvtárakat tartalmuk gyakori változ
Általában minden nyomtatóhoz külön létre szoktak hozni egy könyvtárat az adott nyomtató nevén. Erre példa:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/nyomtatónév
....
Azonban ha a hálózatunkon rengeteg nyomtató található, akkor érdemes inkább egyetlen könyvtárat használni, amelyet az LPD számára tartunk fenn.
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -514,7 +514,7 @@ Azonban ha a hálózatunkon rengeteg nyomtató található, akkor érdemes inká
====
Amennyiben fontos nekünk a felhasználói nyomtatások titkosságának megóvása, érdemes levédenünk a nyomtatási könyvtárat, így az nem lesz mindenki által elérhetõ. A nyomtatási könyvtárak tulajdonosa egyedül és kizárólag a `daemon` felhasználó és a `daemon` csoport legyen, és hozzá olvasási, írási és keresési engedélyekkel rendelkezzen. Ezt fogjuk most beállítani a példáinkban szereplõ nyomtatóinkhoz is:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -622,7 +622,7 @@ exit 2
Tegyük indíthatóvá:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -661,7 +661,7 @@ lpd_enable="YES"
Ezután vagy indítsuk újra a számítógépünket, vagy pedig adjuk ki az man:lpd[8] parancsot:
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -677,7 +677,7 @@ _Az LPD beállításainak egyszerû tesztelése:_
Írjuk be:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pnyomtatónév
....
@@ -686,7 +686,7 @@ ahol a _nyomtatónév_ az [.filename]#/etc/printcap# állományban megadott egyi
A PostScript(R) nyomtató esetén a kiküldött program eredményét kell látnunk. Amennyiben az man:lptest[1] parancsot használjuk, valami ilyesmire kell számítanunk:
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -908,7 +908,7 @@ Miután elvégeztük az <<printing-simple,Alacsonyszintû nyomtatóbeállítás>
A konverziós szûrõk segítségével állományok mindenféle formátumait könnyen ki tudjuk nyomtatni. Például tegyük fel, hogy sokat dolgozunk a TeX betûszedõ rendszerrel és egy PostScript(R) nyomtatónk van. Minden alkalommal, amikor egy DVI állományt hozunk létre a TeX forrásból, azt közvetlenül még nem tudjuk a nyomtatóra küldeni. Ehhez a következõ parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
% dvips hínár-elemzés.dvi
% lpr hínár-elemzés.ps
@@ -916,7 +916,7 @@ A konverziós szûrõk segítségével állományok mindenféle formátumait kö
Ha telepítünk egy konverziós szûrõt a DVI állományokhoz, meg tudjuk spórolni ezt a manuális átalakítási lépést azzal, hogy átadjuk ezt a feladatot az LPD-nek. Így ezután mindig, amikor egy DVI állományt akarunk kinyomtatni, csupán egyetlen lépésre lesz szükségünk:
-[source,bash]
+[source,shell]
....
% lpr -d hínár-elemzés.dvi
....
@@ -1286,7 +1286,7 @@ Az LPD minden fejléclap után egy lapdobást küld. Ha erre a célra a nyomtat
A fejléclapok engedélyezésével az LPD egy ún. _hosszú fejlécet_ fog készíteni, vagyis a felhasználót, a gépet és a nyomtatási feladatot jól azonosító, egész lapot kitöltõ óriási betûket. Erre egy példa (amiben a `rose` nevû géprõl `kelly` küldte az "outline" elnevezésû nyomtatási feladatot):
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1326,7 +1326,7 @@ Ezt követõen az LPD elküld még egy lapdobást is, ezért maga a nyomtatási
Ha úgy jobban tetszik, akkor az [.filename]#/etc/printcap# állományban a `sb` tulajdonsággal az LPD utasítható _rövid fejlécek_ készítésére is. Ilyenkor a fejléclap tartalma mindössze ennyi lesz:
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1563,7 +1563,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Ezután már csak létre kell hoznunk a megfelelõ nyomtatási könyvtárakat az `orchid` nevû gépen:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1572,7 +1572,7 @@ Ezután már csak létre kell hoznunk a megfelelõ nyomtatási könyvtárakat az
Mostantól kezdve az `orchid` felhasználói képesek lesznek nyomtatni a `rattan` és `bamboo` nevû nyomtatókon is. Ezért, ha az `orchid` egyik felhasználója beírja, hogy:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-leírás.dvi
....
@@ -1639,14 +1639,14 @@ Az LPD segítségével a felhasználók egy állományt könnyen ki tudnak nyomt
Amennyiben úgy érezzük, hogy a további példányok készítése csupán felesleges papír- és tintapazarlás, akkor az `sc` tulajdonság megadásával az [.filename]#/etc/printcap# állományban kikapcsolhatjuk az man:lpr[1] `-#` lehetõség használatát. Így amikor a felhasználók a `-#` kapcsolóval küldenek el feladatokat a nyomtatóra, a következõt fogják tapasztalni:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
Fordítása:
-[source,bash]
+[source,shell]
....
lpr: másolatok nyomtatása nem engedélyezett
....
@@ -1695,7 +1695,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Az `sc` tulajdonság használatával ugyan megakadályozzuk az `lpr -#` parancs teljesítését, azonban ez még mindig nem óv meg minket attól, hogy a felhasználók képesek legyenek többször egymás után lefuttatni az man:lpr[1] parancsot, vagy éppen egyetlen nyomtatási feladatban több állományt is elküldeni:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1709,14 +1709,14 @@ A UNIX(R) csoportkezelésével és az [.filename]#/etc/printcap# állományban t
A csoporton kívüli felhasználókat (köztük magát a `root` felhasználót is) pedig ezután így üdvözli a rendszer, ha megpróbálnak valamit kinyomtatni egy korlátozott felhasználású nyomtatón:
-[source,bash]
+[source,shell]
....
lpr: Not a member of the restricted group
....
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
lpr: Nem jogosult felhasználó
....
@@ -1832,7 +1832,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
A nyomtatási könyvtárat az `sd` tulajdonság határozza meg. Úgy állítjuk most be, hogy az LPD számára a távoli nyomtatási feladatok fogadásához ebben a könyvtárban legalább három megabyte (6144 blokk) szabad területnek mindig lennie kell:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1879,7 +1879,7 @@ Minden nyomtatóhoz érdemes külön nyilvántartást vezetni, mivel az `lpf` ne
Amikor elérkezünk a nyomtatások kiszámlázásához, futtassuk le a man:pac[8] programot. Ehhez mindössze annyit kell tennünk, hogy átlépünk az elszámolni kívánt nyomtató könyvtárába és begépeljük a `pac` parancsot. Ekkor kapunk egy ehhez hasonló, dollár alapú kimutatást:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1918,7 +1918,7 @@ Csak az adott _nevû_ felhasználók adatait értékelje ki.
A man:pac[8] által alapértelmezés szerint generált kimutatásban láthatjuk az egyes gépekrõl származó egyes felhasználók kinyomtatott oldalait. Ha nekünk viszont nem számít, hogy honnan küldték a kéréseket (mivel bárhonnan lehet küldeni), akkor a `pac -m` paranccsal az alábbi táblázatot készíttethetjük el:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1932,7 +1932,7 @@ total 337.00 154 $ 6.74
Itt megtaláljuk a ténylegesen kifizetendõ összegeket is, amik kiszámításához a man:pac[8] az [.filename]#/etc/printcap# állomány `pc` tulajdonságát használja (ez alapból 200, avagy 2 cent oldalanként). Ezzel a tulajdonsággal tehát egy cent századrészében mérve tudjuk megadni az oldalakénti vagy lábankénti árakat. Ezt a beállítást természetesen a man:pac[8] `-p` opciójával felül tudjuk bírálni. Arra azonban vigyázzunk, hogy a `-p` után dollárban kell megadnunk az árat. Emiatt tehát a
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1986,28 +1986,28 @@ A továbbiakban az _alapértelmezett nyomtató_ kifejezés a `PRINTER` környeze
Az állományok kinyomtatásához írjuk be:
-[source,bash]
+[source,shell]
....
% lpr állománynév ...
....
Ezzel kinyomtatjuk az összes felsorolt állományt az alapértelmezett nyomtatón. Ha nem adunk meg állományokat, akkor az man:lpr[1] parancs a szabványos bemenetrõl várja a nyomtatandó adatokat. Például ezzel a paranccsal néhány igen fontos rendszerállományt tudunk kinyomtatni:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
A nyomtató megválasztásához így adjuk ki a parancsot:
-[source,bash]
+[source,shell]
....
% lpr -P nyomtatónév állománynév ...
....
Ez a példa kinyomtatja az aktuális könyvtár részletes listáját a `rattan` nevû nyomtatón:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -2023,14 +2023,14 @@ Amikor az man:lpr[1] programmal nyomtatunk, az összes nyomtatandónk egy "nyomt
Az alapértelmezett nyomtatóhoz tartozó sor állapotát az man:lpq[1] programmal tudjuk megnézni. Ha egy adott nyomtatóra vagyunk kíváncsiak, akkor használjuk a `-P` kapcsolót. Például a
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
parancs a `bamboo` nevû nyomtató sorát fogja megmutatni. Példaképpen lássuk is ilyen esetben az `lpq` parancs eredményét:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2047,7 +2047,7 @@ Az man:lpq[1] kimenetének elsõ sorai is nagyon hasznos információt tartalmaz
A `-l` kapcsolóval az man:lpq[1] parancstól kérhetünk sokkal részletesebb listázást is. Például így nézhet ki a `lpq -l` parancs eredménye:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2068,14 +2068,14 @@ Ha meggondoltuk volna magunkat egy nyomtatási feladattal kapcsolatban, az man:l
Az alapértelmezett nyomtató sorából csak úgy tudunk nyomtatási feladatokat törölni, ha elõször az man:lpq[1] segítségével megkeressük a számukat. Ha ez megvan, írjuk be:
-[source,bash]
+[source,shell]
....
% lprm feladatám
....
Adott nyomtatóról a `-P` kapcsoló segítségével tudunk nyomtatási feladatot törölni. A most következõ parancs a `bamboo` nevû nyomtatóról törli a 10-es számú nyomtatási feladatot:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2093,7 +2093,7 @@ A nyomtatási feladat száma, a felhasználói név vagy a ``-``megadása nélk
Ha kiegészítjük az imént említett rövidítéséket a `-P` paraméter megadásával, akkor az alapértelmezett nyomtató helyett bármelyik másikat is használhatjuk. Például ez a parancs eltávolítja az aktuális felhasználó összes nyomtatási feladatot a `rattan` nevû nyomtatón:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2102,7 +2102,7 @@ Ha kiegészítjük az imént említett rövidítéséket a `-P` paraméter megad
====
Hálózati környezetben az man:lprm[1] csak arról a géprõl engedi törölni a nyomtatási feladatokat, amelyrõl küldték ezeket, még abban az esetben is, amikor ugyanaz a nyomtató más számítógépekrõl is elérhetõ. A következõ parancssorozat ezt igyekszik szemléltetni:
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2132,7 +2132,7 @@ Az man:lpr[1] most következõ opciói a nyomtatási feladatokban található á
Például az alábbi parancs kinyomtat egy [.filename]#halászati-jelentés.dvi# nevû (a TeX betûszedû rendszerbõl már jól ismert) DVI állományt a `bamboo` nevû nyomtatón:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d halászati-jelentés.dvi
....
@@ -2184,7 +2184,7 @@ Raszteres adatok nyomtatása.
Vegyünk az iméntiekre egy példát. A következõ parancs az man:ls[1] szépen megformázott man oldalát nyomtatja ki az alapértelmezett nyomtatón:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2201,7 +2201,7 @@ Egyetlen példány helyett hozzon létre _példányszám_ számú példányt a n
+
A beállítás illusztrálásaként most az alapértelmezett nyomtatón elõször nyomtassunk ki három példányt a [.filename]#parser.c#, majd ezután a [.filename]#parser.h# állományokból:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2347,7 +2347,7 @@ exit 2
"Lépcsõsen" jelentek meg a sorok.::
Ekkor a következõt látjuk a lapon:
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/hu/books/handbook/security/_index.adoc b/documentation/content/hu/books/handbook/security/_index.adoc
index 6e51cab0ff..465a482c4e 100644
--- a/documentation/content/hu/books/handbook/security/_index.adoc
+++ b/documentation/content/hu/books/handbook/security/_index.adoc
@@ -126,7 +126,7 @@ Természetesen egy rendszergazdának valahogy el kell érnie a `root` hozzáfér
A hozzáférések teljes körû letiltásához a man:pw[8] parancsot érdemes használni:
-[source,bash]
+[source,shell]
....
# pw lock személyzet
....
@@ -182,7 +182,7 @@ De ha még ki is iktatjuk a [.filename]#bpf# eszközt, még aggódhatunk a [.fil
A rendszermag védelmi szintjét több különbözõ módon lehet állítani. A védelmi szintet úgy lehet a legegyszerûbben növelni, ha a `sysctl` paranccsal beállítjuk a `kern.securelevel` nevû, rendszerszintû változó értékét:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel=1
....
@@ -294,7 +294,7 @@ Négyféle különbözõ mûveletrõl fogunk most itt beszélni. Az elsõben egy
Az OPIE elsõ inicializálásához adjuk ki az `opiepasswd` parancsot:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -311,7 +311,7 @@ MOS MALL GOAT ARM AVID COED
A figyelmeztetés fordítása:
-[source,bash]
+[source,shell]
....
Ezt a módszert csak konzolról alkalmazzuk, SOHA ne távoli kapcsolaton
keresztül! Ha telnetet, xtermet vagy betárcsázós kapcsolatot használunk, akkor
@@ -324,7 +324,7 @@ Az `Enter new secret pass phrase:` vagy `Enter secret password:` kérdések utá
Ha egy nem biztonságos kapcsolaton keresztül akarjuk inicializálni vagy megváltoztatni a jelszavunkat, akkor szükségünk lesz valahol egy megbízható kapcsolatra, ahol le tudjuk futtatni az `opiekey` parancsot. Ez lehet egy számunkra biztonsági szempontból elfogadható gép parancssora. Emellett ki kell találnunk egy iterációs számot (erre a 100 egy jó választás) és adnunk egy magot vagy használni egy véletlenszerûen generáltat. Az inicializálás színtere felé vezetõ nem biztonságos kapcsolaton keresztül adjuk ki az `opiepasswd` parancsot:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -343,7 +343,7 @@ LINE PAP MILK NELL BUOY TROY
Az alapértelmezett mag elfogadásához nyomjuk le a kbd:[Return] billentyût. Mielõtt megadnánk a hozzáférés jelszavát, menjünk át a biztonságos kapcsolatra és adjuk meg neki ugyanezeket a paramétereket:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -358,7 +358,7 @@ Most váltsunk vissza a nem biztonságos kapcsolatra és másoljuk be az így ge
Miután sikeresen inicializáltuk az OPIE-t és bejelentkezünk, a következõket láthatjuk:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -378,7 +378,7 @@ A bejelentkezéshez ekkor le kell valahogy generálnunk az egyszeri jelszavunkat
A megbízható rendszeren tehát:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -393,7 +393,7 @@ Most már megvan a bejelentkezéshez szükséges egyszeri jelszavunk.
Néha olyan helyekre kell mennünk, ahol se egy megbízható gép, sem pedig biztonságos kapcsolat nem található. Ilyen esetekben megadhatjuk az `opiekey` parancsnak, hogy elõre gyártson le több egyszer használatos jelszót, amit késõbb aztán ki tudunk nyomtatni. Például:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -540,7 +540,7 @@ A Kerberos MIT által fejlesztett implementációját egyébként a Portgyûjtem
Ezt a lépést csak a Kerberos szerveren kell elvégezni. Elõször is gyõzõdjünk meg róla, hogy semmilyen korábbi Kerberos adatbázis nem található a gépen. Váltsunk az [.filename]#/etc/kerberosIV# könyvtárra és ellenõrizzük a következõ állományok meglétét:
-[source,bash]
+[source,shell]
....
# cd /etc/kerberosIV
# ls
@@ -551,7 +551,7 @@ Ha rajtuk kívül további állományok is feltûnnének (mint például a [.fil
Ezután lássunk neki a [.filename]#krb.conf# és [.filename]#krb.realms# állományok átírásán keresztül a Kerberos egyes övezeteinek (realm) létrehozásához. Itt most az `EXAMPLE.COM` lesz a létrehozandó övezet, a hozzá tartozó szerver pedig a `grunt.example.com`. Így szerkesszük át vagy készítsünk el a neki megfelelõ [.filename]#krb.conf# állományt:
-[source,bash]
+[source,shell]
....
# cat krb.conf
EXAMPLE.COM
@@ -572,7 +572,7 @@ Az elsõ sor nevezi meg a rendszer által mûködtetett övezeteket. Az utána k
Ezután hozzá kell adnunk a `grunt.example.com` nevû gépet az `EXAMPLE.COM` övezethez, valamint az `.example.com` tartományban levõ összes géphez létre kell hoznunk egy bejegyzést az `EXAMPLE.COM` övezetben. A [.filename]#krb.realms# állományt ehhez a következõképpen kellene módosítanunk:
-[source,bash]
+[source,shell]
....
# cat krb.realms
grunt.example.com EXAMPLE.COM
@@ -588,7 +588,7 @@ Itt az elsõ sor az _adott_ rendszert elhelyezi egy nevesített övezetbe. A tö
Most már készen állunk az adatbázis létrehozására. Ehhez egyedül a Kerberos szerverét (avagy Kulcselosztó központját) kell elindítanunk. Adjuk ki a `kdb_init` parancsot:
-[source,bash]
+[source,shell]
....
# kdb_init
Realm name [default ATHENA.MIT.EDU ]: EXAMPLE.COM
@@ -600,7 +600,7 @@ Enter Kerberos master key:
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
Most az adatbázis mesterkulcsát kell megadni. Fontos, hogy
NE FELEJTSÜK EL ezt a jelszót.
@@ -608,7 +608,7 @@ NE FELEJTSÜK EL ezt a jelszót.
Most el kell mentenünk a kulcsot, így a helyi gépen futó szerverek fel tudják szedni. Ehhez a `kstash` parancsra van szükségünk:
-[source,bash]
+[source,shell]
....
# kstash
@@ -621,7 +621,7 @@ Master key entered. BEWARE!
Az üzenet fordítása:
-[source,bash]
+[source,shell]
....
A Kerberos mesterkulcsának jelenlegi változata: 1.
@@ -638,7 +638,7 @@ A kpasswd és rcmd démonok teszik lehetõvé a többi rendszer számára, hogy
Vegyük fel ezeket a bejegyzéseket is:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -694,7 +694,7 @@ Principal name: <---- ha nem adunk meg semmit, akkor kilép
Most pedig kivonatolni kell azokat a példányokat, amelyek szolgáltatást definiálnak a gépen. Erre az `ext_srvtab` parancsot használjuk. Ennek eredményeképpen keletkezik egy állományt, amelyet _biztonságos eszközökkel_ át kell másolni vagy át kell mozgatni az egyes Kerberos kliensek [.filename]#/etc# könyvtárába. Ennek az állománynak egyaránt jelent kell lennie a szerveren és a kliensen is, nélküle a Kerberos mûködésképtelen.
-[source,bash]
+[source,shell]
....
# ext_srvtab grunt
Enter Kerberos master key:
@@ -707,14 +707,14 @@ Generating 'grunt-new-srvtab'....
Ez a parancs most létrehozott egy ideiglenes állományt, amit át kell nevezni az [.filename]#srvtab# névre, hogy megtalálhassák a szerverek. Az eredeti rendszeren a man:mv[1] paranccsal tudjuk a helyére rakni:
-[source,bash]
+[source,shell]
....
# mv grunt-new-srvtab srvtab
....
Ha egy kliensnek szánjuk az állományt és a hálozatunkat nem tekinthetjük biztonságosnak, akkor a [.filename]#kliens-new-srvtab# állományt másoljuk egy mozgatható adathordozóra és megbízható módon jutassuk el. Ne felejtsük el az állományt [.filename]#srvtab# néven átrakni a kliens [.filename]#/etc# könyvtárába és az engedélyeit 600-ra állítani:
-[source,bash]
+[source,shell]
....
# mv grumble-new-srvtab srvtab
# chmod 600 srvtab
@@ -724,7 +724,7 @@ Ha egy kliensnek szánjuk az állományt és a hálozatunkat nem tekinthetjük b
Ezt követõen rögzítenünk kell néhány felhasználót is adatbázisban. Elõször is hozzunk létre egy bejegyzést a `janos` nevû felhasználónak. Ezt a `kdb_edit` parancs kiadásával tesszük meg:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -759,7 +759,7 @@ Principal name: <---- ha nem írunk be semmit, akkor kilép
Elsõként a Kerberos démonait kell beindítanunk. Ezzel kapcsolatban megjegyeznénk, hogy ha ehhez megfelelõen átírtuk az [.filename]#/etc/rc.conf# állományunkat, akkor ez az újraindítással együtt magától lezajlik. Ezt csak a Kerberos szerveren kell megcsinálni. A Kerberos kliensei maguktól összeszedik a mûködésükhöz szükséges adatokat az [.filename]#/etc/kerberosIV# könyvtárból.
-[source,bash]
+[source,shell]
....
# kerberos &
Kerberos server starting
@@ -783,7 +783,7 @@ Master key entered. BEWARE!
A fenti figyelmeztetés fordítása:
-[source,bash]
+[source,shell]
....
A program leállítására ne a 'kill -9' parancsot, hanem a
normális kill parancsot használjuk
@@ -791,7 +791,7 @@ normális kill parancsot használjuk
Ezután a `kinit` parancs használatával próbáljunk meg az elõbb létrehozott `janos` azonosítónak kérni egy jegyet:
-[source,bash]
+[source,shell]
....
% kinit janos
MIT Project Athena (grunt.example.com)
@@ -801,7 +801,7 @@ Password:
A `klist` paranccsal most próbáljuk meg kilistázni a tokeneket és így ellenõrizni, hogy valóban rendelkezünk velük:
-[source,bash]
+[source,shell]
....
% klist
Ticket file: /tmp/tkt245
@@ -813,7 +813,7 @@ Apr 30 11:23:22 Apr 30 19:23:22 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Ezután a man:passwd[1] használatával próbáljuk meg megváltoztatni a jelszavunkat. Ezzel tudjuk ellenõrizni, hogy a kpasswd démon hozzáfér a Kerberos adatbázisához:
-[source,bash]
+[source,shell]
....
% passwd
realm EXAMPLE.COM
@@ -828,7 +828,7 @@ Password changed.
A Kerberos lehetõvé teszi, hogy _mindegyik_ olyan felhasználónak, akinek rendszergazdai jogokra lenne szüksége, a man:su[1] eléréséhez _külön_ meg tudjunk adni egy jelszót. Most már tudunk mondani egy olyan azonosítót is, amely jogosult a man:su[1] használatával `root` jogokat szerezni. Ezt úgy tudjuk megoldani, ha az adott szereplõhöz társítunk egy `root` példányt. A `kdb_edit` használatával készíteni tudunk egy `janos.root` bejegyzést a Kerberos adatbázisában:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -862,7 +862,7 @@ Principal name: <---- ha nem adunk meg semmit, akkor kilép
Ezt követõen úgy tudunk megbizonyosodni a mûködésérõl, hogy megpróbálunk neki tokeneket szerezni:
-[source,bash]
+[source,shell]
....
# kinit janos.root
MIT Project Athena (grunt.example.com)
@@ -872,7 +872,7 @@ Password:
Most rakjuk bele a felhasználót a `root`[.filename]#.klogin# állományába:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
janos.root@EXAMPLE.COM
@@ -880,7 +880,7 @@ janos.root@EXAMPLE.COM
Ezután próbáljunk meg kiadni a man:su[1] parancsát:
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -888,7 +888,7 @@ Password:
Nézzük meg milyen tokenjeink is vannak:
-[source,bash]
+[source,shell]
....
# klist
Ticket file: /tmp/tkt_root_245
@@ -902,7 +902,7 @@ May 2 20:43:12 May 3 04:43:12 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Az iménti példában létrehoztunk egy `janos` nevû szereplõt, amihez a `root` egy példányát rendeltük. Ez egy olyan felhasználón alapján történt, akinek a neve megegyezik a hozzá tartozó szereplõvel, ami a Kerberosban alapértelmezés. Amennyiben a szükséges megjegyzések megtalálhatóak a `root` könyvtárában levõ [.filename]#.klogin# állományban, akkor a `felhasználó.root` formátumú `szereplõ.példány` azonosító megengedi a `felhasználó` számára, hogy végrehajtsa a man:su[1] parancsot.
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
janos.root@EXAMPLE.COM
@@ -910,7 +910,7 @@ janos.root@EXAMPLE.COM
Ehhez hasonlóan, ha a felhasználó saját könyvtárában megtalálható egy ilyen állomány:
-[source,bash]
+[source,shell]
....
% cat ~/.klogin
janos@EXAMPLE.COM
@@ -921,7 +921,7 @@ Ezzel a konfigurációval bárki, aki `janos` felhasználóként vagy `jozsef` f
Például `janos` most egy másik Kerberost használó rendszerre jelentkezik be:
-[source,bash]
+[source,shell]
....
% kinit
MIT Project Athena (grunt.example.com)
@@ -936,7 +936,7 @@ FreeBSD BUILT-19950429 (GR386) #0: Sat Apr 29 17:50:09 SAT 1995
Vagy `jozsef` jelentkezik be ugyanazon a gépen `janos` hozzáférésével (a `janos` nevû felhasználónak a fentebb bemutatt [.filename]#.klogin# állomány található a könyvtárában és a Kerberos üzemeltetéséért felelõs személy létrehozott egy _jozsef_ nevû szereplõt egy null példánnyal):
-[source,bash]
+[source,shell]
....
% kinit
% rlogin grunt -l janos
@@ -1048,7 +1048,7 @@ Végül, még mindig a `kadmin` parancssorát használva, az `add` paranccsal ho
Példa egy adatbázis létrehozására:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -1067,7 +1067,7 @@ Verifying password - Password: xxxxxxxx
Most már ideje elindítani a KDC szolgáltatásait. Ezeket az `/etc/rc.d/kerberos start` és `/etc/rc.d/kadmind start` parancsok kiadásával tudjuk felhozni. Megjegyezzük, hogy most még semmilyen kerberizált démont nem kell elindítanunk. Ellenben igyekezzünk ellenõrizni a KDC mûködõképességét azzal, hogy KDC parancssorából kérünk egy jegyet a frissen hozzáadott szereplõnknek (felhasználónknak) és kilistázzuk:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -1082,7 +1082,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
Miután végeztünk, nyugodtan törölhetjük a jegyet:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -1099,7 +1099,7 @@ Vegyük észre, hogy már kaptunk egy jegyet és ezzel a jeggyel jogosultaknak k
Miután telepítettük az [.filename]#/etc/krb5.conf# állományt, a Kerberos szerverrõl el tudjuk érni a `kadmin` felületét. Az `add --random-key` paranccsal most már hozzáadhatjuk a szerver befogadó szereplõjét és az `ext` paranccsal ki tudjuk vonni a szerver befogadó szereplõjét a saját keytab állományából. Például:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -1114,7 +1114,7 @@ Itt jegyeznénk meg, hogy az `ext` parancs (az "extract" rövdítése) a kivont
Ha a kulcselosztón nem fut a `kadmind` szolgáltatás (valószínûleg biztonsági okokból) és ezért távolról nem tudjuk elérni a `kadmin` felületét, akkor így tudjuk közvetlenül hozzáadni a befogadó szereplõt (`host/myserver.EXAMPLE.ORG`), majd kivonatolni azt egy ideiglenes állományba (elkerülve az [.filename]#/etc/krb5.keytab# felülírását):
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -1152,7 +1152,7 @@ Elõfordulhat azonban, hogy valaki olyan szeretné elérni egy helyi felhasznál
A probléma megoldásához a felhasználók könyvtárában található [.filename]#.k5login# és a [.filename]#.k5users# állományok használhatóak a [.filename]#.host# és [.filename]#.rhosts# állományok kombinációjához hasonlóan. Például a [.filename]#.k5login# így néz ki:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -1261,7 +1261,7 @@ Az OpenSSL-t leginkább a szoftverek tanúsítványainak elkészítéséhez hasz
A tanúsítványok létrehozására a következõ parancs áll rendelkezésre:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -1292,7 +1292,7 @@ An optional company name []:egy másik szervezet neve
Az adatok bekérésére elõtt megjelenõ figyelmeztetõ üzenet fordítása:
-[source,bash]
+[source,shell]
....
Itt a tanúsítvány igénylésével kapcsolatos információkat kell
megadnunk. Itt egy ún. "ismertetőnevet" (Distinguished
@@ -1307,21 +1307,21 @@ Az elõbbi parancs kiadása után két állománynak kell létrejönnie az aktu
Amikor a hitelesítõ szerv aláírása nem feltétlenül szükséges, akkor készíthetünk egy saját magunk által aláírt tanúsítványt is. Ehhez elõször is generálnunk kell egy RSA-kulcsot:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out saját_RSA.kulcs 1024
....
Most pedig készítsünk el a hitelesítõ szerv kulcsát is:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out hitelesítõ.kulcs saját_RSA.kulcs
....
Ezzel a kulccsal most gyártsunk le egy tanúsítványt:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key hitelesítõ.kulcs -out új.tanúsítvány
....
@@ -1355,7 +1355,7 @@ Ha minden jól ment, akkor a [.filename]#/var/log/maillog# állományban nem tal
A man:telnet[1] segédprogrammal így probálhatjuk ki a levelezõ szervert:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1403,7 +1403,7 @@ Az IPsec akár közvetlenül is használható két számítógép forgalmának t
A rendszermag IPsec támogatásának aktiválásához a következõ paramétereket kell beletennünk a konfigurációs állományba:
-[source,bash]
+[source,shell]
....
options IPSEC # IP biztonság
device crypto
@@ -1411,7 +1411,7 @@ device crypto
Ha szükségünk van a IPsec nyomkövetésére, a következõ beállítást is hozzátehetjük:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG # az IP biztonság nyomkövetése
....
@@ -1436,17 +1436,17 @@ Kezdésképpen a Portgyûjteménybõl telepítenünk kell a package:security/ips
A következõ lépésben létre kell hoznunk két man:gif[4] típusú pszeudoeszközt, melyeken keresztül a két hálózat között egy tunnel segítségével ki tudjuk építeni a szükséges kapcsolatot. Ehhez `root` felhasználóként futtassuk a következõ parancsokat (a _belsõ_ és _külsõ_ megnevezésû paramétereket cseréljük ki a valós belsõ és külsõ átjárók címeire):
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 belsõ1 belsõ2
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 tunnel külsõ1 külsõ2
....
@@ -1500,22 +1500,22 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
Az elvárásainknak megfelelõen tehát a privát címeken mind a két oldalnak képesnek kell lennie ICMP csomagokat küldenie és fogadnia. A következõ lépésben meg kell mondanunk az átjáróknak hogyan irányítsák a csomagokat a két hálózat közti forgalom megfelelõ áramlásához. Ezt az alábbi paranccsal elérhetjük el:
-[source,bash]
+[source,shell]
....
# vallalati-halo# route add 10.0.0.0 10.0.0.5 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# vallalati-halo# route add net 10.0.0.0: gateway 10.0.0.5
....
-[source,bash]
+[source,shell]
....
# otthoni-halo# route add 10.246.38.0 10.246.38.1 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# otthoni-halo# route add host 10.246.38.0: gateway 10.246.38.1
....
@@ -1628,7 +1628,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Ahogy ezzel megvagyunk, a racoon az egyes átjárókon a következõ paranccsal indítható el:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1653,7 +1653,7 @@ Foreground mode.
A tunnel megfelelõ mûködését úgy tudjuk ellenõrizni, ha átváltunk egy másik konzolra és a man:tcpdump[1] program segítségével figyeljük a hálózati forgalmat. A példában szereplõ `em0` interfészt természetesen ne felejtsük el kicserélni a megfelelõ eszköz nevére.
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1723,7 +1723,7 @@ A hétköznapi esetben, vagyis amikor a man:telnet[1] vagy man:rlogin[1] alkalma
Az sshd a FreeBSD telepítésekor jelentkezõ `Standard` lehetõségek egyike. Az sshd engedélyezését úgy tudjuk kideríteni, ha az [.filename]#rc.conf# állományban megkeressük a következõ sort:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1739,7 +1739,7 @@ Ez tölti be a rendszer indításakor az man:sshd[8]-t, az OpenSSH démonát. Va
Az man:ssh[1] segédprogram az man:rlogin[1] programhoz hasonlóan mûködik.
-[source,bash]
+[source,shell]
....
# ssh felhasználó@gép.hu
Host key not found from the list of known hosts. Are you sure you
@@ -1751,7 +1751,7 @@ felhasználó@gép.hu's password:
Az üzenetek fordítása:
-[source,bash]
+[source,shell]
....
Nem találtam meg a gépet az ismert gépek között. Biztosan csatlakozni
akarunk hozzá (igen/nem)? igen A 'gép.hu'
@@ -1767,7 +1767,7 @@ Alapértelmezés szerint az OpenSSH szerverek csak SSH v2 kapcsolatokat fogadnak
Az man:scp[1] parancs az man:rcp[1] parancshoz hasonlóan mûködik: egyik géprõl másol a másikra, biztonságosan.
-[source,bash]
+[source,shell]
....
# scp felhasználó@gép.hu:/COPYRIGHT COPYRIGHT
felhasználó@gép.hu's password: *******
@@ -1793,7 +1793,7 @@ Emellett az [.filename]#rc.conf# állományban megadható `sshd_program` (ez ala
Jelszavak helyett az man:ssh-keygen[1] programmal a felhasználók azonosítására DSA- vagy RSA-kulcsokat tudunk készíteni:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1829,7 +1829,7 @@ A hitelesítést az man:ssh-agent[1] program kezeli a betöltött privát kulcso
Az man:ssh-agent[1] programot úgy tudjuk egy parancsértelmezõben használni, hogy elõször is elindítjuk vele az adott parancsértelmezõt. Ezután az man:ssh-add[1] lefuttatásával hozzá kell adnunk egy identitást, annak jelmondatának megadásával. Miután ezeket megtettük, a felhasználó bármelyik olyan távoli gépre be tud jelentkezni, ahol a publikus kulcsát ismerik. Például:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1854,7 +1854,7 @@ Az OpenSSH-val létre tudunk hozni egy tunnelt, amellyel egy másik protokoll ad
Az alábbi parancs arra utasítja az man:ssh[1] programot, hogy hozzon létre egy tunnelt a telnet használatához:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 felhasználó@izé.mizé.hu
%
@@ -1887,7 +1887,7 @@ Ezen a módon tetszõleges nem biztonságos TCP protokollt, például SMTP-t, PO
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 felhasználó@levelező.szerver.hu
felhasználó@levelező.szerver.hu's password: *****
@@ -1907,7 +1907,7 @@ Az man:ssh-keygen[1] és további felhasználói hozzáférések alkalmazásáva
Tegyük fel, hogy a munkahelyünkön van egy SSH szerver, amire kívülrõl lehet csatlakozni, illetve vele egy hálózatban van egy POP3 levelezõ szerver is. A munkahelyünk és az otthonunk között levõ hálózati útvonalat részben vagy teljesen nem tartjuk megbízhatónak. Ezért az e-mailjeinket valamilyen biztonságos módon szeretnénk elérni. Ezt úgy tudjuk megvalósítani, ha otthonról csatlakozunk a munkahelyen levõ SSH szerverre és ezen keresztül érjük a levelezõ szervert.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:levél.gép.hu:110 felhasználó@ssh-szerver.gép.hu
felhasználó@ssh-szerver.gép.hu's password: ******
@@ -1923,7 +1923,7 @@ Mi viszont szeretnénk más (nem egészen a munkánkkal kapcsolatos) szolgáltat
Ezt a problémát úgy oldhatjuk meg, ha felépítünk egy SSH kapcsolatot a hálózatunk tûzfalán kívül levõ számítógéppel és segítségével átbújunk az Ogg Vorbis szerverhez.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:zene.gép.hu:8000 felhasználó@tűzfalazatlan-rendszer.gép.org
felhasználó@tűzfalazatlan-rendszer.gép.org's password: *******
@@ -1961,7 +1961,7 @@ Ilyenkor ne felejtsük el megadni az összes bejelentkezésre (valamilyen formá
Miután elvégeztük a szükséges változtatásokat az [.filename]#/etc/ssh/sshd_config# állományban, utasítsuk az man:sshd[8] démont a konfigurációs állományok újraolvasására:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -2022,7 +2022,7 @@ Láthatjuk, hogy a [.filename]#könyvtár1#, [.filename]#könyvtár2# és [.file
Az állományrendszerben található ACL engedélyeket a man:getfacl[1] segédprogrammal nézhetjük meg. Például a [.filename]#próba# állomány ACL engedélyeit a következõ paranccsal tudjuk megnézni:
-[source,bash]
+[source,shell]
....
% getfacl próba
#file:próba
@@ -2035,14 +2035,14 @@ Az állományrendszerben található ACL engedélyeket a man:getfacl[1] segédpr
Egy állomány ACL engedélyeit a man:setfacl[1] segédprogrammal tudjuk megváltoztatni. Figyeljük meg:
-[source,bash]
+[source,shell]
....
% setfacl -k próba
....
A `-k` opció törli az összes ACL alapú engedélyt egy állományról vagy állományrendszerrõl. Ennél viszont sokkal hasznosabb a `-b` opció használata, mivel az meghagyja az ACL mûködéséhez szükséges alapvetõ mezõket.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- próba
....
@@ -2060,7 +2060,7 @@ A package:ports-mgmt/portaudit[] port egy adatbázist használ, ahol a FreeBSD b
A Portaudit használatának megkezdéséhez telepítsük a Portgyûjteménybõl:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -2069,7 +2069,7 @@ A telepítési folyamat során a man:periodic[8] konfigurációs állományai is
A telepítés után a rendszergazda a következõ paranccsal tudja frissíteni a saját adatbázispéldányát és megnézni a pillanatnyilag telepített csomagok ismert sebezhetõségeit:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -2081,7 +2081,7 @@ Ez az adatbázis a man:periodic[8] minden egy futásakor magától frissül, ez
A Portgyûjteménybõl telepített külsõ alkalmazások megbízhatóságának ellenõrzését az alábbi parancs kiadásával bármikor elvégezhetjük:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -2211,7 +2211,7 @@ Ennek a módszernek egyaránt megvannak a maga elõnyei és hátrányai. Az egyi
A futó programok nyilvántartását elõször engedélyeznünk kell. Ehhez a következõ parancsokat kell kiadnunk:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -2224,7 +2224,7 @@ Miután aktiváltuk, a nyilvántartást elkezdi számbavenni a processzor kihasz
A kiadott parancsokról a man:lastcomm[1] programmal tudunk tájékozódni. A `lastcomm` segítségével ki tudjuk íratni a felhasználók adott terminálon kiadott parancsait is, mint például:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/hu/books/handbook/serialcomms/_index.adoc b/documentation/content/hu/books/handbook/serialcomms/_index.adoc
index 24578ca812..cb68044a69 100644
--- a/documentation/content/hu/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/hu/books/handbook/serialcomms/_index.adoc
@@ -341,7 +341,7 @@ Ha ellenõrizni akarjuk, hogy a rendszermag rendben megtalálta a soros portokat
Az alábbi paranccsal tudjuk leszûrni a `sio` szövegrészt tartalmazó sorokat:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -350,7 +350,7 @@ Az alábbi paranccsal tudjuk leszûrni a `sio` szövegrészt tartalmazó sorokat
Például, ha négy soros port található a rendszerünkben, akkor a rájuk vonatkozó rendszerüzenetek a következõk lesznek:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -380,14 +380,14 @@ A rendszermagban található legtöbb eszköz az ún. "speciális eszközállom
A [.filename]#ttydN# (vagy [.filename]#cuadN#) lesz az az eszköz, amit majd az alkalmazásainkból el akarunk érni. Amikor egy futó program megnyit egy ilyen eszközt, mindig tartoznak hozzá alapértelmezett terminál I/O beállítások. Ezeket a következõ paranccsal tudjuk lekérdezni:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
Ha megváltoztatjuk az eszköz beállításait, akkor azok egészen addig érvényben is maradnak, amíg le nem zárjuk. Ha tehát ezután újra megnyitjuk, akkor minden visszaáll az alapértelmezett állapotra. Az alapértelmezett beállítások megváltoztatásához a "kezdeti állapotot" szimbolizáló eszközt kell megnyitnunk és átállítanunk. Például, ha alapból engedélyezni akarjuk a `CLOCAL` módot, a 8 bites kommunikációt és a `XON/XOFF` típusú forgalomirányítást a [.filename]#ttyd5# eszközön, akkor a következõt gépeljük be:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.init clocal cs8 ixon ixoff
....
@@ -396,7 +396,7 @@ A soros eszközök rendszerszintû inicializálását az [.filename]#/etc/rc.d/s
Ha bizonyos beállítások megváltoztatását tiltani szeretnénk az alkalmazások felé, akkor azt a "zárolt állapotot" tartalmazó eszközben kell rögzítenünk. Például, ha a [.filename]#ttyd5# eszköz sebességét fixen 57600 bps-ra akarjuk beállítani, akkor írjuk be ezt:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.lock 57600
....
@@ -447,7 +447,7 @@ Az alap FreeBSD rendszerben legalább két segédprogram használható a soros v
Egy FreeBSD rendszerû kliensrõl így tudunk csatlakozni egy másik rendszerre:
-[source,bash]
+[source,shell]
....
# cu -l soros-vonali-eszköz
....
@@ -530,7 +530,7 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
Miután az [.filename]#/etc/ttys# állományban elvégeztük a megfelelõ módosításokat, a konfigurációs állomány újraolvasásához küldjünk egy SIGHUP (bontás) jelzést az `init` programnak. Mint például:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -557,14 +557,14 @@ Nézzük meg, hogy a terminál és a FreeBSD is ugyanazon az adatátviteli sebes
Gyõzõdjünk meg róla, hogy a `getty` valóban fut és rendesen kiszolgálja a terminált. Például a `ps` paranccsal listázzuk ki az összes jelenleg futó programot és keressük meg köztük a `getty` programot:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Ekkor látnunk kell a terminálhoz tartozó bejegyzést. Például, ha a `getty` második soros portot jelképezõ [.filename]#ttyd1# eszközön fut, és az [.filename]#/etc/gettytab# állományból az `std.38400` nevû bejegyzést használja, akkor ez jelenik meg:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyd1
....
@@ -639,7 +639,7 @@ A FreeBSD ismeri az NS8250-, NS16450-, NS16550- és NS16550A alapú EIA RS-232C
Ahogy arról már a terminálok esetében szó esett, az `init` az összes betárcsázós kapcsolathoz tartozó soros porthoz elindít egy `getty` programot. Például, ha a modemet a [.filename]#/dev/ttyd0# eszközre kapcsoltuk, akkor a `ps ax` parancs kimenetében ezt láthatjuk:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyd0
....
@@ -745,7 +745,7 @@ Az alapértelmezett termináltípus (vagyis a fenti példában a `dialup`) a hel
Miután az [.filename]#/etc/ttys# állományban elvégeztük a szükséges módosításokat, egy HUP jelzéssel figyelmeztessük az `init` programot az újbóli beolvasására. Ehhez a következõ parancs ajánlott:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -858,7 +858,7 @@ Csatlakoztassuk a modemet a FreeBSD rendszerre, indítsuk be a gépet, majd ezut
Amikor viszont a DTR lámpa nem világít, a konzolon keresztül jelentkezzünk be a FreeBSD rendszerbe és adjuk ki egy `ps ax` parancsot, amivel így ellenõrizni tudjuk, hogy a porthoz tartozó `getty` elindult. A futó programok között tehát valami ilyesmit kell majd látnunk:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd1
@@ -866,7 +866,7 @@ Amikor viszont a DTR lámpa nem világít, a konzolon keresztül jelentkezzünk
Ha viszont például ezt látjuk:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyd0
....
@@ -921,7 +921,7 @@ A `br` tulajdonságnál a modem által ismert legnagyobb adatátviteli sebesség
Vagy `root` felhasználóként a `cu` parancsot is használhatjuk:
-[source,bash]
+[source,shell]
....
# cu -lvonal -ssebesség
....
@@ -953,7 +953,7 @@ tip57600|Dial any phone number at 57600 bps:\
Ezután már ilyet is tudni fogunk:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -968,7 +968,7 @@ cu115200|Use cu to dial any number at 115200bps:\
Majd gépeljük be ezt:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1091,7 +1091,7 @@ Ebben a szakaszban azt feltételezzük, hogy az alap beállításokkal dolgozunk
. Csatlakoztassunk egy soros kábelt a [.filename]#COM1# portra és a terminálra.
. Rendszeradminisztrátorként a következõ parancs kell kiadnunk ahhoz, hogy a soros konzolon láthassuk az összes rendszerindításhoz tartozó üzenetet:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1182,7 +1182,7 @@ A `-P` kivételével az összes opció a rendszertöltõnek ([.filename]#/boot/l
+
Amikor elindítjuk a FreeBSD-s gépünket, a rendszerindító blokk kiírja a [.filename]#/boot.config# tartalmát a konzolra. Például így:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1219,7 +1219,7 @@ Az iménti üzenetek felbukkanása után a további konzolos üzenetek küldés
+
A rendszerindítási folyamat félbeszakításához az kbd:[Enter] billentyûn kívül nyomjuk le valamelyik másikat. Ekkor a rendszerindító blokk megáll és várja a további parancsokat. Ekkor valami ilyesmit láthatunk:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1387,7 +1387,7 @@ A konzolra vonatkozó beállításokat a többi soros portnál ne adjuk meg.
+
. Fordítsuk újra és telepítsük a rendszerindító blokkot és a rendszertöltõt:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/hu/books/handbook/users/_index.adoc b/documentation/content/hu/books/handbook/users/_index.adoc
index 7e560030dc..7456c3c4f0 100644
--- a/documentation/content/hu/books/handbook/users/_index.adoc
+++ b/documentation/content/hu/books/handbook/users/_index.adoc
@@ -167,7 +167,7 @@ Az man:adduser[8] a felhasználók hozzáadására használható egyszerû progr
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jantyik
@@ -237,7 +237,7 @@ Alapértelmezés szerint interaktív módban mûködik, melynek során megprób
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jantyik
Matching password entry:
@@ -273,7 +273,7 @@ Ha nem adminisztrátorként hívjuk meg, akkor a rendszer kérni fogja a jelszav
[example]
====
-[source,bash]
+[source,shell]
....
# A jantyik nevű felhasználó adatainak módosítása.
Login: jantyik
@@ -300,7 +300,7 @@ Egy átlagos felhasználó a bemutatott adatoknak csak igen kis részét képes
[example]
====
-[source,bash]
+[source,shell]
....
# A jantyik nevű felhasználó adatainak megváltoztatása.
Shell: /usr/local/bin/zsh
@@ -332,7 +332,7 @@ A véletlen balesetek és az illetéktelen változtatások ellen védelmet nyúj
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jantyik.
@@ -349,7 +349,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jantyik
Changing local password for jantyik.
@@ -386,7 +386,7 @@ A bejelentkezési osztályokat az [.filename]#/etc/login.conf# állományban adh
====
A rendszer általában nem magát az [.filename]#/etc/login.conf# állományban található beállításokat olvassa be, hanem az [.filename]#/etc/login.conf.db# állományt, amiben gyorsabban lehet keresni. Az [.filename]#/etc/login.conf# állományból az [.filename]#/etc/login.conf.db# állományt az alábbi paranccsal tudjuk legyártani:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -451,7 +451,7 @@ Ha nem akarjuk magunk szerkeszteni az [.filename]#/etc/group# állományt, haszn
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd pg_csoport
# pw groupshow pg_csoport
@@ -466,7 +466,7 @@ A fent szereplõ `1100`-as érték a `pg_csoport` csoportazonosítója. Ebben a
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod pg_csoport -M jantyik
# pw groupshow pg_csoport
@@ -481,7 +481,7 @@ Az `-M` kapcsoló paramétere a csoportba sorolandó felhasználók neveinek ves
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod pg_csoport -m kisati
# pw groupshow pg_csoport
@@ -496,7 +496,7 @@ Az `-m` kapcsoló paramétere azon felhasználók vesszõvel tagolt listája, ak
[example]
====
-[source,bash]
+[source,shell]
....
% id jantyik
uid=1001(jantyik) gid=1001(jantyik) groups=1001(jantyik), 1100(pg_csoport)
diff --git a/documentation/content/hu/books/handbook/vinum/_index.adoc b/documentation/content/hu/books/handbook/vinum/_index.adoc
index 633acbd6db..6b0ae3f24a 100644
--- a/documentation/content/hu/books/handbook/vinum/_index.adoc
+++ b/documentation/content/hu/books/handbook/vinum/_index.adoc
@@ -438,7 +438,7 @@ A kötetek egyetlen kivétellel teljesen azonosak a lemezekkel a rendszer szám
Hétköznapi esetben a man:newfs[8] megpróbálja a lemez nevét értelmezni, és panaszkodik, ha nem sikerül. Például:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
newfs: /dev/gvinum/concat: can't figure out file system partition
@@ -446,7 +446,7 @@ newfs: /dev/gvinum/concat: can't figure out file system partition
A köteten a man:newfs[8] parancs kiadásával tudunk állományrendszert létrehozni:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
....
@@ -455,7 +455,7 @@ A köteten a man:newfs[8] parancs kiadásával tudunk állományrendszert létre
====
A FreeBSD 5.0 elõtt verzióiban a man:newfs[8] parancsnak a régi elnevezési séma használata mellett még át kell adni egy -v kapcsolót is:
-[source,bash]
+[source,shell]
....
# newfs -v /dev/vinum/concat
....
@@ -574,7 +574,7 @@ A rendszerindító kötet egyes eszközökön található `"a"` partícióit az
====
. A rendszerindító kötet részeként megjelenõ eszközön található allemez helyét (az eszköz elejétõl számított eltolását) és méretét ellenõrizni kell az alábbi parancs segítségével:
+
-[source,bash]
+[source,shell]
....
# gvinum l -rv root
....
@@ -582,7 +582,7 @@ A rendszerindító kötet egyes eszközökön található `"a"` partícióit az
Ne felejtsük el, hogy a Vinum az eltolásokat és méreteket byte-okban méri. Ezekbõl tehát úgy nyerünk a `bsdlabel` használatához szükséges blokkszámokat, ha ezeket elosztjuk 512-vel.
. Futassuk le a
+
-[source,bash]
+[source,shell]
....
# bsdlabel -e eszköznév
....
@@ -596,7 +596,7 @@ Ezt követõen az eszközön található Vinum-partíciót (amennyiben létezik)
Ezzel a módszerrel létesítettünk egy olyan új `"a"` partíciót, amely lefedi az eszközön található Vinum-partíciót. Jegyezzük meg, hogy a `bsdlabel` kizárolag csak abban az esetben fogja megengedi ezt az átfedést, ha a Vinum-partíciónk `"vinum"` típussal van megjelölve.
. Készen is vagyunk! Most már van minden eszközön egy hamisított `"a"` partíciónk, amelyeken megtalálható a rendszerindító kötet egy-egy másolata. Határozottan ajánlott még egyszer ellenõrizni a munkánkat az alábbi parancs kiadásával:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/eszköznéva
....
@@ -606,7 +606,7 @@ Figyeljünk arra, hogy az összes vezérlési információt tartalmazó állomá
A következõ indítás során a rendszertöltõ már az új Vinum-alapú rendszerindító állományrendszerrõl fogja összeszedni a mûködéséhez szükséges adatokat és ezeknek megfelelõen cselekedni. Végül, a rendszermag inicializálója után, mikor az összes eszközt felismerte, egy ehhez hasonló feltûnõ üzenet fogja jelezni a beállítás sikerességét:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/gvinum/root
....
@@ -615,7 +615,7 @@ Mounting root from ufs:/dev/gvinum/root
Miután sikeresen konfiguráltuk a rendszerindító Vinum-kötetet, a `gvinum l -rv root` kimenete nagyjából így fog kinézni:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -635,7 +635,7 @@ Itt (a [.filename]#/dev/da0h# partícióhoz képesti) `135680`-as eltoltás ért
Az említett eszközök valahogy így jelennek meg a `bsdlabel` szerint:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/hu/books/handbook/virtualization/_index.adoc b/documentation/content/hu/books/handbook/virtualization/_index.adoc
index 70ec5fb003..2198ba15ec 100644
--- a/documentation/content/hu/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/hu/books/handbook/virtualization/_index.adoc
@@ -319,7 +319,7 @@ A VirtualBox(TM) egy folyamatos fejlesztés alatt álló, komplett virtualizáci
A VirtualBox(TM) a package:emulators/virtualbox-ose[] könyvtárból érhetõ el portként, és onnan a következõ parancsokkal telepíthetõ:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -329,7 +329,7 @@ A beállítások közt az egyik leghasznosabb a `GuestAdditions` nevû programcs
A VirtualBox(TM) elsõ indítása elõtt el kell még végeznünk néhány további beállítást. Fontos tudnunk, hogy a port a telepítés során a [.filename]#/boot/modules# könyvtárba tesz még egy rendszermagmodult is, amelyet még külön be kell töltenünk:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -345,7 +345,7 @@ A VirtualBox(TM) 3.1.2 elõtti változatai ezenkívül még igénylik a [.filena
Ha viszont a port valamelyik korábbi változatát használjuk, akkor kövessük a lentebb szereplõ utasításokat és csatlakoztassuk a [.filename]#proc# állományrendszert:
-[source,bash]
+[source,shell]
....
# mount -t procfs proc /proc
....
@@ -361,7 +361,7 @@ proc /proc procfs rw 0 0
====
Nagyon valószínû, hogy [.filename]#proc# állományrendszerrel van gondunk, amikor a következõ hibaüzenetet kapjuk a VirtualBox(TM) indításakor:
-[source,bash]
+[source,shell]
....
VirtualBox: supR3HardenedExecDir: couldn't read "", errno=2 cchLink=-1
....
@@ -371,14 +371,14 @@ Ilyenkor a `mount` parancs kiadásával ellenõrizzük az állományrendszer sik
A VirtualBox(TM) telepítése során keletkezik még egy `vboxusers` nevû csoport. Ide azokat a felhasználókat vegyük fel, akik részére szeretnénk engedélyezni a VirtualBox(TM) használatát. A csoportba új tagokat például a `pw` paranccsal tudunk felvenni:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m felhasználónév
....
Ezek után a VirtualBox(TM) indításához válasszuk a grafikus környezetünk menüjében található [.guimenuitem]#Sun VirtualBox# menüpontot, vagy egy terminálban gépeljük be ezt a parancsot:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
diff --git a/documentation/content/hu/books/handbook/x11/_index.adoc b/documentation/content/hu/books/handbook/x11/_index.adoc
index 4a14dc7e60..db3a545b5e 100644
--- a/documentation/content/hu/books/handbook/x11/_index.adoc
+++ b/documentation/content/hu/books/handbook/x11/_index.adoc
@@ -145,7 +145,7 @@ Az X11 FreeBSD-n alapértelmezett implementációja az Xorg. Az Xorg az X.Org al
Az Xorg-ot a Portgyûjteménybõl így tudjuk lefordítani, majd telepíteni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -160,7 +160,7 @@ Az X11-et természetesen telepíthetjük közvetlenül csomagok segítségével
Az Xorg csomagjának letöltéséhez és telepítéséhez egyszerûen csak ennyit írjunk be:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -195,7 +195,7 @@ A grafikus kártya memóriájának mérete határozza meg a rendszer által kiha
Az Xorg 7.3-as változatában gyakran mindenféle konfigurációs állomány használata nélkül egyszerûen csak adjuk ki a következõ parancsot:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -219,7 +219,7 @@ A különbözõ munkakörnyezetek, mint például a GNOME, a KDE vagy éppen az
Az X11 beállítása egy többlépcsõs folyamat. Elsõ lépésünk egy alap konfigurációs állomány összeállítása lesz. Rendszeradminisztrátorként adjuk ki az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -228,14 +228,14 @@ Ennek segítségével az X11 [.filename]#xorg.conf.new# néven létrehozza a kon
A következõ lépésünk legyen az imént létrehozott beállítás kipróbálása, amin keresztül ellenõrizhetjük, hogy az Xorg tényleg képes mûködni a célrendszer grafikus eszközén. Az Xorg 7.3 és azt megelõzõ változataiban ezt így tehetjük meg:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
A Xorg 7.4 és késõbbi változataiban a próba eredménye egy fekete képernyõ lesz, amely meglehetõsen megnehezítheti az X11 helyes mûködésének megállapítását. A `-retro` kapcsoló használatával azonban továbbra is elérhetjük a korábbi verziókban megszokott viselkedési módot:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -246,7 +246,7 @@ Ha ezután a képernyõn egy fekete-fehér rácsot látunk egy X alakú egérmut
====
Az Xorg korábbi változataiban a 7.3 verzióig bezárólag a kbd:[Ctrl+Alt+Backspace] billentyûkombinációval tudjuk leállítani a mûködését. Amennyiben erre továbbra is szükségünk lenne, a 7.4 és késõbbi változatokban ezt úgy tudjuk engedélyezni, ha a begépeljük a következõ parancsot egy X terminálablakban:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -309,7 +309,7 @@ Indítsuk újra a számítógépet, hogy a hald beolvassa az állományt.
Ugyanezt egy X terminálból is kényelmesen el tudjuk végezni:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -368,7 +368,7 @@ A hibakeresés során maguk az X11 naplóállományai is hasznos eszköznek bizo
Ha minden a legnagyobb rendben haladt eddig, a konfigurációs állományt el kell tennünk egy olyan központi helyre, ahol az man:Xorg[1] képes lesz majd megtalálni. Ez a hely általában az [.filename]#/etc/X11/xorg.conf# vagy a [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -457,7 +457,7 @@ Az X11-hez tartozó alap betûtípusok nem mondhatóak kifejezetten ideálisnak
A Portgyûjteménybõl az imént említett Type1 betûtípusokat az alábbi parancsok segítségével telepíthetjük:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -472,7 +472,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
Vagy megtehetjük mindezt az X futtatása során is:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -492,7 +492,7 @@ Load "freetype"
Most pedig hozzunk létre egy könyvtárat a TrueType(R) betûtípusok számára (ez legyen például a [.filename]#/usr/local/lib/X11/fonts/TrueType#), majd másoljuk az összes TrueType(R) betûtípusunkat ide. Vigyázzunk rá, hogy Macintosh(R)-ról TrueType(R) betûtípusok közvetlenül nem hozhatóak át, az X11 számára UNIX(R)/MS-DOS(R)/Windows(R) formátumban kell lenniük. Miután sikerült átmásolnunk az állományokat ebbe a könyvtárba, használjuk a ttmkfdir parancsot a [.filename]#fonts.dir# állomány létrehozására, aminek révén az X betûrenderelõje tudni fogja, hogy új állományokat telepítettünk. A ``ttmkfdir``package:x11-fonts/ttmkfdir[] néven elérhetõ a FreeBSD Portgyûjteményébõl.
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -500,7 +500,7 @@ Most pedig hozzunk létre egy könyvtárat a TrueType(R) betûtípusok számára
Ezután adjuk hozzá a TrueType(R) könyvtárat a betûtípusok könyvtáraihoz. Itt is a <<type1,Type1>> betûtípusoknál leírtak szerint kell eljárnunk, vagyis használjunk a
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -536,7 +536,7 @@ Ahogy azt már korábban is említettük, a [.filename]#/usr/local/lib/X11/fonts
Az új betûtípusok, de legfõképpen az új betûtípusokat tartalmazó könyvtárak hozzáadása után a betûkkel kapcsolatos gyorsítótárak frissítéséhez mindenképpen javasolt lefuttatni az alábbi parancsot:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -650,7 +650,7 @@ Az XDM tulajdonképpen a felhasználó számára ugyanazokat a funkciókat nyúj
A XDM használatához elõször telepítenünk kell rendszerünkre a package:x11/xdm[] portot (mivel az Xorg újabb változatai ezt alapértelmezés szerint már nem telepítik). Ezt követõen az XDM démon a [.filename]#/usr/local/bin/xdm# helyen található meg. A programot `root` felhasználóként bármikor tudjuk futtatni, és ez veszi kezelésbe a helyi gépen futó X szervert. Amennyiben az XDM-et a számítógép minden egyes indulása során el akarjuk indítani, egyszerûen csak adjuk hozzá a megfelelõ bejegyzést az [.filename]#/etc/ttys# állományhoz. Ennek a formai szabályairól és használatáról bõvebben lásd crossref:serialcomms[term-etcttys,Egy bejegyzés felvétele az /etc/ttys állományba]. Az [.filename]#/etc/ttys# alapértelmezett változatában az XDM démont ebben a formában találjuk meg a virtuális terminálok között:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -728,7 +728,7 @@ Ebben található meg az XDM által futtatni próbált X szerverek kimenete. Itt
Az X szerverünkhöz csak akkor tudnak kívülrõl más felhasználók is kapcsolódni, ha átírjuk a hozzáférésre vonatkozó szabályokat és engedélyezzük rajta a kapcsolódást. Az alapértelmezett szabályok nagyon óvatosak. Ha tehát engedélyezni akarjuk a kívülrõl érkezõ kapcsolódásokat, akkor ahhoz elõször az [.filename]#xdm-config# állományból vegyük ki az alábbi sort:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -761,14 +761,14 @@ A programot könnyen fel tudjuk telepíteni csomagból vagy a Portgyûjtemény s
A hálózatról a GNOME csomagját mindössze ennek a sornak a beírásával fel tudjuk telepíteni:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
A portfa felhasználásával pedig a GNOME-ot így tudjuk forrásból telepíteni:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -782,7 +782,7 @@ Ha a GDM mellett az összes GNOME szolgáltatást is el akarjuk indítani, vegy
A GNOME-ot parancssorból is elindíthatjuk, ha hozzá megfelelõen beállítjuk az [.filename]#.xinitrc# nevû állományt. Ha már van egy saját [.filename]#.xinitrc# állományunk, akkor nincs más teendõnk, mint átírni az aktuális ablakkezelõnket hívó sort a /usr/local/bin/gnome-session sorra. Ha nem csináltunk elõtte semmilyen különleges dolgot az említett konfigurációs állománnyal, akkor elegendõ csak ennyit beírnunk:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -794,7 +794,7 @@ Ezt követõen írjuk be a `startx` parancsot, és a GNOME munkakörnyezete fog
Ha az XDM-hoz hasonló régebbi bejelentkeztetõ képernyõt használunk, ez a módszer nem fog mûködni. Helyette hozzunk létre egy [.filename]#.xsession# nevû futtatható állományt, amely ezt a parancsot tartalmazza. Ehhez nyissuk meg és cseréljük ki benne a korábbi ablakkezelõnk hívását a /usr/local/bin/gnome-session utasításra:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -831,14 +831,14 @@ Ahogy a GNOME és a többi más munkakörnyezet esetében is, maga a program kö
A KDE3 csomagját hálózaton keresztül így tudjuk telepíteni:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
A KDE4 csomagját pedig hálózaton keresztül így tudjuk telepíteni:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -847,7 +847,7 @@ A man:pkg_add[1] magától letölti az alkalmazás legfrissebb verzióját.
Ha a KDE3 környezetet forrásból akarjuk telepíteni, használjuk a portfát:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -855,7 +855,7 @@ Ha a KDE3 környezetet forrásból akarjuk telepíteni, használjuk a portfát:
Ha viszont a KDE4 környezetet akarjuk inkább a portfa felhasználásával forrásból telepíteni, akkor ezeket a parancsokat adjuk ki:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -865,14 +865,14 @@ Miután a KDE-t sikeresen telepítettük, tudatnunk kell az X szerverrel, hogy a
KDE3 esetén:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
KDE4 esetén:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -932,14 +932,14 @@ Az Xfce-rõl részletesebben az http://www.xfce.org/[Xfce honlapján] olvashatun
Az Xfce-hez tartozik bináris csomag (legalábbis az leírás készítésének pillanatában). Ezt a következõ módon tudjuk telepíteni:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Vagy a Portgyûjtemény használatával forrásból is felrakhatjuk:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -947,7 +947,7 @@ Vagy a Portgyûjtemény használatával forrásból is felrakhatjuk:
Ezután világosítsuk fel az X szervert, hogy a következõ indulása során mi már az Xfce-t kívánjuk használni. Ehhez csak ennyit kell tennünk:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/it/books/handbook/audit/_index.adoc b/documentation/content/it/books/handbook/audit/_index.adoc
index 25145a0b3d..d6ba3013dd 100644
--- a/documentation/content/it/books/handbook/audit/_index.adoc
+++ b/documentation/content/it/books/handbook/audit/_index.adoc
@@ -224,7 +224,7 @@ Le tracce di audit sono conservate nel formato binario BSM, così devono essere
Per esempio, l'utility `praudit` farà il dump dell'intero contenuto di uno specifico file di log di audit in semplice formato testuale:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -252,7 +252,7 @@ In FreeBSD 6.3 e successive, `praudit` supporta anche il formato di output XML,
Dato che i log dell'audit possono essere molto grandi, un amministratore probabilmente vorrà selezionarne solo un sottoinsieme utile, ad esempio i record associati con un utente specifico:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -267,7 +267,7 @@ I membri del gruppo `audit` hanno il permesso di leggere tracce di audit in [.fi
Le pipe di audit sono degli pseudo-device clonanti nel file system dei device che permettono alle applicazioni di intercettare lo stream dei record di audit in tempo reale. Questo è di primario interesse per i creatori di applicativi di intrusion detection e di monitoraggio di sistemi. In ogni caso, per l'amministratore il device della pipe dell'audit è un modo conveniente per permettere il monitaraggio dal vivo senza incontrare problemi con i permessi della traccia audit o la rotazione dei log che interrompono lo stream degli eventi. Per tracciare lo stream degli eventi dell'audit, usa la seguente linea di comando:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -291,7 +291,7 @@ Leggi man:devfs.rules[5] per altre informazioni su come configurare il filesyste
Le tracce di audit sono scritte solo dal kernel, e gestite solo dal demone dell'audit, auditd. Gli amministratori non dovrebbero cercare di usare man:newsyslog.conf[5] o altri tool per ruotare direttamente i log di audit. Invece, il tool di gestione `audit` può essere usato per interrompere l'audit, riconfigurare il sistema di audit, ed eseguire la rotazione dei log. Il seguente comando fa sì che il demone audit crei un nuovo log di audit e segnali al kernel di usare il nuovo log. I vecchio log sarà terminato e rinominato, ed a questo punto potrà essere manipolato dall'amministratore.
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/it/books/handbook/basics/_index.adoc b/documentation/content/it/books/handbook/basics/_index.adoc
index b5460101f2..03c0cca504 100644
--- a/documentation/content/it/books/handbook/basics/_index.adoc
+++ b/documentation/content/it/books/handbook/basics/_index.adoc
@@ -73,7 +73,7 @@ FreeBSD può essere usato in vari modi. Uno di questi è quello di digitare i co
Se non hai configurato FreeBSD in modo tale da avviare in modo automatico l'ambiente grafico durante l'avvio, il sistema ti fornirà un prompt di login dopo la fase di avvio, esattamente dopo che gli script di avvio sono stati eseguiti. Dovresti vedere qualcosa simile a questo:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -113,14 +113,14 @@ Ogni sistema multi-utente necessita di qualche metodo che distingua un "utente"
Appena dopo la fase di avvio di FreeBSD e quando gli script di avvio sono stati eseguiti, ti viene presentato un prompt dove inserire un valido username:
-[source,bash]
+[source,shell]
....
login:
....
Giusto per questo esempio, assumiamo che il tuo username sia `john`. Al prompt digita `john` e premi kbd:[Invio]. Ti verrà presentato un prompt dove inserire la "password":
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -202,14 +202,14 @@ options SC_PIXEL_MODE
Quando il kernel è stato ricompilato con queste due opzioni, puoi determinare quali modalità video sono supportate dal tuo hardware usando l'utility man:vidcontrol[1]. Per ottenere una lista delle modalità video supportate, digita il seguente comando:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
L'output di questo comando è una lista delle modalità video che sono supportate dal tuo hardware. Puoi usare una nuova modalità video indicandola a man:vidcontrol[1] in una console `root`:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -270,7 +270,7 @@ Poichè il sistema è in grado di supportare più utenti, tutto ciò che il sist
Puoi usare l'opzione `-l` del comando man:ls[1] per visualizzare un lungo listato della directory che include una colonna contenente le informazioni sui permessi del file per il proprietario, per il gruppo, e per gli altri. Per esempio, digitando `ls -l` in una arbitraria directory:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -282,7 +282,7 @@ total 530
Ecco come è suddivisa la prima colonna dell'output del comando `ls -l`:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -359,14 +359,14 @@ I permessi simbolici, qualche volta chiamati espressioni simboliche, usano carat
Questi valori sono usati con il comando man:chmod[1] come esposto in precedenza, ma con le lettere. Per esempio, puoi usare il seguente comando per impedire agli altri utenti l'accesso a _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Se si ha la necessità di realizzare più di una modifica ai settaggi di un file si può usare una lista di settaggi separati da virgola. Per esempio il seguente comando rimuoverà il permesso di scrittura su _FILE_ al gruppo di appartenenza del file e al resto del "mondo", e inoltre aggiungerà il permesso di esecuzione per tutti:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -379,21 +379,21 @@ Queste flag dei file aggiungono un ulteriore livello di controllo sui file, assi
Le flag dei file sono alterate usando l'utility man:chflags[1], tramite una semplice sintassi. Per esempio, per abilitare la flag di sistema di non-cancellabilità sul file [.filename]#file1#, si può usare il comando seguente:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
E per disabilitare la stessa flag, si può usare semplicemente il comando precedente con "no" davanti a `sunlink`. Ecco come:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Per vedere le flag del file di esempio, usa il comando man:ls[1] con le flag `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -733,7 +733,7 @@ Il comando man:mount[8] è ciò che in definitiva viene usato per montare i file
La sua forma di utilizzo elementare è:
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -795,7 +795,7 @@ Due comandi sono particolarmente utili per monitorare i processi sul sistema, ma
Di default, `ps` mostra solo i tuoi comandi che sono in quel momento in esecuzione. Per esempio:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -823,7 +823,7 @@ Il comando man:ps[1] supporta varie opzioni per cambiare le informazioni da visu
L'output di man:top[1] è simile. Un esempio di esecuzione assomiglia a questo:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -880,7 +880,7 @@ Questo esempio mostra come inviare un segnale a man:inetd[8]. Il file di configu
. Cerca il process ID del processo a cui vuoi mandare il segnale. Puoi utilizzare man:ps[1] e man:grep[1] per farlo. Il comando man:grep[1] viene utilizzato per perlustrare attraverso l'output, cercando la stringa da te specificata. Questo comando viene eseguito in modalità utente, e man:inetd[8] viene eseguito in modalità `root`, quindi le opzioni da dare a man:ps[1] sono `ax`.
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -889,7 +889,7 @@ Questo esempio mostra come inviare un segnale a man:inetd[8]. Il file di configu
Come puoi vedere il PID di man:inetd[8] è 198. In alcuni casi potrebbe apparire nel risultato anche il comando `grep inetd`. Questo dipende dal modo utilizzato da man:ps[1] nell'elencare la lista dei processi in esecuzione.
. Usa il comando man:kill[1] per inviare il segnale. Poichè man:inetd[8] viene eseguito in modalità `root` prima devi usare il comando man:su[1] per diventare `root`.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -969,14 +969,14 @@ Un altro aspetto di una shell è l'uso delle variabili d'ambiente. Le variabili
Il modo di settare una variabile d'ambiente varia leggermente a seconda della shell utilizzata. Per esempio, nelle shell C-Style come `tcsh` e `csh`, puoi usare `setenv` per settare le variabili d'ambiente. Sotto le shell Bourne come `sh` e `bash`, puoi usare `export` per settare le tue variabili d'ambiente correnti. Per esempio, per settare o modificare la variabile d'ambiente `EDITOR` a [.filename]#/usr/local/bin/emacs#, sotto `csh` o `tcsh` si può utilizzare il comando:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Sotto le shell Bourne:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -994,7 +994,7 @@ Il modo più semplice per cambiare la propria shell è quello di usare il comand
Puoi anche eseguire `chsh` con l'opzione `-s`; in questo modo verrà settata la shell in modo diretto, senza che sia necessario invocare l'editor. Per esempio, se vuoi cambiare la tua shell in `bash`, potresti digitare il seguente comando:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1005,7 +1005,7 @@ La shell che desideri utilizzare _deve_ essere presente nel file [.filename]#/et
Per esempio, se installi `bash` a mano e la metti sotto [.filename]#/usr/local/bin#, dovresti fare questo:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1080,14 +1080,14 @@ Il formato ELF è più espressivo di quello [.filename]#a.out# e permette una ma
La documentazione più esauriente su FreeBSD è costituita dalle pagine man. Quasi tutti i programmi sul sistema hanno un piccolo manuale di riferimento che spiega il funzionamento di base e i vari argomenti del programma stesso. Questi manuali possono essere visualizzati con il comando `man`. L'uso del comando `man` è semplice:
-[source,bash]
+[source,shell]
....
% man comando
....
`comando` è il nome del comando di cui desideri maggiori informazioni. Per esempio, per sapere di più circa il comando `ls` digita:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1106,7 +1106,7 @@ Il manuale in linea è diviso in sezione numerate:
In qualche caso, lo stesso soggetto può apparire in più di una sezione del manuale in linea. Per esempio, esiste un comando utente `chmod` e una system call `chmod()`. In questo caso, puoi dire al comando `man` quale vuoi specificando la sezione:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1115,7 +1115,7 @@ In questo caso verrà visualizzata la pagina man del comando utente `chmod`. I r
Tutto questo va bene se conosci il nome del comando e desideri semplicemente sapere come usarlo, ma cosa succede se non ricordi il nome del comando? Puoi usare `man` con l'opzione `-k` per ricercare tramite parole chiavi nelle descrizioni dei comandi:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1124,7 +1124,7 @@ Con questo comando ti verrà presentata una lista di comandi che hanno la parola
Stai dando un'occhiata a tutti quei comandi fantastici che si trovano in [.filename]#/usr/bin# ma non hai la più pallida idea di cosa fanno la maggior parte di essi? Semplicemente digita:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1132,7 +1132,7 @@ Stai dando un'occhiata a tutti quei comandi fantastici che si trovano in [.filen
oppure
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1147,7 +1147,7 @@ FreeBSD include molte applicazioni e utility prodotti dalla Free Software Founda
Per usare il comando man:info[1], digita semplicemente:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/it/books/handbook/boot/_index.adoc b/documentation/content/it/books/handbook/boot/_index.adoc
index d813f263e1..fc7ee7af34 100644
--- a/documentation/content/it/books/handbook/boot/_index.adoc
+++ b/documentation/content/it/books/handbook/boot/_index.adoc
@@ -97,7 +97,7 @@ Il codice nel MBR o nel boot manager è solitamente riferito alla _fase zero_ de
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -112,7 +112,7 @@ Default: F2
Altri sistemi operativi, in particolare Windows(R), sono noti per l'abitudine di sovrascrivere l'MBR esistente con il proprio. Se accade questo, o se vuoi rimpiazzare l'MBR pre-esistente con quello di FreeBSD puoi usare il seguente comando:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 dispositivo
....
@@ -149,7 +149,7 @@ Poiché il <<boot-loader,loader>> è molto più complesso, e fornisce una gradev
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -160,7 +160,7 @@ boot:
Se mai avrai bisogno di rimpiazzare il [.filename]#boot1# ed il [.filename]#boot2# installati, usa man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# bsdlabel -B discoslice
....
@@ -240,14 +240,14 @@ Qui ci sono alcuni esempi pratici sull'uso del loader:
* Per avviare semplicemente il vostro kernel abituale, ma in modalità singolo utente:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Per scaricare dalla memoria i moduli e il kernel usuali, e poi caricare solo il vecchio (o un altro) kernel:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -259,7 +259,7 @@ Puoi usare [.filename]#kernel.GENERIC# per riferirti al kernel generico che vien
====
Usa il comando seguente per caricare i tuoi soliti moduli con un altro kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -270,7 +270,7 @@ Usa il comando seguente per caricare i tuoi soliti moduli con un altro kernel:
* Per caricare uno script di configurazione del kernel (uno script automatizzato che faccia le cose che faresti tu normalmente configurando il kernel all'avvio):
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -321,14 +321,14 @@ Una volta che il sistema è stato avviato, può essere usato il comando man:kenv
La sintassi per il file [.filename]#/boot/device.hints# è una variabile per riga, usando il solito cancelletto "#" per indicare i commenti. Le linee sono costruite come segue:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="valore"
....
La sintassi nel terzo stadio del boot loader è:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=valore
....
diff --git a/documentation/content/it/books/handbook/config/_index.adoc b/documentation/content/it/books/handbook/config/_index.adoc
index 8bc76304b6..51567c2e95 100644
--- a/documentation/content/it/books/handbook/config/_index.adoc
+++ b/documentation/content/it/books/handbook/config/_index.adoc
@@ -197,7 +197,7 @@ Questo script fornisce un'opzione `stop` e `start` per l'applicazione a cui ci r
Potrebbe essere avviata manualmente con:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/utility.sh start
....
@@ -305,7 +305,7 @@ Non devi usare la procedura descritta qui per editare/installare il crontab di s
Per installare un [.filename]#crontab# appena scritto, prima usa il tuo editor preferito per creare un file nel formato corretto, e poi usa l'utility `crontab`. L'uso più corretto è:
-[source,bash]
+[source,shell]
....
% crontab crontab-file
....
@@ -323,7 +323,7 @@ Se successivamente vuoi rimuovere il tuo [.filename]#crontab# completamente, usa
Nel 2002 FreeBSD ha integrato il sistema di inizializzazione [.filename]#rc.d# di NetBSD. Gli utenti dovrebbero aver notato i file elencati nella cartella [.filename]#/etc/rc.d#. Molti di questi file sono servizi di base che possono essere controllati con opzioni `start`, `stop`, e `restart`. Ad esempio, man:sshd[8] può essere riavviato con il comando seguente:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -339,14 +339,14 @@ Se esiste già una linea `natd_enable="NO"`, allora basta cambiare il valore da
Poichè il sistema di [.filename]#rc.d# è inteso prevalentemente per avviare/bloccare i servizi al momento dell'accensione/spegnimento, le opzioni standard `start`, `stop` e `restart` avranno il comportamento appropriato solo seè stata impostata la variabile appropriata in [.filename]#/etc/rc.conf#. Ad esempio il comando precedente `sshd restart` funzionerà solo se in [.filename]#/etc/rc.conf# è stata impostata l'opzione `sshd_enable` a `YES`. Per avviare (`start`), fermare (`stop`) o riavviare (`restart`) un servizio, ignorandole impostazioni in [.filename]#/etc/rc.conf#, i comandi devono avere il prefisso "one". Ad esempio per riavviare `sshd` trascurando le impostazioni esistenti in [.filename]#/etc/rc.conf#, impartite il comando seguente:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
È semplice controllare se un servizio è stato abilitato in [.filename]#/etc/rc.conf# eseguendo lo script appropriato in [.filename]#rc.d# con l'opzione `rcvar`. Dunque, un amministratore può controllare che `sshd` sia effettivamente abilitato in [.filename]#/etc/rc.conf# eseguendo:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -360,7 +360,7 @@ La seconda linea (`# sshd`) è l'output del comando `sshd`; non una console di `
Per determinare se un servizio è attivo, è disponibile l'opzione `status`. Ad esempio per verificare che `sshd` sia effettivamente avviato:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -370,7 +370,7 @@ In alcuni case è anche possibile effettuare il `reload` di un servizio. Questo
La struttura di [.filename]#rc.d# non viene usata solo per i servizi di rete, ma contribuisce anche per buona parte all'inizializzazione del sistema. Ad esempio, considerate il file [.filename]#bgfsck#. Quando lo script viene eseguito, esso stamperà il seguente messaggio:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -400,7 +400,7 @@ Una volta sicuro che la tua scheda sia supportata, hai bisogno di determinare il
Se sei in possesso di una scheda comune, la maggior parte delle volte non dovrai cercare molto per trovare un driver. I driver per le schede di reti comuni sono presenti nel kernel [.filename]#GENERIC#, quindi la tua scheda dovrebbe presentarsi durante l'avvio, in questo modo:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -450,21 +450,21 @@ Non puoi usare un driver Windows(R)/i386 con FreeBSD/amd64, devi trovare un driv
Il prossimo passo è compilare il binario del driver in un modulo caricabile dal kernel. Per fare questo, come `root`, usa man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
L'utility man:ndisgen[8] è interattiva e chiederà altre informazioni di cui necessita; produrrà un modulo del kernel nella presente directory che può essere caricato in questo modo:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER.ko
....
In aggiunta al modulo del kernel generato, devi caricare i moduli [.filename]#ndis.ko# e [.filename]#if_ndis.ko#. Questo dovrebbe avvenire automaticamente quando uno carica un modulo che dipende da man:ndis[4]. Se vuoi caricarli manualmente, usa il seguente comando:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -474,7 +474,7 @@ Il primo comando carica il wrapper del driver miniport NDIS, il secondo carica l
Ora controlla man:dmesg[8] per vedere se c'era qualche errore durante il caricamento. Se tutto è andato bene, dovresti ottenere dell'output che somiglia a questo:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -498,7 +498,7 @@ Una volta che il driver giusto per la scheda di rete è stato caricato, la sched
Per mostrare la configurazione delle interfacce di rete sul tuo sistema, immetti il seguente comando:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -544,7 +544,7 @@ In questo esempio, il dispositivo [.filename]#dc0# è attivo. Gli indicatori chi
Se l'output di man:ifconfig[8] avesse mostrato qualcosa di simile a:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:a0:cc:da:da:da
@@ -580,7 +580,7 @@ Per verificare che una scheda Ethernet sia configurata correttamente, si devono
Prima proviamo l'interfaccia:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -597,7 +597,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Ora dobbiamo effettuare un ping verso un'altra macchina della LAN:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -897,14 +897,14 @@ In sostanza, man:sysctl[8] serve a due cose: a leggere e a modificare le imposta
Per visualizzare tutte le variabili leggibili:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Per leggere una particolare variabile, ad esempio, `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -912,7 +912,7 @@ kern.maxproc: 1044
Per impostare una particolare variabile, usa l'intuitiva sintassi _variabile_=_valore_:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -929,7 +929,7 @@ In alcuni casi può essere desiderabile modificare i valori di man:sysctl[8] in
Ad esempio in alcuni modelli di laptop il dispositivo man:cardbus[4] non effettuerà il controllo sugli intervalli di memoria, e fallirà con errori che assomigliano a questi:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -977,7 +977,7 @@ La configurazione del kernel `SCSI_DELAY` può ridurre il tempo di avvio del sis
Il programma man:tunefs[8] può essere usato per mettere a punto con accuratezza un file system. Questo programma ha molte opzioni differenti, ma per ora noi ci preoccuperemo solo di attivare e disattivare i Soft Update, che verrà effettuato tramite:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1063,7 +1063,7 @@ Un vnode è la rappresentazione di un file o una directory. Aumentare il numero
Per vedere il numero corrente di vnodi in uso:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1071,7 +1071,7 @@ vfs.numvnodes: 91349
Per vedere il numero massimo di vnodi:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1113,21 +1113,21 @@ device md # Memory "disks"
. Crea un file di swap ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
. Imposta i permessi appropriati su ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
. Riavvia la macchina o per abilitare il file di swap immediatamente scrivi:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1169,7 +1169,7 @@ ACPI ed APM non possono coesistere e dovrebbero essere usati separatamente. L'ul
ACPI può essere usato per mettere il sistema in modalità sleep con man:acpiconf[8], l'opzione `-s` ed un'opzione `1-5`. La maggior parte degli utenti avranno bisogno solo di `1` o `3` (sospensione della RAM). L'opzione `5` farà un morbido shutdown che è la stessa azione di:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1199,7 +1199,7 @@ Per quelli di voi che vogliono sottomettere un problema subito, per favore invia
* L'output di `sysctl hw.acpi`. Anche questo è un buon modo di figurarti quali caratteristiche il tuo sistema offre.
* URL dove il tuo _ACPI Source Language_ (ASL) risiede. _Non_ inviare la ASL direttamente alla lista dato che può essere molto grande. Generate una copia della vostra ASL eseguendo questo comando:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
@@ -1233,7 +1233,7 @@ ACPI ha tre stati di sospensione RAM (STR), `S1`-`S3` ed un stato di sospensione
Inizia a controllare `sysctl hw.acpi` per le entry relative alla sospensione. Questi sono i risultati per un Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1276,7 +1276,7 @@ Se hai altri problemi con ACPI (lavorare con un docking station, dispositivi non
Il più comune problema è il BIOS di venditori che forniscono bytecode incorretto (o addirittura con bachi). Questo si deduce usualmente da messaggi del kernel come questo:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1286,7 +1286,7 @@ Spesso puoi risolvere questi problemi aggiornando il tuo BIOS all'ultima version
Il tuo primo controllo che puoi fare è ricompilare il tuo ASL per controllare errori. Possono essere ignorati i 'warning' ma gli errori sono bachi che impediranno all'ACPI di funzionare correttamente. Per ricompilare il tuo ASL, usa il comando seguente:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1310,7 +1310,7 @@ Alcuni metodi non ritornano esplicitamente un valore come i requisiti standard.
Dopo che personalizzi il tuo [.filename]#your.asl#, potresti volerlo compilare, esegui:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1334,7 +1334,7 @@ Il driver ACPI ha una facility di debug molto utile. Permette di specificare un
L'output di debug non è abilitato di default. Per abilitarlo, aggiungi `options ACPI_DEBUG` al tuo file di configurazione del kernel se ACPI è compilato nel kernel. Puoi aggiungere `ACPI_DEBUG=1` al tuo [.filename]#/etc/make.conf# per abilitarlo in modo globale. Se è un modulo, puoi ricompilare soltanto il tuo modulo [.filename]#acpi.ko# come segue:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/it/books/handbook/desktop/_index.adoc b/documentation/content/it/books/handbook/desktop/_index.adoc
index 628605bc2c..c377ca70e7 100644
--- a/documentation/content/it/books/handbook/desktop/_index.adoc
+++ b/documentation/content/it/books/handbook/desktop/_index.adoc
@@ -115,14 +115,14 @@ Su macchine lente, con una velocità di CPU minore di 233MHz o con meno di 64MB
Se non puoi o non vuoi compilare Mozilla, per qualsiasi ragione, il FreeBSD GNOME team l'ha già fatto per te. Devi solo installare il pacchetto dalla rete con:
-[source,bash]
+[source,shell]
....
# pkg_add -r mozilla
....
Se il pacchetto non è disponibile, e hai abbastanza tempo e spazio su disco, puoi prelevare i sorgenti di Mozilla, compilarli e installarli sul tuo sistema. Questo può essere fatto con:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/mozilla
# make install clean
@@ -132,14 +132,14 @@ Puoi assicurarti una corretta inizializzazione del port di Mozilla attraverso l'
Una volta completata l'installazione di Mozilla, non necessiti di essere ancora `root`. Puoi avviare Mozilla come browser digitando:
-[source,bash]
+[source,shell]
....
% mozilla
....
Puoi avviarlo direttamente come lettore di mail e news come mostrato qui sotto:
-[source,bash]
+[source,shell]
....
% mozilla -mail
....
@@ -150,14 +150,14 @@ Firefox è il browser di nuova generazione basato sul codice di Mozilla. Mozilla
Installa il package con:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Puoi usare anche la collezione dei port se preferisci compilare il codice sorgente:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -177,7 +177,7 @@ Per aggiungere il supporto Java(TM) a Firefox o a Mozilla, devi prima installare
Avvia il tuo browser, digita `about:plugins` nella barra degli indirizzi e premi kbd:[Invio]. Verrà visualizzata una pagina con un riepilogo dei plugin installati, tra i quali dovrebbe comparire il plugin di Java(TM). Se questo non accade, come `root`, dai il comando seguente:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/local/lib/browser_plugins/
@@ -196,7 +196,7 @@ Il prossimo passo è installare il port package:www/linux-flashplugin7[]. Quando
Se il plugin di Flash(TM) non viene elencato, nella maggior parte dei casi si tratta di un link simbolico mancante. Digita i seguenti comandi come `root`:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -217,14 +217,14 @@ Opera è un browser pieno di funzionalità, basato sugli standard attuali. Tra l
Per navigare nel web con la versione per FreeBSD di Opera, installa il package:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Alcuni siti FTP non hanno tutti i pacchetti, ma è possibile ottenere Opera con la collezione dei port digitando:
-[source,bash]
+[source,shell]
....
# cd /usr/port/www/opera
# make install clean
@@ -284,14 +284,14 @@ Prima di installare l'ultima release di KOffice, assicurati di avere una version
Per installare KOffice come pacchetto, inserisci il seguente comando:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Se il pacchetto non è disponibile puoi usare la collezione dei port. Per esempio, per installare KOffice per KDE3, digita:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -305,14 +305,14 @@ AbiWord può importare ed esportare file di molti tipi, compreso alcuni formati
AbiWord è disponibile come package. Puoi installarlo digitando:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Se il pacchetto non è disponibile puoi recuperarlo dalla collezione dei port. La collezione dei port dovrebbe essere molto più aggiornata. Puoi fare come segue:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -324,14 +324,14 @@ Per il disegno o il ritocco delle immagini, GIMP è un programma di manipolazion
Puoi installare il pacchetto con il seguente comando:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Se il tuo sito FTP non ha il pacchetto, puoi usare la collezione dei port. La directory http://www.FreeBSD.org/ports/[graphics] della collezione dei port contiene anche Il Manuale di Gimp. Di seguito riportiamo come installarli:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -352,7 +352,7 @@ L'editor di testi di OpenOffice.org usa come formato di file nativo il formato X
Per installare OpenOffice.org, digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -364,7 +364,7 @@ Questo potrebbe funzionare quando hai una versione -RELEASE di FreeBSD. Altrimen
Una volta installato il pacchetto, devi digitare il comando seguente per avviare OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -376,7 +376,7 @@ Al primo avvio ti verrano poste alcune questioni e verrà creata la cartella [.f
Se il pacchetto OpenOffice.org non è disponibile hai ancora la possibilità di compilare il port. Come sempre, devi tenere presente che necessiterai di molto spazio nel tuo hard disk e di molto tempo per la compilazione.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-2
# make install clean
@@ -386,7 +386,7 @@ Se il pacchetto OpenOffice.org non è disponibile hai ancora la possibilità di
====
Se vuoi compilare una versione localizzata, sostituisci la linea di comando precedente con questa:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=il_tuo_linguaggio install clean
....
@@ -396,7 +396,7 @@ Sostituisci _il_ tuo _linguaggio_ con il codice ISO-code corretto. Una lista di
Fatto ciò, OpenOffice.org può essere avviato con il comando:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -443,7 +443,7 @@ Molti documenti sono ora distribuiti come documenti in PDF, che significa "Porta
Per installare Acrobat Reader(R) 7 dalla collezione dei port, digita:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread7
# make install clean
@@ -457,14 +457,14 @@ gv è un visualizzatore per file PostScript(R) e PDF. Era originariamente basato
Per installare gv come pacchetto, digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Se non puoi scaricare il pacchetto puoi utilizzare la collezione dei port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -476,14 +476,14 @@ Se vuoi un piccolo visualizzatore di PDF per FreeBSD, Xpdf è un leggero ed effi
Per installare il pacchetto Xpdf usa questo comando:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Se il pacchetto non è disponibile o preferisci usare la collezione dei port digita:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -497,14 +497,14 @@ GQview è un manager di immagini. Puoi visualizzare un file con un solo click, a
Se vuoi installare il pacchetto GQview, digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Se il pacchetto non è disponibile o preferisci usare la collezione di port digita:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -554,14 +554,14 @@ GnuCash dispone di un ottimo registro, un sistema di account gerarchico, molte c
Per installare GnuCash nel tuo sistema, digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Se il pacchetto non è disponibile, puoi usare la collezione dei port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -573,14 +573,14 @@ Gnumeric è un programma per foglio di calcolo elettronico, fa parte dell'ambien
Per installare Gnumeric come un un pacchetto, digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Se il pacchetto non risulta disponibile puoi usare la collezione dei port con:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -592,14 +592,14 @@ Abacus è un programma per foglio di calcolo leggero e facile da usare. Include
Per installare Abacus come pacchetto digitare:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Se il pacchetto non è disponibile puoi utilizzare la collezione dei port digitando:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -611,14 +611,14 @@ KMyMoney è un gestore delle finanze personali sviluppato per KDE. KMyMoney inte
Per installare KMyMoney come un pacchetto:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Se il pacchetto non è disponibile, puoi usare la collezione dei port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/it/books/handbook/geom/_index.adoc b/documentation/content/it/books/handbook/geom/_index.adoc
index 7143de5584..97eb99ae01 100644
--- a/documentation/content/it/books/handbook/geom/_index.adoc
+++ b/documentation/content/it/books/handbook/geom/_index.adoc
@@ -83,42 +83,42 @@ image::striping.png[Disk Striping Illustration]
. Caricare il modulo [.filename]#geom_stripe#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe.ko
....
+
. Assicurati che esiste una appropriato mount point. Se il volume in questione diventerà una partizione di root, allora usa temporaneamente un mount point diverso,ad esempio [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Determina i nomi dei devices per i dischi che verranno configurati in stripe e creali. Ad esempio per configurare in modalità stripe 2 dischi ATA [.filename]#/dev/ad2# e [.filename]#/dev/ad3# non ancora partizionati potresti usare il seguente comando.
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
....
+
. Se questo volume sarà utilizzato come dispositivo di root da cui effettuare il boot, allora prima di creare il filesystem devi utilizzare il seguente comando:
+
-[source,bash]
+[source,shell]
....
# fdisk -vBI /dev/stripe/st0
....
+
. Crea una tabella delle partizioni sul nuovo volume con in seguente comando:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Questa procedura dovrebbe aver creato altri due device in [.filename]#/dev/stripe# in aggiunta a [.filename]#st0#. Nella fattispecie [.filename]#st0a# e [.filename]#st0c#. Ora bisogna creare un filesystem nel device [.filename]#st0a# utilizzando il comando `newfs` come segue:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -128,14 +128,14 @@ Dopo che per qualche secondo vedrete parecchi numeri scorrere sullo schermo, la
Per montare manualmente il dispositivo stripe appena creato usa il seguente comando:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Per montare il filesystem stripe automaticamente all'avvio del sistema, inserisci le informazioni del volume nel file [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
# echo "/dev/stripe/st0a /mnt ufs rw 2 2" \
>> /etc/fstab
@@ -143,7 +143,7 @@ Per montare il filesystem stripe automaticamente all'avvio del sistema, inserisc
Il modulo [.filename]#geom# deve essere caricato contestualmente all'avvio del sistema; questo lo si ottiene semplicemente inserendo la seguente linea nel file [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -161,14 +161,14 @@ Riavvia e aspetta che il sistema sia completamente attivo. Non appena il boot è
Crea il device [.filename]#/dev/mirror/gm# e fai un link dello stesso a [.filename]#/dev/da1#:
-[source,bash]
+[source,shell]
....
# gmirror label -vnb round-robin gm0 /dev/da1
....
Il sistema dovrebbe rispondere con:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da1.
Done.
@@ -176,7 +176,7 @@ Done.
Avvia GEOM,questa procedura caricherà nel kernel il modulo [.filename]#/boot/kernel/geom_mirror.ko#
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -188,14 +188,14 @@ Questo comando dovrebbe ora avere creato i nodi di device [.filename]#gm0#, [.fi
Crea una label generica e un codice di boot nel device [.filename]#gm0# appena creato utilizzando il comando `fdisk`:
-[source,bash]
+[source,shell]
....
# fdisk -vBI /dev/mirror/gm0
....
Ora crea una label di informazioni generica con `bsdlabel`:
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/mirror/gm0s1
....
@@ -207,21 +207,21 @@ Se sono presenti più slices e partizioni, i flags dei due comandi precedenti ri
Utilizza l'utility man:newfs[8] per creare un filesystem di default sul nodo di device [.filename]#gm0s1a#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
....
Questo dovrebbe causare la visualizzazione di un bel pò di numeri e informazioni varie da parte del sistema. È corretto. Esamina bene lo schermo per vedere se ci sono messaggi di errore e monta il device in [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
....
Ora sposta tutti i dati presenti sul tuo disco di boot nel nuovo filesystem. Questo esempio usa i comandi man:dump[8] e man:restore[8] comunque anche man:dd[1] dovrebbe funzionare nel contesto che stiamo trattando. Evita di utilizzare man:tar[1] dal momento che non copia il codice di boot. In caso contrario il fallimento è garantito.
-[source,bash]
+[source,shell]
....
# dump -L -0 -f- / |(cd /mnt && restore -r -v -f-)
....
@@ -239,12 +239,12 @@ Ora edita il file [.filename]#/mnt/etc/fstab# "replicato" e rimuovi,o commenta (
Ora crea un file [.filename]#boot.conf# in entrambe le partizioni di root; quella corrente e quella nuova. Questo file aiuterà il BIOS di sistema ad effettuare il boot dal drive corretto.
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" > /boot.config
....
-[source,bash]
+[source,shell]
....
# echo "1:da(1,a)/boot/loader" > /mnt/boot.config
....
@@ -256,7 +256,7 @@ Lo abbiamo inserito in entrambe le partizioni di root per assicurarci un boot co
Adesso aggiungi la seguente linea al nuovo file [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf
....
@@ -265,14 +265,14 @@ Questo indicherà a man:loader[8] come caricare il modulo [.filename]#geom_mirro
Riavvia il sistema:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Se tutto è andato liscio il sistema dovrebbe aver effettuato il boot di device [.filename]#gm0s1a# e il prompt di `login` dovrebbe essere in attesa. Se qualcosa è andato storto fai riferimento alla sezione successiva "risoluzione dei problemi". Ora aggiungi al disco [.filename]#da0# al device [.filename]#gm0#:
-[source,bash]
+[source,shell]
....
# gmirror configure -a gm0
# gmirror insert gm0 /dev/da0
@@ -294,7 +294,7 @@ Root mount failed: 6 mountroot>
Riavvia la macchina utilizzando il tasto di reset o il pulsante di accensione. Arrivato al menu del boot, scegli l'opzione sei (6). Questo forzerà il sistema al prompt di man:loader[8]. Carica manualmente il modulo del kernel:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror.ko
OK? boot
diff --git a/documentation/content/it/books/handbook/install/_index.adoc b/documentation/content/it/books/handbook/install/_index.adoc
index cc16381c1b..9b4ee7e303 100644
--- a/documentation/content/it/books/handbook/install/_index.adoc
+++ b/documentation/content/it/books/handbook/install/_index.adoc
@@ -182,7 +182,7 @@ Seguendo la convenzione dei manuali della Digital / Compaq tutti gli input SRM s
Per determinare i nomi e i tipi dei dischi nella tua macchina, usa il comando `SHOW DEVICE` dal prompt della console SRM:
-[source,bash]
+[source,shell]
....
>>>SHOW DEVICE
dka0.0.0.4.0 DKA0 TOSHIBA CD-ROM XM-57 3476
@@ -300,7 +300,7 @@ Se stai creando i floppy su un computer con in esecuzione MS-DOS(R)/Windows(R),
+
Se vuoi usare le immagini che stanno nel CDROM, ed il CDROM è sul dispositivo [.filename]#E:#, puoi impartire questo comando:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
@@ -309,7 +309,7 @@ Ripeti questo comando per ogni file [.filename]#.flp#, sostituendo ogni volta il
+
Se stai creando i floppy su sistema UNIX(R) (come un altro sistema FreeBSD) puoi usare il comando man:dd[1] per scrivere i file immagine direttamente sul disco. Su FreeBSD, dovresti eseguire:
+
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
@@ -364,7 +364,7 @@ Se il computer parte normalmente e carica il sistema operativo già esistente, a
. FreeBSD si avvierà. Se hai scelto di partire da CDROM probabilmente vedrai schermate come queste (le informazioni sulla versione sono state omesse):
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
Boot from ATAPI CD-ROM :
@@ -390,7 +390,7 @@ Booting [kernel] in 9 seconds... _
+
Se hai fatto il boot da floppy, vedrai simili informazioni sul tuo schermo (le informazioni sulla versione sono state omesse):
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
@@ -410,7 +410,7 @@ Please insert MFS root floppy and press enter:
Segui queste istruzioni, rimuovi il disco [.filename]#kern.flp#, inserisci il disco [.filename]#mfsroot.flp#, e premi kbd:[Invio]. FreeBSD 5.3 e superiori hanno ulteriori dischi, come descritto nella <<install-floppies,sezione precedente>>. Avvia dal primo floppy; quando indicato, inserisci gli altri dischi.
. Indipendentemente se hai fatto il boot da floppy o da CDROM, il processo di avvio arriverà a questo punto:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -427,21 +427,21 @@ Aspetta dieci secondi o premi kbd:[Invio]
. Accendi il computer e attendi che arrivi al prompt di avvio.
. Se hai la necessità di preparare i floppy di avvio, come descritto nella <<install-floppies>> allora uno di questi sarà il primo disco di avvio, probabilmente quello che contiene [.filename]#kern.flp#. Inserisci questo disco nel tuo floppy e digita il seguente comando per avviare da dischetto (sostituisci il nome del tuo floppy se necessario):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DVA0 -FLAGS '' -FILE ''
....
+
Se stai avviando da CDROM, inserisci il CDROM nel lettore e digita il seguente comando per avviare l'installazione (sostituisci il nome del lettore CDROM se necessario):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DKA0 -FLAGS '' -FILE ''
....
. In fase di avvio partirà FreeBSD. Se hai fatto il boot tramite floppy, ad un certo punto vedrai questo messaggio:
+
-[source,bash]
+[source,shell]
....
Please insert MFS root floppy and press enter:
....
@@ -449,7 +449,7 @@ Please insert MFS root floppy and press enter:
Segui queste istruzioni e rimuovi il disco [.filename]#kern.flp#, inserisci il disco [.filename]#mfsroot.flp#, poi premi kbd:[Invio].
. Indipendentemente se hai fatto il boot da floppy o da CDROM, il processo di avvio arriverà a questo punto:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -469,7 +469,7 @@ Usa questa tecnica per rivedere i messaggi che sono stati visualizzati quando il
[[install-dev-probe]]
.Risultati Tipo del Probe dei Dispositivi
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -544,7 +544,7 @@ image::sysinstall-exit.png[]
Usa i tasti freccia per selezionare [.guimenuitem]#Exit Install# dal menù principale di installazione. Ti apparirà il seguente messaggio:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot
@@ -686,7 +686,7 @@ Tutte le modifiche che fai ora non saranno scritte su disco. Se pensi di aver fa
Dopo aver scelto un'installazione standard in sysinstall ti verrà mostrato questo messaggio:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -841,7 +841,7 @@ Se installi FreeBSD su più dischi devi creare anche delle partizioni nelle altr
Avendo scelto il tuo schema di partizionamento lo puoi creare con sysinstall. Vedrai questo messaggio:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -948,7 +948,7 @@ Dopo aver selezionato la distribuzione desiderata, ti viene data l'opportunità
Il programma di installazione non verifica se hai lo spazio adeguato. Scegli questa opzione soltanto se hai uno spazio sul disco rigido sufficiente. Per FreeBSD {rel120-current}, la FreeBSD Ports Collection occupa circa {ports-size} di spazio su disco. Puoi assumere un valore più grande per le versioni di FreeBSD più recenti.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1017,7 +1017,7 @@ Poichè [.filename]#/pub/FreeBSD# da `ftp.FreeBSD.org` è proxato sotto `foo.exa
Se lo desideri l'installazione può ora procedere. Questa è anche l'ultima opportunità per interrompere l'installazione per impedire cambiamenti al disco.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1036,7 +1036,7 @@ Il tempo di installazione varierà a seconda della distribuzione che hai scelto,
L'installazione è completa quando viene visualizzato il seguente messaggio:
-[source,bash]
+[source,shell]
....
Message
@@ -1057,7 +1057,7 @@ Premi kbd:[Invio] per procedere con la configurazione post-installazione.
Seleziona btn:[no] e premi kbd:[Invio] per interrompere l'installazione in modo tale che nessuna modifica venga effettuata sul tuo sistema. Apparirà il seguente messaggio
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1082,7 +1082,7 @@ Se hai configurato precedentemente PPP per l'installazione FTP, questa schermata
Per informazioni dettagliate riguardo alla LAN e alla configurazione di FreeBSD come gateway/router fai riferimento al capitolo crossref:advanced-networking[advanced-networking,Networking Avanzato].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or SLIP/PPP network devices?
@@ -1098,7 +1098,7 @@ image::ed0-conf.png[]
Seleziona con i tasti freccia l'interfaccia che deve essere configurata e premi kbd:[Invio].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1110,7 +1110,7 @@ In questa LAN privata, il corrente protocollo di Internet (IPv4) era già suffic
Se sei connesso ad una rete IPv6 già esistente con un server RA, puoi selezionare btn:[yes] e premere kbd:[Invio]. Lo scan dei server RA impiegherà un pò di secondi.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1153,7 +1153,7 @@ Altre opzioni di `ifconfig` per l'interfaccia di rete che potresti voler aggiung
Usa il kbd:[Tab] per selezionare btn:[OK] quando hai finito e poi premi kbd:[Invio].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to Bring Up the ed0 interface right now?
@@ -1166,7 +1166,7 @@ Selezionando btn:[yes] e premendo kbd:[Invio] si porterà la macchina all'intern
[[gateway]]
=== Configurare Il Gateway
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1179,7 +1179,7 @@ Se la macchina dovrà essere utilizzata come gateway per una LAN inoltrando pacc
[[inetd-services]]
=== Configurare I Servizi di Internet
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1193,7 +1193,7 @@ Questi servizi possono essere avviati dopo l'installazione editando [.filename]#
Seleziona btn:[yes] se desideri configurare questi servizi durante l'installazione. Ti verrà proposta un'ulteriore conferma:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1208,7 +1208,7 @@ With this in mind, do you wish to enable inetd?
Seleziona btn:[yes] per continuare.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1235,7 +1235,7 @@ Dopo che hai aggiunto i servizi desiderati, premendo kbd:[Esc] ti verrà mostrat
[[ftpanon]]
=== FTP Anonimo
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1261,7 +1261,7 @@ image::ftp-anon1.png[]
Premendo kbd:[F1] visualizzerai l'help in linea:
-[source,bash]
+[source,shell]
....
This screen allows you to configure the anonymous FTP user.
@@ -1287,7 +1287,7 @@ Di default la directory root dell'ftp sarà [.filename]#/var#. Se prevedi che lo
Quando sei soddisfatto delle modifiche, premi kbd:[Invio] per continuare.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1313,7 +1313,7 @@ NFS (Network File System) consente la condivisione di file attraverso una rete.
[[nsf-server-options]]
==== Server NFS
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1325,7 +1325,7 @@ Se non c'è bisogno di un server NFS, seleziona btn:[no] e premi kbd:[Invio].
Se scegli btn:[yes], ti apparirà un messaggio che dice che il file [.filename]#exports# deve essere creato.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1350,7 +1350,7 @@ Premi kbd:[Invio] e ti verrà mostrato un menù con selezionato [.guimenuitem]#a
Il client NFS consente alla tua macchina di accedere ai server NFS.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1397,7 +1397,7 @@ La seguente tabella descrive la configurazione di ogni profilo di sicurezza. Le
|NO
|===
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to select a default security profile for this host (select
@@ -1420,7 +1420,7 @@ Usa i tasti freccia per scegliere [.guimenuitem]#Medium# a meno di essere sicuro
Verrà visualizzato un messaggio di conferma a seconda del settaggio di sicurezza che hai scelto.
-[source,bash]
+[source,shell]
....
Message
@@ -1438,7 +1438,7 @@ To change any of these settings later, edit /etc/rc.conf
[OK]
....
-[source,bash]
+[source,shell]
....
Message
@@ -1469,7 +1469,7 @@ Il profilo di sicurezza non è una soluzione miracolosa! Anche se usi il settagg
Ci sono parecchie opzioni disponibili per personalizzare la console di sistema.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1512,7 +1512,7 @@ Il settaggio della zona di fuso orario per la tua macchina ti consentirà di cor
L'esempio mostrato è per una macchina situata nella zona di fuso orario orientale degli stati Uniti. La tua selezione dipenderà dalla tua locazione geografica.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1522,7 +1522,7 @@ L'esempio mostrato è per una macchina situata nella zona di fuso orario orienta
Seleziona btn:[yes] e premi kbd:[Invio] per settare la zona di fuso orario.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1551,7 +1551,7 @@ image::timezone3.png[]
La zona di fuso orario appropriata viene selezionata usando i tasti freccia e premendo kbd:[Invio].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1564,7 +1564,7 @@ Viene richiesta una conferma per l'abbreviazione per la zona di fuso orario. Se
[[linuxcomp]]
=== Compatibilità Linux
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1581,7 +1581,7 @@ Se stai facendo l'installazione via FTP, la macchina necessiterà di collegarsi
Questa opzione ti consentirà di tagliare ed incollare il testo nella console e nei programmi utenti con un mouse a 3 pulsanti. Se usi un mouse a 2 pulsanti, fai riferimento alla pagina man, man:moused[8], dopo l'installazione per i dettagli sull'emulazione del terzo pulsante. Questo esempio descrive una configurazione di un mouse non USB (come un mouse PS/2 o via porta COM):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a non-USB mouse attached to it?
@@ -1648,7 +1648,7 @@ Selezionando l'opzione [.guimenuitem]#AMD# verrà aggiunto il supporto per l'uti
La linea successiva è l'opzione [.guimenuitem]#AMD Flags#. Quando selezionata, viene visualizzato un menù per settare delle flag specifiche di AMD. Il menù contiene già una serie di opzioni di default:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1722,7 +1722,7 @@ Per far girare XFree86(TM) come utente non `root` avrai bisogno di avere package
Per vedere se la tua scheda video è supportata, vai sul sito di http://www.xfree86.org/[XFree86(TM)].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure your X server at this time?
@@ -1748,7 +1748,7 @@ I metodi xf86cfg e xf86cfg -textmode potrebbero richiedere alcuni secondi all'av
Di seguito verrà illustrato l'uso del tool di configurazione xf86config. Le scelte di configurazione che farai dipenderanno dall'hardware nel sistema e quindi le tue scelte saranno probabilmente diverse da quelle qui mostrate:
-[source,bash]
+[source,shell]
....
Message
You have configured and been running the mouse daemon.
@@ -1764,7 +1764,7 @@ Questo indica che è stato rilevato il demone del mouse precedentemente configur
Avviando xf86config verrà visualizzata una breve introduzione:
-[source,bash]
+[source,shell]
....
This program will create a basic XF86Config file, based on menu selections you
make.
@@ -1787,7 +1787,7 @@ Press enter to continue, or ctrl-c to abort.
Premendo kbd:[Invio] comincerà la configurazione del mouse. Assicurati di seguire le istruzioni e usa "Mouse Systems" come protocollo e [.filename]#/dev/sysmouse# come porta del mouse; l'uso di un mouse PS/2 è mostrato a titolo illustrativo.
-[source,bash]
+[source,shell]
....
First specify a mouse protocol type. Choose one from the following list:
@@ -1832,7 +1832,7 @@ Mouse device: /dev/sysmouse
Il prossimo oggetto da configurare è la tastiera. Un modello generico a 101 tasti è mostrato a titolo di esempio. Si possono usare diversi nomi per le varianti o semplicemente premi kbd:[Invio] per accettare il valore di default.
-[source,bash]
+[source,shell]
....
Please select one of the following keyboard types that is the better
description of your keyboard. If nothing really matches,
@@ -1906,7 +1906,7 @@ group indicator, etc.)? n
Ora, procediamo alla configurazione del monitor. Non eccedere alla potenza del tuo monitor. Potrebbero accadere dei danni. Se hai alcuni dubbi, fai la configurazione quando hai le informazioni.
-[source,bash]
+[source,shell]
....
parameters are the vertical refresh rate, which is the rate at which the
whole screen is refreshed, and most importantly the horizontal sync rate,
@@ -1964,7 +1964,7 @@ Enter an identifier for your monitor definition: Hitachi
Ora tocca alla selezione della scheda video da una lista. Se passi la tua scheda dalla lista, continua a premere kbd:[Invio] e la lista ricomincerà da capo. Viene mostrato solo uno stralcio della lista.
-[source,bash]
+[source,shell]
....
Now we must configure video card specific settings. At this point you can
choose to make a selection out of a database of video card definitions.
@@ -2055,7 +2055,7 @@ Enter an identifier for your video card definition:
Andando ancora avanti, sono settate le modalità video per la risoluzione desiderata. Tipicamente, utili range sono 640x480, 800x600 e 1024x768, ma questi sono in funzione delle capacità della scheda video, della dimensione del monitor, e del comfort degli occhi. Quando selezioni una profondità di colore, seleziona la più alta che la tua scheda supporta.
-[source,bash]
+[source,shell]
....
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
@@ -2140,7 +2140,7 @@ Enter a number to choose the default depth.
In fine, devi salvare la configurazione. Assicurati di digitare [.filename]#/etc/X11/XF86Config# come la locazione per salvare la configurazione.
-[source,bash]
+[source,shell]
....
I am going to write the XF86Config file now. Make sure you don't accidently
overwrite a previously configured one.
@@ -2150,7 +2150,7 @@ Shall I write it to /etc/X11/XF86Config? y
Se la configurazione fallisce, puoi provare a rifarla selezionando btn:[yes] quando appare il seguente messaggio:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The XFree86 configuration process seems to have
@@ -2198,7 +2198,7 @@ I package sono binari pre-compilati e risultano essere un modo conveniente per i
A scopo illustrativo viene mostrata l'installazione di un package. Puoi installare ulteriori package se lo desideri. Dopo l'installazione puoi usare `sysinstall` (`/stand/sysinstall` nelle versioni di FreeBSD dopo la 5.2) per aggiungere ulteriori package.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD Package collection is a collection of hundreds of
@@ -2251,7 +2251,7 @@ La configurazione finale continua dopo che i package sono stati installati. Se d
Dovresti aggiungere almeno un utente durante l'installazione in modo che puoi usare il sistema senza doverti loggare come `root`. La partizione root è generalmente di dimensioni ridotte ed eseguire applicazione da `root` può riempirla facilmente. Viene segnalato un pericolo:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -2317,7 +2317,7 @@ Quando hai terminato di aggiungere gli utenti, seleziona [.guimenuitem]#Exit# co
[[rootpass]]
=== Settare la Password di `root`
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -2332,7 +2332,7 @@ Premi kbd:[Invio] per settare la password di `root`.
La password dovrà essere battuta correttamente per due volte. Inutile a dirsi, assicurati di avere un modo di trovare la password nel caso dovessi dimenticarla. Nota che la password che digiti non è mostrata, e non vengono visualizzati neppure gli asterischi.
-[source,bash]
+[source,shell]
....
Changing local password for root.
New password :
@@ -2346,7 +2346,7 @@ L'installazione continuerà dopo che la password è stata inserita correttamente
Se hai bisogno di configurare altri dispositivi di rete o altre configurazioni, lo puoi fare a questo punto o dopo con `sysinstall` (`/stand/sysinstall` nelle versioni di FreeBSD dopo la 5.2).
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -2363,7 +2363,7 @@ image::mainexit.png[]
Seleziona con i tasti freccia btn:[X Exit Install] e premi kbd:[Invio]. Ti sarà chiesto di confermare l'uscita dall'installazione:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot (be sure to
@@ -2390,7 +2390,7 @@ Accedi usando il nome utente e la password che hai settato durante l'installazio
Tipici messaggi di avvio (le informazioni sulla versione sono state omesse):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2528,14 +2528,14 @@ Se è stato configurato il server X ed è stato scelto un Desktop di default, qu
Una volta finita la procedura di installazione, sarai in grado di avviare FreeBSD scrivendo qualcosa di simile a questo nel prompt SRM:
-[source,bash]
+[source,shell]
....
>>>BOOT DKC0
....
Questo istruisce il firmware ad avviare il disco specificato. Per avviare FreeBSD in automatico in futuro, usa questi comandi:
-[source,bash]
+[source,shell]
....
>>> SET BOOT_OSFLAGS A
>>> SET BOOT_FILE ''
@@ -2550,7 +2550,7 @@ I messaggi di avvio saranno simili (ma non identici) a quelli prodotti dall'avvi
È importante spegnere (effettuare lo shutdown) in modo adeguato il sistema operativo. Non farlo rimuovendo l'alimentazione. Innanzitutto, diventa superuser digitando `su` dalla linea di comando ed inserendo la password di `root`. Questo funziona solo se l'utente è un membro del gruppo `wheel`. Altrimenti, loggati come `root` e usa `shutdown -h now`.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2617,7 +2617,7 @@ A tutt'oggi, FreeBSD non supporta filesystem compressi con l'utility Double Spac
FreeBSD supporta filesystem basati su MS-DOS(R). Questo richiede di usare il comando man:mount_msdosfs[8] con i parametri opportuni. L'uso più comune è:
-[source,bash]
+[source,shell]
....
# mount_msdosfs /dev/ad0s1 /mnt
....
@@ -2665,28 +2665,28 @@ Per modificare questi floppy per avviare in una console seriale, segui questi pa
+
Se hai avviato con i floppy che hai appena creato, FreeBSD dovrebbe avviare la sua modalità di installazione standard. Noi vogliamo che FreeBSD avvii un console seriale per la nostra installazione. Per fare questo, devi montare il floppy [.filename]#kern.flp# nel tuo sistema FreeBSD usando il comando man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/fd0 /mnt
....
+
Adesso che hai il tuo floppy montato, portati nella directory [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# cd /mnt
....
+
È qui che devi configurare il floppy per avviare una console seriale. Devi creare un file di nome [.filename]#boot.config# contenente `/boot/loader -h`. Tutto quello che fa è passare un flag al bootloader per avviare una console seriale.
+
-[source,bash]
+[source,shell]
....
# echo "/boot/loader -h" > boot.config
....
+
Adesso che hai il tuo floppy configurato correttamente, devi smontare il floppy usando il comando man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /mnt
@@ -2703,7 +2703,7 @@ Devi connettere un crossref:serialcomms[term-cables-null,cavo null-modem] tra le
+
Adesso devi connetterti alla macchina con man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuaa0
....
@@ -2810,7 +2810,7 @@ I dischi di FreeBSD sono strutturati alla stessa maniera di un sito FTP. Questo
====
. Sul computer FreeBSD che ospiterà il sito FTP, assicurati che il CDROM è nel lettore, e montato su [.filename]#/cdrom#.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2848,7 +2848,7 @@ _Non_ fidarti dei floppy pre-formattati di fabbrica. Formattali di nuovo, per es
Se crei i floppy su un'altra macchina FreeBSD, un format è ancora una buona idea, benchè non devi necessariamente mettere un filesystem DOS su ogni floppy. Puoi usare i comandi `bsdlabel` e `newfs` per mettere un filesystem UFS su ogni flopply, come mostra la seguente sequenza di comandi (per un floppy da 3.5" 1.44 MB):
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w -r fd0.1440 floppy3
@@ -2871,7 +2871,7 @@ Una volta che arrivi alla schermata dei Media durante il processo di installazio
Per preparare un'installazione da una partizione MS-DOS(R), devi copiare i file dalla distribuzione in una directory chiamata [.filename]#freebsd# nella directory root della partizione. Per esempio, [.filename]#c:\freebsd#. La struttura della directory del CDROM o del sito FTP deve essere parzialmente riprodotta in questa directory, dunque consigliamo di usare il comando `xcopy` del DOS se stai copiando da un CD. Per esempio, per preparare un'installazione minima di FreeBSD:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2888,7 +2888,7 @@ Se desideri installare diverse distribuzioni da una partizione MS-DOS(R) (ed hai
Installare da un nastro magnetico è probabilmente un metodo più facile e breve rispetto a un'installazione da FTP o da CDROM. Il programma di installazione si aspetta che i file siano semplicemente magnetizzati su nastro. Dopo che hai ottenuto tutti i file della distribuzione a cui sei interessato, semplicemente fai un tar su nastro:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/it/books/handbook/jails/_index.adoc b/documentation/content/it/books/handbook/jails/_index.adoc
index 65bc8e1eb6..2e41775cde 100644
--- a/documentation/content/it/books/handbook/jails/_index.adoc
+++ b/documentation/content/it/books/handbook/jails/_index.adoc
@@ -110,7 +110,7 @@ Oltre a queste caratteristiche, le jail possono avere il loro insieme di utenti
Alcuni amministratori dividono le jail nei seguenti due tipi: jail "complete", che sono simili ad un sistema FreeBSD reale, e jail "di servizio", dedicate ad un'unica applicazione o servizio, possibilmente in esecuzione con privilegi. Questa è solo una divisione concettuale ed il processo di creazione della jail non viene modificato da ciò. La pagina man man:jail[8] è abbastanza chiara a riguardo della procedura di creazione di una jail:
-[source,bash]
+[source,shell]
....
# setenv D /qui/c'e'/la/jail
# mkdir -p $D <.>
@@ -161,7 +161,7 @@ Per una lista completa delle opzioni disponibili, per favore consulta la pagina
Lo script [.filename]#/etc/rc.d/jail# può essere usato per avviare o fermare una jail a mano, se esiste una entry in [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -169,7 +169,7 @@ Lo script [.filename]#/etc/rc.d/jail# può essere usato per avviare o fermare un
Un modo pulito per spegnere una man:jail[8] non è disponibile al momento. Questo perchè i comandi usati normalmente per fare uno shutdown pulito non possono essere usati all'interno della jail. Il modo migliore per spegnere una jail è eseguire il seguente comando all'interno della jail stessa o usando l'utility man:jexec[8] da fuori della jail:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -204,7 +204,7 @@ Il sistema base di FreeBSD contiene un insieme di base di strumenti per vedere i
* Stampa una lista di jail attive e i loro corrispondenti identificativi di jail (JID), indirizzo IP, nome host e percorso.
* Attaccarsi ad una jail in esecuzione, dal suo sistema host, ed eseguire un comando o compiti amministrativi dall'interno della jail stessa. Questo è specialmente utile quando l'utente `root` vuole spegnere in modo pulito una jail. L'utility man:jexec[8] può anche essere usata per avviare una shell in una jail per fare dell'amministrazione; ad esempio:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -276,7 +276,7 @@ Questa sezione descrive le fasi necessarie per creare il template di riferimento
====
. Primo, creiamo la struttura della directory per il file system in sola lettura che conterrà i binari di FreeBSD per le nostre jail, quindi portiamoci nel ramo della directory dei sorgenti di FreeBSD e installiamo il file system in sola lettura per il template delle jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -285,7 +285,7 @@ Questa sezione descrive le fasi necessarie per creare il template di riferimento
+
. Quindi, prepariamo la FreeBSD Ports Collection per le jail così come abbiamo fatto per l'alberatura dei sorgenti, richiesta per mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -295,7 +295,7 @@ Questa sezione descrive le fasi necessarie per creare il template di riferimento
+
. Creiamo lo scheletro per la parte del sistema in lettura e scrittura:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -307,7 +307,7 @@ Questa sezione descrive le fasi necessarie per creare il template di riferimento
+
. Usiamo mergemaster per installare i file di configurazione mancanti. Quindi liberiamoci delle directory extra che mergemaster ha creato:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -316,7 +316,7 @@ Questa sezione descrive le fasi necessarie per creare il template di riferimento
+
. Ora, linkiamo in modo simbolico il file system in lettura e scrittura nel file system di sola lettura. Assicuriamoci che i link simbolici siano creati nelle posizioni corrette in [.filename]#s/#. La creazione di directory in posti sbagliati causerà un fallimento durante l'installazione.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -393,14 +393,14 @@ La ragione del perchè la variabile `jail_nome_rootdir` è settata a [.filename]
+
. Creiamo i punti di mount richiesti per il file system in sola lettura di ogni jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Installiamo il template in lettura e scrittura in ciascuna jail. Notare l'utilizzo di package:sysutils/cpdup[], che assicura una corretta copia di ogni directory:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -410,7 +410,7 @@ La ragione del perchè la variabile `jail_nome_rootdir` è settata a [.filename]
+
. In questa fase, le jail sono preparate per essere eseguite. Montiamo il file system richiesto per ogni jail, e quindi avviamole con lo script [.filename]#/etc/rc.d/jail#:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
@@ -419,7 +419,7 @@ La ragione del perchè la variabile `jail_nome_rootdir` è settata a [.filename]
Le jail dovrebbero essere in esecuzione. Per verificare che siano state avviate correttamente, usiamo il comando man:jls[8]. Il suo output dovrebbe essere simile al seguente:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -430,7 +430,7 @@ Le jail dovrebbero essere in esecuzione. Per verificare che siano state avviate
A questo punto, dovrebbe essere possibile entrare in ciascuna jail, aggiungere nuovi utenti o configurare demoni. La colonna `JID` indica il numero identificativo di ciascuna jail in esecuzione. Usa il comando seguente per effettuare compiti amministrativi nella jail con `JID` 3:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -444,7 +444,7 @@ Il tempo passa, e sarà necessario aggiornare il sistema a una nuova versione di
====
. Il primo passo è aggiornare il sistema host nella maniera usuale. Quindi creiamo un template temporaneo in sola lettura in [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -456,7 +456,7 @@ Il tempo passa, e sarà necessario aggiornare il sistema a una nuova versione di
+
Il processo di `installworld` crea alcune directory non necessarie, che possono essere rimosse:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -464,7 +464,7 @@ Il processo di `installworld` crea alcune directory non necessarie, che possono
+
. Ricreiamo i link simbolici in lettura e scrittura per il file system di riferimento:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -477,14 +477,14 @@ Il processo di `installworld` crea alcune directory non necessarie, che possono
+
. È questo il momento per fermare le jail:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail stop
....
+
. Smontiamo il file system originale:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -501,7 +501,7 @@ I sistemi in lettura e scrittura sono attaccati al sistema in sola lettura ([.fi
+
. Muovi il file system in sola lettura e rimpiazzalo con quello nuovo. Il vecchio file system in sola lettura servirà da backup in caso qualcosa dovesse andare storto. La convenzione dei nomi qui utilizzata corrisponde a quella utilizzata quando fu creato il file system in sola lettura. Muovi la FreeBSD Ports Collection originale nel nuovo file system per risparmiare spazio e inode:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -511,7 +511,7 @@ I sistemi in lettura e scrittura sono attaccati al sistema in sola lettura ([.fi
+
. A questo punto il nuovo template in sola lettura è pronto, quindi ci rimare di rimontare il file system e avviare le jail:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
diff --git a/documentation/content/it/books/handbook/kernelconfig/_index.adoc b/documentation/content/it/books/handbook/kernelconfig/_index.adoc
index d990e7bbed..93970edbf2 100644
--- a/documentation/content/it/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/it/books/handbook/kernelconfig/_index.adoc
@@ -85,7 +85,7 @@ Questo capitolo assume che tu stia usando la architettura i386 negli esempi. Se
====
Se _non_ c'è una directory [.filename]#/usr/src/sys# sul tuo sistema, significa che i sorgenti del kernel non sono stati installati. Il modo più semplice per farlo è eseguire `sysinstall` come `root`, scegliendo [.guimenuitem]#Configure#, poi [.guimenuitem]#Distributions#, poi [.guimenuitem]#src#, poi [.guimenuitem]#base# e [.guimenuitem]#sys#. Se hai un'avversione verso sysinstall e hai accesso ad un CDROM "ufficiale" FreeBSD, allora puoi installare i sorgenti dalla linea di comando:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -98,7 +98,7 @@ Se _non_ c'è una directory [.filename]#/usr/src/sys# sul tuo sistema, significa
Quindi, entra nella directory [.filename]#arch/conf# e copia il file di configurazione del kernel con il nome che vuoi dare al kernel. Ad esempio:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -115,7 +115,7 @@ Piuttosto tieni il tuo file di configurazione del kernel da qualche altra parte,
Ad esempio:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -142,21 +142,21 @@ A questo punto devi compilare i sorgenti del kernel.
. Entra nella directory [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compila il kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Installa il nuovo kernel:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -203,7 +203,7 @@ Il formato generale di un file di configurazione è abbastanza semplice. Ogni li
====
Per creare un file che contenga tutte le opzioni disponibili, ad esempio per usi di testing, esegui il seguente comando come `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1034,7 +1034,7 @@ Ci sono cinque categorie di problemi che si possono presentare quando si crea un
`config` fallisce:::
Se il comando man:config[8] fallisce quando gli passi la descrizione del tuo kernel, hai fatto probabilmente un semplice errore da qualche parte. Fortunatamente man:config[8] scriverà il numero della linea che ha dato errore, così puoi facilmente trovare la linea errata. Ad esempio, se vedi:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1053,7 +1053,7 @@ Dopo aver fatto il boot con un kernel funzionante puoi controllare il tuo file d
====
Se hai problemi a compilare un kernel, accertati di tenere un kernel [.filename]#GENERIC#, o qualche altro kernel che sai che funzioni a portata di mano,con un nome diverso cosichè non sia cancellato dalla successiva compilazione. Non puoi affidarti su [.filename]#kernel.old# perchè quando installi un nuovo kernel, [.filename]#kernel.old# viene cancellato dall'ultimo kernel installato, che poteva essere non funzionanante. Inoltre, appena possibile, sposta il kernel funzionanante nella directory corretta [.filename]#/boot/kernel# o comandi come man:ps[1] potrebbero non funzionare bene. Per farlo, semplicemente rinomina la directory contenente il kernel funzionante:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/it/books/handbook/l10n/_index.adoc b/documentation/content/it/books/handbook/l10n/_index.adoc
index d915f67bec..d2004be4c2 100644
--- a/documentation/content/it/books/handbook/l10n/_index.adoc
+++ b/documentation/content/it/books/handbook/l10n/_index.adoc
@@ -211,7 +211,7 @@ tedesco:Account Utenti Tedeschi:\
Dopo aver modificato le Classi di Login degli utenti esegui il comando seguente:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -234,7 +234,7 @@ Usa `adduser` per aggiungere nuovi utenti, in questo modo:
* Imposta `defaultclass = lingua` in [.filename]#/etc/adduser.conf#. Tieni presente che in questo modo dovrai inserire una classe `default` per tutti gli utenti di altre lingue.
* In alternativa si può specificare la lingua desiderata ogni volta che appare il prompt
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
@@ -243,7 +243,7 @@ durante l'esecuzione di man:adduser[8]
* Un'altra alternativa è utilizzare il comando nel modo seguente per ogni utente di una diversa lingua che si desidera aggiungere:
+
-[source,bash]
+[source,shell]
....
# adduser -class lingua
....
@@ -252,7 +252,7 @@ durante l'esecuzione di man:adduser[8]
Se utilizzi il comando man:pw[8] per aggiungere nuovi utenti, invocalo in questo modo:
-[source,bash]
+[source,shell]
....
# pw useradd nome_utente -L lingua
....
diff --git a/documentation/content/it/books/handbook/linuxemu/_index.adoc b/documentation/content/it/books/handbook/linuxemu/_index.adoc
index 7af4eea36a..70512ba338 100644
--- a/documentation/content/it/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/it/books/handbook/linuxemu/_index.adoc
@@ -69,7 +69,7 @@ Prima di leggere questo capitolo, dovresti:
La compatibilità con i binari Linux non è normalmente attivata. Il modo più facile per abilitare questa funzionalità è caricare l'oggetto KLD ("Kernel LoaDable object") `linux`. Puoi caricare questo modulo digitando il comando seguente come `root`:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -83,7 +83,7 @@ linux_enable="YES"
Il comando man:kldstat[8] può essere usato per verificare se KLD sia stato caricato:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -102,7 +102,7 @@ Questo può essere fatto in due modi, o usando il port <<linuxemu-libs-port,linu
Questo è di gran lunga il metodo più facile da usare per installare le librerie runtime. È proprio come installare qualunque altro port dalla link:file://localhost/usr/ports/[Collezione dei Port]. Semplicemente fai come segue:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-fc4
# make install distclean
@@ -130,7 +130,7 @@ Se hai accesso ad un sistema Linux, guarda quali librerie condivise servono all'
Poniamo che tramite FTP tu abbia recuperato il binario per Linux di Doom, e l'abbia messo su un sistema Linux a cui hai accesso. Puoi controllare quali librerie condivise servono eseguendo `ldd linuxdoom`, così:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -140,7 +140,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Potresti aver bisogno di recuperare tutti i file dall'ultima colonna, e di metterli sotto [.filename]#/compat/linux#, con i nomi nella prima colonna come link simbolici che puntino ad essi. Questo significa che alla fine avrai questi file sul tuo sistema FreeBSD:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -154,7 +154,7 @@ Potresti aver bisogno di recuperare tutti i file dall'ultima colonna, e di mette
====
Nota che se hai già una libreria condivisa di Linux con un numero di revisione maggiore di quello della prima colonna dell'output di `ldd`, non dovrai copiare nel tuo sistema il file elencato nell'ultima colonna, quello che hai dovrebbe funzionare. Si raccomanda di copiare comunque la libreria condivisa se è una versione più recente. Puoi rimuovere quella vecchia, dal momento che crei il link simbolico che punta a quella nuova. Quindi, se hai queste librerie sul tuo sistema:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -162,14 +162,14 @@ Nota che se hai già una libreria condivisa di Linux con un numero di revisione
e vedi che un nuovo binario richiede una versione più recente in base all'output di `ldd`:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Se si tratta solo di una o due versioni precedenti in base alla cifra finale allora non preoccuparti di copiare anche [.filename]#/lib/libc.so.4.6.29#, perché il programma dovrebbe funzionare bene anche con una versione di poco più vecchia. In ogni caso, se vuoi, puoi decidere di rimpiazzare comunque [.filename]#libc.so#, e dovrebbe lasciarti con:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -186,7 +186,7 @@ Il meccanismo dei link simbolici è richiesto _solo_ per i binari di Linux. Il r
I binari ELF possono richiedere un ulteriore passo di "marchiatura". Se provi a far girare un binario ELF non marchiato, incorrerai in un messaggio come il seguente:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -195,7 +195,7 @@ Abort
Per aiutare il kernel di FreeBSD a distinguere un binario ELF di FreeBSD da uno di Linux, usa l'utility man:brandelf[1].
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -206,7 +206,7 @@ Oggi, la GNU toolchain inserisce automaticamente l'appropriata informazione di m
Se il DNS non funziona o da questo messaggio:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -233,7 +233,7 @@ La versione Linux di Mathematica(R) o di Mathematica(R) for Students può essere
Prima di tutto, devi indicare a FreeBSD che i binari Linux di Mathematica(R) usano le ABI di Linux. Il modo più facile di farlo è di settare il tipo di ELF a Linux per tutti i binari non marchiati con il comando:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -242,7 +242,7 @@ In questo modo FreeBSD assume che tutti i binari ELF non marchiati usino l'ABI d
Ora, copia il file [.filename]#MathInstaller# sul tuo disco:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/
@@ -280,7 +280,7 @@ Il primo modo è di copiarli dentro una delle directory di font esistenti in [.f
Il secondo modo di farlo è copiare le directory in [.filename]#/usr/X11R6/lib/X11/fonts#:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -296,7 +296,7 @@ Il secondo modo di farlo è copiare le directory in [.filename]#/usr/X11R6/lib/X
Poi aggiungi le nuove directory di font nel tuo path dei font:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -381,7 +381,7 @@ exit 0
+
. Fai un test di avvio di Maple(TM):
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -432,7 +432,7 @@ Per installare MATLAB(R), fai come segue:
====
. Inserisci il CD di installazione e montalo. Diventa `root`, come consigliato dallo script di installazione. Per avviare lo script di installazione scrivi:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -470,7 +470,7 @@ A questo punto la tua installazione di MATLAB(R) è completa. I punti seguenti a
====
. Crea dei symlink per gli script del gestore della licenza:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -505,7 +505,7 @@ exit 0
======
Il file deve essere reso eseguibile:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -515,7 +515,7 @@ In aggiunta sostituisci _username_ sopra con il nome di un utente valido sul tuo
+
. Avvia il gestore della licenza con il comando:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -526,7 +526,7 @@ In aggiunta sostituisci _username_ sopra con il nome di un utente valido sul tuo
Cambia il link al Java(TM) Runtime Environment (JRE) con uno che funzioni sotto FreeBSD:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -602,7 +602,7 @@ exit 0
+
. Rendi il file eseguibile:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -626,7 +626,7 @@ Assicurati di avere installati sia package:emulators/linux_base[] che package:de
Se vuoi far girare l'intelligent agent, dovrai anche installare il pacchetto Tcl di Red Hat :[.filename]##tcl-8.0.3-20.i386.rpm##. Il comando generale per l'installazione dei pacchetti con il port degli RPM ufficiali (package:archivers/rpm[]) è:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm pacchetto
....
@@ -713,7 +713,7 @@ A causa di una leggera inconsistenza nell'emulatore Linux, devi creare una direc
Un problema frequente è che l'adattatore del protocollo TCP non è installato corretamente. Di conseguenza non puoi avviare alcun listener TCP. Le seguenti azioni aiutano a risolvere questo problema:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -1075,7 +1075,7 @@ Scarica gli ultimi sorgenti -STABLE. Ricompila world e il tuo kernel personalizz
Per primo bisogna installare il port <<linuxemu-libs-port,linux_base>> (come `root`):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base
# make install distclean
@@ -1086,7 +1086,7 @@ Per primo bisogna installare il port <<linuxemu-libs-port,linux_base>> (come `ro
È richiesto l'ambiente di sviluppo di linux, se vuoi installare Oracle(R) su FreeBSD secondo la <<linuxemu-oracle>>:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/linux_devtools
# make install distclean
@@ -1099,7 +1099,7 @@ L'ambiente di sviluppo di Linux è stato installato solo durante l'installazione
Per avviare il programma `R3SETUP`, c'è bisogno del supporto PAM. Durante la prima installazione di SAP(R) su FreeBSD 4.3-STABLE abbiamo tentato di installare PAM con tutti i pacchetti richiesti: alla fine abbiamo forzato l'installazione del pacchetto di PAM, ed ha funzionato. Per SAP(R) R/3(R) 4.6C SR2 abbiamo subito forzato l'installazione degli RPM di PAM, ed ha pure funzionato, sembra quindi che i pacchetti dipendenti non siano necessari:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \
pam-0.68-7.i386.rpm
@@ -1138,7 +1138,7 @@ Per una installazione semplice è sufficiente creare i seguenti file system:
È necessario anche creare qualche collegamento, altrimenti l'installer di SAP(R) si lamenterà, perché controlla i collegamenti creati:
-[source,bash]
+[source,shell]
....
# ln -s /compat/linux/oracle /oracle
# ln -s /compat/linux/sapmnt /sapmnt
@@ -1147,7 +1147,7 @@ Per una installazione semplice è sufficiente creare i seguenti file system:
Possibili messaggi d'errore durante l'installazione (qui con il sistema _PRD_ e l'installazione di SAP(R) R/3(R) 4.6C SR2):
-[source,bash]
+[source,shell]
....
INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200
Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to
@@ -1257,7 +1257,7 @@ Queste directory solitamente sono create come file system separati, dipende escl
Prima impostiamo le appartenenze ed i diritti per alcune directory (come utente `root`):
-[source,bash]
+[source,shell]
....
# chmod 775 /oracle
# chmod 777 /sapmnt
@@ -1268,7 +1268,7 @@ Prima impostiamo le appartenenze ed i diritti per alcune directory (come utente
Successivamente creiamo le directory come utente `ora__sid__`. Queste saranno tutte le sottodirectory di [.filename]#/oracle/SID#:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle/SID
@@ -1280,7 +1280,7 @@ Successivamente creiamo le directory come utente `ora__sid__`. Queste saranno tu
Per l'installazione di Oracle(R) 8.1.7 sono necessarie alcune altre directory:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle
@@ -1299,7 +1299,7 @@ La directory [.filename]#client/80x_32# è usata esattamente con questo nome. No
Nel terzo passo creiamo le directory come `__sid__adm`:
-[source,bash]
+[source,shell]
....
# su - sidadm
# cd /usr/sap
@@ -1339,7 +1339,7 @@ en_US.ISO-8859-1
Crea i collegamenti come questi:
-[source,bash]
+[source,shell]
....
# cd /compat/linux/usr/shared/locale
# ln -s de_DE de_DE.ISO-8859-1
@@ -1398,7 +1398,7 @@ Ci sono molti CD-ROM da montare e smontare durante l'installazione. Ad avere abb
dove _cd-name_ era uno tra [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#EXPORT1#, [.filename]#EXPORT2#, [.filename]#EXPORT3#, [.filename]#EXPORT4#, [.filename]#EXPORT5# e [.filename]#EXPORT6# per l'installazione di 4.6B/IDES, e [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#DISK1#, [.filename]#DISK2#, [.filename]#DISK3#, [.filename]#DISK4# e [.filename]#LANG# per l'installazione di 4.6C SR2. Tutti i nomi dei file sui CD montati dovrebbero essere in lettere maiuscole. In caso contrario usa l'opzione `-g` per montare, cioè usa questi comandi:
-[source,bash]
+[source,shell]
....
# mount_cd9660 -g /dev/cd0a /mnt
# cp -R /mnt/* /oracle/SID/sapreorg/cd-name
@@ -1410,7 +1410,7 @@ dove _cd-name_ era uno tra [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#
Per prima cosa devi creare una directory [.filename]#install#:
-[source,bash]
+[source,shell]
....
# cd /oracle/SID/sapreorg
# mkdir install
@@ -1419,7 +1419,7 @@ Per prima cosa devi creare una directory [.filename]#install#:
Quindi viene lanciato lo script di installazione, che copia quasi tutti i file rilevanti dentro alla directory [.filename]#install#:
-[source,bash]
+[source,shell]
....
# /oracle/SID/sapreorg/KERNEL/UNIX/INSTTOOL.SH
....
@@ -1435,14 +1435,14 @@ Durante e dopo l'installazione, SAP(R) richiede `hostname` per restituire solame
Assicurati che `LD_LIBRARY_PATH` sia impostato correttamente:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib
....
Avvia `R3SETUP` come `root` dalla directory di installazione:
-[source,bash]
+[source,shell]
....
# cd /oracle/IDS/sapreorg/install
# ./R3SETUP -f CENTRDB.R3S
@@ -1589,14 +1589,14 @@ A parte alcuni problemi sopra menzionati, ogni cosa dovrebbe andare bene fino al
Assicurati che `LD_LIBRARY_PATH` sia impostato correttamente. Ha un valore diverso dall'installazione di 4.6B con Oracle(R) 8.0.5:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib
....
Avvia `R3SETUP` come `root` dalla directory di installazione:
-[source,bash]
+[source,shell]
....
# cd /oracle/PRD/sapreorg/install
# ./R3SETUP -f CENTRAL.R3S
@@ -1724,7 +1724,7 @@ Per compilare l'intelligent agent, bisogna installare il pacchetto Tcl di RedHat
A parte il ricollegamento, l'installazione è diretta:
-[source,bash]
+[source,shell]
....
# su - oraids
# export TERM=xterm
@@ -1794,7 +1794,7 @@ A questo punto abbiamo avuto qualche problema con `dipgntab` durante l'installaz
Avvia il listener di Oracle(R) come utente `ora__sid__` come segue:
-[source,bash]
+[source,shell]
....
% umask 0; lsnrctl start
....
@@ -1819,14 +1819,14 @@ Se non hai bisogno del MNLS, è comunque necessario controllare la tabella TCPDB
Devi richiedere la tua chiave di licenza per SAP(R) R/3(R). È necessaria, dal momento che la licenza temporanea che è stata usata durante l'installazione era valida solo per quattro settimane. Prima di tutto recupera la chiave hardware. Autenticati come utente `idsadm` e lancia `saplicense`:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -get
....
Lanciando `saplicense` senza paramentri, viene restituita una lista di opzioni. Quando si riceve la chiave di licenza, può essere installata usando:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -install
....
@@ -1979,14 +1979,14 @@ Mem: 547M Active, 305M Inact, 109M Wired, 40M Cache, 112M Buf, 3492K Free
Per riavviare `R3SETUP`, avvialo con il corrispondente file [.filename]#R3S#:
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRDB.R3S
....
per 4.6B, oppure con
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRAL.R3S
....
@@ -2072,7 +2072,7 @@ Questo errore è accaduto con Oracle(R) 8.1.7. Viene riportato se il database è
Un modo per aggirarlo è lanciare il database come utente `oraprd`, con `svrmgrl`:
-[source,bash]
+[source,shell]
....
% svrmgrl
SVRMGR> connect internal;
@@ -2085,7 +2085,7 @@ SVRMGR> exit
Avvia il listener di Oracle(R) come utente `oraids` con i seguenti comandi:
-[source,bash]
+[source,shell]
....
# umask 0; lsnrctl start
....
@@ -2118,7 +2118,7 @@ venivano usati questi path:
Per continuare con l'installazione, abbiamo creato un collegamento e una direcotry addizionale:
-[source,bash]
+[source,shell]
....
# pwd
/compat/linux/usr/sap
@@ -2196,7 +2196,7 @@ Il loader di ELF cerca un _marchio_ specializzato, che ` una sezione di commento
I binari di Linux, per funzionare, devono essere _marchiati_ come tipo `Linux` da man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/it/books/handbook/mail/_index.adoc b/documentation/content/it/books/handbook/mail/_index.adoc
index 4de20898f9..bcd1bc41c4 100644
--- a/documentation/content/it/books/handbook/mail/_index.adoc
+++ b/documentation/content/it/books/handbook/mail/_index.adoc
@@ -107,7 +107,7 @@ Il DNS è responsabile della corrispondenza tra nomi host ed indirizzi IP, e mem
Puoi vedere i record MX per un dominio usando il comando man:host[1], come mostrato nel seguente esempio:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -546,7 +546,7 @@ Con l'installazione di default di FreeBSD, sendmail viene configurato in modo ta
Esistono diversi modi per aggirare questo problema. La soluzione più semplice è mettere il proprio indirizzo assegnato dall'ISP nel file che contiene i domini a cui viene permesso di effettuare il relay, [.filename]#/etc/mail/relay-domains#. Un modo veloce per far questo può essere:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -585,7 +585,7 @@ Entrambi questi due metodi ti permettono di ricevere posta direttamente sul tuo
Prova questi comandi:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -597,7 +597,7 @@ Se ottieni un risultato simile, l'invio diretto a mailto:yourlogin@example.FreeB
Se invece vedi qualcosa di simile a questo:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -671,7 +671,7 @@ Il miglior modo per supportare la consegna UUCP è usare la caratteristica `mail
Prima di tutto, devi creare il tuo file [.filename]#.mc#. La directory [.filename]#/usr/shared/sendmail/cf/cf# contiene alcuni esempi. Assumendo che tu abbia chiamato il tuo file [.filename]#foo.mc#, tutto quello che devi fare per convertirlo in un valido [.filename]#sendmail.cf# è:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make foo.cf
@@ -733,7 +733,7 @@ Si ricorda che questo file deve essere convertito in un file database DBM prima
Ultimo suggerimento: se non sei sicuro che alcuni instradamenti di posta potrebbero funzionare, ricordati l'opzione `-bt` di sendmail. Questa avvia sendmail in _modalità test indirizzo_; digita semplicemente `3,0`, seguito dall'indirizzo su cui vuoi verificare l'instradamento della posta. L'ultima riga ti informa quale agente di posta interno è stato utilizzato, quale host di destinazione questo agente contatterà, e l'indirizzo (molto probabilmente tradotto). Lascia questa modalità digitando kbd:[Ctrl+D].
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -759,7 +759,7 @@ Inoltre, alcuni servizi di accesso a Internet prevedono nel contratto l'impossib
Il modo più facile per colmare questa necessità è installare il port package:mail/ssmtp[]. Esegui i seguenti comandi come `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -864,7 +864,7 @@ saslauthd_enable="YES"
+
ed infine avvia il demone saslauthd:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/saslauthd start
....
@@ -882,7 +882,7 @@ SENDMAIL_LDADD=-lsasl2
Queste righe daranno, in fase di compilazione di sendmail, le giuste opzioni di configurazione per linkare a package:cyrus-sasl2[]. Assicurati che package:cyrus-sasl2[] sia installato prima di ricompilare sendmail.
. Ricompila sendmail eseguendo i seguenti comandi:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -924,14 +924,14 @@ Sebbene `mail` non supporta in modo nativo interazioni con server POP o IMAP, qu
Al fine di inviare o ricevere la posta, invoca semplicemente il comando `mail` come nel seguente esempio:
-[source,bash]
+[source,shell]
....
% mail
....
I contenuti delle caselle di posta degli utenti in [.filename]#/var/mail# sono letti automaticamente dall'utility `mail`. Se la casella di posta è vuota, l'utility esce con un messaggio che indica che non è stato trovato nessun messaggio di posta. Una volta che la casella di posta è stata letta, viene avviata l'interfaccia dell'applicazione, e vengono visualizzati una lista di messaggi. I messaggi sono numerati in modo automatico, come nel seguente esempio:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -942,7 +942,7 @@ Mail version 8.1 6/6/93. Type ? for help.
I messaggi possono ora essere letti usando il comando kbd:[t] di `mail`, seguito dal numero del messaggio che si vuole visualizzare. In questo esempio, leggeremo il primo messaggio di posta:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -961,7 +961,7 @@ Come puoi vedere nell'esempio precedente, il tasto kbd:[t] visualizza il messagg
Se il messaggio di posta richiede una replica, puoi usare `mail` per rispondere, usando il tasto kbd:[R] o kbd:[r] di `mail`. Il tasto kbd:[R] dice a `mail` di rispondere solamente al mittente del messaggio, mentre kbd:[r] replica non solo al mittente, ma anche agli altri eventuali destinatari del messaggio originario. Puoi anche impartire quei comandi con un suffisso relativo al numero di messaggio per il quale intendi rispondere. Fatto ciò, inserisci la tua risposta, segnalando la fine del messaggio con un singolo punto (kbd:[.]) su una nuova linea. Ecco un esempio:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -974,7 +974,7 @@ EOT
Per inviare un nuovo messaggio, puoi usare il tasto kbd:[m], seguito dall'indirizzo di posta elettronica del destinatario. Puoi specificare più destinatari separando ogni indirizzo da una virgola (kbd:[,]). Quindi si inserisce il soggetto del messaggio (il subject), seguito dal contenuto del messaggio stesso. La fine del messaggio deve essere specificata da un singolo punto (kbd:[.]) su una nuova linea.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: Ho imparato ad usare mail
@@ -1006,7 +1006,7 @@ Tutte queste caratteristiche fanno di mutt uno dei maggiori user agent avanzati
La versione stabile di mutt può essere installata usando il port package:mail/mutt[], mentre la versione corrente di sviluppo può essere installata tramite il port package:mail/mutt-devel[]. Una volta che il port è stato installato, mutt può essere avviato usando il seguente comando:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -1045,7 +1045,7 @@ Il software pine ha avuto svariate vulnerabilità remote scoperte in passato, ch
L'attuale versione di pine può essere installata usando il port package:mail/pine4[]. Una volta che il port è stato installato, pine può essere avviato con il comando seguente:
-[source,bash]
+[source,shell]
....
% pine
....
@@ -1086,7 +1086,7 @@ fetchmail è un client IMAP e POP super attrezzato che da la possibilità agli u
Benchè la spiegazione di tutte le caratteristiche di fetchmail vada oltre lo scopo di questo documento, verranno presentate alcune funzionalità di base. fetchmail richiede un file di configurazione [.filename]#.fetchmailrc#, al fine di poter essere avviato in modo corretto. Questo file include informazioni sui server come pure le credenziali per il login. Data la natura sensibile del contenuto di questo file, è consigliabile renderlo accessibile in sola lettura dal proprietario, usando il seguente comando:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1111,7 +1111,7 @@ user "john", with password "XXXXX", is "myth" here;
L'utility fetchmail può essere eseguita in modalità demone con l'opzione `-d`, seguita da un intervallo (in secondi) in base al quale fetchmail sonderà i server elencati nel file [.filename]#.fetchmailrc#. Il seguente esempio indica a fetchmail di sondare i server ogni 600 secondi:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/it/books/handbook/mirrors/_index.adoc b/documentation/content/it/books/handbook/mirrors/_index.adoc
index 23fd0bfc8e..7c0bf73f07 100644
--- a/documentation/content/it/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/it/books/handbook/mirrors/_index.adoc
@@ -555,7 +555,7 @@ Benché sia consigliata un'attenta lettura della pagina man di man:cvs[1] prima
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
% cvs login
@@ -569,7 +569,7 @@ Alla richiesta, inserire la password «anoncvs».
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs.freebsd.org (128.46.156.46)' can't be established.
@@ -584,7 +584,7 @@ Warning: Permanently added 'anoncvs.freebsd.org' (DSA) to the list of known host
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
% cvs login
@@ -598,7 +598,7 @@ Alla richiesta, inserire la password «anoncvs».
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
% cvs login
@@ -612,7 +612,7 @@ Alla richiesta, inserire la password «anoncvs».
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
% cvs login
@@ -683,7 +683,7 @@ Una volta che ti sei procurato una delta base come punto di partenza, avrai biso
Per applicare le delta, fai come segue:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/the/stuff
# ctm -v -v /where/you/store/your/deltas/src-xxx.*
@@ -727,7 +727,7 @@ Puoi controllare la lista dei file sui quali CTM opererà specificando un'espres
Per esempio, per estrarre una copia aggiornata del file [.filename]#lib/libc/Makefile# dalla tua collezione di delta CTM, esegui i comandi seguenti:
-[source,bash]
+[source,shell]
....
# cd /dove/vuoi/estrarre/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -930,7 +930,7 @@ Il file [.filename]#refuse# sostanzialmente indica a CVSup che non dovrebbe pren
Il file [.filename]#refuse# ha veramente un formato molto semplice; esso contiene semplicemente i nomi dei file o delle directory che non desideri scaricare. Per esempio, se non parli altre lingue oltre all'inglese e al tedesco, e non hai la necessità di leggere la traduzione in tedesco della documentazione, puoi mettere le seguenti righe nel tuo file [.filename]#refuse#:
-[source,bash]
+[source,shell]
....
doc/bn_*
doc/da_*
@@ -958,7 +958,7 @@ Con questa utile funzionalità, quegli utenti che hanno una connessione lenta o
Sei ora pronto per provare un aggiornamento. La riga di comando per farlo è molto semplice:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -967,7 +967,7 @@ dove [.filename]#supfile# è naturalmente il nome del [.filename]#supfile# che h
Poichè in questo esempio stai aggiornando il tuo albero dei sorgenti [.filename]#/usr/src#, avrai bisogno di eseguire il programma come `root` affinchè `cvsup` abbia i permessi necessari per aggiornare i tuoi file. Avendo appena creato il tuo file di configurazione, e non avendo mai usato questo programma prima ad ora, tutto ciò potrebbe renderti un pò nervoso. Esiste un semplice modo per provare la sincronizzazione senza toccare i tuoi preziosi file. Crea una directory vuota in qualche posto, e richiamala come argomento sulla riga di comando:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -977,7 +977,7 @@ La directory che hai specificato sarà usata come directory di destinazione per
Se non stai utilizzando X11 o se non ti piacciono le GUI, dovresti aggiungere un paio di opzioni alla riga di comando quando esegui `cvsup`:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
@@ -1338,7 +1338,7 @@ Il funzionamento di Portsnap è controllato dal file di configurazione [.filenam
====
Se Portsnap è installato dalla collezione dei port di FreeBSD, userà il file di configurazione posto in [.filename]#/usr/local/etc/portsnap.conf# invece di [.filename]#/etc/portsnap.conf#. Questo file di configurazione non viene creato quando viene installato il port, ma viene dato un file di configurazione di base; per copiarlo nella giusta posizione, esegui il comando seguente:
-[source,bash]
+[source,shell]
....
# cd /usr/local/etc && cp portsnap.conf.sample portsnap.conf
....
@@ -1349,14 +1349,14 @@ Se Portsnap è installato dalla collezione dei port di FreeBSD, userà il file d
La prima volta che man:portsnap[8] viene eseguito, ha bisogno di scaricare una snapshot compressa dell'intero albero dei port in [.filename]#/var/db/portsnap/# (o [.filename]#/usr/local/portsnap/# se Portsnap è stato installato dalla collezione dei port). Dall'inizio del 2006 la sua dimensione è di circa 41 MB.
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
Una volta che la snapshot compressa è stata scaricata, una copia dell'albero dei port può estratta in [.filename]#/usr/ports/#. Questo è necessario perfino se l'albero dei port è già stato creato in quella directory (es., usando CVSup), poichè stabilisce un punto di inizio dal qualche `portsnap` può determinare quale parte dell'albero dei port necessita di essere aggiornata.
-[source,bash]
+[source,shell]
....
# portsnap extract
....
@@ -1370,7 +1370,7 @@ Nell'installazione di default la directory [.filename]#/usr/ports# non viene cre
Dopo che una prima snapshot compressa dell'albero dei port è stata scaricata ed estratta in [.filename]#/usr/ports/#, l'aggiornamento dell'albero dei port consiste in due passi: _scaricando_ gli aggiornamenti della snapshot compressa, e usare questi per _aggiornare_ l'albero dei port effettivo. Questi due passi possono essere specificati a `portsnap` con un comando singolo.
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -1379,7 +1379,7 @@ Dopo che una prima snapshot compressa dell'albero dei port è stata scaricata ed
====
Alcune versioni vecchie di `portsnap` non supportano questa sintassi; se fallisce, prova in questo modo:
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
diff --git a/documentation/content/it/books/handbook/multimedia/_index.adoc b/documentation/content/it/books/handbook/multimedia/_index.adoc
index bfbcc25bc7..c6f9b1d2d3 100644
--- a/documentation/content/it/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/it/books/handbook/multimedia/_index.adoc
@@ -86,7 +86,7 @@ Prima di iniziare, dovresti conoscere il modello della scheda che possiedi, il c
Per usare il tuo dispositivo audio, dovrai caricare i driver corretti. Il caricamento del driver del dispositivo può essere fatto in due modi. Il metodo più semplice consiste semplicemente nel caricare un modulo nel kernel per la tua scheda audio con man:kldload[8] che può essere fatto sia da linea di comando:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -100,7 +100,7 @@ snd_emu10k1_load="YES"
Questi esempi sono per la scheda audio Creative SoundBlaster(R) Live!. Altri moduli sonori disponibili sono elencati in [.filename]#/boot/loader.conf#. Se hai dei dubbi su quale driver usare, potresti provare a caricare il modulo [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -159,7 +159,7 @@ Il settaggi qui sopra sono quelli di default. In alcuni casi, potresti avere la
Dopo aver riavviato con il nuovo kernel, o dopo aver caricato il modulo richiesto, la scheda audio dovrebbe apparire nel tuo buffer dei messaggi (man:dmesg[8]) in modo simile a quanto segue:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -168,7 +168,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
Lo stato della scheda audio può essere verificato leggendo il file [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -181,7 +181,7 @@ L'output del tuo sistema potrebbe essere diverso. Se nessun dispositivo [.filena
Se tutto va bene, ora dovresti avere una scheda audio funzionante. Se i pin di audio-out del tuo drive CD-ROM o DVD-ROM sono collegati correttamente alla scheda audio, puoi inserire un CD nel drive e riprodurlo con man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -190,7 +190,7 @@ Varie applicazioni, come package:audio/workman[] possono offrire una migliore in
Un altro modo veloce per controllare se la scheda trasmette dati al nodo [.filename]#/dev/dsp# è questo:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -238,7 +238,7 @@ FreeBSD ti permette di fare questo attraverso i _Virtual Sound Channels_, che po
Per impostare il numero dei canali virtuali, ci sono due variabili sysctl che, se sei l'utente `root`, possono essere impostate così:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4
@@ -282,7 +282,7 @@ Il port package:audio/mpg123[] è un lettore MP3 alternativo, da riga di comando
mpg123 può essere eseguito specificando il dispositivo audio e il nome del file MP3 sulla riga di comando, come mostrato qui sotto:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -305,14 +305,14 @@ Il tool `cdda2wav`, che fa parte della suite package:sysutils/cdrtools[], viene
Mentre il CD audio è nel lettore, può essere eseguito il seguente comando (come `root`) per estrarre un intero CD in singoli (per traccia) file WAV:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav supporta anche i lettori CDROM ATAPI (IDE). Per estrarre da un lettore IDE, specifica il nome del dispositivo al posto nel numero dell'unità SCSI. Ad esempio, per estrarre la traccia 7 dal lettore IDE:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -321,14 +321,14 @@ Il `-D _0,1,0_` indica il dispositivo SCSI [.filename]#0,1,0#, che corrisponde a
Per estrarre tracce singole, usa l'opzione `-t` come mostrato:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Questo esempio estrae la settima traccia del CD audio. Per estrarre una serie di tracce, per esempio dalla traccia uno alla sette, specifica un intervallo:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -342,7 +342,7 @@ Al giorno d'oggi, il programma di codifica in mp3 da scegliere è lame. Lame pu
Usando i file WAV estratti, il seguente comando convertirà [.filename]#audio01.wav# in [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Titolo" \
@@ -385,7 +385,7 @@ Scrittura su stdout con mpg123:
XMMS scrive un file nel formato WAV, mentre mpg123 converte l'MP3 direttamente in dati audio PCM. Entrambi questi formati possono essere usati con cdrecord per creare CD audio. Devi utilizzare PCM con man:burncd[8]. Se usi file WAV, noterai un breve ticchettio all'inizio di ogni traccia, questo suono è l'intestazione del file WAV. Puoi semplicemente rimuovere l'intestazione del file WAV con l'utility SoX (può essere installata dal port o dal package package:audio/sox[]):
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -401,7 +401,7 @@ Prima di iniziare, dovresti conoscere il modello della scheda video che possiedi
È una buona idea avere un piccolo file MPEG che possa essere trattato come un file di test per la valutazione di vari riproduttori e opzioni. Visto che alcuni riproduttori di DVD cercheranno di default i DVD in [.filename]#/dev/dvd#, o hanno questo nome di dispositivo codificato permanentemente al loro interno, potresti trovare utile creare dei link simbolici al dispositivo corretto:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -409,7 +409,7 @@ Prima di iniziare, dovresti conoscere il modello della scheda video che possiedi
Nota che, data la natura del man:devfs[5], i collegamenti creati a mano come questi non rimarranno se riavvii il sistema. Per creare i collegamenti simbolici automaticamente quando avvii il sistema, aggiungi le seguenti righe in [.filename]#/etc/devfs.conf#:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0c /dev/dvd
# ln -sf /dev/acd0c /dev/rdvd
@@ -445,14 +445,14 @@ Xorg e XFree86(TM) 4.X hanno un'estensione chiamata _XVideo_ (aka Xvideo, aka Xv
Per controllare se l'estensione sta girando, usa `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo è supportato dalla tua scheda se il risultato è simile a:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -528,7 +528,7 @@ Inoltre tieni presente che i formati elencati (YUV2, YUV12, ecc) non sono presen
Se il risultato è:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -585,7 +585,7 @@ MPlayer è stata sviluppata di recente ed è un player in rapida evoluzione. Gli
MPlayer è reperibile sotto package:multimedia/mplayer[]. MPlayer effettua una serie di controlli sull'hardware durante il processo di compilazione, che ha come risultato un binario che non potrà essere considerato portabile da una piattaforma ad un'altra. Questo è il motivo per cui risulta importante compilarlo usando il port piuttosto che il pacchetto contenente il binario. Inoltre, ulteriori opzioni possono essere specificate nella riga di comando di `make`, come descritto nel [.filename]#Makefile# e all'inizio della compilazione.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -612,7 +612,7 @@ La documentazione HTML di MPlayer è molto istruttiva. Qualora il lettore trovas
Ogni utente che voglia usare MPlayer deve creare la directory [.filename]#.mplayer# sotto la propria home. Per creare questa directory necessaria, puoi digitare il seguente comando:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -622,27 +622,27 @@ Le opzioni del comando `mplayer` sono elencate nella pagina del manuale. Per qua
Per riprodurre un file, ad esempio [.filename]#testfile.avi#, usando una delle varie interfacce video usa l'opzione `-vo`:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -651,7 +651,7 @@ Per riprodurre un file, ad esempio [.filename]#testfile.avi#, usando una delle v
Per riprodurre un DVD, sostituisci [.filename]#testfile.avi# con l'opzione `dvd://_N_ -dvd-device _DISPOSITIVO_` dove _N_ corrisponde al numero del titolo da riprodurre e [.filename]#DISPOSITIVO# al dispositivo che identifica il DVD-ROM. Per esempio, per riprodurre il terzo titolo da [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -676,7 +676,7 @@ zoom=yes
In ultimo, è possibile usare `mplayer` per estrarre una traccia DVD in un file [.filename]#.vob#. Per estrarre la seconda traccia dal DVD, digita questo:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -688,7 +688,7 @@ Il file ottenuto, [.filename]#out.vob#, sarà in formato MPEG e potrà manipolat
Prima di usare `mencoder` è una buona idea familiarizzare con le opzioni contenute nella documentazione HTML. Esiste anche una pagina man, ma non è utile senza la documentazione HTML. Esiste un numero considerevole di modi per migliorare la qualità, un bitrate più basso, cambiare codifica ed alcuni di questi trucchi può fare la differenza tra prestazioni più o meno accettabili. Di seguito un paio di esempi per cominciare. Prima di tutto, una semplice copia:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -697,7 +697,7 @@ Combinazioni errate di opzioni da riga di comando possono portare a file di outp
Per convertire il file [.filename]#input.avi# in formato MPEG4 con l'audio codificato in MPEG3 (è necessario package:audio/lame[]):
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -720,14 +720,14 @@ Comparato con MPlayer, xine offre maggiori caratteristiche all'utente ma, allo s
Di default, xine si avvierà con un'interfaccia grafica. Si possono quindi usare i menu per aprire per aprire un file specifico:
-[source,bash]
+[source,shell]
....
% xine
....
Alternativamente, può essere invocato per aprire direttamente un file senza l'interfaccia grafica, con il comando:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -739,7 +739,7 @@ Il software transcode non è un riproduttore, piuttosto un insieme di strumenti
Durante la compilazione del port package:multimedia/transcode[] possono essere specificate diverse opzioni, noi ti consigliamo il comando seguente per compilare transcode:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -749,7 +749,7 @@ I settaggi proposti dovrebbero essere sufficienti per la maggior parte degli ute
Per illustrare le capacità di `transcode`, viene dato un esempio che mostra come convertire un file DivX in un file PAL MPEG-1 (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -826,7 +826,7 @@ options OVERRIDE_TUNER=6
o puoi usare direttamente man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -879,7 +879,7 @@ A seconda del tipo di chipset USB sulla tua scheda madre, hai bisogno solo di un
Se non intendi ricompilare un kernel custom ed il tuo kernel non è il [.filename]#GENERIC#, puoi direttamente caricare il modulo del driver del dispositivo di man:uscanner[4] con il comando man:kldload[8]:
-[source,bash]
+[source,shell]
....
# kldload uscanner
....
@@ -893,7 +893,7 @@ uscanner_load="YES"
Dopo aver riavviato con il kernel corretto, o dopo aver caricato il modulo necessario, attacca il tuo scanner USB. Nel buffer dei messaggi di sistema (man:dmesg[8]) dovrebbe apparire una riga che mostra il riconoscimento dello scanner:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -912,7 +912,7 @@ device pass
Una volta che il kernel è stato correttamente compilato ed installato, dovresti vedere i dispositivi nel buffer dei messaggi di sistema, al momento del boot:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -921,7 +921,7 @@ pass2: 3.300MB/s transfers
Se il tuo scanner non era acceso al momento dell'avvio, è ancora possibile forzare manualmente il riconoscimento attraverso uno scan del bus SCSI con il comando man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -932,7 +932,7 @@ Re-scan of bus 3 was successful
A questo punto lo scanner apparirà nella lista dei device SCSI:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -949,7 +949,7 @@ Il sistema SANE è diviso in due parti: il backend (package:graphics/sane-backen
La prima cosa da fare è installare il port o il pacchetto package:graphics/sane-backends[]. Quindi, usa il comando `sane-find-scanner` per verificare il riconoscimento dello scanner da parte del sistema SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -964,7 +964,7 @@ Alcuni scanner USB richiedono il caricamento di un firmware, ciò è spiegato ne
Adesso dobbiamo verificare se lo scanner sarà identificato da un frontend di scanning. Di default, il backend di SANE fornisce un programma da linea di comando chiamato man:sane[1]. Questo comando ti permette di elencare i dispositivi ed effettuare un'acquisizione di immagini da linea di comando. L'opzione `-L` è usata per ottenere una lista di scanner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -974,7 +974,7 @@ Nessun output o un messaggio che dice che nessuno scanner è stato identificato
Ad esempio, usando <<scanners-kernel-usb>>, `sane-find-scanner` su uno scanner USB otteniamo la seguente informazione:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device
@@ -983,7 +983,7 @@ found USB scanner (UNKNOWN vendor and product) at device
Lo scanner è stato riconosciuto correttamente, usa l'interfaccia USB ed è attaccato al nodo del dispositivo [.filename]#/dev/uscanner0#. Ora possiamo testare se lo scanner è correttamente identificato:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1002,7 +1002,7 @@ usb /dev/uscanner0
Sei invitato a leggere i commenti presenti nel file di configurazione del backend così come le pagine man del backend per più dettagli e per la corretta sintassi da usare. Ora possiamo verificare se lo scanner è identificato:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1020,7 +1020,7 @@ Xsane (package:graphics/xsane[]) è un altro comune frontend grafico di scanning
Tutte le operazioni precedenti sono state compiute con privilegi di `root`. Tuttavia potresti aver bisogno che altri utenti abbiano accesso allo scanner. L'utente necessiterà permessi di lettura e scrittura sul nodo di dispositivo usato dallo scanner. Per esempio, il nostro scanner USB usa il nodo di dispositivo [.filename]#/dev/uscanner0# che appartiene al gruppo `operator`. Aggiungendo l'utente `joe` al gruppo `operator` gli permetterà di usare lo scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m joe
....
diff --git a/documentation/content/it/books/handbook/network-servers/_index.adoc b/documentation/content/it/books/handbook/network-servers/_index.adoc
index 494aa60890..360073bac1 100644
--- a/documentation/content/it/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/it/books/handbook/network-servers/_index.adoc
@@ -98,7 +98,7 @@ inetd_enable="NO"
in [.filename]#/etc/rc.conf# si abiliterà o meno la partenza di inetd al boot. Il comando:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd rcvar
....
@@ -144,7 +144,7 @@ Quando viene apportata una modifica a [.filename]#/etc/inetd.conf#, si può forz
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -376,14 +376,14 @@ only
Il demone mountd deve essere forzato a rileggere il file [.filename]#/etc/exports# ogni volta che lo modifichi, cosicchè i cambiamenti abbiano effetto. Questo può essere ottenuto inviando un segnale HUP al processo `mountd`:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
o invocando lo script `mountd` man:rc[8] con i parametri appropriati:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -394,7 +394,7 @@ Alternativamente, un reboot farà sì che FreeBSD imposti tutto correttamente.
Sul server NFS:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -403,14 +403,14 @@ Sul server NFS:
Sul client NFS:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Ora dovrebbe essere tutto pronto per montare un file system remoto. In questi esempi il nome del server sarà `server` e quello del client sarà `client`. Se vuoi solo temporaneamente montare un file system remoto o anche testare la configurazione, basta che esegui un comando come questo come utente `root` sul client:
-[source,bash]
+[source,shell]
....
# mount server:/home
/mnt
@@ -439,7 +439,7 @@ rpc_statd_enable="YES"
Avvia l'applicazione con:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/nfslocking start
....
@@ -468,7 +468,7 @@ Un accesso ad un file in [.filename]#/host/foobar/usr# dovrebbe comunicare a amd
====
Puoi osservare i mount disponibili di un host remoto con il comando `showmount`. Ad esempio, per vedere i mounts di un host chiamato `foobar`, puoi usare:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -522,7 +522,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
Come comando manuale di mount da `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -536,7 +536,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
Come comando di mount manuale su `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -700,7 +700,7 @@ Ora, tutto quello che devi fare è eseguire il comando `/etc/netstart` come supe
Le _mappe NIS_ sono file di database, che sono conservati nella directory [.filename]#/var/yp#. Sono generati da file di configurazione nella directory [.filename]#/etc# del NIS master, con una eccezione: il file [.filename]#/etc/master.passwd#. C'è un buon motivo per questo, infatti normalmente non vuoi che siano propagate le password a `root` e ad altri account amministrativi a tutti gli altri server nel dominio NIS. Così prima di inizializzare le mappe NIS, dovresti:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -716,7 +716,7 @@ Accertati che il file [.filename]#/var/yp/master.passwd# non sia nè leggibile d
Quando hai finito, è il momento di inizializzare le mappe NIS! FreeBSD include uno script chiamato `ypinit` che lo fa per te (leggi la sua pagina di manuale per dettagli). Nota che questo script è disponibile sulla maggior parte dei sistemi operativi UNIX(R) ma non su tutti. Su Digital Unix/Compaq Tru64 UNIX è chiamato `ypsetup`. Poichè stiamo generando mappe per un NIS master, passeremo l'opzione `-m` al comando `ypinit`. Per generare le mappe NIS, supponendo che tu abbia già eseguito i passi di cui sopra, esegui:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -746,7 +746,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` dovrebbe aver creato [.filename]#/var/yp/Makefile# da [.filename]#/var/yp/Makefile.dist#. Quando creato, questo file assume che tu stia operando su un ambiente NIS a server singolo con solo macchine FreeBSD. Dal momento che `test-domain` ha anche un server slave, devi editare [.filename]#/var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -764,7 +764,7 @@ NOPUSH = "True"
Impostare un server NIS slave è anche più semplice che impostare il master. Loggati al server slave ed edita il file [.filename]#/etc/rc.conf# esattamente come hai fatto col server master. L'unica differenza è che ora dobbiamo usare l'opzione `-s` quando eseguiamo `ypinit`. L'opzione `-s` richiede che il nome del server NIS sia passato, così la nostra linea di comando assomiglia alla seguente:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington
test-domain
@@ -926,7 +926,7 @@ Nel nostro laboratorio c'è una macchina `basie` che si suppone sia una workstat
C'è un modo di impedire a specifici utenti di loggarsi ad una macchina, anche se sono presenti nel database NIS. Per farlo, tutto quello che devi fare è aggiungere `-username` alla fine del file [.filename]#/etc/master.passwd# sulla macchina client, dove _username_ è lo username dell'utente di cui vuoi impedire l'accesso. E' meglio fare questo con `vipw` dato che `vipw` farà un controllo di correttezza dei tuoi cambiamenti a [.filename]#/etc/master.passwd#, e ricostruirà automaticamente il database delle password quando hai finito di editarlo. Ad esempio, se vogliamo impedire l'accesso all'utente `bill` verso l'host `basie` faremmo:
-[source,bash]
+[source,shell]
....
basie# vipw
[aggiungi -bill alla fine del file, poi esci]
@@ -1012,7 +1012,7 @@ Gestire questa situazione con i netgroup offre molti vantaggi. Non c'è bisogno
Il primo passo è l'inizializzazione della mappa NIS netgroup. man:ypinit[8] di FreeBSD non crea questa mappa di default, ma la sua implementazione NIS la supporterà una volta che è stata creata. Per aggiungere una linea alla mappa, semplicemente usa il comando
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1056,7 +1056,7 @@ Puoi ripetere questo processo se hai bisogno di più di 225 utenti all'interno d
Attivare e distribuire la tua nuova mappa NIS è facile:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1064,7 +1064,7 @@ ellington# make
Questo genererà le tre mappe NIS [.filename]#netgroup#, [.filename]#netgroup.byhost# e [.filename]#netgroup.byuser#. Usa man:ypcat[1] per controllare che le tue nuove mappe NIS siano disponibili:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k
netgroup
@@ -1193,7 +1193,7 @@ Ci sono ancora un paio di cose che dovrai cambiare ora che operi in ambiente NIS
* Ogni volta che devi aggiungere un utente al laboratorio devi aggiungerlo _solo_ al server master NIS e _devi ricordarti di ricostruire le mappe NIS_. Se ti dimentichi di farlo il nuovo utente non sarà in grado di loggarsi in alcuna macchina eccetto che sul server NIS master. Per esempio, se abbiamo bisogno di aggiungere un nuovo utente `jsmith` al laboratorio, faremmo:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1244,7 +1244,7 @@ Altri valori possibili per l'opzione `passwd_format` includono `blf` e `md5` (pe
Se hai fatto modifiche a [.filename]#/etc/login.conf#, dovrai anche ricostruire il database delle possibilità di login, il che si ottiene eseguendo il seguente comando come `root`:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1417,7 +1417,7 @@ Sostituisci il nome dell'interfaccia `dc0` con l'interfaccia (o le interfacce, s
Quindi, puoi procedere ad avviare il server con il seguente comando:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd.sh start
....
@@ -1542,7 +1542,7 @@ Dato che BIND è installato di default, configurarlo è relativamente semplice.
La configurazione di default di named è quella di un name server basilare, eseguito in ambiente man:chroot[8]. Per avviare il server una volta con questa configurazione, usa il seguente comando:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named forcestart
....
@@ -1564,7 +1564,7 @@ I file di configurazione per named al corrente risiedono nella directory [.filen
Per configurare una zona master per il localhost visita la directory [.filename]#/etc/namedb# ed esegui il seguente comando:
-[source,bash]
+[source,shell]
....
# sh make-localhost
....
@@ -1967,28 +1967,28 @@ L'indirizzo email al quale i problemi riguardanti il server dovrebbero essere in
Apache non viene eseguito dal super server inetd a differenza di molti altri server di rete. È configurato per girare standalone per migliori performance per gestire le richieste HTTP in entrata dai client web browser. Un wrapper shell script è incluso per rendere il più semplice possibile lo start, lo stop ed il restart del server. Per avviare Apache per la prima volta, esegui:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
Puoi fermare il server in ogni istante digitando:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
Dopo aver fatto modifiche al file di configurazione per una qualsiasi ragione, avrai bisogno di riavviare il server:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
Per riavviare Apache senza mandare in abort le connessioni correnti, esegui.
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2031,7 +2031,7 @@ NameVirtualHost *
Se il tuo webserver era nominato `www.domain.tld` e tu avessi voluto installare un dominio virtuale per `www.someotherdomain.tld ` avresti dovuto aggiungere le seguenti entry a [.filename]#httpd.conf#:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2076,7 +2076,7 @@ Per integrare supporto a PHP5 per il web server Apache, inizia con l'installare
Se il port package:lang/php5[] viene installato per la prima volta, le `OPTIONS` disponibili saranno mostrate automaticamente. Se non viene mostrato un menu, ad esempio perché il port package:lang/php5[] è stato installato qualche volta in passato, è sempre possibile rivedere il menu a dialogo con le opzioni eseguendo:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2108,7 +2108,7 @@ AddModule mod_php5.c
Una volta completato, una semplice chiamata al comando `apachectl` per un tranquillo restart è richiesto per caricare il modulo PHP:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2121,7 +2121,7 @@ Ad esempio, per aggiungere supporto al database MySQL a PHP5, semplicemente inst
Dopo aver installato un'estensione, il server Apache deve essere riavviato per caricare i cambiamenti della nuova configurazione:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2154,7 +2154,7 @@ Come spiegato in <<network-inetd-reread>>, la configurazione di inetd deve esser
Ora puoi loggarti al tuo server FTP digitando:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2227,7 +2227,7 @@ Samba ha molti modelli diversi di backend di autenticazione. Puoi autenticare i
Assumendo che il backend usato sia quello di default, `smbpasswd`, il file [.filename]#/usr/local/private/smbpasswd# deve essere creato per permettere a Samba di autenticare i client. Se tu volessi dare ai tuoi account UNIX(R) accesso da client Windows(R), usa il seguente comando:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2262,7 +2262,7 @@ In questo modo Samba viene avviato automaticamente ad ogni avvio del sistema.
Per avviare Samba digita:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2276,7 +2276,7 @@ Samba attualmente consiste di tre demoni separati. Dovresti osservare che entram
Puoi anche fermare Samba in ogni istante digitando:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba stop
....
@@ -2362,7 +2362,7 @@ Per assicurarsi che il server NTP sia avviato al momento del boot, aggiungi la l
Per avviare il server senza riavviare la tua macchina, esegui `ntpd` accertandoti di specificare ogni parametro addizionale in `ntpd_flags` presente in [.filename]#/etc/rc.conf#. Per esempio:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
diff --git a/documentation/content/it/books/handbook/ports/_index.adoc b/documentation/content/it/books/handbook/ports/_index.adoc
index 74cba65210..2f6a1daeff 100644
--- a/documentation/content/it/books/handbook/ports/_index.adoc
+++ b/documentation/content/it/books/handbook/ports/_index.adoc
@@ -127,7 +127,7 @@ La lista delle applicazioni disponibili su FreeBSD cresce continuamente. Fortuna
* Se non conosci il nome dell'applicazione che desideri, prova ad usare un sito come FreshMeat (http://www.freshmeat.net/[http://www.freshmeat.net/]) per trovare l'applicazione, quindi controlla sul sito di FreeBSD per vedere se è già stato effettuato il porting.
* Se sei a conoscenza del nome esatto del port, ma non sai in quale categoria esso sia, puoi usare il comando man:whereis[1] Semplicemente digita `whereis file`, dove _file_ è il programma che vuoi installare. Se viene trovato sul tuo sistema, ti verrà indicato dove si trova, in modo simile a quanto segue:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -136,7 +136,7 @@ lsof: /usr/ports/sysutils/lsof
Questo ci dice che `lsof` (un'utility di sistema) si trova nella directory [.filename]#/usr/ports/sysutils/lsof#.
* Un altro modo per trovare un determinato port è quello di usare il meccanismo di ricerca contenuto nella collezione dei port. Per usare questo servizio di ricerca, devi posizionarti nella directory [.filename]#/usr/ports#. Una volta in quella directory, lancia `make search name=nome-programma` dove _nome-programma_ è il nome del programma che vuoi cercare. Per esempio, se vuoi cercare `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -166,7 +166,7 @@ Puoi usare l'utility man:pkg_add[1] per installare un package di FreeBSD da un f
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -197,7 +197,7 @@ ftp> exit
Se non hai una raccolta di package locale (per esempio il set dei CDROM di FreeBSD) allora probabilmente ti risulterà più facile usare man:pkg_add[1] con l'opzione `-r`. In questo modo man:pkg_add[1] determina automaticamente la corretta release e il giusto formato dell'oggetto, quindi scarica il package da un sito FTP e lo installa.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -217,7 +217,7 @@ La struttura delle directory del sistema dei package eguaglia quella dei port; q
L'utility man:pkg_info[1] elenca e descrive i vari package installati.
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 Un comune sistema di distribuzione dei file in rete ottimizzato per CVS
@@ -227,7 +227,7 @@ docbook-1.2 Meta-port delle varie versioni del DTD DocBook
L'utility man:pkg_version[1] riassume le versioni di tutti i package installati. Paragona le versioni dei package con le versioni correnti trovate nell'albero dei port.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -263,7 +263,7 @@ I simboli nella seconda colonna indicano il risultato del confronto tra la versi
Per rimuovere un package installato in precedenza, usa l'utility man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
@@ -292,7 +292,7 @@ Questo metodo richiede ancora l'uso di sysinstall per installare manualmente la
. Esegui da `root sysinstall` (`/stand/sysinstall` nelle versioni di FreeBSD precedenti alla 5.2) come mostrato qui sotto:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -316,7 +316,7 @@ Questo è un rapido metodo che utilizza CVSup per ottenere la collezione dei por
. Installa il package package:net/cvsup-without-gui[]:
+
-[source,bash]
+[source,shell]
....
# pkg_add -r cvsup-without-gui
....
@@ -324,7 +324,7 @@ Questo è un rapido metodo che utilizza CVSup per ottenere la collezione dei por
Guarda crossref:mirrors[cvsup-install,Installazione di CVSup] (crossref:mirrors[cvsup-install,Installazione]) per maggiori dettagli.
. Esegui `cvsup`:
+
-[source,bash]
+[source,shell]
....
# cvsup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -341,7 +341,7 @@ Qualcuno potrebbe voler usare il suo [.filename]#ports-supfile#, per esempio per
.. Cambia _CHANGE_THIS.FreeBSD.org_ in un server CVSup vicino a te. Guarda crossref:mirrors[cvsup-mirrors,Mirror CVSup] (crossref:mirrors[cvsup-mirrors,Siti CVSup]) per una lista completa di siti mirror.
.. E ora esegui `cvsup`, in questo modo:
+
-[source,bash]
+[source,shell]
....
# cvsup -L 2 /root/ports-supfile
....
@@ -388,14 +388,14 @@ Le immagini ufficiali su CDROM del progetto FreeBSD non includono più i distfil
Metti il tuo CDROM di FreeBSD nell'apposito lettore. Montalo su [.filename]#/cdrom#. (Se usi un punto di mount differente, setta la variabile make `CD_MOUNTPTS`.) Per prima cosa, vai nella directory del port che vuoi installare:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Una volta dentro la directory [.filename]#lsof#, vedrai lo scheletro del port. Il prossimo passo riguarda la compilazione, o "costruzione", del port. Questo viene fatto semplicemente digitando `make` al prompt. Una volta che hai fatto questo, dovresti vedere qualcosa simile a quanto segue:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -420,7 +420,7 @@ Una volta dentro la directory [.filename]#lsof#, vedrai lo scheletro del port. I
Nota che una volta terminata la compilazione ritornerai al tuo prompt. Il prossimo passo riguarda l'installazione del port. Per installarlo, devi semplicemente affiancare una parola al comando `make`, e questa parola è `install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -461,7 +461,7 @@ L'installazione di un port da Internet viene fatta nello stesso modo con cui vie
I passi richiesti sono gli stessi:
-[source,bash]
+[source,shell]
....
# make install
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -508,7 +508,7 @@ Puoi compilare tutti i port di una categoria o perfino tutti i port eseguendo `m
In alcuni casi rari, gli utenti potrebbero voler acquisire i tarball da un sito diverso dal `MASTER_SITES` (la locazione di default dove i file sono scaricati). Puoi sovrascrivere l'opzione `MASTER_SITES` con il comando seguente:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -526,14 +526,14 @@ Alcuni port permettono (o perfino richiedono) l'impostazione di alcune opzioni d
Qualche volta è utile (o necessario) utilizzare directory per i distfile e i port diverse da quelle di default. Le variabili `PORTSDIR` e `PREFIX` possono sovrascrivere le directory di default. Per esempio:
-[source,bash]
+[source,shell]
....
# make PORTSDIR=/usr/home/example/ports install
....
compilerà il port in [.filename]#/usr/home/example/ports# e installerà ogni cosa sotto [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -542,7 +542,7 @@ compilerà in [.filename]#/usr/ports# ed installerà in [.filename]#/usr/home/ex
E naturalmente,
-[source,bash]
+[source,shell]
....
# make PORTSDIR=../ports PREFIX=../local install
....
@@ -560,7 +560,7 @@ Alcuni port che usano `imake` (una parte dell'X Window System) non funzionano be
Ora che sai come installare i port, probabilmente ti chiederai come rimuoverli, caso mai ne installassi uno e successivamente ti accorgessi che hai installato il port sbagliato. Rimuoveremo il port utilizzato nel nostro esempio precedente (che era `lsof` se non sei stato attento). Come con l'installazione dei port, la prima cosa che devi fare è andare nella directory del port, [.filename]#/usr/ports/sysutils/lsof#. Dopo aver cambiato directory, sei pronto per disinstallare `lsof`. Questo viene fatto con il comando `make deinstall`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make deinstall
@@ -612,7 +612,7 @@ I passi precisi che devi seguire per configurare un'applicazione sono ovviamente
* Usa man:pkg_info[1] per scoprire quali file sono stati installati, e dove sono stati installati. Per esempio, se hai appena installato la versione 1.0.0 di FooPackage, allora questo comando
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -621,7 +621,7 @@ mostrerà tutti i file installati dal package. Fai molta attenzione ai file nell
+
Se non sei sicuro della versione dell'applicazione che hai appena installato, questo comando
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep foopackage
....
@@ -630,7 +630,7 @@ troverà tutti i package installati che contengono nel nome _foopackage_. Rimpia
* Una volta che hai scoperto dove sono state posizionate le pagine man dell'applicazione, esaminale usando man:man[1]. Analogamente, esamina i file di configurazione d'esempio, ed ogni ulteriore documentazione che può essere stata fornita.
* Se l'applicazione ha un sito web, cerca della documentazione aggiuntiva, le domande più frequenti (FAQ), ed altro ancora. Se non sei sicuro dell'indirizzo del sito web questo potrebbe essere presente nell'output di
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/it/books/handbook/preface/_index.adoc b/documentation/content/it/books/handbook/preface/_index.adoc
index e775854ce5..c47da5b3ee 100644
--- a/documentation/content/it/books/handbook/preface/_index.adoc
+++ b/documentation/content/it/books/handbook/preface/_index.adoc
@@ -224,21 +224,21 @@ Vuol dire che l'utente deve digitare i tasti kbd:[Ctrl] e kbd:[X] contemporaneam
Gli esempi che iniziano con [.filename]#E:\# indicano un comando MS-DOS(R). A meno di note specifiche, questi comandi possono essere eseguiti da una finestra "Prompt dei comandi" in un moderno ambiente Microsoft(R) Windows(R).
-[source,bash]
+[source,shell]
....
E:\ tools\fdimage floppies\kern.flp A:
....
Gli esempi che iniziano con # indicano un comando che deve essere invocato dal superuser in FreeBSD. Puoi effettuare il login come `root` per digitare il comando, o loggarti con il tuo normale account e usare man:su[1] per acquisire i privilegi da superuser.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Gli esempi che iniziano con % indicano un comando che deve essere eseguito da un normale utente. Dove non indicato, è usata la sintassi C-shell per impostare variabili di ambiente e altri comandi di shell.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/it/books/handbook/serialcomms/_index.adoc b/documentation/content/it/books/handbook/serialcomms/_index.adoc
index 8ec67ed605..4f6b3ee0d6 100644
--- a/documentation/content/it/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/it/books/handbook/serialcomms/_index.adoc
@@ -345,7 +345,7 @@ Per vedere se il tuo kernel riconosce una delle tue porte seriali, guarda i mess
Per vedere solo i messaggi che hanno la parola `sio`, usa il comando:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -354,7 +354,7 @@ Per vedere solo i messaggi che hanno la parola `sio`, usa il comando:
Ad esempio, su un sistema con quattro porte seriali, questi sono i messaggi dati dall'avvio del kernel specifici delle porte seriali:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -402,7 +402,7 @@ Uno script di shell di nome `MAKEDEV` nella directory [.filename]#/dev# gestisce
Dopo aver creato i nuovi file di dispositivo, fa attenzione nel controllare i permessi sui file (specialmente sui file [.filename]#/dev/cua*#) per assicurarti che solo gli utenti che dovrebbero effettivamente avere accesso a questi dispositivi possano leggerli e scriverli - magari non vorrai permettere al tuo utente medio di usare il tuo modem per chiamare verso l'esterno. I permessi predefiniti su [.filename]#/dev/cua*# dovrebbero essere adatti:
-[source,bash]
+[source,shell]
....
crw-rw---- 1 uucp dialer 28, 129 Feb 15 14:38 /dev/cuaa1
crw-rw---- 1 uucp dialer 28, 161 Feb 15 14:38 /dev/cuaia1
@@ -416,14 +416,14 @@ Questi permessi permettono all'utente `uucp` e agli utenti nel gruppo `dialer` d
Il dispositivo [.filename]#ttydN# (o [.filename]#cuadN#) è il normale dispositivo che si apre per le proprie applicazioni. Quando un processo apre il dispositivo, avrà un insieme di impostazioni di I/O predefinite per il terminale. Puoi visualizzare queste impostazioni con il comando:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
Quando cambi le impostazioni per questo dispositivo, queste rimangono efficaci finché il dispositivo non viene chiuso. Quando viene riaperto, ritorna all'insieme di default. Per effettuare dei cambiamenti all'insieme predefinito, modifica le impostazioni per il dispositivo di "stato iniziale". Ad esempio, per attivare di default modalità `CLOCAL`, comunicazione a 8 bit, e controllo di flusso `XON/XOFF` per [.filename]#ttyd5#, scrivi:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.init clocal cs8 ixon ixoff
....
@@ -437,7 +437,7 @@ Su FreeBSD 4.X, l'inizializzazione globale dei dispositivi seriali è controllat
Per evitare cambiamenti da parte di qualche applicazione, modifica il dispositivo di "blocco dello stato". Ad esempio, per bloccare la velocità di [.filename]#ttyd5# a 57600 bps, scrivi:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.lock 57600
....
@@ -543,7 +543,7 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
Dopo aver effettuato i cambiamenti necessari al file [.filename]#/etc/ttys# si deve mandare un segnale SIGHUP (hangup) al processo `init` affinché sia costretto a rileggere il suo file di configurazione. Ad esempio:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -570,14 +570,14 @@ Assicurati che il terminale e FreeBSD siano concordi sul valore di bps e sulle i
Assicurati che il processo `getty` sia attivo per quel terminale. Ad esempio, per avere una lista dei processi `getty` con `ps`, scrivi:
-[source,bash]
+[source,shell]
....
# ps -axww | grep getty
....
dovresti vedere una voce per il terminale. Ad esempio, la schermata seguente mostra che `getty` è in esecuzione sulla seconda porta seriale `ttyd1` e sta usando la voce `std.38400` in [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyd1
....
@@ -652,7 +652,7 @@ FreeBSD supporta interfacce di comunicazione EIA RS-232C (CCITT V.24) basate su
Come con i terminali, `init` lancia un processo `getty` per ogni porta seriale configurata per connessioni in ingresso. Ad esempio, se un modem è connesso a [.filename]#/dev/ttyd0#, il comando `ps ax` mostrerà questo:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyd0
....
@@ -758,7 +758,7 @@ Il tipo di terminale predefinito (`dialup` nell'esempio precedente) potrebbe dip
Dopo aver effettuato i cambiamenti a [.filename]#/etc/ttys#, puoi inviare un segnale HUP a `init` per fargli rileggere il file. Puoi usare il comando
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -871,7 +871,7 @@ Collega il modem al sistema FreeBSD, avvia il sistema, e, se il tuo modem ha luc
Se l'indicatore DTR non lampeggia, effettua il login sul sistema FreeBSD dalla console e dai il comando `ps ax` per verificare se FreeBSD sta cercando di eseguire un processo `getty` sulla porta corretta. Dovresti vedere linee come queste tra i processi mostrati:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd1
@@ -879,7 +879,7 @@ Se l'indicatore DTR non lampeggia, effettua il login sul sistema FreeBSD dalla c
Se vedi qualcosa di diverso, come questo:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyd0
....
@@ -940,7 +940,7 @@ Usa la frequenza di bps più alta supportata dal tuo modem per il valore di br.
O usa `cu` come `root` con il seguente comando:
-[source,bash]
+[source,shell]
....
# cu -llinea -s velocità
....
@@ -970,7 +970,7 @@ tip57600|Chiama un qualunque numero a 57600 bps:\
Poi puoi fare una cosa simile:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -985,7 +985,7 @@ cu115200|Usa cu per chiamare un numero qualsiasi a 115200bps:\
e digita:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1101,7 +1101,7 @@ Questa sezione presuppone che stai usando una configurazione di default e vuoi s
. Connetti il cavo seriale alla COM1 e al terminale.
. Per vedere tutti i messaggi di boot sulla console seriale, dai il comando seguente mentre sei loggato come superuser:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1198,7 +1198,7 @@ Le opzioni, eccetto `-P`, verranno passate al loader ([.filename]#/boot/loader#)
+
Quando avvii la tua macchina FreeBSD, il blocco di avvio scriverà il contenuto di [.filename]#/boot.config# sulla console. Ad esempio:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1235,7 +1235,7 @@ Dopo i messaggi precedenti, ci sarà una piccola pausa prima che il blocco di av
+
Premi un tasto qualsiasi, differente da Invio, alla console per interrompere il processo di avvio. Il blocco di avvio aspetterà ulteriori azioni. Dovresti vedere qualcosa del genere:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1394,7 +1394,7 @@ device sio1 at isa? port IO_COM2 flags 0x30 irq 3
I flag di console per le altre porte seriali non dovrebbero essere impostati.
. Ricompila ed installa il blocco di avvio ed il loader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/it/books/handbook/vinum/_index.adoc b/documentation/content/it/books/handbook/vinum/_index.adoc
index a91a1894b6..8385713266 100644
--- a/documentation/content/it/books/handbook/vinum/_index.adoc
+++ b/documentation/content/it/books/handbook/vinum/_index.adoc
@@ -461,7 +461,7 @@ I volumi appaiono al sistema identici ai dischi, con un'eccezione. Differentemen
Normalmente man:newfs[8] interpreta il nome del disco e si lamenta se non riesce a comprenderlo. Per esempio:
-[source,bash]
+[source,shell]
....
# newfs /dev/vinum/concat
newfs: /dev/vinum/concat: can't figure out file system partition
@@ -474,7 +474,7 @@ Queste informazioni sono valide solo per versioni di FreeBSD precedenti alla 5.0
Per poter creare un file system su questo volume usa man:newfs[8] con l'opzione `-v`:
-[source,bash]
+[source,shell]
....
# newfs -v /dev/vinum/concat
....
@@ -584,7 +584,7 @@ Per poter configurare queste partizioni `"a"`, in ogni periferica contenente par
====
. La locazione (spiazzamento dall'inizio della periferica) e la dimensione del sottodisco che è parte del volume di root deve essere esaminato, usando il comando:
+
-[source,bash]
+[source,shell]
....
# vinum l -rv root
....
@@ -593,7 +593,7 @@ Da notare che gli spiazzamenti e le dimensioni in Vinum sono misurati in byte. D
+
. Esegui il comando:
+
-[source,bash]
+[source,shell]
....
# disklabel -e devname
....
@@ -607,7 +607,7 @@ Infine, lo spiazzamento della partizione Vinum sulla periferica va aggiunto allo
In questo modo una nuova partizione `"a"` sarà creata ricoprendo le partizioni Vinum su questa periferica. Da notare che `disklabel` permetterà questa ricopertura solo se la partizione Vinum è stata appropriatamente marcata usando un `"fstype"` pari a `"vinum"` fstype.
. È tutto! Ora una falsa partizione `"a"` esiste su ogni periferica che abbia una replica del volume di root. È altamente raccomandabile verificare nuovamente i risultati, usando un comando come:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/devnamea
....
@@ -617,7 +617,7 @@ Bisogna ricordarsi che tutte le informazioni contenute nei file di controllo dev
Al seguente riavvio il sistema dovrebbe ricavare le informazioni di controllo appropriate dal filesystem di root Vinum e agire di consequenza. Alla fine del processo di inizializzazione del kernel, dopo che tutte le periferiche sono state annunciate, l'avvertimento principale che conferma il successo dell'avvio è un messaggio simile a questo:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/vinum/root
....
@@ -626,7 +626,7 @@ Mounting root from ufs:/dev/vinum/root
Dopo aver creato il volume di root Vinum, `vinum l -rv root` dovrebbe produrre qualcosa di simile a:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -646,7 +646,7 @@ I valori su cui fare caso sono il `135680` dello spiazzamento (relativo alla par
La `disklabel` per queste periferiche dovrebbe essere simile a questa:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/it/books/handbook/x11/_index.adoc b/documentation/content/it/books/handbook/x11/_index.adoc
index 1c1d9e9338..d4e58f21e1 100644
--- a/documentation/content/it/books/handbook/x11/_index.adoc
+++ b/documentation/content/it/books/handbook/x11/_index.adoc
@@ -146,7 +146,7 @@ Xorg è l'implementazione di default di X11 per FreeBSD. Xorg è l'implementazio
Per compilare ed installare Xorg dalla Collezione dei Ports digita:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -161,7 +161,7 @@ In alternativa, X11 può essere installato direttamente dai pacchetti. Per X11 s
Quindi per scaricare ed installare il pacchetto di Xorg, semplicemente digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -194,14 +194,14 @@ La memoria della scheda video determina la risoluzione e la profondità dei colo
A partire dalla versione 7.3, Xorg può spesso lavorare senza un file di configurazione particolare semplicemnte digitando al prompt:
-[source,bash]
+[source,shell]
....
% startx
....
Se non funziona, o se la configurazione di default non è accettabile, allora X11 deve essere configurato manualmente. La configurazione di X11 è un processo dai molti passi. Il primo passo è creare un file di configurazione iniziale. Come super utente digita semplicemente:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -210,7 +210,7 @@ Questo genererà uno scheletro di configurazione di X11 nella directory [.filena
Il prossimo passo è testare la configurazione esistente per verificare che Xorg possa funzionare con l'hardware grafico sul sistema. Per eseguire questo passo, digita:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
@@ -272,7 +272,7 @@ Uno dei tool disponibili per assisterti durante la fase di risoluzione dei probl
Se è andato tutto bene, il file di configurazione deve essere installato in una directory dove man:Xorg[1] possa trovarlo. Questa è tipicamente [.filename]#/etc/X11/xorg.conf# o [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -368,7 +368,7 @@ I font di default che vengono distribuite con X11 non sono certo ideali per il t
Per installare la collezione dei font Type1 sopra citate, esegui il seguente comando:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -383,7 +383,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
Alternativamente, alla command line in una sessione di X esegui:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -403,7 +403,7 @@ Load "freetype"
Adesso crea una directory per i font TrueType(R) (ad esempio [.filename]#/usr/local/lib/X11/fonts/TrueType#) e copia tutte i font TrueType(R) in questa directory. Ricordati che i font TrueType(R) non possono essere prese direttamente da un Macintosh(R), devono essere in formato UNIX(R)/MS-DOS(R)/Windows(R) per essere usate da X11. Una volta che i file sono stati copiati in questa directory, usa il comando ttmkfdir per creare un file [.filename]#fonts.dir#, così che il renderer di font X sappia che questi nuovi file sono stati installati. `ttmkfdir` è disponibile dalla Collezione dei Ports di FreeBSD come package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -411,7 +411,7 @@ Adesso crea una directory per i font TrueType(R) (ad esempio [.filename]#/usr/lo
Adesso aggiungi la directory TrueType(R) al percorso dei font. È lo stesso procedimento seguito sopra per i font <<type1,Type1>>, ovvero usa
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -446,7 +446,7 @@ Come ricordato in precedenza, tutti i font in [.filename]#/usr/local/lib/X11/fon
Dopo aver aggiunto i nuovi font, e specialmente nuove directory, dovresti eseguire questo comando per ricostruire la cache dei font:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -563,7 +563,7 @@ Puoi pensare a XDM come a qualcosa che fornisce all'utente la stessa funzionalit
Il programma demone è situato in [.filename]#/usr/local/bin/xdm#. Questo programma può essere avviato in ogni istante come `root` e inizierà a gestire il display X sulla macchina locale. Se XDM deve essere eseguito ogni volta che la macchina fa il boot, un modo conveniente è quello di farlo aggiungendo una entry a [.filename]#/etc/ttys#. Per maggiori informazioni sul formato e l'uso di questo file, consulta crossref:serialcomms[term-etcttys,Aggiunta di un Elemento in /etc/ttys]. C'è una linea nel file di default [.filename]#/etc/ttys# per eseguire il demone XDM su un terminale virtuale:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -641,7 +641,7 @@ Questo contiene l'output di ogni X server che XDM cerca di eseguire. Se un displ
Affinchè gli altri clienti si connettano al server di display, devi editare le regole di controllo degli accessi ed abilitare il processo in ascolto di connessioni. Di default queste sono impostate a valori conservativi. Per far sì che XDM resti in ascolto in attesa di connessioni, per prima cosa decommenta una linea nel file [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -674,14 +674,14 @@ Il software può essere installato facilmente da un pacchetto o dalla collezione
Per installare il pacchetto GNOME dalla rete, semplicemente digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
Per compilare GNOME da sorgenti, usa l'albero dei ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -693,7 +693,7 @@ Il modo più semplice per avviare GNOME è con GDM, il Display Manager di GNOME.
GNOME può anche essere avviato dalla command-line configurando propriamente un file chiamato [.filename]#.xinitrc#. Se un file personalizzato [.filename]#.xinitrc# è già al suo posto, semplicemente sostituisci la linea che avvia il window manager corrente con una che invece avvia /usr/local/bin/gnome-session. Se invece non è stato fatto nulla di speciale al file di configurazione, dovrebbe essere sufficiente digitare:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -705,7 +705,7 @@ Quindi, digita `startx` e il desktop environment GNOME sarà avviato.
Se un precedente display manager, come XDM, è in uso, questo non funzionerà. Invece, crea un file eseguibile [.filename]#.xsession# con lo stesso comando dentro. Per farlo edita il file e sostituisci il window manager esistente con /usr/local/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -745,7 +745,7 @@ Proprio come con GNOME o altri desktop environment, il software può essere inst
Per installare il pacchetto KDE dalla rete, semplicemente digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
@@ -754,7 +754,7 @@ man:pkg_add[1] automaticamente scaricherà l'ultima versione dell'applicazione.
Per compilare KDE dai sorgenti, usa l'albero dei ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -762,7 +762,7 @@ Per compilare KDE dai sorgenti, usa l'albero dei ports:
Dopo che KDE è stato installato, bisogna dire al server X di avviarlo al posto del window manager di default. Questo si ottiene editando il file [.filename]#.xinitrc#:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
@@ -812,14 +812,14 @@ Maggiori informazioni su XFce possono essere trovate sul sito web http://www.xfc
Esiste un pacchetto binario per XFce al momento in cui scriviamo. Per installarlo, semplicemente digita:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
In alternativa, per compilare dai sorgenti, usa la collezione dei ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -827,7 +827,7 @@ In alternativa, per compilare dai sorgenti, usa la collezione dei ports:
Adesso devi dire all'X server di lanciare XFce la prossima volta che X è avviato. Digita semplicemente questo:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/ja/articles/contributing/_index.adoc b/documentation/content/ja/articles/contributing/_index.adoc
index 730774f534..f3c043ab08 100644
--- a/documentation/content/ja/articles/contributing/_index.adoc
+++ b/documentation/content/ja/articles/contributing/_index.adoc
@@ -113,14 +113,14 @@ __一般的な__技術的関心事に関するアイデアや提案は {freebsd-
差分ファイルの提出において好ましい man:diff[1] の形式は、 `diff -u` により生成される unified diff 形式です。
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
または、
-[source,bash]
+[source,shell]
....
% diff -u -r -N olddir newdir
....
diff --git a/documentation/content/ja/articles/fonts/_index.adoc b/documentation/content/ja/articles/fonts/_index.adoc
index e83d038af8..965e160396 100644
--- a/documentation/content/ja/articles/fonts/_index.adoc
+++ b/documentation/content/ja/articles/fonts/_index.adoc
@@ -104,7 +104,7 @@ font8x8="iso-8x8" # font 8x8 from /usr/shared/syscons/fonts/* (or NO).
実際にモードを切り替えるコマンドは man:vidcontrol[1] です。
-[source,bash]
+[source,shell]
....
% vidcontrol VGA_80x60
....
@@ -127,7 +127,7 @@ X11 では、 [.filename]#.pfa# 形式、もしくは、 [.filename]#.pfb# 形
[.filename]#Type1# という名前のディレクトリが既に存在しています。 新しいフォントを追加する最も簡単な方法は、 このディレクトリのそのフォントファイルを置くことです。 新しいフォントは別なディレクトリに置いておき、[.filename]#Type1# ディレクトリに追加フォントへのシンボリックリンクを張る方がより優れています。 なぜなら、この方法をとることでオリジナルで供給されているフォントと混乱することなく、 これらのフォントを追加した跡を残すことがより簡単にできるからです。 この方法は、例えば、次のように行います。
-[source,bash]
+[source,shell]
....
フォントファイルを入れるディレクトリを作成します。
% mkdir -p /usr/local/shared/fonts/type1
@@ -147,7 +147,7 @@ X11 では、 [.filename]#.pfa# 形式、もしくは、 [.filename]#.pfb# 形
さて、新しいフォントを X11 で利用するためには、 そのフォントファイルを利用できるようにして、 フォント名のファイルを更新する必要があります。 X11 のフォント名は次のようになっています。
-[source,bash]
+[source,shell]
....
-bitstream-charter-medium-r-normal-xxx-0-0-0-0-p-0-iso8859-1
| | | | | | | | | | | | \ \
@@ -164,7 +164,7 @@ X11 では、 [.filename]#.pfa# 形式、もしくは、 [.filename]#.pfb# 形
新しいフォントそれぞれに対して、新しい名前を付ける必要があります。 フォント付属のドキュメントにフォントに関する情報があれば、 名前を作る際の基になるかもしれません。そのような情報がない場合は、 フォントに対して man:strings[1] を使うと何らかのアイデアが得ることができます。例えば、
-[source,bash]
+[source,shell]
....
% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
@@ -195,7 +195,7 @@ end readonly def
この情報から、次のような名前が考えられます:
-[source,bash]
+[source,shell]
....
-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
....
@@ -225,7 +225,7 @@ proportional (プロポーショナル (訳注: 字形に応じて幅が変化
これらの名前は全て任意なのですが、 既存の慣習と互換性を保つよう努力すべきでしょう。 X11 プログラムでは、 フォントはワイルドカードを含んだ名前で参照されます。ですから、 フォント名は何らかの意味づけを持って選択されるべきでしょう。 (訳注 : 適当なフォントを探すとき、) ある人は単純に以下の名前を使うことから始めるかもしれません。
-[source,bash]
+[source,shell]
....
...-normal-r-normal-...-p-...
....
@@ -234,7 +234,7 @@ proportional (プロポーショナル (訳注: 字形に応じて幅が変化
それでは、ここまでの例を完結させることにしましょう。
-[source,bash]
+[source,shell]
....
X11 に対してフォントをアクセスできるようにします。
% cd /usr/X11R6/lib/X11/fonts/Type1
@@ -269,7 +269,7 @@ X11 に内容が変更されたことを伝えます。
Ghostscript では、 [.filename]#Fontmap# ファイルに従ってフォントを参照して います。このファイルを X11 の [.filename]#fonts.dir# ファイルと同様な方法で変更しなくてはなりません。 Ghostscript では、 [.filename]#.pfa# 形式または [.filename]#.pfb# 形式のフォントのいずれか一方を使用することができます。 前章の例で登場したフォントを使って、ここではこのフォントを Ghostscript で使用する方法について述べます。
-[source,bash]
+[source,shell]
....
フォントを Ghostscript のフォントディレクトリに置きます。
% cd /usr/local/shared/ghostscript/fonts
@@ -309,7 +309,7 @@ GS>quit
最初に `afmtodit` というツールを使います。 このコマンドは通常ではインストールされませんので、 ソースプログラム群から該当プログラムを取り出さなくてはなりません。 このファイルの最初の一行を変更しなくてはならないことが分かっています。 著者は次のようにしました。
-[source,bash]
+[source,shell]
....
% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
@@ -321,7 +321,7 @@ GS>quit
このツールはメトリックファイル ([.filename]#.afm# 拡張子) から Groff フォントファイルを生成してくれます。 フォント使用方法例を続けることにしましょう。
-[source,bash]
+[source,shell]
....
.afm ファイルの多くは Mac 形式... すなわち行が ^M で区切られています。
これを行を ^J で区切る UNIX(R) スタイルに変換する必要があります。
@@ -338,7 +338,7 @@ GS>quit
システムでプリンタを扱うために Ghostscript を使用しているならば、 これで作業は完了しました。しかしながら、本物の PostScript(R) プリンタを使っている場合は、フォントを使用可能にする為に、 当該フォントをプリンタにダウンロードする必要があります (showboat フォントがプリンタに偶然にも最初から組み込まれている場合、 もしくはプリンタからアクセスされるフォントディスクの中に入ってい る場合はこの限りではありません)。 フォント利用の最終段階として、 ダウンロード可能な形式のフォントを生成します。 ツール `pfbtops` は (訳注 : [.filename]#.pfb# 形式から) [.filename]#.pfa# 形式のフォントを生成するために、そして、 [.filename]#download# というファイルを編集し、 フォントの内部名を参照するように変更しなくてはなりません。 この内部名は以下で示すように groff フォントファイルから容易に調べることができます。
-[source,bash]
+[source,shell]
....
.pfa フォントファイルを生成する。
% pfbtops /usr/local/shared/fonts/type1/showboat.pfb >showboat.pfa
@@ -346,7 +346,7 @@ GS>quit
もちろん、[.filename]#.pfa# が既に利用可能であれば、 参照できるようにシンボリックリンクを張って下さい。
-[source,bash]
+[source,shell]
....
内部フォント名を得る。
% fgrep internalname SHOWBOAT
@@ -361,7 +361,7 @@ Showboat showboat.pfa
フォントを試用する。
-[source,bash]
+[source,shell]
....
% cd /tmp
% cat >example.t <<EOF
@@ -431,7 +431,7 @@ TrueType から PostScript への変換ユーティリティです。 これは
+
作業エリアで以下のようにしてこのユーティリティします。
+
-[source,bash]
+[source,shell]
....
# make -f Makefile.sub afmtodit
....
@@ -442,7 +442,7 @@ TrueType から PostScript への変換ユーティリティです。 これは
. [.filename]#.afm# ファイルを以下のようにして作ります。
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -q -- ttf2pf.ps TTF_name PS_font_name AFM_name
....
@@ -453,7 +453,7 @@ TrueType から PostScript への変換ユーティリティです。 これは
+
例として、30f9 バーコードフォントをデフォルトのファイル名で変換するには以下のようにします。
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -464,7 +464,7 @@ Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
+
変換後のフォントを [.filename]#A.pfa# と [.filename]#B.afm# にするなら以下のようにします。
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -477,7 +477,7 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
以下のコマンドの実行が用意なように [.filename]#/usr/shared/groff_font/devps# に ディレクトリを変更します。 恐らく root 特権が必要になるでしょう (そこでの作業が気にいらないなら、このディレクトリの [.filename]#DESC#、 [.filename]#text.enc#、 [.filename]#generate/textmap# ファイルが参照されるということに注意してください)。
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc file.afm \
generate/textmap PS_font_name
@@ -485,7 +485,7 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
ここで、[.filename]#file.afm# は _AFM_name_ で、上で `ttf2pf.ps` で作ったものです。 _PS_font_name_ はコマンドから使われるフォント名で、 man:groff[1] がこのフォントを参照するために使うものです。 たとえば、最初の `tiff2pf.ps` コマンドを上述のように行っていたとすると、 3of9 バーコードフォントは以下のコマンドで作成できます。
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc 3of9.afm \
generate/textmap 3of9
diff --git a/documentation/content/ja/articles/ipsec-must/_index.adoc b/documentation/content/ja/articles/ipsec-must/_index.adoc
index 9697d544ec..afbdfe9df2 100644
--- a/documentation/content/ja/articles/ipsec-must/_index.adoc
+++ b/documentation/content/ja/articles/ipsec-must/_index.adoc
@@ -62,7 +62,7 @@ Ueli Maurer 氏の "Universal Statistical Test for Random Bit Generators" (http:
次のコマンド:
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -81,7 +81,7 @@ Ueli Maurer 氏の "Universal Statistical Test for Random Bit Generators" (http:
. 次に、"IPsec を使っている" 接続で man:yes[1] という UNIX(R) コマンドを実行します。 これは、`y` という文字の連続データを出力するものです。 しばらくしたらコマンドを停止させ、IPsec を使っていない接続に対して同じコマンドを実行します。 こちらも、しばらくしたらコマンドを停止させてください。
. ここで、<<code>> を捕捉したパケットに実行すると、次のような出力が得られるはずです。 この中で重要なのは、期待値 (7.18) に対して、 IPsec を使った接続が 93% (6.7)、 "通常の"接続が 29% (2.1) という結果になっていることです。
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
% uliscan ipsecdemo.bin
diff --git a/documentation/content/ja/articles/leap-seconds/_index.adoc b/documentation/content/ja/articles/leap-seconds/_index.adoc
index 8021344d80..d13e63e5c9 100644
--- a/documentation/content/ja/articles/leap-seconds/_index.adoc
+++ b/documentation/content/ja/articles/leap-seconds/_index.adoc
@@ -66,7 +66,7 @@ FreeBSDと同じ方法で閏秒を処理しているしていないに関わら
閏秒が使われるかどうかをテストする方法があります。NTP の特性から、テストは閏秒が発生する24時間前から行います。いくつかの有名な時刻の参照ソースは閏秒発生の1時間前にアナウンスを行います。NTP デーモンに次のクエリを発行します:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/ja/books/faq/_index.adoc b/documentation/content/ja/books/faq/_index.adoc
index 8461d4c6f7..7e2b7cf7c5 100644
--- a/documentation/content/ja/books/faq/_index.adoc
+++ b/documentation/content/ja/books/faq/_index.adoc
@@ -411,14 +411,14 @@ package としてダウンロードしてインストールする場合には、
ファイル名がわかったら、 次のようなコマンドで英語版の PDF 形式 FAQ の package をインストールすることができます。
-[source,bash]
+[source,shell]
....
# pkg_add ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/packages/faq.en_US.ISO8859-1.pdf.tgz
....
インストールの終了後は man:pkg_info[1] を使い、 ファイルがどこにインストールされたかを調べることができます。
-[source,bash]
+[source,shell]
....
# pkg_info -f faq.en_US.ISO8859-1.pdf
Information for faq.en_US.ISO8859-1.pdf:
@@ -438,7 +438,7 @@ package を利用しない場合は、 自分で圧縮されたファイルを
たとえば、分割された HTML 版の FAQ で、 man:gzip[1] で圧縮されているものは [.filename]#en_US.ISO8859-1/books/faq/book.html-split.tar.gz# というファイルです。 これをダウンロードして圧縮を元に戻すには、次のようにする必要があるでしょう。
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.gz
# gzip -d book.html-split.tar.gz
@@ -550,7 +550,7 @@ BIOS のセットアップ画面で、"remap" のオプションを探して有
* DOS を起動し、FreeBSD の配布物の中にある [.filename]#tools/# ディレクトリへ移動し、 [.filename]#bootinst.exe# を探してください。 そして次のように実行します。
+
-[source,bash]
+[source,shell]
....
...\TOOLS> bootinst.exe boot.bin
....
@@ -559,7 +559,7 @@ BIOS のセットアップ画面で、"remap" のオプションを探して有
* FreeBSD のブートフロッピーディスクから起動し、 「カスタム」インストールメニューを選択し、 続いて「パーティション」を選択します。 ブートマネージャがインストールされていたドライブ (多分最初のもの) を選択し、 パーティションエディタにたどり着いたら、 (何も変更せず) そのまま (W)rite を指定します。 確認のメッセージが出ますので「はい(Y)」と答え、 ブートマネージャ選択の画面で確実に "Boot Manager" を選択します。 これでブートマネージャがディスクに再び書き込まれます。 インストールメニューから抜けて再起動すると、 ハードディスクは元通りになります。
* FreeBSD 起動フロッピー (もしくは CD-ROM) から起動し、 "Fixit" メニューを選択します。 Fixit フロッピーか CD-ROM #2 ("live" ファイルシステムオプション) の好きな方を選択して fixit シェルに入ります。 そして、次のコマンドを実行してください。
+
-[source,bash]
+[source,shell]
....
Fixit# fdisk -B -b /boot/boot0 起動デバイス
....
@@ -617,7 +617,7 @@ IBM によれば、以下のモデル/BIOS リリース番号には修正が含
. [.filename]#boot1# と [.filename]#boot2# のファイルをローカルファイルシステムに持って来ます。
. man:disklabel[8] を使って [.filename]#boot1# と [.filename]#boot2# を FreeBSD のスライスに書き込みます。
+
-[source,bash]
+[source,shell]
....
# disklabel -B -b boot1 -s boot2 ad0sn
....
@@ -660,7 +660,7 @@ FreeBSD 2.1.7R をテープからインストールする場合、 tar ブロッ
Laplink パラレルケーブルを用意して、 両方の PC のカーネルに [.filename]#lpt# ドライバが組み込まれていることを確認してください。
-[source,bash]
+[source,shell]
....
% dmesg | grep lp
lpt0 at 0x378-0x37f irq 7 on isa
@@ -680,14 +680,14 @@ IP Address 10.0.0.1 10.0.0.2
max 側で次のようにして、
-[source,bash]
+[source,shell]
....
# ifconfig lp0 10.0.0.1 10.0.0.2
....
moritz 側で同様に次のようにします。
-[source,bash]
+[source,shell]
....
# ifconfig lp0 10.0.0.2 10.0.0.1
....
@@ -707,14 +707,14 @@ moritz 側で同様に次のようにします。
`max` 側:
-[source,bash]
+[source,shell]
....
% ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
....
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -724,7 +724,7 @@ Destination Gateway Flags Refs Use Netif Expire
moritz max UH 4 127592 lp0
....
-[source,bash]
+[source,shell]
....
% ping -c 4 moritz
PING moritz (10.0.0.2): 56 data bytes
@@ -1043,7 +1043,7 @@ fs ブロックサイズが 4K の場合は三重間接ブロックが使用さ
以下の例は、32K のディスク容量 (3 つの間接ブロックと 1 つのデータブロック) を使って、 小さなルートパーティションに 8T-1 の大きさのファイルを作成します。 ここでの dd コマンドは大きなファイルが扱えるものが必要です。
-[source,bash]
+[source,shell]
....
% cat foo
df .
@@ -1234,7 +1234,7 @@ options KBD_INSTALL_CDEV
+
. [.filename]#/dev# ディレクトリに移動し、 次のようにしてデバイスノードを作成します。
+
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV kbd0 kbd1
@@ -1253,14 +1253,14 @@ usbd_flags=""
USB キーボードをコンソールで利用するには、 それをコンソールドライバに対して明示的に指定する必要があります。 システムの初期化の際に、次に示すようなコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null
....
ただし、USB キーボードしか接続されていない場合、それは [.filename]#/dev/kbd0# としてアクセスされますので、 コマンドは次のようにしなければなりません。ご注意ください。
-[source,bash]
+[source,shell]
....
# kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null
....
@@ -1333,7 +1333,7 @@ device psm0 at atkbdc? irq 12
起動時にカーネルが [.filename]#psm0# を検出したら、 [.filename]#psm0# のエントリが [.filename]#/dev# の中にあることを確認してください。それには、以下のようにします。
-[source,bash]
+[source,shell]
....
# cd /dev; sh MAKEDEV psm0
....
@@ -1344,7 +1344,7 @@ device psm0 at atkbdc? irq 12
もしデフォルトのコンソールドライバである syscons を使っているのであれば、 テキストコンソール上でマウスを使って、 テキストのカットアンドペーストができます。 マウスデーモンである moused を起動し、 仮想コンソールでマウスポインタを有効にしてください。
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -1418,7 +1418,7 @@ device ums0
+
. [.filename]#/dev# ディレクトリに移動し、 次のようにしてデバイスノードを作成します。
+
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV ums0
@@ -1541,7 +1541,7 @@ FreeBSD は SoundBlaster、SoundBlaster Pro、SoundBlaster 16、 Pro Audio Spect
マシンを起動するごとに以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -1625,14 +1625,14 @@ SCSI ディスクの場合は自動的に再マップする機能があるはず
これを有効化するには、 最初のデバイスのモードページを変更する必要があります。 これは次のコマンドを実行することで、FreeBSD 上で行なうことができます (`root` 権限で行ないます)。
-[source,bash]
+[source,shell]
....
# scsi -f /dev/rsd0c -m 1 -e -P 3
....
そして、AWRE と ARRE の値を 0 から 1 へ変更します
-[source,bash]
+[source,shell]
....
AWRE (Auto Write Reallocation Enbld): 1
ARRE (Auto Read Reallocation Enbld): 1
@@ -1715,14 +1715,14 @@ man:mount[8] にマウントしたいデバイスのタイプを指定する必
CDROM のデバイス [.filename]#/dev/cd0c# を [.filename]#/mnt# にマウントしたい場合の例では、次のようにします。
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0c /mnt
....
デバイスの名前はインタフェースによっては別の名前になっている かもしれないので注意してください ([.filename]#/dev/cd0c# はこの場合の例です)。 オプション `-t cd9660` によって `mount_cd9660` コマンドが実行されることに注意してください。 このため例は次のようにすることもできます。
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0c /mnt
....
@@ -1758,7 +1758,7 @@ options "SCSI_DELAY=15"
パラレルインタフェースで、問題はとんでもなく遅いだけであるなら、 プリンタボートを "polled" モードに設定してみてください。
-[source,bash]
+[source,shell]
....
# lptcontrol -p
....
@@ -1843,7 +1843,7 @@ _n_ には、 同時に使用したい TCP コネクションの数に応じて
これが起こったなら、シングルユーザで再起動した後に、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# rm /var/db/kvm_*.db
....
@@ -1896,7 +1896,7 @@ _n_ には、 同時に使用したい TCP コネクションの数に応じて
1998 年 11 月 29 日に公開された FreeBSD 3.0 以降で この問題が解決しないなら、次の sysctl 変数をセットしてください。
-[source,bash]
+[source,shell]
....
# sysctl -w kern.timecounter.method=1
....
@@ -1914,7 +1914,7 @@ _n_ には、 同時に使用したい TCP コネクションの数に応じて
PCI のサウンドカードを持っているのならば、以下のようにして `snd0` デバイスのかわりに `snd1` を作る必要があります。
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV snd1
@@ -1934,7 +1934,7 @@ PnP BIOS はあらかじめ、[モデムを] ポート空間に存在してい
3.0 で動作していたデバイスを 4.0 でも動作するようにするには、 それの PnP ID を調べ、ISA デバイスの検索が PnP デバイスの識別に使っているリストにそれを追加する必要があります。 デバイスの検索に使われる man:pnpinfo[8] を用いて、 PnP ID を得ることができます。 たとえば、内蔵モデムに関する man:pnpinfo[8] の出力は、 以下のようになります。
-[source,bash]
+[source,shell]
....
# pnpinfo
Checking for Plug-n-Play devices...
@@ -1954,7 +1954,7 @@ TAG Start DF
[more TAG lines elided]
-[source,bash]
+[source,shell]
....
TAG End DF
End Tag
@@ -2020,7 +2020,7 @@ static struct isa_pnp_id sio_ids[] = {
手動で sysctl 変数 `kern.maxfiles` の限界値を調整します。
-[source,bash]
+[source,shell]
....
# sysctl -w kern.maxfiles=n
....
@@ -2038,7 +2038,7 @@ maxusers 32
現在設定されている `kern.maxfiles` の 値は、次のコマンドで調べることができます。
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles
kern.maxfiles: 1064
@@ -2050,7 +2050,7 @@ laptop には二つ以上の時計が内蔵されていますが、FreeBSD が
man:dmesg[8] を実行して `Timecounter` を含む行を確認してください。 最後に出力された行が FreeBSD が選択したもので、まず間違い なく `TSC` でしょう。
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz
@@ -2059,7 +2059,7 @@ Timecounter "TSC" frequency 595573479 Hz
man:sysctl[3] 変数 `kern.timecounter.hardware` を確認すれば 裏付けがとれます。
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: TSC
@@ -2069,7 +2069,7 @@ kern.timecounter.hardware: TSC
上記の例では、`i8254` クロックも利用できます。 man:sysctl[3] 変数 `kern.timecounter.hardware` にその名称を書き込んで選択できます。
-[source,bash]
+[source,shell]
....
# sysctl -w kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -2287,7 +2287,7 @@ ibcs2=NO
次に /compat/ibcs2/dev/ を以下のように編集します。
-[source,bash]
+[source,shell]
....
lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null
lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys
@@ -2322,7 +2322,7 @@ inn の package や port をインストールしたあとに http://www.cis.ohi
残念ながら、インストール済みの ports を更新する簡単な 方法はありません。`pkg_version` コマンドを 用いて ports ツリー中の新しいバージョンに更新する スクリプトを次のように生成することができます。
-[source,bash]
+[source,shell]
....
# pkg_version -c > /tmp/myscript
....
@@ -2403,7 +2403,7 @@ FreeBSD 3.1 とそれ以降では、 [.filename]#/etc/rc.conf# が [.filename]#/
たとえば named を起動したいとしましょう。 FreeBSD 3.1 かそれ以降のシステムで FreeBSD 付属の DNS サーバを起動するには、次のようにするだけです。
-[source,bash]
+[source,shell]
....
# echo named_enable="YES" >>
/etc/rc.conf
@@ -2429,14 +2429,14 @@ man:adduser[8] コマンドを使用してください。 また、man:pw[8] コ
ZIP ドライブやフロッピーで、すでに DOS のファイルシステムで フォーマットしてある場合、次のコマンドを使うことができます。 これはフロッピーの場合です。
-[source,bash]
+[source,shell]
....
# mount -t msdos /dev/fd0c /floppy
....
出荷時の設定の ZIP ディスクではこうです。
-[source,bash]
+[source,shell]
....
# mount -t msdos /dev/da2s4 /zip
....
@@ -2447,7 +2447,7 @@ ZIP ドライブやフロッピーで、すでに DOS のファイルシステ
他人と共有しなければならないフロッピーやリムーバブルディスク でなければ、BSD ファイルシステムを載せてしまうのが良い考えでしょう。 ロングファイル名もサポートされ、パフォーマンスは少なくとも 2 倍は向上しますし、おまけにずっと安定しています。 まず最初に、DOS レベルでのパーティション [.filename]#/# ファイルシステムを無効にしておく必要があります。使用するのは `fdisk` でも [.filename]#/stand/sysinstall# でも結構です。 複数のオペレーティングシステムを入れることを考慮する 必要がないような容量の小さなドライブの場合は、 次のように FAT パーティションテーブル (スライス) 全体を飛ばして、BSD のパーティション設定を行うだけで良いでしょう。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda2 count=2
# disklabel -Brw da2 auto
@@ -2457,14 +2457,14 @@ ZIP ドライブやフロッピーで、すでに DOS のファイルシステ
最後に、新しいファイルシステムをつくります。ディスク全体を使用する ZIP ドライブの場合は、以下のようにします。
-[source,bash]
+[source,shell]
....
# newfs /dev/rda2c
....
次にマウントします。
-[source,bash]
+[source,shell]
....
# mount /dev/da2c /zip
....
@@ -2480,7 +2480,7 @@ ZIP ドライブやフロッピーで、すでに DOS のファイルシステ
これは通常、システム crontab ([.filename]#/etc/crontab#) を編集し、man:crontab[1] を使ってインストールした場合に起こります。
-[source,bash]
+[source,shell]
....
# crontab /etc/crontab
....
@@ -2489,7 +2489,7 @@ ZIP ドライブやフロッピーで、すでに DOS のファイルシステ
もしこのような操作をしてしまったなら、 あらたな crontab は誤ったフォーマットの [.filename]#/etc/crontab# のコピーになってしまっているからです。 以下のコマンドで削除してください。
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -2518,7 +2518,7 @@ man:vi[1] や man:emacs[1] の様なフルスクリーンエディタを 使う
DOS 拡張パーティションは、 すべての基本パーティションの後に認識されます。 たとえば、2台目の SCSIドライブの拡張パーティションに "E" パーティションがあるとしますと、 これは [.filename]#/dev# に「スライス 5 」のスペシャルファイルを作る必要があり、 [.filename]#/dev/da1s5# としてマウントされます。
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV da1s5
@@ -2556,21 +2556,21 @@ C:\="DOS"
(もし NTFS に変換してしまっているなら)DOS フォーマットのフロッピーディスクか FAT パーティションを [.filename]#/mnt# に DOS マウントします。
-[source,bash]
+[source,shell]
....
# dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1
....
再起動して DOS か NT に切替えます。NTFS ユーザは [.filename]#bootsect.bsd# や [.filename]#bootsect.lnx# をフロッピーディスクから [.filename]#C:\# へコピーします。 [.filename]#boot.ini# のファイル属性 (パーミッション) の変更を以下のように行ないます。
-[source,bash]
+[source,shell]
....
> attrib -s -r c:\boot.ini
....
上の例の [.filename]#boot.ini# で示したような正しいエントリを加え、 ファイル属性を元に戻します。
-[source,bash]
+[source,shell]
....
> attrib +s +r c:\boot.ini
....
@@ -2618,7 +2618,7 @@ other=/dev/dab4
場合によっては、二つ目のディスクを正しく起動するために FreeBSD ブートローダに BIOS ドライブ番号を指定する必要があるかもしれません。 たとえば、FreeBSD SCSI ディスクが BIOS によって BIOS ディスク 1 として認識されるのなら、 FreeBSD のブートローダのプロンプトで、次のように指定する必要があります。
-[source,bash]
+[source,shell]
....
Boot: 1:da(0,a)/kernel
....
@@ -2653,14 +2653,14 @@ Windows95 と Linux を使用している場合は、 いずれにせよ後者
「危険覚悟の専用ディスク」を通常の PC での使用法に戻すには、 原則として 2 つ方法があります。1 つは十分な NULL バイトを MBR に書き込んで、 きたるべきインストーラにディスクはまっさらだと思い込ませる方法です。 たとえば、こんな感じです。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/rda0 count=15
....
また、マニュアルには書かれていない DOS の「機能」
-[source,bash]
+[source,shell]
....
> fdisk /mbr
....
@@ -2690,7 +2690,7 @@ pseudo-device vn 1 #Vnode driver (turns a file into a device)
. vn デバイスを作ります
+
-[source,bash]
+[source,shell]
....
# cd /dev
# sh ./MAKEDEV vn0
@@ -2698,14 +2698,14 @@ pseudo-device vn 1 #Vnode driver (turns a file into a device)
+
. スワップファイルを作ります ([.filename]#/usr/swap0#)
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
+
. スワップファイルに適切なパーミッションを設定します
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -2721,7 +2721,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
スワップファイルをすぐに有効化させたいのなら以下のようにタイプします。
-[source,bash]
+[source,shell]
....
# vnconfig -e /dev/vn0b /usr/swap0 swap
....
@@ -2740,7 +2740,7 @@ WWW: http://pnm2ppa.sourceforge.net/[http://pnm2ppa.sourceforge.net/]
`kbdcontrol` プログラムは、 キーボードマップファイルを読み込むためのオプションを備えています。 [.filename]#/usr/shared/syscons/keymaps# の下にたくさんのマップファイルがあります。 システムに関連のあるものを一つ選んで、ロードしてください。
-[source,bash]
+[source,shell]
....
# kbdcontrol -l uk.iso
....
@@ -2812,7 +2812,7 @@ FreeBSD 2.0.5R やそれ以降の版では、 テキストフォントやキー
次のような症状が現れます。
-[source,bash]
+[source,shell]
....
# ccdconfig -C
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format
@@ -2824,7 +2824,7 @@ ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format
次のような症状が現れます。
-[source,bash]
+[source,shell]
....
# disklabel ccd0
(it prints something sensible here, so let's try to edit it)
@@ -2836,7 +2836,7 @@ use "disklabel -r" to install initial label
これは ccd から返されるディスクラベルが、 実はディスク上にはないまったくの偽の情報だからです。 これを明示的に書き直すことで問題を解消できます、 それには、つぎのようにします。
-[source,bash]
+[source,shell]
....
# disklabel ccd0 > /tmp/disklabel.tmp
# disklabel -Rr ccd0 /tmp/disklabel.tmp
@@ -2870,7 +2870,7 @@ FreeBSD に付属している sendmail は、 インターネットに直接つ
もしすべてのソースをインストールしていない場合には sendmail の設定ツールは、別の tar ファイルにまとめてあります。CD-ROM が mount されている場合には、次のようにしてください。
-[source,bash]
+[source,shell]
....
# cd /cdrom/src
# cat scontrib.?? | tar xzf - -C /usr/src contrib/sendmail
@@ -2882,7 +2882,7 @@ UUCP での配送のためには、`mailertable` を使用すれば よいでし
まずはじめに、 [.filename]#.mc# ファイルを作成しなければなりません。 [.filename]#/usr/src/usr.sbin/sendmail/cf/cf# というディレクトリが、 これらのファイルを作成する場所です。既にいくつか例があると思います。 これから作成するファイルの名前を [.filename]#foo.mc# とすると、 [.filename]#sendmail.cf# を求めているような形式に変換するには、 次のようにしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail/cf/cf
# make foo.cf
@@ -2936,7 +2936,7 @@ if-bus.UUCP uucp-dom:if-bus
最後のヒントです: もし特定のメール配送がうまく作動するかどうか 確かめたい場合には、sendmail の``-bt`` オプションを 使用してください。このオプションによって sendmail は __アドレステストモード__で起動します。 `0` の後に配送したいアドレスを書いてください。最後の行に、実際に使用される mail agent、この mail agent で送られる送信先のホスト、そして (多分変換されている) アドレスが表示されます。このモードを抜けるには Control-D を押してください。
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -3039,7 +3039,7 @@ options PCVT_CTRL_ALT_DEL
単に次の perl コマンドを実行してください。
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file ...
....
@@ -3048,7 +3048,7 @@ file の部分には処理するファイルを指定してください。 整
あるいは man:tr[1] コマンドを使うこともできます。
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -3067,7 +3067,7 @@ Kerberos の認証システムからくるエラーです。 この問題は致
システムから Kerberos を削除するには、 あなたの動かしているリリースの bin ディストリビューションを再インストールしてください。 もし CDROM を持っているのなら、 その CDROM をマウント (マウントポイントは [.filename]#/cdrom# と仮定) して、 次のように入力してください。
-[source,bash]
+[source,shell]
....
# cd /cdrom/bin
# ./install.sh
@@ -3088,7 +3088,7 @@ pseudo-device pty 256
新たにカーネルを作りインストールします。
. 次のコマンドを実行して
+
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV pty{1,2,3,4,5,6,7}
@@ -3111,7 +3111,7 @@ ttyqc none network
これらのデバイスを作成するには、次のようにする必要があります。
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV snd0
@@ -3123,7 +3123,7 @@ ttyqc none network
コンソールで次のように実行します。
-[source,bash]
+[source,shell]
....
# shutdown now(注: -r や -h は付けません)
# return
@@ -3166,7 +3166,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
稼働中のシステムでセキュアレベルの状態をチェックするには、 次のコマンドを実行します。
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -3197,7 +3197,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
====
. `root` になって、 sysctl 変数である `vfs.usermount` を `1` に設定します。
+
-[source,bash]
+[source,shell]
....
# sysctl -w vfs.usermount=1
....
@@ -3206,14 +3206,14 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
+
例として、最初のフロッピーデバイスをユーザーがマウントできるようにするには、 次のようにします。
+
-[source,bash]
+[source,shell]
....
# chmod 666 /dev/fd0
....
+
`operator` グループに所属するユーザが CDROM ドライブをマウントできるようにするには 以下のようにします。
+
-[source,bash]
+[source,shell]
....
# chgrp operator /dev/cd0c
# chmod 640 /dev/cd0c
@@ -3224,7 +3224,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
これで、すべてのユーザは フロッピー [.filename]#/dev/fd0# を 自身の所有するディレクトリへマウントすることができます。
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdos /dev/fd0 ~/my-mount-point
@@ -3232,7 +3232,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
これで、`operator` グループに所属するユーザは CDROM [.filename]#/dev/cd0c# を 自身の所有するディレクトリへマウントすることができます。
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdos /dev/cd0c ~/my-mount-point
@@ -3240,7 +3240,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
デバイスのアンマウントは簡単です。
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -3267,7 +3267,7 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
たとえば root を [.filename]#/dev/ad1s1a# へ、暫定的なマウントポイントを [.filename]#/mnt# として移そうとすると以下のようになります。
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1s1a
# mount /dev/ad1s1a
@@ -3277,14 +3277,14 @@ UNIX プロセスは、特定のユーザ ID が所有します。 もし、実
もしパーティションの構成を変えようと思っているなら - つまり一つだったものを二つにしたり二つだったものをくっつけたり しようとしているなら、自前であるディレクトリ以下のすべてを 新しい場所へ移す必要が出てくるかも知れません。man:dump[8] は ファイルシステムに働くのでこの目的には使えません。この場合は man:tar[1] を使います。一般に [.filename]#/old# から [.filename]#/new# への移動は man:tar[1] で 以下のようにします。
-[source,bash]
+[source,shell]
....
# (cd /old; tar cf - .) | (cd /new; tar xpf -)
....
[.filename]#/old# に他のファイルシステムが マウントされていて、そのデータの移動までは考えてないならば 最初の man:tar[1] に 'l' フラグを追加します。
-[source,bash]
+[source,shell]
....
# (cd /old; tar clf - .) | (cd /new; tar xpf -).
....
@@ -3305,7 +3305,7 @@ man:tar[1] のかわりに man:cpio[1] や man:pax[1], cpdup (ports/sysutils/cpd
詳しい回答: FreeBSD では、セキュアレベルが 0 より大きい場合、 システムフラグの変更が禁止されます。 現在のセキュアレベルは、次のコマンドを使って調べることができます。
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -3318,7 +3318,7 @@ man:tar[1] のかわりに man:cpio[1] や man:pax[1], cpdup (ports/sysutils/cpd
詳しい回答: FreeBSD では、セキュアレベルが 1 より大きい場合、 1 秒以上の時刻変更が禁止されます。 現在のセキュアレベルは、次のコマンドを使って調べることができます。
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -3367,7 +3367,7 @@ Device "/dev/sysmouse"
X で [.filename]#/dev/mouse# を使うのを好む人もいます。 この場合は、 [.filename]#/dev/mouse# を [.filename]#/dev/sysmouse# (man:sysmouse[4] 参照) にリンクしてください。
-[source,bash]
+[source,shell]
....
# cd /dev
# rm -f mouse
@@ -3586,7 +3586,7 @@ ttyvb "/usr/libexec/getty Pc" cons25 off secure
[.filename]#/etc/ttys# を編集したら、 次は十分な数の仮想ターミナルデバイスを作らなくてはなりません。 もっとも簡単な方法を示します。
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV vty12(12 個のデバイスをつくる場合)
@@ -3594,7 +3594,7 @@ ttyvb "/usr/libexec/getty Pc" cons25 off secure
さて、仮想コンソールを有効にするもっとも簡単 (そして確実) な方法は、 再起動することです。しかし、再起動したくない場合は、 X ウィンドウシステムを終了させて次の内容を (``root``権限で) 実行します。
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -3685,19 +3685,19 @@ psmintr: out of sync (xxxx != yyyy)
もしこのようなことが起こる場合には、PS/2 マウスドライバのフラグに 0x100 を指定して同期チェックを無効にしてください。システムの起動時に "`-c`" 起動オプションを与えて _UserConfig_ に入ります。
-[source,bash]
+[source,shell]
....
boot: -c
....
-[source,bash]
+[source,shell]
....
boot: -c
....
_UserConfig_ のコマンドラインで以下のように入力してください。
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x100
UserConfig> quit
@@ -3726,14 +3726,14 @@ MouseSystems の PS/2 マウスのあるモデルは、 高解像度モードの
FreeBSD 2.2.6 以降のバージョンでは、 PS/2 マウスドライバのフラグに 0x04 を指定してマウスを高解像度モードにします。 システムの起動時に `-c` 起動オプションを与えて _UserConfig_ に入ります。
-[source,bash]
+[source,shell]
....
boot: -c
....
_UserConfig_ のコマンドラインで以下のように入力してください。
-[source,bash]
+[source,shell]
....
UserConfig> flags psm0 0x04
UserConfig> quit
@@ -3817,7 +3817,7 @@ bitmap_name="/boot/splash.pcx"
左にある Windows(TM) キーを押すとカンマ記号が入力されるようにするには、 こんな風にします。
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -3913,7 +3913,7 @@ Berkeley UNIX におけるネットワークの構成において、 ネット
man:ifconfig[8] のコマンドラインに `netmask 0xffffffff` を追加して、次のように書いてください。
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff
....
@@ -3932,7 +3932,7 @@ PC 用のネットワークカードによっては、 NFS のような、 ネ
Linux の NFS のコードには、 許可されたポートからのリクエストしか受けつけないものがあります。 以下を試してみてください。
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -3941,7 +3941,7 @@ Linux の NFS のコードには、 許可されたポートからのリクエ
SunOS 4.X が走っている Sun Workstation は、 許可されたポートからのマウント要求しか受けつけません。 以下を試してみてください。
-[source,bash]
+[source,shell]
....
# mount -o -P sunbox:/blah /mnt
....
@@ -4053,7 +4053,7 @@ domain foo.bar.edu
もしファイアウォールの設定を間違えた場合にネットワークの操作が再びできる ようにするには、`root` でログインして次のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -4115,7 +4115,7 @@ allow ip from any to any
おそらく、あなたが期待している動作とは、 単なるパケット転送ではなくネットワークアドレス変換 (NAT) と呼ばれるものだからでしょう。 "fwd" ルールは文字どおり、本当に転送しか行ないません。 パケットの中身については一切手を加えないのです。 そのため、次のようなルールを設定したとすると、
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -4165,7 +4165,7 @@ pseudo-device bpfilter # Berkeley Packet Filter
そして再起動してから、次にデバイスノードを作成する必要があります。 これは、次のように入力し、[.filename]#/dev# を変更することで行ないます。
-[source,bash]
+[source,shell]
....
# sh MAKEDEV bpf0
....
@@ -4185,14 +4185,14 @@ Ports Collection に含まれる sharity light パッケージを使ってくだ
メッセージ中の最初の数字は、 上限を設定しなかった場合にカーネルが送っていたであろうパケットの数を示し、 二番目の数字は、パケット数の上限値を示します。 この上限値は `net.inet.icmp.icmplim` という sysctl 変数を使うことで、以下のように変更可能です。 ここでは上限を 1 秒あたりのパケット数で `300` にしています。
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim=300
....
カーネルの応答制限を無効にせず、 ログファイル中のメッセージだけを抑制したい場合、 `net.inet.icmp.icmplim_output` sysctl 変数を次のようにすることで出力を止めることができます。
-[source,bash]
+[source,shell]
....
# sysctl -w net.inet.icmp.icmplim_output=0
....
@@ -4242,7 +4242,7 @@ set log Phase Chat Connect Carrier lcp ipcp ccp command
まず最初に、デフォルトルートが確立しているかどうかチェックしてください。 `netstat -rn` (man:netstat[1] 参照) を実行すると、以下のような情報が表示されるはずです。
-[source,bash]
+[source,shell]
....
Destination Gateway Flags Refs Use Netif Expire
default 10.0.0.2 UGSc 0 0 tun0
@@ -4285,7 +4285,7 @@ add 0 0 HISADDR
これは動的 IP アドレスを使用している場合、 またはゲートウェイのアドレスを知らない場合にのみ必要な設定です。 インタラクティブモードを使用している場合、 __パケットモード__に入った後で (プロンプトが PPP と大文字に変わったらパケットモードに入ったしるしです)、 以下の命令を入力してください。
-[source,bash]
+[source,shell]
....
delete ALL
add 0 0 HISADDR
@@ -4588,7 +4588,7 @@ ATDT1234567
ppp (や他のプログラム) は決して core を吐いてはいけません。 ppp は実効 uid が 0 で動いていますので、 オペレーティングシステムは ppp を終了させる前にディスクに core イメージを書き込みません。 しかし ppp は実際にはセグメンテーション違反や、 他の core を吐く原因となるようなシグナルによって終了しており、 __さらに__最新のバージョン (このセクションの始めを見てください) を使用しているならば、次のようにしてください。
-[source,bash]
+[source,shell]
....
% tar xfz ppp-*.src.tar.gz
% cd ppp*/ppp
@@ -4604,7 +4604,7 @@ ppp (や他のプログラム) は決して core を吐いてはいけません
これで、ppp がセグメンテーション例外を受け取ったときには [.filename]#ppp.core# という名前の core ファイルを吐くようになります。core が 吐かれたら次のようにしてください。
-[source,bash]
+[source,shell]
....
% su
# gdb /usr/sbin/ppp ppp.core
@@ -4752,14 +4752,14 @@ ppp の最新版 (2.3 かそれ以降) には、自動的に MSS を適切な値
FreeBSD のカーネルが起動する時、カーネルはその設定にしたがって、 システムのシリアルポートを検出します。起動時に表示されるメッセージをよく観察するか、 起動後に次のコマンドを実行する事によって確認できます。
-[source,bash]
+[source,shell]
....
dmesg | grep sio
....
ここに上に挙げたコマンドの出力例を示します。
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -4826,7 +4826,7 @@ stty -f /dev/ttyid5 clocal cs8 ixon ixoff
「設定固定」デバイスを調整してやることによって、 アプリケーションによる設定の変更を禁止することができます。 たとえば、[.filename]#ttyd5# の通信速度を 57600bps に固定するには、次のように行ってください。
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyld5 57600
....
@@ -4861,21 +4861,21 @@ ttyd1 "/usr/libexec/getty std.57600" dialup on insecure
[.filename]#/etc/ttys# に変更を加えた後は、HUP シグナル (SIGHUP) を man:init[8] プロセスに送る必要があります。
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
この操作は `init` プロセスに [.filename]#/etc/ttys# を再読み込みさせます。 これにより、init プロセスは `getty` プロセスをすべての `on` となっているポートに起動させます。 次のようにして、ポートがログイン可能かを知ることができます。
-[source,bash]
+[source,shell]
....
% ps -ax | grep '[t]tyd1'
....
ログイン可能であれば、次のような出力が得られるはずです。
-[source,bash]
+[source,shell]
....
747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1
....
@@ -4899,7 +4899,7 @@ ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure
そうする代わりに、次のようにタイプすることにより、 あなたのシステムの全ユーザーが `tip` や `cu` を実行できるようになります。
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -4930,7 +4930,7 @@ cuaa0:dv=/dev/cuaa0:br#19200:pa=none
[.filename]##/dev/cuaa0##がシステムに存在しない場合は、次のようにします。
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV cuaa0
@@ -4938,7 +4938,7 @@ cuaa0:dv=/dev/cuaa0:br#19200:pa=none
または `root` になって以下のように cu を使います。
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -5126,7 +5126,7 @@ ELF は a.out に比べてより表現力があり、 ベースのシステム
シンボリックリンクは許可属性を持ちません。 また man:chmod[1] のデフォルト動作は、 シンボリックリンクをたどってリンク先のファイルの許可属性を変更するようになっていません。 そのため、 [.filename]#foo# というファイルがあり、 このファイルへのシンボリックリンク [.filename]#bar# があったとすると、 以下のコマンドは常に成功します。
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -5140,7 +5140,7 @@ ELF は a.out に比べてより表現力があり、 ベースのシステム
"`-R`" オプションは__再帰的に__ man:chmod[1] を実行します。ディレクトリやディレクトリへのシンボリックリンクを `chmod` する場合は気をつけてください。 シンボリックリンクで参照されている単一のディレクトリのパーミッションを変更したい場合は、 man:chmod[1] をオプションをつけずに、 シンボリックリンクの名前の後ろにスラッシュ ("[.filename]#/#") をつけて使います。たとえば、"[.filename]#foo#" がディレクトリ "[.filename]#bar#" へのシンボリックリンクである場合、 "[.filename]#foo#" (実際には "[.filename]#bar#") のパーミッションを変更したい場合には、このようにします。
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -5323,7 +5323,7 @@ doc-all
最後に、ビルド用にかなりの空き領域を用意する必要があります。 そのディレクトリを [.filename]#/some/big/filesystem# として、 上の例で CVS リポジトリを [.filename]#/home/ncvs# に置いたものとすると、 以下のようにしてリリースを構築します。
-[source,bash]
+[source,shell]
....
# setenv CVSROOT /home/ncvs
# or export CVSROOT=/home/ncvs
@@ -5461,13 +5461,13 @@ _[<ben@rosengart.com> が以下のパニックメッセージを投稿しまし
. 命令ポインタ値をメモします。 `0x8:` という部分は今回必要ありません。 必要なのは `0xf0xxxxxx` という部分です。
. システムが再起動したら、以下の操作を行います。
+
-[source,bash]
+[source,shell]
....
% nm -n /kernel.that.caused.the.panic | grep f0xxxxxx
....
ここで、`f0xxxxxx` は命令ポインタ値です。 カーネルシンボルのテーブルは関数のエントリポイントを含み、 命令ポインタ値は、関数内部のある点であり最初の点ではないため、 この操作を行っても完全に一致するものが表示されない場合もあります。 この場合は、 最後の桁を省いてもういちどやってみてください。 このようになります。
+
-[source,bash]
+[source,shell]
....
% nm -n /kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -5501,7 +5501,7 @@ FreeBSD のクラッシュダンプのサイズは、 ふつう物理メモリ
クラッシュダンプを取り出せたら、 以下のように man:gdb[1] を使ってスタックトレースをとります。
-[source,bash]
+[source,shell]
....
% gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0
(gdb) where
diff --git a/documentation/content/ja/books/handbook/advanced-networking/_index.adoc b/documentation/content/ja/books/handbook/advanced-networking/_index.adoc
index 9809f45ca3..e3f5e34e79 100644
--- a/documentation/content/ja/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/ja/books/handbook/advanced-networking/_index.adoc
@@ -79,7 +79,7 @@ toc::[]
以下に示す `netstat` の例を使って、ルーティングのさまざまな状態を説明します。
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -202,7 +202,7 @@ defaultrouter="10.20.30.1"
man:route[8] コマンドを使ってコマンドラインから直接実行することもできます。
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -270,7 +270,7 @@ gateway_enable=YES # Set to YES if this host will be a gateway
`RouterA` のルーティングテーブルを確認すると、 以下のような出力を得ます。
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -285,7 +285,7 @@ default 10.0.0.1 UGS 0 49378 xl0
現在のルーティングテーブルでは、`RouterA` はまだ Internal Net 2 には到達できないでしょう。 `192.168.2.0/24` の経路を保持していないからです。 解決するための一つの方法は、経路を手動で追加することです。 以下のコマンドで `RouterA` のルーティングテーブルに `192.168.1.2` を送り先として、Internal Net 2 ネットワークを追加します。
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -305,7 +305,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
`static_routes` の設定変数は、 スペースによって分離される文字列のリストです。 それぞれの文字列は経路名として参照されます。 上記の例では `static_routes` は一つの文字列のみを持ちます。 その文字列は _internalnet2_ です。その後、 `route_internalnet2` という設定変数を追加し、 man:route[8] コマンドに与えるすべての設定パラメータを指定しています。 前節の例では、以下のコマンド
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -395,7 +395,7 @@ FreeBSD がアクセスポイントを実装するのに使用する hostap 機
はじめにシステムが無線カードを認識していることを確認してください。
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -414,7 +414,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
次に、アクセスポイント用に FreeBSD のブリッジ機能を担う部分を有効にするために、 モジュールを読み込む必要があるでしょう。 man:bridge[4] モジュールを読み込むには、 次のコマンドをそのまま実行します。
-[source,bash]
+[source,shell]
....
# kldload bridge
....
@@ -423,7 +423,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ブリッジ部分が準備できたので、 どのインタフェース間をブリッジするのかを FreeBSD カーネルに指定する必要があります。 これは、man:sysctl[8] を使って行います。
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge=1
# sysctl net.link.ether.bridge_cfg="wi0,xl0"
@@ -432,7 +432,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
FreeBSD 5.2-RELEASE 以降では、次のように指定しなければなりません。
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.enable=1
# sysctl net.link.ether.bridge.config="wi0,xl0"
@@ -441,7 +441,7 @@ FreeBSD 5.2-RELEASE 以降では、次のように指定しなければなりま
さて、無線カードを設定するときです。 次のコマンドはカードをアクセスポイントとして設定します。
-[source,bash]
+[source,shell]
....
# ifconfig wi0 ssid my_net channel 11 media DS/11Mbps mediaopt hostap up stationname "FreeBSD AP"
@@ -457,7 +457,7 @@ FreeBSD 5.2-RELEASE 以降では、次のように指定しなければなりま
一度アクセスポイントが設定されて稼働すると、 管理者はアクセスポイントを利用しているクライアントを見たいと思うでしょう。 いつでも管理者は以下のコマンドを実行できます。
-[source,bash]
+[source,shell]
....
# wicontrol -l
1 station:
@@ -489,7 +489,7 @@ FreeBSD を無線クライアントとして設定するのに、 本当に必
カードが FreeBSD に認識されていることを確認してください。
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -506,7 +506,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
それでは、このカードをネットワークに合わせて設定しましょう。
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net
....
@@ -517,14 +517,14 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
無線接続に関する問題がある場合は、 アクセスポイントに接続されていることを確認してください。
-[source,bash]
+[source,shell]
....
# ifconfig wi0
....
いくらか情報が表示されるはずです。 その中に以下の表示があるはずです。
-[source,bash]
+[source,shell]
....
status: associated
....
@@ -543,14 +543,14 @@ WEP は Wired Equivalency Protocol (訳注: 直訳すると、有線等価プロ
なにも無いよりはましなので、 次のコマンドを使って、あなたの新しい FreeBSD アクセスポイント上で WEP を有効にしてください。
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet up ssid my_net wepmode on wepkey 0x1234567890 media DS/11Mbps mediaopt hostap
....
クライアントについては次のコマンドで WEP を有効にできます。
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net wepmode on wepkey 0x1234567890
....
@@ -611,7 +611,7 @@ FreeBSD 内での Bluetooth スタックは Netgraph フレームワーク (man:
デフォルトでは Bluetooth デバイスドライバはカーネルモジュールとして利用できます。 デバイスを接続する前に、 カーネルにドライバを読み込む必要があります。
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -625,7 +625,7 @@ ng_ubt_load="YES"
USB ドングルを挿してください。コンソールに (または syslog に) 下記のような表示が現れるでしょう。
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -635,7 +635,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
[.filename]#/usr/shared/examples/netgraph/bluetooth/rc.bluetooth# を [.filename]#/etc/rc.bluetooth# のようなどこか便利な場所にコピーしてください。 このスクリプトは Bluetooth スタックを開始および終了させるのに使われます。 デバイスを抜く前にスタックを終了するのはよい考えですが、 (たいていの場合) しなくても致命的ではありません。 スタックを開始するときに、下記のような出力がされます。
-[source,bash]
+[source,shell]
....
# /etc/rc.bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -659,7 +659,7 @@ Number of SCO packets: 8
最も一般的なタスクの一つに、無線通信的に近傍にある Bluetooth デバイスの発見があります。 この動作は _inquiry (問い合わせ)_ と呼ばれています。 Inquiry や他の HCI に関連した動作は man:hccontrol[8] ユーティリティによってなされます。 下記の例は、どの Bluetooth デバイスが通信圏内にあるかを知る方法を示しています。 デバイスのリストが表示されるには数秒かかります。 リモートデバイスは _discoverable (発見可能な)_ モードにある場合にのみ inquiry に返答するということに注意してください。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -675,7 +675,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` は Bluetooth デバイスに固有のアドレスです。 これはネットワークカードの MAC アドレスに似ています。 このアドレスはデバイスとの通信を続けるのに必要となります。 BD_ADDR に人間が判読しやすい名前を割り当てることもできます。 [.filename]#/etc/bluetooth/hosts# ファイルには、 既知の Bluetooth ホストに関する情報が含まれています。 次の例はリモートデバイスに割り当てられている、 人間が判読しやすい名前を得る方法を示しています。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -686,7 +686,7 @@ Name: Pav's T39
Bluetooth システムは一対一接続 (二つの Bluetooth ユニットだけが関係します) または一対多接続を提供します。 一対多接続では、接続はいくつかの Bluetooth デバイス間で共有されます。 次の例は、ローカルデバイスに対するアクティブなベースバンド接続のリストを得る方法を示しています。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -695,7 +695,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
_connection handle_ はベースバンド接続の終了が必要とされるときに便利です。 もっとも、通常はこれを手動で行う必要はありません。 Bluetooth スタックはアクティブでないベースバンド接続を自動的に終了します。
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -714,7 +714,7 @@ L2CAP は _チャネル_ の概念に基づいています。 チャネルはベ
便利なコマンドに、他のデバイスに ping を送ることができる man:l2ping[8] があります。Bluetooth 実装によっては、 送られたデータすべては返さないことがあります。 したがって次の例で _0 バイト_ は正常です。
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -725,7 +725,7 @@ L2CAP は _チャネル_ の概念に基づいています。 チャネルはベ
man:l2control[8] ユーティリティは L2CAP ノード上でさまざまな操作を行うのに使われます。 この例は、ローカルデバイスに対する論理的な接続 (チャネル) およびベースバンド接続の一覧を得る方法を示しています。
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -739,7 +739,7 @@ Remote BD_ADDR Handle Flags Pending State
別の診断ツールが man:btsockstat[1] です。 これは man:netstat[1] と同様の作業を、Bluetooth ネットワークに関するデータ構造についての行います。 下記の例は上の man:l2control[8] と同じ論理的な接続を示します。
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -801,7 +801,7 @@ SDP には SDP サーバと SDP クライアント間の通信が含まれます
現在のところ Bluetooth SDP サーバおよびクライアントは、 http://www.geocities.com/m_evmenkin/[ここ] からダウンロードできる第三者パッケージ sdp-1.5 で実装されています。 sdptool はコマンドラインの SDP クライアントです。 次の例は SDP ブラウズの問い合わせ方法を示しています。
-[source,bash]
+[source,shell]
....
# sdptool browse 00:80:37:29:19:a4
Browsing 00:80:37:29:19:A4 ...
@@ -829,28 +829,28 @@ Protocol Descriptor List:
... 等々。 それぞれのサービスは属性の一覧 (たとえば RFCOMM チャネル) を持っていることに注意してください。サービスによっては、 属性のリストの一部についてメモをとっておく必要があるかもしれません。 Bluetooth 実装のいくつかは、サービスブラウジングに対応しておらず、 空の一覧を返してくるかもしれません。この場合、 特定のサービスを検索をすることは可能です。下記の例は OBEX オブジェクトプッシュ (OPUSH) サービスを検索する方法です。
-[source,bash]
+[source,shell]
....
# sdptool search --bdaddr 00:07:e0:00:0b:ca OPUSH
....
FreeBSD 上における Bluetooth クライアントへのサービス提供は sdpd サーバが行います。
-[source,bash]
+[source,shell]
....
# sdpd
....
sdptool は、ローカル SDP サーバにサービスを登録するのにも用いられます。 下記の例は PPP (LAN) サービスを備えたネットワークアクセスを登録する方法を示しています。 一部のサービスでは属性 (たとえば RFCOMM チャネル) を要求することに注意してください。
-[source,bash]
+[source,shell]
....
# sdptool add --channel=7 LAN
....
ローカル SDP サーバに登録されたサービスの一覧は SDP ブラウザの問い合わせを "特別な" BD_ADDR に送ることで得られます。
-[source,bash]
+[source,shell]
....
# sdptool browse ff:ff:ff:00:00:00
....
@@ -872,14 +872,14 @@ FreeBSD ではどちらのプロファイルも man:ppp[8] と man:rfcomm_pppd[8
次の例では、DUN RFCOMM チャネル上で BD_ADDR が 00:80:37:29:19:a4 のリモートデバイスへの RFCOMM 接続を開くのに man:rfcomm_pppd[8] が使われます。実際の RFCOMM チャネル番号は SDP を介してリモートデバイスから得ます。 手動で RFCOMM チャネルを指定することもでき、その場合 man:rfcomm_pppd[8] は SDP 問い合わせを実行しません。 リモートデバイス上の RFCOMM チャネルを見つけるには、 sdptool を使ってください。
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
PPP (LAN) サービスでネットワークアクセスを提供するためには、 sdpd サーバが動いていなければなりません。 これはローカル SDP サーバに LAN サービスを登録するのにも必要です。 LAN サービスは RFCOMM チャネル属性を必要とすることに注意してください。 [.filename]#/etc/ppp/ppp.conf# ファイル内に LAN クライアントの新しいエントリを作成しなければなりません。 例については man:rfcomm_pppd[8] のマニュアルページを参照してください。 最後に、RFCOMM PPP サーバが実行され、 ローカル SDP サーバに登録されているのと同じ RFCOMM チャネルで待ち受けていなければなりません。 次の例は RFCOMM PPP サーバを起動する方法を示しています。
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -892,7 +892,7 @@ OBEX サーバおよびクライアントは、 http://www.geocities.com/m_evmen
OBEX クライアントは OBEX サーバとの間でオブジェクトを渡したり (プッシュ) および受け取ったり (プル) するのに使用されます。 オブジェクトは、たとえば名刺や予定などになります。 OBEX クライアントは RFCOMM チャネル番号を SDP によってリモートデバイスから得ることができます。 これは RFCOMM チャネル番号の代わりにサービス名を指定することによって行うことができます。 対応しているサービス名は IrMC, FTRN および OPUSH です。 RFCOMM チャネルを番号で指定することもできます。 下記は、デバイス情報オブジェクトを携帯電話から受け取り、 新しいオブジェクト (名刺) が携帯電話に渡される場合の OBEX セッションの例です。
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get
@@ -909,7 +909,7 @@ Success, response: OK, Success (0x20)
OBEX プッシュサービスを提供するためには、 sdpd サーバが実行されていなければなりません。 また OPUSH サービスをローカル SDP サーバに登録することも必要です。 なお、OPUSH サービスには RFCOMM チャネル属性が必要です。 渡されるオブジェクトをすべて格納するルートフォルダを作成しなければいけません。 ルートフォルダのデフォルトパスは [.filename]#/var/spool/obex# です。 最後に OBEX サーバが実行され、 ローカル SDP サーバに登録されているのと同じ RFCOMM チャネルで待ち受けていなければなりません。 下記の例は OBEX サーバの起動方法を示します。
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -920,7 +920,7 @@ OBEX プッシュサービスを提供するためには、 sdpd サーバが実
man:rfcomm_sppd[1] ユーティリティはシリアルポートプロファイルを実装します。 Pseudo tty が仮想シリアルポート抽象概念として用いられます。 下記の例はリモートデバイスのシリアルポートサービスへ接続する方法を示します。 なお、RFCOMM チャネルを指定する必要はありません。- man:rfcomm_sppd[1] は SDP を介してリモートデバイスからその情報を得ることができます。 これを上書きしたい場合にはコマンドラインで RFCOMM チャネルを指定してください。
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -928,7 +928,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
接続された pseudo tty はシリアルポートとして利用することができます。
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -939,7 +939,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
古い Bluetooth デバイスのなかにはロールスイッチング (role switching) に対応していないものがあります。 デフォルトでは FreeBSD が新しい接続を受け付けるときに、 ロールスイッチを実行してマスタになろうとします。 これに対応していないデバイスは接続できないでしょう。 なお、ロールスイッチングは新しい接続が確立されるときに実行されるので、 ロールスイッチングに対応しているかどうかリモートデバイスに問い合わせることはできません。 ローカル側でロールスイッチングを無効にする HCI オプションがあります。
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1171,7 +1171,7 @@ nfs_client_enable="YES"
変更が有効となるように、 [.filename]#/etc/exports# が変更されたら `mountd` を再起動しなければなりません。 これは `mountd` プロセスに HUP シグナルを送ることで実行できます。
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
@@ -1180,7 +1180,7 @@ nfs_client_enable="YES"
NFS サーバでは
-[source,bash]
+[source,shell]
....
# portmap
# nfsd -u -t -n 4
@@ -1189,14 +1189,14 @@ NFS サーバでは
NFS クライアントでは
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
これでリモートのファイルシステムを実際にマウントする準備がすべてできました。 この例では、サーバの名前は `server` で、 クライアントの名前は `client` とします。 リモートファイルシステムを一時的にマウントするだけ、 もしくは設定をテストするだけなら、クライアント上で `root` 権限で以下のコマンドを実行するだけです。
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -1234,7 +1234,7 @@ amd はそれ自身を NFS サーバとして [.filename]#/host# および [.fil
====
`showmount` コマンドを用いて、 リモートホストのマウントで利用できるものが見られます。 たとえば、`foobar` と名付けられたホストのマウントを見るために次のように利用できます。
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -1287,7 +1287,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
`freebox` 上で手動で mount コマンドを実行する場合は次のようにして下さい。
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -1301,7 +1301,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
`fastws` 上で手動で mount コマンドで実行する場合は次のようにして下さい。
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -1426,7 +1426,7 @@ http://etherboot.sourceforge.net[Etherboot のウェブサイト] には主に L
ブートフロッピーを作成するためには、 etherboot をインストールしたマシンのドライブにフロッピーディスクを挿入します。 それからカレントディレクトリを etherboot ツリー内の [.filename]#src# ディレクトリにして次のように入力します。
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
....
@@ -1454,7 +1454,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -s /tftpboot
+
. `inetd` に設定ファイルを再読み込みさせてください。
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -1483,7 +1483,7 @@ nfs_server_enable="YES"
+
. `mountd` に設定ファイルを再読み込みさせてください。 [.filename]#/etc/rc.conf# 内で NFS をはじめて有効にする必要があったのなら、 代わりに再起動した方がよいかもしれません。
+
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
@@ -1551,7 +1551,7 @@ nfs_server_enable="YES"
+
. NFS スワップファイルサーバ側でスワップファイルを作成します。
+
-[source,bash]
+[source,shell]
....
# mkdir /netswapvolume/netswap
# cd /netswapvolume/netswap
@@ -1851,7 +1851,7 @@ NIS の設定によっては、 さらに他のエントリを付け加える必
_NIS マップ_ とは [.filename]#/var/yp# ディレクトリにあるデータベースファイルです。 これらは NIS マスタの [.filename]#/etc# ディレクトリの設定ファイルから作られます。 唯一の例外は [.filename]#/etc/master.passwd# ファイルです。これは `root` や他の管理用アカウントのパスワードまでその NIS ドメインのすべてのサーバに伝えたくないという、 もっともな理由によるものです。このため NIS マップの初期化の前に以下を行う必要があります。
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -1867,7 +1867,7 @@ _NIS マップ_ とは [.filename]#/var/yp# ディレクトリにあるデータ
すべてが終わったら NIS マップを初期化します! FreeBSD には、これを行うために `ypinit` という名のスクリプトが含まれています (詳細はそのマニュアルページをご覧ください)。 このスクリプトはほとんどの UNIX(R) OS に存在しますが、 すべてとは限らないことを覚えておいてください。 Digital Unix/Compaq Tru64 UNIX では `ypsetup` と呼ばれています。NIS マスタのためのマップを作るためには `-m` オプションを `ypinit` に与えます。上述のステップを完了しているなら、以下を実行して NIS マップを生成します。
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -1896,7 +1896,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` は [.filename]#/var/yp/Makefile# を [.filename]#/var/yp/Makefile.dist# から作成します。 作成された時点では、そのファイルはあなたが FreeBSD マシンだけからなるサーバが 1 台だけの NIS 環境を扱っていると仮定しています。 _test-domain_ はスレーブサーバを一つ持っていますので [.filename]#/var/yp/Makefile# を編集しなければなりません。
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -1912,7 +1912,7 @@ NOPUSH = "True"
NIS スレーブサーバの設定はマスターサーバの設定以上に簡単です。 スレーブサーバにログオンし [.filename]#/etc/rc.conf# ファイルを前回と同様に編集します。唯一の違うところは `ypinit` の実行に `-s` オプションを使わなければいけないことです。 `-s` オプションは NIS マスターサーバの名前を要求し、 コマンドラインは以下のようになります。
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -2072,7 +2072,7 @@ tcpwrapper パッケージを使うとあなたの NIS サーバのレイテン
当該人物が NIS のデータベースに載っていても、 そのユーザがマシンにログオンできないようにする方法があります。 そうするには __-username__ をクライアントマシンの [.filename]#/etc/master.passwd# ファイルの末尾に付け足します。 _username_ はあなたがログインさせたくないと思っているユーザのユーザ名です。 これは `vipw` で行うべきです。 `vipw` は [.filename]#/etc/master.passwd# への変更をチェックし、編集終了後パスワードデータベースを再構築します。 たとえば、ユーザ _bill_ が `basie` にログオンするのを防ぎたいなら、以下のようにします。
-[source,bash]
+[source,shell]
....
basie# vipw
[add -bill to the end, exit]
@@ -2157,7 +2157,7 @@ NIS の開発者はこの問題を _ネットグループ_ と呼ばれる方法
最初のステップは NIS マップネットグループの初期化です。 FreeBSD の man:ypinit[8] はこのマップをデフォルトで作りませんが、 その NIS の実装はそれが作られさえすればそれをサポートするものです。 空のマップを作るには、単に
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -2200,7 +2200,7 @@ BIGGROUP BIGGRP1 BIGGRP2 BIGGRP3
新しい NIS マップの有効化と配布は簡単です。
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -2208,7 +2208,7 @@ ellington# make
これで新しい 3 つの NIS マップ [.filename]#netgroup#, [.filename]#netgroup.byhost#, [.filename]#netgroup.byuser# ができるはずです。 新しい NIS マップが利用できるか確かめるには man:ypcat[1] を使います。
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -2338,7 +2338,7 @@ NIS 環境にある今、 今までとは違ったやり方が必要なことが
* 研究室にユーザを追加するときは、それをマスター NIS サーバに _だけ_ 追加しなければならず、さらに _NIS マップを再構築することを忘れてはいけません_。 これを忘れると新しいユーザは NIS マスタ以外のどこにもログインできなくなります。 たとえば、新しくユーザ "jsmith" をラボに登録したいときは以下のようにします。
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -2389,7 +2389,7 @@ default:\
[.filename]#/etc/login.conf# を変更したときは、 ログイン特性データベースも再構築しなければなりません。 これは `root` 権限で下記のようにコマンドを実行すればできます。
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -2554,7 +2554,7 @@ host mailhost {
[.filename]#dhcpd.conf# を書き終えたら以下のコマンドでサーバを起動できます。
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd.sh start
....
@@ -2689,7 +2689,7 @@ named_enable="YES"
デーモンを手動で起動するためには (設定をした後で)
-[source,bash]
+[source,shell]
....
# ndc start
....
@@ -2700,7 +2700,7 @@ named_enable="YES"
次のコマンドが
-[source,bash]
+[source,shell]
....
# cd /etc/namedb
# sh make-localhost
@@ -3036,7 +3036,7 @@ named は砂場の外 (共有ライブラリ、ログソケットなど) にア
* named が存在することを期待しているディレクトリをすべて作成します。
+
-[source,bash]
+[source,shell]
....
# cd /etc/namedb
# mkdir -p bin dev etc var/tmp var/run master slave
@@ -3046,7 +3046,7 @@ named は砂場の外 (共有ライブラリ、ログソケットなど) にア
<.> これらのディレクトリに対して named が必要なのは書き込み権限だけなので、それだけを与えます。
* 基本ゾーンファイルと設定ファイルの編集と作成を行います。
+
-[source,bash]
+[source,shell]
....
# cp /etc/localtime etc <.>
# mv named.conf etc && ln -sf etc/named.conf
@@ -3070,7 +3070,7 @@ $TTL 6h
<.> これは named が man:syslogd[8] に正しい時刻でログを書き込むことを可能にします。
* 4.9-RELEASE より前のバージョンの FreeBSD を使用している場合、 静的リンクされた named-xfer を構築し、砂場にコピーしてください。
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libisc
# make cleandir && make cleandir && make depend && make all
@@ -3083,7 +3083,7 @@ $TTL 6h
+
静的リンクされた `named-xfer` をインストールしたら、 ソースツリーの中にライブラリまたはプログラムの古くなったコピーを残さないように、 掃除する必要があります。
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libisc
# make cleandir
@@ -3098,7 +3098,7 @@ $TTL 6h
バージョン 4.9-RELEASE 以降の FreeBSD を使用している場合 [.filename]#/usr/libexec# にある `named-xfer` のコピーはデフォルトで静的リンクされています。 砂場にコピーするために単純に man:cp[1] が使えます。
* named が見ることができ、 書き込むことのできる [.filename]#dev/null# を作成します。
+
-[source,bash]
+[source,shell]
....
# cd /etc/namedb/dev && mknod null c 2 2
# chmod 666 null
@@ -3106,7 +3106,7 @@ $TTL 6h
* [.filename]#/etc/namedb/var/run/ndc# から [.filename]#/var/run/ndc# へのシンボリックリンクを作成します。
+
-[source,bash]
+[source,shell]
....
# ln -sf /etc/namedb/var/run/ndc /var/run/ndc
....
@@ -3285,7 +3285,7 @@ NTP サーバが起動時に実行されることを保証するために、 `xn
マシンを再起動することなくサーバを実行したいときは、 [.filename]#/etc/rc.conf# 内の `xntpd_flags` で追加されたパラメータをすべて指定して `ntpd` を実行してください。以下に例を示します。
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -3576,7 +3576,7 @@ inetd の設定は [.filename]#/etc/inetd.conf# ファイルによって制御
[example]
====
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -3850,7 +3850,7 @@ BUSY
はじめに、ラップリンクケーブルを入手しなければなりません。 次に、両方のコンピュータのカーネルが man:lpt[4] ドライバ対応であることを確認してください。
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -3874,7 +3874,7 @@ hint.ppc.0.irq="7"
それからカーネルコンフィギュレーションファイルに `device plip` という行があるか、または [.filename]#plip.ko# カーネルモジュールが読み込まれていることを確認してください。 どちらの場合でも man:ifconfig[8] コマンドを直接実行したときに、 パラレルネットワークインタフェースが現れるはずです。 FreeBSD 4.X ではこのようになります。
-[source,bash]
+[source,shell]
....
# ifconfig lp0
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -3882,7 +3882,7 @@ lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
FreeBSD 5.X ではこのようになります。
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -3905,14 +3905,14 @@ IP Address 10.0.0.1 10.0.0.2
次のコマンドで `host1` 上のインタフェースを設定します。
-[source,bash]
+[source,shell]
....
# ifconfig lp0 10.0.0.1 10.0.0.2
....
次のコマンドで `host2` 上のインタフェースを設定します。
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -3930,7 +3930,7 @@ IP Address 10.0.0.1 10.0.0.2
接続がうまくいっているか確かめるために、 両方のホスト上で互いを ping してください。 たとえば `host1` で以下を実行します。
-[source,bash]
+[source,shell]
....
# ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -4059,7 +4059,7 @@ IPv4 のブロードキャストアドレス (通常 `xxx.xxx.xxx.255`) は、IP
ここまで来れば、下記を理解することができるでしょう。
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -4098,7 +4098,7 @@ IPv6 アドレス構造についての詳細は RFC3513 をご覧ください。
ここに man:gif[4] トンネルを設定する典型的な例を示します。
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0
@@ -4118,13 +4118,13 @@ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
ここまで来ると 6bone アップリンクに経路設定することは比較的簡単でしょう。
-[source,bash]
+[source,shell]
....
# route add -inet6 default -interface gif0
# ping6 -n MY_UPLINK
....
-[source,bash]
+[source,shell]
....
# traceroute6 www.jp.FreeBSD.org
(3ffe:505:2008:1:2a0:24ff:fe57:e561) from 3ffe:8060:100::40:2, 30 hops max, 12 byte packets
diff --git a/documentation/content/ja/books/handbook/basics/_index.adoc b/documentation/content/ja/books/handbook/basics/_index.adoc
index 9a64e179f2..016cb971a3 100644
--- a/documentation/content/ja/books/handbook/basics/_index.adoc
+++ b/documentation/content/ja/books/handbook/basics/_index.adoc
@@ -73,7 +73,7 @@ FreeBSD は様々な使い方ができます。その中の一つが、 テキ
起動時に自動的にグラフィカルな環境が起動するように FreeBSD を設定していなければ、システムが起動してスタートアップ スクリプトが実行されると、すぐにログインプロンプトが出てくるでしょう。 次のようものが表示されるはずです。
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -113,14 +113,14 @@ FreeBSD は、マルチユーザ、マルチプロセスなシステムです。
FreeBSD が起動してスタートアップスクリプトを実行し終わった 直後に、プロンプトを表示して有効なユーザ名の入力を促します。
-[source,bash]
+[source,shell]
....
login:
....
この例では `john` というユーザ名を使う ことにしましょう。このプロンプトに対して `john` と入力して、kbd:[Enter] を 押してください。そうすると、 次のような"パスワード"の入力を要求するプロンプトが 表示されます。
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -202,14 +202,14 @@ options SC_PIXEL_MODE
1 度このオプションを有効にしてカーネルを再コンパイルしたら、 あなたのハードウェアがどのビデオモードに対応しているか、 man:vidcontrol[1] を用いて知ることができます。 以下を実行すると、どのビデオモードに対応しているかを知ることができます。
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
このコマンドの出力結果があなたのハードウェアが対応しているビデオモードです。 その後 `root` ユーザで man:vidcontrol[1] を実行することで、 新しくどのビデオモードを使うかを選択できます。
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -270,7 +270,7 @@ FreeBSD は BSD UNIX(R) の直系の子孫であり、 いくつかの鍵とな
man:ls[1] に対してコマンドライン引数 `-l` を使うと、 詳細なディレクトリリストを見ることができ、 ファイルの所有者、グループ、その他への許可属性を示す欄があるのがわかります。 例えば、`ls -l` を実行して、 適当なディレクトリを表示させると以下のようになります。
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -282,7 +282,7 @@ total 530
以下に示すのは、 `ls -l` の最初の行を抜き出したものです。
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -359,14 +359,14 @@ total 530
これらの値は、これまでと同様に man:chmod[1] コマンドで用いますが、文字で指定します。 たとえば、_FILE_ に対して自分以外のユーザからアクセスを一切受け付けたくない、 というときには以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
カンマ区切りで設定することで、 ファイルの属性を一度に 2 つ以上変更できます。 以下の例では、_FILE_ に対して自分以外のユーザから書き込みの権限を取り上げ、 かわりにすべてのユーザが _FILE_ を実行できるようにします。
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -379,21 +379,21 @@ total 530
ファイルフラグは、man:chflags[1] を使って、簡単なインタフェースで設定できます。 例えば、[.filename]#file1# というファイルにシステムレベルで消去不可のフラグを設定するには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
また、消去不可のフラグを削除するには、 以下のように先ほどのコマンドの `sunlink` の前に "no" をつけるだけです。
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
ファイルにどのフラグが設定されているのかを見るには、man:ls[1] コマンドを `-lo` オプションと一緒に使ってください。
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -733,7 +733,7 @@ man:mount[8] コマンドは、 ファイルシステムをマウントするた
基本的には、次のように使います。
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -795,7 +795,7 @@ man:ps[1] と man:top[1] という2つのコマンドが システム上のプ
デフォルトでは、`ps` は動作中かつ所有者が自分のコマンドのみを表示します。 例えば:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -823,7 +823,7 @@ man:ps[1] は表示する情報を変えるためのオプションをたくさ
man:top[1] の出力も同様です。 例は以下の通りです。
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -880,7 +880,7 @@ man:kill[1] コマンドを使って送るシグナルはこの例をご覧く
. シグナルを送りたいプロセスのプロセス ID を探します。 それには man:ps[1] と man:grep[1] を使います。 man:grep[1] コマンドは出力を検索するために使い、 指定した文字列を探します。 このコマンドは一般ユーザで実行しますが、 man:inetd[8] は `root` で実行されているので、 man:ps[1] には `ax` オプションを与える必要があります。
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -889,7 +889,7 @@ man:kill[1] コマンドを使って送るシグナルはこの例をご覧く
ということで、man:inetd[8] の PID は 198 です。 `grep inetd` コマンドがこの出力に出てくる場合もあります。 それは、man:ps[1] が動作中のプロセスのリストを見つける方法によります。
. man:kill[1] を使ってシグナルを送ります。 man:inetd[8] は `root` で起動されているために、 まず man:su[1] を使って `root` にならなければなりません。
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -969,14 +969,14 @@ FreeBSD では日々の作業のほとんどは、 「シェル」と呼ばれ
環境変数をセットする方法は、 それぞれのシェルごとに多少異なります。 たとえば、`tcsh` や `csh` 等の C シェルでは `setenv` を使います。 `sh` や `bash` 等の Bourne シェルでは `set` と `export` を使います。 たとえば `csh` か `tcsh` で `EDITOR` 環境変数の値を [.filename]#/usr/local/bin/emacs# に セットするか変更するには、次のようにします。
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Bourne シェルでは次のようになります。
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -994,7 +994,7 @@ Bourne シェルでは次のようになります。
`chsh` に `-s` オプションをつけると、 エディタを起動せずにシェルを変更することが可能です。 たとえば、シェルを `bash` に変えたいなら、次のようにしてください。
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1005,7 +1005,7 @@ Bourne シェルでは次のようになります。
たとえば、`bash` を手動で [.filename]#/usr/local/bin# にインストールした場合 以下のようにする必要があります。
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1049,14 +1049,14 @@ UNIX(R) オペレーティングシステムにおけるデバイスのほとん
FreeBSD についてのもっとも包括的な文書は、 マニュアルページの形式になっているものです。 FreeBSD システム上のほとんどすべてのプログラムには、 基本的な操作方法とさまざまな引数を説明しているリファレンスマニュアルが添付されています。 これらのマニュアルは `man` コマンドで見ることができます。`man` コマンドの使い方は簡単です。
-[source,bash]
+[source,shell]
....
% man コマンド名
....
`コマンド名` のところには、知りたいコマンドの名前を入れます。 たとえば `ls` コマンドについて知りたい場合には、 次のように入力します。
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1075,7 +1075,7 @@ FreeBSD についてのもっとも包括的な文書は、 マニュアルペ
時折、 同じトピックがオンラインマニュアルの複数のセクションに記載されている場合があります。 たとえば、`chmod` ユーザコマンドと `chmod()` システムコールの場合がそれに該当します。 この場合、`man` コマンドにセクション番号を与えることで、 どちらを参照したいかを指定することができます。
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1084,7 +1084,7 @@ FreeBSD についてのもっとも包括的な文書は、 マニュアルペ
コマンドの名前を知っていて、 単純にその使い方を知りたい場合はここまでの説明で十分でしょう。 しかし、 もしコマンドの名前を思い出せない場合にはどうしたら良いのでしょうか? `man` に `-k` スイッチをつければ、 コマンド解説 (description) の文章から、 指定したキーワードを検索することができます。
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1093,7 +1093,7 @@ FreeBSD についてのもっとも包括的な文書は、 マニュアルペ
それでは、[.filename]#/usr/bin# にあるさまざまなコマンドすべてを見ていて、 それらが実際にどう働くのかが、まったく見当もつかないときには どうしたら良いでしょう? そのときは単純に、
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1101,7 +1101,7 @@ FreeBSD についてのもっとも包括的な文書は、 マニュアルペ
とするか、あるいは同じ働きをする
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1116,7 +1116,7 @@ FreeBSD には Free Software Foundation (FSF) によるアプリケーション
man:info[1] コマンドを使うには、単に次のように入力します。
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/ja/books/handbook/boot/_index.adoc b/documentation/content/ja/books/handbook/boot/_index.adoc
index d12170c405..599eb3bf3e 100644
--- a/documentation/content/ja/books/handbook/boot/_index.adoc
+++ b/documentation/content/ja/books/handbook/boot/_index.adoc
@@ -101,7 +101,7 @@ FreeBSD のインストーラがインストールする MBR は、 [.filename]#
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
他のオペレーティングシステムは、 FreeBSD の後にインストールを行うと、既存の MBR を上書きしてしまいます。 もしそうなってしまったら、 もしくは既存の MBR を FreeBSD の MBR で置き換えるには、 次のコマンドを使ってください。
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -136,7 +136,7 @@ _device_ は起動するデバイス名で、 たとえば 1 番目の IDE デ
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -147,7 +147,7 @@ boot:
インストールされた [.filename]#boot1# と [.filename]#boot2# を変更するには、 `bsdlabel` を使ってください。 以下の例では、_diskslice_ は起動するディスクとスライスで、たとえば最初の IDE ディスクの 1 番目のスライスは [.filename]#ad0s1# となります。
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -220,14 +220,14 @@ loader は最後に、 標準設定で 10 秒のキー入力待ち時間を用
次にあげるのは、ローダの実践的な使用例です。 普段使っているカーネルをシングルユーザモードで起動します。
-[source,bash]
+[source,shell]
....
boot -s
....
普段使っているカーネルとモジュールをアンロードし、 古いもしくは別のカーネルをロードするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -237,7 +237,7 @@ load kernel.old
普段のカーネルで使っているモジュールを指定したカーネルでロードする場合は、 次のようにします。
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -246,7 +246,7 @@ boot-conf
カーネルの自動設定スクリプトをロードします。
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -381,14 +381,14 @@ bitmap_name="/boot/splash.bin"
[.filename]#/boot/device.hints# は 1 行につき一つの変数を設定でき、行頭の "#" はその行がコメントであることを示しています。 書式は次の通りです。
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
ステージ 3 ブートローダ で設定するときの書式は次の通りです。
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/ja/books/handbook/bsdinstall/_index.adoc b/documentation/content/ja/books/handbook/bsdinstall/_index.adoc
index 218af0c329..f1a19e9c6d 100644
--- a/documentation/content/ja/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/ja/books/handbook/bsdinstall/_index.adoc
@@ -193,7 +193,7 @@ UEFI (Unified Extensible Firmware Interface) で起動するコンピュータ
====
. man:dd[1] コマンドユーティリティは、 BSD, Linux(R), および Mac OS(R) システムで利用できます。 `dd` を使ってイメージを焼くには、 USB スティックを挿入して、 デバイス名を確定してください。 その後、ダウンロードしたインストールファイルおよび、 USB スティックのデバイス名を指定してください。 この例では、amd64 インストールイメージを FreeBSD システムの最初の USB デバイスに書き込みます。
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-12.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -250,7 +250,7 @@ commit your changes?
ほとんどのコンピュータでは、 起動中にキーボードの kbd:[C] を押しておくと、CD から起動します。 別の方法では kbd:[Command+Option+O+F]、 または non-Apple(R) キーボードでは kbd:[Windows+Alt+O+F] を押してください。`0 >` プロンプトで
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -884,7 +884,7 @@ FreeBSD の起動時には、多くのメッセージが画面に表示されま
<<bsdinstall-config-serv>> にて、 sshd を有効に設定した場合には、 最初の起動時にシステムが RSA および DSA キーを生成するため、 少々時間がかかるかもしれません。 その後の起動はより速くなるでしょう。 鍵のフィンガープリントは、以下の例のように表示されます。
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1040,7 +1040,7 @@ image::bsdinstall-netinstall-mirrorselect.png[]
システムの起動時に、ハードウェアの検出中にシステムが固まったり、 インストール中におかしな振る舞いをする場合には、 ACPI が原因の可能性があります。 i386 および amd64 プラットフォームにおいて、 FreeBSD はシステムの設定を手助けするシステム ACPI サービスを、 起動時に検出された場合に広く使います。 残念ながら、まだいくつかの不具合が、 ACPI ドライバとシステムのマザーボードおよび BIOS ファームウェア両方に存在しています。 起動ステージ 3 において、ヒント情報 `hint.acpi.0.disabled` を以下のように設定すると ACPI を無効にできます。
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/ja/books/handbook/config/_index.adoc b/documentation/content/ja/books/handbook/config/_index.adoc
index 07ddc30e90..482ee6eb2d 100644
--- a/documentation/content/ja/books/handbook/config/_index.adoc
+++ b/documentation/content/ja/books/handbook/config/_index.adoc
@@ -429,14 +429,14 @@ man:sysctl[8] は稼働中の FreeBSD システムに変更を加えるための
読み取り可能なすべての変数を表示するには以下のようにします。
-[source,bash]
+[source,shell]
....
% sysctl -a
....
個々の変数、たとえば `kern.maxproc` を読むには以下のようにします。
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -444,7 +444,7 @@ kern.maxproc: 1044
特定の変数をセットするには、直感的な文法 _変数_=_値_ を使ってください。
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -471,7 +471,7 @@ FreeBSD 4.3 では IDE のライトキャッシュがオフになりました。
man:tunefs[8] プログラムはファイルシステムを細かくチュー ニングするのに使えます。このプログラムにはさまざまなオプションがありま すが、ここではソフトアップデートをオンオフすることだけを考えま す。以下の様にして切り替えます。
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
diff --git a/documentation/content/ja/books/handbook/cutting-edge/_index.adoc b/documentation/content/ja/books/handbook/cutting-edge/_index.adoc
index 0ecc55b09a..d6e844f24c 100644
--- a/documentation/content/ja/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/ja/books/handbook/cutting-edge/_index.adoc
@@ -152,7 +152,7 @@ FreeBSD のセキュリティパッチを適用する過程は簡単になりま
以下のコマンドを実行すると、FreeBSD のセキュリティパッチがダウンロードされ、インストールされます。 最初のコマンドは、未対応のパッチがあるかどうかを調べます。 もし未対応のパッチがある場合には、 パッチが当てられた際に変更されるファイルのリストが作成されます。 2 番目のコマンドはパッチを適用します。
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -176,7 +176,7 @@ FreeBSD のセキュリティパッチを適用する過程は簡単になりま
うまく行かなかった場合には、`freebsd-update` を以下のように実行すると、最後の変更までロールバックできます。
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -207,14 +207,14 @@ FreeBSD のマイナーバージョン間のアップグレード、 たとえ
以下のコマンドを実行すると、FreeBSD 9.0 のシステムを FreeBSD 9.1 にアップグレードします。
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
コマンドを実行すると、`freebsd-update` は設定ファイルと現在のシステムを評価し、 アップデートするために必要な情報を収集します。 画面には、どのコンポーネントが認識され、 どのコンポーネントが認識されていないといったリストが表示されます。 たとえば以下のように表示されます。
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -238,7 +238,7 @@ Does this look reasonable (y/n)? y
カスタムカーネルを使っていると、 上記のステップで以下のような警告が表示されます。
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -254,7 +254,7 @@ before running "/usr/sbin/freebsd-update install"
====
すべてのパッチは別のディレクトリでマージされており、 まだ、システムには反映されていません。 すべてのパッチが正しく適用され、 すべての設定ファイルがマージされてプロセスがスムーズに進んだら、 ユーザは以下のコマンドを用いて、 変更点をディスクに反映してください。
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -263,7 +263,7 @@ before running "/usr/sbin/freebsd-update install"
パッチは最初にカーネルとカーネルモジュールに対して当てられます。 システムがカスタムカーネルを実行している場合には、 man:nextboot[8] を使って次回の再起動時のカーネルを、 アップデートされた [.filename]#/boot/GENERIC# に設定してください。
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -275,14 +275,14 @@ before running "/usr/sbin/freebsd-update install"
アップデートされたカーネルでコンピュータを再起動してください。
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
システムがオンラインに戻ったら、以下のコマンドを使って `freebsd-update` を再び実行してください。 アップデートプロセスの状態は保存されているので、 `freebsd-update` を実行すると、 最初からではなく、次のステップに進み、 古い共有ライブラリとオブジェクトファイルを削除します。
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -301,7 +301,7 @@ before running "/usr/sbin/freebsd-update install"
もし、2 回以上カスタムカーネルを構築した後であったり、 カスタムカーネルを構築した回数がわからなければ、 現在のオペレーティングシステムのバージョンの [.filename]#GENERIC# カーネルを入手してください。 コンピュータへの物理的なアクセスが可能であれば、 インストールメディアから [.filename]#GENERIC# カーネルをインストールできます。
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -310,7 +310,7 @@ before running "/usr/sbin/freebsd-update install"
別な方法としては、 [.filename]#GENERIC# カーネルをソースから再構築して、 インストールしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -327,14 +327,14 @@ before running "/usr/sbin/freebsd-update install"
すべての package の強制的なアップグレードでは、 バージョン番号が上がらない package に対しても、 リポジトリから最新のバージョンで、インストールされている package を置き換えます。 FreeBSD のメージャーバージョンが変わるようなアップグレードでは、 ABI のバージョンも変わるため、 このようなアップグレードが必要になります。 強制的なアップグレードを行うには、以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
インストールされているすべてのアプリケーションを再構築するには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -343,7 +343,7 @@ before running "/usr/sbin/freebsd-update install"
ソフトウェアのアップグレードが終わったら、最後にもう一度 `freebsd-update` を実行して、 すべてのアップグレードプロセスのやり残し作業を行い、 アップグレードのプロセスを完了してください。
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -364,7 +364,7 @@ before running "/usr/sbin/freebsd-update install"
比較を行うには、 結果の出力先のファイル名を指定してください。
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -373,7 +373,7 @@ before running "/usr/sbin/freebsd-update install"
これらの行は極めて長いのですが、出力形式は簡単にすぐに解析できます。 たとえば、これらのリリースで異なっているすべてのファイルを知りたいのであれば、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -400,7 +400,7 @@ before running "/usr/sbin/freebsd-update install"
インストールしたら、svnlite を使って、ドキュメントのソースをダウンロードしてください。
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -409,7 +409,7 @@ before running "/usr/sbin/freebsd-update install"
ダウンロードしたドキュメントのソースをアップデートするには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -418,7 +418,7 @@ before running "/usr/sbin/freebsd-update install"
利用可能なすべての言語のドキュメントをアップデートするには、 以下のように入力してください。
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -426,7 +426,7 @@ before running "/usr/sbin/freebsd-update install"
もし、ある特定の言語のみをアップデートしたいのであれば、 [.filename]#/usr/doc# の下にある各言語のサブディレクトリで `make` を実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -434,14 +434,14 @@ before running "/usr/sbin/freebsd-update install"
ドキュメントをアップデートする別の方法は、 [.filename]#/usr/doc# または各言語のサブディレクトリで以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# make update
....
`FORMATS` を設定して、 以下のようにインストールする出力形式を指定できます。
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -480,7 +480,7 @@ FreeBSD のドキュメントをアップデートするこれらの方法は、
バイナリ package を使うと、 インストールする言語に用意されているすべての形式の FreeBSD ドキュメントがインストールされます。 たとえば、以下のコマンドを実行すると、 ハンガリー語のドキュメントの最新 package がインストールされます。
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -492,7 +492,7 @@ FreeBSD のドキュメントをアップデートするこれらの方法は、
ドキュメントのフォーマットを指定する場合には、package ではなく port から構築してください。たとえば、 英語のドキュメントを構築してインストールするには以下のようにして下さい。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -513,7 +513,7 @@ HTML 形式を構築します。 各ドキュメントに対し、単一版の H
以下は、上記の変数を用いてハンガリー語のドキュメントを PDF 形式でインストールする方法です。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -521,7 +521,7 @@ HTML 形式を構築します。 各ドキュメントに対し、単一版の H
crossref:ports[ports,アプリケーションのインストール - packages と ports] に書かれている手順を使って、 ドキュメンテーション package または port をアップデートできます。 たとえば、以下のコマンドを実行すると、 package:ports-mgmt/portupgrade[] から、package だけを使ってインストールされているハンガリー語のドキュメントをアップデートします。
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -600,7 +600,7 @@ FreeBSD-STABLE を追いかけるには
====
. アップデートおよびビルド
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -645,7 +645,7 @@ check /usr/src/UPDATING <.>
FreeBSD のソースコードは [.filename]#/usr/src/# に置かれています。 このソースコードのアップデートには、 Subversion バージョン管理システムを利用する方法が推奨されています。まず、 ソースコードがバージョン管理下にあることを確認してください。
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -655,7 +655,7 @@ Working Copy Root Path: /usr/src
この結果は、[.filename]#/usr/src/# がバージョン管理下にあり、man:svnlite[1] を使ってアップデートできることを示しています。
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -694,7 +694,7 @@ STABLE ブランチは、 時期によってはユーザに影響するような
man:uname[1] を使って FreeBSD のバージョンを確認してください。
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -702,7 +702,7 @@ man:uname[1] を使って FreeBSD のバージョンを確認してください
<<updating-src-obtaining-src-repopath>> から分かるように、`10.3-RELEASE` のアップデートのためのソースコードのパスは、 `base/releng/10.3` です。 このパスは、ソースコードをチェックアウトする時に使います。
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -717,7 +717,7 @@ man:uname[1] を使って FreeBSD のバージョンを確認してください
まず最初に _world_ (カーネルを除くオペレーティングシステムのすべて) をコンパイルします。 このステップを最初に実行するのは、 カーネルの構築を最新のツールを使って行うようにするためです。 このステップが終わったら、カーネルそのものを構築します。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -733,7 +733,7 @@ man:uname[1] を使って FreeBSD のバージョンを確認してください
FreeBSD ビルドシステムのいくつかのバージョンは、 オブジェクトが一時的に置かれるディレクトリ [.filename]#/usr/obj# に前回のコンパイルされたコードを残します。 これにより、変更されていないコードを再コンパイルせずにすむので、 その後の構築時間を短縮できます。 すべてを再構築するには、構築を開始する前に、 `cleanworld` を実行してください。
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -749,7 +749,7 @@ FreeBSD ビルドシステムのいくつかのバージョンは、 オブジ
====
以下は 4 つのジョブで world とカーネルを構築する例です。
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -761,7 +761,7 @@ FreeBSD ビルドシステムのいくつかのバージョンは、 オブジ
ソースコードが変更された場合には、 `buildworld` を完了しなければいけません。 その後、いつでも `buildkernel` でカーネルを構築できます。 カーネルだけを構築するには、以下のように実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -783,7 +783,7 @@ FreeBSD 標準のカーネルは、 [.filename]#GENERIC# と呼ばれる _カー
カスタムコンフィグレーションファイルは、 [.filename]#GENERIC# コンフィグレーションファイルをコピーして作成できます。 たとえば、 ストレージサーバ用の [.filename]#STORAGESERVER# という名前の新しいカスタムカーネルは、 以下のようにして作成できます。
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -794,7 +794,7 @@ FreeBSD 標準のカーネルは、 [.filename]#GENERIC# と呼ばれる _カー
コマンドラインからカーネルコンフィグレーションファイルを `KERNCONF` に指定することで、 カスタムカーネルを構築できます。
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -804,7 +804,7 @@ FreeBSD 標準のカーネルは、 [.filename]#GENERIC# と呼ばれる _カー
`buildworld` および `buildkernel` が完了したら、 新しいカーネルと world をインストールしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -816,7 +816,7 @@ FreeBSD 標準のカーネルは、 [.filename]#GENERIC# と呼ばれる _カー
カスタムカーネルを構築した場合は、 新しいカスタムカーネルを `KERNCONF` に設定して実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -838,7 +838,7 @@ man:mergemaster[8] を用いることで、 システムの設定ファイルに
`-Ui` オプションを使って man:mergemaster[8] を実行すると、 ユーザが手を加えていないファイルのアップデートおよび新しく追加されたファイルのインストールを自動的に行います。
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -850,28 +850,28 @@ man:mergemaster[8] を用いることで、 システムの設定ファイルに
アップデート後に、 使われなくなったファイルやディレクトリが残ることがあります。 これらのファイルは、
-[source,bash]
+[source,shell]
....
# make check-old
....
で確認でき、以下のようにして削除できます。
-[source,bash]
+[source,shell]
....
# make delete-old
....
同様に使われなくなったライブラリが残ることもあります。 これらのライブラリは、
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
で確認でき、以下のようにして削除できます。
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -883,7 +883,7 @@ man:mergemaster[8] を用いることで、 システムの設定ファイルに
古いファイルとディレクトリのすべてを削除しても問題ないことを確認したら、 コマンドに `BATCH_DELETE_OLD_FILES` を設定することで、各ファイルを削除する際に kbd:[y] および kbd:[Enter] を押さなくても済むようにできます。以下はその例です。
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -895,7 +895,7 @@ man:mergemaster[8] を用いることで、 システムの設定ファイルに
コンピュータを再起動して、すべての変更を反映させることが、 アップデートの最後におこなう作業です。
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/ja/books/handbook/desktop/_index.adoc b/documentation/content/ja/books/handbook/desktop/_index.adoc
index 44c0d10c28..0761d65230 100644
--- a/documentation/content/ja/books/handbook/desktop/_index.adoc
+++ b/documentation/content/ja/books/handbook/desktop/_index.adoc
@@ -108,21 +108,21 @@ Firefox は、 標準に準拠した HTML 表示エンジン、タブブラウ
最新の Firefox の package をインストールするには以下のように入力してください。
-[source,bash]
+[source,shell]
....
# pkg install firefox
....
Firefox 延長サポート版 (ESR: Extended Support Release) を利用したい場合には、 かわりに以下のように入力してください。
-[source,bash]
+[source,shell]
....
# pkg install firefox-esr
....
かわりにソースコードから希望の firefox をコンパイルすることもできます。 この例では package:www/firefox[] をビルドしますが、 `firefox` の部分は、 インストールする ESR やローカライズに置き換えることもできます。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -134,14 +134,14 @@ Konqueror はブラウザであると同時に、 ファイルマネージャお
Konqueror は、 以下のように入力して package からインストールできます。
-[source,bash]
+[source,shell]
....
# pkg install konqueror
....
Ports Collection からインストールするには、 以下のように入力してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fm/konqueror/
# make install clean
@@ -153,14 +153,14 @@ Chromium は、 オープンソースのブラウザのプロジェクトで、
Chromium は、 以下のように入力することで package からインストールできます。
-[source,bash]
+[source,shell]
....
# pkg install chromium
....
または、Ports Collection を用いて ソースから Chromium をコンパイルしてインストールできます。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -218,14 +218,14 @@ KDE デスクトップには、 KDE 環境以外でも利用可能なオフィ
FreeBSD では package または port から package:editors/calligra[] をインストール出来ます。 package からインストールするには次のようにします。
-[source,bash]
+[source,shell]
....
# pkg install calligra
....
package を入手できない場合は、かわりに Ports Collection を利用してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/calligra
# make install clean
@@ -239,14 +239,14 @@ AbiWord は、 Microsoft(R) [.filename]#.rtf# のような独自仕様を含む
AbiWord package をインストールするには、以下のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg install abiword
....
package を入手できない場合は、 Ports Collection からコンパイルしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -258,14 +258,14 @@ package を入手できない場合は、 Ports Collection からコンパイル
package をインストールするには、以下のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg install gimp
....
もしくは、Ports Collection を利用してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -281,14 +281,14 @@ Apache OpenOffice の文書作成ソフトウェアは、ネイティブの XML
Apache OpenOffice package をインストールするには、以下のように入力してください。
-[source,bash]
+[source,shell]
....
# pkg install apache-openoffice
....
package をインストールしたら、以下のコマンドを入力して Apache OpenOffice を起動してください。
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -297,7 +297,7 @@ package をインストールしたら、以下のコマンドを入力して Ap
希望の Apache OpenOffice の packages を利用できない場合には、port を利用する方法もあります。 しかしながら、コンパイルには大きなディスクスペースと、 本当にかなり長い時間を必要とします。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-4
# make install clean
@@ -307,7 +307,7 @@ package をインストールしたら、以下のコマンドを入力して Ap
====
地域化されたバージョンをビルドするには、 上記のコマンドの代わりに以下を実行して下さい。
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -323,7 +323,7 @@ LibreOffice の文書作成ソフトウェアは、 ネイティブのファイ
英語版の LibreOffice package をインストールするには、以下のように入力してください。
-[source,bash]
+[source,shell]
....
# pkg install libreoffice
....
@@ -332,7 +332,7 @@ Ports Collection の edtors カテゴリ (https://www.FreeBSD.org/ja/ports/[free
package をインストールしたら、以下のコマンドで LibreOffice を起動してください。
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -341,7 +341,7 @@ package をインストールしたら、以下のコマンドで LibreOffice
希望の LibreOffice の packages を利用できない場合には、port からコンパイルする方法もあります。 しかしながら、コンパイルには大きなディスクスペースと、 本当にかなり長い時間を必要とします。 以下の例では、英語版をコンパイルします。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -397,14 +397,14 @@ FreeBSD 向けの軽い PDF ビューアを使いたいのなら Xpdf を試し
Xpdf の package をインストールするには次のコマンドを入力してください。
-[source,bash]
+[source,shell]
....
# pkg install xpdf
....
package を入手できない場合は、 Ports Collection を利用してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -418,14 +418,14 @@ gv は PostScript(R) と PDF のビューアです。これは ghostview をベ
package から gv をインストールするには次のようにします。
-[source,bash]
+[source,shell]
....
# pkg install gv
....
package を利用できない場合には、Ports Collection を使ってください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -437,14 +437,14 @@ Geeqie は、 メンテナンスが行われていない GQView プロジェク
Geeqie package をインストールするには次のコマンドを入力してください。
-[source,bash]
+[source,shell]
....
# pkg install geeqie
....
package を入手できない場合は、 Ports Collection を利用してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/geeqie
# make install clean
@@ -456,14 +456,14 @@ ePDFView は軽量な PDF ドキュメントビューアです。 このビュ
package から ePDFView をインストールするには以下のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg install epdfview
....
package が利用できないようでしたら、 Ports Collection を使ってインストールしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/epdfview
# make install clean
@@ -475,14 +475,14 @@ Okular は、 KDE の KPDF をベースとした一般的なドキュメント
package で Okular をインストールするには、以下のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg install okular
....
package が利用できないようでしたら、 Ports Collection を使ってインストールしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/okular
# make install clean
@@ -527,14 +527,14 @@ GnuCash は洗練された登録機能、 階層構造の勘定システム、
GnuCash package をインストールするには次のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg install gnucash
....
package が手に入らなければ、Ports Collection を使ってください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -546,14 +546,14 @@ Gnumeric は、 GNOME コミュニティによって開発されている表計
Gnumeric package をインストールするには次のように入力してください。
-[source,bash]
+[source,shell]
....
# pkg install gnumeric
....
package が手に入らなければ、Ports Collection を使ってください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -565,14 +565,14 @@ KMyMoney は、KDE コミュニティが作成している個人用財務管理
package から KMyMoney をインストールするには次のようにします。
-[source,bash]
+[source,shell]
....
# pkg install kmymoney-kde4
....
package が手に入らない場合は、 Ports Collection を使ってください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney-kde4
# make install clean
diff --git a/documentation/content/ja/books/handbook/disks/_index.adoc b/documentation/content/ja/books/handbook/disks/_index.adoc
index 2e5426d180..16603c9bca 100644
--- a/documentation/content/ja/books/handbook/disks/_index.adoc
+++ b/documentation/content/ja/books/handbook/disks/_index.adoc
@@ -145,7 +145,7 @@ sysinstall のラベルエディタ は、ルートパーティションでも
このセットアップ方法では、 すでにコンピュータに他のオペレーティングシステムがインストールされていても 正しく協調動作することが可能で、他のオペレーティングシステムの `fdisk` ユーティリティを混乱させることもありません。 新しいディスクにインストールする場合は、 この方法を用いることが推奨されています。 後述する `専用モード` は、 そうしなければならない理由がある時にのみ、 利用するようにしてください。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 # 新しいディスクの初期化
@@ -163,7 +163,7 @@ IDE ディスクを使う場合は [.filename]#da# の部分を [.filename]#ad#
新しいドライブを他の OS と共有しない場合には `専用` モードを用いることもできます。 このモードはマイクロソフトの OS を混乱させることを憶えておいてください (しかし、それらによって壊されることはありません)。 一方、IBM の OS/2(R) はどんなパーティションでも見つけたら理解できなくても "専有" します。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# disklabel -Brw da1 auto
@@ -176,7 +176,7 @@ IDE ディスクを使う場合は [.filename]#da# の部分を [.filename]#ad#
もう一つの方法は次の通り。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# disklabel /dev/da1 | disklabel -BrR da1 /dev/stdin
@@ -396,7 +396,7 @@ ar0: WARNING - mirror lost
man:atacontrol[8] を使用して詳細を調べてください。
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -424,7 +424,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. ディスクを安全に取り外すために、 まずアレイから切り離します。
+
-[source,bash]
+[source,shell]
....
# atacontrol detach 3
....
@@ -432,7 +432,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. ディスクを取り外します。
. スペアのディスクを取り付けます。
+
-[source,bash]
+[source,shell]
....
# atacontrol attach 3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -441,14 +441,14 @@ Slave: no device present
+
. アレイを再構築します。
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. 再構築コマンドは完了するまで他の操作を受け付けません。しかし、 もう一つ別のターミナルを (kbd:[Alt+Fn] を押して) 開き、 次のコマンドを実行すると進行状態を確認することができます。
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[output removed]
@@ -490,7 +490,7 @@ FreeBSD 5.X または FreeBSD 4.8-RELEASE 以降のバージョンを使用し
package:sysutils/mkisofs[] は UNIX(R) ファイルシステムの名前空間におけるディレクトリツリーのイメージとして ISO 9660 ファイルシステムを作成します。 最も簡単な使い方は以下の通りです。
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -503,14 +503,14 @@ FreeBSD でしか使わないのであれば、`-U` オプションを使用す
一般的に使われる最後のオプションは `-b` オプションです。 これは "El Torito" ブータブル CD を作成するのに使う起動イメージのありかを指定します。 このオプションは引数として起動イメージへのパスを、 CD に書き込まれるディレクトリツリーの頂点からの相対位置で取ります。 したがって [.filename]#/tmp/myboot# がブート可能な FreeBSD システムで [.filename]#/tmp/myboot/boot/cdboot# にブートイメージがあるならば、以下のようにすることで ISO 9660 ファイルシステムのイメージを [.filename]#/tmp/bootable.iso# に作成することができます。
-[source,bash]
+[source,shell]
....
# mkisofs -U -R -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
この後、カーネルで [.filename]#vn# (FreeBSD 4.X) または [.filename]#md# (FreeBSD 5.X) が設定されていれば、 ファイルシステムを以下のようにしてマウントすることができます。
-[source,bash]
+[source,shell]
....
# vnconfig -e vn0c /tmp/bootable.iso
# mount -t cd9660 /dev/vn0c /mnt
@@ -518,7 +518,7 @@ FreeBSD でしか使わないのであれば、`-U` オプションを使用す
FreeBSD 4.X および FreeBSD 5.X に対しては以下の通りです。
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -533,7 +533,7 @@ package:sysutils/mkisofs[] には挙動を細かく制御するために他に
あなたが持っているのが ATAPI CD ライタなら、CD に ISO イメージを書き込むために `burncd` コマンドが使えます。 `burncd` はベースシステムの一部で [.filename]#/usr/sbin/burncd# としてインストールされています。 使い方はとても単純でオプションも少ししかありません。
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data imagefile.iso fixate
....
@@ -547,14 +547,14 @@ package:sysutils/mkisofs[] には挙動を細かく制御するために他に
`cdrecord` にはたくさんのオプションがありますが、 基本的な使い方は `burncd` よりもさらに簡単です。 ISO 9660 イメージを書き込むには以下のようにします。
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
`cdrecord` のトリッキーな部分は、使用する `dev` を見つけるところにあります。 適切な設定を見つけるためには `cdrecord` の `-scanbus` フラグを使います。 たとえば、以下のような結果が出力されるでしょう。
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord 1.9 (i386-unknown-freebsd4.2) Copyright (C) 1995-2000 Jörg Schilling
@@ -592,14 +592,14 @@ CD からオーディオデータを連続したファイルに展開し、ブ
. `cdda2wav` を使用してオーディオを展開します。
+
-[source,bash]
+[source,shell]
....
% cdda2wav -v255 -D2,0 -B -Owav
....
+
. `cdrecord` を使用して [.filename]#.wav# ファイルに書き出します。
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -615,7 +615,7 @@ CD からオーディオデータを連続したファイルに展開し、ブ
+
適切なデバイスファイルが [.filename]#/dev# に存在することを確かめてください。 存在しなければ、たとえば次のようにして作成します。
+
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV acd0t99
@@ -628,7 +628,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# にエントリを自動
+
. man:dd[1] を使用して各トラックを展開します。 ファイルを展開する際、ブロックサイズを指定しなければなりません。
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -637,7 +637,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# にエントリを自動
+
. `burncd` を使用して、 展開したファイルをディスクに書き込みます。 これらがオーディオファイルであること、 そして書き込みが終了したときに `burncd` がディスクを固定 (fixate) することを明示しなければなりません。
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0c audio track1.cdr track2.cdr ... fixate
....
@@ -648,7 +648,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# にエントリを自動
データ CD を、package:sysutils/mkisofs[] を用いて作成されたイメージファイルと機能的に等価なイメージファイルにコピーできます。 これを使用して、すべてのデータ CD を複製することができます。 ここでの例は CDROM デバイスが [.filename]#acd0# であるとしています。あなたの CDROM デバイスに読み替えてください。 CDROM の場合には、パーティション全体またはディスク全体 を指定するために `c` をデバイス名の後に追加しなければなりません。
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0c of=file.iso bs=2048
....
@@ -660,21 +660,21 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# にエントリを自動
さて、標準的なデータ CDROM を作成したので、 おそらく次はそれをマウントしてデータを読み出したいと思うでしょう。 デフォルトでは man:mount[8] は、ファイルシステムタイプを `ufs` としています。 次のように実行しようとすると、
-[source,bash]
+[source,shell]
....
# mount /dev/cd0c /mnt
....
`Incorrect super block` というエラーが返されてマウントできないでしょう。 CDROM は `UFS` ファイルシステムではないために、 このような手順でマウントしようすると失敗します。 ファイルシステムのタイプが `ISO9660` であると man:mount[8] に教えさえすれば、すべてはうまく動作します。 man:mount[8] に `-t cd9660` オプションを指定することでこれを行います。 たとえば [.filename]#/dev/cd0c# の CDROM デバイスを [.filename]#/mnt# にマウントしたい場合は、 以下のように実行します。
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0c /mnt
....
使用している CDROM インタフェースによっては、 デバイス名 (この例では [.filename]#/dev/cd0c#) が異なるかもしれないことに注意してください。 また、`-t cd9660` オプションは、単に man:mount_cd9660[8] を実行します。 この例を以下のように短縮することもできます。
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0c /mnt
....
@@ -697,14 +697,14 @@ options SCSI_DELAY=15000
ISO 9660 ファイルシステムを作成すること無く、 ファイルを直接 CD に書き込むこともできます。 この方法をバックアップ目的に使用している人もいます。 これは、標準 CD を書き込むよりもさらに速く実行することができます。
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1c -s 12 data archive.tar.gz fixate
....
このように CD に書き込まれたデータを取得するには、 raw デバイスノードからデータを読み込まなくてはなりません。
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1c
....
@@ -738,7 +738,7 @@ device atapicd
それから再構築し、新しいカーネルをインストールし、 コンピュータを再起動します。 起動プロセス中にディスクライタは以下のように表示されるでしょう。
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -749,14 +749,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
ドライブは [.filename]#/dev/cd0# デバイスを通じてアクセスすることが可能となります。 たとえば、次のようにして CD-ROM を [.filename]#/mnt# にマウントします。
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0c /mnt
....
`root` 権限で次のコマンドを実行して、 ライタの SCSI アドレスを得ることができます。
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -787,7 +787,7 @@ ATAPI/CAM および SCSI システムの詳細は man:atapicam[4] および man:
時々 [.filename]#/dev# 下のエントリは (再) 作成されなければなりません。次のコマンドでこれを行います。
-[source,bash]
+[source,shell]
....
# cd /dev && ./MAKEDEV "fd*"
....
@@ -810,7 +810,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# 内のエントリを自
[.filename]#/dev/fdN.size# デバイスを使ってフロッピーをフォーマットします。 新しい 3.5 インチフロッピーディスクをドライブに挿入し、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat /dev/fd0.1440
....
@@ -819,7 +819,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# 内のエントリを自
[.filename]#/dev/fdN# デバイスを使用してフロッピーをフォーマットします。 新しい 3.5 インチフロッピーディスクをドライブに挿入し、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -832,7 +832,7 @@ FreeBSD 5.0 では man:devfs[5] が [.filename]#/dev# 内のエントリを自
次のように man:disklabel[8] を実行できます。
-[source,bash]
+[source,shell]
....
# /sbin/disklabel -B -r -w /dev/fd0 fd1440
....
@@ -850,7 +850,7 @@ FreeBSD 5.1-RELEASE から、従来の man:disklabel[8] プログラムは man:b
フロッピー上に新しいファイルシステムを作成するには次のようにします。
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -925,7 +925,7 @@ AIT は、Sony が発表した新しいフォーマットで、 テープ 1 本
全く新品の空テープを読もうとしたり書き込もうとすると、 処理は失敗するでしょう。 次のようなメッセージがコンソールに出力されるでしょう。
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -967,14 +967,14 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready
カレントディレクトリとサブディレクトリ内のすべてのファイルをバックアップするには、 以下のコマンドを (`root` 権限で) 使用します。
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
1 枚目のフロッピーが一杯になると、 man:tar[1] は次のボリュームを挿入するように要求します (man:tar[1] はさまざまなメディアを扱えるので、 ボリュームと表示します。この文脈ではフロッピーディスクのことです)。
-[source,bash]
+[source,shell]
....
Prepare volume 2 for /dev/fd0 and hit return:
....
@@ -991,14 +991,14 @@ Prepare volume 2 for /dev/fd0 and hit return:
すべてのアーカイブをリストアするには以下のようにします。
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
特定のファイルだけをリストアするには 2 つの方法があります。 1 つ目は、1 枚目のフロッピーを用いて以下のようにするものです。
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 filename
....
@@ -1025,7 +1025,7 @@ man:tar[1] ユーティリティは、 必要なファイルを見つけるま
`rdump` と `rrestore` を用いて他のコンピュータに接続されているテープドライブにネットワーク経由でデータをバックアップすることも可能です。 どちらのプログラムもリモートのテープドライブにアクセスするために `rcmd` および `ruserok` に依存しています。 したがって、バックアップを実行するユーザがリモートコンピュータの [.filename]#.rhosts# ファイルに書かれていなければなりません。 `rdump` および `rrestore` の引数はリモートコンピュータに適切なものを用いなければなりません。 FreeBSD コンピュータから `komodo` と呼ばれる Sun に接続されている Exabyte テープへ `rdump` するには以下のようにします。
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1038,7 +1038,7 @@ man:tar[1] ユーティリティは、 必要なファイルを見つけるま
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh1 -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1052,7 +1052,7 @@ man:tar[1] ユーティリティは、 必要なファイルを見つけるま
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0
....
@@ -1065,14 +1065,14 @@ man:tar[1] は AT&T UNIX の バージョン 6 (1975 年ごろ) にまで遡る
`tar` の多くの版はネットワーク経由のバックアップには対応していません。 FreeBSD が使用している GNU 版の `tar` は、 `rdump` と同じ構文でリモートデバイスに対応しています。 `komodo` と呼ばれる Sun に接続された Exabyte テープドライブに対して `tar` を実行するには以下のようにします。
-[source,bash]
+[source,shell]
....
# /usr/bin/tar cf komodo:/dev/nsa8 . 2>&1
....
リモートデバイスに対応していない版に対しては、パイプラインと `rsh` を使用してリモートテープドライブにデータを送ることができます。
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh hostname dd of=tape-device obs=20b
....
@@ -1085,7 +1085,7 @@ man:cpio[1] は本来 UNIX(R) ファイルを磁気メディアで交換する
`cpio` はネットワーク経由のバックアップには対応していません。 以下のようにパイプラインと `rsh` を用いてリモートテープドライブにデータを送ることができます。
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
find $f >> backup.list
@@ -1351,7 +1351,7 @@ pseudo-device vn
[example]
====
-[source,bash]
+[source,shell]
....
# vnconfig vn0 diskimage
# mount /dev/vn0c /mnt
@@ -1365,7 +1365,7 @@ man:vnconfig[8] を用いたファイルシステムイメージの新規作成
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1404,7 +1404,7 @@ man:mdconfig[8] コマンドは、 三つのタイプのメモリベース仮想
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0c /mnt
@@ -1418,7 +1418,7 @@ man:mdconfig[8] を用いたファイルシステムイメージの新規作成
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1451,7 +1451,7 @@ man:mdconfig[8] ユーティリティは大変役に立ちますが、 ファイ
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1477,7 +1477,7 @@ man:vnconfig[8] を用いて作成したファイルシステムを例に取る
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=newimage of=/dev/md0
5120+0 records in
@@ -1501,7 +1501,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t malloc -s 5m -u 1
# newfs -U md1
@@ -1522,7 +1522,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -M -s 5m md2 /mnt
# df /mnt
@@ -1540,7 +1540,7 @@ man:mdconfig[8] のコマンドラインの `malloc` を `swap` に置き換え
たとえば [.filename]#/dev/md4# によって使用されたすべてのリソースを切り離し、開放するには以下のようにします。
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1549,7 +1549,7 @@ man:mdconfig[8] のコマンドラインの `malloc` を `swap` に置き換え
FreeBSD 4.X では man:vnconfig[8] はデバイスを切り離すのに使用されます。たとえば [.filename]#/dev/vn4# によって使用されたすべてのリソースを切り離し、開放するには以下のようにします。
-[source,bash]
+[source,shell]
....
# vnconfig -u vn4
....
@@ -1565,14 +1565,14 @@ FreeBSD 5.0 は Soft Updates と協調するファイルシステムスナッ
スナップショットは man:mount[8] コマンドを用いて作成されます。 [.filename]#/var# のスナップショットを [.filename]#/var/snapshot/snap# に作成したいときは、 以下のコマンドを使用します。
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
また、スナップショットを作成するのに man:mksnap_ffs[8] も使えます。
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
@@ -1584,7 +1584,7 @@ FreeBSD 5.0 は Soft Updates と協調するファイルシステムスナッ
* スナップショット上で man:dump[8] ユーティリティを実行すると、 スナップショットのファイルシステムとタイムスタンプが一致するダンプが返されるでしょう。 man:dump[8] は `-L` オプションを使用することで、 一つのコマンドでスナップショットをとり、ダンプイメージを作成して、スナップショットを削除することが可能です。
* ファイルシステムの "凍結された" イメージとしてスナップショットを man:mount[8] します。 [.filename]#/var/snapshot/snap# のスナップショットを man:mount[8] するには以下のようにします。
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1592,7 +1592,7 @@ FreeBSD 5.0 は Soft Updates と協調するファイルシステムスナッ
これで [.filename]#/mnt# にマウントした 凍結状態の [.filename]#/var# ファイルシステム構造を探索できます。 すべてがスナップショットが作成された時と同じ状態になるはずです。ただし、 以前に作成されたスナップショットがサイズ 0 のファイルとして現れることが唯一の例外です。 スナップショットの使用を終えた場合、以下のようにアンマウントできます。
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1663,7 +1663,7 @@ check_quotas="YES"
一旦クォータを有効にしたら本当に有効になっているのか確認しておきましょう。簡単な方法は次のコマンドを実行することです。
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1680,7 +1680,7 @@ check_quotas="YES"
以下は man:edquota[8] コマンドを実行した時に見ることになるであろう例です。 man:edquota[8] コマンドが起動されると環境変数 `EDITOR` で指定されるエディタに入ります。 `EDITOR` が設定されていない場合には vi が起動されます。 ここでクォータリミットを編集します。
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1712,7 +1712,7 @@ Quotas for user test:
ある範囲の UID に対してクォータリミットを設定したい場合がありますが、このような時には man:edquota[8] コマンドの `-p` オプションを使うといいでしょう。まず、 あるユーザに割り当てたいクォータリミットを設定し、次に `edquota -p protouser startuid-enduid` を実行するのです。例えばユーザ `test` にお望みのクォータリミットが付いているとしましょう。 次のコマンドにより 10,000 から 19,999 の間の UID に対して同じクォータリミットを付けることができるのです。
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1750,7 +1750,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
そして以下のように `inetd` を再起動します。
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/inetd.pid`
....
@@ -1771,7 +1771,7 @@ FreeBSD は無許可のデータアクセスに対する優れたオンライン
+
gbde の設定をするにはスーパユーザの権限が必要になります。 以下のコマンドを実行して、 `root` になってください。
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1781,7 +1781,7 @@ Password:
+
man:gbde[4] が動作するには FreeBSD 5.0 以降が必要です。 以下のコマンドを実行して、 オペレーティングシステムのバージョンを確認してください。
+
-[source,bash]
+[source,shell]
....
# uname -r
5.0-RELEASE
@@ -1809,7 +1809,7 @@ FreeBSD カーネルを設定、再コンパイル、インストールします
+
<<disks-adding>> で説明されている通りに新しいドライブをシステムに設置します。 この例では、新しいハードドライブは [.filename]#/dev/ad4s1c# パーティションに 加えられたものとします。 [.filename]#/dev/ad0s1*# デバイスは、この例のシステム上に存在する標準的な FreeBSD パーティションを表します。
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1819,7 +1819,7 @@ FreeBSD カーネルを設定、再コンパイル、インストールします
+
. gbde ロックファイルを保持するディレクトリを作成する
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1829,7 +1829,7 @@ gbde ロックファイルには、 暗号化されたパーティションに
+
gbde パーティションは使用する前に初期化されなければなりません。 この初期化は一度だけ実行される必要があります。
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c
....
@@ -1861,14 +1861,14 @@ gbde ロックファイルは、 すべての暗号化されたパーティシ
+
. カーネルに暗号化されたパーティションを接続する
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
+
暗号化されたパーティションを初期化する際に選択したパスフレーズを入力するように求められます。 新しい暗号化デバイスは [.filename]#/dev# に [.filename]#/dev/device_name.bde# として現れます。
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1885,7 +1885,7 @@ gbde ロックファイルは、 すべての暗号化されたパーティシ
FreeBSD 5.1-RELEASE 以降では、`-O2` オプションはデフォルトです。
======
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -1899,14 +1899,14 @@ man:newfs[8] は、デバイス名に [.filename]#*.bde# 拡張子によって
+
暗号化ファイルシステムに対するマウントポイントを作成します。
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
暗号化ファイルシステムをマウントします。
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -1915,7 +1915,7 @@ man:newfs[8] は、デバイス名に [.filename]#*.bde# 拡張子によって
+
これで暗号化ファイルシステムは man:df[1] で見ることができ、 利用する準備ができました。
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1937,7 +1937,7 @@ Filesystem Size Used Avail Capacity Mounted on
. カーネルに gbde パーティションを接続する
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c
....
@@ -1947,14 +1947,14 @@ Filesystem Size Used Avail Capacity Mounted on
+
暗号化ファイルシステムを自動的にマウントするために [.filename]#/etc/fstab# に設定を掲載することはまだできないため、 マウントする前に man:fsck[8] を実行して、 ファイルシステムのエラーをチェックしなければなりません。
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. 暗号化ファイルをマウントする
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -1974,7 +1974,7 @@ man:gbde[8] は 128bit AES の CBC モードを使用してセクタペイロー
man:sysinstall[8] は gbde 暗号化デバイスと互換性がありません。 man:sysinstall[8] を実行する前に [.filename]#*.bde# デバイスはすべてカーネルから切断されなければなりません。 そうしないと、man:sysinstall[8] が初めにデバイスを走査する際にクラッシュしてしまうでしょう。 暗号化デバイスを切断するには、以下のコマンドを使用します。
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
diff --git a/documentation/content/ja/books/handbook/kernelconfig/_index.adoc b/documentation/content/ja/books/handbook/kernelconfig/_index.adoc
index e380eea6e9..293c976e24 100644
--- a/documentation/content/ja/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/ja/books/handbook/kernelconfig/_index.adoc
@@ -80,7 +80,7 @@ toc::[]
カーネルモジュールは [.filename]#/boot/kernel# にあります。モジュールによっては man:kldload[8] により、 すでに実行中のカーネルに動的に読み込まれています。 ほとんどのカーネルドライバには、 読み込み可能なモジュールやマニュアルページが用意されています。 たとえば、man:ath[4] ワイヤレスイーサネットドライバのマニュアルページには以下のような記述があります。
-[source,bash]
+[source,shell]
....
Alternatively, to load the driver as a module at boot time, place the
following line in loader.conf(5):
@@ -104,7 +104,7 @@ Microsoft(R) Windows(R) のバージョンによっては、 システム アイ
インストールされているオペレーティングシステムが FreeBSD だけであれば、man:dmesg[8] を使い、 起動時に検出されたハードウェアの一覧を調べてください。 FreeBSD のほとんどのデバイスドライバにはマニュアルページが用意され、 対応しているハードウェアの一覧を提供しています。 たとえば、以下の行は、man:psm[4] ドライバがマウスを検出したことを示しています。
-[source,bash]
+[source,shell]
....
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
@@ -118,7 +118,7 @@ psm0: model Generic PS/2 mouse, device ID 0
ハードウェアを見つけるためのもうひとつのツールは、 より冗長な出力を行う man:pciconf[8] です。 たとえば、以下のようになります。
-[source,bash]
+[source,shell]
....
% pciconf -lv
ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01 hdr=0x00
@@ -132,7 +132,7 @@ ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01
man:man[1] を `-k` フラグで実行すると、 有用な情報を得ることができます。たとえば、 ある特定のデバイスブランドや名前を含むマニュアルページの一覧を表示するには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# man -k Atheros
ath(4) - Atheros IEEE 802.11 wireless network driver
@@ -152,7 +152,7 @@ ath_hal(4) - Atheros Hardware Access Layer (HAL)
この [.filename]#GENERIC# は編集しないでください。 かわりに、このファイルを別名でコピーし、コピーを編集してください。 慣習として、この名前はすべて大文字でつづられます。もし、 いくつかの異なるハードウェアの FreeBSD マシンを扱うなら、 この名前にホスト名を含めるとよいでしょう。ここでは、例として [.filename]#MYKERNEL# という名前の `amd64` アーキテクチャ用の [.filename]#GENERIC# コンフィグレーションファイルのコピーを作成します。
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
@@ -177,7 +177,7 @@ ath_hal(4) - Atheros Hardware Access Layer (HAL)
または、カーネルコンフィグレーションファイルは他の場所において、 シンボリックリンクを張る方法もあります。
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernels
@@ -206,7 +206,7 @@ options IPDIVERT
====
利用可能なすべてのオプションを含むファイルを構築するには、 以下のコマンドを `root` 権限で実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/arch/conf && make LINT
....
@@ -224,21 +224,21 @@ options IPDIVERT
. 以下のディレクトリに移動してください。
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. カスタムコンフィグレーションファイルの名前を指定して新しいカーネルをコンパイルします。
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. 指定したカーネルコンフィグレーションファイルでコンパイルされた新しいカーネルをインストールします。 以下のコマンドは、新しいカーネルを [.filename]#/boot/kernel/kernel# に、 今までのカーネルを [.filename]#/boot/kernel.old/kernel# という名前で保存します。
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -272,7 +272,7 @@ WITHOUT_MODULES = linux acpi sound
`config` コマンドの失敗::
`config` で失敗した時には、 トラブルの起きた行番号が出力されます。 たとえば、次のように出力された場合には、 17 行目が正しく入力されているかどうか、 [.filename]#GENERIC# や [.filename]#NOTES# と比較して修正してください。
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -290,7 +290,7 @@ config: line 17: syntax error
====
カーネルの構築中にトラブルが起きた時には、 次回の構築で消されないように、 [.filename]#GENERIC# のコピーや他の正常に起動するカーネルを別の名前で保存するようにしてください。 _kernel.old_ は新しいカーネルをインストールする時に、 その一つ前にインストールした、 うまく動かないかもしれないカーネルで上書きされてしまうため、 起動するカーネルを保存しておくことは重要です。 できる限り早く以下のようにして、 正しく起動するカーネルを含むディレクトリ名に変更してください。
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/ja/books/handbook/l10n/_index.adoc b/documentation/content/ja/books/handbook/l10n/_index.adoc
index b468ed258e..0c1b228375 100644
--- a/documentation/content/ja/books/handbook/l10n/_index.adoc
+++ b/documentation/content/ja/books/handbook/l10n/_index.adoc
@@ -96,14 +96,14 @@ _言語コード_ および _国コード_ は、 国と言語を特定するた
利用可能なすべてのロケールを調べるには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
% locale -a | more
....
現在のロケールの設定を調べるには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
% locale
....
@@ -184,7 +184,7 @@ german|German Users Accounts:\
[.filename]#/etc/login.conf# を編集したら、 忘れずに以下のコマンドを実行してケイパビリティデータベースをアップデートしてください。
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -211,28 +211,28 @@ user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh
新しいユーザを作成するときに、この設定を変更するには、 以下のプロンプトにおいて希望するロケールを指定してください。
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
もしくは、`adduser` を実行する際にロケールを指定してください。
-[source,bash]
+[source,shell]
....
# adduser -class language
....
`pw` を使って新しいユーザを追加する場合には、 以下のようにしてロケールを指定してください。
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
すでに存在するユーザのログインクラスを変更するには、 `chpass` を使用してください。 引数として変更するユーザ名を与えて、 スーパーユーザの権限で実行してください。
-[source,bash]
+[source,shell]
....
# chpass user_name
....
diff --git a/documentation/content/ja/books/handbook/linuxemu/_index.adoc b/documentation/content/ja/books/handbook/linuxemu/_index.adoc
index 088f63d452..5a089123ce 100644
--- a/documentation/content/ja/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/ja/books/handbook/linuxemu/_index.adoc
@@ -75,21 +75,21 @@ Linux(R) ライブラリは、デフォルトでは FreeBSD にインストー
port を構築する前に、 `linux` カーネルモジュールを読み込んでください。 このモジュールを読み込んでいないと、構築に失敗してしまいます。
-[source,bash]
+[source,shell]
....
# kldload linux
....
64 ビットの互換機能を使うには、以下を実行してください。
-[source,bash]
+[source,shell]
....
# kldload linux64
....
以下のようにしてモジュールが読み込まれていることを確認してください。
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -99,7 +99,7 @@ port を構築する前に、 `linux` カーネルモジュールを読み込ん
Linux(R) ライブラリおよびバイナリの基本セットを FreeBSD システムにインストールする最も簡単な方法は、 package:emulators/linux_base-c7[] package または port を使う方法です。port をインストールするには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -122,7 +122,7 @@ Linux(R) バイナリ互換機能を設定した後に、Linux(R) アプリケ
Linux(R) システムで、`ldd` を使うことにより、 アプリケーションが必要とする共有ライブラリを調べることができます。 たとえば、`linuxdoom` が必要とする共有ライブラリを調べるには、 Doom がインストールされている Linux(R) システム上で、以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
% ldd linuxxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -132,7 +132,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Linux(R) システムでの出力の最後のカラムに表示されているすべてのファイルを FreeBSD システムの [.filename]#/compat/linux# の下にコピーしてください。コピーしたら、 最初のカラムに示されるファイル名でコピーしたファイルに対してシンボリックリンクを張ってください。 この例では、FreeBSD システムで以下のようになります。
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -146,7 +146,7 @@ Linux(R) システムでの出力の最後のカラムに表示されている
たとえば、以下のライブラリがすでに FreeBSD システムに存在するとします。
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -154,14 +154,14 @@ Linux(R) システムでの出力の最後のカラムに表示されている
そして、`ldd` の出力が以下のように、 バイナリが新しいバージョンを必要とする場合を考えます。
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
存在しているライブラリの最後の番号が 1 つか 2 つ古いだけなので、 わずかに古いライブラリでもプログラムは動作するはずです。 しかしながら、[.filename]#libc.so# を新しいバージョンに置き換えるのが安全です。
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -173,7 +173,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
ELF のバイナリを使うためには、 追加の作業が必要です。 マークのない (unbranded) ELF バイナリを実行しようとすると、 以下のようなエラーメッセージが表示されてしまうことでしょう。
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -182,7 +182,7 @@ Abort
FreeBSD のカーネルが FreeBSD の ELF バイナリと Linux(R) のバイナリとを見分けられるようにするために、man:brandelf[1] を以下のようにして使ってください。
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -193,7 +193,7 @@ GNU のツール群が ELF バイナリに自動的に適切なマークを付
Linux(R) RPM ベースのアプリケーションをインストールするには、 最初に package:archivers/rpm4[] package または port をインストールしてください。 インストールすると、このコマンドを `root` 権限で使うことで、 [.filename]#.rpm# をインストールできます。
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -205,7 +205,7 @@ Linux(R) RPM ベースのアプリケーションをインストールするに
DNS がうまく動作しなかったり、 以下のようなエラーメッセージが表示される場合は、 [.filename]#/compat/linux/etc/host.conf# ファイルを以下のように設定する必要があります。
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -240,7 +240,7 @@ Linux(R) ABI をサポートするため、FreeBSD は ELF バイナリを示す
Linux(R) バイナリを実行するためには、 man:brandelf[1] を使って `Linux` のマークが__付けられて__いなければなりません。
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/ja/books/handbook/mail/_index.adoc b/documentation/content/ja/books/handbook/mail/_index.adoc
index 72d848fde5..e1bcd75847 100644
--- a/documentation/content/ja/books/handbook/mail/_index.adoc
+++ b/documentation/content/ja/books/handbook/mail/_index.adoc
@@ -476,7 +476,7 @@ FreeBSD がインストールされたデフォルトの状態では、 sendmail
これを解決する方法はいくつかあります。 一番の正攻法は [.filename]#/etc/mail/relay-domains# リレードメインファイルにあなたの ISP のアドレスを書くことです。 これをするのに簡単な方法は次のとおりです。
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -515,7 +515,7 @@ www.example.org
次のコマンドを実行してみてください。
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -527,7 +527,7 @@ example.FreeBSD.org has address 204.216.27.XX
上記のメッセージの代わりに、
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -599,7 +599,7 @@ FreeBSD とともに出荷されている sendmail の設定は、 サイトが
もしシステムをすべてのソースとともにインストールしていなければ、 sendmail の設定材料は分割された個別のソース tarball を取得してください。 FreeBSD のソースコードが入った CDROM をマウントしているのなら、
-[source,bash]
+[source,shell]
....
# cd /cdrom/src
# cat scontrib.?? | tar xzf - -C /usr/src/contrib/sendmail
@@ -611,7 +611,7 @@ UUCP 配送に対応するための一番よい方法は `mailertable` 機能を
まずはじめに [.filename]#.mc# ファイルを作成しなければいけません。 [.filename]#/usr/src/usr.sbin/sendmail/cf/cf# にいくつか例があります。[.filename]#foo.mc# という名前のファイルをあなたが作成したとすると、 有効な [.filename]#sendmail.cf# ファイルへ変換するには次のようにするだけです。
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail/cf/cf
# make foo.cf
@@ -673,7 +673,7 @@ if-bus.UUCP uucp-dom:if-bus
最後のアドバイス: もし、 いくつかのメールルーティングがうまく動いているかどうか分からないときは sendmail に `-bt` オプションをつけることを覚えておいてください。 これは sendmail を _アドレステストモード_ で起動します。 あなたがテストしたいメールルーティングのアドレスを後につけて、 単純に `3,0` と入力してください。 最後の行は、内部で使われたメールエージェント、 このエージェントが呼び出された目的地ホスト、および (もしかしたら変換された) アドレスを表示します。 このモードを終了するには kbd:[Ctrl+D] を入力します。
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -771,7 +771,7 @@ SENDMAIL_LDADD=-lsasl
これらの行は sendmail に対して、 コンパイルするときに package:cyrus-sasl[] とリンクするための適切な設定オプションを与えるものです。 sendmail を再コンパイルする前に package:cyrus-sasl[] がインストールされていることを確かめてください。
. 次のコマンドを入力して sendmail を再コンパイルしてください。
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/sendmail
# make cleandir
diff --git a/documentation/content/ja/books/handbook/mirrors/_index.adoc b/documentation/content/ja/books/handbook/mirrors/_index.adoc
index 2b1dbc8d32..91cb928fc8 100644
--- a/documentation/content/ja/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/ja/books/handbook/mirrors/_index.adoc
@@ -410,7 +410,7 @@ In case of problems, please contact the hostmaster `<{mirrors-us-email}>` for th
package:security/ca_root_nss[] をインストールすることで、 Subversion は、 HTTPS リポジトリサーバを検証できます。 ルート SSL 証明書は、 port からインストールできます。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -418,7 +418,7 @@ package:security/ca_root_nss[] をインストールすることで、 Subversio
または package からインストールしてください。
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -437,7 +437,7 @@ FreeBSD には、Subversion より軽い `svnlite` がインストールされ
Subversion は Ports Collection からインストールできます。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -445,7 +445,7 @@ Subversion は Ports Collection からインストールできます。
package を使って Subversion をインストールすることもできます。
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -467,7 +467,7 @@ Subversion では、リポジトリの指定に _protocol://hostname/path_ 形
以下のように入力して、リポジトリからチェックアウトしてください。
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lwcdir
....
@@ -480,7 +480,7 @@ Subversion では、リポジトリの指定に _protocol://hostname/path_ 形
以下の例では、Ports Collection を HTTPS プロトコルを使って、 FreeBSD リポジトリからチェックアウトします。 そしてそれらは、 [.filename]#/usr/ports# のローカル作業コピーに置かれます。 もし [.filename]#/usr/ports# がすでに存在して、 それが `svn` によって生成されたものでなければ、 チェックアウトする前に、名前を変更するか削除してください。
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -489,14 +489,14 @@ Subversion では、リポジトリの指定に _protocol://hostname/path_ 形
初めてのチェックアウト後は、 以下を実行することでローカル作業コピーをアップデートできます。
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
この例で作成された [.filename]#/usr/ports# をアップデートするには、 以下のようにしてください。
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -505,7 +505,7 @@ Subversion では、リポジトリの指定に _protocol://hostname/path_ 形
チェックアウト後、ローカル作業コピーをアップデートするもうひとつの方法は、 [.filename]#/usr/ports#, [.filename]#/usr/src# または [.filename]#/usr/doc# ディレクトリの [.filename]#Makefile# で提供されています。 `SVN_UPDATE` を設定して `update` ターゲットを使ってください。 たとえば、[.filename]#/usr/src# をアップデートするには、以下のようにしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/ja/books/handbook/multimedia/_index.adoc b/documentation/content/ja/books/handbook/multimedia/_index.adoc
index 497311eea8..572015fb00 100644
--- a/documentation/content/ja/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/ja/books/handbook/multimedia/_index.adoc
@@ -78,7 +78,7 @@ FreeBSD ではビデオファイルおよび DVD の再生もできます。 Fre
サウンドデバイスを使うためには、 デバイスドライバを読み込まなければいけません。 もっとも簡単な方法は man:kldload[8] を使ってサウンドカードのカーネルモジュールを読み込むことです。 次の例は、Intel 仕様のビルトインオーディオチップセットのドライバを読み込む例です。
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -92,7 +92,7 @@ snd_hda_load="YES"
他に利用可能な読み込み可能なサウンドモジュールは [.filename]#/boot/defaults/loader.conf# に記載されています。 どのドライバを利用すればいいか確かでなければ、 [.filename]#snd_driver# モジュールを読み込んでください。
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -149,7 +149,7 @@ hint.sbc.0.flags="0x15"
必要となるモジュールを読み込むか、カスタムカーネルで再起動すると、 サウンドカードが検出されます。 確認をするには、`dmesg | grep pcm` と実行してください。 この例は、ビルトイン Conexant CX20590 チップセットを搭載したシステムのものです。
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -158,7 +158,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
サウンドカードの状態は、 以下のコマンドを使用して確認することもできます。
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -172,7 +172,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default
すべてうまくいけば、サウンドカードが FreeBSD で機能するでしょう。 CD または DVD ドライブのオーディオ出力端子がサウンドカードと適切に接続されていれば、 man:cdcontrol[1] を使ってドライブ内のオーディオ CD を再生できます。
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -186,7 +186,7 @@ package:audio/workman[] のように、 よりよいインタフェースを提
手っ取り早くカードをテストするには、 [.filename]#/dev/dsp# デバイスにデータを送ってみてください。
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -205,28 +205,28 @@ Bluetooth デバイスへの接続についての説明は、この章の範囲
FreeBSD のサウンドシステムで Bluetooth サウンドシンクを動かすには、最初に package:audio/virtual_oss[] をインストールしてください。
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] を使うには、 カーネルに `cuse` が読み込まれている必要があります。
-[source,bash]
+[source,shell]
....
# kldload cuse
....
システムのスタートアップ時に `cuse` を読み込むには、以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
package:audio/virtual_oss[] でヘッドホンをサウンドシンクとして使うには、 Blueooth オーディオデバイスに接続後、 仮想デバイスを作成する必要があります。
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -296,7 +296,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
この例では、グラフィックカード (`NVidia`) には、サウンドカード (`Realtek ALC889`) より若い番号が付けられています。 サウンドカードをデフォルトのプレイバックデバイスとして利用するには、 `hw.snd.default_unit` をプレイバックで使用するユニット番号に変更してください。
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -315,7 +315,7 @@ hw.snd.default_unit=4
仮想チャネルの数を決めるのに三つの man:sysctl[8] 変数を設定できます。
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -354,7 +354,7 @@ Audacious は 人気のあるグラフィカルな MP3 プレイヤです。 Win
package:audio/mpg123[] package もしくは port は、 は代替となる コマンドライン上の MP3 プレイヤです。インストールしたら、再生する MP3 ファイルをコマンドラインから指定してください。 もしシステムが、複数のオーディオデバイスを搭載しているのであれば、 サウンドデバイスを同様に指定してください。
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatesHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
@@ -376,7 +376,7 @@ package:sysutils/cdrtools[] スイートからインストールされる `cdda2
CD をドライブにいれて次のコマンドを `root` 権限で実行すると、 CD 全体をトラックごとに個々の WAV ファイルに抽出できます。
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -385,21 +385,21 @@ CD をドライブにいれて次のコマンドを `root` 権限で実行する
個々のトラックを抽出するには、 次のように `-t` でトラックを指定してください。
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
範囲を指定して、 一番目から七番目のトラックまで抽出したい場合、 次のようにします。
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
ATAPI (IDE) CDROM ドライブから抽出するには、 SCSI ユニット番号をデバイス名に置き換えて指定します。 たとえば IDE ドライブから七番目のトラックを抽出するには、 次のようにします。
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -413,7 +413,7 @@ lame は、 ポピュラーな MP3 エンコーダです。 package:audio/lame[]
次のコマンドを実行すると、抽出した WAV ファイル [.filename]#audio01.wav# を使って [.filename]#audio01.mp3# に変換します。
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "曲名" --ta "アーティスト名" --tl "アルバム名" \
--ty "年" --tc "コメント" --tg "ジャンル" audio01.wav audio01.mp3
@@ -425,7 +425,7 @@ MP3 からオーディオ CD を作成するには、 まず非圧縮のファ
mpg123 を使って [.filename]#audio01.mp3# を変換するには、PCM ファイルを指定してください。
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -449,7 +449,7 @@ XMMS を使って MP3 を WAV 形式に変換するには、 以下の手順に
WAV と PCM 形式は、 cdrecord で利用できます。 WAV ファイルを使用する場合、 それぞれのトラックの先頭に小さなノイズが入るのに気づくでしょう。 これは WAV ファイルのヘッダ情報です。 package:audio/sox[] port または package を使うとヘッダ情報を削除できます。
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -463,7 +463,7 @@ FreeBSD での CD 作成の詳しい情報は crossref:disks[creating-cds,「光
さまざまなプレイヤやオプションを試すのに、 テストファイルとして小さな MPEG ファイルを用意しておくのはよい考えです。 いくつかの DVD アプリケーションは DVD メディアを [.filename]#/dev/dvd# として初期設定しているか、ハードコーディングしているので、 次のように適切なデバイスにシンボリックリンクを張っておくと便利かもしれません。
-[source,bash]
+[source,shell]
....
# ln -sf /dev/cd0 /dev/dvd
....
@@ -503,14 +503,14 @@ Xorg においてビデオ表示性能を改善する方法はいくつかあり
この拡張機能が動作しているかどうかを調べるには、 `xvinfo` を使います。
-[source,bash]
+[source,shell]
....
% xvinfo
....
以下のような結果が得られたならば、カードは XVideo に対応しています。
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -586,7 +586,7 @@ X-Video Extension version 2.2
出力が以下のような場合、
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -617,27 +617,27 @@ MPlayer を初めて起動すると、 各自のホームディレクトリ内
[.filename]#testfile.avi# というファイルを再生するには、以下の例のように、 `-vo` とともに、 ビデオインタフェースを指定してください。
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -646,7 +646,7 @@ MPlayer を初めて起動すると、 各自のホームディレクトリ内
DVD を再生するには、 [.filename]#testfile.avi# を `dvd://_N_ -dvd-device _DEVICE_` に置き換えてください。 <N> には再生するタイトル番号を、 _DEVICE_ は DVD のデバイスノードを指定します。 たとえば、[.filename]#/dev/dvd# から 2 番目のタイトルを再生するには以下のようにします。
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -671,7 +671,7 @@ zoom=yes
`mplayer` を使って、 DVD タイトルを [.filename]#.vob# に抽出できます。 DVD から 2 番目のタイトルをダンプするには次のようにします。
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -684,7 +684,7 @@ UNIX(R) ビデオについて、 高レベルのノウハウを得たいと考
はじめは単純なファイルのコピーです。
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -693,7 +693,7 @@ UNIX(R) ビデオについて、 高レベルのノウハウを得たいと考
[.filename]#input.avi# を音声に MPEG3 エンコードを使用して MPEG4 コーデックに変換するには、まず最初に package:audio/lame[] port をインストールしてください。 ライセンスの制限により、package は利用できません。 インストールしたら、以下のように入力してください。
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -714,7 +714,7 @@ xine は、 再利用可能な基本ライブラリと、 プラグインで拡
xine は、 再生するファイル名を指定することで、 コマンドラインから実行することもできます。
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -730,7 +730,7 @@ FreeBSD では、Transcode は、 package:multimedia/transcode[] package もし
この例では、DivX ファイルを PAL MPEG-1 (PAL VCD) に変換する使用例を示します。
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -789,7 +789,7 @@ options OVERRIDE_TUNER=6
または、直接 man:sysctl[8] を使用して変更します。
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -831,14 +831,14 @@ link:http://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] ページは、DVB ド
バイナリ package を使って MythTV をインストールしてください。
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
あるいは、Ports Collection からインストールするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -846,21 +846,21 @@ link:http://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] ページは、DVB ド
インストールが終わったら、 MythTV データベースを設定してください。
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/share/mythtv/database/mc.sql
....
その後、バックエンドを設定してください。
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
最後にバックエンドを起動してください。
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -891,7 +891,7 @@ device xhci
USB スキャナが認識されたかを確認するには、 スキャナを接続して、`dmesg` を利用し、 システムメッセージバッファで、 スキャナが認識されているかどうかを確認してください。 認識されていたら、以下のようなメッセージが表示されます。
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -908,7 +908,7 @@ device pass
デバイスがメッセージバッファに出力されていることを確認してください。
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -917,7 +917,7 @@ pass2: 3.300MB/s transfers
システムを起動する際にスキャナの電源を入れてなければ、 `camcontrol` を使用して SCSI バスをスキャンし、 以下のように手動でデバイスを検出させることもできます。
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -928,7 +928,7 @@ Re-scan of bus 3 was successful
すると、スキャナは SCSI デバイスの一覧に現れるでしょう。
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -945,14 +945,14 @@ SANE システムは、 バックエンド (package:graphics/sane-backends[])
バイナリ package から、バックエンドをインストールするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg install sane-backends
....
あるいは、Ports Collection からインストールするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-backends
# make install clean
@@ -960,7 +960,7 @@ SANE システムは、 バックエンド (package:graphics/sane-backends[])
package:graphics/sane-backends[] port または package をインストールしたら、 `sane-find-scanner` コマンドを使用して、 SANE システムで検出されているスキャナを確認してください。
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -975,7 +975,7 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
次に、スキャナがフロントエンドで認識されるか調べてください。 SANE のバックエンドには `scanimage` が付属します。 このコマンドを使用すると、 デバイスの一覧を表示したり画像を取得することができます。 スキャナデバイスの一覧を表示するには、 `-L` オプションを使ってください。 以下の最初の例は、SCSI スキャナ用のもので、 次の例は、USB スキャナ用のものです。
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -987,7 +987,7 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
`scanimage` がスキャナの認識に失敗した場合には、 以下のようなメッセージが表示されます。
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1006,7 +1006,7 @@ usb /dev/ugen0.2
編集を保存し、 適切なバックエンド名とデバイスノードでスキャナが認識されたかどうかを確認してください。
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
@@ -1022,7 +1022,7 @@ device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
この例では、`_usb_` という名前のグループを作成します。
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1060,14 +1060,14 @@ devfs_system_ruleset="system"
そして、man:devfs[8] システムを再起動してください。
-[source,bash]
+[source,shell]
....
# service devfs restart
....
最後に、スキャナを利用するユーザを `_usb_` グループに追加してスキャナを利用できるようにしてください。
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/ja/books/handbook/ports/_index.adoc b/documentation/content/ja/books/handbook/ports/_index.adoc
index 065edfc426..83a4fc1c36 100644
--- a/documentation/content/ja/books/handbook/ports/_index.adoc
+++ b/documentation/content/ja/books/handbook/ports/_index.adoc
@@ -121,7 +121,7 @@ FreeBSD 上で利用可能なアプリケーションのリストは常に増え
* アプリケーションを見つけることが難しい場合には、link:http://www.sourceforge.net/[SourceForge.net] または http://www.github.com/[GitHub.com] のようなサイトで探してみてください。 その後、そのアプリケーションが ports で利用可能かどうかを link:https://www.FreeBSD.org/ja/ports/[FreeBSD サイト] で調べて下さい。
* バイナリ package リポジトリでアプリケーションを探すには、 以下のように実行してください。
+
-[source,bash]
+[source,shell]
....
# pkg search subversion
git-subversion-1.9.2
@@ -139,7 +139,7 @@ subversion17-1.7.16_2
+
package 名にはバージョン番号が含まれます。 また、python ベースの ports では、 共に構築された python のバージョン番号も含まれます。 ports によっては、複数のバージョンを利用できるものがあります。 subversion では、 複数のバージョンを利用できますが、 異なるコンパイルオプションで構築されたものも利用できます。 インストールする package を指定する際には、 アプリケーションに、port ツリーのパスである、 port のオリジンを指定すると良いでしょう。 `pkg search` に `-o` オプションを付けて、実行してください。 各 package のオリジンの一覧が表示されます。
+
-[source,bash]
+[source,shell]
....
# pkg search -o subversion
devel/git-subversion
@@ -158,7 +158,7 @@ devel/subversion-static
`pkg search` は、 リポジトリデータベースの説明やその他のフィールドにおいて、 シェルグロブ、正規表現、完全一致にも対応しています。 詳細については、package:ports-mgmt/pkg[] または package:ports-mgmt/pkg-devel[] のインストール後、 man:pkg-search[8] をご覧ください。
* Ports Collection がすでにインストールされていれば、 ports ツリーのローカルバージョンを調べることができます。 port がどのカテゴリに分類されているのかを知りたければ、 man:whereis[1] コマンドで調べることができます。 `whereis _ファイル_` と入力してください。_ファイル_ の部分にはインストールを考えているプログラム名を入れます。
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -166,7 +166,7 @@ lsof: /usr/ports/sysutils/lsof
+
さらに、以下の例のように man:echo[1] を使って調べることもできます。
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -175,7 +175,7 @@ lsof: /usr/ports/sysutils/lsof
この方法では [.filename]#/usr/ports/distfiles# 以下にダウンロードされたファイル名にもマッチします。
* また、Ports Collection に備わっている検索機能を利用して port を検索する方法もあります。 この検索機能を利用するには、 cd コマンドを用いて [.filename]#/usr/ports# ディレクトリに移動し、`make search name=プログラム名` と入力してください。 _プログラム名_ の部分には検索したいソフトウェアの名前を入れてください。 たとえば、`lsof` を探すには次のようにします。
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -198,7 +198,7 @@ Ports Collection に用意されている検索のメカニズムでは、 イ
+
より絞られた情報を得るには、 `quicksearch` と呼ばれる機能を使ってください。
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -234,7 +234,7 @@ FreeBSD には、 pkg およびマニュアルページをインストールす
システムをブートストラップするには、 以下を実行してください。
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -243,7 +243,7 @@ FreeBSD には、 pkg およびマニュアルページをインストールす
port をインストールするには以下を実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -252,7 +252,7 @@ port をインストールするには以下を実行してください。
古い pkg_* ツールを用いたシステムをアップグレードする際には、 新しいツールがすでにインストールされている package を認識するよう、 データベースを新しいフォーマットへと変換する必要があります。 pkg をインストールしたら、 以下のコマンドを実行して、package データベースをこれまでの伝統的なフォーマットから新しいフォーマットへと変換してください。
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -287,12 +287,12 @@ pkg の利用情報は、 man:pkg[8] マニュアルページや、 `pkg` を引
各 pkg コマンドの引数は、 コマンドに固有なマニュアルページに記述されています。 たとえば、`pkg install` のマニュアルページを読むには、 以下のコマンドのどちらかを実行してください。
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -306,7 +306,7 @@ pkg の利用情報は、 man:pkg[8] マニュアルページや、 `pkg` を引
quarterly から latest ブランチに移行するには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
....
@@ -328,7 +328,7 @@ FreeBSD: {
最後に、以下のコマンドを実行して (latest) リポジトリのメタデータからアップデートしてください。
-[source,bash]
+[source,shell]
....
# pkg update -f
....
@@ -340,7 +340,7 @@ FreeBSD: {
たとえば、インストールされている pkg の情報を調べるには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.1.4_1
@@ -351,14 +351,14 @@ pkg-1.1.4_1
バイナリ package をインストールするには、 以下のコマンドを使ってください。 ここで _packagename_ は、インストールする package の名前です。
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
このコマンドは、リポジトリデータを使用して、 インストールすべきソフトウェアのバージョン、および、 インストールされていない依存ソフトウェアがあるかどうかを調べます。 たとえば、curl をインストールするには以下を実行してください。
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -385,7 +385,7 @@ Cleaning up cache files...Done
新しい package と依存関係から追加された package は、 インストール済み package 一覧に表示されます。
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.15.1_1 The root certificate bundle from the Mozilla Project
@@ -395,7 +395,7 @@ pkg-1.1.4_6 New generation package manager
必要のなくなった packages は、 `pkg delete` を使って削除できます。 たとえば、以下のようにして削除できます。
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -413,7 +413,7 @@ Proceed with deleting packages [y/N]: y
以下のコマンドを実行すると、 インストールされている packages が最新のバージョンにアップグレードされます。
-[source,bash]
+[source,shell]
....
# pkg upgrade
....
@@ -425,7 +425,7 @@ Proceed with deleting packages [y/N]: y
サードウェア製アプリケーションに対する脆弱性は、 定期的に見つかります。脆弱性を調べるために、 pkg は、検証機能を持っています。 システムにインストールされているソフトウェアに既知の脆弱性がないかどうかを調べるには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -435,7 +435,7 @@ Proceed with deleting packages [y/N]: y
package を削除すると、不必要な依存 package が残されることがあります。 依存のためにインストールされたが、 現在は不必要になった package (リーフ package) は、 以下のコマンドで自動的に検出され、削除されます。
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -449,7 +449,7 @@ Deinstalling ca_root_nss-3.15.1_1... done
依存によりインストールされた packages は、 _automatic_ package と呼ばれます。 非 automatic packages、 すなわち他の package からの依存ではなく、 明示的にインストールした package の一覧は以下のようにして出力できます。
-[source,bash]
+[source,shell]
....
# pkg prime-list
nginx
@@ -459,7 +459,7 @@ sudo
`pkg prime-list` は、 [.filename]#/usr/local/etc/pkg.conf# で設定されているエイリアスコマンドです。 他にもシステムの package データベースの問い合わせに用いることができる多くのコマンドが用意されています。 たとえば、`pkg prime-origins` コマンドを使うと、 上記で得られた port 一覧のオリジナルの port ディレクトリを知ることができます。
-[source,bash]
+[source,shell]
....
# pkg prime-origins
www/nginx
@@ -471,7 +471,7 @@ security/sudo
インストールされた package に automatic のマーク付けをするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg set -A 1 devel/cmake
....
@@ -480,7 +480,7 @@ security/sudo
インストールされた package を _非_ automatic とマークするには、以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg set -A 0 devel/cmake
....
@@ -498,7 +498,7 @@ security/sudo
過去にバックアップした package データベースの中身をリストアするには、 以下のコマンドを実行してください。 以下のコマンドの _/path/to/pkg.sql_ については、バックアップのある場所に置き換えて実行してください。
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkg.sql
....
@@ -510,7 +510,7 @@ security/sudo
手動で pkg データベースをバックアップするには、以下のコマンドを実行してください。 以下のコマンドの _/path/to/pkg.sql_ については、適切なファイル名と場所に置き換えて下さい。
-[source,bash]
+[source,shell]
....
# pkg backup -d /path/to/pkg.sql
....
@@ -520,14 +520,14 @@ security/sudo
デフォルトでは、pkg は、man:pkg.conf[5] の `PKG_CACHEDIR` 変数で定義されるキャッシュディレクトリにバイナリ packages を保存します。 インストールされている package の最新のコピーのみが保存されます。 古いバージョンの pkg では、 過去にインストールされたすべての package が保存されていました。 これらの古くなったバイナリ package を削除するには、 以下を実行してください。
-[source,bash]
+[source,shell]
....
# pkg clean
....
キャッシュ全体を削除するには以下を実行してください。
-[source,bash]
+[source,shell]
....
# pkg clean -a
....
@@ -539,21 +539,21 @@ FreeBSD Ports Collection では、メジャーバージョン番号が変更に
上記の例の package の情報を変更するには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
別の例として、package:lang/ruby18[] を package:lang/ruby19[] にアップデートするには、 以下のようにしてください。
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
最後の例として、 [.filename]#libglut# 共有ライブラリの情報を package:graphics/libglut[] から package:graphics/freeglut[] へと変更するには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -562,7 +562,7 @@ FreeBSD Ports Collection では、メジャーバージョン番号が変更に
====
package の情報を変更したら、 情報が変更された package に依存している packages を再インストールすることが重要となります。 依存 packages を再インストールするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -587,21 +587,21 @@ FreeBSD のベースシステムには、Portsnap が含まれています。
. 圧縮された Ports Collection のスナップショットを [.filename]#/var/db/portsnap# にダウンロードするには以下を実行してください。
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. 初めて Portsnap を使う時は、 スナップショットをまず [.filename]#/usr/ports# に展開してください。
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. 上で示した Portsnap を初めて利用する際に行うコマンドを実行した後は、 以下のコマンドで [.filename]#/usr/ports# をアップデートしてください。
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -609,7 +609,7 @@ FreeBSD のベースシステムには、Portsnap が含まれています。
+
`fetch` を使う場合には、以下のよう `extract` または `update` を連続して行うことができます。
+
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -624,7 +624,7 @@ ports ツリーの管理が必要な場合や、 ローカルで変更点をメ
. Subversion を使って ports ツリーをチェックアウトする前に、 Subversion をインストールしておく必要があります。 ports ツリーがすでにインストールされていれば、 以下のようにして Subversion をインストールできます。
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -632,21 +632,21 @@ ports ツリーの管理が必要な場合や、 ローカルで変更点をメ
+
ports ツリーが利用できない場合や、 package の管理に pkg を使っているのであれば、package から Subversion をインストールできます。
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. ports ツリーをチェックアウトしてください。
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
+
. Subversion で最初のチェックアウトを行ったら、必要に応じて [.filename]#/usr/ports# をアップデートしてください。
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -679,7 +679,7 @@ Ports Collection は、ネットワークに接続できることを想定して
port をコンパイルしてインストールするには、 インストールしたい port のディレクトリに移動してください。 その後、プロンプトから `make install` と入力してください。 すると、次のような出力が現われるはずです。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make install
@@ -722,7 +722,7 @@ port をコンパイルしてインストールするには、 インストー
インストールの間に、作業用ディレクトリが作成されます。 このディレクトリにはコンパイル時に使用されるすべての一時ファイルが含まれています。 このディレクトリを削除することで、ディスク容量を節約でき、また port を新しいバージョンへアップデートする際に問題が起こる可能性を小さくします。
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-88.d,8
@@ -752,7 +752,7 @@ ports は、いくつかの環境変数を参照する man:fetch[1] を用いて
めったにないことかもしれませんが、 ローカルに distfiles のリポジトリがあるような場合に、 `MASTER_SITES` 変数を変更することで [.filename]#Makefile# で指定されているダウンロードの場所を 変更することができます。 設定する場合には、変更先を以下のようにして指定してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -761,21 +761,21 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
`WRKDIRPREFIX` 変数と `PREFIX` 変数を変更することで、 作業ディレクトリやターゲットディレクトリをデフォルトのものから変更できます。
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
とすると、ports は [.filename]#/usr/home/example/ports# でコンパイルされ、すべて [.filename]#/usr/local# 以下にインストールされます。
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
この場合、port のコンパイルは [.filename]#/usr/ports# でおこない、[.filename]#/usr/home/example/local# にインストールします。そして
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -791,7 +791,7 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
あるいは、port のディレクトリにて `make deinstall` を実行することでも削除できます。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make deinstall
@@ -814,14 +814,14 @@ ports のインストール後、時間が経過すると、Ports Collection で
インストールされている ports の新しいバージョンを利用できるかどうかを知るには、まず、 最新の ports ツリーがインストールされていることを確認してください。 これには、<<ports-using-portsnap-method,「Portsnap を利用する方法」>> もしくは <<ports-using-subversion-method,「Subversion を用いる方法」>> で書かれているアップデートのコマンドを使ってください。 FreeBSD 10 以降のシステム、または、pkg に変換されたシステムでは、 以下のコマンドを実行すると、現在利用可能なバージョンよりも古い ports の一覧が表示されます。
-[source,bash]
+[source,shell]
....
# pkg version -l "<"
....
FreeBSD 9._X_ より前のシステムでは、 現在利用可能なバージョンよりも古い ports の一覧を表示されるには、以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# pkg_version -l "<"
....
@@ -848,7 +848,7 @@ Ports Collection には、 実際にアップグレードを行うためのユ
package:ports-mgmt/portmaster[] は、 インストールされている ports のアップグレードをおこなう、 とても小さなユーティリティです。 FreeBSD のベースシステムとしてインストールされているツールだけを使い、 他の ports やデータベースに依存しないように設計されています。 port からこのユーティリティをインストールするには以下のようにしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -863,7 +863,7 @@ Portmaster は、 ports を 4 つのカテゴリに分類します。
これらのカテゴリの一覧や、アップデート可能な port の一覧を表示するには以下のようにしてください。
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -890,7 +890,7 @@ Portmaster は、 ports を 4 つのカテゴリに分類します。
以下のコマンドを使うと、 古くなった ports をすべてアップデートします。
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -902,14 +902,14 @@ Portmaster のデフォルトの設定では、 インストールされてい
アップグレードの過程でエラーに遭遇した場合には、 `-f` を使ってすべての ports のアップグレードや再構築を行なってください。
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Portmaster を使ってシステムに新しい ports をインストールしたり、 新しい port のコンパイルやインストール前に依存するすべての port をアップグレードできます。この機能を使う時には、 Ports Collection の場所を指定してください。
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -921,7 +921,7 @@ package:ports-mgmt/portmaster[] に関するより多くの情報は、[.filenam
package:ports-mgmt/portupgrade[] は、 インストールした ports のアップグレードを行なうためのもう一つのユーティリティです。 このユーティリティは ports を管理するために用いられるアプリケーションのセットをインストールします。 Ruby に依存します。 port をインストールするには、以下を実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -931,21 +931,21 @@ package:ports-mgmt/portupgrade[] は、 インストールした ports のアッ
システムにインストールされている port の中で古くなったものをすべてアップデートするには `portupgrade -a` を実行してください。 もし、すべての ports に対して個別にアップグレードするかどうかを確認したいのであれば、 `-i` を追加してください。
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
ports で利用可能なすべてのアプリケーションではなく、 ある特定のアプリケーションだけを更新したいのであれば、 `portupgrade _pkgname_` を実行してください。 アップグレードするアプリケーションが依存しているすべての ports をまず先に更新したい場合には、 `-R` を使ってください。
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
`-P` オプションを使うと、 portupgrade は `PKG_PATH` に登録されているローカルディレクトリから、 利用可能な package を探します。 ローカルに利用可能な packages が見つからなければ、 リモートサイトから package のダウンロードを試みます。 packages をローカルに見つけることができず、 リモートサイトからもダウンロードできない場合には、 portupgrade は ports からインストールを行ないます。 ports を使用したくなければ、`-PP` オプションを指定してください。 この最後のオプションを設定すると、 もし package が利用できなければ Portupgrade は終了します。
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome3
....
@@ -959,28 +959,28 @@ package:ports-mgmt/portupgrade[] に関するより多くの情報は、[.filena
Ports Collection を使い続けていると、 そのうちディスクを食いつぶしてしまうでしょう。 ports をビルドしてインストールした後、 ports スケルトンで `make clean` を実行すると、作業用の [.filename]#work# ディレクトリを削除します。 Portmaster を使って port をインストールする場合には、`-K` を使わなければこのディレクトリは自動的に削除されます。 Portupgrade がインストールされている場合には、 以下のコマンドはローカルの Ports Collection に見つかったすべての [.filename]#work# ディレクトリを削除します。
-[source,bash]
+[source,shell]
....
# portsclean -C
....
さらに、時間が経つにつれ [.filename]#/usr/ports/distfiles# には、古くなったソースファイルがたまっていきます。 Portupgrade を使って、どの ports からも使われていないすべての distfiles を削除するには次のように実行してください。
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Portupgrade を使って、システムにインストールされている port から使われていない distfiles をすべて削除することができます。
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
もし Portmaster がインストールされているのであれば、以下を実行してください。
-[source,bash]
+[source,shell]
....
# portmaster --clean-distfiles
....
@@ -1005,7 +1005,7 @@ poudriere を実行するシステムで、 必ずしも ZFS を使う必要は
設定が終わったら、poudriere を初期化して、必要とする FreeBSD ツリーおよび jail、 そして ports ツリーをインストールしてください。 jail の名前を `-j`、 FreeBSD のバージョンを `-v` で指定してください。 FreeBSD/amd64 システムでは、 `-a` を使ってアーキテクチャに `i386` または `amd64` を設定できます。 デフォルトでは、`uname` で表示されるアーキテクチャに設定されます。
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11amd64 -v 11.4-RELEASE
[00:00:00] Creating 11amd64 fs at /poudriere/jails/11amd64... done
@@ -1053,7 +1053,7 @@ Scanning //usr/shared/certs/trusted for certificates...
[00:04:07] Jail 11amd64 11.4-RELEASE-p1 amd64 is ready to be used
....
-[source,bash]
+[source,shell]
....
# poudriere ports -c -p local -m svn+https
[00:00:00] Creating local fs at /poudriere/ports/local... done
@@ -1076,14 +1076,14 @@ ports-mgmt/pkg
特定の ports に対し、 オプションや依存を設定してください。
-[source,bash]
+[source,shell]
....
# poudriere options -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
最後に packages を構築し、 package リポジトリを生成してください。
-[source,bash]
+[source,shell]
....
# poudriere bulk -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
diff --git a/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc
index 4c33142976..d9fa2ab1a7 100644
--- a/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc
@@ -96,7 +96,7 @@ pseudo-device tun 1
以下のコマンドを実行することで, 現在のカーネルにトンネルデバイスが いくつ組み込まれているかを調べることができます:
-[source,bash]
+[source,shell]
....
# ifconfig -a
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -122,7 +122,7 @@ FreeBSD 4.0やより最近のリリースでは, すでに使われている [.f
[.filename]#tun0# デバイスが正しく作成されていることを確認する最も簡単な方法は, それを作り直すことです. そのためには, 以下のコマンドを実行します:
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV tun0
@@ -130,7 +130,7 @@ FreeBSD 4.0やより最近のリリースでは, すでに使われている [.f
カーネルに 16 個のトンネルデバイスを組み込んだのであれば, [.filename]#tun0# だけでなく他の tun デバイスも作成しておく必要があるでしょう:
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV tun15
@@ -138,7 +138,7 @@ FreeBSD 4.0やより最近のリリースでは, すでに使われている [.f
また, カーネルが正しく設定されているかどうかを調べるために 以下のコマンドを実行して, このような出力が得られることを確認します:
-[source,bash]
+[source,shell]
....
# ifconfig tun0
tun0: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -146,7 +146,7 @@ tun0: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1500
まだ `RUNNING` フラグがセットされていない場合もあります. その時は以下のような出力が得られるでしょう:
-[source,bash]
+[source,shell]
....
# ifconfig tun0
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
@@ -257,7 +257,7 @@ Line 6:::
Line 7:::
ダイアルスクリプトと同様に, ログインスクリプトも chat 言語風の記述をおこないます. この例は, 以下のようなログインセッションを使用する プロバイダのためのものです:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -381,7 +381,7 @@ exec /usr/sbin/ppp -direct $IDENT
このスクリプトには実行可能属性をつけておきます. 次に, 以下のコマンドを実行し, [.filename]#ppp-dialup# という名前で このスクリプトへのリンクを作成します:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -395,7 +395,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
任意のユーザが読むことのできる, [.filename]#/home/ppp# ディレクトリを 作成します. [.filename]#/etc/motd# が表示されないようにするため, このディレクトリには以下のように大きさが 0 バイトのファイルを 作成しておきます.
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -407,7 +407,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
例えば, クラス C ネットワークの経路制御を必要とする, 三人のダイアルアップユーザ `fred`, `sam`, `mary` がいるとすると, 以下のコマンドを実行することになります:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -646,7 +646,7 @@ sendmail_flags="-bd"
この結果, PPP リンクを立ち上げた時には いつでも以下のコマンドを実行して, キューにたまっているメールを `sendmail` に送信させる作業が必要になるでしょう.
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -667,14 +667,14 @@ sendmail_flags="-bd"
リブートが終ったら,
-[source,bash]
+[source,shell]
....
# ppp
....
コマンドを実行し, 続いて PPP セッションを開始させるために `dial provider` と入力することもできますし, ([.filename]#start_if.tun0# スクリプトを作成していない場合に), 外部へのトラフィックが発生した時に, `ppp` が自動的に セッションを確立してくれるようにしたいのであれば, 以下のコマンドを実行することもできます.
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -755,7 +755,7 @@ defaultroute # put this if you want that PPP server will be your
. kermit を抜けてください. (回線を切断せずに)
. 下記のように入力します:
+
-[source,bash]
+[source,shell]
....
# /usr/src/usr.sbin/pppd.new/pppd /dev/tty01 19200
....
@@ -900,7 +900,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDT<phone.number>
正しくインストールし編集した後は, 必要な事はこれだけです
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1182,7 +1182,7 @@ link:{faq}#PPPoEwithNAT[-nat オプションを付けてPPPoE ]を起動する
以下を root 権限において実行することで, 起動させることができます:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1333,7 +1333,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
+
. ここでkermitから抜け出し (``z``でkermitをサスペンドできます), root で
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1345,7 +1345,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
slattachを殺すためにrootで
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1364,7 +1364,7 @@ slattachのマニュアルページにはインタフェースを落すために
* `sl0` の代わりに `s10` を使った(いくつかのフォントでは見分けるのは難しい かもしれません).
* インタフェースの状態を見るために `ifconfig sl0` をやってみてください. 私は,
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1374,7 +1374,7 @@ sl0: flags=10<POINTOPOINT>
となります.
* また, pingが "no route to host" というメッセージを返す時には ``netstat -r``でルーティングテーブルを確認しましょう. 私のは,
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1443,7 +1443,7 @@ FreeBSD のデフォルトのカーネルには, 通常, 二つの SLIPインタ
`netstat -i` の出力例
-[source,bash]
+[source,shell]
....
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ed0 1500 <Link>0.0.c0.2c.5f.4a 291311 0 174209 0 133
@@ -1559,7 +1559,7 @@ SLIPリンクでのローカルとリモート向けのアドレスの 選び方
上記の例を実際に流用なさるときには, 例にある Ethernet MACアドレス (`00:11:22:33:44:55`) を, あなたのシステムの実際のEthernetカー ドの MACアドレスと置き換えなければ "プロキシ ARP" はうまく動作しません! SLIPサーバの Ethernet MACアドレスを調べるには `netstat -i` コマ ンドを利用してください. 実行結果の第2行は次のようなものになるはずです.
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/ja/books/handbook/preface/_index.adoc b/documentation/content/ja/books/handbook/preface/_index.adoc
index b43274d362..648fb5726d 100644
--- a/documentation/content/ja/books/handbook/preface/_index.adoc
+++ b/documentation/content/ja/books/handbook/preface/_index.adoc
@@ -196,21 +196,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
[.filename]#C:\># で始まる例は、MS-DOS(R) コマンドを表しています。特に注釈がなければ、それらのコマンドは最近の Microsoft(R) Windows(R) の "コマンドプロンプト" 環境でも実行できます。
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
\# で始まる例は、FreeBSD 上でスーパーユーザ権限で実行しなければならないコマンドを示しています。 そのコマンドを入力するには、 `root` としてログインするか、 通常のアカウントでログインして、スーパーユーザ権限を取得するために man:su[1] を使います。
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
% で始まる例は、 通常のユーザアカウントで実行するべきコマンドを示しています。 特に断りのない限り、環境変数の設定やその他のシェルコマンドには C シェルの文法が使われています。
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/ja/books/handbook/printing/_index.adoc b/documentation/content/ja/books/handbook/printing/_index.adoc
index cf9db6c906..c1442b1d33 100644
--- a/documentation/content/ja/books/handbook/printing/_index.adoc
+++ b/documentation/content/ja/books/handbook/printing/_index.adoc
@@ -182,14 +182,14 @@ PostScript(R) ジョブは、実際にはプリンタに送信されるプログ
シリアルポートが現在使用しているカーネルで サポートされているかどうかを調べるためには、 次のように入力します。
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
ここで、_N_ はシリアルポートの番号を示し、この番号は 0 から始まります。 次のような出力があった場合、 カーネルはそのポートをサポートしています。
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -197,14 +197,14 @@ sio2 at port 0x3e8-0x3ef irq 5 on isa
パラレルポートが現在使用しているカーネルで サポートされているかどうかを調べるためには、 次のように入力します。
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
ここで、_N_ はパラレルポートの番号を示し、この番号は 0 から始まります。 次のような出力があった場合、 カーネルはそのポートをサポートしています。
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -242,7 +242,7 @@ hint.ppc.0.irq="N"
+
カーネルの設定ファイルには man:ppc[4] ドライバも入れなければなりません。
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -266,14 +266,14 @@ man:lptcontrol[8] __で通信モードを設定する場合__
. `lptN` をイベント駆動方式に設定する場合は、 次のように入力します。
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
+
. `lptN` を監視方式に設定する場合は、次のように入力します。
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -322,7 +322,7 @@ _パラレルポートのプリンタをテストするために_
** プリンタがプレインテキストを印字できる場合、 man:lptest[1] コマンドを使います。 次のように入力してください。
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -330,7 +330,7 @@ _パラレルポートのプリンタをテストするために_
ここで、_N_ はパラレルポートの番号で、番号は 0 から始まります。
** プリンタが PostScript(R) か他のプリンタ 言語を使用している場合、そのプリンタに簡単なプロ グラムを送信してください。次のように入力します。
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -339,7 +339,7 @@ _パラレルポートのプリンタをテストするために_
+
もしくは、プログラムを入力したファイルがある 場合は、次のように入力してください。
+
-[source,bash]
+[source,shell]
....
# cat file > /dev/lptN
....
@@ -378,7 +378,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
. man:tip[1] コマンドでプリンタと接続します。 次のように入力してください。
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -389,7 +389,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
** プリンタがプレインテキストを印字できる場合、 man:lptest[1] コマンドを使います。 次のように入力してください。
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -398,7 +398,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
もしくは、プログラムを入力したファイルがある場合は、 次のように入力してください。
+
-[source,bash]
+[source,shell]
....
% >file
....
@@ -496,14 +496,14 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
スプーリングディレクトリの名前は、これも慣例ですが、 次のようにプリンタの名前と同じにします。
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/printer-name
....
しかしながら、ネットワーク上に使用可能なプリンタがたく さんあるならば、LPD で印字するための専用のディレクトリにスプーリングディレクトリを置きたくなるかもしれません。 例に出てきたプリンタ `rattan` と `bamboo` について、この方式を採用すると、 次のようになります。
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -514,7 +514,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
====
各ユーザが印字するジョブのプライバシを守りた いと考えているならば、スプーリングディレクトリを保護し て、これを誰からでもアクセスできないようにしたいと思う かもしれません。スプーリングディレクトリは、 `daemon` ユーザと `daemon` グループに所有され、 読み込み、書き込み、検 索可能であり、他からはアクセスできないようにするべきで す。例題のプリンタに対して、次のようにすることにしましょ う。
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -620,7 +620,7 @@ exit 2
そして、このファイルを実行可能にします。
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -658,7 +658,7 @@ lpd_enable="YES"
の行を [.filename]#/etc/rc.conf# に追加して 計算機を再起動するか、そのまま man:lpd[8] を 起動してください。
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -674,7 +674,7 @@ _簡単な LPD 設定のテスト_
次のように入力してください。
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinter-name
....
@@ -683,7 +683,7 @@ _簡単な LPD 設定のテスト_
PostScript(R) プリンタの場合、 送信したプログラムによる結果が得られるでしょう。 man:lptest[1] を使った場合は、 以下のような結果が見られるでしょう。
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -911,7 +911,7 @@ exit 2
変換フィルタによって、 様々な種類のファイルを印字することが簡単になります。たとえば、TeX 組版システムでたくさんの仕事をしたと仮定しましょう。 そして、PostScript(R) プリンタが接続 されているとします。 すると、TeX で DVI ファイルを作成する度に、DVI ファイルを印字するために、 これを PostScript(R) ファイルに変換する必要があります。 このコマンドは次のようになるでしょう。
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -919,7 +919,7 @@ exit 2
DVI ファイル用の変換フィルタがインストールしてあると、 LPD に変換を肩代わりさせることで毎回毎回 おこなわなければならなかった面倒な変換作業を省くことができます。 つまり、DVI を生成したら、 次のようなコマンドを入力するだけで、これが印字されます。
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1285,7 +1285,7 @@ LPD では、ヘッダページの最後に、 FORM FEED 文字が印字され
ヘッダページの印字が許可されていると、LPD は __長いヘッダ__を作ります。これには、 紙全面に大きな文字でユーザ名、ホスト名、 ジョブ名が書かれています。次に、このヘッダページの例を示 します (`kelly` がジョブ名 "outline" を `rose` というホストから印字 された場合)。
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1325,7 +1325,7 @@ LPD はこのテキストの終わりに FORM FEED 文字を加えます ので
お望みならば、LPD に__短いヘッダページ__を出力させることもできます。 この場合は、 [.filename]#/etc/printcap# ファイルの中で `sb` (short banner) を指定してください。 ヘッダページは次のようになります。
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1556,7 +1556,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
`orchid` で必要となる作業はスプーリングディレクトリを作ることだけです。
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1565,7 +1565,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
これで、`orchid` のユーザが `rattan` と `bamboo` で印字することができるようになりました。 たとえば、`orchid` のユーザが次のように入力したとします。
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1634,7 +1634,7 @@ LPD システムではユーザが複数部のコピーの印字を簡単にお
複数部のコピーの印字によってプリンタが 必要以上に消耗してしまうと感じるならば、 [.filename]#/etc/printcap# ファイルに `sc` 項目を加えてください。これにより、 man:lpr[1] の `-#` オプションの使用が禁止されます。 このオプションが指定されているにも関らず、 `-#` オプションを使うと、 次のようなメッセージが表示され、 このオプションの利用できない旨を伝えます。
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1689,7 +1689,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
`sc` 項目を指定することにより、 `lpr -#` の使用を防ぐことができます。しかし、この状態では man:lpr[1] を複数回起動したり、 1 回のジョブで次のように同じファイルを複数個指定することを防ぐまでには至っていません。
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1703,7 +1703,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
このとき、そのグループに含まれないユーザ (`root` も含みます) がプリントしようとすると、次のようなメッセージが表示されます。
-[source,bash]
+[source,shell]
....
lpr: Not a member of the restricted group
....
@@ -1819,7 +1819,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
スプーリングディレクトリは `sd` 項目で指定されます。LPD がリモートホストからのジョブを受け付けるために必要な ファイルシステムの空き容量を 3M バイト (= 6144 ディスクブロック) にすることにしましょう。
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1866,7 +1866,7 @@ LPD は、紙のページの幅と行数 (`pw` と `pl` 項目で 指定され
プリンタの利用に対してユーザに課金する準備ができたら、 man:pac[8] プログラムを実行してください (課金したいプリンタのスプーリングディレクトリに移動した後、 `pac` と入力してください)。 次のような、ドル中心主義の課金リストが表示されます (訳注: ドル中心主義という表現は、 表示がドルで出ることへの著者の皮肉でしょう。 セントがあるので小数点以下が表示されますが、 この機能も日本では邪魔ですね)。
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1905,7 +1905,7 @@ _name..._::
man:pac[8] が生成するデフォルトのリストには、 各ホストのユーザ別に印字ページ数が表示されます。 (ユーザがサイト内のすべてのホストを使用できるため) ホスト名の情報が意味を持たない場合、 `pac -m` を実行してください。次のようなリストが得られます。
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1919,7 +1919,7 @@ total 337.00 154 $ 6.74
課金額を決めるために、 man:pac[8] は [.filename]#/etc/printcap# ファイルの `pc` 項目で指定された値 (デフォルト値は 200、すなわち 1 ページ当たり 2 セント) を使います。この項目で、印字物に課金したい ファと思う 1 ページ当たり、 または、1 フィート当たりの価格を 100 分の 1 セント単位で指定します。 man:pac[8] を `-p` オプション付きで起動すると、 この値を置き換えることができます。 この `-p` オプションで指定する額の単位は、 100 分の 1 セント単位ではなく、ドル単位です。たとえば、次の指定では、 1 ページ当たりの単価が 1 ドル 50 セントになります。
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1973,28 +1973,28 @@ man:lpr[1]、man:lprm[1]、そして man:lpq[1] の 3 コマンドは、`-P _pri
ファイルを印字するためには、 次のように入力してください。
-[source,bash]
+[source,shell]
....
% lpr filename ...
....
これにより、 入力されたファイルのそれぞれをデフォルトのプリンタ から印字します。ファイル名が与えられなかった場合、 man:lpr[1] は標準入力から印字するデータを読み込みます。たとえば、 次のコマンドにより、ある重要なシステムファイルが印字されます。
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
印字させるプリンタを選択するためには、 次のように入力します。
-[source,bash]
+[source,shell]
....
% lpr -P printer-name filename ...
....
次の例では、プリンタ `rattan` に、 カレントディレクトリにあるファイルの詳細なリストを印字しています。
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -2010,14 +2010,14 @@ man:lpr[1] コマンドを使って印字をする場合、プリントしよう
デフォルトプリンタのキューの状態を表示するには、 man:lpq[1] と入力します。プリンタを指定するときは、 `-P` オプションを使います。たとえば、次のコマンド
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
は、プリンタ `bamboo` のキューの状態を表示します。この `lpq` コマンドの出力結果の例を次に示します。
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2034,7 +2034,7 @@ man:lpq[1] からの出力で一番最初の行もまた有益な情報を与え
man:lpq[1] コマンドは `-l` オプションもサポートしています。 これにより、 詳しい情報が表示されます。 `lpq -l` の実行例を次に示します。
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2055,14 +2055,14 @@ mary: 3rd [job 011rose]
デフォルトプリンタへのジョブを削除するためには、最初に、 man:lpq[1] を使ってそのジョブ番号を調べます。 すなわち、それから、 次のように入力して、ジョブを削除します。
-[source,bash]
+[source,shell]
....
% lprm job-number
....
特定のプリンタへのジョブを削除するときは、 `-P` オプションを使ってそのプリンタを指定します。 たとえば、プリンタ `bamboo` のキューからジョブ番号 10 のジョブを削除するには次のようにします。
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2080,7 +2080,7 @@ lprm::
上記の略記法をデフォルトプリンタではなく 特定のプリンタに対しておこなうときは、`-P` オプションでそのプリンタを指定するだけよいのです。たとえば、 プリンタ `rattan` のキューへあなたが送ったジョブを すべて削除するためには次のようにします。
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2089,7 +2089,7 @@ lprm::
====
ネットワーク環境で作業をしている場合、 あるホストから送られたプリンタジョブは、これを送ったホストで man:lprm[1] を使った場合に限って、 これを削除することができます。 他のホストで同じプリンタを使えたとしても、 このジョブを削除することはできません。 次の例では、他ホストからジョブを削除することを試みています。
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2119,7 +2119,7 @@ man:lpr[1] コマンドには、テキストの整形や、 図や他のファ
次の例では、プリンタ `bamboo` に (TeX 組版システムによる) DVI ファイル [.filename]#fish-report.dvi# を印字しています。
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d fish-report.dvi
....
@@ -2171,7 +2171,7 @@ troff データを印字します。
次の例では、man:ls[1] のマニュアルを美しく整形したものをデフォルトプリンタで印字しています。
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2188,7 +2188,7 @@ man:zcat[1] コマンドで man:ls[1] のマニュアルのソースファイル
+
次の例では、デフォルトプリンタで [.filename]#parser.c# を 3 部コピーし、次に、 [.filename]#parser.h# を 3 部コピーしています。
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2333,7 +2333,7 @@ exit 2
"階段効果" が現れた::
出力された紙には次のように印字されていました。
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/ja/books/handbook/security/_index.adoc b/documentation/content/ja/books/handbook/security/_index.adoc
index 7c6972f6c1..86238e3d72 100644
--- a/documentation/content/ja/books/handbook/security/_index.adoc
+++ b/documentation/content/ja/books/handbook/security/_index.adoc
@@ -101,7 +101,7 @@ CIA の 3 要素は、 コンピュータセキュリティの基本となる考
アカウントへのアクセスを無効にする方法は二通りあります。 一つ目の方法は、アカウントをロックする方法です。例として、 toor アカウントをロックする方法を以下に示します。
-[source,bash]
+[source,shell]
....
# pw lock toor
....
@@ -110,7 +110,7 @@ CIA の 3 要素は、 コンピュータセキュリティの基本となる考
ときには (おそらく追加のサービスのために)、 この方法が使えない場合があります。 そのような場合には、以下の例のように、 シェルを /sbin/nologin に変更することで、 ログインアクセスを拒否できます。
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -138,12 +138,12 @@ toor:*:0:0::0:0:Bourne-again Superuser:/root:/usr/sbin/nologin
インストールが終わったら、 `visudo` インタフェースを使って [.filename]#/usr/local/etc/sudoers# ファイルを編集してください。 以下の例では、新しく webadmin グループが作成され、 `trhodes` ユーザがこのグループに追加されます。 その後、ユーザに package:apache24[] を再起動するアクセス権限を与えます。 この手続きは以下のようになります。
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
....
-[source,bash]
+[source,shell]
....
# visudo
....
@@ -176,7 +176,7 @@ toor:*:0:0::0:0:Bourne-again Superuser:/root:/usr/sbin/nologin
インストール後、以下のコマンドでシステムをチェックできます。 実行すると多くの情報が出力されます。
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -194,14 +194,14 @@ FreeBSD は、基本的な IDS システムをネイティブで提供してい
まず最初に、シードを生成する必要があります。 これは、数値定数で、ハッシュ値の生成やハッシュ値の検証で使われます。 このシードがないと、 ファイルのチェックサムの値を偽ったり検証が可能になります。 以下の例では、シードは `-s` フラグで指定されています。 最初に以下のコマンドを用いて [.filename]#/bin# のハッシュ値およびチェックサムを生成してください。
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > bin_chksum_mtree
....
このコマンドの出力は以下のようになります。
-[source,bash]
+[source,shell]
....
# mtree: /bin checksum: 3427012225
....
@@ -235,24 +235,24 @@ FreeBSD は、基本的な IDS システムをネイティブで提供してい
バイナリ署名の検証のために、 以下のコマンドを実行すると、現在の署名のリストを読み込み、 結果を出力します。
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < bin_chksum_mtree >> bin_chksum_output
....
このコマンドを実行すると、すでにチェックサムを生成している [.filename]#/bin# に対して、同様のチェックサムを生成します。 このコマンドを実行してから変更が行われていないので、 [.filename]#bin_chksum_output# への主力は空となります。 変更が行われた場合をシミュレートするために、 [.filename]#/bin/cat# ファイルの日付を man:touch[1] を使って変更して、 再度検証のコマンドを実行してみます。
-[source,bash]
+[source,shell]
....
# touch /bin/cat
....
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < bin_chksum_mtree >> bin_chksum_output
....
-[source,bash]
+[source,shell]
....
# cat bin_chksum_output
....
@@ -308,7 +308,7 @@ package:security/aide[] のような、 より高度な IDS システムもあ
OPIE を初めて初期化するには、 man:opiepasswd[1] を実行してください。
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -330,7 +330,7 @@ MOS MALL GOAT ARM AVID COED
信頼できない通信路を使って秘密のパスフレーズを初期化または変更するためには、 man:opiekey[1] を実行するための信頼できる通信路を用意しておく必要があります。 たとえばそれは、 信頼できるマシンのシェルプロンプトだったりするでしょう。 (訳注: ここでの通信路とはマシンそのものになります。 信頼できるマシンとは、 信頼できる人がしっかり管理しているマシンということです)。 他に準備しておくものとして、シーケンス番号 (100 は適切な値といえるでしょう) と、場合によっては自分で考えた、 またはランダムに生成されたシードがあります。 信頼できない通信路を使うときには、man:opiepasswd[1] を使ってコンピュータを初期化してください。
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -349,7 +349,7 @@ LINE PAP MILK NELL BUOY TROY
デフォルトのシードで構わなければ、kbd:[Return] を押してください。アクセスパスワードを入れる前に、 あらかじめ用意しておいた信頼できる通信路へ移って、 先ほどと同じパラメータを入力します。
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -364,7 +364,7 @@ GAME GAG WELT OUT DOWN CHAT
OPIE を初期化したら、 ログイン時には以下のようなプロンプトが出てくるでしょう。
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -384,7 +384,7 @@ OPIE のプロンプトには便利な機能が備わっています。 パス
信頼できるシステムで
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -399,7 +399,7 @@ GAME GAG WELT OUT DOWN CHAT
都合によっては、 信頼できるマシンや信頼できる通信路が一切確保できないようなことがあるでしょう。 このような場合には、man:opiekey[1] を使って複数のワンタイムパスワードを生成できます。 たとえば
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -459,7 +459,7 @@ qpopper : ALL : allow
この行を追加したら、 man:inetd[8] を再起動してください。
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -617,7 +617,7 @@ _kerberos IN TXT EXAMPLE.ORG
データベース作成のセッションの例は以下のようになります。
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -636,7 +636,7 @@ Verifying password - Password: xxxxxxxx
次に KDC サービスを起動してください。 `service kerberos start` および `service kadmind start` を実行してサービスを起動してください。 この時点で、kerberos 化されたデーモンが走っていなくても、 KDC のコマンドラインから、作成したばかりの (ユーザ) プリンシパルのチケットを入手したり、 一覧を表示することができることを確認できます。
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -651,7 +651,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
必要がなくなった時には、チケットを破棄できます。
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -668,7 +668,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
[.filename]#/etc/krb5.conf# をインストールしたら、 Kerberos サーバから `add --random-key` を使ってください。 このコマンドは、サーバのホストプリンシパルを追加します。 そして、`ext` を用いて、 サーバのホストプリンシパルを keytab に抽出してください。 以下は、使用例です。
-[source,bash]
+[source,shell]
....
# kadmin
@@ -684,7 +684,7 @@ kadmin> exit
KDC 上で man:kadmind[8] を走らせていない場合で、 リモートから man:kadmin[8] に接続出来ない場合には、 ホストプリンシパル (`host/myserver.EXAMPLE.ORG`) を直接 KDC 上で追加し、 その後、以下のように KDC 上の [.filename]#/etc/krb5.keytab# の上書きを避けるため、 一時ファイルに抽出してください。
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -720,7 +720,7 @@ Heimdal port は、 Kerberos 化されている man:ftpd[8], man:rshd[8], man:rc
ユーザのホームディレクトリに置かれた [.filename]#.k5login# および [.filename]#.k5users# ファイルを使うことで、 この問題を解決出来ます。 たとえば、以下の行を含む [.filename]#.k5login# を `webdevelopers` のホームディレクトリに置くと、 一覧にある両方のプリンシパルは、 共有のパスワードを必要としなくても、 このアカウントにアクセス出来ます。
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -836,7 +836,7 @@ OpenSSL は、 IDEA アルゴリズムに対応していますが、 合衆国
以下のコマンドにより、証明書を作成できます。
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -871,21 +871,21 @@ An optional company name []:Another Name
CA の署名が必要ない場合には、 自己署名証明書を作成できます。 最初に RSA の鍵を生成してください。
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
次に、CA 鍵を生成してください。
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
この鍵を使って証明書を作成してください。
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -919,7 +919,7 @@ define(`confTLS_SRV_OPTIONS', `V')dnl
以下は簡単な試験の例で、man:telnet[1] を使って、 メールサーバに接続しています。
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -965,7 +965,7 @@ IPsec は、直接二つのホスト間のトラフィックを暗号化する _
カーネルに IPsec のサポートを追加するには、 カスタムカーネルコンフィグレーションファイルに以下のオプションを追加してください。
-[source,bash]
+[source,shell]
....
options IPSEC #IP security
device crypto
@@ -973,7 +973,7 @@ device crypto
IPsec のデバッグサポートが必要であれば、 以下のカーネルオプションを追加してください。
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG #debug for IP security
....
@@ -993,17 +993,17 @@ VPN の構成についての標準はありません。 VPN は、数多くの
次に、パケットをトンネリングし、 両方のネットワークが適切に通信するように、 2 つの man:gif[4] 疑似デバイスを作成します。 `root` 権限で以下のコマンドを実行してください。 ただし、実行する際には、以下のコマンドの中の _internal_ および _external_ を、 2 つのゲートウェイの内部および外部インタフェースの実際の IP アドレスに置き換えてください。
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 internal1 internal2
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 tunnel external1 external2
....
@@ -1057,22 +1057,22 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
予想通り、プライベートアドレスを使って、 両方のネットワークから ICMP パケットを送受信できます。 次に、どちらのネットワークからもメッセージを送信できるように、 パケットのルーティング情報を両方のゲートウェイに設定する必要があります。 これは以下のコマンドで設定できます。
-[source,bash]
+[source,shell]
....
# corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# corp-net# route add net 10.0.0.0: gateway 10.0.0.5
....
-[source,bash]
+[source,shell]
....
# priv-net# route add 10.246.38.0 10.246.38.1 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# priv-net# route add host 10.246.38.0: gateway 10.246.38.1
....
@@ -1184,7 +1184,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
設定ファイルを適切に置くと、以下のコマンドにより、 両方のゲートウェイ上で racoon を起動できます。
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1209,7 +1209,7 @@ n2006-01-30 01:36:04: INFO: ISAKMP-SA established 172.16.5.4[500]-192.168.1.12[5
トンネリングが適切に行われているかどうかを確認するため、 別のコンソール上で man:tcpdump[1] を使い、 以下のようなコマンドでネットワークの通信を確認してください。 ただし、以下の例の `em0` の部分は、 必要に応じて使用しているネットワークインタフェースに置き換えてください。
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1286,7 +1286,7 @@ sshd_enable="YES"
この設定により、次のシステムの初期化時に OpenSSH のデーモンプログラムである man:sshd[8] が起動します。 もしくは man:service[8] を使って、すぐに OpenSSH を起動することもできます。
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1295,7 +1295,7 @@ sshd_enable="YES"
man:ssh[1] を使って、 man:sshd[8] が動いているシステムに接続するには、 ログインをするユーザ名とホストを指定してください。
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1312,7 +1312,7 @@ SSH はクライアントが接続した時、 サーバの信頼性の検証の
ローカルのファイルをリモートマシンへ、 あるいはリモートマシンのファイルをローカルに安全な方法でコピーするには、 man:scp[1] を使用してください。
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1336,7 +1336,7 @@ man:scp[1] に渡される引数は、man:cp[1] のものと似ており、コ
パスワードの代わりに man:ssh-keygen[1] を使ってユーザの認証用の DSA または RSA 暗号鍵を作ることができます。
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1375,7 +1375,7 @@ man:ssh-agent[1] は、 読み込まれた秘密鍵による認証を取り扱
シェル上で man:ssh-agent[1] を使うには、 引数としてシェルを起動してください。 次に、man:ssh-add[1] を実行し、 秘密鍵のパスフレーズを入力することにより、 鍵を追加してください。 一度この過程を終えてしまえば、ユーザは、 対応する公開鍵が置かれているホストに man:ssh[1] でログインできるようになります。 以下はその例です。
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1400,7 +1400,7 @@ OpenSSH は暗号化されたセッションの中に他のプロトコルをカ
以下のコマンドは man:ssh[1] で man:telnet[1] 用のトンネルを作成します。
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1433,7 +1433,7 @@ SSH のトンネルは `localhost` の指定されたポートに listen する
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1452,7 +1452,7 @@ man:ssh-keygen[1] と別のユーザアカウントを組み合わせて使う
ここでの例は、外部からの接続を受ける SSH サーバがあるとします。 同じネットワークには、POP3 サーバが動いているメールサーバがあるとします。 電子メールを安全なやり方で見るようにするには、 SSH サーバへの SSH 接続を行い、 メールサーバへのトンネルを作成することです。
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1466,7 +1466,7 @@ user@ssh-server.example.com's password: ******
それに対する解決策は、 あなたが接続しているネットワークのファイアウォールの外部にあるマシンに対して SSH 接続を行い、 希望するサービスへのトンネルに利用することです。
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1504,7 +1504,7 @@ AllowUsers root@192.168.1.32 admin
[.filename]#/etc/ssh/sshd_config# への変更が終わったら、 以下を実行して、設定ファイルを man:sshd[8] に読み込ませてください。
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1563,7 +1563,7 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
man:getfacl[1] は、 ファイルシステムの ACL を表示します。 たとえば、[.filename]#test# の ACL 設定を表示するには、 以下のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1576,14 +1576,14 @@ man:getfacl[1] は、 ファイルシステムの ACL を表示します。 た
このファイルの ACL 設定を変更するには、 man:setfacl[1] を使用してください。
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
ファイルまたはファイルシステムから、 現在設定されている ACL をすべて取り除くには、`-k` を使ってください。 しかしながら、より好ましい方法は、 `-b` を使う方法です。 このオプションを使うと、ACL が動作するのに必要な基本のフィールドは残ります。
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1601,7 +1601,7 @@ package:ports-mgmt/portaudit[] port は、FreeBSD セキュリティチームお
Ports Collection から portaudit をインストールするには、以下のように実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -1610,7 +1610,7 @@ Ports Collection から portaudit をインストールするには、以下の
インストールが終わったら、管理者は以下のコマンドを実行することで、 データベースをアップデートし、インストールされている package の脆弱性を調べることができます。
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -1622,7 +1622,7 @@ Ports Collection から portaudit をインストールするには、以下の
Ports Collection からインストールされたサードパーティ製ユーティリティを監査するには、 管理者は以下のコマンドを実行する必要があります。
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -1731,7 +1731,7 @@ VII. References <.>
プロセスアカウンティングを使用する前に、 以下のコマンドを使って、 プロセスアカウンティングを有効にしておく必要があります。
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
# chmod 600 /var/account/acct
@@ -1743,7 +1743,7 @@ VII. References <.>
実行されたコマンドに関する情報を見るには、 man:lastcomm[1] を使ってください。 このコマンドは、 ユーザが特定の man:ttys[5] で実行したコマンドを出力します。 たとえば、以下のコマンドは `ttyp1` ターミナル上で `trhodes` が実行した man:ls[1] の使用について、記録されているすべて示します。
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1778,7 +1778,7 @@ user:trhodes:maxproc:deny=10/user
ルールを追加する際には、注意すべき点がいくつかあります。 上の例では、ログインして `screen` セッションを実行してしまうと、 不幸にもユーザは最も簡単なタスクの実行ですらブロックされてしまうでしょう。 リソースの制限が適応されると、エラーが出力されます。 この例では以下のような出力が行われます。
-[source,bash]
+[source,shell]
....
% man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1787,7 +1787,7 @@ eval: Cannot fork: Resource temporarily unavailable
他の例としては、man:rctl[8] を使って jail がメモリの制限を超えることを防ぐことができます。 このルールは以下のように書くことができます。
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -1802,14 +1802,14 @@ jail:httpd:memoryuse:deny=2G/jail
ルールを削除するには、`rctl` に対し、 リストから削除するように指定してください。
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
マニュアルページには、 ルールをすべて削除する方法が記載されています。 しかしながら、特定のユーザのルールをすべて削除するには、 以下のようなコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
diff --git a/documentation/content/ja/books/handbook/serialcomms/_index.adoc b/documentation/content/ja/books/handbook/serialcomms/_index.adoc
index 54b2dc5b4f..a925ec90bc 100644
--- a/documentation/content/ja/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/ja/books/handbook/serialcomms/_index.adoc
@@ -203,7 +203,7 @@ FreeBSDでは、[.filename]#/dev# ディレクトリ内のエントリを介 し
以下のコマンドで `sio` という文字列を含むメッセージだけを表示できます。
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -212,7 +212,7 @@ FreeBSDでは、[.filename]#/dev# ディレクトリ内のエントリを介 し
たとえば、シリアルポートを四つ持つシステムの場合は、 以下のようなシリアルポートに関するメッセージがカーネルによって表示されます。
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -260,7 +260,7 @@ FreeBSD 5.0 には、 必要に応じてデバイスノードを自動的に作
デバイススペシャルファイルの作成後、 これらのファイルの許可属性が適切に設定されていて、 これらのデバイスを利用してもよいユーザのみが読み書きできるようになっていることを確認してください (特に [.filename]#/dev/cua*# の許可属性には注意を払ってください)。 この確認を怠ると、 一般のユーザがあなたのモデムを使うことができるようなことになりかねません。 デフォルトの [.filename]#/dev/cua*# の許可属性は、以下のようになっていて、 たいていの場合適切なものだと思います。
-[source,bash]
+[source,shell]
....
crw-rw---- 1 uucp dialer 28, 129 Feb 15 14:38 /dev/cuaa1
crw-rw---- 1 uucp dialer 28, 161 Feb 15 14:38 /dev/cuaia1
@@ -274,14 +274,14 @@ crw-rw---- 1 uucp dialer 28, 193 Feb 15 14:38 /dev/cuala1
[.filename]#ttydN# (または [.filename]#cuaaN#) デバイスは、 アプリケーション上でシリアルポートをオープンする時に使用する、 標準的なデバイスです。プロセスがデバイスをオープンする際、端末 I/O 設定のデフォルトセットが適用されます。これらの設定内容は、 次のコマンドで確認することができます。
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
このデバイスの設定を変更した場合、 その設定はデバイスがクローズされるまで有効です。 デバイスが再びオープンされる時、デフォルトの設定値に戻ります。 デフォルトの設定を変更するためには、"初期状態" を設定したいデバイスをオープンして調節できます。 たとえば、[.filename]#ttyd5# というデバイスに対して、デフォルトで `CLOCAL` モード, 8 bits, `XON/XOFF` フロー制御を設定したい場合は、 次のように入力してください。
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyid5 clocal cs8 ixon ixoff
....
@@ -290,7 +290,7 @@ crw-rw---- 1 uucp dialer 28, 193 Feb 15 14:38 /dev/cuala1
また、"ロック状態"のデバイスに調節を加えることで、 アプリケーションがある種の設定を変更してしまうことを防げます。 たとえば、[.filename]#ttyd5# の速度を 57600 bps に固定したい場合には、次のように入力してください。
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyld5 57600
....
@@ -396,7 +396,7 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
必要な変更を [.filename]#/etc/ttys# ファイルに加えたら、SIGHUP (ハングアップ) シグナルを `init` プロセスに送って設定ファイルを強制的に再読み込みさせます。 たとえば
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -423,14 +423,14 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
`getty` が動いていて、 端末を認識していることを確認してください。 たとえば、動作中の `getty` プロセスの一覧を `ps` で取得するには、以下のように入力してください。
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
その端末に対応する項目が表示されるはずです。 たとえば、以下の表示例は、`getty` は 2 番目のシリアルポート (`ttyd1`) に対して [.filename]#/etc/gettytab# 中の `std.38400` エントリを使って動作しているということを示しています。
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyd1
....
@@ -483,7 +483,7 @@ FreeBSD では、NS8250-、NS16450-、NS16550- および NS16550A- に基づ い
端末に関しては、 ダイアルイン接続に割り当てられたそれぞれのシリアルポートに対して、 `init` が `getty` を起動します。たとえば、モデムが [.filename]#/dev/ttyd0# に割り当てられていたら、`ps ax` コマンドを実行すると、以下のような出力が得られるはずです。
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyd0
....
@@ -588,7 +588,7 @@ ttyd0 "/usr/libexec/getty xxx" dialup on
[.filename]#/etc/ttys# の修正がすんだら、 以下のようなコマンドを使って `init` プロセスに HUP シグナルを送り、[.filename]#/etc/ttys# を読み込み直させてください。
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -701,7 +701,7 @@ ATB2W
もし DTR のインジケータが点灯しない場合は、システムのコンソールから FreeBSD にログインして、`ps ax` を実行し、 FreeBSD が適切なポートに対して``getty`` プロセスを起動しようとしているのかどうか確認してください。 プロセスに関する情報の中に、 以下のような行が表示されるはずです。
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd1
@@ -709,7 +709,7 @@ ATB2W
モデムにまだ着信がない状態の時に、 以下のように上とは異なる出力があった 場合、`getty` は既にモデム ポートのオープンを終了したということに なります。
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyd0
....
@@ -770,7 +770,7 @@ cuaa0:dv=/dev/cuaa0:br#19200:pa=none
[.filename]#/dev/cuaa0# がシステムに存在しない場合は、次のようにします:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV cuaa0
@@ -778,7 +778,7 @@ cuaa0:dv=/dev/cuaa0:br#19200:pa=none
または `root` になって以下のように `cu` コマンドを実行します:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -808,7 +808,7 @@ tip57600|Dial any phone number at 57600bps:\
そして
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -823,7 +823,7 @@ cu115200|Use cu to dial any number at 115200bps:\
そして
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1014,7 +1014,7 @@ device sio0 at isa? port "IO_COM1" tty flags 0x10 irq 4
+
FreeBSD を起動したとき、ブートブロックは [.filename]#/boot.config# の内容をコンソールに表示 します。例えば、
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1051,7 +1051,7 @@ Keyboard: no
+
ブートプロセスに割り込みをかけるには、 コンソールの (Enter 以外の) キーをたたいて下さい。 ブートブロックはその時、操作を指定するためのプロンプトを表示します。 こんな風に表示されるでしょう。
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:wd(0,a)/boot/loader
@@ -1208,7 +1208,7 @@ device sio1 at isa? port "IO_COM2" tty flags 0x30 irq 3
とします。その際、 他のシリアルポートにコンソールフラグをつけてはいけません。
. ブートブロックを再コンパイルし、インストールする。
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot/i386/boot2
# make
@@ -1217,7 +1217,7 @@ device sio1 at isa? port "IO_COM2" tty flags 0x30 irq 3
+
. ブートローダを再コンパイルし、インストールする。
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot/i386/loader
# make
diff --git a/documentation/content/ja/books/handbook/users/_index.adoc b/documentation/content/ja/books/handbook/users/_index.adoc
index 7c45731ab6..7318cedba7 100644
--- a/documentation/content/ja/books/handbook/users/_index.adoc
+++ b/documentation/content/ja/books/handbook/users/_index.adoc
@@ -131,7 +131,7 @@ FreeBSD ではユーザ名でアカウントを一意に識別しますが、
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -182,7 +182,7 @@ man:adduser[8] は、 新しいユーザを登録するためのシンプルな
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -253,7 +253,7 @@ Goodbye!
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -289,7 +289,7 @@ man:chpass[1] を用いて、 パスワード、シェル、その他の個人
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -316,7 +316,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -348,7 +348,7 @@ man:passwd[1] は、 ユーザが自分のパスワードを変更する通常
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -365,7 +365,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -402,7 +402,7 @@ FreeBSD は、 個々のユーザが利用できるシステム資源の量を
====
FreeBSD は通常、直接 [.filename]#/etc/login.conf# から設定を読み込まず、 より速く検索できる [.filename]#/etc/login.conf.db# データベースから読み込みます。[.filename]#/etc/login.conf# を編集する時には [.filename]#/etc/login.conf.db# を次のコマンドを実行してアップデートする必要があります。
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -468,7 +468,7 @@ FreeBSD は通常、直接 [.filename]#/etc/login.conf# から設定を読み込
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -483,7 +483,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -498,7 +498,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -513,7 +513,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/ja/books/handbook/x11/_index.adoc b/documentation/content/ja/books/handbook/x11/_index.adoc
index c8993db1f2..d6b0a7b05b 100644
--- a/documentation/content/ja/books/handbook/x11/_index.adoc
+++ b/documentation/content/ja/books/handbook/x11/_index.adoc
@@ -107,14 +107,14 @@ FreeBSD では、Xorg を package または port からインストールでき
バイナリ package を使うと早くインストールできますが、 カスタマイズのためのオプションは少なくなります。
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
Ports Collection からビルドしてインストールするには、 以下のように実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -141,7 +141,7 @@ Xorg は、 標準的なほとんどのビデオカード、 キーボード、
====
. もし、使用しているコンピュータですでに Xorg が使われているのであれば、 コンフィグレーションファイルを移動するか、削除してください。
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -149,14 +149,14 @@ Xorg は、 標準的なほとんどのビデオカード、 キーボード、
. 3D アクセラレータを利用できるシステムでは、 Xorg を実行するユーザを `video` または `wheel` グループに追加して、使用できるようにしてください。 ユーザ _jru_ をどちらのグループでも利用できるようにするには以下のように実行してください。
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
. デフォルトでは twm ウィンドウマネージャがインストールされています。 Xorg が起動すると、 このウィンドウマネージャが立ち上がります。
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -169,7 +169,7 @@ Xorg は、 標準的なほとんどのビデオカード、 キーボード、
ビデオカードの 3D アクセラレータを有効にするには、 [.filename]#/dev/dri# へのアクセスが必要となります。 通常は、X を実行するユーザを `video` または `wheel` グループに追加するするだけです。 ここでは、man:pw[8] を使ってユーザ _slurms_ を `video` グループ、または `video` グループが存在しない時に、 `wheel` グループに追加しています。
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -355,7 +355,7 @@ EndSection
man:xrandr[1] の使用::
パラメータを与えずに man:xrandr[1] を実行すると、 ビデオ出力と検出されているモニタのモードを確認できます。
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -378,7 +378,7 @@ HDMI-0 disconnected (normal left inverted right x axis y axis)
+
man:xrandr[1] を使用して、 他のディスプレイモードを選択できます。 たとえば、60 Hz で、1280x1024 の表示に変更するには、 以下のように実行してください。
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -387,7 +387,7 @@ man:xrandr[1] を使用して、 他のディスプレイモードを選択で
+
出力端子のタイプおよび番号は、デバイスごとに異なります。 また、各端子の名前もドライバごとに異なります。 あるドライバが `HDMI-1` と呼ぶ出力が、 別のドライバでは `HDMI1` と呼ばれることもあります。 そのため、最初に man:xrandr[1] を実行して、 利用可能な出力のすべての一覧を表示してください。
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -413,7 +413,7 @@ DP1 disconnected (normal left inverted right x axis y axis)
+
プロジェクタは `VGA1` 出力に接続されています。 情報を得られたので、man:xrandr[1] を使ってプロジェクタの標準の解像度に設定し、 デスクトップの右側にスペースを追加できます。
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -572,14 +572,14 @@ EndSection
以下のようにすると [.filename]#xorg.conf# が生成されます。
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
このコンフィグレーションファイルは、 [.filename]#/root/xorg.conf.new# として保存されます。 必要となる変更を行った後、このファイルを (バックグラウンドが表示されるように `-retro` を使って) テストしてください。
-[source,bash]
+[source,shell]
....
# Xorg -retro -config /root/xorg.conf.new
....
@@ -596,14 +596,14 @@ Xorg に付いてくるデフォルトのフォントは、 通常のデスク
上記の Type1 フォントコレクションをバイナリ package からインストールする場合には、次のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
あるいは、Ports Collection から構築してインストールするには次のコマンドを実行してください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -618,7 +618,7 @@ FontPath "/usr/local/share/fonts/urwfonts/"
別の方法としては、 X のセッション中に次のようなコマンドラインを実行します。
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/share/fonts/urwfonts
% xset fp rehash
@@ -638,14 +638,14 @@ Load "freetype"
さて、まずは TrueType(R) フォント用のディレクトリ (例えば [.filename]#/usr/local/share/fonts/TrueType#) を作り、そこに TrueType(R) フォントをすべて放り込みましょう。 Apple(R) Mac(R) の TrueType(R) フォントは、そのままでは使うことができませんので注意してください。 Xorg で使うには UNIX(R)/MS-DOS(R)/Windows(R) 用のフォーマットでなければなりません。 ファイルを置いたら mkfontscale を使って [.filename]#fonts.dir# ファイルを作り、 X のフォントレンダラが新しいファイルがイントールされたことを分かるようにしてください。 `mkfontscale` は package からインストールできます。
-[source,bash]
+[source,shell]
....
# pkg install mkfontscale
....
その後、ディレクトリに X フォントファイルのインデックスを作成してください。
-[source,bash]
+[source,shell]
....
# cd /usr/local/share/fonts/TrueType
# mkfontscale
@@ -653,7 +653,7 @@ Load "freetype"
次に TrueType(R) フォントのディレクトリをフォントパスに追加します。 <<type1>> の場合と同じように、
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/share/fonts/TrueType
% xset fp rehash
@@ -688,7 +688,7 @@ Load "freetype"
新しいフォント、 特に新しいフォントディレクトリを追加したら、 フォントキャッシュを再構築してください。
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -799,7 +799,7 @@ Xorg は、 ログインセッションの管理に用いることのできる X
XDM をインストールするには、 package:x11/xdm[] package または port を使ってください。 インストール後、コンピュータの起動時に、 XDM を起動するように設定するには、 [.filename]#/etc/ttys# の以下のエントリを変更してください。
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -846,7 +846,7 @@ XDM の設定用ディレクトリは [.filename]#/usr/local/etc/X11/xdm# です
XDM が他のリモートコネクションを待ち受けるようにするためには、 [.filename]#/usr/local/etc/X11/xdm/xdm-config# の `DisplayManager.requestPort` 行を、行頭に `!` を置くことでコメントアウトしてください。
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -867,14 +867,14 @@ GNOME はユーザフレンドリなデスクトップ環境です。 アプリ
このデスクトップ環境は、package からインストールできます。
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
ports から GNOME を構築するには、以下のコマンドを実行してください。 GNOME は大きなアプリケーションなので、 コンパイルには高速のコンピュータでも時間がかかります。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -913,14 +913,14 @@ gnome_enable="YES"
GNOME を起動するもう一つの方法は、 [.filename]#.xinitrc# を適切に設定した後で、 コマンドラインから `startx` と入力する方法です。 [.filename]#.xinitrc# が既にある場合には、 ウィンドウマネージャを起動する行を [.filename]#/usr/local/bin/gnome-session# を起動するように変更してください。 このファイルが存在しなければ、 次のコマンドで作成してください。
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
3 つめの方法は、XDM をディスプレイマネージャとして使う方法です。 この場合は、実行可能な [.filename]#.xsession# というファイルを作成してください。
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -932,14 +932,14 @@ KDE はもう一つの使いやすいデスクトップ環境です。 このデ
KDE package をインストールするには以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
KDE port を構築するには、以下のコマンドを使ってください。 port のインストールでは、 インストールするアプリケーションを選択するためのメニューが表示されます。 KDE は大きなアプリケーションなので、 高速のコンピュータでもコンパイルには時間がかかります。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -962,7 +962,7 @@ hald_enable="YES"
KDE Plasma 5 から KDE のディスプレイマネージャ KDM の開発は終了しました。 かわりに推奨されているのが SDDM です。 インストールするには、以下を実行してください。
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -983,7 +983,7 @@ exec ck-launch-session startplasma-x11
KDE Plasma を起動する 3 つめの方法は、 XDM を利用する方法です。 この方法を使うには、以下のようにして実行可能な [.filename]#~/.xsession# を作成してください。
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startplasma-x11" > ~/.xsession
....
@@ -997,14 +997,14 @@ Xfce は GNOME で使われている GTK+ ツールキットをベースにし
Xfce package をインストールするには、次のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
また、port を構築するには以下のようにしてください。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1019,14 +1019,14 @@ dbus_enable="YES"
GNOME や KDE とは異なり、 Xfce は、 ログインマネージャを提供していません。 コマンドラインから `startx` を実行して Xfce を起動するには、 以下のコマンドを使って、 [.filename]#~/.xinitrc# を作成してください。
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
もう一つの方法は XDM を用いる方法です。この方法を使うには、 実行可能な [.filename]#.xsession# を作成してください。
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1049,7 +1049,7 @@ Compiz Fusion のインストールは簡単ですが、設定の際には、por
たとえば、 最新のドライバをインストールするには以下のように実行してください。
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1150,7 +1150,7 @@ Section "Module"
前述の設定は、 package:x11/nvidia-xconfig[] を (`root` 権限で) 実行することで自動的に設定できます。
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1163,14 +1163,14 @@ Section "Module"
Compiz Fusion のインストールは、 他の package と同様に簡単です。
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
インストールが終了したら、グラフィックデスクトップを起動して、 端末から以下のコマンドを通常のユーザで実行してください。
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp &
% emerald --replace &
@@ -1189,7 +1189,7 @@ emerald --replace &
これを、たとえば [.filename]#start-compiz# という名前でホームディレクトリに保存して、 以下のように実行可能にしてください。
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1198,7 +1198,7 @@ GUI を使って、このスクリプトを (GNOME デスクトップの [.guime
すべての希望する効果と設定を選択するには、 (もう一度通常のユーザで) Compiz Config Settings Manager を実行してください。
-[source,bash]
+[source,shell]
....
% ccsm
....
@@ -1247,7 +1247,7 @@ hald がこのファイルを読み込むように、 コンピュータを再
X 端末やスクリプトから以下のコマンドラインを実行することでも、 同様に設定できます。
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -1305,7 +1305,7 @@ EndSection
すべてうまくいったなら、設定ファイルを man:Xorg[1] が見つけることができる共通の場所に置きます。 これは、通常は [.filename]#/etc/X11/xorg.conf# や [.filename]#/usr/local/etc/X11/xorg.conf# です。
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -1393,7 +1393,7 @@ EndSection
[.filename]#/var/log/Xorg.0.log# ファイルを確認すると、 X の起動時のエラーメッセージを探し出すことができます。 多くの場合は、以下のようなものです。
-[source,bash]
+[source,shell]
....
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
diff --git a/documentation/content/ja/books/porters-handbook/porting-autoplist/chapter.adoc b/documentation/content/ja/books/porters-handbook/porting-autoplist/chapter.adoc
index 3617095acb..ef282da537 100644
--- a/documentation/content/ja/books/porters-handbook/porting-autoplist/chapter.adoc
+++ b/documentation/content/ja/books/porters-handbook/porting-autoplist/chapter.adoc
@@ -35,7 +35,7 @@ toc::[]
次に、あなたの port をインストールする一時ディレクトリを作成して、 依存するものをすべてインストールしてください。 _port-type_ は X アプリケーションではない port については `local`、 XFree86 4 またはそれより前の XFree86 のディレクトリ階層にインストールする ports については、それぞれ `x11-4` または `x11` にすべきです。
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/port-name
# mtree -U -f /etc/mtree/BSD.port-type.dist -d -e -p /var/tmp/port-name
@@ -44,21 +44,21 @@ toc::[]
このディレクトリ構造を新しいファイルに保存してください。
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/port-name && find -d * -type d) | sort > OLD-DIRS
....
空の [.filename]#pkg-plist# ファイルを作成してください。
-[source,bash]
+[source,shell]
....
# touch pkg-plist
....
もしあなたの port が `PREFIX` にちゃんと従うなら、 ここで port をインストールしてパッキングリストを作ることができます。
-[source,bash]
+[source,shell]
....
# make install PREFIX=/var/tmp
# (cd /var/tmp/port-name && find -d * \! -type d) | sort > pkg-plist
@@ -66,7 +66,7 @@ toc::[]
新しく生成されたディレクトリはすべてパッキングリストに追加する必要があります。
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/port-name && find -d * -type d) | sort | comm -13 OLD-DIRS - | sort -r | sed -e 's#^#@dirrm #' >> pkg-plist
....
diff --git a/documentation/content/ja/books/porters-handbook/testing/chapter.adoc b/documentation/content/ja/books/porters-handbook/testing/chapter.adoc
index 44c3c637ec..8ff58b7d3a 100644
--- a/documentation/content/ja/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/ja/books/porters-handbook/testing/chapter.adoc
@@ -45,7 +45,7 @@ toc::[]
そのアプリケーションが `PREFIX` を 使用しないで、何かを直接 [.filename]#/usr/local# に インストールしないことを確認してください。 以下のようにすると、簡単なテストを行なうことができます:
-[source,bash]
+[source,shell]
....
# make clean; make package PREFIX=/var/tmp/port-name
....
diff --git a/documentation/content/ko/articles/contributing/_index.adoc b/documentation/content/ko/articles/contributing/_index.adoc
index 574e8f6480..17f7ae8477 100644
--- a/documentation/content/ko/articles/contributing/_index.adoc
+++ b/documentation/content/ko/articles/contributing/_index.adoc
@@ -126,14 +126,14 @@ Assuming that you can manage to secure fairly up-to-date sources to base your ch
패치를 제출하는 데 선호되는 man:diff[1] 형식은 `diff -u` 에 의해 생성되, 하나로 통합된 출력입니다.
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
또는
-[source,bash]
+[source,shell]
....
% diff -u -r -N olddir newdir
....
diff --git a/documentation/content/mn/books/handbook/advanced-networking/_index.adoc b/documentation/content/mn/books/handbook/advanced-networking/_index.adoc
index b205016d91..7d2d1ed37c 100644
--- a/documentation/content/mn/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/mn/books/handbook/advanced-networking/_index.adoc
@@ -78,7 +78,7 @@ toc::[]
Чиглүүлэлтийн өөр ойлголтуудыг үзүүлэхийн тулд бид `netstat`-ийн дараах жишээг ашиглах болно:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -201,7 +201,7 @@ defaultrouter="10.20.30.1"
Үүнийг шууд тушаалын мөрөөс man:route[8] тушаалаар хийж бас болно:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -245,7 +245,7 @@ image::static-routes.png[]
Хэрэв бид `RouterA`-ийн чиглүүлэлтийн хүснэгтийг харвал доор дурдсантай төстэйг харах болно:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -260,7 +260,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Энэ үеийн чиглүүлэлтийн хүснэгттэй байхад `RouterA` нь бидний Internal Net 2 буюу дотоод сүлжээ 2 уруу хүрч чадахгүй байх болно. Энэ нь `192.168.2.0/24`-ийн хувьд чиглүүлэлтгүй байна. Үүнийг арилгах нэг арга нь гараар чиглүүлэлт нэмэх явдал юм. Дараах тушаал нь `RouterA`-ийн чиглүүлэлтийн хүснэгтэд `192.168.1.2`-г дараагийн зөрлөг (hop) болгон ашиглан Internal Net 2 сүлжээг нэмэх болно:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -280,7 +280,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
`static_routes` тохиргооны хувьсагч нь зайгаар тусгаарлагдсан үгнүүдийн жагсаалт юм. Үг бүр чиглүүлэлтийн нэрийг заана. Бидний жишээн дээр `static_routes` мөрөнд бид зөвхөн нэг үгтэй байна. Энэ нь _internalnet2_ юм. Бид дараа нь man:route[8] тушаалд өгөх бүх тохиргооны нэмэлт өгөгдлүүдийг `route_internalnet2` гэгдсэн тохиргооны хувьсагчийн хамтаар нэмнэ. Бидний жишээний хувьд бид ийм тушаал ашиглаж болно:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -413,7 +413,7 @@ device ath_rate_sample # SampleRate tx rate control for ath
Систем ассаны дараа ачаалах үеийн мэдэгдлүүдэд үүнтэй адил утасгүй төхөөрөмжийн талаар зарим мэдээллийг олж болно:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -430,7 +430,7 @@ ath0: AR2413 mac 7.9 RF2413 phy 4.5
Сүлжээнүүдийг хайхын тулд `ifconfig` тушаалыг ашиглана. Энэ хүсэлт нь хэсэг хором болж болох бөгөөд боломжтой утасгүй давтамж бүр уруу шилжиж, байгаа хандалтын цэгүүдийг шалгахыг системээс шаарддаг. Зөвхөн супер хэрэглэгч ийм хайлт эхлүүлж чадна:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -470,7 +470,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -83:96 100 EPS WPA
Мэдэгдэж байгаа сүлжээнүүдийн одоогийн жагсаалтыг бас доорх тушаалаар харуулж болно:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -548,14 +548,14 @@ ifconfig_wlan0="DHCP"
Энэ хүрэхэд та утасгүй интерфэйсээ ажиллуулахад бэлэн байх болно:
-[source,bash]
+[source,shell]
....
# service netif start
....
Интерфэйс ажиллаж эхэлсний дараа [.filename]#ath0# интерфэйсийн төлөвийг үзэхийн тулд `ifconfig` тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -621,7 +621,7 @@ ifconfig_wlan0="WPA DHCP"
Дараа нь бид интерфэйсийг босгож ажиллуулна:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -645,7 +645,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Эсвэл та үүнийг гараар <<network-wireless-wpa-wpa-psk,дээрх>> [.filename]#/etc/wpa_supplicant.conf# ашиглан хийж доор дурдсан тушаалыг ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -656,7 +656,7 @@ WPA: Key negotiation completed with 00:11:95:c3:0d:ac [PTK=CCMP GTK=CCMP]
Дараагийн үйлдэл нь DHCP серверээс IP хаяг авахын тулд `dhclient` тушаалыг ажиллуулах явдал юм:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -682,7 +682,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
DHCP-ийн хэрэглээ боломжгүй тохиолдолд `wpa_supplicant` станцыг таниулж нэвтрүүлсний дараа та статик IP хаяг тохируулж болно:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -745,7 +745,7 @@ ifconfig_wlan0="WPA DHCP"
Дараагийн алхам бол интерфэйсийг босгож ажиллуулах явдал юм:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -817,7 +817,7 @@ ifconfig_wlan0="WPA DHCP"
Дараа нь бид интерфэйсийг босгож ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -845,7 +845,7 @@ WEP (Wired Equivalent Privacy) нь анхдагч 802.11 стандартын
WEP-ийг `ifconfig` тушаалаар тохируулж болно:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -876,7 +876,7 @@ network={
Дараа нь:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -889,7 +889,7 @@ IBSS горим буюу бас ad-hoc гэгддэг горим нь цэгээ
`A` машин дээр:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -908,7 +908,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
`B` машин дээр бид `A` машиныг илрүүлж чадах ёстой:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -918,7 +918,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Гаралт дээрх `I` нь `A` машин ad-hoc горимд байгааг батална. Бид одоо `B`-г өөр IP хаягтайгаар тохируулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -951,7 +951,7 @@ NDIS хэмээгч драйвер орлуулагч болон Виндоус
Утасгүй холболтын сүлжээ дэмжигдэх ажилладаг болж ирэнгүүт нь утасгүй сүлжээний төхөөрөмж тань тухайн машин дээрээ хандах цэг болж ажиллах чадвартайг шалгаж болдог (заримдаа hostap горим гэж нэрлэдэг):
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -963,14 +963,14 @@ cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
Сүлжээний псевдо төхөөрөмжийг үүсгэх үед утасгүй сүлжээний төхөөрөмжийг зөвхөн hostap горимд оруулах боломжтой байдаг, тэгэхээр өмнө нь үүсгэсэн төхөөрөмжийг эхлээд устгах ёстой:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
Дараа нь харин бусад параметрүүдийг тохируулахаасаа өмнө зөв тохиргоотойгоор дахин үүсдэг:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -978,7 +978,7 @@ cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
Дахин `ifconfig` тушаалаар [.filename]#wlan0# төхөөрөмжийн төлөв байдлыг шалгая:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1008,7 +1008,7 @@ ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g c
Өмнө харуулснаар тохируулагдсан хандах цэгийг өөр утасгүй сүлжээтэй ажиллаж буй машинаас хайлт хийж олж болдог:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1018,7 +1018,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
Хэрэглэгч машинаас хандах цэгийг ингэж олоод түүнтэй дараах маягаар холбогдож болно:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1086,12 +1086,12 @@ wpa_pairwise=CCMP TKIP <.>
Дараагийн алхам нь hostapd-г эхлүүлэх:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290
@@ -1112,7 +1112,7 @@ wpa_pairwise=CCMP TKIP <.>
Утасгүй сүлжээний төхөөрөмж тэгэхээр одоо hostap горимд ажиллаж болох бөгөөд шаардлагатай зөв SSID дугаар болон IP хаягаа авах шаардлагатай:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1124,7 +1124,7 @@ wpa_pairwise=CCMP TKIP <.>
Ингээд дахин `ifconfig` тушаалыг ашиглаж [.filename]#wlan0# төхөөрөмжийн төлөв байдлыг шалгаж болно:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1139,7 +1139,7 @@ wpa_pairwise=CCMP TKIP <.>
Өөр утасгүй холбогддог машинаас хандах цэгийг хайж шалгаж болдог:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1168,7 +1168,7 @@ FreeBSD дээр хоёр болон түүнээс олон сүлжээний
`wpa_supplicant` нь илүү дибаг хийх дэмжлэгтэй байдаг; үүнийг `-dd` сонголттой гараар ажиллуулж системийн бүртгэлүүдийг шалгах хэрэгтэй.
* Мөн олон доод түвшний дибаг хийх хэрэгслүүд бас байдаг. Та 802.11 протоколын дэмжлэг давхаргад дибаг мэдэгдлүүдийг [.filename]#/usr/src/tools/tools/net80211# дахь `wlandebug` програмыг ашиглан идэвхжүүлж болно. Жишээ нь:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i ath0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1193,7 +1193,7 @@ FreeBSD дэх Bluetooth стек нь Netgraph тогтолцоог ашигл
Анхдагчаар Bluetooth төхөөрөмжийн драйверууд нь цөмийн модуль хэлбэрээр байдаг. Төхөөрөмжийг залгахаасаа өмнө та драйверийг цөмд дуудаж ачаалах хэрэгтэй болно:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1207,7 +1207,7 @@ ng_ubt_load="YES"
Өөрийн USB dongle-ийг залга. Консол (эсвэл syslog) дээр доор дурдсантай төстэй гаралт гарч ирэх болно:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1217,7 +1217,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
man:service[8] нь Bluetooth стекийг эхлүүлэх болон зогсооход хэрэглэгддэг. Төхөөрөмжийг салгахаасаа өмнө стекийг зогсоох нь зөв байдаг, гэхдээ энэ нь (ихэвчлэн) сүйрлийн биш байдаг. Стекийг эхлүүлж байхад доор дурдсантай төстэй гаралтыг та хүлээн авах болно:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1241,7 +1241,7 @@ _hci_ төрлийн ганц Netgraph цэг ганц Bluetooth төхөөрө
Хамгийн нийтлэг ажлуудын нэг нь RF-ийн ойр Bluetooth төхөөрөмжүүдийг олох явдал юм. Энэ үйлдлийг _inquiry_ буюу лавлагаа гэдэг. Лавлагаа болон бусад HCI-тэй холбоотой үйлдлүүд нь man:hccontrol[8] хэрэгслээр хийгддэг. Доорх жишээ нь ойр орчим ямар Bluetooth төхөөрөмжүүд байгааг хэрхэн олохыг харуулж байна. Та төхөөрөмжүүдийн жагсаалтыг хэдхэн секундэд авах ёстой. Алсын төхөөрөмж нь _илрүүлэгдэх_ горимд байгаа тохиолдолд лавлагаанд зөвхөн хариулах болно гэдгийг санаарай.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1257,7 +1257,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` нь Bluetooth төхөөрөмжийн сүлжээний картанд байдаг MAC хаягууд шиг давтагдашгүй хаяг юм. Энэ хаяг нь төхөөрөмжтэй холбогдоход цаашид хэрэг болдог. BD_ADDR-т хүн уншиж болохоор нэр өгөх боломжтой байдаг. [.filename]#/etc/bluetooth/hosts# файл нь мэдэгдэж байгаа Bluetooth хостуудын тухай мэдээллийг агуулдаг. Дараах жишээ нь алсын төхөөрөмжид өгсөн хүн уншиж болохоор нэрийг хэрхэн авч болохыг үзүүлж байна:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1268,7 +1268,7 @@ Name: Pav's T39
Bluetooth систем нь цэгээс-цэгт-хүрэх (point-to-point) эсвэл цэгээс-олон-цэгт-хүрэх (point-to-multipoint) холболтын боломжийг олгодог. Цэгээс-олон-цэгт-хүрэх (point-to-multipoint) холболтод холболт нь хэд хэдэн Bluetooth төхөөрөмжүүдийн хооронд хуваалцан хэрэглэгддэг. Дараах жишээ нь локал төхөөрөмжийн хувьд идэвхтэй үндсэн зурвасын холболтуудын жагсаалтыг хэрхэн авахыг үзүүлж байна:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1277,7 +1277,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
_connection handle_ буюу _холболтын гар_ нь үндсэн зурвасын холболтыг дуусгах шаардлагатай үед ашигтай байдаг. Үүнийг гараар хийхийг ерөнхийдөө шаарддаггүйг санаарай. Стек нь идэвхгүй байгаа үндсэн зурвасын холболтуудыг автоматаар дуусгах болно.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1296,7 +1296,7 @@ _l2cap_ төрлийн ганц Netgraph цэг ганц Bluetooth төхөөр
Ашигтай тушаал бол бусад хэрэгслүүд уруу ping хийхэд хэрэглэгддэг man:l2ping[8] тушаал юм. Зарим нэг Bluetooth шийдлүүд нь тэдэн уруу илгээсэн бүх өгөгдлийг буцаахгүй байж болох учраас дараах жишээн дээрх `0 bytes` гэдэг нь хэвийн юм.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1307,7 +1307,7 @@ _l2cap_ төрлийн ганц Netgraph цэг ганц Bluetooth төхөөр
man:l2control[8] хэрэгсэл нь L2CAP цэгүүд дээр төрөл бүрийн үйлдлүүдийг хийдэг. Энэ жишээ нь логик холболтуудын (сувгууд) жагсаалт болон локал төхөөрөмжийн хувьд үндсэн зурвасын жагсаалтыг хэрхэн авахыг үзүүлж байна:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1321,7 +1321,7 @@ Remote BD_ADDR Handle Flags Pending State
Өөр нэг оношлогооны хэрэгсэл бол man:btsockstat[1] юм. Энэ нь man:netstat[1]-ийн хийдэгтэй төстэйг хийдэг, гэхдээ зөвхөн Bluetooth сүлжээтэй холбоотой өгөгдлийн бүтцүүдийн хувьд хийдэг. Доорх жишээ нь дээрх man:l2control[8]-ийн нэгэн адил логик холболтыг харуулж байна.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1392,7 +1392,7 @@ SDP-д SDP сервер болон SDP клиентийн хоорондох х
Bluetooth SDP сервер man:sdpd[8] болон тушаалын мөрийн клиент man:sdpcontrol[8] нь стандарт FreeBSD суулгацад орсон байдаг. Дараах жишээ нь SDP үзэх хүсэлтийг хэрхэн хийж байгаа харуулж байна.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1420,7 +1420,7 @@ Bluetooth Profile Descriptor List:
... гэх мэт байна. Үйлчилгээ болгон шинж чанаруудтай байгааг анхаараарай (жишээ нь RFCOMM суваг). Үйлчилгээнээс хамаараад та зарим нэг шинж чанаруудын талаар тэмдэглэгээ хийж авах хэрэгтэй болж болох юм. Зарим Bluetooth шийдлүүд нь үйлчилгээ үзэх боломжийг дэмждэггүй бөгөөд хоосон жагсаалт буцааж болох юм. Энэ тохиолдолд тодорхой үйлчилгээг хайх боломжтой байдаг. Доорх жишээ нь OBEX-ийн Обьект Түлхэх (OPUSH) үйлчилгээг хэрхэн хайхыг үзүүлж байна:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1434,7 +1434,7 @@ sdpd_enable="YES"
Дараа нь sdpd дэмонг ингэж эхлүүлж болно:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1443,7 +1443,7 @@ sdpd_enable="YES"
Локал SDP серверт бүртгэсэн үйлчилгээнүүдийн жагсаалтыг локал хяналтын сувгаар SDP-ийн үзэх хүсэлтийг илгээн авч болно:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1465,14 +1465,14 @@ FreeBSD дээр энэ хоёр хувийн тохиргоо нь man:ppp[8]
Дараах жишээн дээр man:rfcomm_pppd[8] нь DUN RFCOMM суваг дээр BD_ADDR 00:80:37:29:19:a4 хаягтай алсын төхөөрөмж уруу RFCOMM холболт хийхэд ашиглагдах болно. RFCOMM сувгийн дугаарыг алсын төхөөрөмжөөс SDP-ээр авах болно. RFCOMM сувгийг гараар зааж өгөх боломжтой бөгөөд энэ тохиолдолд man:rfcomm_pppd[8] нь SDP хүсэлт хийхгүй байх болно. Алсын төхөөрөмж дээр RFCOMM сувгийг олохын тулд man:sdpcontrol[8]-г ашиглаарай.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
PPP ашиглах Сүлжээний Хандалтын (LAN) үйлчилгээг хангахын тулд man:sdpd[8] сервер ажиллаж байх ёстой. LAN клиентүүдэд зориулсан шинэ оруулгууд [.filename]#/etc/ppp/ppp.conf# файлд үүсгэгдсэн байх ёстой. Жишээнүүдийн талаар man:rfcomm_pppd[8] гарын авлагын хуудаснаас лавлана уу. Төгсгөлд нь RFCOMM PPP серверийг зөв RFCOMM сувгийн дугаар дээр эхлүүлнэ. RFCOMM PPP сервер нь Bluetooth LAN үйлчилгээг локал SDP дэмонд автоматаар бүртгэх болно. Доорх жишээ нь RFCOMM PPP серверийг хэрхэн эхлүүлэхийг үзүүлж байна.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1485,7 +1485,7 @@ OBEX сервер болон клиент нь гуравдагч талын б
OBEX клиент нь OBEX серверт обьектуудыг түлхэж оруулах буюу/эсвэл татахад хэрэглэгддэг. Обьект нь жишээ нь нэрийн хуудас юм уу эсвэл уулзалт байж болно. OBEX клиент нь алсын төхөөрөмжөөс SDP-ээр RFCOMM сувгийн дугаарыг авч болно. RFCOMM сувгийн дугаарын оронд үйлчилгээний нэрийг зааж үүнийг хийж болно. Дэмжигдсэн үйлчилгээний нэрсэд: IrMC, FTRN, болон OPUSH ордог. RFCOMM сувгийг дугаар болгон зааж өгөх боломжтой байдаг. Төхөөрөмжийн мэдээллийн обьектийг үүрэн утаснаас татаж авч байгаа болон шинэ обьектийг (нэрийн хуудас) утасны сан уруу хийж байгаа OBEX сессийн жишээг доор үзүүлэв.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1498,7 +1498,7 @@ Success, response: OK, Success (0x20)
OBEX-ийн Обьект Түлхэх үйлчилгээг хангахын тулд man:sdpd[8] сервер ажиллаж байх ёстой. Бүх ирж байгаа обьектууд хадгалагдах root хавтас үүсгэгдэх ёстой. root сангийн анхдагч зам нь [.filename]#/var/spool/obex# байна. Төгсгөлд нь OBEX серверийг зөв RFCOMM сувгийн дугаар дээр эхлүүлнэ. OBEX сервер нь OBEX-ийн Обьект Түлхэх үйлчилгээг локал SDP дэмонд автоматаар бүртгүүлэх болно. Доорх жишээ нь OBEX серверийг хэрхэн эхлүүлэхийг харуулж байна.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1509,7 +1509,7 @@ Serial Port Profile (SPP) буюу Цуваа портын хувийн тохи
man:rfcomm_sppd[1] хэрэгсэл нь цуваа портын хувийн тохиргоог хийдэг. Псевдо tty нь виртуал цуваа портын хийсвэрлэлт болон ашиглагддаг. Доорх жишээ нь алсын төхөөрөмжийн цуваа портын үйлчилгээ уруу хэрхэн холбогдохыг харуулж байна. Та RFCOMM сувгийг заах шаардлагагүйг санаарай - man:rfcomm_sppd[1] нь алсын төхөөрөмжөөс SDP-ээр авч чаддаг. Хэрэв та үүнийг дарж өөрчлөхийг хүсвэл тушаалын мөрөнд RFCOMM сувгийг зааж өгөх хэрэгтэй.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -1517,7 +1517,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Холбогдсоны дараа псевдо tty нь цуваа порт шиг ашиглагдаж болно:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1528,7 +1528,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Зарим нэг хуучин Bluetooth төхөөрөмжүүд нь үүрэг шилжүүлэлтийг дэмждэггүй. Анхдагчаар FreeBSD нь шинэ холболтыг хүлээн авахдаа үүргийг өөрчилж мастер болохыг оролддог. Үүнийг дэмждэггүй төхөөрөмжүүд нь холбогдож чаддаггүй. Шинэ холболт хийгдэхэд үүрэг шилжүүлэлт хийгддэгийг санаарай. Тийм учраас алсын төхөөрөмжөөс үүрэг шилжүүлэлтийг дэмждэг эсэхийг нь асуух боломжгүй юм. Локал тал дээрээ үүрэг шилжүүлэлтийг хаах HCI тохируулга байдаг:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1590,7 +1590,7 @@ man:pfil[9] тогтолцоогоор холбогддог галт ханын
Интерфэйс хуулбарлалтыг ашиглан гүүрийг үүсгэдэг. Гүүрийг үүсгэхийн тулд man:ifconfig[8]-ийг ашиглана. Хэрэв гүүрний драйвер цөмд байхгүй бол автоматаар дуудагддаг.
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1606,7 +1606,7 @@ bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
Гишүүн сүлжээний интерфэйсийг гүүрэнд нэмэх хэрэгтэй. Гүүрний хувьд пакетуудыг дамжуулахын тулд бүх гишүүн интерфэйсүүд болон гүүр өөрөө идэвхжсэн байх шаардлагатай:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1625,7 +1625,7 @@ ifconfig_fxp1="up"
Хэрэв гүүр хостод IP хаяг хэрэгтэй бол үүнийг тохируулах зөв газар бол гишүүн интерфэйсийн аль нэг биш харин гүүр интерфэйс өөрөө юм. Үүнийг статикаар эсвэл DHCP-ээр тохируулж болно:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1644,7 +1644,7 @@ ifconfig_fxp1="up"
Spanning Tree-г `stp` тушаал ашиглан гишүүн интерфэйсүүд дээр идэвхжүүлж болно. Одоо [.filename]#fxp0# болон [.filename]#fxp1# интерфэйсүүдтэй гүүрний хувьд STP-г идэвхжүүлэхийн тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1664,7 +1664,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Сүлжээн дэх өөр нэг гүүр бас идэвхжсэн spanning tree-тэй байна:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1689,7 +1689,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Сүлжээний дөрвөн интерфэйсээс оролтыг нэг урсгал уруу уншихын тулд:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1701,7 +1701,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Бүх хүрээнүүдийн хуулбарыг [.filename]#fxp4# гэж нэрлэгдсэн интерфэйс рүү илгээхийн тулд:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1716,7 +1716,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Наалттай хаягуудыг ашиглах өөр нэг жишээ нь IP хаягийн талбарыг дэмий үрэлгүйгээр хэрэглэгчийн сүлжээнүүд нь тусгаарлагдсан чиглүүлэгчийг үүсгэхийн тулд гүүрийг VLAN-уудтай нэгтгэх явдал юм. `CustomerA` нь `vlan100` дээр `CustomerB` нь `vlan101` дээр гэж үзье. Гүүр нь `192.168.0.1` гэсэн хаягтай бөгөөд бас интернэт чиглүүлэгч юм.
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1726,7 +1726,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
VLAN-уудын хоорондох ямар ч холбоог хувийн интерфэйсүүд (эсвэл галт хана) ашиглан хааж болно:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1739,7 +1739,7 @@ VLAN-уудын хоорондох ямар ч холбоог хувийн ин
Доор дурдсан жишээ нь `vlan100` дээр байгаа `CustomerA`-д зориулж Ethernet төхөөрөмжүүдийн хамгийн их тоог 10 болгон тохируулж байна.
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
@@ -1760,7 +1760,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
Ганц гүүрийг IETF BRIDGE-MIB (RFC4188)-ээр монитор хийхийн тулд доор дурдсаныг хийнэ
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1784,7 +1784,7 @@ RSTP-MIB::dot1dStpVersion.0 = INTEGER: rstp(2)
Олон гүүрний интерфэйсийг монитор хийхийн тулд хувийн BEGEMOT-BRIDGE-MIB-г ашиглаж болно:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1805,7 +1805,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
`mib-2.dot1dBridge` дэд модоор монитор хийгдэж байгаа гүүрний интерфэйсийг солихын тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1849,7 +1849,7 @@ Round-robin::
Cisco(R) шилжүүлэгч дээр _FastEthernet0/1_ болон _FastEthernet0/2_ интерфэйсүүдийг _1_ сувгийн бүлэгт нэмнэ.
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1862,7 +1862,7 @@ interface FastEthernet0/2
_fxp0_ болон _fxp1_-г ашиглан man:lagg[4] интерфэйсийг үүсгээд _10.0.0.3/24_ гэсэн IP хаяг тавьж интерфэйсийг босгоно:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1872,14 +1872,14 @@ _fxp0_ болон _fxp1_-г ашиглан man:lagg[4] интерфэйсийг
Доорх тушаалыг ажиллуулж интерфэйсийн төлвийг харна:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
....
_ACTIVE_ гэж тэмдэглэгдсэн портууд нь алсын шилжүүлэгчтэй тохиролцсон, идэвхтэй нэгтгэлтийн бүлгийн хэсэг бөгөөд урсгал нь дамжуулагдаж хүлээн авагдах болно. LAG таних тэмдгүүдийг үзэхийн тулд man:ifconfig[8]-ийн дэлгэрэнгүй гаралтыг ашиглаарай.
-[source,bash]
+[source,shell]
....
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
@@ -1894,7 +1894,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Шилжүүлэгч дээр портын төлвийг харахын тулд `show lacp neighbor` тушаалыг ашиглах хэрэгтэй.
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -1920,7 +1920,7 @@ Fa0/2 SA 32768 0005.5d71.8db8 29s 0x146 0x4 0x3D
====
Failover буюу ослыг тойрон гарах горимыг мастер интерфэйс дээр холбоос тасарсан тохиолдолд хоёр дахь интерфэйс уруу шилжихэд ашиглаж болно. _fxp0_ нь мастер интерфэйс, _fxp1_ нь хоёр дахь интерфэйс байхаар _lagg0_ интерфэйсийг үүсгэж тохируулна:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto failover laggport fxp0 laggport fxp1
@@ -1928,7 +1928,7 @@ Failover буюу ослыг тойрон гарах горимыг мастер
Интерфэйс нь үүнтэй төстэй байх бөгөөд гол ялгаа нь MAC хаяг болон төхөөрөмжийн нэрс байх болно:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1965,7 +1965,7 @@ ifconfig_lagg0="laggproto failover laggport fxp0 laggport fxp1 10.0.0.15/24"
Энэ тохиргоонд утастай сүлжээний интерфэйс _bge0_-ийг мастер, утасгүй сүлжээний интерфэйс _wlan0_-ийг failover интерфэйс гэж авч үзнэ. _wlan0_-ийг _iwn0_-ээс үүсгэсэн бөгөөд бид үүнд утастай сүлжээний холболтын MAC хаяг зааж өгөх болно. Эхний алхам бол MAC хаягийг утастай сүлжээний интерфэйсээс авах явдал юм:
-[source,bash]
+[source,shell]
....
# ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1979,21 +1979,21 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Та _bge0_-ийг өөрт байгаагаар солих хэрэгтэй бөгөөд ингэхэд таны утастай сүлжээний интерфэйсийн MAC хаяг бүхий өөр `ether` хаягийг авах болно. Одоо утасгүй сүлжээний интерфэйс _iwn0_-ийг солино:
-[source,bash]
+[source,shell]
....
# ifconfig iwn0 ether 00:21:70:da:ae:37
....
Утасгүй сүлжээний интерфэйсийг босгоно, гэхдээ ямар ч IP хаяг тавих хэрэггүй:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 ssid my_router up
....
_bge0_ интерфэйсийг босгоно. _bge0_-ийг мастер маягаар ашиглан хэрэв шаардлагатай бол _wlan0_ руу failover хийх боломжтойгоор man:lagg[4] интерфэйс үүсгэнэ:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 up
# ifconfig lagg0 create
@@ -2002,7 +2002,7 @@ _bge0_ интерфэйсийг босгоно. _bge0_-ийг мастер ма
Интерфэйс нь үүнтэй төстэй байх бөгөөд гол ялгаа нь MAC хаяг ба төхөөрөмжийн нэрс байх болно:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2017,7 +2017,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Дараа нь IP хаяг авахын тулд DHCP клиентийг эхлүүлнэ:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2178,7 +2178,7 @@ Etherboot-ийн тохиргоог Etherboot-ийн эх байгаа сан д
Ачаалах уян дискийг хийхийн тулд Etherboot суулгасан машин дээрх хөтөч уруугаа уян дискээ хийгээд Etherboot мод дахь [.filename]#src# сан уруу болгож одоогийн сангаа солиод доор дурдсан тушаалыг бичнэ:
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
....
@@ -2215,7 +2215,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
+
. inetd-д өөрийн тохиргооны файлаа дахин уншихыг хэлээрэй. Энэ тушаалыг зөв ажиллуулахын тулд [.filename]#/etc/rc.conf# файлд `inetd_enable="YES"` тохируулга заагдсан байх ёстой:
+
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -2244,7 +2244,7 @@ nfs_server_enable="YES"
+
. mountd-д өөрийн тохиргооны файлаа дахин уншихыг хэлнэ. Хэрэв та эхний шатандаа NFS-г [.filename]#/etc/rc.conf# файлд идэвхжүүлэх хэрэгтэй болсон бол харин дахин ачаалахыг хүсэж болох юм.
+
-[source,bash]
+[source,shell]
....
# service mountd restart
....
@@ -2310,7 +2310,7 @@ cd /usr/src/etc; make distribution
Цөм нь ачаалах үед NFS swap-ийг идэвхжүүлэхийг дэмждэггүй. Бичигдэх файлын системийг холбож swap файлыг үүсгэн идэвхжүүлэх замаар эхлүүлэх скриптүүдээр swap нь идэвхжүүлэгдэх ёстой. Зохих хэмжээ бүхий swap файлыг үүсгэхдээ та ингэж хийж болно:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/path/to/swapfile bs=1k count=1 oseek=100000
....
@@ -2348,7 +2348,7 @@ Intel(R)-н Preboot eXecution Environment (PXE) буюу Ачаалалтаас
. FreeBSD суулгац байх NFS-р холбож болох санг сонгоно. Жишээ нь [.filename]#/b/tftpboot/FreeBSD/install# гэх мэт санг ашиглаж болно.
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2364,7 +2364,7 @@ Intel(R)-н Preboot eXecution Environment (PXE) буюу Ачаалалтаас
+
. NFS серверийг дахин асаана:
+
-[source,bash]
+[source,shell]
....
# service nfsd restart
....
@@ -2379,14 +2379,14 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. inetd-г дахин асаана:
+
-[source,bash]
+[source,shell]
....
# service inetd restart
....
+
. crossref:cutting-edge[makeworld,FreeBSD-н цөм болон хэрэглэгчийн талбарыг дахин бүтээнэ]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -2395,7 +2395,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. NFS-р холбогдсон санд FreeBSD-г суулгана:
+
-[source,bash]
+[source,shell]
....
# make installworld DESTDIR=${NFSROOTDIR}
# make installkernel DESTDIR=${NFSROOTDIR}
@@ -2404,7 +2404,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. TFTP ажиллаж байгааг болон PXE-р дамжин ачаалагч дуудагчийг татаж авч байгаа эсэхийг шалгана:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2422,7 +2422,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
_myhost.example.com_ гэдгийг таны өөрийн NFS серверийн IP хаяг эсвэл хостын нэрээр солих хэрэгтэй. Энэ жишээн дээр NFS хэрэглэгчид root файлын системийн агуулгыг устгачих магадлалаас хамгаалж root файлын системийг "зөвхөн унших" эрхээр холбосон байгаа.
. man:chroot[8] орчинд root нууц үгийг тохируулна.
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2432,7 +2432,7 @@ _myhost.example.com_ гэдгийг таны өөрийн NFS серверийн
. [.filename]#${NFSROOTDIR}/etc/ssh/sshd_config# файлыг засварлан `PermitRootLogin` гэдгийг идэвхжүүлж PXE-р ачаалж байгаа хэрэглэгч машинуудад зориулж ssh-р дамжин root хэрэглэгч нэвтрэх боломжийг бүрдүүлнэ. Үүнийг man:sshd_config[5]-д тайлбарласан байгаа.
. ${NFSROOTDIR} дахь man:chroot[8] орчинд бусад өөрчлөлтүүдийг хийнэ. Эдгээр өөрчлөлтүүдэд man:pkg_add[1] ашиглан багцууд нэмэх, man:vipw[8], ашиглан нууц үгийн файлыг засварлах, эсвэл автоматаар холбохын тулд man:amd.conf[8] харгалзааг засварлах зэрэг орж болно. Жишээ нь:
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# pkg_add -r bash
@@ -2443,7 +2443,7 @@ _myhost.example.com_ гэдгийг таны өөрийн NFS серверийн
Хэрэв та NFS root-с ачаалсан бол [.filename]#/etc/rc# нь NFS-ээр ачаалсныг мэдэж [.filename]#/etc/rc.initdiskless# скриптийг ажиллуулдаг. Юу болж байгааг энэ скрипт доторх тайлбаруудыг уншиж мэдээрэй. Бид [.filename]#/etc# болон [.filename]#/var# гэсэн санах ой дээр тулгуурласан файлын систем үүсгэх хэрэгтэй, учир нь NFS root сан нь зөвхөн уншигдах эрхтэй бөгөөд эдгээр сангууд нь бичигдэх боломжтой байх ёстой.
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2501,7 +2501,7 @@ image::pxe-nfs.png[]
+
. [.filename]#pxeboot#-г TFTP-р авч болж байгаа эсэхийг шалгаарай. TFTP сервер дээрээ [.filename]#/var/log/xferlog# файлыг нээж харан [.filename]#pxeboot# файл зөв газраас татагдаж байгаа эсэхийг шалгаарай. Дээрх [.filename]#dhcpd.conf# файлын тохиргоог шалгахын тулд:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2511,7 +2511,7 @@ Received 264951 bytes in 0.1 seconds
man:tftpd[8] ба man:tftp[1] гарын авлагын хуудаснуудыг уншаарай. TFTP-н зарим нэг хязгаарлалтуудыг `BUGS` хэсэгт тайлбарласан байгаа.
. root файлын системийг NFS-р холбож болж байгаа эсэхийг шалгаарай. Дээрх [.filename]#dhcpd.conf# файлын тохиргоог шалгахын тулд:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2917,7 +2917,7 @@ IPv4 цацах (broadcast) хаяг (ихэвчлэн `xxx.xxx.xxx.255`) нь I
Энэ хүртэл уншигч доор дурдсаныг ойлгож чадаж байх ёстой:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -3143,7 +3143,7 @@ CLIP-ийг PVC-нүүдтэй тохируулах эхний арга нь м
Холболтын төгсгөл бүр дэх VPI болон VCI утгууд нь мэдээж ялгаатай байх боловч амархан байлгах үүднээс бид тэдгээрийг адил гэж үзнэ. Дараа нь бид ATM интерфэйсүүдийг хост бүр дээр тохируулах хэрэгтэй болно:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -3153,7 +3153,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
Ингэхдээ бүх хостууд дээр ATM интерфэйс нь [.filename]#hatm0# гэж үзэх болно. Одоо PVC-нүүд нь `hostA` дээр тохируулагдах шаардлагатай (бид тэдгээрийг ATM шилжүүлэгч дээр аль хэдийн тохируулагдсан гэж үзнэ, үүнийг хэрхэн хийхийг шилжүүлэгчийн гарын авлагаас лавлах хэрэгтэй).
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -3174,7 +3174,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Мэдээж хэрэг UBR-с бусад урсгалын хэлэлцээнүүд хэрэв ATM хувиргагч тэдгээрийг дэмждэг бол ашиглагдаж болно. Энэ тохиолдолд урсгалын хэлэлцээний нэр нь урсгалын нэмэлт өгөгдлүүдийн дараа орж байна. man:atmconfig[8] хэрэгсэлд зориулсан тусламжийг дараах тушаалыг ашиглан:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -3195,7 +3195,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
Бүх CLIP чиглүүлэлтүүдийн тухайн үеийн төлвийг дараах тушаалаар авч болно:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
@@ -3245,7 +3245,7 @@ CARP боломж нь одоо хүртээмжтэй болсон байх ё
CARP төхөөрөмжүүдийг `ifconfig` тушаалаар үүсгэж болно:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -3298,7 +3298,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
Анхдагч FreeBSD цөм дээр preemption буюу өөр илүү өндөр давуу эрх бүхий бодлого/урсгалаар солигдох боломж идэвхжсэн байж _болох_ юм. Хэрэв тийм бол `provider.example.org` нь IP хаягийг анхдагч агуулгын сервер рүү суллахгүй байж болох юм. Энэ тохиолдолд администратор мастер уруу буцааж IP-г хүчилж болох юм. Дараах тушаалыг `provider.example.org` дээр ажиллуулах шаардлагатай:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
diff --git a/documentation/content/mn/books/handbook/audit/_index.adoc b/documentation/content/mn/books/handbook/audit/_index.adoc
index dd401c26c8..90bfb30e2b 100644
--- a/documentation/content/mn/books/handbook/audit/_index.adoc
+++ b/documentation/content/mn/books/handbook/audit/_index.adoc
@@ -225,7 +225,7 @@ www:fc,+ex:no
Жишээ нь `praudit` хэрэгсэл нь заасан аудит бүртгэлийн бүх агуулгыг жирийн текстээр харуулна:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -253,7 +253,7 @@ trailer,133
Аудит бүртгэлүүд нь маш их байж болно, администратор зарим хэрэглэгчтэй холбоотой бичлэгүүд зэрэг хэсэг бичлэгүүдийг ашиглахын тулд шилж сонгохыг магадгүй хүснэ:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -268,7 +268,7 @@ trailer,133
Аудит хоолойнууд нь төхөөрөмжийн файлын систем дахь клон хийгдсэн псевдо төхөөрөмжүүд бөгөөд програмыг шууд явж байгаа аудит бичлэгийн урсгалд холбох боломж олгоно. Энэ нь голчлон халдлага илрүүлэх болон систем монитор хийх програмуудын зохиогчдын сонирхлыг татдаг. Гэхдээ администраторуудын хувьд аудитийн хоолойны төхөөрөмж нь аудитийн мөрийн файлын эзэмшил эсвэл үйл явцын урсгалыг зогсоох, бүртгэл эргүүлэх зэрэг асуудлуудтай холбогдолгүйгээр шууд монитор хийх эвтэйхэн боломжийг бүрдүүлдэг. Шууд явж байгаа аудитийн үйл явцын урсгалыг хянахдаа дараах тушаалын мөрийг ашиглана:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -292,7 +292,7 @@ devfs файлын системийг тохируулах талаар дэлг
Аудит мөрүүд нь зөвхөн цөмөөр бичигдэх бөгөөд auditd аудит дэмоноор удирдагддаг. Администраторууд аудит бүртгэлүүдийг шууд эргүүлэхдээ man:newsyslog.conf[5] эсвэл бусад хэрэгслүүдийг ашиглан хийх ёсгүй юм. Харин `audit` удирдах хэрэгслийг ашиглан аудитийг унтраах, аудит системийг дахин тохируулах, болон бүртгэлийг эргүүлэх үйлдлүүдийг хийх боломжтой байдаг. Дараах тушаал аудит дэмонг шинэ аудит бүртгэл үүсгэж цөмийг шинэ бүртгэл уруу шилжихийг дохино. Хуучин бүртгэл нь төгсөж нэр нь өөрчлөгдөх бөгөөд дараагаар түүнтэй администратор ажиллах боломж бүрдэнэ.
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/mn/books/handbook/basics/_index.adoc b/documentation/content/mn/books/handbook/basics/_index.adoc
index 09c5b6be30..c47d9fcfba 100644
--- a/documentation/content/mn/books/handbook/basics/_index.adoc
+++ b/documentation/content/mn/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ FreeBSD нь олон аргаар хэрэглэгдэж чадна. Тэдни
Хэрэв та FreeBSD-г эхлэх үедээ автоматаар график горимд эхлүүлэхээр тохируулаагүй бол, систем нь эхлэлтийн гүйцэтгэдэг бичиглэлүүдээ дуусгасны дараа танд нэвтрэх хуудас харуулдаг. Та нэг иймэрхүү хуудас харах байх:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ FreeBSD бол олон хэрэглэгчийн бас олон үйлдлий
Дөнгөж FreeBSD эхлэх үедээ эхлүүлэгч бичлэгүүдийг гүйцэтгэж дуусаад танаас зөв хэрэглэгчийн нэр оруулахыг лавлаж асууна:
-[source,bash]
+[source,shell]
....
login:
....
Энэ жишээнд зориулаад бүгдээрээ таны хэрэглэгчийн нэрийг `john` гэж бодоцгооё. Лавлаж асуусан мөрөнд `john` гэж бичээд kbd:[Enter] товч дарна. Ингээд дараа нь танаас "password" гэж нууц үг асуух болно:
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -195,21 +195,21 @@ _Үүнийг `_insecure_` гэж солихдоо та тун болгоомж
FreeBSD-ийн консолын анхдагч видео горимыг 1024x768, 1280x1024, эсвэл таны график бичил схем болон дэлгэц дэмжиж чадах дурын хэмжээгээр тохируулж болох юм. Өөр видео горимыг ашиглахын тулд та `VESA` модулийг дуудна:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
Дараа нь таны тоног төхөөрөмж ямар видео горимуудыг дэмждэгийг man:vidcontrol[1] хэрэгсэл ашиглан та тодорхойлж болно. Дэмжигдсэн видео горимуудын жагсаалтыг авахын тулд доор дурдсан тушаалыг бичнэ:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
Энэ тушаалын үр дүн нь таны тоног төхөөрөмжийн дэмждэг видео горимуудын жагсаалт байх болно. Та дараа нь `root` консол дээр шинэ видео горимыг сонгон man:vidcontrol[1] уруу өгч болно:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -270,7 +270,7 @@ FreeBSD нь BSD UNIX(R)-ээс уламжилж байх үедээ, UNIX(R)-н
Та man:ls[1] тушаалыг `-l` сонголттой хэрэглэж файлын эзэмшигч, бүлэг, мөн хүн болгонд хуваарилсан зөвшөөрлийг харуулсан баганатай дэлгэрэнгүй мэдээллийг харж болно. Жишээлбэл, `ls -l` тушаалыг нэг сан дотор гүйцэтгэвэл дараах маягаар харагдана:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -282,7 +282,7 @@ total 530
Энд `ls -l` тушаалын эхний баганыг авч үзье:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -359,14 +359,14 @@ total 530
Эдгээр утгууд нь өмнөх жишээ шиг man:chmod[1] тушаалтай хэрэглэгддэг бөгөөд гэхдээ үсэг хэрэглэнэ. Жишээлбэл, та _FILE_ уруу бусад хэрэглэгчид хандахыг хориглохдоо:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Файлд нэгээс олон өөрчлөлт хийх шаардлага гарвал таслалаар тусгаарласан мөр бичиж болно. Жишээлбэл, дараах тушаал нь бүлэг болон "дэлхийг"_FILE_ дээр бичих эрхийг нь аваад дараа нь хүн болгонд гүйцэтгэж болно гэсэн эрх өгч байна:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -379,21 +379,21 @@ total 530
Файлын тугнууд нь энгийн загвартай man:chflags[1] багажаар ашиглагддаг. Жишээлбэл, [.filename]#file1# файл дээр устгагдахгүй гэсэн туг хатгахыг системд зөвшөөрүүлэхийн тулд дараах тушаалыг гүйцэтгэнэ:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Хэрэв устгагдахгүй тугийг буцааж авна гэвэл өмнөх тушаал дээрээ `sunlink`-ын өмнө "no" залгаж ажиллуулна:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Энэ файлын тугийг харахын тулд man:ls[1] тушаалыг `-lo` сонголттой хамт ажиллуулна:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -422,7 +422,7 @@ total 530
setuid зөвшөөрлийг зөвшөөрлийн цуглуулгын өмнө дөрвийн тоог (4) доорх жишээн дээрх шигээр тавьж тохируулж болно:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -440,7 +440,7 @@ setuid зөвшөөрлийг зөвшөөрлийн цуглуулгын өмн
Терминал A дээр:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -448,12 +448,12 @@ Old Password:
Терминал B дээр:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -465,14 +465,14 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
Файл дээр `setgid` зөвшөөрлийг тохируулахдаа дараах жишээн дээрх шиг `chmod` тушаалыг өмнөө хоёртой (2) өгнө:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Шинэ тохиргоог өмнөх шигээ харж болох бөгөөд `s` нь одоо бүлгийн зөвшөөрлийн тохиргоонд зориулагдсан талбарт байгааг анхаараарай:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -486,19 +486,19 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
`sticky bit` нь санд тавигдсан үед файл устгалтыг зөвхөн файлыг эзэмшигчид зөвшөөрдөг. Энэ зөвшөөрлийн цуглуулга нь [.filename]#/tmp# зэрэг нийтийн сангаас файлыг эзэмшдэггүй хэрэглэгч уг файлыг устгахаас хамгаалахад ашиг тустай байдаг. Энэ зөвшөөрлийг ашиглахын тулд зөвшөөрлийн урд нэгийг (1) тавьж өгнө. Жишээ нь:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Одоо үр дүнг `ls` тушаал ашиглан харах боломжтой:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -831,7 +831,7 @@ man:mount[8] тушаал нь файл системийг холбоход хэ
Таны хамгийн өргөн хэрэглэх хэлбэр бол:
-[source,bash]
+[source,shell]
....
# mount төхөөрөмж-буюу-диск холбох-цэг
....
@@ -893,7 +893,7 @@ FreeBSD бол олон үйлдэл зэрэг хийх чадвартай си
Анхдагч горимондоо, `ps` тушаал нь зөвхөн таны эзэмшиж байгаа процессуудыг харуулдаг. Жишээлбэл:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -921,7 +921,7 @@ FreeBSD бол олон үйлдэл зэрэг хийх чадвартай си
man:top[1] тушаалын гаралт нь өмнөх жишээтэй ижилхэн. Жишээ болгож нэг гаралтыг харцгаая:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -978,7 +978,7 @@ man:top[1] нь энэ харуулалтыг хоёр секунд тутам
. Илгээх процессийн процесс ID дугаарыг мэдэх хэрэгтэй. Ингэхийн тулд man:pgrep[1] тушаалыг ашиглана.
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -988,7 +988,7 @@ man:top[1] нь энэ харуулалтыг хоёр секунд тутам
+
. man:kill[1] тушаалыг хэрэглэж дохио илгээнэ. man:inetd[8] нь `root` хэрэглэгчээр гүйцэтгэгдэж байгаа болохоор, та эхлээд man:su[1] тушаалыг ашиглан `root` хэрэглэгч болох хэрэгтэй.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1068,14 +1068,14 @@ FreeBSD дээр маш олон ажил тушаал бичиж оруулда
Бүрхүүл болгонд орчны хувьсагчаа өөр өөр тохируулдаг. Жишээлбэл, C-маягийн бүрхүүл `tcsh` болон `csh` дээр, та `setenv` тушаалыг ашиглаж орчны хувьсагчийг зааж өгдөг. Bourne төрлийн бүрхүүлүүд болох `sh` болон `bash` дээр, та `export` тушаалыг ашиглаж орчны хувьсагчийг зааж өгнө. Жишээ нь, орчны хувьсагч `EDITOR`-г өөрчлөх юм уу зааж өгөхийн тулд `csh` юм уу эсвэл `tcsh` бүрхүүл дээр `EDITOR` хувьсагчид [.filename]#/usr/local/bin/emacs# утгыг өгөхийн тулд:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
Bourne бүрхүүлүүд дээр:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1093,7 +1093,7 @@ Bourne бүрхүүлүүд дээр:
Та мөн `chsh` тушаалыг `-s` сонголттой хэрэглэж болох бөгөөд ингэсэн үед нэмэлт засварлагч нээлгүйгээр шууд бүрхүүлийг өөрчилдөг. Жишээ нь та өөрийнхөө бүрхүүлийг `bash` бүрхүүлээр солихыг хүсвэл дараа тушаалыг өгөх болно:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1104,7 +1104,7 @@ Bourne бүрхүүлүүд дээр:
Жишээ нь та `bash` бүрхүүлийг гар аргаар суулгаад [.filename]#/usr/local/bin# байршилд байрлуулсан бол дараах тушаалыг өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1181,14 +1181,14 @@ ELF хэлбэр нь [.filename]#a.out# хэлбэрийг бодвол илү
Ихэнх дэлгэрэнгүй мэдээллүүд нь FreeBSD дээр гарын авлага хэлбэрээр оршиж байдаг. Систем дээр ажиллаж байгаа бараг бүх програмууд нь ажиллах болон авдаг шинж чанараа тодорхойлсон товч заавар буюу гарын авлагатай хамт ирдэг. Тийм гарын авлагыг `man` тушаалаар харна. `man` тушаалын хэрэглээ нь тун хялбар:
-[source,bash]
+[source,shell]
....
% man тушаал
....
`тушаал` нь судалж уншихыг хүссэн тушаалын нэр байх ёстой. Жишээлбэл `ls` тушаалын тухай мэдээлэл харахыг хүсвэл:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1207,7 +1207,7 @@ ELF хэлбэр нь [.filename]#a.out# хэлбэрийг бодвол илү
Зарим тохиолдолд гарын авлагын зарим бүлэг нь саяны хуваасан хэсэгт бүрд ижил байдаг. Жишээлбэл `chmod` тушаалыг хэрэглэгч нэг янзаар хэрэглэж байхад систем бас `chmod()` тушаалыг өөр зорилгоор хэрэглэдэг. Энэ тохиолдолд та системд аль сэдвээ сонгож байгаагаа ойлгуулахын тулд харгалзах дугаарыг нь өгөх ёстой:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1216,7 +1216,7 @@ ELF хэлбэр нь [.filename]#a.out# хэлбэрийг бодвол илү
Хэрэв та тушаалынхаа нэрийг мэдэж байвал энэ аргаар маш амархан хэрэглэх зааврыг уншиж чадахаар боллоо. Гэтэл та тушаалынхаа нэрийг мэдэхгүй тохиолдолд яах вэ? Энэ үед та `man` тушаалд тухайн хэрэгтэй тушаалын зааварт хайх түлхүүр үгийг `-k` сонголт ашиглан зааж өгч болдог. :
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1225,7 +1225,7 @@ ELF хэлбэр нь [.filename]#a.out# хэлбэрийг бодвол илү
За тэгэхээр, таны [.filename]#/usr/bin# санд маш их олон тушаалууд байгааг та мэддэг мөртлөө ямар үйлдэл хийдгийг нь сайн мэдэхгүй тохиолдолд яах вэ? Хамгийн амархан арга бол:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1233,7 +1233,7 @@ ELF хэлбэр нь [.filename]#a.out# хэлбэрийг бодвол илү
эсвэл
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1248,7 +1248,7 @@ FreeBSD нь Free Software Foundation (FSF) буюу Чөлөөт Програм
man:info[1] тушаалыг хэрэглэхийн тулд ердөө:
-[source,bash]
+[source,shell]
....
% info тушаал
....
diff --git a/documentation/content/mn/books/handbook/boot/_index.adoc b/documentation/content/mn/books/handbook/boot/_index.adoc
index 7fa29bbdc2..1d4f992b66 100644
--- a/documentation/content/mn/books/handbook/boot/_index.adoc
+++ b/documentation/content/mn/books/handbook/boot/_index.adoc
@@ -97,7 +97,7 @@ MBR эсвэл ачаалагч менежер дэх код нь заримда
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -109,7 +109,7 @@ Default: F2
Бусад үйлдлийн системүүд ялангуяа Windows(R) нь FreeBSD-ийн дараа суусан бол байгаа MBR-ийг өөрийнхөөрөө дарж бичдэг. Хэрэв энэ тохиолдвол эсвэл та байгаа MBR-аа FreeBSD-ийн MBR-аар солихыг хүсвэл дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -146,7 +146,7 @@ label=FreeBSD
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -157,7 +157,7 @@ boot:
Суулгасан [.filename]#boot1# болон [.filename]#boot2# файлуудыг солиход man:bsdlabel[8]-ийг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -237,13 +237,13 @@ unload::
* өөрийн ердийн цөмийг ганц-хэрэглэгчийн горимд ачаалахдаа:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Ердийн цөм болон модулиудыг буулган болиулж дараа нь хуучин эсвэл өөр цөмийг дуудахдаа:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -255,7 +255,7 @@ load kernel.old
====
Ердийн модулиудыг өөр цөмийн хамт дуудахдаа доор дурдсаныг ашигла:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -266,7 +266,7 @@ boot-conf
* Цөмийн автомат тохиргооны скриптийг дуудахдаа:
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -388,14 +388,14 @@ CDROM-с ачаалах.
[.filename]#/boot/device.hints# файлын синтакс нь мөр бүрт нэг хувьсагч байх бөгөөд чагт "#"-г тайлбар тэмдэглэгчээр ашигладаг. Мөрүүдийг дараах байдлаар бүтээдэг:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
3 дахь шатны ачаалагч дуудагчийн синтакс нь:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/mn/books/handbook/bsdinstall/_index.adoc b/documentation/content/mn/books/handbook/bsdinstall/_index.adoc
index 5cc289ebcd..59ec2705e8 100644
--- a/documentation/content/mn/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/mn/books/handbook/bsdinstall/_index.adoc
@@ -246,7 +246,7 @@ FreeBSD 8._X_ болон өмнөх хувилбаруудын хувьд өөр
+
[.filename]#.img# файл нь ердийн файл _биш_ юм. Энэ нь санах ойн дискний бүрэн гүйцэд тогтцын _дүрс_ юм. Үүнийг ердийн файл бичдэг шигээр бичиж _болохгүй_, харин man:dd[1] ашиглан бичих ёстой юм:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -314,7 +314,7 @@ commit your changes?
+
. FreeBSD ачаалж эхэлнэ. Хэрэв та CDROM-с ачаалж байгаа бол та доорхтой адилыг харах болно (хувилбарын мэдээллийг оруулаагүй болно):
+
-[source,bash]
+[source,shell]
....
Booting from CD-ROM...
645MB medium detected
@@ -352,7 +352,7 @@ Either wait ten seconds, or press kbd:[Enter].
Ихэнх машин дээр ачаалах үед kbd:[C] дарж CD-с ачаална. Үгүй бол kbd:[Command+Option+O+F], юм уу эсвэл kbd:[Windows+Alt+O+F] товчлууруудыг Apple(R) биш гар дээр дарж хийнэ. `0 >` гарч ирэхэд доорхийг бичнэ.
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -365,7 +365,7 @@ boot cd:,\ppc\loader cd:0
Ингэхийн тулд системээ дахин эхлүүлээд ачаалах зурвас гарч иртэл хүлээнэ. Загвараас хамаарах бөгөөд доорхтой төстэй байна:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -375,7 +375,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Энэ үед таны систем дискнээс ачаалахаар завдах бол PROM руу орохын тулд та kbd:[L1+A] эсвэл kbd:[Stop+A] дарах юм уу эсвэл сериал консолоор `BREAK` илгээх хэрэгтэй. Иймэрхүү харагдах болно:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -398,7 +398,7 @@ ok {0} <.>
[[bsdinstall-dev-probe]]
.Ердийн төхөөрөмж шалгасан үр дүн
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1137,7 +1137,7 @@ FreeBSD ачаалах үед олон мэдээллийн чанартай з
Ачаалах үеийн зурвасууд (хувилбарын мэдээллийг орхисон байгаа):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1340,7 +1340,7 @@ PC архитектурын төрөл бүрийн хязгаарлалтууд
FreeBSD нь системийн тохиргоонд туслахын тулд i386, amd64, ба ia64 тавцангууд дээр системийн ACPI үйлчилгээг хэрэв илэрсэн бол ихээхэн ашигладаг. Харамсалтай нь ACPI драйвер болон системийн эх хавтан дотор, BIOS-н програм дээр зарим нэг алдаа байсаар байдаг. ACPI-г ачаалагч дуудагчийн гурав дахь шатан дээр `hint.acpi.0.disabled` хувьсагчийг зааж өгөн хааж өгч болно:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/mn/books/handbook/config/_index.adoc b/documentation/content/mn/books/handbook/config/_index.adoc
index ac7c302096..cacb1c63a1 100644
--- a/documentation/content/mn/books/handbook/config/_index.adoc
+++ b/documentation/content/mn/books/handbook/config/_index.adoc
@@ -275,7 +275,7 @@ HOME=/var/log
Хэрэглэгчийн бичсэн шинэ [.filename]#crontab# файлыг суулгахын тулд эхлээд өөрийн дуртай засварлагчийг ашиглаад зөв хэлбэршилттэй файл үүсгээд дараа нь `crontab` хэрэгслийг ашигла. Хамгийн их ашиглагддаг тушаал бол:
-[source,bash]
+[source,shell]
....
% crontab crontab-file
....
@@ -293,7 +293,7 @@ HOME=/var/log
2002 онд FreeBSD системийг эхлүүлэхэд зориулж NetBSD-ийн [.filename]#rc.d# системийг оруулсан. Хэрэглэгчид [.filename]#/etc/rc.d# сан доторх файлуудыг анзаарах хэрэгтэй. Эдгээр файлуудын ихэнх нь `start`, `stop`, болон `restart` тохируулгуудаар хянагддаг үндсэн үйлчилгээнүүд байдаг. Жишээ нь man:sshd[8] нь дараах тушаалаар дахин эхлэж болно:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -309,14 +309,14 @@ natd_enable="YES"
[.filename]#rc.d# систем нь үндсэндээ системийн эхлэх/унтрах үеэр үйлчилгээнүүдийг эхлүүлэх/зогсоох зорилготой бөгөөд стандарт `start`, `stop` болон `restart` тохируулгууд нь зөвхөн [.filename]#/etc/rc.conf#-ийн харгалзах хувьсагчууд заагдсан үед өөрийн үйлдлийг гүйцэтгэдэг. Жишээ нь дээр дурдсан `sshd restart` тушаал нь [.filename]#/etc/rc.conf#-д `sshd_enable` хувьсагч `YES` гэсэн тохиолдолд зөвхөн ажиллана. [.filename]#/etc/rc.conf#-д байгаа тохируулгаас үл хамааран үйлчилгээг `start`, `stop` эсвэл `restart` хийхийн тулд тушаалууд "one" угтвартай байх шаардлагатай. Жишээ нь `sshd`-г [.filename]#/etc/rc.conf# дахь тохиргооноос үл хамааран дахин эхлүүлэхдээ дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
Тохирох [.filename]#rc.d# скриптийг `rcvar` тохируулгатай ажиллуулж [.filename]#/etc/rc.conf#-д үйлчилгээ нээгдсэн эсэхийг амархан шалгадаг. Тиймээс администратор `sshd`-г [.filename]#/etc/rc.conf#-д нээгдсэн эсэхийг дараах тушаалыг ажиллуулж шалгаж болно:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -330,7 +330,7 @@ $sshd_enable=YES
Үйлчилгээг ажиллах байгаа эсэхийг шалгах `status` тохируулга байдаг. Жишээ нь `sshd` эхэлсэн эсэхийг шалгахдаа:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -340,7 +340,7 @@ sshd is running as pid 433.
[.filename]#rc.d# систем нь зөвхөн сүлжээний үйлчилгээнд ашиглагдаад зогсохгүй мөн системийн эхлүүлэлтэд бас ихээхэн хувь нэмэр оруулдаг. Жишээ нь [.filename]#bgfsck# файлыг авч үзье. Энэ скрипт ажиллахад дараах мэдээллийг хэвлэж гаргана:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -375,7 +375,7 @@ Starting background file system checks in 60 seconds.
Хэрэв та ердийн карттай бол ихэнхдээ драйверийг хичээнгүйлэн хайх шаардлагагүй юм. Ердийн сүлжээний картуудад зориулсан драйверууд нь [.filename]#GENERIC# цөмд байдаг, тэгэхээр таны карт ачаалах явцад иймэрхүү харагдах ёстой:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -419,21 +419,21 @@ NDISulator ашиглахын тулд 3 зүйл хэрэгтэй:
Дараагийн алхамд драйверийн хоёртын файлыг цөмийн ачаалж болох модуль болгон хөрвүүлнэ. `root` эрхээр man:ndisgen[8]-г хэрэглэнэ:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
man:ndisgen[8] хэрэгсэл нь интерактив бөгөөд шаардлагатай нэмэлт мэдээллийг асуудаг. Одоо байгаа санд цөмийн шинэ модуль үүсгэнэ. man:kldload[8] ашиглан шинэ модулийг ачаална:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
Үүсгэгдсэн цөмийн модулиас гадна та [.filename]#ndis.ko# болон [.filename]#if_ndis.ko# модулиудыг ачаалах хэрэгтэй. Энэ нь таныг man:ndis[4]-ээс хамаарсан дурын модулийг ачаалах үед автоматаар хийгдэх ёстой. Хэрэв та тэдгээрийг гараар ачаалахыг хүсвэл дараах тушаалыг ашиглаарай:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -443,7 +443,7 @@ man:ndisgen[8] хэрэгсэл нь интерактив бөгөөд шаар
Одоо man:dmesg[8]-ийг шалгаж ачаалахад алдаа байгаа эсэхийг үзэх хэрэгтэй. Бүгд сайн болж өнгөрсөн бол та дараах үр дүнг харах ёстой:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -467,7 +467,7 @@ W32DRIVER_SYS_load="YES"
Таны системийн сүлжээний интерфэйсүүдэд зориулсан тохиргоог харуулахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -512,7 +512,7 @@ FreeBSD нь драйверийн нэр дээр цөмийн ачаалах я
Хэрэв man:ifconfig[8]-ийн үр дүн дараах маягтай төстэй байвал:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -543,7 +543,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
Хэрэв энэ машинаар Интернэтэд холболт хийхээр төлөвлөсөн бол та гараараа анхдагч гарц болон нэрийн серверийг бас тохируулж өгөх ёстой:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -555,7 +555,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
[.filename]#/etc/rc.conf#-д хэрэгцээтэй өөрчлөлтүүдийг хийснийхээ дараа та системээ дахин ачаалах шаардлагатай. Ингэснээр интерфэйс(үүд)эд хийгдэх өөрчлөлт(үүд)ийг зөвшөөрөх бөгөөд ямар нэг тохиргооны алдаагүйгээр систем ачаалж байгаа эсэхийг шалгадаг. Мөн өөрөөр та сүлжээний системээ дахин дуудаж болно:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif restart
....
@@ -564,7 +564,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
Хэрэв анхдагч гарцыг [.filename]#/etc/rc.conf# файлд зааж өгсөн бол энэ тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing restart
....
@@ -579,7 +579,7 @@ Ethernet карт зөв тохируулагдсаныг шалгахдаа т
Эхлээд локал интерфэйсийг тест хийнэ:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -596,7 +596,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Одоо бид LAN дахь өөр машин уруу ping хийх хэрэгтэй:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -948,14 +948,14 @@ man:sysctl[8] нь голдоо хоёр үүргийг гүйцэтгэдэг:
Уншигдаж болох бүх хувьсагчуудыг харахдаа:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Тухайн хувьсагчийг уншихдаа, жишээ нь, `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -963,7 +963,7 @@ kern.maxproc: 1044
Тухайн хувьсагчийг заахдаа хялбар _хувьсагч=утга_ синтаксийг ашиглаарай:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -980,7 +980,7 @@ sysctl хувьсагчуудын тохиргоонууд нь ихэвчлэн
Жишээ нь зарим зөөврийн компьютерийн загваруудад man:cardbus[4] төхөөрөмж нь санах ойн хүрээг шалгадаггүй бөгөөд доор дурдсантай төстэй алдаанууд гарган амжилтгүй болдог:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1028,7 +1028,7 @@ FreeBSD 4.3-д IDE бичих кэш хийлтийг хаасан байдаг.
man:tunefs[8] програм файлын системийг нарийн тааруулахад ашиглагдаж болно. Энэ програм нь олон янзын тохируулгуудтай гэхдээ одоохондоо бид зөвхөн Зөөлөн Шинэчлэлтүүдийг идэвхжүүлэх ба хаах дээр анхаарах бөгөөд үүнийг дараах аргаар хийнэ:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1114,7 +1114,7 @@ vnode нь файл эсвэл сангийн дотоод дүрслэл юм.
Тухайн үед ашиглагдаж байгаа vnode-уудыг үзэхдээ:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1122,7 +1122,7 @@ vfs.numvnodes: 91349
Хамгийн их vnode-уудыг үзэхдээ:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1144,7 +1144,7 @@ swap-т зориулж шинэ хатуу диск нэмэх нь байгаа
man:swapon[8] ашиглан swap хуваалтыг системийг нэмж өгнө. Жишээ нь:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1187,14 +1187,14 @@ device md
Өөрийн хэрэгцээнд зориулж цөм бүтээх талаар crossref:kernelconfig[kernelconfig,FreeBSD цөмийг тохируулах нь] бүлгээс үзнэ үү.
. Swap файл ([.filename]#/usr/swap0#) үүсгэнэ:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
. Зөв зөвшөөрлүүдийг ([.filename]#/usr/swap0#-д) нээж тохируулна:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1208,7 +1208,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
. Машиныг дахин эхлүүлнэ эсвэл swap файлыг шууд идэвхжүүлэхийн тулд дараах тушаалыг ажиллуулна:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1250,7 +1250,7 @@ ACPI болон APM нь цуг байж болохгүй бөгөөд сала
ACPI нь man:acpiconf[8]-ийн `-s` туг болон `1-5` тохируулгын тусламжтайгаар системийг унтах горим шилжүүлэхэд хэрэглэгдэж болно. Ихэнх хэрэглэгчдэд зөвхөн `1` эсвэл `3` (RAM руу түр зогсоох) хэрэгтэй байдаг. `5` тохируулга нь дараах тушаалтай нэг ёсондоо адилыг гүйцэтгэнэ:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1280,7 +1280,7 @@ ACPI нь төхөөрөмжүүдийг илрүүлэх, тэжээлийн а
* `sysctl hw.acpi`-ийн гаралт. Энэ нь таны систем ямар ямар боломжуудыг санал болгож байгааг мэдэх бас нэг сайн арга юм.
* Таны _ACPI Эх Хэл_ (ASL) байх URL хаяг. ASL нь маш том байж болох учир шууд _битгий_ жагсаалт уруу илгээгээрэй. Өөрийн ASL-ийн хуулбарыг энэ тушаалыг ашиглаж үүсгээрэй:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
@@ -1314,7 +1314,7 @@ ACPI нь RAM уруу түр зогсоох `S1`-`S3` гэсэн гурван
Түр зогсоолттой холбоотой зүйлүүдийг `sysctl hw.acpi` тушаалаар шалгаж эхлээрэй. Энд Thinkpad-тай холбоотой үр дүнгүүд байна:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1326,7 +1326,7 @@ hw.acpi.s4bios: 0
Түр зогсоолт/үргэлжлүүлэлттэй холбоотой түгээмэл асуудал бол олон төхөөрөмжийн драйверууд өөрсдийн эхлүүлэх програм, регистрүүд болон төхөөрөмжийн санах ойг зөв хадгалж, сэргээж, эсвэл дахин эхлүүлж чаддаггүй. Асуудлыг эхний удаа дибаг хийхийг оролдохдоо дараах тушаалыг ажиллуулж үзээрэй:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1370,7 +1370,7 @@ hw.acpi.s4bios: 0
Хамгийн нийтлэг асуудал бол BIOS үйлдвэрлэгчдийн гаргасан буруу (эсвэл алдаатай!) байткод юм. Энэ нь ихэвчлэн дараах шиг цөмийн консол мэдээллүүдээр ил тод болдог:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1380,7 +1380,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
Таны хийж болох хамгийн хялбар анхны шалгалт нь алдаануудыг шалгахын тулд өөрийн ASL-ийг хөрвүүлэх явдал юм. Анхааруулгуудыг ихэвчлэн орхиж болох боловч алдаанууд нь ACPI-г зөв ажиллуулахад гол төлөв саад болдог хорхойнууд байдаг. Өөрийн ASL-ийг дахин хөрвүүлэхдээ дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1404,7 +1404,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
[.filename]#your.asl#-ийг өөрчилсний дараа үүнийг та хөрвүүлэхдээ:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1428,7 +1428,7 @@ ACPI драйвер нь маш уян хатан дибаг хийх болом
Дибаг гаралт анхдагчаар идэвхжүүлэгдээгүй байдаг. Идэвхтэй болгохын тулд ACPI хэрэв цөмд хөрвүүлэгдсэн бол `options ACPI_DEBUG` мөрийг өөрийн цөмийн тохиргооны файлд нэмэх хэрэгтэй. Нийтэд нь идэвхтэй болгохын тулд [.filename]#/etc/make.conf#-д `ACPI_DEBUG=1` мөрийг нэмж болно. Хэрэв энэ нь модуль бол та өөрийн [.filename]#acpi.ko# модулийг дараах маягаар дахин хөрвүүлж болно:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/mn/books/handbook/cutting-edge/_index.adoc b/documentation/content/mn/books/handbook/cutting-edge/_index.adoc
index f27b0c92d2..d2033dd800 100644
--- a/documentation/content/mn/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/mn/books/handbook/cutting-edge/_index.adoc
@@ -151,7 +151,7 @@ MergeChanges /etc/ /var/named/etc/
Аюулгүй байдлын засварууд нь алсын машин дээр хадгалагддаг бөгөөд дараах тушаал ашиглан татан авч суулгаж болно:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -168,7 +168,7 @@ MergeChanges /etc/ /var/named/etc/
Хэрэв ямар нэг зүйл буруу болбол `freebsd-update` нь дараах тушаалаар сүүлийн өөрчлөлтүүдийг буцаах чадвартай байдаг:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -194,7 +194,7 @@ MergeChanges /etc/ /var/named/etc/
Энэ процесс нь ихэнх гуравдагч талын прорамуудыг эвдэх хуучин обьект файлууд болон сангуудыг устгах болно. Бүх суулгагдсан портуудыг устгаж дахин суулгах эсвэл package:ports-mgmt/portupgrade[] хэрэгсэл ашиглан сүүлд нь шинэчлэхийг зөвлөдөг. Дараах тушаалыг ашиглан ихэнх хэрэглэгчид тест бүтээлтийг ажиллуулахыг хүснэ:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -206,7 +206,7 @@ MergeChanges /etc/ /var/named/etc/
* Хэрэв өөрчлөн тохируулсан цөм зөвхөн нэг удаа бүтээгдсэн бол [.filename]#/boot/kernel.old# дахь цөм нь [.filename]#GENERIC# цөм юм. Энэ санг [.filename]#/boot/GENERIC# гэж өөрчлөхөд л болно.
* Машинд физикээр хандах боломжтой гэж тооцвол [.filename]#GENERIC# цөмийн хуулбарыг CD-ROM зөөвөрлөгчөөс суулгаж болно. Өөрийн суулгац дискийг хийж дараах тушаалуудыг ашиглана:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -216,7 +216,7 @@ MergeChanges /etc/ /var/named/etc/
[.filename]#X.Y-RELEASE#-г өөрийн ашиглаж байгаа хувилбараар солих хэрэгтэй. [.filename]#GENERIC# цөм анхдагчаар [.filename]#/boot/GENERIC#-д суулгагдах болно.
* Дээр дурдсан бүгдийг хийх боломжгүй бол [.filename]#GENERIC# цөмийг эхээс нь дахин бүтээж суулгаж болох юм:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
@@ -230,14 +230,14 @@ MergeChanges /etc/ /var/named/etc/
Том ба бага хувилбарын шинэчлэлтүүдийг `freebsd-update` тушаалд хувилбарын дугаарыг өгч гүйцэтгэж болно, жишээ нь дараах тушаал FreeBSD 8.1 руу шинэчилнэ:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 8.1-RELEASE upgrade
....
Тушаал хүлээн авсны дараа `freebsd-update` системийг шинэчлэхэд шаардлагатай мэдээллийг цуглуулахын тулд тохиргооны файл болон одоогийн системийг шалгана. Ямар бүрэлдэхүүн хэсгүүд илрүүлэгдсэн болон ямар бүрэлдэхүүн хэсгүүд илрүүлэгдээгүй гэдгийг дэлгэц дээр үзүүлнэ. Жишээ нь:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update1.FreeBSD.org... done.
@@ -261,7 +261,7 @@ Does this look reasonable (y/n)? y
Өөрчлөн тохируулсан цөмийг ашиглаж байх үед дээрх алхам дараахтай төстэй анхааруулгыг харуулах болно:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@@ -280,14 +280,14 @@ before running "/usr/sbin/freebsd-update install"
Энэ процесс дууссаны дараа шинэчлэлтийг дараах тушаалыг ашиглан диск рүү хийж болно.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
Цөм болон цөмийн модулиудад эхлээд засвар хийнэ. Энэ үед машиныг дахих ачаалах ёстой. Хэрэв систем өөрчлөн тохируулсан цөмөөр ажиллаж байгаа бол цөмийг [.filename]#/boot/GENERIC# (шинэчлэгдсэн) цөмөөр дараа нь ачаалахаар болгохын тулд man:nextboot[8]-ийг ашиглана:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -300,14 +300,14 @@ before running "/usr/sbin/freebsd-update install"
Одоо машин шинэчлэгдсэн цөмөөр ачаалагдах ёстой:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Систем буцаж ассаны дараа `freebsd-update`-г дахин эхлүүлэх хэрэгтэй. Процессийн төлөв хадгалагдсан болохоор `freebsd-update` эхнээсээ эхлэхгүй бөгөөд бүх хуучин хуваалцсан сангууд болон обьект файлуудыг устгах болно. Энэ шатыг үргэлжлүүлэхийн тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -319,7 +319,7 @@ before running "/usr/sbin/freebsd-update install"
Бүх гуравдагч талын програм хангамжийг дахин бүтээж дахин суулгах хэрэгтэй. Суулгагдсан програм хангамж нь шинэчлэлтийн процессийн явцад устгагдсан сангуудаас хамаарч болох учраас энэ нь шаардлагатай юм. package:ports-mgmt/portupgrade[] тушаалыг үүнийг автоматжуулахад ашиглаж болох юм. Энэ процессийг эхлүүлэхийн тулд дараах тушаалыг хэрэглэж болно:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -330,7 +330,7 @@ before running "/usr/sbin/freebsd-update install"
Үүнийг дууссаны дараа шинэчлэлтийн процессийг `freebsd-update`-ийг сүүлийн удаа дуудаж төгсгөнө. Шинэчлэлтийн процессийн сул байгаа бүх зүйлсийг гүйцээхийн тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -344,7 +344,7 @@ before running "/usr/sbin/freebsd-update install"
`freebsd-update` хэрэгслийг FreeBSD-ийн суулгагдсан хувилбарын төлвийг байгаа зөв хуулбарын эсрэг тест хийхэд хэрэглэж болно. Энэ сонголт нь системийн хэрэгслүүд сангууд болон тохиргооны файлуудын одоогийн хувилбаруудыг шалгадаг. Харьцуулалтыг эхлүүлэхийн тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -359,7 +359,7 @@ before running "/usr/sbin/freebsd-update install"
Эдгээр мөрүүд нь бас хэтэрхий урт боловч гаралтын хэлбэрийг хялбараар задлан ялгаж болно. Жишээ нь хувилбарт байгаагаас ондоо бүх файлуудын жагсаалтыг авахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -377,7 +377,7 @@ before running "/usr/sbin/freebsd-update install"
FreeBSD-ийн үндсэн систем портын цуглуулгыг бас шинэчилдэг man:portsnap[8] хэрэгслийг агуулдаг. Ажиллуулсны дараа энэ нь алсын сайт руу холбогдож нууц түлхүүрийг шалгаж портын цуглуулгын шинэ хуулбарыг татан авдаг. Түлхүүр нь бүх татаж авсан файлууд татагдаж байхдаа өөрчлөгдөөгүй эсэхийг хянан бүрэн бүтэн байдлыг шалгахад ашиглагддаг. Хамгийн сүүлийн үеийн портын цуглуулгыг татаж авахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 9 mirrors found.
@@ -396,7 +396,7 @@ Fetching 133 new ports or files... done.
man:portsnap[8] нь `fetch` үйлдлийг хийж дууссаны дараа локал систем дээр байгаа портын цуглуулга болон дараа дараагийн засваруудыг шалгалтад дамжуулна. `portsnap`-ийг эхний удаа ажиллуулахдаа `extract`-г ашиглан татан авсан файлуудыг суулгаж болно:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -415,7 +415,7 @@ man:portsnap[8] нь `fetch` үйлдлийг хийж дууссаны дара
Аль хэдийн суулгасан портын цуглуулгыг шинэчлэхдээ `portsnap update` тушаалыг ашиглах ёстой:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -424,7 +424,7 @@ man:portsnap[8] нь `fetch` үйлдлийг хийж дууссаны дара
`fetch` болон `extract` эсвэл `update` үйлдлүүдийг доор харуулсан шиг дараалуулан ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -465,7 +465,7 @@ Subversion нь package:textproc/docproj[] порттой цуг суудаг.
Subversion нь баримтын эхийн цэвэр хуулбарыг татан авч чаддаг.
-[source,bash]
+[source,shell]
....
# svn checkout svn://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -474,14 +474,14 @@ Subversion нь баримтын эхийн цэвэр хуулбарыг тат
Баримтын эхийн дараа дараагийн шинэчлэлтүүдийг доорх тушаалыг ашиглан татан авч болно.
-[source,bash]
+[source,shell]
....
# svn update /usr/doc
....
Эхийг татан авсныхаа дараа баримтыг шинэчлэх өөр нэг арга нь [.filename]#/usr/doc# сангийн [.filename]#Makefile#-аар дэмжигдсэн байдаг бөгөөд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update
@@ -514,7 +514,7 @@ FreeBSD-ийн баримтжуулалт бүтээх системийн дэм
`DOC_LANG` makefile-ийн тохиргоонд заагдсан бүх хэлний бүрэн шинэчлэлтийг дараахийг бичин хийж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -522,7 +522,7 @@ FreeBSD-ийн баримтжуулалт бүтээх системийн дэм
Хэрэв зөвхөн тусгай хэлний шинэчлэлт хэрэгтэй бол [.filename]#/usr/doc#-ийн тухайн хэлний тусгай дэд санд man:make[1]-ийг ажиллуулж болно, жишээ нь:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make update install clean
@@ -530,7 +530,7 @@ FreeBSD-ийн баримтжуулалт бүтээх системийн дэм
Суулгах гаралтын хэлбэржүүлэлтийг `FORMATS` бүтээлтийн хувьсагчийг зааж өгөн хийж өгч болно, жишээ нь:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -564,7 +564,7 @@ FreeBSD-ийн баримтжуулалтыг шинэчлэх эдгээр хо
Баримтжуулалтын портыг эхээс суулгахын тулд дараах тушаалуудыг ажиллуулна (`root` эрхээр):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -593,7 +593,7 @@ Adobe(R) Acrobat Reader(R), Ghostscript эсвэл бусад PDF уншигчд
Энд Унгар баримтжуулалтыг Хөрвөх Баримтын Хэлбэрээр (PDF) суулгахын тулд дээр дурдсан хувьсагчуудыг хэрхэн ашиглахыг харуулсан жишээг үзүүлэв:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -613,7 +613,7 @@ Adobe(R) Acrobat Reader(R), Ghostscript эсвэл бусад PDF уншигчд
Жишээ нь дараах тушаал Унгар баримтжуулалтын хамгийн сүүлийн урьдчилан бүтээсэн багцыг суулгах болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r hu-freebsd-doc
....
@@ -628,7 +628,7 @@ Adobe(R) Acrobat Reader(R), Ghostscript эсвэл бусад PDF уншигчд
Өмнө нь суулгасан баримтжуулалтын портыг шинэчлэхийн тулд портууд шинэчлэх аль ч хэрэгсэл байхад хангалттай. Жишээ нь дараах тушаал суулгасан Унгар баримтжуулалтыг package:ports-mgmt/portupgrade[] хэрэгслийн тусламжтайгаар зөвхөн багцуудыг ашиглан шинэчилнэ:
-[source,bash]
+[source,shell]
....
# portupgrade -PP hu-freebsd-doc
....
@@ -856,7 +856,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
Дүгнэхэд FreeBSD-г эхээс шинэчлэхэд одоогоор зөвлөдөг арга бол:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -872,7 +872,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
`installkernel` амжилттай дууссаны дараа та ганц хэрэглэгчийн горим уруу ачаалах хэрэгтэй (өөрөөр хэлбэл `boot -s` тушаалыг дуудагч мөрөөс ашиглана). Дараа нь доор дурдсан тушаалуудыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# mount -u /
# mount -a -t ufs
@@ -927,7 +927,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
Хэрэв та ялангуяа хэтэрхий санаа зовж байгаа бол тухайн бүлэгт харьяалагдаж байгаа нэрийг нь өөрчилж байгаа эсвэл устгаж байгаа ямар файлууд байгааг өөрийн системээс шалгаарай:
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -944,7 +944,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
Супер хэрэглэгч болоод та доор дурдсаныг:
-[source,bash]
+[source,shell]
....
# shutdown now
....
@@ -953,7 +953,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
Өөр нэг арга нь системийг дахин ачаалаад ачаалалтын тушаал хүлээх мөрөн дээр "single user буюу ганц хэрэглэгч" тохируулгыг сонгоорой. Ингэхэд систем ганц хэрэглэгчийг ачаална. Бүрхүүлийн тушаал хүлээх мөрөнд та доор дурдсан тушаалуудыг ажиллуулах шаардлагатай:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -967,7 +967,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
====
Хэрэв таны CMOS цаг нь GMT биш локал хугацаагаар тохируулагдсан бол (хэрэв man:date[1] тушаалын гаралт зөв цаг болон бүсийг харуулахгүй бол энэ нь үнэн) та дараах тушаалыг бас ажиллуулах хэрэгтэй болж болох юм:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -984,7 +984,7 @@ man:config[8] болон man:make[1]-ийг ашигладаг хуучин ар
[.filename]#/usr/obj# доторх зарим файлуудад immutable буюу хувиршгүй туг тавигдсан (дэлгэрэнгүй мэдээллийг man:chflags[1]-с үзнэ үү ) байж болох бөгөөд түүнийг эхлээд арилгах хэрэгтэй.
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -1000,7 +1000,7 @@ man:make[1]-г ажиллуулахдаа гарах үр дүнг өөр фай
Үүнийг хамгийн амраар хийхийн тулд man:script[1] тушаалыг бүх гаралтыг хадгалах файлын нэрийг заасан параметрийн хамтаар ашиглана. Та үүнийг ертөнцийг дахин бүтээхээс өмнөхөн нэн даруй хийж дараа нь процесс дууссаны дараа `exit` гэж бичиж гарна.
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -1017,7 +1017,7 @@ Script done, …
Та [.filename]#/usr/src# сан дотор байх шаардлагатай:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -1028,7 +1028,7 @@ Script done, …
Таны бичих тушаалын мөрийн ерөнхий хэлбэр нь дараах байдлаар байна:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABLE target
....
@@ -1037,7 +1037,7 @@ Script done, …
`-D_VARIABLE_` тохируулга нь [.filename]#Makefile# уруу хувьсагч дамжуулж байна. [.filename]#Makefile#-ийн ажиллагаа эдгээр хувьсагчуудаар хянагдана. Эдгээр нь [.filename]#/etc/make.conf# дотор зааж өгсөн хувьсагчуудтай адил бөгөөд энэ нь тэдгээрийг тохируулах бас нэг өөр арга юм.
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE target
....
@@ -1057,7 +1057,7 @@ _target_ нь man:make[1]-д таны юу хийхийг хэлж өгдөг. [
Ихэнх тохиолдолд та man:make[1] уруу ямар ч параметр дамжуулах хэрэггүй бөгөөд тэгэхээр таны тушаал дараахтай ижил байж болно:
-[source,bash]
+[source,shell]
....
# make target
....
@@ -1074,7 +1074,7 @@ _target_ нь man:make[1]-д таны юу хийхийг хэлж өгдөг. [
Дараах тушаалыг ажиллуул
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -1083,7 +1083,7 @@ _target_ нь man:make[1]-д таны юу хийхийг хэлж өгдөг. [
Ердийн нэг CPU-тэй машин дээр та доор дурдсаныг ажиллуулж болох юм:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -1109,7 +1109,7 @@ FreeBSD дээр шинэ цөм бүтээхээсээ өмнө <<make-buildwor
====
Хэрэв та өөрчлөн тохируулсан цөмийг бүтээхийг хүсэж тохиргооны файлаа аль хэдийн үүсгэсэн бол доор дурдсантай адилаар `KERNCONF=MYKERNEL` гэж ашиглаарай:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
@@ -1132,7 +1132,7 @@ FreeBSD дээр шинэ цөм бүтээхээсээ өмнө <<make-buildwor
Доор дурдсаныг ажиллуулна
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -1144,14 +1144,14 @@ FreeBSD дээр шинэ цөм бүтээхээсээ өмнө <<make-buildwor
Жишээ нь хэрэв та доор дурдсаныг ажиллуулсан бол:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
хоёртын файлуудыг дараах тушаалаар суулгана:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -1198,7 +1198,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
====
Онолоор бол автоматаар энэ санд юу ч хүрдэггүй ч үүнд үргэлж итгэлтэй байх хэрэгтэй. Тэгэхээр өөрийн байгаа [.filename]#/etc# санг хаа нэг аюулгүй газар хуулах хэрэгтэй. Доорхтой адилаар:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -1208,7 +1208,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Та шинэ [.filename]#/etc# болон бусад файлуудыг суулгахын тулд хоосон сангууд бүтээх хэрэгтэй. [.filename]#/var/tmp/root# нь боломжийн сонголт болох бөгөөд энэ сангийн доор хэд хэдэн дэд сангууд бас шаардлагатай болно.
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -1217,7 +1217,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Энэ нь шаардлагатай сангийн бүтцийг бүтээж файлуудыг суулгадаг. [.filename]#/var/tmp/root# дотор үүсгэгдсэн олон дэд сангууд хоосон бөгөөд тэдгээрийг устгах шаардлагатай байдаг. Үүнийг хамгийн хялбараар хийхийн тулд:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2>/dev/null
@@ -1231,7 +1231,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Үүнийг хамгийн хялбар аргаар хийж хоёр файлыг харьцуулахын тулд man:diff[1] тушаалыг ашиглах явдал юм:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -1249,7 +1249,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
======
. Ертөнцийг жирийнээр бүтээ. [.filename]#/etc# болон бусад сангуудыг шинэчлэхийг хүсэхдээ тухайн цаг дээр тулгуурласан нэр бүхий санг өг. Хэрэв та үүнийг 1998 оны 2 сарын 14-нд хийж байгаа бол дараах байдлаар хийнэ:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -1263,7 +1263,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
. Та эхийн хамгийн сүүлийн хувилбарыг татан авч дахин бүтээхдээ 1-р алхмыг дага. Энэ нь танд шинэ сан өгөх бөгөөд [.filename]#/var/tmp/root-19980221# гэж нэрлэгдсэн байж болох юм (хэрэв та шинэчлэлтүүдийг хийхдээ долоо хоног хүлээсэн бол).
. Та одоо man:diff[1] ашиглан хоёр сангийн хооронд рекурсив diff үүсгэж долоо хоногийн хооронд хийгдсэн өөрчлөлтүүдийг харж болно:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1272,7 +1272,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Ихэнхдээ энэ нь [.filename]#/var/tmp/root-19980221/etc# болон [.filename]#/etc# хоёрын хоорондох өөрчлөлтүүдийг бодох юм бол харьцангуй бага өөрчлөлтүүд байдаг. Өөрчлөлтүүд нь арай бага болохоор тэдгээр өөрчлөлтүүдийг өөрийн [.filename]#/etc# сан уруу шилжүүлэх нь илүү хялбар байдаг.
. Та одоо хоёр [.filename]#/var/tmp/root-*# сангуудын аль хуучныг устгаж болно:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1282,7 +1282,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Та man:date[1]-г ашиглан сангийн нэрсийг автоматаар үүсгэж болно:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1294,7 +1294,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Та ерөнхийдөө ингээд хийгээд дуусч байна. Та бүх зүйл байх ёстой байрандаа байгаа эсэхийг шалгасныхаа дараа системийг дахин ачаалж болно. Энгийн man:shutdown[8] үүнийг хийх болно:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1305,7 +1305,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Хэрэв юмс шал буруугаар эргэвэл системийн тухайн хэсгийг дахин бүтээхэд амархан байдаг. Жишээ нь хэрэв та шинэчлэлтийн явцад эсвэл [.filename]#/etc#-г нийлүүлэх явцад санамсаргүйгээр [.filename]#/etc/magic# файлыг устгасан бол man:file[1] тушаал ажиллахаа больно. Ийм тохиолдолд дараах засварыг ажиллуулж болох юм:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1318,7 +1318,7 @@ man:mergemaster[8] системийн файлуудтай ажиллаж дуу
Үүнд хялбар хариулт байхгүй, учир нь өөрчлөлтийн цаад утга чанараас хамаарна. Жишээ нь хэрэв та CVSup-г дөнгөж ажиллуулахад дараах файлууд шинэчлэгдэж байгааг үзүүлж байгаа бол:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1357,7 +1357,7 @@ _Ерөнхийдөө_ (энэ нь хэцүү бас хурдан дүрэм б
Хэрэв та сүүлийн шатанд байгаа бөгөөд та үүнийг мэдэж байгаа бол (та хадгалж байгаа гаралтаас харсан болохоор) та дараах тушаалыг ажиллуулж (бараг л аюулгүйгээр) болно:
-[source,bash]
+[source,shell]
....
... fix the problem ...
# cd /usr/src
@@ -1368,7 +1368,7 @@ _Ерөнхийдөө_ (энэ нь хэцүү бас хурдан дүрэм б
Хэрэв та доорх мэдэгдлийг :
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1388,7 +1388,7 @@ Building everything..
* `-j__n__` тохируулгыг man:make[1]-д дамжуулж олон процессийг зэрэгцээгээр ажиллуул. Энэ нь танд ганц эсвэл олон процессортой машин аль нь ч байсан ялгаагүйгээр ихэвчлэн тусалдаг.
* [.filename]#/usr/src#-г агуулж байгаа файлын систем `noatime` тохируулгаар холболт хийгдэж (эсвэл салгагдаж) болно. Энэ нь файлын систем файл уруу хандах хандалтын хугацааг бүртгэхийг болиулдаг. Танд магадгүй энэ мэдээлэл бараг л хэрэггүй биз ээ.
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1409,7 +1409,7 @@ Building everything..
Хэрэв [.filename]#/usr/obj# нь энэ файлын систем дээрх цорын ганц зүйл бол энэ асуудал биш юм. Хэрэв танд уг файлын систем дээр өөр, үнэтэй өгөгдөл байгаа бол энэ тохируулгыг идэвхжүүлэхээсээ өмнө өөрийн нөөц чинь шинэ эсэхийг шалгаарай.
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1424,7 +1424,7 @@ Building everything..
Таны орчинд өмнөх бүтээлтүүдийн үеийн илүү үлдэгдлүүд байхгүйд үнэхээр итгэлтэй байх хэрэгтэй. Энэ нь их амархан юм.
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
@@ -1446,7 +1446,7 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Таныг <<canonical-build>>-д заасны дагуу явж байгаа гэж энд үзнэ. `make installworld` болон дараагийн `mergemaster` тушаал амжилттай хэрэгжсэний дараа дараах маягаар та хуучин файлууд болон сангуудыг шалгах ёстой:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make check-old
@@ -1454,7 +1454,7 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Хэрэв ямар нэг хуучин файл олдвол дараах тушаал ашиглан тэдгээрийг устгаж болно:
-[source,bash]
+[source,shell]
....
# make delete-old
....
@@ -1467,14 +1467,14 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Хуучин файл бүрийг устгахын өмнө асууж хариулах дэлгэц гарна. Та энэ дэлгэцийг өнгөрөөж систем эдгээр файлуудыг автоматаар устгахаар тохируулахын тулд `BATCH_DELETE_OLD_FILES` хувьсагчийг дараах байдлаар ашиглана:
-[source,bash]
+[source,shell]
....
# make -DBATCH_DELETE_OLD_FILES delete-old
....
Мөн энэ зорилгод хүрэхийн тулд доорхитой адилаар эдгээр тушаалд `yes` өгч хүрч болно:
-[source,bash]
+[source,shell]
....
# yes|make delete-old
....
@@ -1490,7 +1490,7 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Хуучин хуваалцсан сангууд нь шинэ сангуудтай зөрчилдөж болох бөгөөд доорх шиг алдаа өгч болно:
-[source,bash]
+[source,shell]
....
/usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5
/usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so, may conflict with librpcsvc.so.5
@@ -1498,7 +1498,7 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Эдгээр асуудлуудыг шийдэхийн тулд уг санг аль порт суулгасныг олно:
-[source,bash]
+[source,shell]
....
# pkg_info -W /usr/local/lib/libtiff.so
/usr/local/lib/libtiff.so was installed by package tiff-3.9.4
@@ -1508,7 +1508,7 @@ FreeBSD хөгжүүлэлтийн явцад файлууд болон тэдг
Дараа нь уг портыг deinstall хийгээд дахин бүтээж суулгах хэрэгтэй. Энэ явцыг автоматжуулахын тулд package:ports-mgmt/portmaster[] болон package:ports-mgmt/portupgrade[] хэрэгслийг ашиглаж болно. Бүх портуудыг дахин бүтээсэн гэдэгтээ итгэлтэй болсны дараа хуучин сангуудыг ашиглах хэрэггүй бөгөөд тэдгээрийг дараах тушаал ашиглан устгаж болно:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
diff --git a/documentation/content/mn/books/handbook/desktop/_index.adoc b/documentation/content/mn/books/handbook/desktop/_index.adoc
index 6cb294f22b..40e8557315 100644
--- a/documentation/content/mn/books/handbook/desktop/_index.adoc
+++ b/documentation/content/mn/books/handbook/desktop/_index.adoc
@@ -116,21 +116,21 @@ Firefox нь Mozilla-ийн код дээр суурилсан дараагий
Доор дурдсаныг бичин багцыг суулгана:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Энэ нь Firefox-н хамгийн сүүлийн хувилбарыг суулгах бөгөөд та хэрэв Firefox-н Extended Support Release (ESR) хувилбарыг ашиглахыг хүсэж байвал доорхийг ажиллуулаарай:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox-esr
....
Эх кодоос эмхэтгэхийг та илүүд үзэж байгаа бол Портын цуглуулгыг бас ашиглаж болох юм:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -148,7 +148,7 @@ Firefox ESR-ийн хувьд өмнөх тушаал дээрх `firefox`-ий
OpenJDK 6-г Портын цуглуулгаас дараах тушаалаар суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -156,7 +156,7 @@ OpenJDK 6-г Портын цуглуулгаас дараах тушаалаар
Дараа нь package:java/icedtea-web[] портыг суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -168,7 +168,7 @@ OpenJDK 6-г Портын цуглуулгаас дараах тушаалаар
Хэрэв хөтөч залгаасыг олохгүй байгаа бол хэрэглэгч бүр дараах тушаалыг ажиллуулж хөтчийг дахин эхлүүлэх шаардлагатай:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/lib/IcedTeaPlugin.so \
$HOME/.mozilla/plugins/
@@ -197,7 +197,7 @@ package:www/nspluginwrapper[] порт суулгана. Уг порт нь pack
+
Энэ хувилбар нь дараах холбоосыг үүсгэхийг шаарддаг:
+
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -208,7 +208,7 @@ package:www/nspluginwrapper[] порт суулгана. Уг порт нь pack
Таны ажиллуулж байгаа FreeBSD-ийн хувилбарт таарсан зөв Flash(TM) порт суулгагдсаны дараа залгаасыг хэрэглэгч бүрийн хувьд `nspluginwrapper` тушаал ашиглан суулгах шаардлагатай:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
@@ -222,14 +222,14 @@ Swfdec нь Flash(TM) анимацыг задалж амилуулах сан ю
Хэрэв та бүтээж чадахгүй эсвэл хүсэхгүй байгаа бол сүлжээнээс багцыг суулгаж болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r swfdec-plugin
....
Хэрэв багц байхгүй бол та үүнийг Портын цуглуулгаас бүтээн суулгаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/swfdec-plugin
# make install clean
@@ -243,14 +243,14 @@ Opera нь өргөн боломжуудтай стандартад нийцсэ
Opera-ийн FreeBSD хувилбараар вэб үзэхийн тулд багцыг суулгана:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Зарим нэг FTP сайтуудад бүх багцууд байдаггүй боловч Портын цуглуулгыг ашиглан доор дурдсаныг бичин Opera-г авч болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -260,7 +260,7 @@ Opera-ийн Линукс хувилбарыг суулгахын тулд дэ
Adobe(R) Flash(TM) залгаас нь FreeBSD дээр байдаггүй. Гэхдээ залгаасын Linux(R) хувилбар байдаг. Энэ хувилбарыг суулгахын тулд package:www/linux-f10-flashplugin11[] порт суусан байх шаардлагатай бөгөөд дараа нь package:www/opera-linuxplugins[] порт суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/linux-f10-flashplugin11
# make install clean
@@ -280,7 +280,7 @@ Konqueror нь бас залгаасуудын олонлогтой ирдэг
Konqueror нь WebKit болон өөрийн KHTML-г дэмждэг. WebKit нь Chromium зэрэг орчин үеийн олон хөтчүүдэд ашиглагддаг. WebKit-г FreeBSD дээр Konqueror-тай ашиглахын тулд:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/kwebkitpart
# make install clean
@@ -296,14 +296,14 @@ Chromium нь нээлттэй эхийн аюулгүй, хурдан илүү
Chromium-г багц хэлбэрээр ингэж суулгаж болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r chromium
....
Мөн Chromium-г портын цуглуулгаас эх кодыг ашиглан бүтээж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -324,7 +324,7 @@ Chromium нь [.filename]#/usr/local/bin/chromium# биш харин [.filename]
OpenJDK 6-г портын цуглуулгаас суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -332,7 +332,7 @@ OpenJDK 6-г портын цуглуулгаас суулгана:
Дараа нь package:java/icedtea-web[]-г портын цуглуулгаас суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -342,7 +342,7 @@ Chromium-г эхлүүлж хаягийн цонхон дээр `about:plugins`
Хэрэв Chromium нь IcedTea-Web залгаасыг харуулахгүй байгаа бол дараах тушаалыг ажиллуулж вэб хөтчийг дахин эхлүүлнэ:
-[source,bash]
+[source,shell]
....
# mkdir -p /usr/local/shared/chromium/plugins
# ln -s /usr/local/lib/IcedTeaPlugin.so \
@@ -408,14 +408,14 @@ KDE-ийн хүрээнийхэн KDE-ээс гадна ашиглагдаж б
KDE4-т зориулсан KOffice-ийг багц хэлбэрээр суулгахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice-kde4
....
Хэрэв багц байхгүй бол та Портын цуглуулгыг ашиглаж болно. Жишээ нь KDE4-т зориулж KOffice-г суулгахын тулд доор дурдсаныг ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde4
# make install clean
@@ -429,14 +429,14 @@ AbiWord нь Microsoft(R)-ийн [.filename]#.doc# зэрэг арилжааны
AbiWord нь багц хэлбэрээр байдаг. Та дараах тушаалыг ажиллуулан үүнийг суулгаж болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Хэрэв багц байхгүй бол үүнийг Портын цуглуулгаас эмхэтгэж болно. Портын цуглуулга шинэчлэгдсэн байх ёстой. Үүнийг ингэж хийж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -448,14 +448,14 @@ AbiWord нь багц хэлбэрээр байдаг. Та дараах туш
Та энэ тушаалыг ажиллуулан багцыг суулгаж болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Хэрэв таны FTP сайт энэ багцгүй байгаа бол та Портын цуглуулгыг ашиглаж болно. Портын цуглуулгын http://www.FreeBSD.org/ports/[graphics] сан бас Gimp Manual програмыг агуулдаг. Энд тэдгээрийг хэрхэн суулгах талаар үзүүлэв:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -476,7 +476,7 @@ OpenOffice.org-ийн текст боловсруулагч нь эх XML фай
OpenOffice.org-ийг суулгахын тулд доор дурдсаныг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -488,7 +488,7 @@ FreeBSD-ийн -RELEASE хувилбарыг ажиллуулж байхад э
Багц суулгагдсаны дараа OpenOffice.org-ийг ажиллуулахын тулд та ердөө л дараах тушаалыг бичих хэрэгтэй:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -500,7 +500,7 @@ FreeBSD-ийн -RELEASE хувилбарыг ажиллуулж байхад э
Хэрэв OpenOffice.org багцууд байхгүй бол портыг эмхэтгэх сонголт танд бас байдаг. Гэхдээ энэ нь дискний асар их зай болон эмхэтгэх хугацаа ихийг шаардана гэдгийг та санаж байх ёстой шүү.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-3
# make install clean
@@ -510,7 +510,7 @@ FreeBSD-ийн -RELEASE хувилбарыг ажиллуулж байхад э
====
Хэрэв та локалчлагдсан хувилбарыг бүтээхийг хүсэж байгаа бол түрүүчийн тушаалын мөрийг дараах мөрөөр солих хэрэгтэй:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -520,7 +520,7 @@ FreeBSD-ийн -RELEASE хувилбарыг ажиллуулж байхад э
Үүнийг хийсний дараа OpenOffice.org-г дараах тушаалаар ажиллуулж болно:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -533,7 +533,7 @@ LibreOffice-н бичиг баримттай ажиллах програм нь
LibreOffice-г багц хэлбэрээр суулгахын тулд:
-[source,bash]
+[source,shell]
....
# pkg_add -r libreoffice
....
@@ -545,7 +545,7 @@ FreeBSD-н -RELEASE хувилбарыг ажиллуулж байгаа үед
Багц суусны дараа LibreOffice-г ажиллуулахын тулд та дараах тушаалыг өгөх ёстой:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -557,7 +557,7 @@ FreeBSD-н -RELEASE хувилбарыг ажиллуулж байгаа үед
Хэрэв LibreOffice багцууд байхгүй бол та портыг бүтээх боломж бас бий. Гэхдээ энэ нь маш их дискний хэмжээ болон бүтээхэд нэлээн удаан хугацаа шаардах болно гэдгийг санаарай.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -567,7 +567,7 @@ FreeBSD-н -RELEASE хувилбарыг ажиллуулж байгаа үед
====
Хэрэв танд локалчлагдсан хувилбар хэрэгтэй бол өмнөх тушаалыг дараахаар солиорой:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -577,7 +577,7 @@ FreeBSD-н -RELEASE хувилбарыг ажиллуулж байгаа үед
Үүнийг хийсний дараа LibreOffice-г дараах тушаалаар ажиллуулж болно:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -624,7 +624,7 @@ FreeBSD-н -RELEASE хувилбарыг ажиллуулж байгаа үед
Портын цуглуулгаас Acrobat Reader(R) 8-г суулгахын тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread8
# make install clean
@@ -638,14 +638,14 @@ gv нь PostScript(R) болон PDF үзүүлэгч юм. Энэ нь эхлэ
gv-г багц хэлбэрээр суулгахын тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Хэрэв та багцыг авч чадахгүй байгаа бол Портын цуглуулгыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -657,14 +657,14 @@ gv-г багц хэлбэрээр суулгахын тулд доор дурд
Xpdf багцыг суулгахын тулд энэ тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Багц байхгүй юм уу эсвэл та Портын цуглуулга ашиглахыг илүүд үзэж байгаа бол доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -678,14 +678,14 @@ GQview нь зургийн менежер юм. Та файлыг ганц да
Хэрэв та GQview багцыг суулгахыг хүсэж байгаа бол доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Багц байхгүй юм уу эсвэл та Портын цуглуулга ашиглахыг илүүд үзэж байгаа бол доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -735,14 +735,14 @@ GnuCash нь ухаалаг регистр, системийн шаталсан
Өөрийн систем дээрээ GnuCash-ийг суулгахын тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Хэрэв багц байхгүй байгаа бол та Портын цуглуулгыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -754,14 +754,14 @@ Gnumeric нь хүснэгттэй ажилладаг програм бөгөө
Gnumeric-ийг багцаас суулгахын тулд доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Хэрэв багц байхгүй бол та доор дурдсаныг хийн Портын цуглуулгыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -773,14 +773,14 @@ Abacus нь жижиг бөгөөд ашиглахад хялбар хүснэг
Abacus-ийг багц хэлбэрээр нь суулгахын тулд доор дурдсаныг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Хэрэв багц байхгүй бол та доор дурдсаныг хийн Портын цуглуулгыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -792,14 +792,14 @@ KMyMoney нь KDE-д зориулсан хувийн санхүүгийн мен
KMyMoney-г багц хэлбэрээс суулгахын тулд дараахийг хийнэ:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Хэрэв багц байхгүй бол Портын цуглуулгаас суулгаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/mn/books/handbook/disks/_index.adoc b/documentation/content/mn/books/handbook/disks/_index.adoc
index cfc47b3725..b2b182ac89 100644
--- a/documentation/content/mn/books/handbook/disks/_index.adoc
+++ b/documentation/content/mn/books/handbook/disks/_index.adoc
@@ -153,7 +153,7 @@ sysinstall-ийн шошго засварлагч нь root биш, swap биш
Энэ тохиргоо нь таны дискийг өөрийн чинь компьютер дээр суулгагдсан байж болох бусад үйлдлийн системтэй зөв ажиллаж өөр бусад үйлдлийн системийн `fdisk` хэрэгслүүдтэй эндүүрэхгүй байх боломжийг бүрдүүлдэг. Шинэ дискийг суулгахад энэ аргыг ашиглахыг зөвлөдөг. Хэрэв танд үнэхээр тохирох шалтгаан байгаа тохиолдолд `зориулагдсан` горимыг ашиглаарай!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 #Initialize your new disk
@@ -171,7 +171,7 @@ sysinstall-ийн шошго засварлагч нь root биш, swap биш
Хэрэв та шинэ хөтчийг өөр үйлдлийн системтэй цуг хуваалцахгүй бол `зориулагдсан` горимыг ашиглаж болох юм. Энэ горим нь Microsoft үйлдлийн системийн толгойг эргүүлж болохыг санаарай; гэхдээ тэдгээр нь ямар ч эвдрэл гэмтэл үүсгэхгүй. IBM-ийн OS/2(R) нь харин олсон бүх ойлгохгүй байгаа ямар ч хуваалтыг хувьдаа "завших" болно.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -184,7 +184,7 @@ sysinstall-ийн шошго засварлагч нь root биш, swap биш
Өөр нэг арга нь:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -370,7 +370,7 @@ ar0: WARNING - mirror lost
man:atacontrol[8] ашиглан дэлгэрэнгүй мэдээллийг шалгана:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -398,7 +398,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Та дискийг аюулгүйгээр салган авахын тулд эхлээд ata сувгийг ажиллахгүй байгаа дисктэй цуг салгана:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -406,7 +406,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Дискийг сольно.
. ata сувгийг дахин залгана:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -415,21 +415,21 @@ Slave: no device present
+
. Шинэ дискийг массивт нөөц маягаар нэмнэ:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. Массивыг дахин бүтээнэ:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. Дараах тушаалыг ашиглаж үйл явцыг шалгаж болно:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[output removed]
@@ -483,7 +483,7 @@ device cd
Тохиргоог тест хийхэд бэлэн боллоо: өөрийн USB төхөөрөмжийг залгахад системийн мэдэгдлийн буферт (man:dmesg[8]) хөтөч нь иймэрхүү харагдах ёстой:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -497,7 +497,7 @@ da0: 126MB (258048 512 byte sectors: 64H 32S/T 126C)
USB төхөөрөмж нь SCSI төхөөрөмж гэж харагддаг болохоор `camcontrol` тушаалыг ашиглаж системд холбогдсон USB хадгалалтын төхөөрөмжүүдийн жагсаалтыг харуулж болно:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -549,7 +549,7 @@ vfs.usermount=1
Төгсгөлийн алхам нь файлын систем холбогдох санг үүсгэх явдал юм. Энэ санг файлын системийг холбох хэрэглэгч эзэмшсэн байх хэрэгтэй. Үүнийг хийх нэг арга нь `root`-ийн хувьд тэр хэрэглэгчийн эзэмшсэн дэд санг [.filename]#/mnt/username# (_username_-г тухайн хэрэглэгчийнхээ нэвтрэх нэрээр болон _usergroup_-г хэрэглэгчийнхээ үндсэн бүлгийн нэрээр солиорой) гэж үүсгэх явдал юм:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -557,14 +557,14 @@ vfs.usermount=1
USB хуруун хөтөч залгагдаж [.filename]#/dev/da0s1# төхөөрөмж гарч иржээ гэж бодъё. Эдгээр төхөөрөмжүүд нь ихэвчлэн FAT файлын системээр хэлбэршүүлэгдсэн ирдэг бөгөөд эдгээрийг иймэрхүү маягаар холбож болно:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -m=644 -M=755 /dev/da0s1 /mnt/username
....
Хэрэв та төхөөрөмжийг залгаснаа салгавал (дискийг урьдаар салгах ёстой) та системийн мэдэгдлийн буфераас доор дурдсантай төстэй мэдэгдлийг харах ёстой:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -599,7 +599,7 @@ CD шарахдаа ямар хэрэгслийг ашиглах нь таны C
package:sysutils/cdrtools[] портын хэсэг man:mkisofs[8] програм нь UNIX(R)-ийн файлын системийн нэрийн талбар дахь сангийн модны дүрс болох ISO 9660 файлын системийг үүсгэдэг. Хамгийн хялбар хэрэглээ нь:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -612,14 +612,14 @@ package:sysutils/cdrtools[] портын хэсэг man:mkisofs[8] програ
Ердийн хэрэглээний сүүлийн тохируулга нь `-b` юм. Энэ нь ачаалагдах "El Torito" CD-г үүсгэхэд хэрэглэгдэх ачаалагдах дүрсний байрлалыг заахад ашиглагддаг. Энэ тохируулга нь CD уруу бичигдэх модны дээд хэсгийн ачаалагдах дүрс хүрэх замыг заах нэмэлт өгөгдлийг авдаг. Анхдагчаар man:mkisofs[8] нь "floppy disk emulation буюу уян дискний эмуляц" гэж нэрлэгддэг горимд ISO дүрсийг үүсгэдэг бөгөөд ачаалагдах дүрсийг яг 1200, 1440, эсвэл 2880 KB хэмжээтэй байна гэж тооцдог. FreeBSD түгээлтийн дискнүүдэд хэрэглэгддэг ачаалагч дуудагч зэрэг зарим ачаалагч дуудагчид нь эмуляц горимыг ашигладаггүй; энэ тохиолдолд `-no-emul-boot` тохируулгыг ашиглах шаардлагатай. Тэгэхээр хэрэв [.filename]#/tmp/myboot# нь ачаалагдах FreeBSD системийг [.filename]#/tmp/myboot/boot/cdboot# дэх ачаалагдах дүрстэй цуг агуулж байвал та ISO 9660 файлын системийн дүрсийг [.filename]#/tmp/bootable.iso#-д иймэрхүү маягаар үүсгэж болох юм:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
Үүнийг хийснийхээ дараа хэрэв та цөмдөө [.filename]#md#-г тохируулсан бол файлын системийг ингэж холбож болно:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -634,7 +634,7 @@ man:mkisofs[8]-ийн ажиллагааг нарийн тааруулахын
Хэрэв танд ATAPI CD шарагч байгаа бол та ISO дүрсийг CD уруу шарахдаа `burncd` тушаалыг ашиглаж болно. `burncd` нь үндсэн системийн хэсэг бөгөөд [.filename]#/usr/sbin/burncd# гэж суулгагдсан байдаг. Энэ нь цөөн тохируулгуудтай болохоор хэрэглэхэд их хялбар байдаг:
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data imagefile.iso fixate
....
@@ -648,14 +648,14 @@ man:mkisofs[8]-ийн ажиллагааг нарийн тааруулахын
`cdrecord` нь олон тохируулгатай байдаг боловч үндсэн хэрэглээ нь `burncd`-с бүр илүү хялбар байдаг. ISO 9660 дүрсийг шарахдаа:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
`cdrecord`-г хэрэглэхэд гардаг нэг заль нь `dev` тохируулгыг олох явдал юм. Зөв тохиргоог олохын тулд `cdrecord`-ийн `-scanbus` тугийг хэрэглэх хэрэгтэй бөгөөд энэ нь иймэрхүү үр дүнд хүргэж болох юм:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jörg Schilling
@@ -694,14 +694,14 @@ scsibus1:
. Аудиог `cdda2wav` ашиглан задлана.
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
+
. `cdrecord` ашиглан [.filename]#.wav# файлуудыг бичнэ.
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -723,14 +723,14 @@ scsibus1:
+
Тохирох файлууд [.filename]#/dev# санд байгаа эсэхийг шалгаарай. Хэрэв оруулгууд байхгүй байгаа бол зөөвөрлөгчийг дахин үзэхээр системийг хүчлэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. Зам бүрийг man:dd[1] ашиглан задална. Файлуудыг задлахдаа та тусгай блокийн хэмжээг бас ашиглах ёстой.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -739,7 +739,7 @@ scsibus1:
+
. Задалсан файлуудаа диск уруу `burncd` ашиглан шарна. Та эдгээрийг аудио файл гэж зааж өгөх хэрэгтэй бөгөөд `burncd` нь дуусахдаа дискийг бэхжүүлэх ёстой.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -750,7 +750,7 @@ scsibus1:
Та өгөгдлийн CD-г man:mkisofs[8]-р үүсгэсэн дүрс файлтай ажиллагааны хувьд адилхан дүрс файл уруу хуулж болох бөгөөд та үүнийг ямар ч өгөгдлийн CD хувилахад ашиглаж болно. Энд өгөгдсөн жишээ нь таны CDROM төхөөрөмжийг [.filename]#acd0# гэж үзэх болно. Өөрийн зөв CDROM төхөөрөмжөөр солиорой.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=file.iso bs=2048
....
@@ -762,21 +762,21 @@ scsibus1:
Одоо та стандарт өгөгдлийн CDROM үүсгэсэн болохоор түүнийг холбож түүн дээрх өгөгдлийг уншихыг хүсэх байх. Анхдагчаар man:mount[8] нь файлын системийг `ufs` төрлийнх гэж үздэг. Хэрэв та доорх шиг оролдвол:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
`Incorrect super block` гэж гомдоллохыг та харах бөгөөд холболт хийгдэхгүй байх болно. CDROM нь `UFS` файлын систем биш, тэгэхээр ингэж холбохыг оролдох нь амжилтгүй болох болно. Та man:mount[8]-д файлын системийн төрөл нь `ISO9660` гэж зааж өгөхөд л бүгд ажиллах болно. Та `-t cd9660` тохируулгыг man:mount[8]-д өгч үүнийг хийнэ. Жишээ нь хэрэв та CDROM төхөөрөмж [.filename]#/dev/cd0#-г [.filename]#/mnt#-д холбохыг хүсвэл дараах тушаалыг ажиллуулах болно:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Таны төхөөрөмжийн нэр (энэ жишээн дээр [.filename]#/dev/cd0#) таны CDROM ямар интерфэйс ашиглаж байгаагаас хамааран өөр байж болох юм. Мөн `-t cd9660` тохируулга нь ердөө л man:mount_cd9660[8]-г ажиллуулдаг. Дээрх жишээг ингэж богиносгож болно:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -811,14 +811,14 @@ options SCSI_DELAY=15000
Та ISO 9660 файлын системийг үүсгэлгүйгээр файлыг CD уруу шууд шарахаар сонгож болно. Зарим хүмүүс үүнийг нөөцлөх зорилгоор хийдэг. Энэ нь стандарт CD-г шарахаас илүү хурдан ажилладаг:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
Тийм CD-д шарагдсан өгөгдлийг авахын тулд та түүхий төхөөрөмжийн цэгээс өгөгдлийг унших ёстой:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -863,7 +863,7 @@ device pass
Ачаалах процессийн үед таны шарагч иймэрхүү маягаар гарч ирэх ёстой:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -874,14 +874,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
Одоо хөтчид [.filename]#/dev/cd0# төхөрөөмжийн нэрийг ашиглан хандаж болох бөгөөд жишээ нь CD-ROM-г [.filename]#/mnt#-д холбохдоо дараах тушаалыг бичих хэрэгтэй:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
`root` хэрэглэгчээр дараах тушаалыг ажиллуулж та шарагчийн SCSI хаягийг авч болно:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -939,7 +939,7 @@ man:growisofs[1] тушаал нь <<mkisofs,mkisofs>>-ийн нүүр хэсэ
DVD+R эсвэл DVD-R уруу өгөгдлийг [.filename]#/path/to/data# сангаас шарахдаа дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -950,7 +950,7 @@ DVD+R эсвэл DVD-R уруу өгөгдлийг [.filename]#/path/to/data# с
Мөн урьдчилан урласан дүрсийг шарах бас боломжтой, жишээ нь _imagefile.iso_ дүрсийг шарахын тулд бид дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -963,14 +963,14 @@ DVD+R эсвэл DVD-R уруу өгөгдлийг [.filename]#/path/to/data# с
Ийм ISO дүрс үүсгэхийн тулд:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
Диск рүү файлуудыг шууд бичихийн тулд:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -986,7 +986,7 @@ DVD-Видео нь ISO 9660 болон микро-UDF (M-UDF тодорхойл
Хэрэв танд DVD-Видео файлын системийн дүрс байгаа бол ямар ч дүрсний нэгэн адил аргаар шарах хэрэгтэй. Өмнөх хэсгийн жишээнээс үзнэ үү. Хэрэв та DVD зохиолт хийсэн бөгөөд үр дүн нь жишээ нь [.filename]#/path/to/video# санд байгаа бол DVD-Видеог шарахын тулд дараах тушаалыг ашиглах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -997,7 +997,7 @@ DVD-Видео нь ISO 9660 болон микро-UDF (M-UDF тодорхойл
CD-RW-с ялгаатай нь шинэ DVD+RW нь ашиглагдахаа өмнө хэлбэршүүлэгдсэн байх ёстой. man:growisofs[1] нь шаардлагатай үед автоматаар үүнийг хийх бөгөөд энэ аргыг _зөвлөдөг_ юм. Гэхдээ та `dvd+rw-format` тушаалыг ашиглан DVD+RW-г хэлбэршүүлж болно:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -1006,7 +1006,7 @@ CD-RW-с ялгаатай нь шинэ DVD+RW нь ашиглагдахаа ө
Хэрэв та шинэ өгөгдлийг (зарим өгөгдлийг нэмэх биш бүр мөсөн шинэ файлын систем шарах) DVD+RW уруу шарахыг хүсэж байгаа бол түүнийг хоосон болгох шаардлагагүй юм, иймэрхүүгээр өмнөх бичилтэн дээрээ (шинэ сесс үүсгээд) дараад л бичих хэрэгтэй юм:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -1015,7 +1015,7 @@ DVD+RW хэлбэршүүлэлт нь өмнөх бичилтэд өгөгдл
Жишээ нь хэрэв бид өөрсдийн урьдны DVD+RW уруу өгөгдөл нэмэхийг хүсвэл доор дурдсаныг ашиглах хэрэгтэй болно:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1029,7 +1029,7 @@ DVD+RW хэлбэршүүлэлт нь өмнөх бичилтэд өгөгдл
Хэрэв та ямар нэг шалтгаанаар зөөвөрлөгчийг хоосон болгохыг хүсвэл доор дурдсаныг хийх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1042,7 +1042,7 @@ DVD-RW нь дискний хоёр хэлбэршүүлэлтийг авдаг:
Дараалсан горим дахь DVD-RW-г хоослохдоо дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1051,7 +1051,7 @@ DVD-RW нь дискний хоёр хэлбэршүүлэлтийг авдаг:
====
Бүр мөсөн хоослолт (`-blank=full`) 1x зөөвөрлөгч дээр нэг цаг орчим болно. Хэрэв DVD-RW нь Disk-At-Once (DAO) горимоор бичигдэх бол хурдан хоослолтыг `-blank` тохируулга ашиглан хийж болно. DVD-RW-г DAO горимд шарахын тулд дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -1063,7 +1063,7 @@ DVD-RW нь дискний хоёр хэлбэршүүлэлтийг авдаг:
Дараалсан DVD-RW дээр өгөгдлийг бичихдээ бусад DVD хэлбэршүүлэлтийн нэгэн адил заавруудыг ашиглана:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -1074,14 +1074,14 @@ DVD-RW нь хязгаарлагдмал дарж бичих хэлбэршүү
DVD-RW-г хязгаарлагдмал дарж бичих хэлбэршүүлэлтэд оруулахдаа дараах тушаалыг ашиглах ёстой:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Дараалсан хэлбэршүүлэлт уруу буцааж өөрчлөхдөө дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1092,7 +1092,7 @@ DVD-RW-г хязгаарлагдмал дарж бичих хэлбэршүүл
Дараалсан хэлбэршүүлэлтэд DVD+R, DVD-R эсвэл DVD-RW дээрх эхний (хаагдаагүй) сессийн дараа дараах тушаалыг ашиглаж дискэнд шинэ сесс үүсгэнэ:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1131,7 +1131,7 @@ hw.ata.atapi_dma="1"
Өмнө нь бүлгийн танилцуулгад дурдсанаар DVD-RAM нь зөөврийн хатуу хөтөч маягаар харагддаг. Бусад хатуу дискнүүдийн адил DVD- RAM нь ашиглагдаж эхлэхээсээ өмнө "бэлдэгдсэн" байх ёстой. Жишээн дээр дискний бүх зай стандарт UFS2 файлын системтэй ашиглагдана:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -1144,7 +1144,7 @@ DVD төхөөрөмж [.filename]#acd0#-ийг өөрийн тохиргоон
Дээрх үйлдлүүд DVD-RAM дээр хийгдсэний дараа үүнийг энгийн хатуу хөтчийн нэгэн адил холбож болно:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1176,7 +1176,7 @@ DVD төхөөрөмж [.filename]#acd0#-ийг өөрийн тохиргоон
[.filename]#/dev/fdN# төхөөрөмжүүдийг ашиглан уян дискийг хэлбэршүүлэх хэрэгтэй. Шинэ 3.5 инч диск өөрийн хөтөч уруугаа хийгээд дараах тушаалыг ажиллуул:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1189,7 +1189,7 @@ DVD төхөөрөмж [.filename]#acd0#-ийг өөрийн тохиргоон
Та одоо ингэж man:bsdlabel[8]-г ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1202,7 +1202,7 @@ DVD төхөөрөмж [.filename]#acd0#-ийг өөрийн тохиргоон
Уян диск дээр шинэ файлын системийг байрлуулахын талд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1274,7 +1274,7 @@ AIT нь Sony-гоос гаргасан шинэ хэлбэршүүлэлт бө
Анхны удаа шинэ, хов хоосон соронзон хальсыг уншихыг оролдвол амжилтгүй болно. Консолын мэдэгдлүүд үүнтэй төстэй байна:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1316,14 +1316,14 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready
Тухайн сан болон дэд сан доторх бүх файлуудыг нөөцлөхийн тулд үүнийг ашиглах хэрэгтэй (`root` хэрэглэгчээр):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Эхний уян диск дүүрсний дараа man:tar[1] нь дараагийн эзлэхүүнийг оруулахыг хүсэх болно (учир нь man:tar[1] нь зөөвөрлөгчөөс хамааралгүй бөгөөд эзлэхүүнүүдэд ханддаг; энд уян дискийг хэлж байна).
-[source,bash]
+[source,shell]
....
Prepare volume #2 for /dev/fd0 and hit return:
....
@@ -1340,14 +1340,14 @@ Prepare volume #2 for /dev/fd0 and hit return:
Бүхэл архивыг сэргээхдээ дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Зөвхөн заагдсан файлуудыг сэргээх хоёр арга байдаг бөгөөд та тэдгээрийг ашиглаж болно. Эхлээд та эхний дискнээс эхлээд дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 filename
....
@@ -1396,7 +1396,7 @@ man:tar[1] хэрэгсэл нь шаардлагатай файлыг олох
Мөн сүлжээгээр өөр компьютерт холбогдсон соронзон хальсны хөтөч уруу өгөгдлийг `rdump` болон `rrestore` тушаал ашиглан нөөцлөх боломжтой байдаг. Энэ хоёр програм нь алсын соронзон хальсны хөтчид хандахдаа man:rcmd[3] болон man:ruserok[3]-д тулгуурладаг. Тиймээс нөөцлөлтийг хийж байгаа хэрэглэгч алсын компьютерийн [.filename]#.rhosts# файл дотор жагсаагдсан байх ёстой. `rdump` болон `rrestore` тушаалуудад өгөх нэмэлт өгөгдлүүд нь алсын компьютер дээр ашиглаж болохоор байх ёстой. `komodo` гэж нэрлэгдсэн Sun уруу холбогдсон Exabyte соронзон хальсны хөтөч уруу FreeBSD компьютераас `rdump` хийхдээ дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1409,7 +1409,7 @@ man:tar[1] хэрэгсэл нь шаардлагатай файлыг олох
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1423,7 +1423,7 @@ man:tar[1] хэрэгсэл нь шаардлагатай файлыг олох
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1436,7 +1436,7 @@ man:tar[1] нь бас AT&T UNIX-ийн 6-р хувилбараас (1975 он
`komodo` гэж нэрлэгдсэн Sun уруу холбогдсон Exabyte соронзон хальсны хөтөч уруу `tar` хийхдээ дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh komodo dd of=tape-device obs=20b
....
@@ -1449,7 +1449,7 @@ man:cpio[1] нь соронзон зөөвөрлөгчид зориулагдс
`cpio` нь сүлжээгээр нөөцлөхийг дэмждэггүй. Та дамжуулах хоолой болон `rsh`-ийг ашиглаж өгөгдлийг алсын соронзон хальсны хөтөч уруу илгээж болно.
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
find $f >> backup.list
@@ -1549,7 +1549,7 @@ man:mdconfig[8] тушаал нь гурван төрлийн санах ой д
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0 /mnt
@@ -1563,7 +1563,7 @@ man:mdconfig[8] ашиглан шинэ файлын системийн дүрс
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1591,7 +1591,7 @@ man:mdconfig[8] хэрэгсэл нь их ашигтай, гэхдээ энэ
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1615,7 +1615,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1636,7 +1636,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1652,7 +1652,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Жишээ нь [.filename]#/dev/md4#-г салгаж түүний хэрэглэсэн бүх эх үүсвэрүүдийг чөлөөлөхийн тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1670,21 +1670,21 @@ FreeBSD нь crossref:cutting-edge[soft-updates,Soft Updates буюу зөөлө
Хормын хувилбарууд нь man:mount[8] тушаалаар үүсгэгддэг. [.filename]#/var#-ийн хормын хувилбарыг [.filename]#/var/snapshot/snap# файлд байрлуулахын тулд дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Өөрөөр та хормын хувилбар үүсгэхийн тулд man:mksnap_ffs[8]-г ашиглаж болно:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Файлын систем (өөрөөр хэлбэл [.filename]#/var#) дээр хормын хувилбарын файлуудыг man:find[1] тушаал ашиглан олж болно:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1697,7 +1697,7 @@ FreeBSD нь crossref:cutting-edge[soft-updates,Soft Updates буюу зөөлө
* Хормын хувилбарыг файлын системийн хөлдөөгдсөн дүрс маягаар man:mount[8] хийдэг. [.filename]#/var/snapshot/snap# хормын хувилбарыг man:mount[8] хийхийн тулд доор дурдсаныг ажиллуулна:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1705,7 +1705,7 @@ FreeBSD нь crossref:cutting-edge[soft-updates,Soft Updates буюу зөөлө
Та одоо [.filename]#/mnt#-д холбогдсон өөрийн хөлдөөгдсөн [.filename]#/var# файлын системийн шатлалаар аялж болно. Хормын хувилбар үүсгэх үе дэх төлвийн адил төлөвт бүгд эхлээд байна. Цорын ганц өөр зүйл нь өмнөх хормын хувилбарууд нь тэг урттай файлууд маягаар гарч ирэх болно. Хормын хувилбарын хэрэглээг хязгаарлах үед үүнийг дараах тушаалыг ажиллуулан салгаж болно:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1776,7 +1776,7 @@ check_quotas="NO"
Та ноогдлыг идэвхжүүлж өөрийн системийг тохируулсны дараа тэдгээр нь яг жинхэнэдээ идэвхтэй болсон эсэхийг шалгаарай. Үүнийг хийх хялбар арга нь дараах тушаалыг ажиллуулах явдал юм:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1793,7 +1793,7 @@ check_quotas="NO"
Дараах нь man:edquota[8] тушаалыг ажиллуулах үед таны харж болох гаралтын жишээ юм. man:edquota[8] тушаалыг ажиллуулахад `EDITOR` орчны хувьсагчид заагдсан засварлагч уруу эсвэл `EDITOR` хувьсагч заагдаагүй бол vi засварлагч уруу таныг оруулах бөгөөд энэ нь ноогдлын хязгаарлалтуудыг засварлах боломжийг танд олгоно.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1825,7 +1825,7 @@ Quotas for user test:
Заримдаа ноогдлын хязгаарлалтуудыг зарим UID-ийн хүрээний хувьд зааж өгөх шаардлага гардаг. Үүнийг man:edquota[8] тушаалд `-p` тохируулгыг ашиглан хийдэг. Эхлээд хэрэглэгчид хүссэн ноогдлын хязгаарлалтаа зааж өгөөд дараа нь `edquota -p protouser startuid-enduid` тушаалыг ажиллуулна. Жишээ нь хэрэв хэрэглэгч `test` хүссэн ноогдлын хязгаарлалттай байгаа бол энэ ноогдлын хязгаарлалтыг 10,000-с 19,999 хүртэлх UID-уудад хувилж хамааруулахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1863,7 +1863,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Одоо `inetd`-г дахин ачаал:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1884,7 +1884,7 @@ FreeBSD нь өгөгдөлд зөвшөөрөгдөөгүй хандах хан
+
gbde-г тохируулахад супер хэрэглэгчийн эрхүүдийг шаарддаг.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1901,7 +1901,7 @@ Password:
Шинэ цөм уруугаа дахин ачаална.
. Цөмийг дахин бүтээхээс өөр нэг арга нь `kldload` ашиглаж man:gbde[4]-г ачаалах явдал юм:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1918,7 +1918,7 @@ Password:
+
Шинэ хөтчийг систем уруу <<disks-adding>>-д тайлбарласны дагуу нэмнэ. Энэ жишээн дээр шинэ хатуу хөтчийн хуваалт [.filename]#/dev/ad4s1c# гэж нэмэгдсэн байгаа. [.filename]#/dev/ad0s1*# төхөөрөмжүүд нь жишээ систем дээр байгаа стандарт FreeBSD хуваалтуудыг харуулж байна.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1928,7 +1928,7 @@ Password:
+
. `gbde` цоож файлуудыг агуулах санг үүсгэнэ
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1939,7 +1939,7 @@ gbde цоож файл нь шифрлэгдсэн хуваалтуудад ха
+
gbde хуваалт ашиглагдаж эхлэхээсээ өмнө эхэлж тохируулагдсан байх шаардлагатай. Энэ эхний тохируулга нь зөвхөн нэг удаа хийгдэх ёстой:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -1971,14 +1971,14 @@ gbde цоож файлууд нь шифрлэгдсэн хуваалтууды
+
. Шифрлэгдсэн хуваалтыг цөмд залгана
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Шифрлэгдсэн хуваалтыг эхэлж тохируулж байх үед таны сонгосон нэвтрэх үгийг оруулахыг танаас асуух болно. Шинэ шифрлэгдсэн төхөөрөмж [.filename]#/dev# дотор [.filename]#/dev/device_name.bde# гэж гарч ирнэ:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1990,7 +1990,7 @@ gbde цоож файлууд нь шифрлэгдсэн хуваалтууды
+
Шифрлэгдсэн төхөөрөмж цөмд залгагдсаны дараа та энэ төхөөрөмж дээр файлын систем үүсгэж болно. Шифрлэгдсэн төхөөрөмж дээр файлын систем үүсгэхийн тулд man:newfs[8]-г ашиглана. Хуучин UFS1 файлын системийг эхлүүлснээс шинэ UFS2 файлын системийг эхлүүлэх нь хамаагүй хурдан учраас man:newfs[8]-г `-O2` тохируулгатай хэрэглэхийг зөвлөдөг.
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -2004,14 +2004,14 @@ man:newfs[8] тушаал нь төхөөрөмжийн нэрэндээ [.filen
+
Шифрлэгдсэн файлын системд зориулж холбох цэгийг үүсгэнэ.
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Шифрлэгдсэн файлын системийг холбоно.
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2020,7 +2020,7 @@ man:newfs[8] тушаал нь төхөөрөмжийн нэрэндээ [.filen
+
Шифрлэгдсэн файлын систем одоо man:df[1]-д харагдаж ашиглахад бэлэн болох ёстой.
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2042,7 +2042,7 @@ Filesystem Size Used Avail Capacity Mounted on
. `gbde` хуваалтыг цөмд залгана
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -2052,14 +2052,14 @@ Filesystem Size Used Avail Capacity Mounted on
+
Шифрлэгдсэн файлын системүүд нь автоматаар холбогдохын тулд [.filename]#/etc/fstab# файлд одоохондоо жагсаагдах боломжгүй учир файлын системүүд дээр алдаа байгаа эсэхийг шалгаж тэдгээрийг холбохоос өмнө man:fsck[8]-г гараар ажиллуулах ёстой.
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. Шифрлэгдсэн файлын системийг холбоно
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2090,7 +2090,7 @@ man:gbde[8] нь 128-bit AES-ийг CBC горимд ашиглан сектор
man:sysinstall[8] нь gbde-шифрлэгдсэн төхөөрөмжүүдтэй нийцгүй байдаг. Бүх [.filename]#*.bde# төхөөрөмжүүдийг man:sysinstall[8] эхлүүлэхээс өмнө цөмөөс салгасан байх ёстой бөгөөд ингэхгүй бол энэ нь төхөөрөмжүүдийг шалгаж эхлэхдээ сүйрэх болно. Бидний жишээн дээр ашиглагдсан шифрлэгдсэн төхөөрөмжийг салгахдаа дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2149,7 +2149,7 @@ man:geli[8] нь одоо цөмд дэмжигдсэн байх ёстой.
+
Мастер түлхүүр нь нэвтрэх үгээр хамгаалагдах бөгөөд түлхүүр файлд зориулагдсан өгөгдлийн эх нь [.filename]#/dev/random# байх болно. Бидний үзүүлэгч гэж нэрлэдэг [.filename]#/dev/da2.eli#-ийн секторын хэмжээ 4kB байх болно.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2161,14 +2161,14 @@ Reenter new passphrase:
+
Хэрэв түлхүүр файл "-" гэж өгөгдсөн бол стандарт оролтыг ашиглана. Энэ жишээ нь нэгээс олон түлхүүр файлыг хэрхэн ашиглаж болох талаар харуулж байна.
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
+
. Үзүүлэгчийг үүсгэсэн түлхүүрийн тусламжтай залгах нь
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2176,7 +2176,7 @@ Enter passphrase:
+
Шинэ цэвэр текст төхөөрөмж [.filename]#/dev/da2.eli# гэж нэрлэгдэх болно.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2184,7 +2184,7 @@ Enter passphrase:
+
. Шинэ файлын системийг үүсгэх нь
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2193,7 +2193,7 @@ Enter passphrase:
+
Шифрлэгдсэн файлын систем man:df[1]-д харагдаж ашиглахад бэлэн болох ёстой:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2209,7 +2209,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
Шифрлэгдсэн хуваалт дээрх ажил хийгдэж дуусаад [.filename]#/private# хуваалт хэрэггүй болох үед `geli` шифрлэгдсэн хуваалтыг холбосноо салган цөмд залгаснаа бас салгах нь зүйтэй юм.
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -2252,7 +2252,7 @@ FreeBSD дээрх swap-ийн шифрлэлт нь тохируулахад а
Энэ хүртэл swap нь шифрлэгдээгүй байгаа билээ. Аль хэдийн нууц үгс эсвэл бусад эмзэг өгөгдөл дискний хавтгайнууд дээр цэвэр текстээр байж болзошгүй юм. Үүнийг засварлахын тулд swap хуваалт дээрх өгөгдлийг санамсаргүй хаягдлаар дарж бичих хэрэгтэй:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2294,7 +2294,7 @@ man:geli[8] гарын авлагын хуудсан дахь `onetime` туша
Хэрэв man:gbde[8] ашиглагдаж байвал:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2303,7 +2303,7 @@ Device 1K-blocks Used Avail Capacity
Хэрэв man:geli[8] ашиглагдаж байвал:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2421,7 +2421,7 @@ resource test {
Одоо хоёр цэг дээр тохиргоо байгаа болохоор HAST нөөцийг үүсгэх боломжтой. Хоёр цэг дээр дараах тушаалыг ажиллуулж эхний мета өгөгдлийг локал диск дээр байрлуулж man:hastd[8] демонг ажиллуулна:
-[source,bash]
+[source,shell]
....
# hastctl create test
# /etc/rc.d/hastd onestart
@@ -2434,14 +2434,14 @@ GEOM үйлчилгээ үзүүлэгчдийг одоо байгаа файл
HAST цэгийн үүргийг (`анхдагч` эсвэл `хоёрдогч`) администратор тохируулах юм уу эсвэл man:hastctl[8] хэрэгсэл ашиглан Heartbeat зэрэг бусад програмаар тохируулж болно. Анхдагч цэг рүү (`hasta`) шилжээд дараах тушаалыг өгнө:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Үүнтэй адилаар хоёрдогч цэг дээр (`hastb`) дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
@@ -2454,7 +2454,7 @@ HAST цэгийн үүргийг (`анхдагч` эсвэл `хоёрдогч`
Цэг бүр дээр man:hastctl[8] хэрэгсэл ашиглан үр дүнг шалгаж болно:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -2463,7 +2463,7 @@ HAST цэгийн үүргийг (`анхдагч` эсвэл `хоёрдогч`
Дараагийн алхам бол [.filename]#/dev/hast/test# GEOM үйлчилгээ үзүүлэгч дээр файлын систем үүсгэж холбох явдал юм. Үүнийг `анхдагч` цэг (учир нь [.filename]#/dev/hast/test# зөвхөн `primary` цэг дээр харагдана) дээр хийх ёстой. Хатуу дискийн хэмжээнээс хамаарч хэдэн минут үргэлжилж болох юм:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2508,7 +2508,7 @@ notify 30 {
Шинэ тохиргоог идэвхтэй болгохын тулд man:devd[8]-г цэг бүр дээр дахин ажиллуулна:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devd restart
....
@@ -2643,7 +2643,7 @@ HAST-н асуудлуудыг шалгаж байхдаа man:hastd[8]-г `-d`
Администратор аль цэг хамгийн чухал өөрчлөлттэй байгаа дээр шийдвэр гаргаж (эсвэл гараар нийлүүлэн) HAST-д эвдэрсэн өгөгдөл бүхий цэгийн бүтэн синхрончлол хийх боломжийг олгох ёстой. Ингэхийн тулд дараах тушаалуудыг дахин синхрончлол шаардлагатай байгаа цэг дээр ажиллуулна:
-[source,bash]
+[source,shell]
....
# hastctl role init <resource>
# hastctl create <resource>
diff --git a/documentation/content/mn/books/handbook/dtrace/_index.adoc b/documentation/content/mn/books/handbook/dtrace/_index.adoc
index c68fb8d401..e8d9439e88 100644
--- a/documentation/content/mn/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/mn/books/handbook/dtrace/_index.adoc
@@ -111,7 +111,7 @@ options KDTRACE_FRAME
Бүх эх CTF тохиргоонуудтай дахин бүтээгдэж суулгагдсан байх ёстой. Ингэхийн тул FreeBSD-ийн эхийг доорх тушаалуудыг ашиглан дахин бүтээнэ:
-[source,bash]
+[source,shell]
....
# cd /usr/src
@@ -129,14 +129,14 @@ options KDTRACE_FRAME
DTrace боломжийг ашиглахаас өмнө DTrace төхөөрөмж байх хэрэгтэй. Төхөөрөмжийг дуудахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
DTrace дэмжлэг одоо боломжтой болсон байх ёстой. Бүх шалгалтыг харахын тулд администратор дараах тушаалыг одоо ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -145,7 +145,7 @@ DTrace дэмжлэг одоо боломжтой болсон байх ёсто
Уг хэрэгсэл нь системийн мэдээллийг цуглуулахын тулд DTrace-тэй цуг ажиллуулж болох ашиглахад бэлэн скриптүүдийн цуглуулга юм. Нээлттэй файлууд, санах ой,CPU-ийн хэрэглээ болон өөр олон зүйлсийг шалгах скриптүүд байдаг. Скриптүүдийг дараах тушаалаар задалж болно:
-[source,bash]
+[source,shell]
....
# gunzip -c DTraceToolkit* | tar xvf -
....
@@ -163,7 +163,7 @@ FreeBSD дээрх DTrace дэмжлэг нь _бүрэн бус_ бөгөөд _
[.filename]#hotkernel# нь аль функц цөмийн ихэнх хугацааг ашиглаж байгааг илрүүлэхээр хийгдсэн. Хэвийнээр ажиллуулахад энэ нь дараахтай төстэй гаралтыг харуулах болно:
-[source,bash]
+[source,shell]
....
# cd /usr/shared/dtrace/toolkit
# ./hotkernel
@@ -172,7 +172,7 @@ Sampling... Hit Ctrl-C to end.
Системийн администратор процессийг зогсоохын тулд kbd:[Ctrl+C] товчлуурын хослолыг ашиглах ёстой. Зогсоосны дараа скрипт нь цөмийн функцуудын жагсаалт болон хугацааны мэдээллийг харуулах бөгөөд гаралтыг хугацааны ихэссэн дарааллаар эрэмбэлж харуулна:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -204,7 +204,7 @@ kernel`sched_idletd 137 0.3%
Энэ скрипт нь цөмийн модулиудтай бас ажилладаг. Энэ боломжийг ашиглахын тулд скриптийг `-m` өгөгдөлтэй ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -226,7 +226,7 @@ kernel 874 0.4%
[.filename]#procsystime# скрипт нь өгөгдсөн PID эсвэл процессийн хувьд системийн дуудлагын цагийн хэрэглээг авч хэвлэн харуулдаг. Дараах жишээн дээр [.filename]#/bin/csh#-ийн шинэ хуулбар ажиллуулсан. [.filename]#procsystime#-ийг ажиллуулсан бөгөөд өөр нэг `csh` дээр цөөн хэдэн тушаалыг бичтэл энэ нь хүлээх горимд орсон. Энэ тестийн үр дүн энд байна:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/mn/books/handbook/filesystems/_index.adoc b/documentation/content/mn/books/handbook/filesystems/_index.adoc
index c4f678ea59..0b3dde7549 100644
--- a/documentation/content/mn/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/mn/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ ZFS-тэй холбоотой тохируулгуудын талаар илүү
ZFS цөөрмүүдийг систем эхлэх үед холбох боломжийг FreeBSD-д олгох эхлүүлэх арга зам байдаг. Үүнийг тохируулахын тулд дараах тушаалуудыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# /etc/rc.d/zfs start
@@ -125,14 +125,14 @@ ZFS цөөрмүүдийг систем эхлэх үед холбох боло
Ганц дискийн төхөөрөмж ашиглан энгийн, нөөцгүй ZFS цөөрөм үүсгэхийн тулд `zpool` тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Шинэ цөөрмийг харахын тулд `df` тушаалын гаралтыг үзнэ:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ example 17547136 0 17547136 0% /example
Энэ гаралт нь `example` цөөрөм зөвхөн үүсгэгдээд зогсохгүй бас _холбогдсон_ гэдгийг тодорхой харуулж байна. Энэ нь энгийн файлын систем шиг хандах боломжтой, үүн дээр файлууд үүсгэж хэрэглэгчид дараах жишээн дээрх шиг үзэх боломжтой байна:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Харамсалтай нь энэ цөөрөм ZFS-ийн боломжуудын давуу талыг ашиглахгүй байна. Файлын системийг энэ цөөрөм дээр үүсгэж түүн дээр шахалтыг идэвхжүүлнэ:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -168,14 +168,14 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Шахалтыг дараах тушаалаар болиулж болно:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Файлын системийг салгахын тулд дараах тушаалыг ажиллуулж `df` хэрэгслээр шалгана:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -188,7 +188,7 @@ example 17547008 0 17547008 0% /example
Файлын системийг дахин холбож дахин хандах боломжтой болгоод `df` тушаалаар шалгана:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -202,7 +202,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
Цөөрөм болон файлын системийг `mount` тушаалын гаралтыг шалган бас ажиглаж болно:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -215,7 +215,7 @@ example/compressed on /example/compressed (zfs, local)
Ажигласнаар ZFS файлын системүүд нь үүсгэгдсэнийхээ дараагаар жирийн файлын системүүд шигээр ашиглагдаж болно, гэхдээ өөр бусад олон боломжууд бас байдаг. Дараах жишээн дээр шинэ файлын систем `data` үүсгэгдэж байна. Чухал файлууд энд хадгалагдах учир файлын систем нь өгөгдлийн блок бүрийн хоёр хуулбарыг хадгалахаар тохируулагдсан:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -223,7 +223,7 @@ example/compressed on /example/compressed (zfs, local)
Одоо `df`-г дахин ажиллуулж өгөгдөл болон зайн хэрэглээг харах боломжтой:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -237,7 +237,7 @@ example/data 17547008 0 17547008 0% /example/data
Цөөрөм дээрх файлын систем бүр ижил хэмжээтэй зайтай байгааг хараарай. Файлын системүүд нь зөвхөн хэрэгцээтэй зайгаа ашиглаж ижил цөөрмөөс авч байгааг харуулахын тулд `df` тушаалыг энэ жишээнүүд дээр ашигласан шалтгаантай юм. ZFS файлын систем нь эзлэхүүн болон хуваалтууд гэх мэт ойлголтуудаас ангид байж хэд хэдэн файлын систем нэг цөөрмийг эзлэхийг зөвшөөрдөг. Файлын системүүдийг устгаад дараа нь цөөрмийг хэрэгцээгүй болсон болохоор устгана:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -250,7 +250,7 @@ example/data 17547008 0 17547008 0% /example/data
Өмнө хэлсэнчлэн энэ хэсэг нь гурван SCSI диск байгаа гэж үзэх бөгөөд [.filename]#da0# [.filename]#da1# болон [.filename]#da2# (буюу эсвэл IDE диск ашиглагдаж байвал [.filename]#ad0# гэх мэтээр) байна. RAID-Z цөөрөм үүсгэхийн тулд дараах тушаалыг өгнө:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -262,14 +262,14 @@ Sun(TM)-ий зөвлөснөөр RAID-Z тохиргоонд ашиглагда
`storage` zpool үүсгэгдсэн байх ёстой. Өмнөх шиг man:mount[8] болон man:df[1] тушаалуудыг ашиглан үүнийг шалгаж болно. Дээрх жагсаалтын төгсгөлд өөр илүү дискийн төхөөрөмжүүдийг нэмэн хуваарилж болно. Хэрэглэгчийн файлууд удахгүй байрлах `home` гэгдсэн шинэ файлын системийг цөөрөмд хийнэ:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Одоо шахалтыг идэвхжүүлж хэрэглэгчийн гэрийн сангууд болон файлуудын илүү хуулбаруудыг хадгалах боломжтой. Үүнийг өмнөх шиг дараах тушаалуудыг ашиглан хийж болно:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -277,7 +277,7 @@ Sun(TM)-ий зөвлөснөөр RAID-Z тохиргоонд ашиглагда
Үүнийг хэрэглэгчдийн шинэ гэрийн сан болгохын тулд хэрэглэгчийн өгөгдлийг энэ сан руу хуулж тохирох тэмдэгт холбоосуудыг үүсгэнэ:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -289,42 +289,42 @@ Sun(TM)-ий зөвлөснөөр RAID-Z тохиргоонд ашиглагда
Дараа нь буцааж болох хормын хувилбар үүсгэж үзээрэй:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
Хормын хувилбар тохиргоо нь гэрийн сан ч биш эсвэл файл ч биш зөвхөн жинхэнэ файлын системийг авахыг анхаараарай. `@` тэмдэгт нь файлын системийн нэр эсвэл эзлэхүүний нэрийн хооронд ашиглагдсан зааглагч юм. Хэрэглэгчийн гэрийн сан устгагдах үед түүнийг доорх тушаалаар сэргээнэ:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Байгаа хормын хувилбаруудын жагсаалтыг авахын тулд `ls`-г файлын системийн [.filename]#.zfs/snapshot# сан дотор ажиллуулна. Жишээ нь өмнө нь авсан хормын хувилбарыг харахын тулд дараах тушаалыг гүйцэтгэнэ:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
Хэрэглэгчийн өгөгдөл дээр сар бүрийн хормын хувилбар үүсгэх скрипт бичих боломжтой боловч хожим хормын хувилбарууд нь ихээхэн хэмжээний дискийн хэмжээ эзлэх болно. Түрүүчийн хормын хувилбарыг дараах тушаал ашиглан устгаж болно:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Энэ бүх тестийн дараагаар [.filename]#/storage/home# санг бид одоо байгаа төлөвт нь байлгаад байх шалтгаан байх ёсгүй юм. Үүнийг жинхэнэ [.filename]#/home# файлын систем болгох хэрэгтэй:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
`df` болон `mount` тушаалуудыг ажиллуулснаар систем бидний файлын системийг жинхэнэ [.filename]#/home# сан гэж үзэж байгааг харуулна:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -343,7 +343,7 @@ storage/home 26320512 0 26320512 0% /home
Ингэснээр RAID-Z тохиргоо дуусаж байна. Шөнө бүрийн man:periodic[8] ажиллах үед үүссэн файлын системүүдийн талаар төлвийн шинэчлэлтүүдийг авахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -352,21 +352,21 @@ storage/home 26320512 0 26320512 0% /home
Програм хангамжийн RAID бүр өөрсдийн `төлвийг` хянах аргатай байдаг. ZFS нь ч мөн адил. RAID-Z төхөөрөмжүүдийн төлвийг дараах тушаалаар харж болно:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Хэрэв бүх цөөрмүүд эрүүл ба бүгд хэвийн бол дараах мэдэгдэл гарна:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Хэрэв асуудал байвал магадгүй диск холболтгүй болчихвол цөөрмийн төлөв иймэрхүү харагдах болно:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -390,21 +390,21 @@ errors: No known data errors
Энэ нь төхөөрөмжийг администратор салгасан гэдгийг харуулж байна. Ялангуяа энэ жишээний хувьд энэ нь үнэн юм. Дискийг салгахын тулд дараах тушаалыг ашиглажээ:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Одоо системийг унтраасны дараа [.filename]#da1#-г солих боломжтой. Систем буцаж ассаны дараа дараах тушаалыг ажиллуулж дискийг солино:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
Эндээс төлвийг дахин шалгаж болох бөгөөд энэ удаад төлвийн мэдээллийг авахын тулд `-x` өгөгдөлгүйгээр үзнэ:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -428,21 +428,21 @@ errors: No known data errors
Өмнө дурдсанчлан ZFS нь хадгалагдсан өгөгдлийн бүрэн бүтэн байдлыг шалгахдаа `хяналтын нийлбэрийг` ашигладаг. Тэдгээр нь файлын системүүдийг үүсгэхэд автоматаар идэвхждэг бөгөөд дараах тушаалыг ашиглан болиулж болно:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off storage/home
....
Энэ нь ухаалаг санаа биш боловч хяналтын нийлбэрүүд нь маш бага хадгалалтын зай эзэлдэг бөгөөд идэвжсэн байхдаа илүү ашигтай байдаг. Бас тэдгээрийг идэвхжүүлснээр мэдэгдэхээр зардал бас ажиглагддаггүй. Идэвхжсэн байх үед өгөгдлийн бүрэн бүтэн байдлыг хяналтын нийлбэрийн шалгалт ашиглан ZFS шалгах боломжтой байдаг. Энэ процессийг "цэвэрлэх" гэж хэлдэг. `storage` цөөрмийн өгөгдлийн бүрэн бүтэн байдлыг шалгахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
Энэ процесс хадгалагдсан өгөгдлийн хэмжээнээс хамаарч ихээхэн хэмжээний хугацаа шаардаж болох юм. Энэ нь бас эдгээр үйлдлүүдийн зөвхөн нэг нь тухайн үед ажиллаж болохоор тийм ихээр I/O-г ашигладаг байна. Цэвэрлэлт дууссаны дараа төлөв шинэчлэгдэж төлвийн хүсэлтийг илгээн харж болно:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -479,7 +479,7 @@ ref квот `refquota=size` нь ашиглах зайнд хатуу хязг
[.filename]#storage/home/bob#-д зориулж 10 GB ердийн квот тавихын тулд дараахийг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
@@ -493,14 +493,14 @@ ref квот `refquota=size` нь ашиглах зайнд хатуу хязг
Жишээ нь _joe_ хэрэглэгчийн хувьд 50 GB квот тавихын тулд дараахийг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
Квотыг устгах эсвэл тавигдаагүй эсэхийг шалгахын тулд дараахийг хэрэглэнэ:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -511,14 +511,14 @@ ref квот `refquota=size` нь ашиглах зайнд хатуу хязг
_firstgroup_ бүлэгт 50 GB квот зааж өгөхийн тулд дараахийг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
_firstgroup_ бүлгийн хувьд квотыг устгах эсвэл тавигдаагүй байгаа эсэхийг шалгахын тулд дараахийг хэрэглэнэ:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -529,7 +529,7 @@ _firstgroup_ бүлгийн хувьд квотыг устгах эсвэл та
Хэрэв танд хэрэгтэй зөвшөөрлүүд байгаа, аль эсвэл `root` хэрэглэгч бол [.filename]#storage/home/bob#-н хувьд квотыг харуулахын тулд дараахийг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -544,14 +544,14 @@ ZFS нь хоёр төрлийн зайн захиалгыг дэмждэг. Э
`reservation` шинж чанарын ерөнхий бичиглэл нь `reservation=size` байх бөгөөд [.filename]#storage/home/bob#-д 10 GB зайг захиалахын тулд дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
Захиалга хийгдээгүй аль эсвэл захиалгыг устгахын тулд дараахийг ашиглана:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -560,7 +560,7 @@ refreservation-г тохируулахад `refreservation=size` гэсэн ер
Ямар нэг захиалга эсвэл [.filename]#storage/home/bob#-н хувьд захиалга байгаа эсэхийг шалгахдаа дараах тушаалуудын аль нэгийг ажиллуулаарай:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -579,14 +579,14 @@ man:ext2fs[5] драйвер нь FreeBSD-н цөмд ext2 файлын сист
Эхлээд цөмийн дуудагдах модулийг ачаална:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Дараа нь [.filename]#/dev/ad1s1#-д байрлах man:ext2fs[5] эзлэхүүнийг холбоно:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
@@ -597,7 +597,7 @@ X файлын систем XFS-г анхлан IRIX-д зориулж SGI би
XFS-г цөмийн дуудагдах модуль хэлбэрээр ачаалахын тулд:
-[source,bash]
+[source,shell]
....
# kldload xfs
....
@@ -606,7 +606,7 @@ man:xfs[5] драйвер нь FreeBSD-д XFS файлын систем рүү
[.filename]#/dev/ad1s1#-д байрлах man:xfs[5] эзлэхүүнийг холбохын тулд дараахийг хийнэ:
-[source,bash]
+[source,shell]
....
# mount -t xfs /dev/ad1s1 /mnt
....
@@ -623,14 +623,14 @@ ReiserFS драйвер нь FreeBSD цөмд ReiserFS файлын систем
Эхлээд цөмийн дуудагдах модулийг ачаалах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# kldload reiserfs
....
Дараа нь [.filename]#/dev/ad1s1#-д байгаа ReiserFS эзлэхүүнийг холбохын тулд:
-[source,bash]
+[source,shell]
....
# mount -t reiserfs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/mn/books/handbook/firewalls/_index.adoc b/documentation/content/mn/books/handbook/firewalls/_index.adoc
index 9a06441b2e..4cb2a688a6 100644
--- a/documentation/content/mn/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/mn/books/handbook/firewalls/_index.adoc
@@ -111,7 +111,7 @@ pf_enable="YES"
Дараа нь модулийг дуудахдаа эхлүүлэх скриптийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pf start
....
@@ -127,7 +127,7 @@ pf_rules="/path/to/pf.conf"
PF модулийг тушаалын мөрөөс бас дуудан ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -141,7 +141,7 @@ pflog_enable="YES"
Дараа нь модулийг дуудахдаа эхлүүлэх скриптийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pflog start
....
@@ -327,7 +327,7 @@ ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat
Таны бичсэн дүрмүүдийг ачаалахад man:ipf[8] тушаалыг хэрэглэнэ. Та өөрийн дүрмүүдээс бүтсэн файлыг үүсгээд, түүнийгээ дээрх тушаалын ашиглан галт ханын одоо ажиллаж байгаа дотоод дүрмүүдтэй сольж тавьна гэсэн үг юм:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -352,7 +352,7 @@ man:ipfstat[8]-н анхдагч чанар бол галт ханыг хамг
man:ipfstat[8] тушаалын анхдагч үр дүн дараах байдалтай байна:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -381,7 +381,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Үр дүн нь дараах байдалтай байна:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -394,7 +394,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Үр дүн нь дараах байдалтай байна:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -427,7 +427,7 @@ ipmon_flags="-Ds" # D = start as daemon
Syslogd нь бүртгэлийн мэдээллийг дотор нь ангилах өөрийн тусгай аргатай. "facility" ба "түвшин" гэсэн тусгай ангилалаар ялгадаг. `-Ds` горимон дахь IPMON нь анхдагчаар "facility"-аар `local0`-г хэрэглэдэг. Хэрэв хүсвэл доорх түвшнүүдийг ашиглан бүртгэгдсэн мэдээллийг илүү ангилж болно:
-[source,bash]
+[source,shell]
....
LOG_INFO - нэвтрүүлэх, хаахаас үл хамааран "log" түлхүүрийг үйлдэл ашиглан пакетуудыг бүртгэх.
LOG_NOTICE - нэвтэрсэн пакетуудыг бүртгэх.
@@ -437,7 +437,7 @@ LOG_ERR - бүртгэсэн пакетууд болон богино гэгдс
IPFILTER-н бүх бүртгэлийн мэдээллийг [.filename]#/var/log/ipfilter.log# файл дотор бичихийн тулд, файл эхлээд үүссэн байх хэрэгтэй. Үүний тулд дараах тушаалыг өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -528,7 +528,7 @@ EOF
Байх ёстой бүх зүйлс бүгд байна. Энэ жишээн дээр дүрмүүд чухал биш, харин симбол орлуулалт хэрхэн ажилладгыг харуулсан байна. Хэрэв дээрх жишээ [.filename]#/etc/ipf.rules.script# нэртэй файл дотор байсан бол, эдгээр дүрмүүдийг дараах тушаалыг өгч дахин ачаалах боломжтой:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -552,7 +552,7 @@ sh /etc/ipf.rules.script
Энэ скриптийн эрхүүд эзэмшигч `root`-н хувьд унших, бичих, ажиллах эрхтэй байх ёстой.
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -936,28 +936,28 @@ NAT ажиллаж эхэлсний дараа NAT дүрмүүдэд өөрчл
Харин NAT дүрмүүдийг дахин ачаалахдаа тушаалыг дараах байдалтай өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
NAT-н талаар зарим статистикийг харъя гэвэл дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
NAT хүснэгтийн одоо ашиглаж байгаа оноолтын жагсаалтыг харахын тулд дараах тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
Вербос буюу хэр зэрэг харуулах горимыг нээхийн тулд, дүрэмтэй ажиллах болон идэвхтэй байгаа дүрмүүдийн хүснэгтийг харахын тулд:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1157,7 +1157,7 @@ IPFW нь FreeBSD үндсэн суулгацтай хамт, ажиллах ү
[.filename]#rc.conf# файл дотор `firewall_enable="YES"` илэрхийллийг нэмээд системийг дахин асаасны дараа ачаалах үйл явцын нэг хэсэг болж дараах мессеж дэлгэцэн дээр гарах болно:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -1296,49 +1296,49 @@ net.inet.ip.fw.verbose_limit=5
Бүх дүрмүүдийг дараагаар нь жагсаан харахын тулд:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Бүх дүрмүүдийг тухайн дүрэм хамгийн сүүлд тохирсон цагны хамт жагсаан харахын тулд:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
Дараагийн жишээ нь данслалтын мэдээлэл буюу дүрмүүдийг тохирсон пакетийн тооны хамт харуулж байна. Эхний багана нь дүрмийн дугаар, дараа нь энэ дүрэмд тохирсон гарч байгаа пакетийн тоо, дараа нь энэ дүрэмд тохирсон орж байгаа пакетийн тоо, тэгээд дүрэм өөрөө байна.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Статик дүрмүүдээс гадна динамик дүрмүүдийг жагсаан харахын тулд:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
Мөн хугацаа нь дууссан динамик дүрмүүдийг харахын тулд:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
Тоолууруудыг тэглэхийн тулд:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Зөвхөн _NUM_ дугаартай тоолуурыг тэглэхийн тулд:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1502,7 +1502,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Хэрэв дээрх жишээ [.filename]#/etc/ipfw.rules# нэртэй файл дотор байсан бол, эдгээр дүрмүүдийг дараах тушаалыг өгч дахин ачаалах боломжтой:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1513,7 +1513,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Дээрхтэй адил зүйлсийг дараах тушаалыг гараар оруулан гүйцэтгэж болно:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
diff --git a/documentation/content/mn/books/handbook/geom/_index.adoc b/documentation/content/mn/books/handbook/geom/_index.adoc
index 400762678d..deded3c75b 100644
--- a/documentation/content/mn/books/handbook/geom/_index.adoc
+++ b/documentation/content/mn/books/handbook/geom/_index.adoc
@@ -85,21 +85,21 @@ image::striping.png[Диск судал үүсгэж байгаа зураг]
. [.filename]#geom_stripe.ko# модулийг ачаална:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. Тохирох холболтын цэг байгааг шалгаарай. Хэрэв энэ эзлэхүүн нь root хуваалт болох ёстой бол түр зуур өөр [.filename]#/mnt# гэх мэт холболтын цэгийг ашиглаарай:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Судал үүсгэх дискнүүдэд зориулсан төхөөрөмжийн нэрийг тодорхойлоод шинэ судал төхөөрөмж үүсгэ. Жишээ нь хоёр ашиглагдаагүй, хуваалт хийгдээгүй [.filename]#/dev/ad2# болон [.filename]#/dev/ad3# гэсэн ATA дискнүүдэд судал үүсгэхийн тулд:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -109,14 +109,14 @@ Done.
+
. Хуваалтын хүснэгт гэгддэг стандарт хаягийг шинэ эзлэхүүн дээр бичээд анхдагч ачаалагдах кодыг суулгаарай:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Энэ процесс хоёр төхөөрөмжийг [.filename]#st0# төхөөрөмжийн хамт [.filename]#/dev/stripe# санд үүсгэх ёстой. Тэдгээр нь [.filename]#st0a# болон [.filename]#st0c# юм. Ингэсний дараа файлын системийг [.filename]#st0a# төхөөрөмж дээр `newfs` хэрэгслийн тусламжтайгаар үүсгэж болно:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -126,14 +126,14 @@ Done.
Гараар үүсгэсэн дискний судлаа холбохын тулд:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Энэ судал үүсгэсэн файлын системдээ ачаалах үед автоматаар холболт хийхийн тулд эзлэхүүний мэдээллийг [.filename]#/etc/fstab# файлд хийгээрэй. Энэ жишээн дээр [.filename]#stripe# гэсэн байнгын холбох цэгийг үүсгэж байна:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -142,7 +142,7 @@ Done.
[.filename]#/boot/loader.conf# файлд мөр нэмж [.filename]#geom_stripe.ko# модулийг систем эхлэхэд автоматаар ачаалагдахаар болгох ёстой:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -169,21 +169,21 @@ RAID1, буюу _mirroring_ нь нэг өгөгдлийг нэгээс илүү
GPT мета өгөгдлийг man:gpart[8] ашиглан устгаж болно. Энэ жишээн дээр анхдагч болон нөөц GPT хуваалтын хүснэгтийг [.filename]#ada8# дискнээс устгаж байна:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
man:gmirror[8] нь ажиллаж байгаа толин тусгалаас дискийг салгаж мета өгөгдлийг арилгахыг нэг алхмаар хийж чаддаг. Энд жишээ диск [.filename]#ada8#-г ажиллаж байгаа толин тусгал [.filename]#gm4#-с салгаж байна:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
Хэрэв толин тусгал ажиллахгүй байгаа бөгөөд хуучин толин тусгалын мета өгөгдөл диск дээр байгаа хэвээр бол `gmirror clear` тушаал ашиглан устгаж болно:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -196,14 +196,14 @@ man:gmirror[8] нь мета өгөгдлийн нэг блокийг дискн
man:gmirror[8] нь цөмд цуг бүтээгдсэн эсвэл ачаалах буюу ажиллах үед дуудагдах [.filename]#geom_mirror.ko# цөмийн модулийг шаарддаг. Цөмийн модулийг гараар одоо дуудна:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Хоёр шинэ дискээс тогтох толин тусгал үүсгэнэ.
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -214,7 +214,7 @@ MBR болон bsdlabel хуваалтын хүснэгтүүдийг толин
Толин тусгал дахь хуваалтууд нь одоо байгаа дискнүүд шиг ижил хэмжээтэй байх албагүй боловч [.filename]#ada0# дээр байгаа бүх өгөгдлийг агуулах хэмжээтэй байх ёстой.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t -a 4k mirror/gm0
@@ -225,7 +225,7 @@ MBR болон bsdlabel хуваалтын хүснэгтүүдийг толин
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -246,7 +246,7 @@ MBR болон bsdlabel хуваалтын хүснэгтүүдийг толин
Ачаалах кодыг MBR болон bsdlabel-д суулган идэвхтэй зүсмэлийг тохируулж толин тусгалыг ачаалах боломжтой болгоно:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -255,7 +255,7 @@ MBR болон bsdlabel хуваалтын хүснэгтүүдийг толин
Зөөлөн шинэчлэлийг идэвхжүүлэн шинэ толин тусгал дээрх файлын системийг формат хийнэ.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -265,7 +265,7 @@ MBR болон bsdlabel хуваалтын хүснэгтүүдийг толин
Эх диск [.filename]#ada0# дээрх файлын системийг толин тусгал руу man:dump[8] ба man:restore[8] тушаалыг ашиглан хуулж болно.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -308,14 +308,14 @@ geom_mirror_load="YES"
man:gmirror[8] цөмийн модулийг дуудна.
-[source,bash]
+[source,shell]
....
# gmirror load
....
man:diskinfo[8] ашиглан эхний дискний хэмжээг шалгана.
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -325,7 +325,7 @@ man:diskinfo[8] ашиглан эхний дискний хэмжээг шалг
Шинэ диск дээр толин тусгалыг үүсгэнэ. Эхний дискнээс толин тусгалын хэмжээ их биш гэдгийг шалгахын тулд man:gnop[8] ашиглан ижил хэмжээтэй хуурамч диск үүсгэж үзнэ. Энэ диск нь ямар ч өгөгдөл хадгалахгүй бөгөөд толин тусгалын хэмжээг хязгаарлахад зөвхөн ашиглагдана. man:gmirror[8] нь толин тусгал үүсгэхдээ хэдийгээр шинэ диск ([.filename]#ada1#) илүү зайтай байсан ч гэсэн [.filename]#gzero.nop#-н хэмжээгээр багтаамжийг хязгаарлана. Хоёр дахь мөрөн дээр байгаа _1000204821504_ утга нь дээрх man:diskinfo[8]-р харуулсантай адил [.filename]#ada0#-н хэмжээтэй ижил байх ёстой.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -341,7 +341,7 @@ man:diskinfo[8] ашиглан эхний дискний хэмжээг шалг
Гэхдээ гаралт нь дараах жагсаалт дээрх шиг диск дээрх бүх зай бүхлээрээ хуваарилагдсан байгаагаар харуулж байгаа бол 512 байт man:gmirror[8] мета өгөгдлийн хувьд дискний төгсгөлд зай байхгүй гэсэн үг юм.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -352,7 +352,7 @@ man:diskinfo[8] ашиглан эхний дискний хэмжээг шалг
Аль ч тохиолдолд анхдагч диск дээрх хуваалтын хүснэгтүүдийг эхэлж хуулах хэрэгтэй бөгөөд man:gpart[8] `backup` ба `restore` дэд тушаалуудыг ашиглан гүйцэтгэнэ.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -360,14 +360,14 @@ man:diskinfo[8] ашиглан эхний дискний хэмжээг шалг
Эдгээр тушаал нь [.filename]#table.ada0# ба [.filename]#table.ada0s1# гэсэн хоёр файл үүсгэнэ. Энэ жишээ нь 1 TB дискнээс юм:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -381,14 +381,14 @@ BSD 8
Хэрэв `gpart show` тушаал дискний төгсгөлд зай байхгүй байгааг харуулж байгаа бол зүсмэл болон сүүлийн хуваалтыг нэг сектороор багасгах хэрэгтэй. Зүсмэл болон сүүлийн хуваалтын зайг нэгээр багасган хоёр файлыг засварлах хэрэгтэй. Эдгээр нь жагсаалт бүрийн сүүлийн тоонууд юм.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -404,7 +404,7 @@ BSD 8
Одоо хуваалтын хүснэгтийг [.filename]#mirror/gm0# руу сэргээнэ:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -412,7 +412,7 @@ BSD 8
`gpart show` тушаалаар хуваалтын хүснэгтийг шалгана. Энэ жишээ нь [.filename]#gm0s1a#-г [.filename]#/#, [.filename]#gm0s1d#-г [.filename]#/var#, [.filename]#gm0s1e#-г [.filename]#/usr#, [.filename]#gm0s1f#-г [.filename]#/data1#, ба [.filename]#gm0s1g#-г [.filename]#/data2#-д ашиглана.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -434,7 +434,7 @@ BSD 8
Энэ шинэ хуваалтууд дээр файлын систем үүсгэнэ. Хэдэн хуваалт байх нь эх диск [.filename]#ada0# дээрх хуваалтуудаас хамаарч янз бүр байна.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -445,7 +445,7 @@ BSD 8
Идэвхтэй зүсмэлийг тохируулж MBR болон bsdlabel дээр ачаалах кодыг суулгаж толин тусгалыг ачаалах боломжтой болгоно:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -454,7 +454,7 @@ BSD 8
Толин тусгал дээрх шинэ хуваалтыг ашиглахаар болгож [.filename]#/etc/fstab# файлыг тохируулна. [.filename]#/etc/fstab.orig# руу хуулж энэ файлыг эхлээд нөөцөлж авах хэрэгтэй.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -481,7 +481,7 @@ geom_mirror_load="YES"
Эх диск дээрх файлын системүүдийг одоо man:dump[8] ба man:restore[8] тушаалуудыг ашиглан толин тусгал руу хуулж болно. `dump -L` тушаалаар авагдсан файл систем бүрийн хувьд хормын хувилбар үүсгэхэд хугацаа шаардагдаж магадгүйг санаарай.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -506,7 +506,7 @@ geom_mirror_load="YES"
[.filename]#ada0#-г толин тусгал руу оруулах үед хуучин агуулга нь толин тусгал дээрх агуулгаар дарагдаж бичигддэг. [.filename]#ada0#-г толин тусгал руу нэмэхээсээ өмнө [.filename]#mirror/gm0# нь [.filename]#ada0#-н өгөгдлийг яг агуулж байгаа эсэхийг шалгаарай. man:dump[8] ба man:restore[8]-г ашиглан хуулсан агуулгатай холбоотой ямар нэг асуудал үүссэн бол файлын системийг [.filename]#ada0#-с холбохоор болгож [.filename]#/etc/fstab#-г тохируулж дахин ачаалан дээрх алхмуудыг дахин эхнээс нь хийж үзэх хэрэгтэй.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -514,7 +514,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
Хоёр дискний хоорондох синхрончлол шууд эхэлнэ. man:gmirror[8] `status` тушаал явцыг харуулна.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -524,7 +524,7 @@ mirror/gm0 DEGRADED ada1 (ACTIVE)
Тодорхой хугацааны дараа синхрончлол дуусна.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -548,7 +548,7 @@ BIOS тохиргоог шинээр толин тусгал болгосон д
Хэрэв ачаалалт ийм мэдэгдэлтэй зогссон бол толин тусгал төхөөрөмж асуудалтай байж болох юм:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -575,7 +575,7 @@ mountroot>
[.filename]#geom_mirror# модулийг [.filename]#/boot/loader.conf#-т оруулж дуудахаа мартсан бол энэ асуудал гарна. Үүнийг засахын тулд FreeBSD 9.0 эсвэл түүнээс хойшхи хувилбарын CD эсвэл USB дискнээс ачаалаад эхний асуулт дээр `Shell`-г сонгох хэрэгтэй. Дараа нь толин тусгалын модулийг дуудаж толин тусгал төхөөрөмжийг холбох хэрэгтэй:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -592,7 +592,7 @@ geom_mirror_load="YES"
`error 19` гаргаж байгаа бусад асуудлуудыг засварлахад илүү хүч зарах шаардлагатай. Ачаалах үеийн асууж лавлах дэлгэц дээр `ufs:/dev/ada0s1a` гэж оруулж өгнө. Систем хэдийгээр [.filename]#ada0#-с ачаалах ёстой боловч бүрхүүл сонгох асууж лавлах дэлгэц дахин гарч ирнэ. [.filename]#/etc/fstab# файл буруу байгаа учраас тэр юм. Оруулах товчийг энэ үед дарах хэрэгтэй. Толин тусгалын оронд эх дискнээс ([.filename]#ada0#) файлын системийг холбохоор болгож [.filename]#/etc/fstab#-г тохируулж өөрчлөлтийг буцаах хэрэгтэй. Системийг дахин ачаалж алхмуудыг дахин оролдож үзэх хэрэгтэй.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -607,14 +607,14 @@ Enter full pathname of shell or RETURN for /bin/sh:
Компьютер ассаны дараа толин тусгал "degraded" буюу "ажиллагаа саарсан" горимд нэг дисктэйгээр ажиллах болно. Толин тусгал нь залгагдаагүй байгаа дискийг мартаж ажиллана:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Хуучин мета өгөгдлийг <<GEOM-mirror-metadata,сольсон дискээс арилгах хэрэгтэй>>. Дараа нь энэ жишээн дээрх [.filename]#ada4# дискийг толин тусгал руу оруулна:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -644,28 +644,28 @@ FreeBSD дээр RAID3 массиваас онолын хувьд ачаалах
. Эхдээд дараах тушаалыг ашилаад [.filename]#geom_raid3.ko# цөмийн модулийг ачаална:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
Мөн өөрөөр гараар [.filename]#geom_raid3.ko# модулийг ачаалж болно:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3.ko
....
+
. Тохирох холбох цэг үүсгэх юм уу эсвэл байгаа эсэхийг шалгана:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia/
....
+
. Массив руу нэмэгдэх дискүүдийн хувьд хөтчийн нэрийг тогтоогоод RAID3 төхөөрөмж үүсгэнэ. Сүүлд жагсаагдсан төхөөрөмж тусгайлан зориулагдсан parity диск байх болно. Энэ жишээн дээр гурван хуваагдаагүй ATA хөтчийг ашиглаж байна: [.filename]#ada1# ба [.filename]#ada2#-г өгөгдөлд, [.filename]#ada3#-г parity-г зориулж байна.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -676,7 +676,7 @@ Done.
+
. Шинэ үүсгэсэн [.filename]#gr0# төхөөрөмжийг хуваагаад түүн дээр UFS файлын систем үүсгэнэ:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -685,7 +685,7 @@ Done.
+
Дэлгэц дээгүүр олон тоо урсах бөгөөд хэсэг хугацааны дараа процесс дуусах болно. Эзлэхүүн үүсч холбох боломжтой болно.
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -729,14 +729,14 @@ GEOM нь хаалга хэрэгслүүдийг ашиглан дискнүү
Энэ төхөөрөмжийг экспорт хийхдээ тухайн үед холболт хийгдээгүй эсэхийг шалгаад man:ggated[8] сервер дэмонг ажиллуулаарай:
-[source,bash]
+[source,shell]
....
# ggated
....
Хэрэглэх машинаас уг экспортлогдсон төхөөрөмжид `mount` хийхдээ дараах тушаалыг өгнө үү:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -774,7 +774,7 @@ ggate0
Өгөгдлийг устгалгүйгээр UFS2 файлын системийн хувьд байнгын хаяг/шошго үүсгэхийн тулд доор дурдсан тушаалуудыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -799,7 +799,7 @@ ggate0
Одоо файлын системийг холбож болно:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -810,7 +810,7 @@ ggate0
Доор дурдсан тушаалыг хаяг/шошгыг устгахдаа ашиглаж болно:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -824,7 +824,7 @@ ggate0
Системийн дахин ачаалж ганц хэрэглэгчийн горимд ачаалж орохын тулд man:loader[8] тушаал хүлээх мөрөнд kbd:[4] товчлуурыг дарна. Дараа нь дараах тушаалуудыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -853,7 +853,7 @@ GEOM_LABEL: Label for provider /dev/ad0s1b is label/swap
Системийг одоо дахин ачаалж болно. Хэрэв бүгд зөв болсон бол энэ нь хэвийн гарч ирэх бөгөөд `mount` тушаал дараахийг харуулах болно:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -867,7 +867,7 @@ devfs on /dev (devfs, local)
FreeBSD 7.2-оос эхлэн man:glabel[8] ангилал UFS файлын системийн хувьд давхардахгүй файлын системийн id `ufsid` дээр тулгуурлан шинэ хаягийн төрлийг дэмждэг. Эдгээр хаягууд нь [.filename]#/dev/ufsid# санд байрлах бөгөөд системийн эхлэх явцад автоматаар үүсдэг. Хуваалтуудыг [.filename]#/etc/fstab# боломжийг ашиглан холбохын тулд `ufsid` хаягийг ашиглах боломжтой байдаг. Файлын системийн жагсаалт болон тэдгээр файл системийн харгалзах `ufsid` хаягуудыг авахын тулд `glabel status` тушаал ашиглана:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -919,7 +919,7 @@ options GEOM_JOURNAL
Чөлөөтэй файлын систем дээр тэмдэглэл үүсгэхийн тулд одоо доор дурдсан алхмуудыг ашиглан хийж болно. Энэ жишээн дээр [.filename]#da4# нь шинэ SCSI диск байна:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -927,7 +927,7 @@ options GEOM_JOURNAL
Энэ үед [.filename]#/dev/da4# төхөөрөмжийн цэг болон [.filename]#/dev/da4.journal# төхөөрөмжийн цэг үүссэн байх ёстой. Одоо энэ төхөөрөмж дээр файлын системийг үүсгэж болно:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -936,7 +936,7 @@ options GEOM_JOURNAL
Төхөөрөмжийг хүссэн цэгтээ доор дурдсан тушаалаар `mount` хийнэ:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/mn/books/handbook/install/_index.adoc b/documentation/content/mn/books/handbook/install/_index.adoc
index d18b4f7be3..aaeab7d389 100644
--- a/documentation/content/mn/books/handbook/install/_index.adoc
+++ b/documentation/content/mn/books/handbook/install/_index.adoc
@@ -315,7 +315,7 @@ FreeBSD 9.0-RELEASE болон түүнээс хойшхи хувилбаруу
+
[.filename]#.img# нь санах ойн зөөгчид хуулдаг ердийн файл шиг _биш_ юм. Энэ нь дискний бүрэн агуулга бүхий дүрс юм. Энэ нь та нэг дискнээс нөгөө диск рүү зүгээр л файлууд хуулдаг шиг хуулж _болохгүй_ гэсэн үг юм. Түүний оронд та дүрсийг диск рүү шууд бичихийн тулд man:dd[1] тушаалыг ашиглах ёстой юм:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# dd if=FreeBSD-{rel112-current}-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -373,7 +373,7 @@ FreeBSD/pc98-д зориулсан ачаалагдах дискийг `ftp://ft
+
Хэрэв уян дискнүүд CDROM дээр байгаа бөгөөд таны CDROM [.filename]#E:# гэж танигдсан бол та дараах тушаалыг өгөх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
....
@@ -382,7 +382,7 @@ E:\> tools\fdimage floppies\boot.flp A:
+
Хэрэв та уян дискийг UNIX(R) системээс бэлдэж байгаа бол( өөр FreeBSD системээс) та man:dd[1] тушаалыг ашиглан дүрс файлыг уян диск дээр буулгаж болно. FreeBSD дээр:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -456,7 +456,7 @@ FreeBSD/pc98 хувилбаруудад суулгалтын ачаалагда
+
. FreeBSD ачаалагдаж эхлэнэ. Хэрэв та CDROM -ноос эхлүүлсэн бол дараах зүйлтэй адилхан мэдэгдэл харах болно (хувилбарын хэсгийг оруулаагүй болно):
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
645MB medium detected
@@ -483,7 +483,7 @@ Loading /boot/defaults/loader.conf
+
Хэрэв та уян дискнээс эхлүүлж байгаа бол дараах мэдэгдэлтэй ижил бичиглэлийг харна (хувилбарын хэсгийг оруулаагүй болно):
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -518,7 +518,7 @@ image::boot-loader-menu.png[]
Ингэхийн тулд системийг дахин ачаалж эхлүүлэх үеийн мэдэгдэл гарч ирэхийг хүлээх хэрэгтэй. Энэ нь тухайн загвараас шалтгаалах боловч доор дурдсантай төстэй харагдах ёстой:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -528,7 +528,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Хэрэв таны систем дискнээс энэ үед ачаалж эхэлбэл та PROM хүлээх мөрөнд орохын тулд kbd:[L1+A] эсвэл kbd:[Stop+A] товчлуурын хослолыг дарах юм уу эсвэл цуваа консолоос (жишээ нь man:tip[1] эсвэл man:cu[1] дээр `~#`-г ашиглан) `BREAK`-г илгээх хэрэгтэй. Энэ нь иймэрхүү харагдах болно:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -551,7 +551,7 @@ ok {0} <.>
[[install-dev-probe]]
.Төхөөрөмж таньсан бүртгэл бичлэг
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -763,7 +763,7 @@ FreeBSD-г хэрэглэх үедээ BIOS-г үргэлж өөрөөр нь д
Стандарт суулгацыг сонгосны дараа sysinstall танд дараах мэдэгдлийг харуулна:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -780,7 +780,7 @@ FreeBSD-г хэрэглэх үедээ BIOS-г үргэлж өөрөөр нь д
Энэ хэсгийг орчуулбал:
-[source,bash]
+[source,shell]
....
Мэдэгдэл
Дараагийн хэсэгт та өөрийнхөө дискэнд DOS-маягийн ("fdisk")
@@ -945,7 +945,7 @@ kbd:[Tab] товч хэрэглэн btn:[OK], дээр сонгоод kbd:[Enter
Хуваагдлынхаа загвараа ингэж хийж дуусаад sysinstall-г ашиглаж үүсгэх хэрэгтэй. Үүсгэх үед дараах мэдэгдлийг танд харуулдаг:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -961,7 +961,7 @@ kbd:[Tab] товч хэрэглэн btn:[OK], дээр сонгоод kbd:[Enter
Үүний хөрвүүлбэл:
-[source,bash]
+[source,shell]
....
Мэдэгдэл
Та одоо, fdisk ашиглан бий болгосон хуваалтаар BSD хуваалт үүсгэх хэрэгтэй.
@@ -1061,7 +1061,7 @@ image::dist-set.png[]
Порт суулгах програм нь таны дискний зай хангалттай эсэхийг шалгадаггүй. Тийм болохоор дискэнд тань хангалттай зай байгаа тохиолдолд энэ сонголтыг хийх хэрэгтэй. FreeBSD {rel120-current} хувилбарын байдлаар бол портын цуглуулга нь ойролцоогоор {ports-size} хэмжээг дискэн дээр эзэлдэг. FreeBSD-н хувилбар шинэчлэх тутамд энэ хэмжээ ихсэнэ гэж тооцох хэрэгтэй.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1130,7 +1130,7 @@ FTP via a HTTP proxy (HTTP проксигоор дамжиж): [.guimenuitem]#In
Хэрэв хүсвэл, одоо суулгацыг гүйцэтгэж болно. Энэ нь мөн хатуу дискэнд өөрчлөлт оруулахаас сэргийлж цуцалж болох сүүлийн боломж юм.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1149,7 +1149,7 @@ btn:[yes] товчийг сонгоод kbd:[Enter] товч дарж суулг
Дараах бичиглэл харуулагдсан үед суулгац гүйцсэн байдаг:
-[source,bash]
+[source,shell]
....
Message
@@ -1170,7 +1170,7 @@ kbd:[Enter] товч дээр дарж суулгацын дараах тохи
btn:[no] товчийг сонгоод kbd:[Enter] товч дарвал суулгац цуцлагдах бөгөөд системд ямар ч өөрчлөлт хийгдэхгүй. Тэгээд дараах мэдээллийг харуулдаг:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1195,7 +1195,7 @@ installation menus to retry whichever operations have failed.
Дотоод сүлжээний тухай нарийвчилсан мэдээлэл мөн FreeBSD-г сүлжээний gateway/router буюу хаалга/дамжуулагч (гарц/чиглүүлэгч) хэрхэн болгох талаар crossref:advanced-networking[advanced-networking,Нэмэлт сүлжээ] хэсгээс харна уу.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1211,7 +1211,7 @@ image::ed0-conf.png[]
Тохируулах төхөөрөмжөө сумтай товч хэрэглэж сонгоод kbd:[Enter] товч дээр дарна.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1223,7 +1223,7 @@ image::ed0-conf.png[]
Хэрэв та өмнө нь байсан IPv6 сүлжээгээр RA сервер уруу холбогдсон байгаа бол btn:[yes] гэж сонгоод kbd:[Enter] дарах хэрэгтэй. Ингэсний дараа хэсэг хугацааны турш RA серверийг хайдаг.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1266,7 +1266,7 @@ Extra options to ifconfig буюу ifconfig-н нэмэлт тохиргоону
Хэрэв дууссан бол kbd:[Tab] товч ашиглан btn:[OK] цэсийг сонгоод kbd:[Enter] товч дарна.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to bring the ed0 interface right now?
@@ -1279,7 +1279,7 @@ btn:[yes] гэж сонгоод kbd:[Enter] товч дарснаар уг ма
[[gateway]]
=== Gateway буюу сүлжээний хаалганы тохиргоо
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1292,7 +1292,7 @@ btn:[yes] гэж сонгоод kbd:[Enter] товч дарснаар уг ма
[[inetd-services]]
=== Интернэт үйлчилгээнүүдийг тохируулах
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1306,7 +1306,7 @@ Do you want to configure inetd and the network services that it provides?
Хэрэв та суулгаж байх явцад эдгээр үйлчилгээнүүдийг тохируулахыг хүсвэл btn:[yes] гэж сонгоно. Нэмэлт лавлаж асуусан цонх харуулагдах болно:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1321,7 +1321,7 @@ With this in mind, do you wish to enable inetd?
btn:[yes] дээр дарж үргэлжлүүлээрэй.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1348,7 +1348,7 @@ image::edit-inetd-conf.png[]
[[ssh-login]]
=== SSH нэвтрэлтийг идэвхжүүлэх нь
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1360,7 +1360,7 @@ btn:[yes]-г сонгосноор OpenSSH-ийн демон програм бо
[[ftpanon]]
=== Anonymous буюу нэр нь үл мэдэгч FTP үйлчилгээ
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1380,7 +1380,7 @@ btn:[yes]-г сонгосноор OpenSSH-ийн демон програм бо
anonymous буюу нэр нь үл мэдэгдэгч FTP хэрэглэгчийг зөвшөөрөхийн тулд, сумтай товч ашиглан btn:[yes] гэж сонгоод kbd:[Enter] дараарай. Нэмэлт батлалт хүлээх дэлгэц харуулагдах болно:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1428,7 +1428,7 @@ FTP-н root буюу эх сан нь анхдагч тохиргоогоор [.
Хэрэв та оруулсан утгуудыг зөв болсон гэж бодож байгаа бол kbd:[Enter] дээр дарж үргэлжлүүлээрэй.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1454,7 +1454,7 @@ Network File System (NFS) нь сүлжээнд буй файлуудыг хув
[[nsf-server-options]]
==== NFS сервер
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1466,7 +1466,7 @@ Network File System (NFS) нь сүлжээнд буй файлуудыг хув
Хэрэв сервер хэрэгтэй гэвэл btn:[yes] гэж сонгох хэрэгтэй бөгөөд танд жижиг цонхон дээр [.filename]#exports# файл үүсгэгдэх ёстой гэсэн сануулга гарч ирдэг.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1491,7 +1491,7 @@ kbd:[Esc] дарахад цэстэй цонх үүсэх бөгөөд [.guimenu
NFS хэрэглэгчид нь NFS сервер уруу холбогддог.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1506,7 +1506,7 @@ NFS хэрэглэгчид нь NFS сервер уруу холбогддог.
Системийнхээ консолыг өөрчлөх хэд хэдэн тохиргоо байдаг.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1549,7 +1549,7 @@ image::console-saver4.png[]
Жишээн дээр, Америкийн Нэгдсэн Улсын Eastern буюу зүүн хэсгийн цагийн бүсийг тохируулж байна. Таны тохируулга байгаа газраасаа шалтгаалж өөр байх болно.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1559,7 +1559,7 @@ image::console-saver4.png[]
btn:[yes] гэж сонгоод kbd:[Enter] дарвал цагийн бүсийг тохируулах болно.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1588,7 +1588,7 @@ image::timezone3.png[]
Сумтай товч хэрэглэж тохирсон цагийн бүсээ сонгоод kbd:[Enter] дээр дарна.
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1603,7 +1603,7 @@ image::timezone3.png[]
Энэ тохиргоо нь таныг 3 товчтой хулганаар, програм болон консолд текст тасдаж сануулах болон буулгах боломж өгдөг. Хэрэв 2 товчит хулгана хэрэглэж байгаа бол man:moused[8] гарын авлагаас лавлаж хэрхэн гурван товчтой хулгана болгон ажиллуулж болдгийг харж болно. Энэ жишээн дээр USB биш төрлийн хулганы тохируулгыг харуулж байна (PS/2 эсвэл COM портоор холбогддог хулгана):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1658,7 +1658,7 @@ image::mouse6.png[]
Үзүүлэх журмаар нэг багцыг суулгах явцыг энд харуулав. Хэрэв шаардлагатай бол нэмэлт багцууд мөн давхар суугддаг. Суулгасны дараа `sysinstall`-г нэмэлт багц суулгахад хэрэглэж болно.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1711,7 +1711,7 @@ btn:[OK] гэж сонгоод kbd:[Enter] дарж багц суулгалты
Суулгацын явцад та хамгийн багадаа нэг хэрэглэгчийн эрх нээх хэрэгтэй бөгөөд, энэ эрхээрээ `root` эрх хэрэглэлгүйгээр системдээ нэвтэрч болно. root хуваалт нь голдуу тун бага хэмжээтэй байдаг болохоор `root` эрхээр програм ажиллуулбал түргэн дүүрдэг. Хамгийн хэцүү хүндрэлийг доор мэдүүлж байна:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1777,7 +1777,7 @@ image::adduser3.png[]
[[rootpass]]
=== `root` нууц үг оруулах
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1792,7 +1792,7 @@ kbd:[Enter] дээр дарж `root` нууц үг оруулна.
Нууц үгийг хоёр удаа зөв оруулах ёстой. Мартахааргүй нууц үг оруулаарай гэж сануулах нь илүүдэх байх. Таны оруулсан нууц үгийг давтаж харуулах юм уу эсвэл одоор дүрсэлж харуулахгүй болохыг сануулж байна.
-[source,bash]
+[source,shell]
....
New password:
Retype new password :
@@ -1805,7 +1805,7 @@ Retype new password :
Хэрэв та одоо <<network-services,нэмэлт сүлжээний тохиргоо>> юм уу эсвэл ямар нэгэн өөр тохиргоо хийхийг хүсвэл, та яг одоо юм уу эсвэл суулгасны дараа `sysinstall` ашиглаж суулгана.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1822,7 +1822,7 @@ image::mainexit.png[]
Сумтай товчоор btn:[X Exit Install] гэдгийг сонгон kbd:[Enter] дээр дарна. Танаас гарах гэж буйг тань лавлаж асуух болно:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -1832,7 +1832,7 @@ image::mainexit.png[]
btn:[yes] гэж сонгоно. Хэрэв та CDROM хөтлөгчөөс ачаалж байгаа бол дараах мэдэгдэл дискийг хөтлөгчөөс авахыг танаас хүсэх болно:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -1864,7 +1864,7 @@ image::net-config-menu1.png[]
Дараагийн тохируулга, [.guimenuitem]#AMD Flags# сонголт. Хэрэв энэ сонгогдвол жижиг цэстэй цонх үсэрч гарч ирдэг бөгөөд ямар AMD тохиргоо хийхийг зааж өгдөг. Уг цэсэнд анхдагч тохируулгууд нь заагдчихсан байдаг:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1935,7 +1935,7 @@ man:rpcbind[8], man:rpc.statd[8], болон man:rpc.lockd[8] хэрэгслүү
Ердийн эхлэн ачаалах үеийн мэдэгдэл (хувилбарын тухай хэсгийг оруулалгүйгээр):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2074,7 +2074,7 @@ RSA болон DSA түлхүүрүүдийг үүсгэх явц нь удаа
Үйлдлийн системийг зөв унтраах нь тун чухал. Шууд хүч хэрэглэн унтрааж болохгүй. Эхлээд `su` гэсэн тушаал оруулаад `root` нууц үгээ бичиж өгөн супер хэрэглэгч болох хэрэгтэй. Энэ нь зөвхөн тухайн хэрэглэгч `wheel` бүлэгт хамаарагдсан үед биелнэ. Эсвэл `root` хэрэглэгч болж нэвтрэх хэрэгтэй. Ингээд `shutdown -h now` тушаалыг оруулна.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2126,7 +2126,7 @@ FreeBSD нь MS-DOS(R) файлын системүүдийг (заримдаа F
MS-DOS(R) файлын системд зориулсан man:mount[8] дуудлага иймэрхүү байна:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2146,7 +2146,7 @@ NTFS хуваалтыг бас таниулан холбохдоо өмнөхт
FreeBSD нь системийн ACPI үйлчилгээг ачаалах явцад илрүүлсэн бол түүнийг i386, amd64 болон ia64 тавцангууд дээр өргөнөөр ашигладаг. Харамсалтай нь ACPI драйвер болон системийн эх хавтан ба BIOS-д алдаанууд байсаар байгаа билээ. Гуравдагч шатны ачаалагч дуудагч дээр `hint.acpi.0.disabled` тохиргоог тохируулснаар ACPI-ийн хэрэглээг хааж болдог:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2163,7 +2163,7 @@ FreeBSD нь системийн ACPI үйлчилгээг ачаалах явц
FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгөөд FreeBSD-ийн дискний дугаар нь 2 юм. Тэгэхээр та ингэж хэлж өгөх хэрэгтэй-:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2172,7 +2172,7 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
Хоёр дахь нь та систем дээрээ нэг буюу түүнээс олон IDE дискнүүдтэй бөгөөд SCSI дискнээс ачаалах тохиолдол юм. Энэ тохиолдолд FreeBSD-ийн дискний дугаар нь BIOS-ийн дискний дугаараас бага байдаг. Хэрэв хоёр IDE дисктэй бөгөөд бас SCSI дисктэй бол SCSI диск нь `da` төрлийн BIOS диск 2 ба FreeBSD-ийн дискний дугаар 0 байна. Тэгэхээр та:
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2223,7 +2223,7 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
+
Хэрэв та урьд нь USB зөөгчөөс эхлэн ачаалж байсан бол, FreeBSD нь ердийн энгийн суулгацын горимоор эхлэн ачаалах болно. Гэхдээ бид нар суулгацаа цуваа холболт уруу орж эхлүүлэх ёстой билээ. Ингэхийн тулд FreeBSD уруу USB дискийг man:mount[8] тушаал ашиглаж таниулж холбох хэрэгтэй.
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2235,14 +2235,14 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
+
Одоо та зөөгчийг холбосон болохоор USB зөөгчийг цуваа консолоос эхлэн ачаалахыг зааж өгөх ёстой. Та USB зөөгчийн файлын системийн [.filename]#loader.conf# файлыг системийн консолийг цуваа консол гэж зааж байгаа мөрөн дээр нэмж өгөх шаардлагатай:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /mnt/boot/loader.conf
....
+
Ингээд та USB зөөгчөө зөв тохируулчихсан учраас таниулсан дискээ man:umount[8] тушаалаар буцааж салгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2254,7 +2254,7 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
+
Суулгалт ISO дүрсийг жишээ нь [.filename]#FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso# хадгалсан FreeBSD системээс man:tar[1] хэрэгслийг ашиглан бүх файлыг задалж авна:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# mkdir /path/to/headless-iso
# tar -C /path/to/headless-iso -pxvf FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso
@@ -2262,14 +2262,14 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
+
Та одоо цуваа консол руу ачаалах суулгалтын зөөгчийг тохируулж өгөх ёстой. Та задлагдсан ISO дүрснээс авсан [.filename]#loader.conf# файлдаа системийн консолийг цуваа консол болгон тохируулах мөр нэмж өгөх ёстой:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /path/to/headless-iso/boot/loader.conf
....
+
Дараа нь бид өөрчлөгдсөн модноос шинэ ISO дүрсээ үүсгэж болно. package:sysutils/cdrtools[] портын man:mkisofs[8] хэрэгслийг ашиглана:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "Headless_install" \
-o Headless-FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso /path/to/headless-iso
@@ -2286,7 +2286,7 @@ FreeBSD нь `ad` төрлийн BIOS диск 1 дээр байгаа бөгө
+
Та одоо тэр машин уруугаа man:cu[1] тушаал хэрэглэж холбогдох хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
@@ -2385,7 +2385,7 @@ FreeBSD дискний зохион байгуулалт нь FTP хуудаст
. FTP хуудас эрхэлж байх ёстой FreeBSD компьютерт CDROM төхөөрөмж байх шаардлагатай бөгөөд [.filename]#/cdrom# санд таниулж холбосон байх ёстой.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2423,7 +2423,7 @@ ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent
Хэрэв та уян дискээ MS-DOS(R) файл систем дээр биш харин өөр FreeBSD машин дээр бэлтгэж байсан ч гэсэн цэвэрлэх нь зөв санаа гэдгийг дахин сануулмаар байна. Та `bsdlabel` болон `newfs` тушаалуудыг ашиглаж UFS файлын систем суулгахыг хүсвэл ( 3.5" 1.44 MB диск дээр) дараах тушаалуудыг өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w -r fd0.1440 floppy3
@@ -2446,7 +2446,7 @@ ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent
MS-DOS(R) хуваалтаас суулгацыг бэлтгэхийн тулд, уг хуваалтын эх хэсэг дээр [.filename]#freebsd# нэртэй сан үүсгэж дотор нь түгээлтийн файлуудыг хуулах хэрэгтэй. Жишээ нь, [.filename]#c:\freebsd#. CDROM юм уу FTP хуудсанд байсан файлуудын сангийн бүтэц нь уг сан доторхтой ижил байх ёстой бөгөөд хуулахын тулд MS-DOS(R)-н `xcopy` тушаалыг ашиглан CD-с хуулаарай. Жишээ нь, FreeBSD-н хамгийн бага суулгацыг гүйцэтгэхийн тулд:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2463,7 +2463,7 @@ MS-DOS(R)-с суулгахыг хүссэн тархац болгоныг (хэ
Бичсэн туузнаас суулгах нь FTP юм уу CDROM-с суулгаснаас хамаагүй амархан арга байж болох юм. Суулгац програм нь бичлэг дээр tar хэлбэрээр нэгтгэж бичигдсэн байх ёстой. Суулгахыг хүссэн тархцаа авсны дараа туузан дээр шахаж бичих хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/mn/books/handbook/jails/_index.adoc b/documentation/content/mn/books/handbook/jails/_index.adoc
index fa9355f04a..7185b3eceb 100644
--- a/documentation/content/mn/books/handbook/jails/_index.adoc
+++ b/documentation/content/mn/books/handbook/jails/_index.adoc
@@ -118,7 +118,7 @@ BSD-тэй төстэй үйлдлийн системүүд нь 4.2BSD-ийн
Зарим администраторууд шоронг дараах хоёр төрөлд хуваадаг: эдгээр нь жинхэнэ FreeBSD системтэй адил төстэй "бүрэн" шоронгууд болон нэг програм юм уу эсвэл үйлчилгээнд зориулагдсан, магадгүй зөвшөөрлүүдтэй ажиллах "үйлчилгээ" шоронгууд юм. Энэ нь зөвхөн ухагдахууны хуваагдал бөгөөд шоронг бүтээх процесс үүнд хамаагүй юм. man:jail[8] гарын авлагын хуудас шоронг бүтээх аргачлалын талаар маш тодорхой зааварласан буй:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -180,7 +180,7 @@ man:rc.conf[5]-д тохируулагдсан шоронгуудын анхда
Шоронд зориулагдсан оруулга [.filename]#rc.conf# файлд байгаа тохиолдолд man:service[8] шоронг гараар эхлүүлэх эсвэл зогсооход ашиглагдаж болох юм:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -188,7 +188,7 @@ man:rc.conf[5]-д тохируулагдсан шоронгуудын анхда
Одоогоор man:jail[8]-г зогсоох цэвэр зам байхгүй байгаа. Цэвэр системийн зогсолтыг хийх тушаалуудыг шорон дотор ашиглах боломжгүй байдаг болохоор тэр юм. Шоронг зогсоох хамгийн шилдэг арга бол дараах тушаалыг шорон дотроос ажиллуулах эсвэл шоронгийн гадна man:jexec[8] хэрэгслийг ашиглах явдал юм:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -223,7 +223,7 @@ FreeBSD-ийн үндсэн систем нь идэвхтэй шоронгуу
* Идэвхтэй байгаа шоронгуудын жагсаалт болон тэдгээрийн харгалзах шорон танигч (JID), IP хаяг, хостын нэр болон замыг үзүүлнэ.
* Өөрийнх нь хост системээс ажиллаж байгаа шоронд залгагдаж шорон дотор тушаал ажиллуулах юм уу эсвэл шоронгийн удирдлагын ажлуудыг шорон дотор ажиллуулна. `root` хэрэглэгч шоронг цэвэрхэн зогсоож унтраахыг хүсэх үед энэ нь ялангуяа ашигтай байдаг. Шорон дотор удирдлага хийхийн тулд түүн дотор бүрхүүл эхлүүлэхэд man:jexec[8] хэрэгсэл бас ашиглагдаж болдог; жишээ нь:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -296,7 +296,7 @@ FreeBSD системийг сүүлийн -RELEASE салбар уруу шин
. Эхлээд бидний шоронгуудад зориулсан FreeBSD-ийн хоёртын файлуудыг агуулах зөвхөн уншигдах файлын системийн сангийн бүтцийг үүсгэх хэрэгтэй бөгөөд дараа нь FreeBSD-ийн эх модны сан уруу сангаа сольж ороод зөвхөн уншигдах файлын системийг шоронгийн загвар уруу суулгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -305,7 +305,7 @@ FreeBSD системийг сүүлийн -RELEASE салбар уруу шин
+
. Дараа нь шоронгуудад зориулж FreeBSD-ийн портын цуглуулга болон mergemaster-т шаардлагатай, FreeBSD-ийн эх модыг бэлдэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -315,7 +315,7 @@ FreeBSD системийг сүүлийн -RELEASE салбар уруу шин
+
. Системийн уншигдах, бичигдэх хэсэгт зориулж араг ясыг үүсгэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -327,7 +327,7 @@ FreeBSD системийг сүүлийн -RELEASE салбар уруу шин
+
. Байхгүй байгаа тохиргооны файлуудыг суулгахын тулд mergemaster-г ашиглах хэрэгтэй. Дараа нь mergemaster-ийн үүсгэсэн илүү сангуудыг арилгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -336,7 +336,7 @@ FreeBSD системийг сүүлийн -RELEASE салбар уруу шин
+
. Одоо уншигдах, бичигдэх файлын системийг зөвхөн уншигдах файлын систем уруу заасан симболын холбоос үүсгэх хэрэгтэй. Симболын холбоосууд нь зөв [.filename]#s/# байрлалуудад үүсгэгдсэн эсэхийг шалгаарай. Жинхэнэ сангууд юм уу эсвэл сангуудын үүсгэлт буруу байрлалуудад хийгдсэн бол суулгалт амжилтгүй болоход хүргэнэ.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -414,14 +414,14 @@ jail_www_devfs_enable="YES"
+
. Шорон бүрийн зөвхөн уншигдах файлын системд зориулсан, шаардлагатай холбох цэгүүдийг үүсгэнэ:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Шорон бүрт уншигдах, бичигдэх загварыг суулгах хэрэгтэй. package:sysutils/cpdup[] хэрэгслийн хэрэглээг энд тэмдэглэх нь зүйтэй юм. Энэ нь сан бүрийн зөв хуулбарыг хийхэд тусалдаг:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -431,7 +431,7 @@ jail_www_devfs_enable="YES"
+
. Энэ үед шоронгууд нь бүтээгдэж ажиллахад бэлтгэгдсэн байна. Эхлээд шорон бүрийн хувьд шаардлагатай файлын системийг холбож дараа нь тэдгээрийг jail rc скрипт ашиглан эхлүүлэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -440,7 +440,7 @@ jail_www_devfs_enable="YES"
Шоронгууд нь одоо ажиллаж байх ёстой. Тэдгээрийг зөв эхэлсэн эсэхийг шалгахын тулд man:jls[8] тушаалыг ашиглана. Үүний гаралт доор дурдсантай төстэй байх ёстой:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -451,7 +451,7 @@ jail_www_devfs_enable="YES"
Энэ үед шорон бүр рүү нэвтэрч, шинэ хэрэглэгчид нэмэх эсвэл дэмонуудыг тохируулах боломжтой болсон байх ёстой. `JID` багана нь ажиллаж байгаа шорон бүрийн шорон таниулах дугаарыг илэрхийлдэг. `JID` нь 3 бүхий шорон дотор удирдлагын ажлуудыг гүйцэтгэхийн тулд дараах тушаалыг ашиглах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -466,7 +466,7 @@ jail_www_devfs_enable="YES"
. Эхний алхам нь хост системийг журмын дагуу шинэчлэх явдал юм. Дараа шинэ, түр зуурын, зөвхөн уншигдах загварыг [.filename]#/home/j/mroot2#-д үүсгэх хэрэгтэй.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -478,7 +478,7 @@ jail_www_devfs_enable="YES"
+
`installworld` ажиллахдаа цөөн хэрэггүй сангуудыг үүсгэдэг бөгөөд эдгээрийг устгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -486,7 +486,7 @@ jail_www_devfs_enable="YES"
+
. Мастер файлын системд зориулж уншигдах, бичигдэх симболын холбоосуудыг дахин үүсгэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -499,14 +499,14 @@ jail_www_devfs_enable="YES"
+
. Шоронгуудыг зогсоох зөв үе нь одоо байна:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
+
. Эх файлын системүүдийг салгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -523,7 +523,7 @@ jail_www_devfs_enable="YES"
+
. Хуучин зөвхөн уншигдах файлын системийг шилжүүлж шинээр сольно. Ямар нэг юм болохоо байхад энэ нь хуучин, зөвхөн уншигдах файлын системийн нөөц болон архив маягаар ашиглагдах юм. Энд ашиглагдсан нэрлэх аргачлал нь шинэ, зөвхөн уншигдах файлын систем үүсгэгдэх үеийнхтэй тохирдог. Зай болон inode-уудыг хэмнэхийн тулд FreeBSD-ийн эх портын цуглуулгыг шинэ файлын систем уруу шилжүүлэх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -533,7 +533,7 @@ jail_www_devfs_enable="YES"
+
. Энэ үед шинэ, зөвхөн уншигдах загвар бэлэн болох бөгөөд үлдсэн цорын ганц ажил нь файлын системүүдийг дахин холбож шоронгуудыг эхлүүлэх явдал юм:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
diff --git a/documentation/content/mn/books/handbook/kernelconfig/_index.adoc b/documentation/content/mn/books/handbook/kernelconfig/_index.adoc
index 1a950107a7..fed4cbdf7a 100644
--- a/documentation/content/mn/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/mn/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01
Ашигтай мэлээлэл олж авахын тулд man:man[1] уруу `-k` тугийг өгөн ашиглаж болно. Дээрхээс ингэж өгч болно:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -170,7 +170,7 @@ Alternatively, to load the driver as a module at boot time, place the
====
Хэрэв [.filename]#/usr/src/# сан таны систем дээр байхгүй (эсвэл хоосон бол) эх суугаагүй байна. Бүрэн гүйцэд эх модыг суулгах хялбар аргаар хийхийн тулд crossref:cutting-edge[synching,Өөрийн эхийг хамгийн сүүлийн хэлбэрт аваачих нь] хэсэгт тайлбарласны дагуу man:csup[1]-г ашиглах явдал юм. Та бас [.filename]#/usr/src/sys/# рүү заасан симболын холбоос үүсгэж өгөх ёстой:
-[source,bash]
+[source,shell]
....
# ln -s /usr/src/sys /sys
....
@@ -179,7 +179,7 @@ Alternatively, to load the driver as a module at boot time, place the
Дараа нь [.filename]#arch/conf# сан уруу шилжээд [.filename]#GENERIC# тохиргооны файлыг та өөрийн цөмдөө өгөх нэр уруу хуул. Жишээ нь:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -196,7 +196,7 @@ Alternatively, to load the driver as a module at boot time, place the
Жишээ нь:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -227,21 +227,21 @@ Alternatively, to load the driver as a module at boot time, place the
. [.filename]#/usr/src# сан уруу орно:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Цөмийг хөрвүүлнэ:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Шинэ цөмийг суулгана:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -298,7 +298,7 @@ options IPDIVERT
====
Тест хийх зорилгоор ихэнхдээ бүх байгаа тохируулгууд агуулсан файлыг бүтээхдээ дараах тушаалыг `root` эрхээр ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1145,7 +1145,7 @@ FreeBSD дэх PAE дэмжлэг нь цөөн хэдэн хязгаарууд
`config` амжилтгүй болох:::
Хэрэв таныг цөмийн тайлбарыг man:config[8]-т өгөхөд тушаал амжилтгүй болбол та хаа нэгтээ энгийн алдаа хийсэн болов уу. Аз болоход man:config[8] асуудалтай байгаа мөрийн дугаарыг хэвлэх учир та алдаатай мөрийг хурдан олох болно. Жишээ нь, хэрэв та доор дурдсаныг харвал:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1164,7 +1164,7 @@ config: line 17: syntax error
====
Хэрэв та цөмийг бүтээхэд асуудалтай байгаа бол [.filename]#GENERIC# болон өөр бусад ажилладаг цөмийг дараагийн бүтээх явцад устгагдахааргүй өөр нэртэйгээр гарын дор хадгалж байгаарай. Та [.filename]#kernel.old# -д найдаж болохгүй, учир нь шинэ цөмийг суулгах явцад [.filename]#kernel.old# нь хамгийн сүүлд суулгагдсан бөгөөд магадгүй ажиллагаагүй тийм цөмөөр дарагдан бичигддэг. Ажилладаг цөмийг зөв [.filename]#/boot/kernel# байр уруу аль болох хурдан шилжүүлээрэй, эсвэл man:ps[1] зэрэг тушаалууд зөв ажиллахгүй байж магадгүй юм. Ингэхийн тулд сайн цөм байгаа сангийн нэрийг өөрчлөөрэй:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/mn/books/handbook/l10n/_index.adoc b/documentation/content/mn/books/handbook/l10n/_index.adoc
index d505825b97..37f94302b7 100644
--- a/documentation/content/mn/books/handbook/l10n/_index.adoc
+++ b/documentation/content/mn/books/handbook/l10n/_index.adoc
@@ -113,7 +113,7 @@ FreeBSD системийг тухайн хэл уруу (эсвэл I18N дэм
Байгаа локалчлалын жагсаалтыг дараах тушаалаар авч болно:
-[source,bash]
+[source,shell]
....
% locale -a
....
@@ -219,7 +219,7 @@ german|German Users Accounts:\
Хэрэглэгчийн нэвтрэх ангиллуудыг өөрчлөхөөсөө өмнө дараах тушаалыг ажиллуулж
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -242,7 +242,7 @@ user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh
* [.filename]#/etc/adduser.conf# файлд `defaultclass = language`-г тохируулна. Та энэ тохиолдолд бусад хэлнүүдийн бүх хэрэглэгчдэд зориулан `анхдагч` ангилалыг оруулах хэрэгтэйг санах хэрэгтэй.
* man:adduser[8]-с гарч ирэх асуулт бүрт
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
@@ -251,7 +251,7 @@ Enter login class: default []:
* Өөр нэг арга нь нэмэхээр хүсэж байгаа өөр хэлний хэрэглэгч бүрийн хувьд доор дурдсаныг ашиглах явдал юм:
+
-[source,bash]
+[source,shell]
....
# adduser -class language
....
@@ -260,7 +260,7 @@ Enter login class: default []:
Хэрэв та man:pw[8]-г шинэ хэрэглэгч нэмэхийн тулд ашиглаж байгаа бол үүнийг иймэрхүү маягаар дуудаарай:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
diff --git a/documentation/content/mn/books/handbook/linuxemu/_index.adoc b/documentation/content/mn/books/handbook/linuxemu/_index.adoc
index a859507dd8..209fdcfa8a 100644
--- a/documentation/content/mn/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/mn/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ FreeBSD нь Линуксийг оруулаад хэд хэдэн бусад UN
Линуксийн хоёртын нийлэмж анхдагчаар идэвхтэй байдаггүй. Энэ ажиллагааг хамгийн хялбараар идэвхжүүлэхийн тулд `линукс` KLD обьектийг ("Kernel LoaDable обьект") дуудах явдал юм. Та энэ модулийг дараах тушаалыг `root` эрхээр ажиллуулж дуудаж болно:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
KLD дуудагдсан эсэхийг шалгахын тулд man:kldstat[8] тушаалыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ Id Refs Address Size Name
Ажиллах үеийн сангуудыг суулгахад ашиглах хамгийн хялбар арга нь энэ юм. Энэ нь ямар нэгэн портыг crossref:ports[ports,Портын цуглуулга]ас суулгаж байгаатай адил юм. Ердөө л доор дурдсаныг хийх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-fc10
# make install distclean
@@ -136,7 +136,7 @@ FreeBSD 8.0-с өмнөх FreeBSD системүүд дээр та package:emula
Та FTP ашиглан Doom гэсэн Линуксийн хоёртын файлыг авч өөрөө хандаж болох Линукс систем дээрээ байрлуулсан гэж үзье. Та тэгээд үүний шаарддаг хуваалцсан сангуудыг `ldd linuxdoom` тушаал ашиглан иймэрхүүгээр шалгаж болно:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -146,7 +146,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Та сүүлийн баганад байгаа бүх файлуудыг авч эхний баганад байгаа нэрсийг тэдгээр уруу заасан симболын холбоосууд болгон [.filename]#/compat/linux# дотор байрлуулах хэрэгтэй. Энэ нь та өөрийн FreeBSD системдээ эцсийн эцэст эдгээр файлуудтай болно гэсэн үг юм:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -160,7 +160,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
====
Хэрэв та `ldd` тушаалын гаралтын эхний баганатай Линуксийн хуваалцсан сангийн гол залруулалтын дугаар таарсан тийм Линуксийн хуваалцсан сантай байгаа бол сүүлийн баганад байгаа файлуудыг өөрийн систем уруу хуулах шаардлагагүй бөгөөд танд байгаа чинь ажиллах ёстойг санаарай. Хэрэв шинэ хувилбар бол хуваалцсан санг ямар ч байсан хуулахыг зөвлөдөг. Та шинэ уруу заасан симболын холбоос үүсгэснийхээ дараа хуучинг устгаж болно. Тэгэхээр хэрэв эдгээр сангууд таны өөрийн системд байгаа:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -168,14 +168,14 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
бөгөөд шинэ сан нь `ldd` тушаалын гаралтын дагуу сүүлийн хувилбарыг шаардана гэж байгааг мэдвэл:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Хэрэв төгсөж байгаа тоон дээр зөвхөн нэг юм уу эсвэл хоёр хувилбар хуучин байгаа бол [.filename]#/lib/libc.so.4.6.29#-г бас хуулж санаагаа зовоогоод хэрэггүй бөгөөд програм нь нэлээн хуучин хувилбартай зүгээр ажиллах ёстой юм. Гэхдээ хэрэв та хүсэж байгаа бол [.filename]#libc.so#-г ямар ч байсан гэсэн солихоор шийдэж болох бөгөөд энэ нь таныг доорхтой үлдээх болно:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -192,7 +192,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
ELF хоёртын файлууд нь заримдаа "branding" буюу "тамгалах" нэмэлт алхмыг шаарддаг. Хэрэв та тамгалаагүй ELF хоёртын файлыг ажиллуулахыг оролдвол доор дурдсантай төстэй алдааг хүлээн авах болно:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -201,7 +201,7 @@ Abort
FreeBSD цөмд FreeBSD ELF хоёртын файлыг Линуксийн хоёртын файлаас ялгахад туслахын тулд man:brandelf[1] хэрэгслийг ашиглана.
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -214,7 +214,7 @@ FreeBSD нь өөрийн багцын өгөгдлийн сантай бөгө
Гэхдээ хэрэв та Linux(R)-ийн RPM програм суулгах шаардлагатай бол үүнийг доорх аргаар хийж болно:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id
@@ -226,7 +226,7 @@ FreeBSD нь өөрийн багцын өгөгдлийн сантай бөгө
Хэрэв DNS ажиллахгүй байвал эсвэл та ийм мэдэгдэл хүлээн авбал:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -253,7 +253,7 @@ Mathematica(R) эсвэл Mathematica(R) for Students-ийн Линуксийн
Эхлээд Mathematica(R)-ийн Линукс хоёртын файлууд Линуксийн ABI-г ашиглана гэдгийг та FreeBSD-д хэлж өгөх хэрэгтэй. Ингэж хийх хамгийн хялбар арга бол бүх тамгалаагүй хоёртын файлуудын хувьд анхдагч ELF тамгалалтыг Линукс болгон дараах тушаалаар тохируулах явдал юм:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -262,7 +262,7 @@ Mathematica(R) эсвэл Mathematica(R) for Students-ийн Линуксийн
Одоо [.filename]#MathInstaller# файлыг өөрийн хатуу хөтөч уруу хуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/
@@ -300,7 +300,7 @@ Mathematica(R) нь тэмдэгтүүдийг үзүүлэхийн тулд а
Үүнийг хийх хоёр дахь арга нь сангуудыг [.filename]#/usr/X11R6/lib/X11/fonts# уруу хуулах явдал юм:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -316,7 +316,7 @@ Mathematica(R) нь тэмдэгтүүдийг үзүүлэхийн тулд а
Одоо шинэ үсгийн маягийн сангуудаа өөрийн үсгийн маягийн замдаа нэмнэ:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -398,7 +398,7 @@ exit 0
. Maple(TM)-ийг тестээр эхлүүлнэ:
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -451,7 +451,7 @@ MATLAB(R)-г суулгахын тулд доор дурдсаныг хийнэ:
. Суулгацын CD-г хийж холбоно. Суулгацын скриптийн зөвлөснөөр `root` болно. Суулгах скриптийг эхлүүлэхийн тулд доор дурдсаныг бичнэ:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -490,7 +490,7 @@ MATLAB(R)-г суулгахын тулд доор дурдсаныг хийнэ:
. Лицензийн менежерийн скриптүүдэд зориулж симболын холбоосуудыг үүсгэнэ:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -525,7 +525,7 @@ exit 0
======
Файлыг ажиллуулахаар болгох ёстой:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -535,7 +535,7 @@ exit 0
+
. Лицензийн менежерийг дараах тушаалаар эхлүүлнэ:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -546,7 +546,7 @@ exit 0
Java(TM) Runtime Environment (JRE) буюу Ажиллах үеийн орчны холбоосыг FreeBSD дээр ажиллаж байгаа уруу зааж өөрчлөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -623,7 +623,7 @@ exit 0
+
. Файлыг ажиллах боломжтой болгоно:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -647,7 +647,7 @@ exit 0
Хэрэв та ухаалаг агентийг ажиллуулахыг хүсэж байгаа бол Red Hat Tcl багц: [.filename]#tcl-8.0.3-20.i386.rpm#-г бас суулгах хэрэгтэй болно. Албан ёсны RPM порттой (package:archivers/rpm[]) багцуудыг суулгах ерөнхий тушаал бол:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm package
....
@@ -734,7 +734,7 @@ export PATH
Байнга учирдаг асуудал бол TCP протоколын хувиргагч зөв суулгагдаагүй байдаг явдал юм. Үүнээс болоод та ямар ч TCP сонсогч эхлүүлж чадахгүй. Дараах үйлдлүүд нь энэ асуудлыг шийдэхэд тусалдаг:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -831,7 +831,7 @@ ELF дуудагч нь тусгай _тамга_ хайдаг бөгөөд эн
Линукс хоёртын файлууд нь ажиллахын тулд тэдгээр нь man:brandelf[1]-ээр `Линукс` гэж _тамгалагдах_ ёстой байдаг:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/mn/books/handbook/mac/_index.adoc b/documentation/content/mn/books/handbook/mac/_index.adoc
index d9739166f2..fe6d74284e 100644
--- a/documentation/content/mn/books/handbook/mac/_index.adoc
+++ b/documentation/content/mn/books/handbook/mac/_index.adoc
@@ -156,14 +156,14 @@ _Хөөе хүлээгээрэй, энэ нь DAC-тай адил юм байн
Бүх тохиргоог man:setfmac[8] болон man:setpmac[8] хэрэгслүүдийг ашиглан хийнэ. `setfmac` тушаал нь системийн обьектууд дээр MAC хаяг/шошгонуудыг тохируулахад хэрэглэгддэг бол `setpmac` тушаал нь системийн субьектууд дээр хаяг/шошгонуудыг тохируулахад хэрэглэгддэг. Дараах тушаалыг ажиглаарай:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
Дээрх тушаалыг ажиллуулсны дараа хэрэв ямар ч алдаа гараагүй бол хүлээх мөр буцаагдах болно. Эдгээр тушаалууд нь хөдөлгөөнгүй биш байх цорын ганц үе нь алдаа гарах үе юм; man:chmod[1] болон man:chown[8] тушаалуудтай адил юм. Зарим тохиолдолд энэ алдаа нь `Permission denied` гэсэн байж болох бөгөөд энэ нь ихэвчлэн хязгаарласан обьект дээр хаяг/шошгыг тохируулах буюу засах үед гардаг. Системийн администратор үүнийг давж гарахын тулд дараах тушаалуудыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -253,7 +253,7 @@ default:\
Сүлжээний интерфэйсүүд дээр MAC хаяг/шошгыг тохируулахдаа `maclabel` тохируулгыг `ifconfig` тушаал уруу өгч болох юм. Жишээ нь:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -282,7 +282,7 @@ default:\
Дараах тушаал нь файлын системүүд дээр олон хаяг/шошготой байхаар `multilabel`-ийг тохируулна. Үүнийг зөвхөн ганц хэрэглэгчийн горимд хийж болно:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -357,7 +357,7 @@ man:mac_bsdextended[4] модуль файлын системийн галт х
man:mac_bsdextended[4] модуль ачаалагдсаны дараа тухайн үед байгаа дүрмийн тохиргоог жагсаахад дараах тушаал ашиглагдаж болно:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -365,14 +365,14 @@ man:mac_bsdextended[4] модуль ачаалагдсаны дараа туха
Яг бодож байсны дагуу ямар ч дүрмүүд тодорхойлогдоогүй байна. Энэ нь бүгд хандах боломжтой байна гэсэн үг юм. `root`-ийг орхиж бусад хэрэглэгчдийн бүх хандалтыг хаах дүрмийг үүсгэхийн тулд ердөө л дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
Энэ нь бүх хэрэглэгчдийг `ls` зэрэг хамгийн энгийн тушаалуудыг ажиллуулахыг хаах учраас маш буруу санаа юм. Илүү эх оронч дүрмүүдийн жагсаалт иймэрхүү байж болно:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -441,7 +441,7 @@ man:mac_portacl[4] модулийг төрөл бүрийн `sysctl` хувьс
Дараах жишээнүүд нь дээрх хэлэлцүүлгийг арай илүү тайлбарлах болно:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -449,21 +449,21 @@ man:mac_portacl[4] модулийг төрөл бүрийн `sysctl` хувьс
Эхлээд бид man:mac_portacl[4]-ийг стандарт эрх бүхий портуудыг хамарч ердийн UNIX(R) холболтын хязгаарлалтуудыг хаахаар тохируулна.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
`root` хэрэглэгчийг энэ бодлогоор хязгаарлахгүйн тулд `security.mac.portacl.suser_exempt`-г тэгээс ялгаатай утгаар тохируулна. man:mac_portacl[4] модуль нь одоо UNIX(R) төст системүүд анхдагч тохиргоотойгоор ажилладаг шигээр тохируулагдсан байна.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
UID 80 бүхий (ердийн тохиолдолд `www` хэрэглэгч) хэрэглэгчид 80 портыг холбохыг зөвшөөрнө. `root` эрхгүйгээр вэб сервер ажиллуулахыг `www` хэрэглэгчид зөвшөөрөхөд үүнийг ашиглаж болно.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -491,7 +491,7 @@ man:mac_partition[4] бодлого нь процессуудыг тэдгээр
Хэрэгслүүдийг хуваалтын хаяг/шошго уруу оруулах буюу тохируулахын тулд `setpmac` хэрэгслийг хэрэглэнэ:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -502,14 +502,14 @@ man:mac_partition[4] бодлого нь процессуудыг тэдгээр
Дараах тушаал нь хуваалтын хаяг/шошго болон процессийн жагсаалтыг танд харуулах болно:
-[source,bash]
+[source,shell]
....
# ps Zax
....
Дараагийн тушаал нь өөр хэрэглэгчийн процессийн хуваалтын хаяг/шошго болон тэр хэрэглэгчийн тухайн үед ажиллаж байгаа процессуудыг харахыг зөвшөөрөх болно:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -561,14 +561,14 @@ MLS дараах боломжуудыг олгодог:
MLS хаяг/шошгонуудтай ажиллахын тулд man:setfmac[8] байдаг. Обьектод хаяг/шошгыг олгохын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
[.filename]#test# файлын хувьд MLS хаяг/шошгыг авахын тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -617,7 +617,7 @@ Biba дараах боломжуудыг олгодог:
Системийн обьектууд дахь Biba бодлогын тохиргоонд хандахын тулд `setfmac` болон `getfmac` тушаалуудыг ашиглана:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -653,7 +653,7 @@ MAC LOMAC бодлого нь бүрэн бүтэн байдлын хаяг/шо
Biba болон MLS бодлогуудын нэгэн адил `setfmac` болон `setpmac` хэрэгслүүд системийн обьектууд дээр хаяг/шошгонууд байрлуулахад хэрэглэгдэж болно:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -708,7 +708,7 @@ insecure:\
Энэ хийгдсэний дараа мэдээллийн баазыг дахин бүтээхийн тулд дараах тушаалыг ажиллуулах ёстой:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -727,14 +727,14 @@ mac_seeotheruids_load="YES"
`root` хэрэглэгчийг анхдагч ангилалд доор дурдсаныг ашиглан тохируулна:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
`root` эсвэл системийн хэрэглэгчид биш бүх хэрэглэгчийн бүртгэлүүд одоо нэвтрэлийн ангилал шаардах болно. Нэвтрэлтийн ангилал шаардлагатай, түүнгүй бол хэрэглэгчид man:vi[1] зэрэг нийтлэг тушаалд хандах боломжгүй болно. Дараах `sh` скрипт үүнийг хийх болно:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -742,12 +742,12 @@ mac_seeotheruids_load="YES"
`nagios` болон `www` хэрэглэгчдийг insecure ангилалд оруулна:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -798,7 +798,7 @@ mac_seeotheruids_load="YES"
Одоо энэ файлыг өөрийн систем уруу уншуулахдаа дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /
@@ -841,7 +841,7 @@ maclabel biba/equal
Хэрэв бүгд зүгээр юм шиг санагдвал Nagios, Apache, болон Sendmail-ийг одоо аюулгүй байдлын бодлогод тааруулж ажиллуулж болно. Үүнийг дараах тушаал хийх болно:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -854,7 +854,7 @@ setpmac biba/10\(10-10\) /usr/local/etc/rc.d/nagios.sh forcestart
====
`root` хэрэглэгч аюулгүй байдлын үйлчлэлийг өөрчилж тохиргооны файлыг айлгүйгээр засварлаж чадна. Дараах тушаал нь шинээр үүсгэсэн бүрхүүлийн хувьд аюулгүй байдлын бодлогыг доод зэрэг уруу орж буурахыг зөвшөөрөх болно:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/mn/books/handbook/mail/_index.adoc b/documentation/content/mn/books/handbook/mail/_index.adoc
index 6d4fe94a16..0d8673cc34 100644
--- a/documentation/content/mn/books/handbook/mail/_index.adoc
+++ b/documentation/content/mn/books/handbook/mail/_index.adoc
@@ -108,7 +108,7 @@ DNS нь хост нэрийг IP хаягт буулгах үүрэгтэйгэ
Ямар ч домэйны хувьд MX бичлэгүүдийг man:host[1] тушаалыг ашиглан үзэж болно. Жишээг дор үзүүлэв:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -325,7 +325,7 @@ sendmail_enable="NO"
postfix-д зориулсан дараах жишээн дээрх шиг тохиргооны мөрийг [.filename]#/etc/rc.conf# файлд нэмэн шинэ MTA-г ачаалах үед эхлүүлж болно.
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable=«YES»' >> /etc/rc.conf
....
@@ -490,7 +490,7 @@ FreeBSD-н анхдагч суулгацад sendmail-г зөвхөн ажилл
Энэ байдлаас гарах хэд хэдэн зам байна. Хамгийн энгийн арга бол өөрийн ISP-н хаягийг [.filename]#/etc/mail/relay-domains#-д байгаа өртөөлөх (дамжуулах) домэйнуудын файлд бичих хэрэгтэй. Үүнийг хийх амархан аргыг үзүүлэв:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -529,7 +529,7 @@ www.example.org
Туршаад үзээрэй:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -541,7 +541,7 @@ example.FreeBSD.org has address 204.216.27.XX
Үүний оронд доор дурдсантай адил хариу авбал:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -615,7 +615,7 @@ UUCP хүргэлтийг дэмжих хамгийн шилдэг арга бо
Эхлээд та өөрийн [.filename]#.mc# файлыг үүсгэх хэрэгтэй. [.filename]#/usr/shared/sendmail/cf/cf# сан цөөн хэдэн жишээнүүдийг агуулдаг. Таныг өөрийнхөө файлыг [.filename]#foo.mc# гэж нэрлэсэн гэж үзэх юм бол түүнийг зөв [.filename]#sendmail.cf# болгож хөрвүүлэхийн тулд хийх зүйл тань:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make foo.cf
@@ -677,7 +677,7 @@ if-bus.UUCP uucp-dom:if-bus
Төгсгөлийн зөвлөгөө: хэрэв та тухайн нэг захидлын чиглүүлэлт ажиллаж байгаа эсэхэд эргэлзэж байгаа бол sendmail-ийн `-bt` тохируулгыг тогтоох хэрэгтэй. Энэ нь sendmail-ийг __хаягийн тест горим__д эхлүүлдэг; `3,0` гэж оруулаад захидал чиглүүлэлтийг тест хийхийг хүссэн хаягаа оруулах хэрэгтэй. Сүүлийн мөр нь ашиглагдсан дотоод захидлын агент, энэ агентийн дуудаж холбогдох хүрэх хост болон (магадгүй хөрвүүлэгдсэн) хаягийг хэлдэг. Энэ горимоос kbd:[Ctrl+D] даран гарна.
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -703,7 +703,7 @@ parse returns: $# uucp-dom $@ your.uucp.relay $: foo < @ example . co
Тэдгээр хэрэгцээнүүдийг хангах хялбар арга бол package:mail/ssmtp[] портыг суулгах явдал юм. Дараах тушаалуудыг `root` хэрэглэгчээр ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -809,7 +809,7 @@ saslauthd_enable="YES"
+
тэгээд эцэст нь saslauthd дэмонг эхлүүлнэ:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -827,7 +827,7 @@ SENDMAIL_LDADD=-lsasl2
Эдгээр мөрүүд нь sendmail-д package:cyrus-sasl2[] руу эмхэтгэх үед холбоос хийхэд шаардлагатай зөв тохиргооны сонголтуудыг өгөх болно. sendmail-ийг суулгахаас өмнө package:cyrus-sasl2[] суусан байгаа эсэхийг баталгаажуулаарай.
. Дараах тушаалуудыг ажиллуулж sendmail-г дахин эмхэтгэнэ:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -870,14 +870,14 @@ man:mail[1] бол FreeBSD-н хэрэглэгчийн хэрэглэж боло
Захиа хүлээж авах болон илгээхийн тулд `mail` тушаал өгнө:
-[source,bash]
+[source,shell]
....
% mail
....
Хэрэглэгч бүрд зориулсан [.filename]#/var/mail# доторх захианы хайрцаг нь `mail` хэрэгслээр уншигддаг. Хэрэв захианы хайрцаг хоосон байвал ямар ч захиа алга байна гэсэн мэдэгдэл харуулаад энэ хэрэгсэл гардаг. Захианы хайрцаг доторх захиа уншигдах үед энэ хэрэгслийн харуулах нүүр хэсэг ажиллаж эхлэн захиануудыг жагсаалт болгож харуулдаг. Дараах маягаар захианууд нь автоматаар дугаарлагдаж харуулагддаг:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -888,7 +888,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Захиануудыг одоо kbd:[t]`захианы-дугаар` гэж тушаал өгснөөр тухайн дугаартай захиаг уншина. Доорх жишээнд эхний захиаг уншиж харуулав:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -907,7 +907,7 @@ This is a test message, please reply if you receive it.
Хэрэв захианд хариулж бичих тохиолдол гарвал `mail`-н kbd:[R] эсвэл kbd:[r] товчнуудыг ашигладаг. kbd:[R] товч нь `mail`-д зөвхөн илгээсэн хүнд нь хариулж бичихийг зааж өгдөг байхад kbd:[r] товч нь илгээсэн хүнээс гадна мөн өөр бусад хүлээн авагчид уруу илгээх боломж өгдөг. Та мөн энэ тушаалуудын ард нь захианы дугаар бичиж өгөн тухайн оноосон захианд хариулт бичиж болно. Ингэж хариулж бичих үйлдэл хийх үед захианы хамгийн сүүлд нэг kbd:[.] гэсэн цэгтэй мөр нэмэгддэгийг доорх жишээнээс харна уу:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -920,7 +920,7 @@ EOT
Шинэ захиа илгээхийн тулд kbd:[m] товч хэрэглэгддэг бөгөөд энэ товчлуурын араас хүлээн авах хүний захианы хаягийг бичиж өгдөг. Олон хаяг бичигдэх тохиолдолд захианы хаяг бүр kbd:[,] гэсэн таслал тэмдгээр тусгаарлагддаг. Дараа нь захианы гарчгийг бичиж сүүлд нь захиагаа бичдэг. Захианы төгсгөл хэсгийг тусдаа нэг мөрөнд kbd:[.] гэж цэг оруулж өгснөөр захиаг дуусгадаг.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -952,7 +952,7 @@ mutt бол жижигхэн боловч маш хүчтэй захидал д
mutt-н тогтвортой хувилбарыг package:mail/mutt[] портоос суулгаж болох бөгөөд хэрэв яг одоо хөгжүүлж буй хувилбарыг нь суулгахыг хүсвэл package:mail/mutt-devel[] портоос суулгаарай.Портоо суулгасны дараа mutt-г эхлүүлэхдээ дараах тушаалыг өгдөг:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -991,7 +991,7 @@ alpine-н өмнөх хувилбаруудад алсаас холбогдсо
alpine-н одоогийн хөгжүүлж байгаа хувилбарыг package:mail/alpine[] портоос суулгана. Порт суугдсаны дараа alpine-г дараах тушаалаар эхлүүлдэг:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -1032,7 +1032,7 @@ fetchmail нь хэрэглэгчдэд алсын IMAP болон POP серв
fetchmail-ийн бүх боломжуудыг тайлбарлах нь энэ баримтын хүрээнээс гадуур боловч зарим нэг үндсэн боломжуудыг тайлбарлах болно. fetchmail хэрэгсэл нь зөв ажиллахын тулд [.filename]#.fetchmailrc# гэгддэг тохиргооны файлыг шаарддаг. Энэ файл нь серверийн мэдээлэл болон нэвтрэх итгэмжлэлүүдийг агуулдаг. Энэ файлын агуулгын мэдрэмтгий чанараас болоод энэ файлыг зөвхөн эзэмшигч нь уншиж чаддаг байхаар болгон дараах тушаал ашиглаж хийхийг зөвлөдөг:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1057,7 +1057,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail хэрэгслийг `-d` туг болон түүний дараа [.filename]#.fetchmailrc# файлд жагсаагдсан серверүүдийг байнга шалгах тэр хугацааг (секундээр) зааж өгөн дэмон горимд ажиллуулж болдог. Дараах жишээ нь fetchmail-г 600 секунд бүр шалгахаар тохируулж байна:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/mn/books/handbook/mirrors/_index.adoc b/documentation/content/mn/books/handbook/mirrors/_index.adoc
index 8a405a3ccd..4c3d7dd727 100644
--- a/documentation/content/mn/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/mn/books/handbook/mirrors/_index.adoc
@@ -470,7 +470,7 @@ CTM дельтануудыг ашиглаж эхлэхээсээ өмнө дел
Дельтануудыг өгөхийн тулд ердөө л доор дурдсаныг хийнэ:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/the/stuff
# ctm -v -v /where/you/store/your/deltas/src-xxx.*
@@ -514,7 +514,7 @@ CTM-ийн ажилладаг файлуудын жагсаалтыг та `-e`
Жишээ нь өөрийн хадгалсан CTM дельтануудын цуглуулгаас [.filename]#lib/libc/Makefile#-ийн хамгийн сүүлийн хуулбарыг задалж авахын тулд дараах тушаалуудыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/to/extract/it/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -576,7 +576,7 @@ Subversion-д URL-г ашиглан репозиторыг заадаг бөгө
Subversion-г аль ч репозиторын агуулгыг татаж авахаас өмнө суулгасан байх шаардлагатай. Хэрэв портын мод байгаа бол Subversion-г ингэж суулгаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -584,14 +584,14 @@ Subversion-г аль ч репозиторын агуулгыг татаж ав
Хэрэв портын мод байхгүй бол Subversion-г багц хэлбэрээр суулгаж болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r subversion
....
Хэрэв pkgng ашиглан багцыг удирддаг бол Subversion-г ингэж суулгана:
-[source,bash]
+[source,shell]
....
# pkg install devel/subversion
....
@@ -609,7 +609,7 @@ Subversion-г аль ч репозиторын агуулгыг татаж ав
Өгөгдсөн репозитороос татаж авахдаа энэ маягийн тушаалыг:
-[source,bash]
+[source,shell]
....
# svn checkout svn-mirror/repository/branch lwcdir
....
@@ -623,7 +623,7 @@ Subversion-г аль ч репозиторын агуулгыг татаж ав
Энэ нь Портын цуглуулгыг АНУ-н баруунд байрлах репозитороос HTTPS протокол ашиглан локал ажлын хуулбарыг [.filename]#/usr/ports#-д санд байршуулж байгаа жишээ юм. Хэрэв [.filename]#/usr/ports# сан байгаа бөгөөд `svn`-ээр үүсгэгдээгүй бол өөрчлөх юм уу устгахаа мартуузай.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
....
@@ -632,14 +632,14 @@ Subversion-г аль ч репозиторын агуулгыг татаж ав
Эхний удаа татсаныхаа дараа локал ажлын хуулбарыг шинэчлэхдээ:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
Дээрх жишээн дээр үүсгэсэн [.filename]#/usr/ports#-г шинэчлэхдээ:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -648,7 +648,7 @@ Subversion-г аль ч репозиторын агуулгыг татаж ав
Татаж авсныхаа дараа локал ажлын хуулбарыг шинэчлэх өөр нэг арга нь [.filename]#/usr/ports#, [.filename]#/usr/src#, ба [.filename]#/usr/doc# сангууд дахь [.filename]#Makefile#-д байдаг. `SVN_UPDATE`-г зааж өгөөд `update` гэж хэрэглэнэ. Жишээ нь [.filename]#/usr/src#-г шинэчлэхийн тулд:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
@@ -693,7 +693,7 @@ HTTPS нь FreeBSD толин тусгалыг хуурамчаар дуурай
HTTPS толин тусгал руу хийх эхний холболтын үеэр хэрэглэгчээс серверийн _fingerprint_-г асуудаг:
-[source,bash]
+[source,shell]
....
Error validating server certificate for 'https://svn0.us-west.freebsd.org:443':
- The certificate is not issued by a trusted authority. Use the
@@ -886,7 +886,7 @@ usr.bin/
Одоо та шинэчлэлт хийж үзэхэд бэлэн боллоо. Үүнийг хийх тушаалын мөр их амархан:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -895,7 +895,7 @@ usr.bin/
Та энэ жишээн дээр өөрийн жинхэнэ [.filename]#/usr/src# модыг шинэчилж байгаа болохоор `cvsup` нь таны файлуудыг шинэчлэхэд шаардлагатай зөвшөөрлүүдтэй байхын тулд та програмыг `root` эрхээс ажиллуулах хэрэгтэй болно. Өөрийн тохиргооны файлыг дөнгөж үүсгэсэн бөгөөд урьд нь энэ програмыг хэзээ ч ашиглаж байгаагүй бол таныг бухимдуулж магадгүй юм. Өөрийн файлуудыг хөндөлгүйгээр туршилтын журмаар ажиллуулах хялбар арга байдаг. Хаа нэгтээ хоосон сан үүсгээд түүнийг тушаалын мөрөнд нэмэлт өгөгдлөөр оруулж өгнө:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -905,7 +905,7 @@ usr.bin/
Хэрэв та X11-г ажиллуулахгүй байгаа юм уу эсвэл танд GUI таалагддаггүй бол `cvsup`-г ажиллуулахдаа тушаалын мөрөн дээр хоёр сонголтыг нэмж өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
diff --git a/documentation/content/mn/books/handbook/multimedia/_index.adoc b/documentation/content/mn/books/handbook/multimedia/_index.adoc
index de0d8c60d1..9f50da02bd 100644
--- a/documentation/content/mn/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/mn/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ man:mount[8] тушаалаар аудио CD-үүдийг холбохыг ор
Өөрийн дууны төхөөрөмжийг ашиглахын тулд тохирох төхөөрөмжийн драйверийг та ачаалах хэрэгтэй болно. Үүнийг хоёр аргын аль нэгээр хийж болно. Хамгийн амархан арга бол man:kldload[8] тушаалаар өөрийн картныхаа цөмийн модулийг тушаалын мөрөөс:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
Эдгээр жишээнүүд нь Creative SoundBlaster(R) Live! дууны картанд зориулагдсан юм. Бусад байгаа дуудагдаж болох дууны модулиуд [.filename]#/boot/defaults/loader.conf#-д жагсаагдсан байдаг. Хэрэв та аль драйверийг ашиглахаа мэдэхгүй эргэлзэж байвал [.filename]#snd_driver# модулийг дуудаж үзэж болох юм:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ hint.sbc.0.flags="0x15"
Өөрчилсөн цөмийг дахин ачаалсны дараа эсвэл шаардлагатай модулийг дуудсаны дараа дууны карт нь иймэрхүүгээр таны системийн мэдэгдлийн буферт (man:dmesg[8]) гарч ирэх ёстой:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
Дууны картын төлөвийг [.filename]#/dev/sndstat# файлын тусламжтай шалгаж болно:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,7 +182,7 @@ kld snd_ich (1p/2r/0v channels duplex default)
Хэрэв бүгд зүгээр болвол одоо та ажиллагаатай дууны карттай байх ёстой. Хэрэв таны CD-ROM эсвэл DVD-ROM хөтчийн дууны гаралтын холбогч таны дууны карттай зөв холбогдсон бол та хөтөчдөө CD хийж түүнийг man:cdcontrol[1]-оор тоглуулж болно:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -191,7 +191,7 @@ package:audio/workman[] зэрэг төрөл бүрийн програмууд
Картыг хурдан тест хийх өөр нэг арга бол [.filename]#/dev/dsp# уруу өгөгдөл иймэрхүү маягаар илгээх явдал юм:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -260,7 +260,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
Энд график карт (`NVidia`) нь дууны картаас (`Realtek ALC889`) өмнө танигдсан байна. Дууны картыг анхдагч тоглуулагч төхөөрөмж хэлбэрээр ашиглахын тулд `hw.snd.default_unit`-г тоглуулахад ашиглах хэрэгслээр солих хэрэгтэй, өөрөөр хэлбэл:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -281,7 +281,7 @@ FreeBSD нь man:sysctl[8] хэрэгслийн тусламжтай идэвх
Виртуал сувгуудын тоог тохируулах sysctl-ийн гурван хувьсагч байдаг бөгөөд хэрэв та `root` хэрэглэгч бол иймэрхүү маягаар үүнийг тохируулж болно:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -326,7 +326,7 @@ package:audio/mpg123[] нь өөр нэг, тушаалын мөрийн MP3 т
mpg123-ийг тушаалын мөрөөс дууны төхөөрөмж болон MP3 файлыг зааж өгөн ажиллуулж болно. Таны дууны төхөөрөмж [.filename]#/dev/dsp1.0# бөгөөд MP3 файл _Foobar-GreatestHits.mp3_-ийг тоглуулахыг хүсэж байгаа гэж үзвэл дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -348,14 +348,14 @@ package:sysutils/cdrtools[] цуглуулгын `cdda2wav` хэрэгсэл н
Хөтөчид аудио CD байхад дараах тушаалыг (`root`-ээр) ажиллуулж бүх CD-г тус тусдаа (зам тус бүрийг) WAV файлуудад авч болно:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav нь ATAPI (IDE) CDROM хөтчүүдийг дэмжих болно. IDE хөтчөөс авахын тулд SCSI нэгжийн дугааруудын оронд төхөөрөмжийн нэрийг заах хэрэгтэй. Жишээ нь 7-р замыг IDE хөтчөөс авахын тулд:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -364,14 +364,14 @@ cdda2wav нь ATAPI (IDE) CDROM хөтчүүдийг дэмжих болно. ID
Замуудыг авахын тулд `-t` тохируулгыг доор үзүүлсэн шиг ашиглана:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Энэ жишээ нь аудио CDROM-ийн долдугаар замыг авч байна. Хэсэг замуудыг авахын тулд, жишээ нь, нэгээс долоо хүртэлх замыг авахын тулд хүрээг зааж өгнө:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -385,7 +385,7 @@ man:dd[1] хэрэгсэл ATAPI хөтчүүд дээрх аудио замуу
Авсан WAV файлуудыг ашиглан дараах тушаал [.filename]#audio01.wav#-г [.filename]#audio01.mp3# болгон хөрвүүлнэ:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Foo Song Title" \
@@ -428,7 +428,7 @@ mpg123-аар stdout уруу бичих:
XMMS нь файлыг WAV хэлбэршилтээр бичдэг бол mpg123 нь MP3-ийг түүхий PCM аудио өгөгдөл болгон хөрвүүлдэг. Эдгээр хэлбэршилтүүдийг cdrecord-д аудио CD-үүд хийхийн тулд ашиглаж болно. Та түүхий PCM-ийг man:burncd[8]-д ашиглах ёстой. Хэрэв та WAV файлуудыг ашиглавал зам болгоны эхэнд богино тик гэсэн чимээг мэдрэх бөгөөд энэ чимээ нь WAV файлын толгой юм. Та WAV файлын толгойг SoX хэрэгсэл ашиглан арилгаж болно (үүнийг package:audio/sox[] портоос эсвэл багцаас суулгаж болно):
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -444,7 +444,7 @@ FreeBSD дээр CD шарагчийг ашиглах тухай илүү дэл
Ер нь богино хэмжээний MPEG файлтай байх нь зүйтэй бөгөөд төрөл бүрийн тоглуулагч болон тохируулгуудыг шалгахад тест файл маягаар ашиглагдаж болох юм. Зарим нэгэн DVD тоглуулагчид анхдагчаар [.filename]#/dev/dvd#-д DVD зөөвөрлөгчийг хайх юм уу эсвэл энэ төхөөрөмжийн нэрийг тэдгээрт бичигдсэн байх ёстой гэж үздэг болохоор та симболын холбоосыг тохирох төхөөрөмжүүд уруу хийж өгөх нь ашигтай байж болох юм:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -488,14 +488,14 @@ Xorg нь видеог тусгай хурдасгуураар дүрслэгд
Өргөтгөл ажиллаж байгаа эсэхийг шалгахын тулд `xvinfo` тушаалыг ашиглана:
-[source,bash]
+[source,shell]
....
% xvinfo
....
Хэрэв үр дүн иймэрхүү харагдвал XVideo нь таны картны хувьд дэмжигдсэн байна:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -571,7 +571,7 @@ screen #0
Хэрэв үр дүн иймэрхүү харагдаж байвал:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -628,7 +628,7 @@ MPlayer нь саяхан хөгжүүлэгдсэн бөгөөд хурдацт
MPlayer нь package:multimedia/mplayer[] санд байрладаг. MPlayer нь бүтээх явцад төрөл бүрийн тоног төхөөрөмжийн шалгалтуудыг гүйцэтгэж нэг системээс нөгөөд хөрвүүлэгдэхгүй хоёртьн файлыг гаргадаг. Тиймээс хоёртын багцыг ашиглалгүйгээр портоос бүтээх нь чухал юм. Мөн [.filename]#Makefile#-д тайлбарласнаар бүтээлтийн эхэнд `make` тушаалд хэд хэдэн тохируулгуудыг зааж өгч болдог:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -656,7 +656,7 @@ MPlayer-ийн HTML баримт нь маш мэдээлэл сайтай ба
MPlayer-ийн ямар ч хэрэглэгч өөрийн гэрийн сандаа [.filename]#.mplayer# дэд санг үүсгэх ёстой. Энэ шаардлагатай дэд санг үүсгэхийн тулд та дараах тушаалыг бичиж болно:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -666,27 +666,27 @@ MPlayer-ийн ямар ч хэрэглэгч өөрийн гэрийн санд
[.filename]#testfile.avi# зэрэг файлыг тоглуулахын тулд `-vo` тохируулгаар төрөл бүрийн видео интерфэйсүүдийн аль нэгийг оруулж өгнө:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -695,7 +695,7 @@ MPlayer-ийн ямар ч хэрэглэгч өөрийн гэрийн санд
DVD-ээс тоглуулахын тулд [.filename]#testfile.avi#-г `dvd://_N_ -dvd-device _DEVICE_` мөрөөр солих хэрэгтэй. Энд байгаа _N_ нь тоглуулах гарчгийн дугаар бөгөөд [.filename]#DEVICE# нь DVD-ROM-д зориулсан төхөөрөмжийн цэг юм. Жишээ нь [.filename]#/dev/dvd#-ийн 3-р гарчгийг тоглуулахын тулд доор дурдсаныг ажиллуулна:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -720,7 +720,7 @@ zoom=yes
Төгсгөлд нь `mplayer` нь DVD гарчгийг [.filename]#.vob# файл уруу гаргахад хэрэглэгдэж болдог. DVD-ээс хоёр дахь гарчгийг гаргаж авахын тулд үүнийг бичнэ:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -732,7 +732,7 @@ zoom=yes
`mencoder`-ийг ашиглахаасаа өмнө HTML баримтаас тохируулгуудтай танилцах нь зүйтэй юм. Гарын авлагын хуудас байдаг боловч HTML баримтгүйгээр энэ нь тийм ч тустай биш юм. Чанар, битийн бага хурдыг сайжруулах болон хэлбэршилтүүдийг өөрчлөх тоолж баршгүй аргууд байдаг бөгөөд эдгээр аргуудын зарим нь сайн, муу ажиллагааны хооронд ялгаа гаргаж болох юм. Танд туслах хэд хэдэн жишээ энд байна. Эхлээд энгийн хуулбар:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -741,7 +741,7 @@ zoom=yes
[.filename]#input.avi#-г MPEG4 кодек уруу MPEG3 аудио кодчилолтойгоор хөрвүүлэхийн тулд (package:audio/lame[] шаардлагатай):
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -764,14 +764,14 @@ MPlayer-тэй харьцуулах юм бол xine нь хэрэглэгчий
Анхдагчаар xine тоглуулагч нь график хэрэглэгчийн интерфэйс эхлүүлэх болно. Дараа нь тухайн файлыг онгойлгохдоо цэсүүдийг ашиглаж болно:
-[source,bash]
+[source,shell]
....
% xine
....
Өөрөөр, GUI-гүйгээр дараах тушаал ашиглан файлыг нэн даруй тоглуулахаар ажиллуулж болно:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -783,7 +783,7 @@ transcode програм хангамж нь тоглуулагч биш, хар
package:multimedia/transcode[] портыг бүтээж байх явцад олон тооны тохируулгуудыг зааж өгч болдог бөгөөд бид дараах тушаалын мөрийг transcode-ийг бүтээхэд ашиглахыг зөвлөдөг:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -793,7 +793,7 @@ WITH_MJPEG=yes -DWITH_XVID=yes
`transcode`-ийн багтаамжуудыг харуулахын тулд DivX файлыг PAL MPEG-1 файл (PAL VCD) уруу хэрхэн хөрвүүлэхийг харуулах нэг жишээг үзүүлье:
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -870,7 +870,7 @@ options OVERRIDE_TUNER=6
эсвэл та man:sysctl[8]-ийг шууд ашиглаж болно:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -918,7 +918,7 @@ http://wiki.freebsd.org/HTPC[HTPC] дээр байгаа бүх DVB драйве
MythTV-г суулгахын тулд дараах алхмуудыг ашиглана. Эхлээд FreeBSD-н портын цуглуулгаас MythTV-г суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -926,21 +926,21 @@ MythTV-г суулгахын тулд дараах алхмуудыг ашигл
MythTV өгөгдлийн санг суулгана:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Арын тохиргоог хийнэ:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Арын програмыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# echo 'mythbackend_enable="YES"' >> /etc/rc.conf
# service mythbackend start
@@ -974,7 +974,7 @@ device ehci
Зөв цөмөөр дахин ачаалсны дараа өөрийн USB скан хийгчийг залгана. Таны скан хийгчийг таньж байгааг үзүүлэх мөр системийн мэдэгдлийн буферт (man:dmesg[8]) гарч ирэх ёстой:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -993,7 +993,7 @@ device pass
Таны цөм зөв эмхэтгэгдэж суулгагдсаны дараа ачаалах үед та системийн мэдэгдлийн буферт төхөөрөмжийг харж чадаж байх ёстой:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -1002,7 +1002,7 @@ pass2: 3.300MB/s transfers
Таны скан хийгч системийг ачаалах үед асаагүй байсан ч гэсэн гараар man:camcontrol[8] тушаалын тусламжтай SCSI шугамын хайлтыг хийж илрүүлэх боломжтой байдаг:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -1013,7 +1013,7 @@ Re-scan of bus 3 was successful
Дараа нь скан хийгч SCSI төхөөрөмжүүдийн жагсаалтад гарч ирэх болно:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -1030,7 +1030,7 @@ SANE систем нь хоёр хэсэгт хуваагддаг: эдгээр
Эхний алхам нь package:graphics/sane-backends[] порт юм уу эсвэл багцыг суулгах явдал юм. Дараа нь `sane-find-scanner` тушаал ашиглан SANE системээр скан хийгчийн илрүүлэлтийг шалгана:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -1045,7 +1045,7 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
Одоо бид скан хийгчийг скан хийх урд хэсгээр танигдах эсэхийг нь шалгах хэрэгтэй. Анхдагчаар SANE арын хэсгүүд нь man:sane[1] гэгддэг тушаалын мөрийн хэрэгсэлтэй ирдэг. Энэ тушаал нь танд төхөөрөмжүүдийг жагсааж тушаалын мөрөөс дүрс эзэмшилтийг хийхийг зөвшөөрдөг. `-L` тохируулга нь скан хийгчийн төхөөрөмжүүдийг жагсаахад хэрэглэгддэг:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -1053,7 +1053,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
Эсвэл жишээ нь <<scanners-kernel-usb>>-д ашиглагдсан USB скан хийгчтэй бол:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -1067,7 +1067,7 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
Жишээ нь <<scanners-kernel-usb>>-д хэрэглэгдсэн USB скан хийгчтэй байхад FreeBSD 8.X дээр скан хийгч нь ямар ч асуудалгүйгээр олдож ажиллаж байгаа боловч FreeBSD-ийн өмнөх (man:uscanner[4] драйвер хэрэглэгдэж байгаа) хувилбарууд дээр `sane-find-scanner` тушаалыг ажиллуулахад дараах мэдээллийг бидэнд өгөх болно:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -1075,7 +1075,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
Скан хийгч нь зөв олдсон бөгөөд USB интерфэйсийг ашиглан [.filename]#/dev/uscanner0# төхөөрөмжийн цэгт залгагдсан байна. Одоо бид скан хийгч зөв танигдсан эсэхийг шалгаж болно:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1094,7 +1094,7 @@ usb /dev/uscanner0
Илүү дэлгэрэнгүй мэдээлэл болон хэрэглээний зөв синтаксын талаар арын хэсгийн тохиргооны файлд байгаа тайлбарууд болон арын хэсгийн гарын авлагын хуудаснаас уншихаа мартуузай. Бид одоо скан хийгч танигдсан эсэхийг шалгаж болно:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1115,7 +1115,7 @@ Xsane (package:graphics/xsane[]) нь өөр нэг алдартай графи
Тиймээс бид жишээ нь `_usb_` бүлгийг ашиглах болно. Эхний алхам нь энэ бүлгийг man:pw[8] тушаалын тусламжтай үүсгэх явдал юм:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1131,7 +1131,7 @@ add path usb/0.2.0 mode 0666 group usb
Одоо скан хийгчид хандах хандалтыг зөвшөөрөхийн тулд хэрэглэгчдийг `_usb_` бүлэгт нэмэх л үлдлээ:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/mn/books/handbook/network-servers/_index.adoc b/documentation/content/mn/books/handbook/network-servers/_index.adoc
index 77a5d88027..8d802ab186 100644
--- a/documentation/content/mn/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/mn/books/handbook/network-servers/_index.adoc
@@ -142,7 +142,7 @@ inetd-г [.filename]#/etc/inetd.conf# файлын тусламжтай тохи
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -373,14 +373,14 @@ nfs_client_enable="YES"
[.filename]#/etc/exports# файл дотор гарсан өөрчлөлтүүдийг хүчинтэй болгохын тулд, өөрчлөлт орсон тухай бүрд mountd дэмонг албадан [.filename]#/etc/exports#-г дахин уншуулах хэрэгтэй болдог. Үүний тулд эсвэл HUP дохиог ажиллаж байгаа дэмонд өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
эсвэл `mountd` man:rc[8] скриптийг зохих параметрийн хамт ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# service mountd onereload
....
@@ -391,7 +391,7 @@ rc скриптийг хэрэглэх зааврыг crossref:config[configtuni
NFS сервер дээр:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -400,14 +400,14 @@ NFS сервер дээр:
NFS харилцагч дээр:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Одоо алсын файл системийг холбоход бэлэн боллоо. Доорх жишээнүүд дээр серверийн нэрийг `server`, харилцагчийн нэрийг `client` гэж авсан болно. Хэрэв та алсын файл системийг зөвхөн түр хугацаагаар холбох гэж байгаа эсвэл тохиргоогоо шалгах гэж байгаа бол, харилцагч талд `root` эрхээр дараах тушаалыг өгөхөд хангалттай:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -435,7 +435,7 @@ rpc_statd_enable="YES"
Програмыг дараах байдалтай эхлүүлнэ:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -465,7 +465,7 @@ amd нь өөрийгөө, [.filename]#/host# ба [.filename]#/net# сангу
====
Алсын хост дээр байгаа боломжит холболтуудын жагсаалтыг `showmount` тушаалын тусламжтай харж болно. Жишээлбэл, `foobar` нэртэй хостын экспортыг харахын тулд:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -518,7 +518,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
`freebox` дээр гараар холбохдоо:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -532,7 +532,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
`fastws` дээр гараар холбохдоо:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -694,7 +694,7 @@ nis_yppasswdd_enable="YES"
Дээрхийг тохируулсны дараа супер хэрэглэгчийн эрхээр `/etc/netstart` тушаалыг ажиллуулна. Энэ нь таны [.filename]#/etc/rc.conf# файл дотор тодорхойлж өгсөн утгуудыг ашиглан бүх зүйлсийг таны өмнөөс хийх болно. Хамгийн сүүлд нь NIS буулгалтуудыг эхлүүлэхээс өмнө ypserv демоныг гараар ажиллуулах хэрэгтэй.
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -703,7 +703,7 @@ nis_yppasswdd_enable="YES"
_NIS буулгалтууд_ нь өгөгдлийн сангийн файлууд бөгөөд [.filename]#/var/yp# сан дотор хадгалагдана. Тэдгээрийг NIS эзэн серверийн [.filename]#/etc# сан дотор байгаа [.filename]#/etc/master.passwd# файлаас бусад тохиргооны файлуудаас үүсгэдэг. Энэ нь их учиртай. Мэдээж та өөрийн `root` болон удирдах эрхтэй дансуудынхаа нэвтрэх үгийг NIS домэйн дахь бүх сервер дээр тарааж тавих хүсэлгүй байгаа биз дээ. Тиймээс, NIS буулгалтуудыг эхлүүлэхийн өмнө, дараах зүйлсийг хийх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -719,7 +719,7 @@ _NIS буулгалтууд_ нь өгөгдлийн сангийн файлуу
Дээр дурдсаныг гүйцэтгэж дууссаны дараа, сая NIS буулгалтуудыг эхлүүлнэ! FreeBSD нь танд үүнийг хийж өгөх `ypinit` нэртэй скриптийг (холбогдох заавар хуудаснаас дэлгэрэнгүй мэдээллийг авна уу) агуулж байдаг. Энэ скрипт ихэнх UNIX(R) үйлдлийн системд байдаг боловч, заримд нь байхгүй байх тохиолдол бий. Digital UNIX/Compaq Tru64 UNIX дээр энэ скрипт `ypsetup` гэсэн нэртэй байдаг. Бид NIS эзэн серверийн хувьд буулгалтуудыг үүсгэж байгаа тул `ypinit` тушаалыг `-m` тохируулгын хамт өгнө. Дээрх алхмуудыг бүгдийг хийсний дараа, NIS буулгалтуудыг үүсгэхдээ дараах тушаалыг өгнө:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -748,7 +748,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` нь [.filename]#/var/yp/Makefile.dist#-с [.filename]#/var/yp/Makefile#-г үүсгэсэн байх ёстой. Үүсэхдээ, энэ файл таныг ганц NIS сервертэй орчинд зөвхөн FreeBSD машинуудтай ажиллаж байна гэж үзнэ. `test-domain` нь зарц сервертэй тул, та [.filename]#/var/yp/Makefile# файлыг засах хэрэгтэй:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -766,7 +766,7 @@ NOPUSH = "True"
NIS зарц серверийг зохион байгуулах нь эзэн серверийг зохион байгуулахаас ч хялбар байдаг. Зарц сервер рүү нэвтэрч ороод түрүүн хийсэн шигээ [.filename]#/etc/rc.conf# файлыг засах хэрэгтэй. Ганц ялгаа нь `ypinit` тушаалыг өгөхдөө `-s` тохируулгыг өгнө. `-s` тохируулга нь NIS эзэн серверийн нэрийг хамт оруулахыг шаардах тул бидний тушаалын мөр дараах байдалтай байна:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -884,7 +884,7 @@ nis_client_enable="YES"
NIS клиентийг нэн даруй эхлүүлэхийн тулд дараах тушаалыг супер хэрэглэгчийн эрхээр ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -935,7 +935,7 @@ TCP Wrapper багцыг ашиглах нь NIS серверийн хоцрол
NIS өгөгдлийн сан дотор бүртгэл нь байгаа ч, зарим хэрэглэгчдийг тухайн машин руу нэвтрэхийг хаах нэг арга байна. Үүний тулд `-username` гэсэн мөрийг бусад мөрүүдийн адил форматаар харилцагч машин дээр [.filename]#/etc/master.passwd# файлын төгсгөлд нэмэх хэрэгтэй. Энд _username_ гэдэг нь нэвтрэхийг нь хаах гэж байгаа хэрэглэгчийн нэр юм. Хаасан хэрэглэгчийн мөр `+` гэж нээсэн NIS хэрэглэгчийн мөрөөс дээр байх ёстой. Дээрх үйлдлийг хийхдээ `vipw`-г ашиглахыг зөвлөж байна. `vipw` нь [.filename]#/etc/master.passwd# файл дотор хийгдсэн өөрчлөлтийг хянах бөгөөд өөрчлөлт хийж дууссаны дараа нэвтрэх үгийн санг автоматаар дахин үүсгэж өгдөг. Жишээ нь, хэрэв бид `bill` гэсэн хэрэглэгчийг `basie` хост дээр нэвтрэхийг хаахыг хүсэж байгаа бол:
-[source,bash]
+[source,shell]
....
basie# vipw
[add -bill::::::::: to the end, exit]
@@ -1020,7 +1020,7 @@ NIS-г лабораторидоо нэвтрүүлсэн тань танай у
Хамгийн эхний алхам бол NIS сүлжээний бүлгийн буулгалтыг эхлүүлэх юм. FreeBSD-н man:ypinit[8] нь энэ буулгалтыг анхдагч байдлаар үүсгэдэггүй, гэвч хэрэв нэгэнт үүсгэчихвэл түүний NIS-тэй ажиллах хэсэг нь энэ буулгалт дээр ажиллах чадвартай. Хоосон буулгалт үүсгэхийн тулд:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1063,7 +1063,7 @@ BIGGROUP BIGGRP1 BIGGRP2 BIGGRP3
Шинээр үүсгэсэн NIS буулгалтаа идэвхжүүлэх болон тараах нь амархан:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1071,7 +1071,7 @@ ellington# make
Ингэснээр [.filename]#netgroup#, [.filename]#netgroup.byhost# ба [.filename]#netgroup.byuser# гэсэн гурван NIS буулгалт үүсэх болно. Дээрх шинэ буулгалтууд идэвхтэй болсон эсэхийг man:ypcat[1] ашиглан шалгаарай:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1199,7 +1199,7 @@ NIS орчинд ороод, өөрөөр хийх ёстой хэд хэдэн
* Лабораторид шинэ хэрэглэгч нэмэх бүрдээ _зөвхөн_ эзэн NIS серверт нэмэх ёстой, ба _NIS буулгалтыг заавал дахин үүсгэх ёстой_. Хэрэв ингэхээ мартвал, шинэ хэрэглэгч эзэн NIS серверээс өөр хаашаа ч нэвтэрч чадахгүй болно. Жишээ нь, бид `jsmith` гэсэн шинэ хэрэглэгчийг лабораторид нэмэх боллоо:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1250,7 +1250,7 @@ default:\
Хэрэв та [.filename]#/etc/login.conf# файлд өөрчлөлт хийсэн бол, нэвтрэх чадварын санг дахин үүсгэх шаардлагатай. Үүний тулд дараах тушаалыг `root` эрхээр өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1437,7 +1437,7 @@ dhcpd_ifaces="dc0"
Дараа нь, доорх тушаалыг өгөн серверийг ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1561,7 +1561,7 @@ BIND нь анхдагч байдлаар суучихсан ирдэг тул
named-н анхдагч тохиргоо нь man:chroot[8] орчинд ажиллах, тайлагч нэрийн сервер байдлаар хийгдсэн байдаг бөгөөд локал IPv4 loopback хаяг (127.0.0.1) дээр ажиллахаар хязгаарлагдсан байдаг. Энэ тохиргоогоор серверийг ажиллуулахын тулд дараах тушаалыг өгөх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# service named onestart
....
@@ -2085,7 +2085,7 @@ PTR бичлэгийн баруун талын бүх нэрс төгссөн б
Рекурсив DNS серверийн гүйцэтгэсэн хүсэлтүүдийн DNSSEC шалгалтыг идэвхжүүлэхийн тулд [.filename]#named.conf# файлд цөөн өөрчлөлтийг хийх хэрэгтэй. Эдгээр өөрчлөлтүүдийг хийхээс өмнө эх бүсийн түлхүүр эсвэл итгэлцлийн анкорыг (anchor) авсан байх шаардлагатай. Одоогоор эх бүсийн түлхүүр нь BIND ойлгох файлын форматаар байдаггүй бөгөөд зөв хэлбэр рүү гараар хувиргах ёстой байдаг. Түлхүүрийг dig ашиглан эх бүсээс асууж авч болдог. Ингэхийн тулд
-[source,bash]
+[source,shell]
....
% dig +multi +noall +answer DNSKEY . > root.dnskey
....
@@ -2116,7 +2116,7 @@ PTR бичлэгийн баруун талын бүх нэрс төгссөн б
Одоо түлхүүрийг шалгаж BIND ашиглаж болох хэлбэрт оруулах ёстой. Түлхүүрийг баталгаажуулахын тулд DSRR-г үүсгэнэ. Эдгээр RR-уудыг агуулсан файлыг дараах тушаалаар үүсгэнэ
-[source,bash]
+[source,shell]
....
% dnssec-dsfromkey -f root-dnskey . > root.ds
....
@@ -2173,7 +2173,7 @@ dnssec-validation yes;
Ажиллаж байгааг шалгахын тулд дөнгөж тохируулсан тайлагчийг ашиглан гарын үсгээр баталгаажсан бүсийг асуусан хүсэлтийг dig ашиглан явуулна. Амжилттай хариулт `AD` тэмдэглэгээтэй байх бөгөөд энэ нь өгөгдлийг таньж зөвшөөрсөн гэсэн үг юм. Доорх хүсэлттэй адил хүсэлтийг ажиллуулбал
-[source,bash]
+[source,shell]
....
% dig @resolver +dnssec se ds
....
@@ -2196,21 +2196,21 @@ DNSSEC-р баталгаажсан бүсэд үйлчлэх бүрэн эрхт
Өмнөх жишээн дээр харуулсан `example.com` бүсийн хувьд DNSSEC-г идэвхжүүлэхийн тулд эхний алхам нь KSK болон ZSK түлхүүрийн хослолыг үүсгэх dnssec-keygen-г ашиглах явдал юм. Энэ түлхүүрийн хослол нь өөр өөр криптограф алгоритмуудыг хэрэглэж болно. Түлхүүрүүдийн хувьд RSA/SHA256-г ашиглахыг зөвлөдөг бөгөөд 2048 битийн түлхүүрийн урт хангалттай. `example.com`-н хувьд KSK-г үүсгэхийн тулд дараахийг ажиллуулна
-[source,bash]
+[source,shell]
....
% dnssec-keygen -f KSK -a RSASHA256 -b 2048 -n ZONE example.com
....
ZSK-г үүсгэхийн тулд
-[source,bash]
+[source,shell]
....
% dnssec-keygen -a RSASHA256 -b 2048 -n ZONE example.com
....
dnssec-keygen хоёр файлыг гаргах бөгөөд нийтийн болон хувийн түлхүүрүүд нь [.filename]#Kexample.com.+005+nnnnn.key# (нийтийн) болон [.filename]#Kexample.com.+005+nnnnn.private# (хувийн) гэсэн файлуудтай төстэй нэртэйгээр байна. Файлын нэрийн `nnnnn` хэсэг нь таван оронтой түлхүүрийн ID юм. Аль түлхүүрийн ID аль түлхүүрт харгалзаж байгааг хянаж байх хэрэгтэй. Энэ нь ялангуяа бүсэд нэгээс илүү түлхүүр ашиглаж байгаа үед чухал юм. Түлхүүрүүдийн нэрийг бас өөрчилж болно. KSK файл бүрийн хувьд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
% mv Kexample.com.+005+nnnnn.key Kexample.com.+005+nnnnn.KSK.key
% mv Kexample.com.+005+nnnnn.private Kexample.com.+005+nnnnn.KSK.private
@@ -2226,7 +2226,7 @@ $include Kexample.com.+005+nnnnn.ZSK.key ; ZSK
Төгсгөлд нь бүсийг баталгаажуулж BIND-д баталгаажуулсан бүсийн файлыг ашиглахыг зааж өгнө. Бүсийг баталгаажуулахын тулд dnssec-signzone-г ашиглана. [.filename]#example.com.db#-д байрлах `example.com` бүсийг баталгаажуулах тушаал иймэрхүү байна
-[source,bash]
+[source,shell]
....
% dnssec-signzone -o example.com -k Kexample.com.+005+nnnnn.KSK example.com.db Kexample.com.+005+nnnnn.ZSK.key
....
@@ -2336,7 +2336,7 @@ apache22_flags=""
Apache-н тохиргоог `httpd` демонг анх эхлүүлэхээсээ өмнө юм уу эсвэл `httpd` ажиллаж байгаа үед дараалсан тохиргооны өөрчлөлтүүдиийг хийсний дараа алдаа байгаа эсэхийг тест хийж болно. Үүнийг man:rc[8] скриптээр шууд хийх юм уу эсвэл man:service[8] хэрэгслийг ашиглан дараах тушаалуудын аль нэгийг ажиллуулж хийнэ:
-[source,bash]
+[source,shell]
....
# service apache22 configtest
....
@@ -2348,7 +2348,7 @@ Apache-н тохиргоог `httpd` демонг анх эхлүүлэхээс
Хэрэв Apache тохиргооны алдаа өгөөгүй бол Apache `httpd`-г адил man:service[8] механизмаар эхлүүлж болно:
-[source,bash]
+[source,shell]
....
# service apache22 start
....
@@ -2368,7 +2368,7 @@ NameVirtualHost *
Таны вэб серверийн нэр `www.domain.tld` бөгөөд `www.someotherdomain.tld` нэртэй домэйныг давхар байршуулах хүсэлтэй бол, та дараах бүртгэлийг [.filename]#httpd.conf# файлд нэмэх хэрэгтэй болно:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2414,7 +2414,7 @@ Django нь mod_python, Apache, болон таны сонгосон SQL өгө
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/py-django; make all install clean -DWITH_MOD_PYTHON3 -DWITH_POSTGRESQL
....
@@ -2429,7 +2429,7 @@ Django болон бусад хамаарлууд суулгагдсаны да
====
Та өөрийн вэб програм руу тодорхой URL-уудад зориулсан хүсэлтүүдийг дамжуулахаар Apache-г тохируулахын тулд apache-ийн [.filename]#httpd.conf# файлд мөр нэмэх шаардлагатай:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -2447,7 +2447,7 @@ Django болон бусад хамаарлууд суулгагдсаны да
Ruby on Rails нь бүрэн гүйцэд хөгжүүлэлтийн стекийн боломжийг олгодог бөгөөд вэб хөгжүүлэгчдийг хүчирхэг програмыг хурдан шуурхай, илүү үр бүтээлтэй бичдэг байхаар оновчлогдсон, нээлттэй эхийн вэб тогтолцоо юм. Үүнийг портын системээс хялбараар суулгаж болно.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/rubygem-rails; make all install clean
....
@@ -2466,7 +2466,7 @@ Apache вэб серверийг PHP5-г дэмждэг болгохын тул
Хэрэв package:lang/php5[] портыг анх удаа суулгаж байгаа бол, боломжит `ТОХИРУУЛГУУД` автоматаар дэлгэцэн дээр гарч ирнэ. Хэрэв цэс гарч ирэхгүй бол, өөрөөр хэлбэл package:lang/php5[] портыг өмнө нь хэзээ нэгэн цагт суулгаж байсан бол, тохируулгуудын харилцах цонхыг гаргаж ирэхийн тулд дараах тушаалыг:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2501,7 +2501,7 @@ AddModule mod_php5.c
Үүний дараа, PHP модулийг ачаалахын тулд, дараах тушаалыг өгч серверийг дахин ачаалах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2514,7 +2514,7 @@ FreeBSD-н PHP дэмжлэг нь дээд зэргээр модульчлаг
Ямар нэг өргөтгөл суулгасны дараа, тохиргооны өөрчлөлтийг хүчин төгөлдөр болгохын тулд Apache серверийг дахин ачаалах шаардлагатайг анхаарна уу:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2554,14 +2554,14 @@ ftpd_enable="YES"
Дээрх хувьсагчийг тохируулсны дараа сервер дараачийн ачаалалт хийхэд ажиллах боломжтой болох бөгөөд эсвэл дараах тушаалыг `root` эрхээр ажиллуулан эхлүүлж болно:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Одоо та дараах тушаалыг өгөн FTP сервер рүү нэвтрэн орж болно:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2636,7 +2636,7 @@ Samba-д хэд хэдэн төрлийн арын шугамны магадла
Анхдагч `smbpasswd` арын шугамыг хэрэглэж байгаа гэж үзвэл, Samba харилцагчдыг магадлахын тулд [.filename]#/usr/local/etc/samba/smbpasswd# файлыг эхлээд үүсгэх ёстой. Хэрэв UNIX(R) хэрэглэгчийн эрхээр Windows(R) харилцагчаас ханддаг байх шаардлагатай бол, дараах тушаалыг хэрэглэнэ:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2645,7 +2645,7 @@ Samba-д хэд хэдэн төрлийн арын шугамны магадла
====
Энэ үед санал болгодог арын мэдээллийн сан нь `tdbsam` бөгөөд хэрэглэгчийн бүртгэлийг нэмэхийн тулд дараах тушаалыг ашиглах ёстой:
-[source,bash]
+[source,shell]
....
# pdbedit -a -u username
....
@@ -2682,7 +2682,7 @@ smbd_enable="YES"
Үүний дараа хүссэн үедээ Samba-г эхлүүлэхийн тулд дараах тушаалыг өгөхөд хангалттай:
-[source,bash]
+[source,shell]
....
# service samba start
Starting SAMBA: removing stale tdbs :
@@ -2696,7 +2696,7 @@ Samba нь үнэн хэрэгтээ гурван тусдаа дэмоноос
Samba-г хүссэн үедээ зогсоохын тулд дараах тушаалыг өгөхөд хангалттай:
-[source,bash]
+[source,shell]
....
# service samba stop
....
@@ -2782,7 +2782,7 @@ NTP серверийг систем ачаалах үед эхлүүлэхийн
Машиныг дахин ачаалалгүйгээр серверийг эхлүүлэхийн тулд, `ntpd` тушаалыг [.filename]#/etc/rc.conf#-д заасан `ntpd_flags` нэмэлт параметрүүдийн хамтаар өгөх хэрэгтэй. Жишээлбэл:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -2860,14 +2860,14 @@ syslogd_flags="-a logclient.example.com -v -v"
Төгсгөлд нь бүртгэлийн файлыг үүсгэх хэрэгтэй. Хэрэглэгсэн арга нь хамаагүй боловч man:touch[1] үүнтэй адил тохиолдлуудад сайн ажилладаг:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
Энэ үед `syslogd` демоныг дахин ажиллуулж шалгах ёстой:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -2906,14 +2906,14 @@ Facility нь мэдэгдэл үүсгэгдэж байгаа тэр систе
Нэмсэний дараа өөрчлөлтийг хүчинтэй болгохын тулд `syslogd`-г дахин эхлүүлэх шаардлагатай:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Сүлжээгээр бүртгэлийн мэдэгдлүүдийг илгээж байгаа эсэхийг тест хийхийн тулд клиент дээр man:logger[1]-г ашиглаж мэдэгдлийг `syslogd` руу илгээнэ:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -2931,14 +2931,14 @@ Facility нь мэдэгдэл үүсгэгдэж байгаа тэр систе
syslogd_flags="-d -a logclien.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Доор дурдсантай төстэй дибаг өгөгдөл дахин ачаалсны дараа дэлгэц дээр хурдан гарч өнгөрнө:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -2959,7 +2959,7 @@ syslogd_flags="-d -a logclien.example.com -v -v"
Энэ мөр `logclien` биш `logclient` гэдгийг агуулсан байх ёстой. Зөв болгож засан дахин ачаалсны дараа хүлээж байсан үр дүнгээ харах болно:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
diff --git a/documentation/content/mn/books/handbook/ports/_index.adoc b/documentation/content/mn/books/handbook/ports/_index.adoc
index 2ed512a0e2..efad68cba2 100644
--- a/documentation/content/mn/books/handbook/ports/_index.adoc
+++ b/documentation/content/mn/books/handbook/ports/_index.adoc
@@ -132,7 +132,7 @@ Dan Langille гэгч нь FreshPorts хуудсыг http://www.FreshPorts.org/[
Хэрэв та програмынхаа нэрийг нь мэдэхгүй байгаа бол Freecode (http://www.freecode.com/[http://www.freecode.com/]) хуудсан дээр хайж үзэх хэрэгтэй. Хэрэв уг хуудсан дээр шинэ програм олдсон бол буцаад FreeBSD хуудсанд очиж уг хуудсыг порт болсон эсэхийг магадлах нь зүйтэй.
* Хэрэв та портынхоо нэрийг яг мэддэг боловч ямар төрөлд багтдагийг нь мэдэх хэрэгтэй бол man:whereis[1] тушаалыг ашиглаарай. Ердөө л `whereis файлын_нэр` гэж бичих бөгөөд _файлын_нэр_ нь суулгахыг хүссэн програмын нэр билээ. Хэрэв уг програм нь олдвол, танд хаана байгааг нь дараах маягаар харуулна:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -141,7 +141,7 @@ lsof: /usr/ports/sysutils/lsof
Энэ нь бидэнд `lsof` (системийн нэгэн хэрэгсэл) програмыг [.filename]#/usr/ports/sysutils/lsof# санд буй гэж мэдэгдэж байна.
* Мөн портын модонд тухайн порт хаана байгааг олохын тулд ердийн man:echo[1] тушаалыг ашиглаж болно. Жишээ нь:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -150,7 +150,7 @@ lsof: /usr/ports/sysutils/lsof
Энэ нь [.filename]#/usr/ports/distfiles# сан уруу татаж авагдсан таарсан файлуудыг харуулах болно гэдгийг анхаараарай.
* Хүссэн портоо олох бас нэг арга бол портын цуглуулга дотор нь байдаг өөрийнх нь хайгчийг нь ашиглах билээ. Уг хайгчийг нь хэрэглэхийн тулд та [.filename]#/usr/ports# сан дотор байх шаардлагатай. Уг сан дотроос `make search name=програмын-нэр` гэж бичих бөгөөд _програмын-нэр_ нь таны олохыг хүссэн програмын нэр байх ёстой. Жишээлбэл `lsof` програмыг олохын тулд:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -167,7 +167,7 @@ R-deps:
+
Мөн портын өөр нэг хайлт хийх арга нь `quicksearch` боломж юм. Энэ боломж нь `search`-н нэгэн адил параметрийг авдаг. Жишээ нь `lsof`-г хайхад дараах үр дүнг харуулна:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -196,7 +196,7 @@ FreeBSD дээр багцуудыг удирдах хэд хэдэн төрли
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -227,7 +227,7 @@ ftp> exit
Хэрэв танд багц суулгах дотоод эх үүсвэр ( FreeBSD CD-ROM гэх мэт) байхгүй бол man:pkg_add[1] хэрэгслийг `-r` сонголттой хамт хэрэглэх нь зүйтэй. Энэ нь тухайн програмыг төрөл болон хувилбар зэрэг мэдээллийг нь автоматаар таньж мэдээд FTP хуудаснаас татан авч суулгадаг.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -247,7 +247,7 @@ ftp> exit
man:pkg_info[1] хэрэгсэл нь суугдсан багцтай холбоотой мэдээллүүдийг харуулдаг.
-[source,bash]
+[source,shell]
....
# pkg_info
colordiff-1.0.13 A tool to colorize diff output
@@ -257,7 +257,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
man:pkg_version[1] хэрэгсэл нь суугдсан бүх багцны ерөнхий мэдээллийг харуулж байдаг. Энэ нь багцны хувилбарыг портын санд буй програмын хувилбартай жишиж харьцуулдаг.
-[source,bash]
+[source,shell]
....
# pkg_version
colordiff =
@@ -296,14 +296,14 @@ docbook =
Өмнө суугдсан байгаа багцыг устгахдаа man:pkg_delete[1] хэрэгслийг ашиглана.
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
man:pkg_delete[1] нь багцын бүрэн нэр болон дугаарыг шаарддагийг тэмдэглэе; _xchat-1.7.1_-ийн оронд _xchat_ өгөгдсөн бол дээр дурдсан тушаал ажиллахгүй. Гэхдээ суулгагдсан багцын хувилбарыг олохын тулд man:pkg_version[1]-ийг ашиглах хялбар байдаг. Ингэхийн оронд та бүгдийг орлуулах тэмдэгт ашиглаж болох юм:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -328,7 +328,7 @@ FreeBSD 9.1 ба түүнээс хойшхи хувилбарууд pkgng-д з
Системийг эхлүүлэхийн тулд:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -337,7 +337,7 @@ FreeBSD-н өмнөх хувилбаруудын хувьд pkgng-г порты
pkgng портыг суулгахын тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -346,7 +346,7 @@ pkgng портыг суулгахын тулд дараахийг ажиллуу
Бинар багцыг суулгахын тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg_add -r pkg
....
@@ -358,7 +358,7 @@ pkgng багц удирдах хэрэгсэл нь FreeBSD 7._X_ эсвэл Fre
FreeBSD-г өмнөх суулгацын хувьд pkg_install багцын өгөгдлийн санг шинэ формат руу хувиргах шаардлагатай. Багцын өгөгдлийн санг хувиргахын тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -396,12 +396,12 @@ pkgng-г хэрэглэх мэдээллийг pkg(8) гарын авлагын
pkgng тушаалын аргумент бүрийг тухайн тушаалын гарын авлагын хуудсанд тайлбарласан байдаг. Жишээ нь `pkg install`-н гарын авлагыг уншихын тулд дараахийн аль нэгийг ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -413,14 +413,14 @@ pkgng тушаалын аргумент бүрийг тухайн тушаалы
Тухайн багцын мэдээллийг ингэж харж болно:
-[source,bash]
+[source,shell]
....
# pkg info packagename
....
Жишээ нь систем дээр pkgng-н ямар хувилбар суулгасан байгааг харахын тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.0.2 New generation package manager
@@ -431,7 +431,7 @@ pkg-1.0.2 New generation package manager
Ерөнхийдөө FreeBSD-н ихэнх хэрэглэгчид бинар багцыг дараахийг ажиллуулж суулгана:
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
@@ -440,7 +440,7 @@ pkg-1.0.2 New generation package manager
`pkg install` ашиглан нэмэлт бинар багцуудыг суулгаж болно. Жишээ нь curl-г суулгахын тулд:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -464,7 +464,7 @@ Installing curl-7.24.0... done
Шинэ багц болон хамаарлууд хэлбэрээр суусан нэмэлт багцуудыг суулгасан багцуудын жагсаалтаас харж болно:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.13.5 The root certificate bundle from the Mozilla Project
@@ -474,7 +474,7 @@ pkg-1.0.2 New generation package manager
Хэрэгцээгүй болсон багцуудыг `pkg delete` тушаалаар устгаж болно. Жишээ нь curl хэрэггүй бол:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -494,7 +494,7 @@ Deleting curl-7.24.0_1... done
Багцыг шинэ хувилбар руу pkgng ашиглан шинэчилж болно. curl-н шинэ хувилбар гарсан гэж бодъё. Локал багцыг шинэ хувилбар руу шинэчилж болно:
-[source,bash]
+[source,shell]
....
# pkg upgrade
Updating repository catalogue
@@ -516,7 +516,7 @@ Upgrading curl from 7.24.0 to 7.24.0_1... done
Заримдаа портын цуглуулга дахь програм хангамжид цоорхой илэрч болно. pkgng нь өөртөө package:ports-mgmt/portaudit[] багцтай төстэй аудит хийх боломжийг агуулдаг. Систем дээр суусан програм хангамжийг аудит хийхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -529,7 +529,7 @@ Upgrading curl from 7.24.0 to 7.24.0_1... done
Багцыг устгаснаар дээрх жишээн дээрх package:security/ca_root_nss[] шиг хэрэггүй хамаарлуудыг үлдээж болох юм. Тийм багцууд нь суусан хэвээр байх боловч юу ч тэднээс хамааралгүй байдаг. Хамаарал болон суусан хэрэггүй багцуудыг автоматаар илрүүлж устгаж болно:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -546,7 +546,7 @@ Deinstalling ca_root_nss-3.13.5... done
pkg_install багц удирдах системээс ялгаатай нь pkgng өөрийн гэсэн өгөгдлийн санг нөөцлөх аргатай байдаг. Багцын өгөгдлийн сангийн агуулгыг гараар нөөцлөхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg backup -d pkgng.db
....
@@ -566,7 +566,7 @@ pkg_install-н давтамжтайгаар ажиллах скрипт багц
Өмнөх багцын өгөгдлийн сангийн нөөцийн агуулгыг сэргээхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkgng.db
....
@@ -578,7 +578,7 @@ pkg_install-н давтамжтайгаар ажиллах скрипт багц
Хуучирсан бинар багцуудыг устгахын тулд:
-[source,bash]
+[source,shell]
....
# pkg clean
....
@@ -590,28 +590,28 @@ FreeBSD-н портын цуглуулга дахь програм хангам
package:ports-mgmt/portmaster[] ба package:ports-mgmt/portupgrade[] портуудаас ялгаатай нь шинэ болон хуучин хувилбарууд ямар дарааллаар жагссанаас хамаарч өөр байдаг. pkgng-н хувьд синтакс нь:
-[source,bash]
+[source,shell]
....
# pkg set -o category/oldport:category/newport
....
Жишээ нь дээрх жишээний багцын эхийг өөрчлөхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
Бас нэг өөр жишээ нь package:lang/ruby18[]-г package:lang/ruby19[] руу шинэчлэхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
Төгсгөлийн жишээ нь [.filename]#libglut# хуваалцсан сангийн эхийг package:graphics/libglut[]-с package:graphics/freeglut[] руу өөрчлөхийн тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -620,7 +620,7 @@ package:ports-mgmt/portmaster[] ба package:ports-mgmt/portupgrade[] порту
====
Багцын эхийг солих үед ихэнх тохиолдолд өөрчлөгдсөн эхийн багцаас хамаарсан багцуудыг дахин суулгах нь чухал байдаг. Хамаарсан багцуудыг дахин суулгахын тулд дараахийг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -651,21 +651,21 @@ Portsnap нь портын цуглуулгыг татаж аван шинэчл
. Шахсан хэлбэртэй портын цуглуулгыг [.filename]#/var/db/portsnap# сан дотор татаж авах хэрэгтэй. Хэрэв та хүсвэл энэ алхмын дараа интернэтээс салгаатай ажиллаж болдог.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Хэрэв та Portsnap-г анх удаагаа ажиллуулж байгаа бол шахагдсан уг цуглуулгыг [.filename]#/usr/ports# сан дотор задална:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэлсний дараа [.filename]#/usr/ports# санг доорх тушаалаар шинэчилнэ:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -679,7 +679,7 @@ Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэ
. Subversion-г портын модыг татахаасаа өмнө суулгасан байх шаардлагатай. Хэрэв портын мод аль хэдийн байгаа бол Subversion-г иймэрхүү маягаар суулгаарай:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -687,28 +687,28 @@ Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэ
+
Хэрэв портын мод байхгүй бол Subversion-г багц хэлбэрээр суулгаж болно:
+
-[source,bash]
+[source,shell]
....
# pkg_add -r subversion
....
+
Хэрэв pkgng нь багцыг удирдахад хэрэглэгдэж байгаа бол Subversion-г ингэж суулгаж болно:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Портын модыг татаж авна. Илүү ажиллагааг хурдан болгохын тулд доорх тушаалын _svn.FreeBSD.org_ гэдгийн оронд танд газар зүйн байрлалын хувьд ойр байрлалыг crossref:mirrors[mirrors-svn,Subversion толин тусгал] хэсгээс харан сонгоорой. Итгэмжлэн нийлүүлэгчид зөв протокол сонгож ажиллахын тулд эхлээд link:{committers-guide}#subversion-primer/[Subversion Primer] тусламжийг унших ёстой.
+
-[source,bash]
+[source,shell]
....
# svn checkout svn://svn.FreeBSD.org/ports/head /usr/ports
....
+
. Subversion-ий эхний удаагийн таталтын дараа [.filename]#/usr/ports#-г шинэчлэхийн тулд дараах тушаалыг ажиллуулна:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -722,7 +722,7 @@ Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэ
. `root` эрхээр ороод `sysinstall` гэсэн тушаал өгөх хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -754,21 +754,21 @@ Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэ
. man:cron[8] дотор чинь автоматаар CVSup эсвэл csup-г дуудсан ажлууд байвал хааж болиулах хэрэгтэй.
. Байгаа портын модоо өөр түр зуурын байр руу зөөнө:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports /usr/ports.old
....
+
. Шинэ портын модыг Portsnap-р татаж [.filename]#/usr/ports#-д задална:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch extract
....
+
. distfile-ууд болон хадгалсан багцуудыг шинэ портын мод руугаа зөөнө:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports.old/distfiles /usr/ports
# mv /usr/ports.old/packages /usr/ports
@@ -776,21 +776,21 @@ Portsnap-г эхний удаа дээрх маягаар ашиглаж эхэ
+
. Хуучин портын модыг устгана:
+
-[source,bash]
+[source,shell]
....
# rm -rf /usr/ports.old
....
+
. Хэрэв CVSup өмнө нь ашиглагдаж байсан бол одоо устгаж болно:
+
-[source,bash]
+[source,shell]
....
# pkg_delete -r -v cvsup-without-gui-\*
....
+
pkgng хэрэглэгчид дараах тушаалыг ашиглаж болно:
+
-[source,bash]
+[source,shell]
....
# pkg delete cvsup-without-gui
....
@@ -832,14 +832,14 @@ Portsnap ашиглан портын модыг шинэчлэх болон Port
Эхлэхийн өмнө суулгах гэж буй портын санд орох хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Тэгээд [.filename]#lsof# санд орсон хойноо уг сан дотор та тухайн портын араг ясыг харах болно. Дараагийн алхам бол портыг хөрвүүлэх буюу "бүтээх" билээ. Ингэхийн тулд тушаал бичих мөрөнд `make` гэж бичнэ. Ингэж гүйцэтгэсний дараа дараах маягийн явцын мэдээллийг та харах болно:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -864,7 +864,7 @@ Portsnap ашиглан портын модыг шинэчлэх болон Port
Хөрвүүлэлт дуусаад та буцаад тушаал бичих мөрөнд ирэнгүүт хийх ёстой дараагийн алхам бол портыг суулгах билээ. Ингэхийн тулд таны хийх ёстой зүйл бол `make` тушаалыг өөр нэг үгтэй хамт бичих ёстой бөгөөд тэр үг нь `install` юм:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -884,7 +884,7 @@ Portsnap ашиглан портын модыг шинэчлэх болон Port
Програмыг хөрвүүлж бүтээхэд хэрэглэгдсэн түр файлуудыг хадгалсан дэд сангуудыг устгах нь зүйтэй. Энэ нь дискний зайг хэмнэхээс гадна тухайн портыг шинэчлэх үед алдаа гаргуулахгүй маш сайн зуршил юм.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -930,7 +930,7 @@ http://www.freebsdmall.com/[FreeBSD Mall] зэрэг зарим гуравдаг
Мөш цөөхөн тохиолдолд хэрэглэгчид `MASTER_SITES` (татаж авах файлуудын байршил) хаягнаас өөр байршил ашиглан эх файлуудыг татаж авах шаардлага гарч болох юм. Ийм үед `MASTER_SITES` хувьсагчийн утгыг дараах тушаалаар өөрчилдөг:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -948,14 +948,14 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Заримдаа портыг хөрвүүлэх болон суулгах өөр санг хэрэглэх нь хэрэгтэй (онц шаардлагатай) байдаг. `WRKDIRPREFIX` болон `PREFIX` хувьсагчдын утгыг өөрчилж анхдагч сангийн байршлыг сольдог. Жишээ нь:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
гэсэн тушаал нь портыг [.filename]#/usr/home/example/ports# сан дотор хөрвүүлээд хөрвүүлэгдэж бүтээгдсэн файлуудыг [.filename]#/usr/local# санд суулгадаг.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -964,7 +964,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Мэдээж
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -986,7 +986,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Та одоо портыг хэрхэн суулгах талаар мэдсэн юм чинь хэрэв буруу портоо суулгасан бол түүнийг хэрхэн утсгадаг талаар мэдэхийг хүсэж байгаа байх. Өмнөх жишээнд суулгасан портоо бид устгацгаая (анхааралгүй уншсан нэгэнд нь `lsof` програм гэж сануулъя). Портууд багцтай ижилхэн man:pkg_delete[1] тушаалаар устгагдаж болно ( <<packages-using,Багц сонголт>> хэсэгт тайлбарласан буй):
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -996,7 +996,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Хамгийн түрүүнд man:pkg_version[1] тушаал ашиглан портын цуглуулгаас шинэ хувилбар агуулсан портуудыг жагсаах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -1013,7 +1013,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
portupgrade хэрэгсэл нь портыг амархан шинэчлэхэд зориулагдсан. Үүнийг package:ports-mgmt/portupgrade[] портоос суулгаж болно. Бусад портын нэгэн адил порт суулгадаг журмаар `make install clean` гэсэн тушаалаар суулгадаг:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -1023,21 +1023,21 @@ portupgrade хэрэгсэл нь портыг амархан шинэчлэхэ
Хэрэв та `portupgrade -a` гэж ажиллуулбал таны системд суугдсан бүх хуучирсан портуудыг portupgrade шинэчилж эхэлдэг. Хэрэв та суугдах шинэчлэл болгонд лавлаж асуух үйлдэл хийлгэхийг хүсвэл `-i` сонголт нэмээрэй.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Хэрэв та бүх шинэчлэгдэх порт биш харин зөвхөн тодорхой нэгэн портыг шинэчлэх хүсэлтэй бол `portupgrade багцны-нэр` гэж бичнэ. `-R` сонголт нэмснээр тухайн програмд шаардагдах портуудыг portupgrade эхлээд нь шинэчлэдэг.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Портын оронд багц хэрэглэж суулгахыг хүсвэл `-P` сонголт хэрэглэнэ. Энэ сонголттой үед portupgrade нь `PKG_PATH` хувьсагчид зааж өгсөн жагсаалтад буй сан дотроос багцуудыг хайх ба хэрэв уг санд байхгүй байгаа бол сүлжээнээс татаж нөхдөг. Хэрэв дотоод сан болон сүлжээнээс багц олдоогүй тохиолдолд portupgrade нь портоор суулгахыг оролдох болно. Порт хэлбэрээр суулгах үйлдлийг зогсоохын тулд `-PP` сонголтыг нэмж өгдөг.
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -1049,7 +1049,7 @@ portupgrade хэрэгсэл нь портыг амархан шинэчлэхэ
Portmaster нь "үндсэн" системд байдаг (бусад портуудаас хамаардаггүй) хэрэгслүүдийг ашиглахаар хийгдсэн бөгөөд аль портыг шинэчлэхээ тогтоохын тулд [.filename]#/var/db/pkg/# сан доторхийг ашигладаг. Тэрээр package:ports-mgmt/portmaster[] порт хэлбэрээр байдаг:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -1064,7 +1064,7 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
Та суулгагдсан бүх портуудыг жагсааж болох бөгөөд `-L` тохируулга ашиглан шинэчлэлт байгаа эсэхийг хайж болно:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -1091,7 +1091,7 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
Бүх суулгагдсан портуудыг энэ хялбар тушаал ашиглан шинэчилж болно:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -1103,14 +1103,14 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
Хэрэв шинэчлэх процессийн явцад алдаа гарвал та бүх портыг шинэчлэх буюу дахин бүтээхийн тулд `-f`-г ашиглаж болно:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Шинэ порт бүтээж суулгахаасаа өмнө бүх хамааралтай портуудыг шинэчилж Portmaster-ийг системд шинэ порт суулгахдаа та бас ашиглаж болно:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -1122,21 +1122,21 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
Портын цуглуулга нь дискний хэмжээг байнга идэж байдаг. Портоос програмыг хөрвүүлж суулгасны дараа бэлдэж байсан [.filename]#work# санг `make clean` тушаалаар цэвэрлэхээ үргэлж санах хэрэгтэй. Та портын цуглуулгыг бүхлээр нь дараах тушаалаар цэвэрлэж болно:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Маш олон эх файлууд [.filename]#distfiles# санд явцын үр дүнд хадгалагдаж байдаг. Та тэдгээрийг гар аргаар устгаж болох ба дараах тушаал хэрэглэн ямар нэгэн порттой холбоогүй болсон бүх distfiles устгаж болно:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Эсвэл таны системд одоо суугдсан байгаа порттой хамаагүй бүх distfiles-уудыг дараах тушаалаар устгана:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -1157,7 +1157,7 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
* man:pkg_info[1] тушаалыг ашиглан ямар файл хаана яаж суугдсаныг харна. Жишээ нь та саяхан FooPackage version 1.0.0, програмыг суулгасан бол
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -1166,7 +1166,7 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
+
Хэрэв та програмынхаа хувилбарын талаар сайн мэдэхгүй байгаа бол
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -1175,7 +1175,7 @@ Portmaster нь портуудыг дөрвөн төрөлд бүлэглэдэ
* Програмын гарын авлага хаана суугдсаныг мэдсэн үедээ man:man[1]-г ашиглан харах хэрэгтэй. Мөн түүнчлэн ийм аргаар тохируулга болон нэмэлт мэдээллийн файлуудыг нь тухай бүрд нь харах хэрэгтэй.
* Хэрэв уг програм өөрийн гэсэн вэб хуудастай бол түүнд нь зорчин нэмэлт мэдээлэл авах, байнгын асуулт хариултыг нь үзэх гэх мэтчилэн оролдоорой. Уг програмын вэб хуудасны хаяг нь
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/mn/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/mn/books/handbook/ppp-and-slip/_index.adoc
index 352c465a10..cfa27749a1 100644
--- a/documentation/content/mn/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/mn/books/handbook/ppp-and-slip/_index.adoc
@@ -190,7 +190,7 @@ PPP-д нөгөө талдаа өөрийгөө хэрхэн таниулахы
+
Нэвтрэлтийн мөр нь залгах мөр шиг чалчихтай төсөөтэй зарчимтай байдаг. Энэ жишээн дээр нэвтрэх сесс нь доор дурдсантай адил үйлчилгээний хувьд уг мөр ажиллаж байна:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -305,7 +305,7 @@ exec /usr/sbin/ppp -direct $IDENT
Энэ скрипт нь ажиллахаар болсон байх ёстой. Одоо энэ скрипт уруу [.filename]#ppp-dialup# гэгдсэн симболын холбоосыг дараах тушаалуудыг ашиглан үүсгэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -319,7 +319,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Дараах 0 байт файлуудыг агуулсан бүгд бичих боломжтой [.filename]#/home/ppp# санг үүсгэнэ:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -333,7 +333,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Жишээ нь хэрэв та `fred`, `sam`, болон `mary` гэсэн гурван dialup хэрэглэгчтэй бөгөөд тэдгээрт зориулж /24 CIDR сүлжээнүүдийг чиглүүлж байгаа бол дараах тушаалыг ажиллуулж болох юм:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -598,7 +598,7 @@ sendmail_flags="-bd"
Үүний сул тал нь ppp холбоос тогтсон үед та доор дурдсаныг бичиж `sendmail`-ээр захидлын дарааллыг дахин шалгуулж байх явдал юм:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -617,14 +617,14 @@ sendmail_flags="-bd"
Одоо машиныг дахин ачаалах л үлдлээ. Дахин ачаалсны дараа та доор дурдсаныг бичиж:
-[source,bash]
+[source,shell]
....
# ppp
....
дараа нь PPP сессийг эхлүүлэхийн тулд `dial provider` тушаалыг ажиллуулах юм уу эсвэл гадагшаа урсгал байгаа (бөгөөд та [.filename]#start_if.tun0# скрипт үүсгээгүй) бол сессүүдийг автоматаар тогтоодгоор `ppp`-г байлгахыг хүсэж байгаа бол доор дурдсаныг бичээрэй:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -712,7 +712,7 @@ defaultroute # put this if you want that PPP server will be your
. Kermit-с гарна (шугамыг таслалгүйгээр).
. Доор дурдсаныг оруулна:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/pppd /dev/tty01 19200
....
@@ -857,7 +857,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTphone.number
Эдгээр нь суулгагдаж зөв болж өөрчлөгдсөний дараа таны хийх ганц зүйл бол `pppd`-г иймэрхүү маягаар ажиллуулах явдал юм:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1098,7 +1098,7 @@ device uart
[.filename]#uart# төхөөрөмж `GENERIC` цөмд аль хэдийн орсон байдаг учир энэ тохиолдолд нэмэлт алхмууд хэрэггүй юм. Модем төхөөрөмжийн хувьд `dmesg` гаралтыг шалгаарай:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -1109,35 +1109,35 @@ device uart
Гараар `ppp`-г хянаж Интернэтэд холбогдох нь холболтыг дибаг хийх юм уу эсвэл ердөө л таны ISP чинь `ppp` клиент холболтуудад хэрхэн ханддаг талаар мэдээлэл авахад хурдан, хялбар, агуу арга байдаг. Тушаалын мөрөөс PPP-г эхлүүлье. Бидний бүх жишээнүүд дээр бид PPP ажиллуулж байгаа машины хостын нэрийг _example_ гэж авч ашиглах болно. Та `ppp`-г `ppp` гэж бичин эхлүүлнэ:
-[source,bash]
+[source,shell]
....
# ppp
....
Бид одоо `ppp`-г эхлүүллээ.
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
Бид өөрсдийн модемний төхөөрөмжийг тохируулна. Энэ тохиолдолд [.filename]#cuau1# болно.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
Холболтын хурдыг тохируулна. Энэ тохиолдолд бид 115,200 kbps-г ашиглаж байна.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Бидний нэр танигчийг тохируулж [.filename]#/etc/resolv.conf# файлд нэрийн серверүүдийн мөрүүдийг нэмэхийг `ppp`-д хэлнэ. `ppp` бидний хостын нэрийг тодорхойлж чадахгүй байгаа бол бид дараа нь гараараа тохируулж өгч болно.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -1150,7 +1150,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1159,56 +1159,56 @@ atdt123456789
Модемийг эхлүүлэхийн тулд `at`-г ашиглаж дараа нь `atdt` дээр өөрийн ISP-ийн дугаараа нэмээд залгах процессоо эхлэх хэрэгтэй.
-[source,bash]
+[source,shell]
....
CONNECT
....
Холболтын баталгаа гарах ёстой, хэрэв бид тоног төхөөрөмжтэй холбоогүй ямар нэг холболтын асуудлуудтай байх бол энд бид тэдгээрийг шийдэхийг оролдох болно.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
Энд танаас хэрэглэгчийн нэрийг асуух болно, ISP-ээс өгсөн хэрэглэгчийн нэрийг оруулаад буцахыг дарна.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
Энэ удаад нууц үгийг асуух болно, ISP-ээс өгсөн нууц үгээр хариулах хэрэгтэй. Яг л FreeBSD уруу нэвтрэн ордог шиг нууц үг нь буцаж дэлгэцэд харагдахгүй.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Таны ISP-ээс хамаараад энэ хүлээх мөр нь хэзээ ч гарахгүй байж болох юм. Энд биднээс үйлчилгээ үзүүлэгч дээр бүрхүүл ашиглах эсэх эсвэл `ppp` эхлүүлэх эсэхийг асуудаг. Энэ жишээн дээр бид Интернэт холболтыг хүсэж байгаа болохоор `ppp`-г ашиглахаар сонгосон.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Энэ жишээн дээр эхний `p` тохируулга томоор бичигдсэнийг хараарай. Энэ нь бид ISP-д амжилттайгаар холбогдсоныг харуулж байна.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
Бид ISP-д амжилттайгаар өөрсдийгөө таниулан нэвтэрч заагдсан IP хаягийг хүлээж байна.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
Бид IP хаяг дээрээ зөвшилцөж холболтоо амжилттайгаар хийж дуусгалаа.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -1227,14 +1227,14 @@ PPP нь тушаалын горимд буцахгүй байж болох юм
Хэрэв та нэвтрэлт хүлээх мөрийг хэзээ ч авахгүй байгаа бол та магадгүй дээрх жишээн дээрх UNIX(R) загварын нэвтрэлт танилтын оронд PAP юм уу эсвэл CHAP нэвтрэлт танилтыг ашиглах хэрэгтэй байж болох юм. PAP эсвэл CHAP-г ашиглахын тулд ердөө л дараах тохируулгуудыг PPP-д терминал горим уруу орохоос өмнө нэмэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Дээр байгаа _myusername_-г ISP-с өгөгдсөн хэрэглэгчийн нэрээр солих шаардлагатай.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -1294,7 +1294,7 @@ name_of_service_provider:
`root` хэрэглэгчээр та доор дурдсаныг ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1348,7 +1348,7 @@ net.graph.nonstandard_pppoe=1
эсвэл дараах тушаалаар нэн даруй хийгдэж болно:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -1455,14 +1455,14 @@ adsl:
Дараах тушаалыг `root`-ээр ажиллуулж холболтыг хялбараар эхлүүлэх боломжтой байдаг:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Та холболтын төлөвийг дараах тушаалаар харж болно:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1498,7 +1498,7 @@ adsl:
Та өөрийн бүртгэлийн нууц үгийг [.filename]#ppp.conf# файлд цэвэр текст хэлбэрээр тавих ёстой болохоор энэ файлын агуулгыг хэн ч уншиж чадахгүй болгосон эсэхээ шалгах хэрэгтэй. Дараах сери тушаалууд нь энэ файлыг зөвхөн `root` бүртгэлээр уншигдахаар болгох юм. Дэлгэрэнгүй мэдээллийг man:chmod[1] болон man:chown[8] гарын авлагын хуудаснуудаас лавлана уу.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1508,7 +1508,7 @@ adsl:
Энэ нь PPP сессэд зориулан таны DSL чиглүүлэгч уруу хоолой нээх болно. Ethernet DSL модемууд нь LAN IP хаягаар урьдчилан тохируулагдсан байдаг бөгөөд та түүн уруу холбогдоно. Alcatel SpeedTouch(TM) Home-ийн хувьд энэ хаяг нь `10.0.0.138` байна. Таны чиглүүлэгчийн баримтад төхөөрөмж ямар хаяг ашиглаж байгааг хэлсэн байх ёстой. Хоолой нээж PPP сесс эхлүүлэхийн тулд дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -1521,7 +1521,7 @@ adsl:
[.filename]#tun# виртуал хоолой төхөөрөмж нь pptp болон ppp процессуудын хоорондох харилцаанд зориулан үүсгэгдэх болно. Тушаал хүлээх мөрөнд буцаж ирснийхээ дараа юм уу эсвэл pptp нь холболтыг баталгаажуулсны дараа та хоолойг ингэж шалгаж болно:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1652,7 +1652,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
+
. Kermit-г тэнд нь үлдээж (та үүнийг kbd:[Ctrl+z] хослолоор зогсоож болно) `root`-ээр дараах тушаалыг бичнэ:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1664,7 +1664,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
доор дурдсаныг хийж:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1683,7 +1683,7 @@ man:slattach[8] гарын авлагын хуудсанд интерфэйси
* `sl0`-ийн оронд `s10` тохируулгыг ашиглах (зарим фонтууд дээр ялгааг нь олж харах хэцүү байж болох юм).
* Өөрийн интерфэйсийн төлөвийг харахын тулд `ifconfig sl0` тушаалыг ажиллуулж үзээрэй. Жишээ нь та иймэрхүү дүн харж болох юм:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1692,7 +1692,7 @@ sl0: flags=10<POINTOPOINT>
* Хэрэв та man:ping[8] тушаалаас `no route to host` мэдэгдлүүдийг авах юм бол таны чиглүүлэлтийн хүснэгтэд асуудал байж болзошгүй юм. Тухайн үед байгаа чиглүүлэлтүүдийг үзүүлэхийн тулд `netstat -r` тушаалыг ашиглаж болно :
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1766,7 +1766,7 @@ device sl
Тохиргоог даруй идэвхтэй болгохын тулд та `root` хэрэглэгчээр дараах тушаалыг ажиллуулж болно:
-[source,bash]
+[source,shell]
....
# service routing start
....
@@ -1854,7 +1854,7 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp
Дээрх жишээг ашиглаж байхдаа Ethernet MAC хаягийг (`00:11:22:33:44:55`) өөрийн системийн Ethernet картын MAC хаягаар солисон эсэхээ шалгаарай. Тэгэхгүй бол таны "proxy ARP" чинь мэдээж ажиллахгүй! Та өөрийн SLIP серверийн Ethernet MAC хаягийг `netstat -i` тушаалыг ажиллуулан гарсан үр дүнгээс нь харан олж болох юм; гарсан үр дүнгийн хоёр дахь мөр иймэрхүү харагдах ёстой:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/mn/books/handbook/preface/_index.adoc b/documentation/content/mn/books/handbook/preface/_index.adoc
index 7d7c32ed9f..39ee1575e5 100644
--- a/documentation/content/mn/books/handbook/preface/_index.adoc
+++ b/documentation/content/mn/books/handbook/preface/_index.adoc
@@ -233,21 +233,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
[.filename]#E:\># гэж эхэлсэн жишээнүүд нь MS-DOS(R) тушаалыг илэрхийлнэ. Тэмдэглэж хэлээгүй л бол эдгээр тушаалуудыг орчин үеийн Microsoft(R) Windows(R) орчны "Тушаал хүлээх мөр" цонхноос ажиллуулж болох юм.
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
`#` гэж эхэлсэн жишээнүүд нь FreeBSD дээр супер хэрэглэгчээр ажиллуулах ёстой тушаалыг илэрхийлнэ. Тушаал бичихийн тулд та `root` эрхээр нэвтрэх юм уу эсвэл өөрийн ердийн эрхээр нэвтрээд супер хэрэглэгчийн зөвшөөрлүүдийг авахын тулд man:su[1]-г ашиглаж болох юм.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
% гэж эхэлсэн жишээнүүд нь ердийн хэрэглэгчийн бүртгэлээс ажиллуулах ёстой тушаалыг илэрхийлнэ. Тэмдэглэж хэлээгүй л бол орчны хувьсагчууд болон бусад бүрхүүлийн тушаалуудыг тохируулахад C бүрхүүлийн синтакс ашиглагддаг.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/mn/books/handbook/printing/_index.adoc b/documentation/content/mn/books/handbook/printing/_index.adoc
index 9be3b75458..39cca239fc 100644
--- a/documentation/content/mn/books/handbook/printing/_index.adoc
+++ b/documentation/content/mn/books/handbook/printing/_index.adoc
@@ -182,14 +182,14 @@ PostScript(R) ажлууд нь жинхэнэдээ хэвлэгч уруу и
Таны ашиглаж байгаа цөм цуваа интерфэйсийг дэмжиж байгаа эсэхийг мэдэхийн тулд доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
Энд байгаа _N_ нь тэгээс эхлэх цуваа портын дугаар юм. Хэрэв та доор дурдсантай төстэй гаралтыг харвал:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -199,14 +199,14 @@ sio2: type 16550A
Цөм нь зэрэгцээ интерфэйсийг дэмждэг эсэхийг мэдэхийн тулд доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Энд байгаа _N_ нь тэгээс эхлэх зэрэгцээ портын дугаар юм. Хэрэв та доор дурдсантай төстэй гаралтыг харвал:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -247,7 +247,7 @@ hint.ppc.0.irq="N"
+
[.filename]#/boot/device.hints# файлд засварлаж _N_-ий оронд зөв IRQ дугаарыг солих хэрэгтэй. Цөмийн тохиргооны файл man:ppc[4] драйверийг бас агуулсан байх ёстой:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -270,7 +270,7 @@ _Холбооны горимыг_ man:lptcontrol[8]-р тохируулахын
====
. Доор дурдсаныг бичиж:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -278,7 +278,7 @@ _Холбооны горимыг_ man:lptcontrol[8]-р тохируулахын
`lptN`-д зориулж тасалдлаар зохицуулагдах горимыг тохируулна.
. Доор дурдсаныг бичиж:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -328,7 +328,7 @@ _Зэрэгцээ порт дээрх хэвлэгчийг тест хийхий
** Хэрэв хэвлэгч цэвэр текст хэвлэж чаддаг бол man:lptest[1]-г ашиглана. Доор дурдсаныг бичнэ:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -336,7 +336,7 @@ _Зэрэгцээ порт дээрх хэвлэгчийг тест хийхий
Энд байгаа _N_ нь тэгээс эхлэх зэрэгцээ портын дугаар юм.
** Хэрэв хэвлэгч PostScript(R) эсвэл бусад хэвлэгчийн хэлийг ойлгодог бол жижиг програм хэвлэгч уруу илгээх хэрэгтэй. Доор дурдсаныг бичнэ:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -345,7 +345,7 @@ _Зэрэгцээ порт дээрх хэвлэгчийг тест хийхий
+
Мөн өөрөөр програмыг файлд хийж доор дурдсаныг бичин өгч болно:
+
-[source,bash]
+[source,shell]
....
# cat file > /dev/lptN
....
@@ -384,7 +384,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
. man:tip[1] ашиглан хэвлэгч уруу холбогдоно. Доор дурдсаныг бичнэ:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -394,7 +394,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
** Хэрэв хэвлэгч цэвэр текст хэвлэж чаддаг бол man:lptest[1]-г ашиглана. Доор дурдсаныг бичнэ:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -403,7 +403,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
Мөн өөрөөр та програмыг файлд хийж доор дурдсаныг бичин оруулж болно:
+
-[source,bash]
+[source,shell]
....
% >file
....
@@ -497,14 +497,14 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Доор үзүүлсэн шиг хэвлэгчийн нэртэй адил нэрээр санг үүсгэх нь бас зуршил болсон байдаг:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/printer-name
....
Гэхдээ та сүлжээндээ их олон хэвлэгчидтэй бол түр хадгалах сангуудаа зөвхөн LPD-ээр хэвлэхийн тулд нөөцөлсөн нэг сангийн доор хийхийг хүсэж болох юм. Бид `rattan` болон `bamboo` гэсэн хоёр жишээ хэвлэгчдээ зориулж үүнийг хийх болно:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -515,7 +515,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
====
Хэрэглэгчдийн хэвлэх ажлын нууцлалын талаар та бодож байгаа бол түр хадгалах санд олон нийт хандах боломжгүй болгож түүнийг хамгаалахыг хүсэж болох юм. Түр хадгалах сангуудыг `daemon` хэрэглэгч болон `daemon` бүлэг эзэмшиж, өөр хэнээр ч биш зөвхөн эдгээрээр уншигдах, бичигдэх, болон хайлт хийгдэх боломжтой байх ёстой. Бид үүнийг өөрсдийн жишээ хэвлэгчдэд зориулж хийх болно:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -620,7 +620,7 @@ exit 2
Файлыг ажиллах боломжтой болгоно:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -658,7 +658,7 @@ lpd_enable="YES"
мөрийг [.filename]#/etc/rc.conf# файлд нэмж өөрийн машиныг дахин ачаалах юм уу эсвэл ердөө л man:lpd[8]-г ажиллуулах хэрэгтэй.
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -674,7 +674,7 @@ _Энгийн LPD тохиргоог тест хийхийн тулд:_
Доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinter-name
....
@@ -683,7 +683,7 @@ _Энгийн LPD тохиргоог тест хийхийн тулд:_
PostScript(R) хэвлэгчийн хувьд та програмын үр дүнг авах ёстой. Хэрэв та man:lptest[1]-г ашиглаж байгаа бол таны авсан үр дүн иймэрхүү харагдах ёстой:
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -905,7 +905,7 @@ exit 2
Хувиргах шүүлтүүрүүд нь төрөл бүрийн файлуудыг хэвлэхэд амар болгодог. Жишээ нь бид TeX хэв маяг тохируулах системтэй их ажилладаг бөгөөд бидэнд PostScript(R) хэвлэгч байна гэж бодъё. TeX-ээс DVI файлыг үүсгэх болгонд бид DVI файлыг PostScript(R) уруу хувиргалгүйгээр шууд хэвлэж чадахгүй. Тушаалын дараалал иймэрхүү хийгдэнэ:
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -913,7 +913,7 @@ exit 2
DVI файлуудад зориулсан хувиргах шүүлтүүрийг суулгаж LPD-ээр өөрсөддөө зориулан хийлгэж бид гараар хувиргах алхмыг алгасаж болно. Одоо, DVI файлыг авах болгонд бидэнд хэвлэхэд нэг алхам дутуу байх болно:
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1278,7 +1278,7 @@ LPD нь толгой хуудасны дараа form feed тэмдэгт хэ
Толгой хуудаснуудыг идэвхжүүлснээр LPD нь хэрэглэгч, хост, болон ажлыг таниулах том үсгүүдтэй _урт толгой_ бүхий хуудсыг үүсгэх болно. Энд жишээ байна (`kelly` нь "outline" гэсэн нэртэй ажлыг `rose`-с хэвлэжээ):
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1318,7 +1318,7 @@ LPD нь ажлыг шинэ хуудсан дээр эхлүүлэхийн ту
Хэрэв та хүсэж байгаа бол LPD нь _богино толгой_ хийж чаддаг; [.filename]#/etc/printcap# файлд `sb`-г (short banner буюу богино сурталчилгаа) зааж өгөх хэрэгтэй. Толгой хуудас иймэрхүү харагдах болно:
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1549,7 +1549,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Дараа нь бид `orchid` дээр түр хадгалах сан нэмэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1558,7 +1558,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Одоо `orchid` дээрх хэрэглэгчид `rattan` болон `bamboo` хэвлэгчдийг хэрэглэж чадна. Жишээ нь `orchid` дээрх хэрэглэгч дараах тушаал өгвөл:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1625,7 +1625,7 @@ LPD нь хэрэглэгчдэд нэг файлыг олон хэвлэхий
Хэрэв ингэж олон хувилах нь цаг болон цаасны дайсан юм байна гэж үзэж байгаа бол `-#` сонголтыг man:lpr[1] дээр хорьж болох бөгөөд ингэхийн тулд `sc` сонголтыг [.filename]##/etc/printcap## файл дотор оруулж өгнө. Хэрэв хэрэглэгч `-#` сонголттой хэвлэх тушаал илгээвэл дараах мэдэгдлийг харах болно:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1673,7 +1673,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
`sc` тохиргоог хэрэглэснээр `lpr -#` тушаалын хэрэглээг хорих боловч man:lpr[1] тушаалын олон удаагийн хэрэглээ юм уу эсвэл нэг удаагийн хэвлэгдэх ажилд нэг файлыг дараах маягаар олон илгээхийг хорих боломжгүй:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1687,7 +1687,7 @@ UNIX(R)-н бүлэглэл болон [.filename]#/etc/printcap# файлын `
Хэрэв уг бүлэгт хамаараагүй хэрэглэгч (`root`-г оруулаад) тухайн хяналттай хэвлэгч рүү юм хэвлэхийг оролдох үед доорх мэдэгдлийг харуулах болно:
-[source,bash]
+[source,shell]
....
lpr: Not a member of the restricted group
....
@@ -1803,7 +1803,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
Түр хадгалах санг `sd` тохиргооны хэсэгт зааж өгсөн байна. Одоо LPD-н алсаас илгээгдсэн хэвлэгдэх ажилд зориулж гурван мегабайт хэмжээг (6144 дискний багц) зааж өгцгөөе. :
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1850,7 +1850,7 @@ LPD нь `lpf`-г хуудасны өргөн болон өндрийн утга
Хэрэглэгчдээс хэвлэлтийн төлбөрийг шаардах үедээ man:pac[8] програмыг ажиллуулах хэрэгтэй. Тооцоо хийх хэвлэгчийнхээ түр хадгалах санд оронгуутаа `pac` гэсэн тушаал ажиллуулахад болно. Дараа нь доллараар тооцсон дараах маягийн үр дүнг харах болно:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1889,7 +1889,7 @@ _хэрэглэгч ..._::
man:pac[8] боловсруулсан анхдагч тооцоонд янз бүрийн компьютераас хэвлэсэн хэрэглэгч бүрд хуудасных нь дугаарыг харуулдаг. Хэрэв танд компьютерийн нэр харуулах шаардлага байхгүй (хэрэглэгч янз бүрийн машинаас хэвлэсэн байж болно) гэж үзвэл `pac -m` гэсэн тушаалаар доорх маягаар үр дүнг харах болно:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1903,7 +1903,7 @@ total 337.00 154 $ 6.74
Долларын хэмжээг тооцохын тулд man:pac[8] нь [.filename]#/etc/printcap# доторх `pc` тохиргооны утгыг ашигладаг (анхдагч утга нь хуудас болгонд 200, эсвэл 2 цент гэж байдаг). Энэ тохируулгад хуудас бүрд юм уу эсвэл алхам бүрд тооцох центүүдийг зааж өгдөг. Та энэ утгыг man:pac[8]-г ажиллуулахдаа `-p` гэсэн хавсралт сонголтоор дарж хэрэглэж болдог. `-p` сонголтод хэрэглэх утга нь центээр биш доллараар байх ёстой. Жишээ нь,
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1957,28 +1957,28 @@ man:lpr[1], man:lprm[1], мөн man:lpq[1] гэсэн эдгээр тушаал
Файлыг хэвлэхийн тулд:
-[source,bash]
+[source,shell]
....
% lpr filename ...
....
Энэ нь жагсааж өгсөн файлуудыг анхдагч хэвлэгч рүү илгээж хэвлэдэг. Хэрэв та ямар ч файл зааж өгөөгүй бол man:lpr[1] нь гарнаас оруулах утгуудыг хэвлэгч рүү илгээдэг. Жишээ нь дараах тушаал нь системийн чухал файлуудыг хэвлэнэ:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
Хэвлэгчийг онцгойлж сонгохыг хүсвэл :
-[source,bash]
+[source,shell]
....
% lpr -P printer-name filename ...
....
Дараах жишээн дээр тухайн байгаа сангийн файлуудыг жагсааж `rattan` нэртэй хэвлэгч рүү илгээхийх харуулах болно:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -1994,14 +1994,14 @@ man:lpr[1] тушаалаар хэвлэгдэх зүйлс LPD түр хадг
Анхдагч хэвлэгчийн дарааллыг харуулахын тулд man:lpq[1] тушаалыг бичдэг. Хэрэв хэвлэгчээр нь сонгож харахыг хүсвэл `-P` сонголт хэрэглэдэг. Жишээлбэл
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
гэсэн тушаал нь `bamboo` нэртэй хэвлэгч дээр байгаа хэвлэх дарааллыг хардаг. Доорх хэсэгт `lpq` тушаалын гаралтыг харуулав:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2018,7 +2018,7 @@ man:lpq[1] тушаалын гаралтын хамгийн эхний мөр б
man:lpq[1] тушаал нь мөн `-l` сонголтыг дэмждэг бөгөөд энэ нь уртасгасан жагсаалтыг харуулдаг юм. Доор `lpq -l` тушаалын гаралтыг харуулав:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2039,14 +2039,14 @@ mary: 3rd [job 011rose]
Анхдагч хэвлэгчээс ажил устгахын тулд эхлээд man:lpq[1] тушаал хэрэглэж дарааллынх нь дугаарыг нь мэддэг. Тэгээд дараа нь:
-[source,bash]
+[source,shell]
....
% lprm job-number
....
Хэвлэгдэх ажлыг хэвлэгчийн нэрийг нь онцгойлж хандан устгахын хүсвэл `-P` сонголт хэрэглэнэ. Дараах тушаал нь `bamboo` нэртэй хэвлэгчээс 10 дугаартай ажлыг устгана:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2064,7 +2064,7 @@ lprm::
Дээрх товчлолуудыг `-P` сонголт ашиглан хэвлэгчийн нэр зааж өгөн ямар нэгэн хэвлэгч рүү онцгойлон хандаж болдог. Жишээлбэл дараах тушаал нь `rattan` хэвлэгчээс тухайн хэрэглэгчийн бүх дарааллыг устгана:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2073,7 +2073,7 @@ lprm::
====
Хэрэв та сүлжээний орчинд ажиллаж байгаа бол man:lprm[1] тушаал нь өөр ижил нэртэй хэвлэгч өөр машинд залгаатай байсан ч зөвхөн илгээсэн компьютерийн л дарааллыг устгахад зөвшөөрдөг. Доорх жишээнд үүнийг тодруулав:
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2103,7 +2103,7 @@ man:lpr[1] тушаал нь текст загварчлах, зураг фай
Жишээлбэл дараах тушаал нь [.filename]#fish-report.dvi# нэртэй DVI төрлийн файлыг (TeX төрлийн бичилтийн системийн) `bamboo` хэвлэгч рүү явуулна:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d fish-report.dvi
....
@@ -2155,7 +2155,7 @@ raster өгөгдлийг хэвлэнэ.
Жишээ: Дараах тушаал нь man:ls[1]-н гарын авлагыг аятайхан загварчлаад анхдагч хэвлэгчээр хэвлэнэ:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2172,7 +2172,7 @@ man:lpr[1] тушаалд өгсөн дараах сонголтууд LPD дэ
+
Доорх жишээн дээр [.filename]#parser.c# файлыг гурав, [.filename]#parser.h# файлыг мөн гурав хувилж анхдагч хэвлэгч рүү хэвлэж байна:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2320,7 +2320,7 @@ exit 2
Та дараах зүйлсийг хуудсан дээрээ харах болно:
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/mn/books/handbook/security/_index.adoc b/documentation/content/mn/books/handbook/security/_index.adoc
index 72674726df..29c0ed64c7 100644
--- a/documentation/content/mn/books/handbook/security/_index.adoc
+++ b/documentation/content/mn/books/handbook/security/_index.adoc
@@ -125,7 +125,7 @@ FreeBSD нь таны систем болон сүлжээний аюулгүй
Бүртгэлийг бүрэн түгжихийн тулд man:pw[8] тушаалыг ашиглах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# pw lock staff
....
@@ -181,7 +181,7 @@ Kereberos мэтийг ашиглах нь танд staff бүртгэлийн
Цөмийн аюулгүй байдлын түвшинг янз бүрийн аргаар тохируулж болно. Ажиллаж байгаа цөмийн аюулгүй байдлын түвшинг нэмэгдүүлэх хялбар алга бол цөмийн `kern.securelevel` хувьсагчийг `sysctl` ашиглан өөрчлөх явдал юм:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel=1
....
@@ -293,7 +293,7 @@ FreeBSD аль шифрлэх аргыг тохируулж ашиглаж ба
OPIE-г эхний удаа эхлүүлэхдээ `opiepasswd` тушаалыг ажиллуул:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -315,7 +315,7 @@ MOS MALL GOAT ARM AVID COED
Өөрийн нууцлаг нууц үгийг аюултай холболтоор эхэлж өгөхдөө эсвэл өөрчлөхдөө `opiekey` ажиллуулж болох тийм газар уруу аюулгүй холболттой байж байх шаардлагатай; энэ нь таны итгэж байгаа машин дээр бүрхүүлийн тушаал хүлээх мөр хэлбэрээр байж болно. Та бас давталтын тоог (100 боломжийн утга байж болох юм) бодож өгөх хэрэгтэй бөгөөд та өөрөө үр бодож олох эсвэл дурын үүсгэснийг ашиглах хэрэгтэй. Аюултай холболтоор (таны эхлүүлж байгаа машин уруу) `opiepasswd` тушаалыг ашигла:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -334,7 +334,7 @@ LINE PAP MILK NELL BUOY TROY
Анхдагч үрийг хүлээж авах бол kbd:[Return] дар. Дараа нь хандах нууц үгийг оруулахын өмнө аюулгүй холболт уруугаа орж адил параметрүүдийг өгөөрэй:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -349,7 +349,7 @@ GAME GAG WELT OUT DOWN CHAT
OPIE-г эхлүүлэн тохируулж нэвтэрсний дараа танд иймэрхүү тушаал хүлээх мөр харуулагдана:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -369,7 +369,7 @@ Password:
Итгэсэн систем дээрээ:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -384,7 +384,7 @@ GAME GAG WELT OUT DOWN CHAT
Заримдаа та итгэсэн машин эсвэл аюулгүй холболт уруу хандах боломжгүй тийм газар очих хэрэгтэй болдог. Энэ тохиолдолд `opiekey` тушаал ашиглаж хэд хэдэн нэг удаагийн нууц үгүүдийг урьдчилан үүсгэж хэвлэн биедээ авч явах боломжтой юм. Жишээ нь:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -453,7 +453,7 @@ qpopper : ALL : allow
Энэ мөрийг нэмснийхээ дараа inetd-г man:service[8] ашиглан дахин эхлүүлэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -617,7 +617,7 @@ Kerberos үйлчилгээнүүдийг хэрэглэгчдэд хүртээ
Мэдээллийн сан үүсгэлтийн жишээ сесс доор байна:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -636,7 +636,7 @@ Verifying password - Password: xxxxxxxx
Одоо KDC үйлчилгээнүүдийг эхлүүлэх цаг болжээ. Үйлчилгээнүүдийг эхлүүлэхдээ `service kerberos start` болон `service kadmind start` тушаалуудыг ажиллуулна. Энэ үед танд ямар ч kerberos хийгдсэн дэмон байхгүйг санаарай, гэхдээ та KDC-ийн өөрийнх нь тушаалын мөрөөс үүсгэсэн удирдагчид (хэрэглэгч) зориулсан тасалбарыг авч жагсаан KDC-г ажиллаж байгаа гэдгийг та баталж чадаж байх ёстой:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -651,7 +651,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
Та дууссаныхаа дараа тасалбарыг буцааж болно:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -668,7 +668,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
[.filename]#/etc/krb5.conf# файлыг суулгасны дараа та Kerberos серверээс `kadmin` тушаалыг ашиглаж болно. `add --random-key` тушаал нь серверийн хост удирдагчийг нэмэх боломжийг танд олгох бөгөөд `ext` тушаал нь серверийн хост удирдагчийг өөрийн keytab уруу задлах боломжийг танд олгоно. Жишээ нь:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -683,7 +683,7 @@ kadmin> exit
Хэрэв таны хувьд KDC дээр `kadmind` ажиллахгүй байгаа бөгөөд (магадгүй аюулгүй байдлын шалтгаануудаас болоод) тэгээд `kadmin` уруу алсаас хандах боломжгүй бол та хост удирдагчийг (`host/myserver.EXAMPLE.ORG`) шууд KDC дээр нэмж дараа нь доор дурдсантай адилаар түүнийг түр зуурын файл уруу (KDC дээрх [.filename]#/etc/krb5.keytab# файлыг дарж бичихээс сэргийлж) задалж болно:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -721,7 +721,7 @@ Heimdal порт нь зарим нэг дутуу програмуудыг нэ
[.filename]#.k5login# болон [.filename]#.k5users# файлууд нь хэрэглэгчдийн гэрийн сангуудад байрладаг бөгөөд [.filename]#.hosts# болон [.filename]#.rhosts# файлуудын хүчирхэг хослолын нэгэн адилаар энэ асуудлыг шийдэн ашиглагдаж болох юм. Жишээ нь хэрэв [.filename]#.k5login# нь дараах агуулгатайгаар:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -830,7 +830,7 @@ OpenSSL-ийн хамгийн түгээмэл хэрэглээний нэг б
Сертификат үүсгэхийн тулд дараах тушаал байдаг:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -865,21 +865,21 @@ An optional company name []:Another Name
CA-с гарын үсэг шаарддаггүй тохиолдолд өөрөө зурсан сертификатыг үүсгэж болно. Эхлээд RSA түрхүүр үүсгэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
Дараа нь CA түлхүүр үүсгэ:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Сертификат үүсгэхийн тулд энэ түлхүүрийг ашигла :
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -913,7 +913,7 @@ define(`confTLS_SRV_OPTIONS', `V')dnl
Хялбар тест хийхийн тулд man:telnet[1] хэрэгсэл ашиглан захидлын серверт холбогдох хэрэгтэй:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -961,7 +961,7 @@ IPsec нь хоёр хостын хоорондох урсгалыг шууд ш
Өөрийн цөмдөө IPsec дэмжлэгийг нэмэхийн тулд та дараах тохируулгуудыг цөмийн тохиргоондоо нэмээрэй:
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -969,7 +969,7 @@ device crypto
Хэрэв IPsec дибаг хийх дэмжлэг заавал хэрэгтэй бол дараах цөмийн тохируулга бас нэмэгдсэн байх шаардлагатай:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -994,17 +994,17 @@ VPN-ийг байгуулахад ямар нэг стандарт байхгү
Дараагийн шаардлага нь пакетуудыг тунель хийх болон хоёр сүлжээг зөв холбогдоход ашиглагдах хоёр man:gif[4] псевдо төхөөрөмжийг үүсгэх явдал юм. `root` хэрэглэгчээр _internal_ болон _external_ гэсэн утгуудыг жинхэнэ дотоод болон гадаад гарцуудаар өөрчлөн дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 internal1 internal2
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 tunnel external1 external2
....
@@ -1058,22 +1058,22 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
Хүсэн хүлээж байсны дагуу хоёр тал хоёулаа хувийн тохируулсан хаягаасаа ICMP пакетуудыг илгээх болон хүлээн авах боломжтой байна. Дараа нь аль аль сүлжээнээс урсгалыг зөв илгээдэг байхын тулд хоёр гарцад хоёуланд нь пакетуудыг хэрхэн яаж чиглүүлэхийг зааж өгөх ёстой. Энэ зорилгод дараах тушаал хүрнэ:
-[source,bash]
+[source,shell]
....
# corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# corp-net# route add net 10.0.0.0: gateway 10.0.0.5
....
-[source,bash]
+[source,shell]
....
# priv-net# route add 10.246.38.0 10.246.38.1 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# priv-net# route add host 10.246.38.0: gateway 10.246.38.1
....
@@ -1185,7 +1185,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Ингэсний дараа racoon-г хоёр гарц дээр дараах тушаал ашиглан эхлүүлнэ:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1210,7 +1210,7 @@ Foreground mode.
Тунель зөв ажиллаж байгааг шалгахын тулд нөгөө консол руу шилжиж сүлжээний урсгалыг харахын тулд man:tcpdump[1] ашиглан дараах тушаалыг хэрэглэнэ. `em0`-ийг сүлжээний интерфэйс картаараа шаардлагатай бол солиорой.
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1287,7 +1287,7 @@ sshd_enable="YES"
Энэ нь дараагийн удаа таны систем эхлэхэд OpenSSH-д зориулсан man:sshd[8] дэмон програмыг дуудна. Мөн man:service[8] ашиглан OpenSSH-г эхлүүлэх боломжтой байдаг:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1296,7 +1296,7 @@ sshd_enable="YES"
man:ssh[1] хэрэгсэл man:rlogin[1]-тэй адил ажилладаг.
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1313,7 +1313,7 @@ user@example.com's password: *******
man:scp[1] тушаал man:rcp[1]-тэй адил ажилладаг; энэ нь файлыг алсын машинаас эсвэл машин уруу, ялгаатай нь аюулгүйгээр хуулдаг.
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1339,7 +1339,7 @@ OpenSSH дэмон болон клиентийн системийн дагуух
Нууц үгүүдийг ашиглахын оронд man:ssh-keygen[1] нь хэрэглэгчийг шалгаж танихад DSA эсвэл RSA түлхүүрүүдийг үүсгэхэд хэрэглэгдэж болно:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1374,7 +1374,7 @@ man:ssh-agent[1] хэрэгсэл нь түүн уруу дуудагдсан х
man:ssh-agent[1]-ийг бүрхүүлд ашиглахын тулд үүнийг эхлээд бүрхүүлтэй цуг нэмэлт өгөгдөл маягаар ажиллуулах шаардлагатай. Хоёрдугаарт хэн бэ гэдэг мэдээллийг (identity) man:ssh-add[1]-г ажиллуулан нэмэх хэрэгтэй бөгөөд түүнд хувийн түлхүүрийн нэвтрэх үгнүүдийг өгөх хэрэгтэй. Эдгээр алхмууд хийгдсэний дараа хэрэглэгч харгалзах нийтийн түлхүүр суулгагдсан дурын хост уруу man:ssh[1] хийж чадах болно. Жишээ нь:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1399,7 +1399,7 @@ OpenSSH нь шифрлэгдсэн сессийн үед өөр протоко
Дараах тушаал telnet-д зориулж туннель үүсгэхийг man:ssh[1]-д хэлж өгнө:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1432,7 +1432,7 @@ SMTP, POP3, FTP гэх зэрэг ямар ч аюултай TCP протоко
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1451,7 +1451,7 @@ Escape character is '^]'.
Ажил дээр чинь гаднаас холболтууд хүлээн авах SSH сервер байна. Бас тэр оффисийн сүлжээнд POP3 сервер ажиллуулж байгаа захидлын сервер байна. Таны гэр болон оффисийн хоорондын сүлжээ болон сүлжээний зам итгэж болохоор эсвэл итгэж болохооргүй байж магадгүй юм. Ийм учраас та өөрийн захидлыг аюулгүй аргаар шалгах хэрэгтэй юм. Үүний шийдэл нь өөрийн оффисийн SSH сервер уруу SSH холболт үүсгэж захидлын сервер уруу туннель хийх явдал юм.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1467,7 +1467,7 @@ user@ssh-server.example.com's password: ******
Үүний шийдэл нь таны сүлжээний галт ханаас гаднах машин уруу SSH холболт үүсгэж үүнийг Ogg Vorbis сервер уруу туннель хийхэд ашиглах явдал юм.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1505,7 +1505,7 @@ AllowUsers root@192.168.1.32 admin
[.filename]#/etc/ssh/sshd_config#-д өөрчлөлтүүд хийснийхээ дараа man:sshd[8]-д өөрийн тохиргооны файлуудыг дахин дуудахыг дараах тушаалыг ажиллуулж та хэлж өгөх ёстой:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1566,7 +1566,7 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
Файлын системийн ACL-уудыг man:getfacl[1] хэрэгслээр харж болно. Жишээ нь [.filename]#test# файл дээрх ACL тохируулгуудыг харахын тулд дараах тушаалыг ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1579,14 +1579,14 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
Энэ файлын ACL тохируулгуудыг өөрчлөхийн тулд man:setfacl[1] хэрэгслийг ажиллуул. Ажиглаарай:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
`-k` туг нь тухайн үед тодорхойлогдсон бүх ACL-уудыг файл эсвэл файлын системээс арилгана. Илүү дээр арга бол ACL-уудыг ажиллуулахад шаардлагатай үндсэн талбаруудыг орхидог `-b` тугийг ашиглах явдал юм.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1604,7 +1604,7 @@ package:ports-mgmt/portaudit[] порт нь FreeBSD-ийн аюулгүй ба
Portaudit-г ашиглаж эхлэхийн тулд Портуудын цуглуулгаас түүнийг суулгах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -1613,7 +1613,7 @@ Portaudit-г ашиглаж эхлэхийн тулд Портуудын цуг
Суулгасны дараа администратор мэдээллийн баазыг шинэчлэх болон суулгасан багцуудад мэдэгдэж байгаа эмзэг асуудлуудыг үзэхдээ дараах тушаалыг ажиллуулна:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -1625,7 +1625,7 @@ Portaudit-г ашиглаж эхлэхийн тулд Портуудын цуг
Портуудын цуглуулгын хэсэг болгон суулгагдсан гуравдагч талын хэрэгслүүдийг ямар ч үед аудит хийхдээ администратор зөвхөн дараах тушаалыг ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -1741,7 +1741,7 @@ Common Vulnerabilities Database system буюу Нийтлэг Эмзэг асу
Процессийн бүртгэл хөтлөлтийг ашиглаж эхлэхээсээ өмнө үүнийг идэвхжүүлэх хэрэгтэй. Үүнийг хийхийн тулд дараах тушаалуудыг ажиллуул:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -1754,7 +1754,7 @@ Common Vulnerabilities Database system буюу Нийтлэг Эмзэг асу
Тушаалуудыг ашигласан тухай мэдээллийг харахын тулд man:lastcomm[1] хэрэгслийг ашиглах хэрэгтэй. `lastcomm` тушаал нь тухайн man:ttys[5] дээр хэрэглэгчдийн ажиллуулсан тушаалуудыг үзүүлэхэд хэрэглэгдэж болно, жишээ нь:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/mn/books/handbook/serialcomms/_index.adoc b/documentation/content/mn/books/handbook/serialcomms/_index.adoc
index b684128625..bcfd186be1 100644
--- a/documentation/content/mn/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/mn/books/handbook/serialcomms/_index.adoc
@@ -336,7 +336,7 @@ FreeBSD нь анхдагчаар дөрвөн цуваа портыг дэмж
Таны цуваа портуудыг таны цөм таньж байгаа эсэхийг харахын тулд цөмийг ачаалж байх үед мэдэгдлүүдийг үзэх хэрэгтэй эсвэл цөмийн ачаалалтын мэдэгдлүүдийг дахин харуулах `/sbin/dmesg` тушаалыг ашиглах хэрэгтэй. `uart` тэмдэгтүүдээр эхэлсэн мэдэгдлүүдийг хайгаарай:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'uart'
....
@@ -357,14 +357,14 @@ FreeBSD нь анхдагчаар дөрвөн цуваа портыг дэмж
[.filename]#ttyuN# (эсвэл [.filename]#cuauN#) төхөөрөмж нь таны өөрийн програмууддаа зориулж нээхийг хүсэх ердийн төхөөрөмж юм. Процесс төхөөрөмжийг онгойлгоход энэ нь терминалын I/O тохиргоонуудын анхдагч олонлогтой байх болно. Та эдгээр тохиргоонуудыг дараах тушаалаар үзэж болно
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
Энэ төхөөрөмжид тохиргоонуудыг өөрчлөхөд төхөөрөмжийг хаах хүртэл тохиргоонууд нь идэвхтэй байдаг. Дахин онгойлгоход энэ нь анхдагч тохиргоо уруугаа буцдаг. Анхдагч олонлогт өөрчлөлтүүдийг хийхийн тулд та онгойлгоод "эхний төлөвт" төхөөрөмжийн тохиргоонуудыг тааруулж болно. Жишээ нь [.filename]#ttyu5#-ийн хувьд `CLOCAL` горим, 8 бит холбоо, болон `XON/XOFF` урсгалын хяналтыг идэвхжүүлэхийн тулд доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
@@ -373,7 +373,7 @@ FreeBSD нь анхдагчаар дөрвөн цуваа портыг дэмж
Програм зарим тохиргоонуудыг өөрчлөхөөс сэргийлэхийн тулд "түгжих төлөвт" төхөөрөмжид тохиргоо хийнэ. Жишээ нь [.filename]#ttyu5#-ийн хурдыг 57600 bps болгож түгжихийн тулд доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -418,7 +418,7 @@ FreeBSD-ийн үндсэн системд цуваа холболтоор аж
FreeBSD ажиллаж байгаа клиент систем дээрээс өөр системийн цуваа холболт уруу холбогдохын тулд та дараах тушаалыг ашиглаж болно:
-[source,bash]
+[source,shell]
....
# cu -l serial-port-device
....
@@ -500,7 +500,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
[.filename]#/etc/ttys# файлд шаардлагатай өөрчлөлтүүдийг хийсний дараа `init` процесс уруу өөрийн тохиргооных нь файлыг дахин уншуулахын тулд SIGHUP (hangup) дохиог илгээх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -527,14 +527,14 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
`getty` процесс ажиллаж терминалд үйлчилж байгаа эсэхийг үзнэ. Жишээ нь ажиллаж байгаа `getty` процессуудын жагсаалтыг `ps` тушаалаар авахын тулд доор дурдсаныг бичнэ:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Та терминалын хувьд түүний оруулгыг харах ёстой. Жишээ нь дараах дэлгэц нь `getty` нь хоёр дахь цуваа порт [.filename]#ttyu1# дээр ажиллаж [.filename]#/etc/gettytab# файлд `std.38400` гэсэн оруулгыг ашиглаж байгааг харуулж байна:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
....
@@ -610,7 +610,7 @@ FreeBSD нь NS8250-, NS16450-, NS16550-, болон NS16550A-дээр тулг
Терминалуудтай адил `init` нь гаднаас залгах холболтуудын хувьд тохируулсан цуваа порт бүрийн хувьд `getty` процессийг ажиллуулдаг. Жишээ нь хэрэв модем [.filename]#/dev/ttyu0# уруу залгагдсан бол `ps ax` тушаал ингэж харуулж болох юм:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyu0
....
@@ -715,7 +715,7 @@ ttyu0 "/usr/libexec/getty xxx" dialup on
Та [.filename]#/etc/ttys# файлд өөрчлөлтүүд хийснийхээ дараа `init` процессод файлыг дахин уншуулахын тулд HUP дохиог илгээж болох юм. Та дараах тушаалыг ашиглаж
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -828,7 +828,7 @@ AT&B2&W
Хэрэв DTR заагч асахгүй бол FreeBSD систем уруу консолоор нэвтрээд FreeBSD нь зөв порт дээр `getty` процессийг ажиллуулахаар оролдож байгаа эсэхийг харахын тулд `ps ax` тушаалыг ажиллуулна. Та эдгээртэй төстэй мөрүүдийг процессуудын хамтаар харах ёстой:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu1
@@ -836,7 +836,7 @@ AT&B2&W
Хэрэв та үүнтэй адил өөр:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -889,7 +889,7 @@ cuau0:dv=/dev/cuau0:br#19200:pa=none
`root` хэрэглэгчээр `cu`-г дараах маягаар ашиглаарай:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -921,7 +921,7 @@ tip57600|Dial any phone number at 57600 bps:\
Дараа нь та иймэрхүү зүйлс хийж болно:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -936,7 +936,7 @@ cu115200|Use cu to dial any number at 115200bps:\
дараа нь ингэж бичнэ:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1058,7 +1058,7 @@ crossref:boot[boot,FreeBSD-ийн Ачаалах процесс]-т тайлба
. Цуваа кабелийг [.filename]#COM1# болон хянаж байгаа терминал уруу холбоно.
. Цуваа консол дээр бүх ачаалалтын мэдэгдлүүдийг харахын тулд супер хэрэглэгчээр нэвтэрснийхээ дараа дараах тушаалыг ажиллуулна:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1150,7 +1150,7 @@ device sio0 flags 0x10
+
Та өөрийн FreeBSD хайрцгийг эхлүүлэх үед ачаалах блокууд нь [.filename]#/boot.config# файлын агуулгуудыг консол уруу гаргаж харуулах болно. Жишээ нь:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1187,7 +1187,7 @@ Keyboard: no
+
Ачаалах процессийг тасалдуулахын тулд консол дээр kbd:[Enter]-с өөр дурын товчлуурыг дарах хэрэгтэй. Ачаалах блокууд нь дараа нь танаас дараачийн чинь үйлдлийг асуух болно:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1352,7 +1352,7 @@ device sio1 flags 0x30
Бусад цуваа портуудын хувьд консолын тугууд тохируулагдах ёсгүй.
. Ачаалах блокууд болон ачаалагч дуудагчийг дахин эмхэтгээд суулгана:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/mn/books/handbook/users/_index.adoc b/documentation/content/mn/books/handbook/users/_index.adoc
index 4e12c6fa3e..687c8fd0c4 100644
--- a/documentation/content/mn/books/handbook/users/_index.adoc
+++ b/documentation/content/mn/books/handbook/users/_index.adoc
@@ -166,7 +166,7 @@ man:adduser[8] нь шинэ хэрэглэгч нэмдэг энгийн про
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -237,7 +237,7 @@ Goodbye!
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -273,7 +273,7 @@ man:chpass[1] нь хэрэглэгчийн өгөгдлийн бааз боло
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -300,7 +300,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -332,7 +332,7 @@ man:passwd[1] нь энгийн хэрэглэгч үедээ эсвэл бус
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -349,7 +349,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -386,7 +386,7 @@ FreeBSD нь хэрэглэгчдийн систем хэрэглэх болом
====
FreeBSD ердийн үед шууд [.filename]#/etc/login.conf# файлыг уншдаггүй, харин түргэн хайж харахад илүүгээр нь [.filename]#/etc/login.conf.db# өгөгдлийн бааз файлыг уншдаг. [.filename]#/etc/login.conf#-д засвар хийх бүртээ [.filename]#/etc/login.conf.db# файлыг шинэчлэх ёстой бөгөөд ингэхийн тулд дараах тушаалыг гүйцэтгэх хэрэгтэй:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -451,7 +451,7 @@ FreeBSD ердийн үед шууд [.filename]#/etc/login.conf# файлыг
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -466,7 +466,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -481,7 +481,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -496,7 +496,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/mn/books/handbook/vinum/_index.adoc b/documentation/content/mn/books/handbook/vinum/_index.adoc
index 665d0218e4..f4573ed533 100644
--- a/documentation/content/mn/books/handbook/vinum/_index.adoc
+++ b/documentation/content/mn/books/handbook/vinum/_index.adoc
@@ -425,7 +425,7 @@ Plex-үүд болон дэд дискнүүд нь тусгайлсан нэр
Энэ эзлэхүүн дээр файлын систем үүсгэхийн тулд man:newfs[8]-г ашиглана:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
....
@@ -514,7 +514,7 @@ geom_vinum_load="YES"
. Энэ төхөөрөмжийн root эзлэхүүний хэсэг болох дэд дискний байрлал (төхөөрөмжийн эхэн хэсгээс тодорхой офсетэд) болон хэмжээг дараах тушаалыг ашиглаж шалгах хэрэгтэй:
+
-[source,bash]
+[source,shell]
....
# gvinum l -rv root
....
@@ -522,7 +522,7 @@ geom_vinum_load="YES"
Vinum офсетүүд болон хэмжээнүүд нь байтаар хэмжигддэг болохыг санаарай. `bsdlabel` тушаалд хэрэглэгддэг блок дугааруудыг олж авахын тулд тэдгээр нь 512-т хуваагдах ёстой.
. Дараах тушаалыг:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -e devname
....
@@ -536,7 +536,7 @@ Vinum офсетүүд болон хэмжээнүүд нь байтаар хэ
Ийм замаар шинэ `"a"` хуваалт нь энэ төхөөрөмж дээрх Vinum хуваалтыг дарж байгуулагдана. Хэрэв Vinum хуваалт нь `"vinum"` fstype-г ашиглан зөвөөр тэмдэглэгдсэн бол `bsdlabel` тушаал нь зөвхөн энэ даралтыг зөвшөөрөх болно.
. Ингээд боллоо! root эзлэхүүний нэг хуулбартай төхөөрөмж бүр дээр хуурсан `"a"` хуваалт одоо бий боллоо. Үр дүнг дараах тушаалтай төстэй тушаал ашиглан дахин шалгахыг зөвлөдөг:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/devnamea
....
@@ -546,7 +546,7 @@ Vinum офсетүүд болон хэмжээнүүд нь байтаар хэ
Дараагийн дахин ачаалалтын дараа эхлүүлэгч нь шинэ Vinum дээр тулгуурласан root файлын системээс тохирох хяналтын мэдээллийг олж түүний дагуу ажиллах ёстой. Цөмийн эхлүүлэх процессийн төгсгөлд бүх төхөөрөмжүүд зарлагдсаны дараа энэ тохиргоог амжилттай болсныг харуулсан алдартай мэдэгдэл иймэрхүү байдлаар харуулагдана:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/gvinum/root
....
@@ -555,7 +555,7 @@ Mounting root from ufs:/dev/gvinum/root
Vinum root эзлэхүүн тохируулагдсаны дараа `gvinum l -rv root` тушаалын үр дүн иймэрхүү харагдана:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -576,7 +576,7 @@ Subdisk root.p1.s0:
Эдгээр төхөөрөмжийн хувьд bsdlabel нь иймэрхүү харагдана:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/mn/books/handbook/virtualization/_index.adoc b/documentation/content/mn/books/handbook/virtualization/_index.adoc
index 781167baf6..20510c5d8b 100644
--- a/documentation/content/mn/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/mn/books/handbook/virtualization/_index.adoc
@@ -328,7 +328,7 @@ FreeBSD зочин дээр дараах тушаалуудыг ажиллуул
Эхлээд package:emulators/virtualbox-ose-additions[] багц эсвэл портыг FreeBSD зочин дээр суулгана. Энэ нь портыг суулгах болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -423,7 +423,7 @@ VirtualBox(TM) нь идэвхтэйгээр хөгжүүлэгдэж байга
VirtualBox(TM) нь FreeBSD-ийн багц эсвэл порт хэлбэрээр package:emulators/virtualbox-ose[] санд байрладаг. Дараах тушаалыг ашиглан портыг суулгаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -433,7 +433,7 @@ VirtualBox(TM) нь FreeBSD-ийн багц эсвэл порт хэлбэрээ
VirtualBox(TM)-ийг анх удаа эхлүүлэхээсээ өмнө хэдэн тохиргооны өөрчлөлтүүдийг хийх ёстой. Порт цөмийн модулийг [.filename]#/boot/modules# санд суулгах бөгөөд ажиллаж байгаа цөмд дараах тушаалаар дуудах ёстой:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -454,14 +454,14 @@ vboxnet_enable="YES"
`vboxusers` бүлэг VirtualBox(TM)-г суулгах явцад үүсгэгддэг. VirtualBox(TM)-д хандах шаардлагатай бүх хэрэглэгчид энэ бүлгийн гишүүн болж нэмэгдсэн байх ёстой. `pw` тушаалыг шинэ гишүүдийг нэмэхэд хэрэглэж болно:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
[.filename]#/dev/vboxnetctl#-н анхдагч зөвшөөрлүүд нь хязгаарлагдмал байдаг бөгөөд гүүр сүлжээний хувьд өөрчлөх шаардлагатай байдаг:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -477,7 +477,7 @@ perm vboxnetctl 0660
VirtualBox(TM)-ийг ажиллуулахын тулд Xorg дээрээс дараахийг бичиж ажиллуулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -489,7 +489,7 @@ VirtualBox(TM)-ийг тохируулж ашиглах талаар дэлгэ
USB төхөөрөмжөөс унших болон түүн рүү бичихийн тулд хэрэглэгчид `operator` бүлгийн гишүүн байх ёстой:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m jerry
....
@@ -511,7 +511,7 @@ devfs_system_ruleset="system"
Дараа нь devfs-г дахин ачаална:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -530,7 +530,7 @@ VirtualBox(TM) DVD/CD-г ажиллуухын тулд HAL-г ажиллуула
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -544,7 +544,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
diff --git a/documentation/content/mn/books/handbook/x11/_index.adoc b/documentation/content/mn/books/handbook/x11/_index.adoc
index 0dd7d3dddc..88dbd1d430 100644
--- a/documentation/content/mn/books/handbook/x11/_index.adoc
+++ b/documentation/content/mn/books/handbook/x11/_index.adoc
@@ -143,7 +143,7 @@ Xorg бол FreeBSD-н X11 гүйцэтгэл юм. Xorg нь X.Org сангаа
Портын цуглуулгаас Xorg-г суулгахын тулд:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -158,7 +158,7 @@ X11-г багц хэлбэрээр мөн суулгаж болно. Хоёрт
Xorg-н хамгийн сүүлийн хэлбэрийг нь автоматаар нөхөж суулгахын тулд ердөө л дараах тушаалыг өгнө:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -203,7 +203,7 @@ dbus_enable="YES"
Xorg нь ямар нэг тохиргооны алхмуудыг цааш хийлгүйгээр дараах тушаалыг бичин ихэвчлэн ажилладаг:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -217,7 +217,7 @@ GNOME, KDE эсвэл Xfce зэрэг ширээний орчнууд нь хэ
X11-г тохируулах нь олон үе шаттай явц билээ. Хамгийн эхний алхам бол анхдагч тохируулгын файлыг бэлдэх билээ. Супер хэрэглэгчийн эрхээр ердөө л дараах тушаалыг өгнө:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -226,7 +226,7 @@ X11-г тохируулах нь олон үе шаттай явц билээ.
Дараагийн алхам бол уг тохируулга файлыг ашиглаад график төхөөрөмжтэй Xorg ажиллаж чадаж байгааг турших юм. Дараах тушаалыг оруулах хэрэгтэй:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -237,7 +237,7 @@ X11-г тохируулах нь олон үе шаттай явц билээ.
====
kbd:[Ctrl+Alt+Backspace] товчлууруудын хослолыг ашиглан Xorg-с бас гарч болно. Үүнийг идэвхжүүлэхийн тулд дараах тушаалыг дурын X терминал эмулятороос оруулж болно:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -301,7 +301,7 @@ hald-ээр энэ файлыг уншуулахын тулд та өөрийн
Адил тохиргоог X терминалаас эсвэл энэ тушаалын мөрөөс скриптээр хийх боломжтой:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -360,7 +360,7 @@ EndSection
Хэрэв бүх зүйл сайн болж өнгөрсөн бол тохируулгын файлаа man:Xorg[1]-д олдох газарт байрлуулах хэрэгтэй. Үүнийг голдуу [.filename]#/etc/X11/xorg.conf# эсвэл [.filename]#/usr/local/etc/X11/xorg.conf# гэсэн байрлалд хуулдаг.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -449,7 +449,7 @@ EndSection
Дээрх Type1 үсгийг портын цуглуулгаас суулгахын тулд дараах тушаалыг оруулна:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -464,7 +464,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
эсвэл Х ажиллаж байх үед дараах тушаалыг өгч болно:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -484,7 +484,7 @@ Load "freetype"
Одоо TrueType(R) үсгийн маягт зориулсан сан үүсгээд (жишээлбэл [.filename]#/usr/local/lib/X11/fonts/TrueType#) бүх TrueType(R) үсгүүдээ тэр санд хуулна. Macintosh(R) машинаас TrueType(R) төрлийн үсгийн маягийг шууд хуулж болохгүй гэдгийг анхаарах хэрэгтэй. Эдгээр нь Х11 дээр хэрэглэгдэхийн тулд UNIX(R)/MS-DOS(R)/Windows(R) хэлбэрийнх байх ёстой. Тэр санд хуулсныхаа дараа ttmkfdir-г ашиглаж [.filename]#fonts.dir# файл үүсгэдэг бөгөөд ингэснээр Х-н үсэг харуулагч нь шинэ файл суугдлаа гэдгийг таньдаг. `ttmkfdir` нь FreeBSD-н портын цуглуулганд package:x11-fonts/ttmkfdir[] гэж буй.
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -492,7 +492,7 @@ Load "freetype"
Одоо TrueType(R) санг үсгийн маягийн таних замд нэмэх ёстой. Энэ нь дээр <<type1,Type1>> үсгийн маягт дээр өгүүлсэнтэй ижилхэн
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -528,7 +528,7 @@ X11-ийн [.filename]#/usr/local/lib/X11/fonts/# ба [.filename]#~/.fonts/# д
Шинэ үсэг, ялангуяа шинэ сан нэмсний дараа үсгийн маягийн түр хадгалагдсан орон зайг дараах тушаалаар сэргээх ёстой:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -642,7 +642,7 @@ X Display Manager (XDM) буюу Х харуулалт зохицуулагч г
XDM-ийг ашиглаж эхлэхийн тулд package:x11/xdm[] портыг суулгана (энэ нь анхдагчаар Xorg-ийн сүүлийн үеийн хувилбаруудтай цуг суудаггүй). Дараа нь XDM далд чөтгөрийг [.filename]#/usr/local/bin/xdm# гэсэн байрлалаас олж болно. Энэ нь `root` эрхтэй хүнээр ямар ч үед эхлүүлэгдэж болдог бөгөөд эхлэнгүүтээ уг машинд буй Х цонхыг зохицуулах үүргийг гүйцэтгэж эхэлдэг. Хэрэв XDM-г машиныг шинээр ачаалагдах болгонд эхлүүлэх хүсэлтэй байгаа бол үүнийг биелүүлэх хамгийн эвтэйхэн зам бол [.filename]#/etc/ttys# файлд оруулга хийж өгөх билээ. Энэ файлын зохион байгуулалтын талаар crossref:serialcomms[term-etcttys,/etc/ttys уруу оруулгууд нэмэх нь] хэсэгт хараарай. [.filename]#/etc/ttys# файл дотор XDM-г виртуал терминал дээр далд чөтгөр хэлбэрээр ажиллуулна гэсэн дараах мөр байдаг:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -720,7 +720,7 @@ XDM-ээр хянагддаг харуулагчтай холбогдох про
Бусад хэрэглэгчдийг харуулагч сервер рүү холбохын тулд та хандах эрхийн дүрмийг засварлаж холболт хүлээж авагчийг зөвшөөрүүлэх хэрэгтэй. Анхдагч утгаараа үүнийг хорьсон байдаг. XDM-г холболт хүлээж авдаг болгохын тулд эхлээд [.filename]#xdm-config# файл доторх мөрийг тайлбар мөр болгож хүчингүй болгох хэрэгтэй:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -753,14 +753,14 @@ GNOME гэдэг нь компьютераа тохируулахад тань
Сүлжээнээс GNOME-г багц хэлбэрээр нь суулгахыг хүсвэл дараах тушаалыг өгөхөд хангалттай:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
GNOME-г порт дотор эх бичлэгээс нь хөрвүүлж суулгахыг хүсвэл дараах тушаалаар суулгана:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -795,7 +795,7 @@ gnome_enable="YES"
GNOME-г мөн тушаал бичдэг мөрнөөс [.filename]#.xinitrc# файлд зөв тохируулга хийснээр ажиллуулж бас болно. Хэрэв [.filename]#.xinitrc# файл өмнө нь байж байвал уг файлд байгаа цонх зохицуулагч эхлэх мөрийг арилгаад оронд нь /usr/local/bin/gnome-session гэж оруулах хэрэгтэй. Хэрэв нэг их онц чухал мөр уг тохиргооны файл дотор байхгүй гэж та мэдэж байгаа бол дараах тушаалыг өгч бас болно:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -807,7 +807,7 @@ GNOME-г мөн тушаал бичдэг мөрнөөс [.filename]#.xinitrc#
Хэрэв XDM юм уу ямар нэгэн өөр дэлгэцийн орчин хэрэглэгдэж байсан бол [.filename]#.xsession# гэсэн файл үүсгээд уг файл дотор өмнө ярьж байсан оруулгыг оруулах хэрэгтэй. Ингэхийн тулд уг файлыг засварлагчаар нээгээд дотор байгаа мөрийг /usr/local/bin/gnome-session мөрөөр дарж бичихэд болно:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -844,14 +844,14 @@ GNOME болон бусад дэлгэцийн орчны програмууды
Сүлжээгээр KDE 3-г багц хэлбэрээр суулгана гэвэл дараах тушаалыг өгөхөд л болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
Сүлжээгээр KDE 4-г багц хэлбэрээр суулгана гэвэл дараах тушаалыг өгөхөд л болно:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -860,7 +860,7 @@ man:pkg_add[1] автоматаар уг програмын сүүлийн ху
KDE 3-г эх бичлэгээс нь хөрвүүлж суулгана гэвэл портын цуглуулгыг ашиглаарай:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -868,7 +868,7 @@ KDE 3-г эх бичлэгээс нь хөрвүүлж суулгана гэвэ
KDE 4-г эх бичлэгээс нь хөрвүүлж суулгана гэвэл портын цуглуулгыг ашиглаарай:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -878,14 +878,14 @@ KDE суугдсаны дараа Х серверт анхдагч цонх зо
KDE 3-н хувьд:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
KDE 4-н хувьд:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -944,14 +944,14 @@ Xfce-н дэлгэрэнгүй мэдээллийг http://www.xfce.org/[Xfce в
Xfce-н багц хувилбар (үүнийг бичиж байх үед) байдаг. Суулгахын тулд ердөө л:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Мөн портын цуглуулга дотроос эх бичлэгээс нь хөрвүүлж суулгаж болно:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -959,7 +959,7 @@ Xfce-н багц хувилбар (үүнийг бичиж байх үед) ба
Одоо Х серверт Х орчныг эхлүүлэх үед Xfce-г ажиллуул гэж зааж өгөхийн тулд:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/nl/articles/contributing/_index.adoc b/documentation/content/nl/articles/contributing/_index.adoc
index 0ebf0d7147..e246ec0427 100644
--- a/documentation/content/nl/articles/contributing/_index.adoc
+++ b/documentation/content/nl/articles/contributing/_index.adoc
@@ -117,14 +117,14 @@ Aannemende dat u in staat bent om redelijk recente broncode veilig te stellen om
Het geprefereerde man:diff[1]-formaat voor het opsturen van patches is het verenigde uitvoerformaat gegenereerd door `diff -u`.
-[source,bash]
+[source,shell]
....
% diff -u oudbestand nieuwbestand
....
of
-[source,bash]
+[source,shell]
....
% diff -u -r -N oudemap nieuwemap
....
diff --git a/documentation/content/nl/articles/leap-seconds/_index.adoc b/documentation/content/nl/articles/leap-seconds/_index.adoc
index 74bd7957d2..189e516b08 100644
--- a/documentation/content/nl/articles/leap-seconds/_index.adoc
+++ b/documentation/content/nl/articles/leap-seconds/_index.adoc
@@ -66,7 +66,7 @@ Probeer er alstublieft voor te zorgen dat er niks ergs gebeurt vanwege de schrik
Het is mogelijk om te kijken of een schrikkelseconde zal worden gebruikt. Vanwege de aard van NTP kan de test tot 24 uur voor de schrikkelseconde werken. Sommige grote bronnen van referentieklokken kondigen schrikkelseconden slechts één uur van te voren aan. Ondervraag de daemon NTP:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/nl/articles/problem-reports/_index.adoc b/documentation/content/nl/articles/problem-reports/_index.adoc
index f71b405908..b5977755a8 100644
--- a/documentation/content/nl/articles/problem-reports/_index.adoc
+++ b/documentation/content/nl/articles/problem-reports/_index.adoc
@@ -150,7 +150,7 @@ Het volgende geldt voor het versturen van PR's via email:
Het programma man:send-pr[1] heeft voorzieningen voor het bijvoegen van bestanden aan een probleemrapport. U kunt zoveel bestanden bijvoegen als u wilt op voorwaarde dat elk bestand een unieke basisnaam (i.e., de naam van het bestand zelf, zonder het pad) heeft. Gebruik de opdrachtregeloptie `-a` om de namen van de bij te voegen bestanden te specificeren:
-[source,bash]
+[source,shell]
....
% send-pr -a /var/run/dmesg -a /tmp/fouten
....
@@ -299,7 +299,7 @@ Als u man:send-pr[1] gebruikt:
Als u klaar bent met het invullen van het sjabloon, het heeft opgeslagen, en uw tekstverwerker verlaten heeft, zal man:send-pr[1] u de prompt `s)end, e)dit or a)bort?` tonen. U kunt dan `s` aanslaan om het probleemrapport in te sturen, `e` aanslaan om de tekstverwerker te herstarten en verdere wijzigingen te maken, of `a` aanslaan om te stoppen. Als u het laatste kiest, blijft uw probleemrapport bewaard op schijf (man:send-pr[1] vertelt u de bestandsnaam voordat het eindigt), zodat u het rustig kunt bewerken, of het misschien over kunt plaatsen naar een systeem met een betere netverbinding, voordat u het met de optie `-F` van man:send-pr[1] verstuurt:
-[source,bash]
+[source,shell]
....
% send-pr -f ~/mijn-probleemrapport
....
diff --git a/documentation/content/nl/articles/solid-state/_index.adoc b/documentation/content/nl/articles/solid-state/_index.adoc
index 18d7b6de7d..b07e1b71dd 100644
--- a/documentation/content/nl/articles/solid-state/_index.adoc
+++ b/documentation/content/nl/articles/solid-state/_index.adoc
@@ -91,14 +91,14 @@ Op een gemiddeld systeem zullen enkele applicaties het onmiddellijk niet meer do
Een belangrijk ding om te onthouden is dat een bestandssysteem dat met [.filename]#/etc/fstab# als alleen-lezen was aangekoppeld ten alle tijden lezen-schrijven kan worden gemaakt door dit commando te geven:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partitie
....
en kan op alleen-lezen worden teruggezet met het commando:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partitie
....
@@ -120,7 +120,7 @@ Kies nadat er met de floppies kern en mfsroot is opgestart `custom` uit het inst
+
Verlaat het aangepaste installatiemenu, en kies van het hoofdinstallatiemenu de optie `fixit`. Geef na het binnengaan van de fixit-omgeving het volgende commando:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -135,7 +135,7 @@ a: 123456 0 4.2BSD 0 0
Hierbij is _123456_ een getal dat exact gelijk is aan het getal in de bestaande regel met `c:` voor de grootte. In feite dupliceert u de bestaande regel met `c:` als een regel met `a:`, met daarbij `4.2BSD` als type van het bestandssysteem. Sla het bestand op en verlaat de tekstverwerker.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -145,7 +145,7 @@ Hierbij is _123456_ een getal dat exact gelijk is aan het getal in de bestaande
+
Koppel het nieuw voorbereide flash-medium aan:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
@@ -153,7 +153,7 @@ Koppel het nieuw voorbereide flash-medium aan:
Activeer deze machine in het netwerk zodat we ons tar-bestand kunnen overzenden en het op het bestandssysteem van het flash-medium kunnen uitpakken. Een manier om dit te doen is:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -162,21 +162,21 @@ Activeer deze machine in het netwerk zodat we ons tar-bestand kunnen overzenden
Nu de machine op het netwerk is, kan het tar-bestand worden overgezonden. U kunt nu tegen een dilemma aanlopen - als bijvoorbeeld uw flash-geheugen 128 MB groot is, en uw tar-bestand groter is dan 64 MB, kan uw tar-bestand niet op het zelfde moment op het flash-medium staan als dan wanneer u het uitpakt - u zult schijfruimte tekort komen. Een oplossing voor dit probleem is, wanneer u FTP gebruikt, om het bestand uitpakt terwijl u het over FTP verzendt. Als u de overdracht op deze manier aanpakt, zult u nooit het tar-bestand en de inhoud ervan op hetzelfde moment op uw schijf hebben:
+
-[source,bash]
+[source,shell]
....
ftp> get tar-bestand.tar "| tar xvf -"
....
+
Als uw tar-bestand met gzip is ingepakt, kunt u dit ook voor elkaar krijgen:
+
-[source,bash]
+[source,shell]
....
ftp> get tar-bestand.tar "| zcat | tar xvf -"
....
+
Nadat de inhoud van uw ge-tar-de bestandssysteem op het bestandssysteem van uw flash-geheugen staan, kunt u het flash-geheugen afkoppelen en opnieuw opstarten:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -201,7 +201,7 @@ Dit lost echter nog niet het probleem van het behouden van cron-tabellen na het
[.filename]#syslog.conf# specificeert de plaats van bepaalde logbestanden die in [.filename]#/var/log# bestaan. Deze bestanden worden niet door [.filename]#/etc/rc.d/var# tijdens de systeeminitialisatie aangemaakt. Daarom dient u ergens na de sectie die de mappen in [.filename]#/var# aanmaakt in [.filename]#/etc/rc.d/var# iets als het volgende toevoegen:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -215,14 +215,14 @@ Om het mogelijk te maken om een portsmap binnen te gaan en succesvol make `insta
Maak als eerste een map aan voor de pakketdatabase. Dit is normaliter [.filename]#/var/db/pkg#, maar we kunnen het daar niet plaatsen aangezien het telkens als het systeem wordt opgestart zal verdwijnen.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Voeg nu een regel aan [.filename]#/etc/rc.d/var# toe die de map [.filename]#/etc/pkg# aan [.filename]#/var/db/pkg# koppelt. Een voorbeeld:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -242,7 +242,7 @@ Voeg eerst de map `log/apache` toe aan de lijst van mappen die in [.filename]#/e
Voeg ten tweede deze commando's toe aan [.filename]#/etc/rc.d/var# na de sectie die mappen aanmaakt:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -250,7 +250,7 @@ Voeg ten tweede deze commando's toe aan [.filename]#/etc/rc.d/var# na de sectie
Verwijder als laatste de bestaande map [.filename]#apache_log_map# en vervang het door een koppeling:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_map
# ln -s /var/log/apache apache_log_map
diff --git a/documentation/content/nl/books/handbook/advanced-networking/_index.adoc b/documentation/content/nl/books/handbook/advanced-networking/_index.adoc
index 5257a269f7..b5422fb0ad 100644
--- a/documentation/content/nl/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/nl/books/handbook/advanced-networking/_index.adoc
@@ -78,7 +78,7 @@ Indien een machine een andere machine over een netwerk wil vinden, dient er een
Om de verschillende aspecten van routen te illustreren, wordt het volgende voorbeeld van `netstat` gebruikt:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -201,7 +201,7 @@ defaultrouter="10.20.30.1"
Het is ook mogelijk dit met het commando man:route[8] direct vanaf de opdrachtregel te doen:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -246,7 +246,7 @@ In dit scenario is `RouterA` een FreeBSD-machine die dienst doet als router naar
De routeertabel voor `RouterA` zou er ongeveer als volgt uitzien:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -261,7 +261,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Met de huidige routeertabel is `RouterA` niet in staat om Intern Net 2 te bereiken. Het heeft geen route voor `192.168.2.0/24`. Een manier om dit te verhelpen is om de route handmatig toe te voegen. Het volgende commando voegt het netwerk Intern Net 2 toe aan de routeertabel van `RouterA` door `192.168.1.2` als de volgende hop te gebruiken:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -281,7 +281,7 @@ route_internnet2="-net 192.168.2.0/24 192.168.1.2"
De instellingsvariabele `static_routes` is een lijst van strings gescheiden door een spatie. Elke string verwijst naar een routenaam. Bovenstaand voorbeeld heeft slechts één string in `static_routes`. Dit is de string _internnet2_. Vervolgens wordt een instellingsvariabele `route_internnet2` toegevoegd waarin alle instellingsparameters staan die aan het commando man:route[8] moeten worden doorgegeven. Voor bovenstaand voorbeeld zou het volgende commando zijn gebruikt:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -414,7 +414,7 @@ Met deze informatie in het kernelinstellingenbestand kan de kernel opnieuw gecom
Wanneer het systeem draait, is het mogelijk om enige informatie over de draadloze apparaten in de opstartboodschappen te vinden, zoals:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -431,7 +431,7 @@ De infrastructuur- of BSS-modus is de modus die normaliter gebruikt wordt. In de
Voor het scannen van netwerken wordt het commando `ifconfig` gebruikt. Het kan even duren voordat dit verzoek is afgehandeld aangezien het systeem op elke beschikbare draadloze frequentie naar toegangspunten moet zoeken. Alleen de super-gebruiker kan zo'n scan opzetten:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -471,7 +471,7 @@ De uitvoer van een scanverzoek vermeld elk gevonden BSS/IBSS-netwerk. Naast de n
Het is ook mogelijk om de huidige lijst van bekende netwerken weer te geven met:
-[source,bash]
+[source,shell]
....
# ifconfig scan0 list scan
....
@@ -549,14 +549,14 @@ ifconfig_wlan0="DHCP"
Op dit moment kan de draadloze interface geactiveerd worden:
-[source,bash]
+[source,shell]
....
# service netif start
....
Wanneer de interface draait, kan `ifconfig` gebruikt worden om de status van de interface [.filename]#ath0# te zien:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -622,7 +622,7 @@ ifconfig_wlan0="WPA DHCP"
Hierna kan de interface geactiveerd worden:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -646,7 +646,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Ook kan gepoogd worden dit handmatig in te stellen door hetzelfde [.filename]#/etc/wpa_supplicant.conf# als <<network-wireless-wpa-wpa-psk,hierboven>> te gebruiken, en dit te draaien:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -657,7 +657,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
De volgende stap is het lanceren van het commando `dhclient` om een IP-adres van de DHCP-server te krijgen:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -683,7 +683,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Als DHCP niet mogelijk of gewenst is, kan een statisch IP-adres worden ingesteld nadat `wpa_supplicant` het station heeft geauthenticeerd:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -701,7 +701,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Indien DHCP niet wordt gebruikt, dienen ook de standaard gateway en de naamserver handmatig ingesteld te worden:
-[source,bash]
+[source,shell]
....
# route add default uw_standaard_router
# echo "nameserver uw_DNS_server" >> /etc/resolv.conf
@@ -761,7 +761,7 @@ ifconfig_wlan0="WPA DHCP"
De volgende stap is het activeren van de interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -824,7 +824,7 @@ ifconfig_ath0="WPA DHCP"
De volgende stap is het activeren van de interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -896,7 +896,7 @@ ifconfig_wlan0="WPA DHCP"
Hierna kan de interface worden geactiveerd:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -924,7 +924,7 @@ WEP (Wired Equivalent Privacy) maakt deel uit van de oorspronkelijke 802.11 stan
WEP kan worden opgezet met `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -955,7 +955,7 @@ network={
Daarna:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -968,7 +968,7 @@ IBSS-modus, ook ad-hoc-modus genoemd, is ontworpen voor point-to-point-verbindin
Op machine `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -986,7 +986,7 @@ De parameter `adhoc` geeft aan dat de interface in de IBSS-modus draait.
Op `B` zal het mogelijk moeten zijn om `A` te detecteren:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -996,7 +996,7 @@ Op `B` zal het mogelijk moeten zijn om `A` te detecteren:
De `I` in de uitvoer bevestigt dat machine `A` in ad-hoc-modus verkeert. Het is slechts nodig om `B` met een ander IP-adres in te stellen:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0 ssid freebsdap mediaopt adhoc inet 192.168.0.2 netmask 255.255.255.0
@@ -1030,7 +1030,7 @@ Momenteel staan de NDIS-stuurprogrammawrapper en de stuurprogramma's van Windows
Wanneer de ondersteuning voor draadloos netwerken is geladen, kan gecontroleerd worden of het draadloze apparaat de hostgebaseerde toegangspuntmodus ondersteunt (ook bekend als hostap-modus):
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1042,14 +1042,14 @@ Deze uitvoer geeft de mogelijkheden van de kaart weer, het woord `HOSTAP` bevest
Het draadloze apparaat kan enkel in hostap-modus worden gezet tijdens het creeëren van het netwerk pseudo-device dus een vooraf aangemaakt apparaat moet eerst verwijderd worden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
waarna deze opnieuw aangemaakt kan worden met de juiste parameters:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1057,7 +1057,7 @@ waarna deze opnieuw aangemaakt kan worden met de juiste parameters:
Gebruik nogmaals `ifconfig` om de status van de interface [.filename]#wlan0# te zien:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1086,7 +1086,7 @@ Hoewel het niet aangeraden wordt om een AP zonder enige vorm van authenticatie o
Nadat het AP is ingesteld als eerder is laten zien, is het mogelijk om van een andere draadloze machine een scan te beginnen om het AP te vinden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1096,7 +1096,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
De cliëntmachine heeft het AP gevonden en kan ermee geassocieerd worden:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 ssid freebsdap inet 192.168.0.2 netmask 255.255.255.0
ifconfig wlan0
@@ -1163,12 +1163,12 @@ wpa_pairwise=CCMP TKIP <.>
De volgende stap is het starten van hostapd:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290
@@ -1189,7 +1189,7 @@ Het wordt niet aangeraden om WEP te gebruiken om een toegangspunt op te zetten a
Het draadloze apparaat kan nu in hostap-modus worden gezet en ingesteld worden met het juiste SSID en IP-adres:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1201,7 +1201,7 @@ Het draadloze apparaat kan nu in hostap-modus worden gezet en ingesteld worden m
Weer wordt `ifconfig` gebruikt om de status van de interface [.filename]#wlan0# te zien:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1216,7 +1216,7 @@ Weer wordt `ifconfig` gebruikt om de status van de interface [.filename]#wlan0#
Vanaf een andere draadloze machine is het mogelijk om een scan te beginnen om het AP te vinden:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1245,7 +1245,7 @@ Indien er problemen met het draadloos netwerk zijn, zijn er een aantal stappen d
`wpa_supplicant` biedt veel ondersteuning voor debuggen; probeer het handmatig te draaien met de optie `-dd` en controleer de systeemlogs.
* Er zijn ook veel debug-gereedschappen op lagere niveaus. Het is mogelijk om debugberichten in de laag die het 802.11 protocol ondersteunt aan te zetten door het programma `wlandebug` te gebruiken dat gevonden wordt in [.filename]#/usr/src/tools/tools/net80211#. Bijvoorbeeld:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i ath0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1270,7 +1270,7 @@ De Bluetooth stack is in FreeBSD geïmplementeerd door gebruik te maken van het
Standaard zijn stuurprogramma's voor Bluetooth-apparaten beschikbaar als kernelmodules. Voordat een apparaat wordt aangekoppeld, dient het stuurprogramma in de kernel geladen te worden:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1284,7 +1284,7 @@ ng_ubt_load="YES"
Prik de USB-dongle in. Uitvoer vergelijkbaar aan de onderstaande zal op de console (of in syslog) verschijnen:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1294,7 +1294,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
man:service[8] wordt gebruikt om de Bluetooth-stack te starten en te stoppen. Het is een goed idee om de stack te stoppen voordat het apparaat wordt losgekoppeld, maar het is (gewoonlijk) niet fataal. Tijdens het starten van de stack verschijnt er uitvoer vergelijkbaar met de onderstaande:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1318,7 +1318,7 @@ Voor een enkel Bluetooth-apparaat wordt een enkele Netgraph knoop van het type _
Eén van de meest voorkomende taken is het ontdekken van Bluetooth-apparaten binnen radiobereik. Deze bewerking wordt _ondervragen_ genoemd. Ondervragen en andere HCI-gerelateerde bewerkingen worden uitgevoerd met het programma man:hccontrol[8]. Het onderstaande voorbeeld laat zien hoe kan worden uitgezocht welke Bluetooth-apparaten zich binnen het bereik bevinden. De lijst met apparaten zou binnen enkele seconden moeten binnenkomen. Bedenk dat een apparaat op afstand alleen antwoord op de ondervraging zal geven indien het in _ontdekbare_ modus staat.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1334,7 +1334,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` is een uniek adres van een Bluetooth-apparaat, vergelijkbaar met een MAC-adres van een netwerkkaart. Dit adres is nodig voor verdere communicatie met een apparaat. Het is mogelijk om een menselijk leesbare naam aan een BD_ADDR toe te kennen. Het bestand [.filename]#/etc/bluetooth/hosts# bevat informatie over de bekende Bluetooth-gastheren. Het volgende voorbeeld laat zien hoe de menselijk leesbare naam dat aan het apparaat op afstand was toegekend te verkrijgen is:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1345,7 +1345,7 @@ Tijdens het uitvoeren van een ondervraging op een Bluetooth-apparaat op afstand
Het Bluetooth-systeem biedt een punt-naar-punt-verbinding (slechts twee Bluetooth-eenheden betrokken), of een punt-naar-veelpunt-verbinding. Bij een punt-naar-veelpunt-verbinding wordt de verbinding met meerdere Bluetooth-apparaten gedeeld. Het volgende voorbeeld laat zien hoe de lijst met actieve basisbandverbindingen voor het lokale apparaat te verkrijgen is:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1354,7 +1354,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Een _verbindingshandvat_ is nuttig indien het beëindigen van de basisbandverbinding noodzakelijk is. Normaalgesproken is het niet nodig om dit handmatig te doen. De stack zal automatisch niet-actieve basisbandverbindingen beëindigen.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1373,7 +1373,7 @@ Voor elk Bluetooth-apparaat wordt een enkele Netgraph-knoop van het soort _l2cap
Een nuttig commando is man:l2ping[8], dat gebruikt kan worden om andere apparaten te pingen. Sommige Bluetooth-implementaties geven niet alle verzonden gegevens terug, dus is `0 bytes` normaal in het volgende voorbeeld.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1384,7 +1384,7 @@ Een nuttig commando is man:l2ping[8], dat gebruikt kan worden om andere apparate
Met het programma man:l2control[8] kunnen verschillende bewerkingen op L2CAP-knopen worden uitgevoerd. Dit voorbeeld laat zien hoe de lijst met logische verbindingen (kanalen) en de lijst met basisbandverbindingen voor het lokale apparaat verkregen kunnen worden:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1398,7 +1398,7 @@ Remote BD_ADDR Handle Flags Pending State
Een ander diagnostisch programma is man:btsockstat[1]. Het heeft ongeveer hetzelfde doel als man:netstat[1], maar dan voor Bluetooth-netwerkgerelateerde gegevensstructuren. Het onderstaande voorbeeld laat dezelfde logische verbinding zien als die van man:l2control[8] hierboven.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1469,7 +1469,7 @@ Normaalgesproken zoekt een SDP-cliënt naar diensten naar aanleiding van enkele
De Bluetooth SDP-server man:sdpd[8] en de opdrachtregelcliënt man:sdpcontrol[8] zitten in de standaard FreeBSD-installatie. Het volgende voorbeeld laat zien hoe een SDP-browse query uit te voeren.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1497,7 +1497,7 @@ Bluetooth Profile Descriptor List:
... enzovoorts. Merk op dat elke dienst een lijst met attributen heeft (bijvoorbeeld een RFCOMM-kanaal). Afhankelijk van de dienst kan het nodig zijn om een aantekening van sommige attributen te maken. Sommige Bluetooth-implementaties ondersteunen dienst-browsen niet en zullen een lege lijst teruggeven. In dit geval is het mogelijk om naar de specifieke dienst te zoeken. Het onderstaande voorbeeld laat zien hoe naar de dienst OBEX Object Push (OPUSH) gezocht kan worden:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1511,7 +1511,7 @@ sdpd_enable="YES"
Het daemon sdpd kan worden gestart met:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1520,7 +1520,7 @@ De plaatselijke servertoepassing die Bluetooth-diensten wil aanbieden aan verre
De lijst met diensten die bij de plaatselijke SDP-server zijn geregistreerd kan worden opgevraagd door te SDP-browsen via het plaatselijke controlekanaal:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1542,14 +1542,14 @@ Op FreeBSD zijn beide profielen geïmplementeerd met man:ppp[8] en man:rfcomm_pp
In het volgende voorbeeld zal man:rfcomm_pppd[8] gebruikt worden om RFCOMM-verbinding met een ver apparaat met BD_ADDR 00:80:37:29:19:a4 op een DUN RFCOMM-kanaal te maken. Het eigenlijke RFCOMM-kanaalnummer wordt via SDP van het verre apparaat verkregen. Het is mogelijk om het RFCOMM-kanaal handmatig op te geven, en in dat geval zal man:rfcomm_pppd[8] het SDP-verzoek niet uitvoeren. Gebruik man:sdpcontrol[8] om het RFCOMM-kanaal op het verre apparaat te achterhalen.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
Om netwerktoegang met PPP (LAN) aan te bieden moet de server man:sdpd[8] draaien. Er dient een nieuwe regel voor LAN-cliënten in het bestand [.filename]#/etc/ppp/ppp.conf# aangemaakt te worden. Raadpleeg de hulppagina man:rfcomm_pppd[8] voor voorbeelden. Tenslotte dient de RFCOMM PPP-server op een geldig RFCOMM-kanaal gestart te worden. De RFCOMM PPP-server zal automatisch de Bluetooth LAN-dienst bij de plaatselijke SDP-daemon registreren. Het volgende voorbeeld laat zien hoe een RFCOMM PPP-server te starten:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1562,7 +1562,7 @@ De OBEX-server en clieënt zijn geïmplenteerd als een pakket van derde partij,
De OBEX-cliënt wordt gebruikt om objecten naar en/of van de OBEX-server te duwen/trekken. Een object kan bijvoorbeeld een visitekaart of een afspraak zijn. De OBEX-cliënt kan het RFCOMM-kanaalnummer van het verre apparaat via SDP opvragen. Dit kan gedaan worden door de dienstnaam in plaats van het RFCOMM-kanaalnummer op te geven. De ondersteunde dienstnamen zijn: IrMC, FTRN, en OPUSH. Het is mogelijk om het RFCOMM-kanaal als een nummer op te geven. Het onderstaande is een voorbeeld van een OBEX-sessie, waar een apparaatinformatie-object van de mobiele telefoon wordt getrokken, en een nieuw object (een visitekaart) in de gids van de telefoon wordt geduwd:
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1575,7 +1575,7 @@ Success, response: OK, Success (0x20)
Om de dienst OBEX Object Push aan te bieden, moet de server man:sdpd[8] draaien. Er moet een hoofdmap worden aangemaakt waarin alle binnenkomende objecten worden opgeslagen. Het standaardpad naar de hoofdmap is [.filename]#/var/spool/obex#. Tenslotte moet de OBEX-server op een geldig RFCOMM-kanaal worden gestart. De OBEX-server zal automatisch de dienst OBEX Object Push bij de plaatselijke SDP-daemon registeren. Het onderstaande voorbeeld laat zien hoe de OBEX-server gestart wordt:
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1586,7 +1586,7 @@ Het Seriële Poort Profiel (SPP) zorgt ervoor dat Bluetooth-apparaten RS232 (of
Het programma man:rfcomm_sppd[1] implementeert het Seriële Poort profiel. Een pseudo-tty wordt gebruikt als abstractie voor een virtuele seriële poort. Onderstaand voorbeeld laat zien hoe met een Seriële Poortdienst voor verre apparaten te verbinden. Merk op dat het niet nodig is om een RFCOMM-kanaal te kiezen - man:rfcomm_sppd[1] kan het via SDP van het verre apparaat verkrijgen. Dit kan worden overruled door een RFCOMM-kanaal op de opdrachtregel te specificeren.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -1594,7 +1594,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Als er een verbinding is, kan de pseudo-tty als seriële poort worden gebruikt:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1605,7 +1605,7 @@ Als er een verbinding is, kan de pseudo-tty als seriële poort worden gebruikt:
Sommige oudere Bluetooth-apparaten ondersteunen het wisselen van rol niet. Standaard probeert FreeBSD, wanneer het een nieuwe verbinding accepteert, een rolwisseling uit te voeren en meester te worden. Apparaten die dit niet ondersteunen zullen niet kunnen verbinden. Merk op dat van rol wordt gewisseld wanneer een nieuwe verbinding wordt gemaakt, dus het is niet mogelijk om het verre apparaat te vragen of het rolwisseling ondersteunt. Er is een HCI-optie om rolwisselen aan de plaatselijke kant uit te zetten:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1667,7 +1667,7 @@ De bridge kan als met man:altq[4] of man:dummynet[4] als een verkeersregelaar wo
De bridge wordt aangemaakt door interfaces te klonen. Om een bridge aan te maken wordt man:ifconfig[8] gebruikt, indien het bridge-stuurprogramma niet in de kernel aanwezig is zal het automatisch worden geladen.
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
# ifconfig bridge0
@@ -1682,7 +1682,7 @@ Een bridge-interface is aangemaakt en er is automatisch een random gegenereerd E
Voeg de netwerkinterfaces die lid zijn aan de bridge toe. Om de bridge pakketten te laten doorsturen dienen alle lidinterfaces en de bridge actief te zijn:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1701,7 +1701,7 @@ ifconfig_fxp1="up"
Indien de bridge-gastheer een IP-adres nodig heeft dan is de juiste plaats om dit in te stellen op de bridge-interface zelf in plaats van op een van de lidinterfaces. Dit kan statisch of via DHCP worden ingesteld:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1720,7 +1720,7 @@ Het bridge-stuurprogramma implementeert het Rapid Spanning Tree Protocol (RSTP o
Spanning Tree kan op lidinterfaces worden geactiveerd met het commando `stp`. Voor een bridge met [.filename]#fxp0# en [.filename]#fxp1# alle huidige interfaces, wordt STP met het volgende geactiveerd:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1740,7 +1740,7 @@ De bridge heeft spanning tree ID `00:01:02:4b:d4:50` en prioriteit `32768`. Aang
Een andere bridge in het netwerk heeft spanning tree ook geactiveerd:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1765,7 +1765,7 @@ De bridge ondersteunt monitormodus, waarin de pakketten worden verwijderd nadat
Om de invoer van vier netwerkinterfaces als één stroom te lezen:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addmfxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1777,7 +1777,7 @@ Van elk Ethernet-frame dat door de bridge wordt ontvangen wordt er een kopie naa
Om een kopie van alle frames naar de interface [.filename]#fxp4# te versturen:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1792,7 +1792,7 @@ Indien een lidinterface van een bridge als klevend is gemarkeerd worden dynamisc
Een ander voorbeeld voor het gebruik van klevende adressen zou het combineren van de bridge met VLANs zijn om een router te creëren waar klantnetwerken geïsoleerd zijn zonder dat IP-adresruimte verspild wordt. Neem aan dat `KlantA` op `vlan100` zit en `KlantB` op `vlan101`. De bridge heeft het adres `192.168.0.1` en is tevens een internet-router.
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1802,7 +1802,7 @@ Beide cliënten zien `192.168.0.1` als hun standaard gateway en aangezien de bri
Alle communicatie tussen de VLANs kan geblokkeerd worden door het gebruik van privé-interfaces (of een firewall):
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1815,7 +1815,7 @@ Het aantal unieke bron-MAC-adressen achter een interface kan beperkt zijn. Wanne
Het volgende voorbeeld stelt het maximum aantal Ethernetapparaten voor `KlantA` op `vlan100` in op 10.
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
@@ -1836,7 +1836,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
Om een enkele bridge via de IETF BRIDGE-MIB (RFC4188) te monitoren:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1860,7 +1860,7 @@ De waarde `dot1dStpTopChanges.0` is twee wat betekent dat de topologie van de ST
Om meerdere bridge-interfaces te monitoren kan men het privé BEGEMOT-BRIDGE-MIB gebruiken:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1881,7 +1881,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
Om de bridge-interface die via de subboom `mib-2.dot1dBridge` wordt gemonitord te veranderen:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1925,7 +1925,7 @@ Dit voorbeeld verbindt twee interfaces op een FreeBSD-machine met de switch als
Voeg op de Cisco(R) switch de interfaces _FastEthernet0/1_ en _FastEthernet0/2_ aan de kanaalgroep _1_ toe:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1938,7 +1938,7 @@ interface FastEthernet0/2
Maak de man:lagg[4]-interface aan met _fxp0_ en _fxp1_ en activeer de interface met IP-adres _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1948,14 +1948,14 @@ Maak de man:lagg[4]-interface aan met _fxp0_ en _fxp1_ en activeer de interface
Bekijk de interfacestatus van ifconfig:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
....
Poorten die als _ACTIVE_ zijn gemarkeerd zijn lid van de actieve aggregatiegroep waarover onderhandeld is met de verre switch en waarover verkeer zal worden verzonden en ontvangen. Gebruik de uitgebreide uitvoer van man:ifconfig[8] om de LAG-identifiers te bekijken.
-[source,bash]
+[source,shell]
....
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
@@ -1969,7 +1969,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Gebruik, om de toestand van de poorten op de switch te bekijken, `show lacp neighbor`.
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2006,7 +2006,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
====
Failover-modus kan worden gebruikt om op een secondaire interface over te schakelen wanneer de verbinding op de meesterinterface verloren is. Activeer de onderliggende fysieke interface. Creëer de interface `lagg0`, met _fxp0_ als de meesterinterface en _fxp1_ als de secondaire interface en ken er IP-adres _10.0.0.15/24_ aan toe:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2016,7 +2016,7 @@ Failover-modus kan worden gebruikt om op een secondaire interface over te schake
De interface zal er ongeveer als volgt uitzien, de grote verschillen zullen het MAC-adres en de apparaatnamen zijn:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2054,7 +2054,7 @@ In deze opstelling dient het MAC-adres van het onderliggende draadloze interface
In deze opstelling wordt het bekabelde interface, _bge0_ als meester gebruikt, en het draadloze interface, _wlan0_, als het failover-interface. _wlan0_ was aangemaakt vanuit _iwn0_ voor welke het MAC-adres van de bekabelde verbinding zal worden gebruikt. De eerste stap is om het MAC-adres van het bekabelde interface te verkrijgen:
-[source,bash]
+[source,shell]
....
# ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2068,21 +2068,21 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
_bge0_ kan vervangen worden door het eigenlijke interface, er zal een andere regel met `ether` verschijnen, dit is het MAC-adres van het bekabelde interface. Om het onderliggende draadloze interface, _iwn0_ te wijzigen:
-[source,bash]
+[source,shell]
....
# ifconfig iwn0 ether 00:21:70:da:ae:37
....
Activeer het draadloze interface maar geef er nog geen IP-adres aan:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 ssid mijn_router up
....
Activeer de interface _bge0_. Maak het man:lagg[4]-interface aan met _bge0_ als meester, en met failover naar _wlan0_ indien nodig:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 up
# ifconfig lagg0 create
@@ -2091,7 +2091,7 @@ Activeer de interface _bge0_. Maak het man:lagg[4]-interface aan met _bge0_ als
Het interface zal er ongeveer als volgt uitzien, de grootste verschillen zullen het MAC-adres en de apparaatnamen zijn:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2106,7 +2106,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Start vervolgens de DHCP-cliënt om een IP-adres te verkrijgen:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2267,7 +2267,7 @@ Hieronder zal een opstartdiskette gebruikt worden. Raadpleeg voor andere methode
Om een opstartdiskette te maken, dient er een diskette in het diskettestation van de machine aanwezig te zijn waarop Etherboot is geïnstalleerd, daarna dient er naar de map [.filename]#src# in de mapboom van Etherboot gegaan te worden, en het volgende ingetypt te worden:
-[source,bash]
+[source,shell]
....
# gmake bin32/apparaatsoort.fd0
....
@@ -2304,7 +2304,7 @@ Het schijnt dat sommige versies van PXE de TCP-versie van TFTP vereisen. In dit
+
. inetd dient de instellingenbestanden opnieuw te lezen. De regel `inetd_enable="YES"` dient in het bestand [.filename]#/etc/rc.conf# aanwezig te zijn voor de juiste werking van deze opdracht:
+
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -2333,7 +2333,7 @@ nfs_server_enable="YES"
+
. mountd dient het instellingenbestand opnieuw te lezen. Indien het nodig was om NFS in [.filename]#/etc/rc.conf# tijdens de eerste stap aan te zetten, is het waarschijnlijk gewenst om in plaats hiervan opnieuw op te starten.
+
-[source,bash]
+[source,shell]
....
# service mountd restart
....
@@ -2399,7 +2399,7 @@ Indien nodig kan een wisselbestand dat zich op de server bevindt via NFS worden
De kernel biedt geen ondersteuning om swapruimte via NFS tijdens het opstarten aan te zetten. De swapruimte moet door de opstartscripts worden aangezet, door een beschrijfbaar bestandssysteem aan te koppelen en een wisselbestand aan te maken en aan te zetten. De volgende opdracht maakt een wisselbestand van de juiste grootte aan:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/pad/naar/wisselbestand bs=1k count=1 oseek=100000
....
@@ -2437,7 +2437,7 @@ Wanneer de gastheercomputer opstart, krijgt het informatie over DHCP over waar d
. Kies een map uit voor een installatie van FreeBSD die over NFS aangekoppeld kan worden. Bijvoorbeeld een map als [.filename]#/b/tftpboot/FreeBSD/install#.
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2453,7 +2453,7 @@ Wanneer de gastheercomputer opstart, krijgt het informatie over DHCP over waar d
+
. Herstart de NFS-server:
+
-[source,bash]
+[source,shell]
....
# service nfsd restart
....
@@ -2468,14 +2468,14 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. Herstart inetd:
+
-[source,bash]
+[source,shell]
....
# service inetd restart
....
+
. <<makeworld,Herbouw de kernel en userland van FreeBSD>>:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -2484,7 +2484,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. Installeer FreeBSD in de map die over NFS is aangekoppeld:
+
-[source,bash]
+[source,shell]
....
# make installworld DESTDIR=${NFSROOTDIR}
# make installkernel DESTDIR=${NFSROOTDIR}
@@ -2493,7 +2493,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. Test dat de TFTP-server werkt en dat het de bootloader dat via PXE verkregen zal worden kan downloaden:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2511,7 +2511,7 @@ mijnhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
Vervang _mijnhost.example.com_ door de hostnaam of het IP-adres van uw NFS-server. In dit voorbeeld wordt het root-bestandssysteem als alleen-lezen aangekoppeld om te voorkomen dat NFS-cliënten per ongeluk de inhoud van het root-bestandssysteem wissen.
. Stel het root-wachtwoord in voor de man:chroot[8]-omgeving.
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2521,7 +2521,7 @@ Dit stelt het root-wachtwoord in voor cliëntmachines die over PXE opstarten.
. Maak root-logins over SSH mogelijk voor cliëntmachines die met PXE opstarten door [.filename]#${NFSROOTDIR}/etc/ssh/sshd_config# te bewerken en de optie `PermitRootLogin` aan te zetten. Dit is gedocumenteerd in man:sshd_config[5].
. Pas andere wijzigingen toe aan de man:chroot[8]-omgeving in ${NFSROOTDIR}. Deze wijzigingen zouden het toevoegen van pakketten met man:pkg_add[1], het bewerken van het wachtwoordbestand met man:vipw[8] of het bewerken van man:amd.conf[8]-projecties voor automatisch aankoppelen kunnen zijn. Bijvoorbeeld:
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# pkg_add -r bash
@@ -2532,7 +2532,7 @@ Dit stelt het root-wachtwoord in voor cliëntmachines die over PXE opstarten.
Als u vanaf een NFS-rootvolume opstart, detecteert [.filename]#/etc/rc# dat u over NFS opstartte en draait het het script [.filename]#/etc/rc.initdiskless#. Lees het commentaar in dit script om te begrijpen wat er gebeurt. Het is nodig om [.filename]#/etc# en [.filename]#/var# geheugen-backed te maken omdat deze mappen schrijfbaar moeten zijn, maar de NFS-rootmap is alleen-lezen.
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2588,7 +2588,7 @@ image::pxe-nfs.png[]
+
. Controleer dat het bestand [.filename]#pxeboot# via TFTP kan worden verkregen. Kijk op uw TFTP-server in [.filename]#/var/log/xferlog# om er zeker van de zijn dat het bestand [.filename]#pxeboot# van de juiste locatie is opgehaald. Om de configuratie met bovenstaande [.filename]#dhcpd.conf# te testen:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2598,7 +2598,7 @@ Received 264951 bytes in 0.1 seconds
Lees man:tftpd[8] en man:tftp[1]. De `BUGS` secties in deze pagina's documenteren enkele beperkingen van TFTP.
. Controleer dat het root-bestandssysteem via NFS kan worden aangekoppeld. Om de configuratie met bovenstaande [.filename]#dhcpd.conf# te testen:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -3005,7 +3005,7 @@ Een derde vorm is het schrijven van de laatste 32 bits in de bekende (decimale)
Op dit punt dient de lezer het volgende te begrijpen:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -3229,7 +3229,7 @@ Om een volledig geschakeld net te bouwen is er een ATM-verbinding nodig tussen e
De VPI- en VCI-waarde kunnen aan beide kanten van de verbinding verschillen, maar voor de eenvoud wordt aangenomen dat ze hetzelfde zijn. Vervolgens dienen de ATM-interfaces op elke host geconfigureerd te worden:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -3239,7 +3239,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
aannemende dat de ATM-interface op alle hosts [.filename]#hatm0# is. Nu dienen de PVCs op `hostA` geconfigureerd te worden (er wordt aangenomen dat ze reeds op de ATM-switches zijn geconfigureerd, raadpleeg de handleiding van de switch hoe dit te doen).
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -3260,7 +3260,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Uiteraard kunnen ook andere verkeerscontracten dan UBR worden gebruikt indien de ATM-adapter die ondersteunt. In dit geval wordt de naam van het verkeerscontract gevolgd door de parameters van het verkeer. Hulp voor het gereedschap man:atmconfig[8] kan verkregen worden met:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -3281,7 +3281,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
De huidige toestand van alle CLIP routes kan worden verkregen met:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
@@ -3331,7 +3331,7 @@ De functionaliteit van CARP zou nu beschikbaar moeten zijn en kan met verschille
De CARP-apparaten zelf kunnen met het commando `ifconfig` worden aangemaakt:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -3384,7 +3384,7 @@ Met twee [.filename]#carp# apparaten is `provider.example.org` in staat om het I
====
De standaard FreeBSD-kernel _kan_ preëmptie geactiveerd hebben. In dat geval hoeft `provider.example.org` het IP-adres niet terug te geven aan de originele contentserver. In dit geval kan het nodig zijn dat een beheerder handmatig het IP terug aan de meester moet geven. Het volgende commando dient op `provider.example.org` gegeven te worden:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
diff --git a/documentation/content/nl/books/handbook/audit/_index.adoc b/documentation/content/nl/books/handbook/audit/_index.adoc
index 8da4e823ea..041467cf8f 100644
--- a/documentation/content/nl/books/handbook/audit/_index.adoc
+++ b/documentation/content/nl/books/handbook/audit/_index.adoc
@@ -225,7 +225,7 @@ Audit trails worden opgeslagen in het BSM binaire formaat, dus ondersteunende pr
Bijvoorbeeld, het `praudit` programma zal een dump maken van de volledige inhoud van een gespecificeerd audit log bestand in normale tekst:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -253,7 +253,7 @@ Deze audit representeert een succesvolle `execve` aanroep, waarbij het commando
Omdat audit logs erg groot kunnen worden, zal de beheerder waarschijnlijk een subset van records willen selecteren om te gebruiken, zoals records die gekoppeld zijn aan een specifieke gebruiker:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -268,7 +268,7 @@ Leden van de `audit` groep krijgen permissie om de audit trails te lezen in [.fi
Audit pipes zijn gecloonde pseudo-devices in het device bestands systeem, welke applicaties toestaat om een tap te plaatsen in de live audit record stream. Dit is primair interessant voor schrijvers van intrusion detection en systeem monitoring applicaties. Echter, voor een beheerder is het audit pipe device een makkelijke manier om live monitoring toe te staan zonder dat er problemen kunnen ontstaan met het eigenaarschap van het audit trail bestand, of dat een log rotatie de evenementen stroom in de weg zit. Om de live audit evenementen stroom te kunnen inzien is het volgende commando benodigd:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -292,7 +292,7 @@ Het is makkelijk om audit evenement terugkoppeling cyclussen te creëeren, waarb
Audit trails worden alleen beschreven door de kernel en alleen beheerd worden door de audit daemon, auditd. Beheerders mogen geen gebruik maken van man:newsyslog.conf[5] of soortgelijke programma's om de audit files te roteren. In plaats daarvan kan het `audit` management programma gebruikt worden om auditing te stoppen, het audit systeem te herconfigureren en log rotatie uit te voeren. Het volgende commando zorgt ervoor dat de audit daemon een nieuwe audit log maakt, en vervolgens de kernel een signaal stuurt om het nieuwe logbestand te gaan gebruiken. Het oude logbestand wordt getermineerd en hernoemd, waarna het bestand gemanipuleerd kan worden door de beheerder.
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/nl/books/handbook/basics/_index.adoc b/documentation/content/nl/books/handbook/basics/_index.adoc
index 3146083795..fd2750da6c 100644
--- a/documentation/content/nl/books/handbook/basics/_index.adoc
+++ b/documentation/content/nl/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ FreeBSD kan op diverse manieren gebruikt worden. Één van deze manieren is het
Als FreeBSD niet is ingesteld om automatisch een grafische omgeving te starten tijdens het opstarten, geeft het systeem een login prompt als het gestart is. Dit gebeurt direct nadat de startscripts klaar zijn. Er wordt iets als het volgende getoond:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ Elk multi-user systeem heeft een manier nodig om een "gebruiker" van alle andere
Direct nadat FreeBSD is opgestart en de opstartscripts afgerond zijn, wordt een prompt getoond dat vraagt om een geldige aanmeldnaam op te geven.
-[source,bash]
+[source,shell]
....
login:
....
In dit voorbeeld wordt aangenomen de gebruikersnaam `john` is. Als na deze prompt `john` wordt getype en op kbd:[Enter] wordt gedrukt, verschijnt hierna een prompt om het " wachtwoord" in te voeren:
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -195,21 +195,21 @@ _Pas op als dit wordt veranderd in `_insecure_`_. Als het wachtwoord van de gebr
De FreeBSD standaard video mode kan worden gewijzigd in 1024x768, 1280x1024, of een van de vele andere formaten die ondersteund worden door de grafische kaart en monitor. Laad de module `VESA` om gebruik te maken van de verschillende video modes:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
Kijk daarna welke video modes er ondersteund worden door de hardware door gebruik te maken van de man:vidcontrol[1] applicatie. Om een overzicht te krijgen van de ondersteunde video modes moet het volgende ingevoerd worden:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
Het resultaat van dit commando is een lijst van video modes welke ondersteund worden door de hardware. Hierna kan de nieuwe video mode gekozen worden door dit aan te geven aan man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -270,7 +270,7 @@ Omdat het systeem in staat is om meerdere gebruikers te ondersteunen, heeft alle
De `-l` optie kan gebruikt worden met man:ls[1] om een lange lijst met de inhoud van een map te zien die een kolom heeft met informatie over bestandsrechten voor de eigenaar, groep en de rest. `ls -l` in een willekeurige map kan het volgende laten zien:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -282,7 +282,7 @@ total 530
Zo ziet de eerste kolom van `ls -l` eruit:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -359,14 +359,14 @@ Symbolische rechten, soms ook wel symbolische expressies, gebruiken karakters in
Deze waardes worden gebruikt met man:chmod[1], net zoals eerder, alleen nu met letters. Het volgende commando kan gebruikt worden om de overige gebruikers toegang tot _BESTAND_ te ontzeggen:
-[source,bash]
+[source,shell]
....
% chmod go= BESTAND
....
Er kan een door komma's gescheiden lijst geleverd worden als meer dan één wijziging aan een bestand moet worden uitgevoerd. Het volgende commando past de rechten voor de groep en de "wereld" aan door de schrijfrechten te ontnemen om daarna iedereen uitvoerrechten te geven:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x BESTAND
....
@@ -379,21 +379,21 @@ Bestandsvlaggen voegen een extra niveau van controle over bestanden, waardoor ve
Bestandsvlaggen worden gewijzigd met het hulpprogramma man:chflags[1], dat een eenvoudige interface heeft. Om bijvoorbeeld de systeemvlag niet verwijderdbaar in te stellen op het bestand [.filename]#file1#:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Om de vlag niet verwijderbaar weer te verwijderen kan het voorgaande commando met "no" voor `sunlink` worden uitgevoerd:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Om de vlaggen op een bestand te bekijken, kan het man:ls[1] commando met de vlaggen `-lo` gebruikt worden:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -422,7 +422,7 @@ De man:mount[8]-optie `nosuid` zorgt ervoor dat deze binairen zwijgend falen. Di
De setuid-toestemming kan aangezet worden door het cijfer vier (4) voor een toestemmingenverzameling te plaatsen zoals te zien is in het volgende voorbeeld:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidvoorbeeld.sh
....
@@ -440,7 +440,7 @@ Open twee terminals om dit in real-time te zien. Start op het ene het proces `pa
In terminal A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -448,12 +448,12 @@ Old Password:
In terminal B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01
@@ -465,7 +465,7 @@ De `setgid`-toestemming voert dezelfde functie uit als de `setuid`-toestemming;
Om de `setgid`-toestemming op een bestand aan te zetten, dient een voorlopende twee (2) aan het commando `chmod` gegeven te worden zoals in het volgende voorbeeld:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidvoorbeeld.sh
....
@@ -486,19 +486,19 @@ De eerste twee speciale toestemmingsbits die we besproken hebben (de toestemming
De `klevende bit`, wanneer deze op een map is ingesteld, staat alleen het verwijderen van bestanden toe door de eigenaar van die bestanden. Deze toestemmingenverzameling is nuttig om het verwijderen van bestanden in publieke mappen, zoals [.filename]#/tmp#, door gebruikers die het bestand niet bezitten te voorkomen. Zet een één (1) voor de toestemming om deze toestemming te gebruiken. Bijvoorbeeld:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Het effect kan nu met het commando `ls` bekeken worden:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -830,7 +830,7 @@ man:mount[8] wordt gebruikt om bestandsystemen te koppelen.
De meest eenvoudige vorm is:
-[source,bash]
+[source,shell]
....
# mount apparaat koppelpunt
....
@@ -892,7 +892,7 @@ Twee commando's die erg handig zijn om te zien welke processen er draaien zijn m
Standaard laat `ps` alleen zien welke commando's draaien waarvan de gebruiker die het uitvoert de eigenaar is:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -920,7 +920,7 @@ man:ps[1] ondersteunt een aantal opties die de informatie wijzigen die wordt wee
De uitvoer van man:top[1] is hetzelfde:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -977,7 +977,7 @@ Dit voorbeeld toont hoe een signaal naar man:inetd[8] wordt verstuurd. Het besta
. Eerst moet het proces ID worden opgezocht van het proces waar een signaal naar verzonden moeten worden. Dit kan door man:pgrep[1] te gebruiken.
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -986,7 +986,7 @@ Dit voorbeeld toont hoe een signaal naar man:inetd[8] wordt verstuurd. Het besta
Dus het PID van man:inetd[8] is 198.
. Met man:kill[1] kan het signaal verzonden worden. Omdat man:inetd[8] wordt gedraaid door `root` moet man:su[1] gebruikt worden om `root` te worden.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1066,14 +1066,14 @@ Een andere optie van de shell is het gebruik van omgevingsvariabelen. Omgevingsv
Het instellen van omgevingsvariabelen verschilt van shell tot shell. In de C-achtige shells zoals `tcsh` en `csh` moet `setenv` gebruikt worden om omgevingsvariabelen in te stellen. In Bourne-shells zoals `sh` en `bash` moet `export` gebruikt worden om de omgevingsvariabelen in te stellen. Om bijvoorbeeld de omgevingsvariabele `EDITOR` te wijzigen naar [.filename]#/usr/local/bin/emacs# onder `csh` of `tcsh` moet het volgende gedaan worden:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
In Bourne shells is dat:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1091,7 +1091,7 @@ De makkelijkste manier om de shell te wijzigen is door het `chsh` commando te ge
Aan `chsh` kan ook de optie `-s` meegegeven worden. Dit stelt de shell in, zonder dat een editor gebruikt hoeft te worden. Als de shell bijvoorbeeld gewijzigd moet worden in `bash`, kan dat als volgt:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1102,7 +1102,7 @@ De te gebruiken shell _moet_ geregistreerd zijn in [.filename]#/etc/shells#. Als
Als bijvoorbeeld `bash` met de hand geïnstalleerd is in [.filename]#/usr/local/bin#, dient het onderstaande te gebeuren:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1179,14 +1179,14 @@ ELF heeft meer expressiemogelijkheden dan [.filename]#a.out# en geeft meer uitbr
De meest uitvoerige documentatie van FreeBSD is geschreven in de vorm van handleidingen. Bijna elk programma op het systeem heeft een kleine handleiding die uitlegt wat de basisopties en verschillende argumenten doen. Deze handleidingen bekeken worden met `man`. Het gebruik van `man` gaat als volgt:
-[source,bash]
+[source,shell]
....
% man commando
....
`commando` is de naam van het commando waar meer informatie over getoond moet worden. Om bijvoorbeeld meer informatie weer te geven over `ls` kan het volgende uitgevoerd worden:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1205,7 +1205,7 @@ De handleidingen zijn opgedeeld in genummerde onderdelen:
In sommige gevallen kan een bepaald onderwerp vaker voorkomen in een onderdeel van de handleidingen. Er is bijvoorbeeld een gebruikerscommando `chmod` en een systeemaanroep `chmod()`. In deze gevallen kan `man` aangegeven worden welke documentatie weer te geven door het specificeren van het onderdeel:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1214,7 +1214,7 @@ Dit geeft de handleiding van het gebruikerscommando `chmod` weer. Verwijzingen n
Dit werkt prima als de naam van het commando bekend is en alleen informatie nodig is over hoe het commando gebruikt kan worden, maar wat als de naam van het commando niet bekend is? Dan kan `man` gebruikt worden om naar trefwoorden te zoeken in de commandobeschrijvingen door de optie `-k` te gebruiken:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1223,7 +1223,7 @@ Met dit commando wordt een overzicht getoond met commando's die het trefwoord "m
Dus om meer informatie over spannende commando's met een onbekende functie in [.filename]#/usr/bin# te krijgen is het volgende commando voldoende:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1231,7 +1231,7 @@ Dus om meer informatie over spannende commando's met een onbekende functie in [.
Het onderstaande commando resulteert in hetzelfde:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1244,7 +1244,7 @@ FreeBSD heeft veel applicaties en hulpmiddelen die gemaakt zijn door de Free Sof
man:info[1] wordt als volgt gebruikt:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/nl/books/handbook/boot/_index.adoc b/documentation/content/nl/books/handbook/boot/_index.adoc
index e6ea6ec7a8..8c8cb223e6 100644
--- a/documentation/content/nl/books/handbook/boot/_index.adoc
+++ b/documentation/content/nl/books/handbook/boot/_index.adoc
@@ -98,7 +98,7 @@ De code in de MBR of bootmanager wordt soms ook wel _stage zero_ van het opstart
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
Andere besturingssystemen, Windows(R) in het bijzonder, staan er om bekend dat zij bestaande MBRs overschrijven met die van zichzelf. Als dit is gebeurd of als het bestaande MBR vervangen moet worden door het FreeBSD MBR:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 apparaat
....
@@ -150,7 +150,7 @@ Ze staan buiten bestandssystemen in de eerste track van de opstartslice, beginne
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -161,7 +161,7 @@ boot:
Als ooit eens de geïnstalleerde [.filename]#boot1# en [.filename]#boot2# vervangen moeten worden kan dat met man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# bsdlabel -B schijfslice
....
@@ -241,14 +241,14 @@ Hier zijn wat practische voorbeelden van het gebruik van loader:
* De kernel opstarten in single-user modus:
+
-[source,bash]
+[source,shell]
....
boot -s
....
+
* De gebruikelijke kernel en modules ontladen om daarna de oude (of een andere) kernel te laden:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -260,7 +260,7 @@ load kernel.old
====
Zo worden de bekende modules geladen met een andere kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -271,7 +271,7 @@ boot-conf
+
* Voor het laden van een kernelinstellingenscript (een script dat dingen doet die anders met de hand ingegeven zouden worden):
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -397,14 +397,14 @@ Zodra het systeem opgestart is, kan man:kenv[1] gebruikt worden om alle variabel
De schrijfwijze voor [.filename]#/boot/device.hints# is één variabele per regel. Het standaard hekje "#" wordt gebruikt voor commentaar. Regels worden als volgt opgebouwd:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="waarde"
....
De syntaxis voor de Fase 3 bootloader is:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=waarde
....
diff --git a/documentation/content/nl/books/handbook/config/_index.adoc b/documentation/content/nl/books/handbook/config/_index.adoc
index a40f9e8dc4..cea1e763da 100644
--- a/documentation/content/nl/books/handbook/config/_index.adoc
+++ b/documentation/content/nl/books/handbook/config/_index.adoc
@@ -276,7 +276,7 @@ De onderstaande procedure moet niet gebruikt worden om de systeemcrontab [.filen
Om een nieuwe [.filename]#crontab# te installeren moet eerst een bestand in het juiste formaat gemaakt worden en daarna moet het geiuml;nstalleerd worden met commando `crontab`:
-[source,bash]
+[source,shell]
....
# crontab crontabbestand
....
@@ -294,7 +294,7 @@ Een gebruikers [.filename]#crontab# kan verwijderd worden door de met `crontab`
Sinds 2002 gebruikt FreeBSD het NetBSD [.filename]#rc.d# systeem bij het opstarten van het systeem. Veel van de bestanden in [.filename]#/etc/rc.d# zijn scripts voor basisdiensten die werken met de opties `start`, `stop` en `restart`, analoog aan hoe diensten die via een port of pakket zijn geïnstalleerd gestart worden met de scripts in [.filename]#/usr/local/etc/rc.d#. man:sshd[8] kan bijvoorbeeld als volgt herstart worden:
-[source,bash]
+[source,shell]
....
# service restart
....
@@ -310,14 +310,14 @@ Als er reeds een `natd_enable="NO"` regel is, kan `NO` gewoon in `YES` veranderd
Omdat het [.filename]#rc.d# systeem in eerste instantie bedoeld is om diensten te starten en stoppen bij het opstarten en afsluiten van het systeem, werken de standaardopties `start`, `stop` en `restart` alleen als de juiste variabelen in [.filename]#/etc/rc.conf# zijn ingesteld. Het commando `sshd restart` alleen dan als `sshd_enable` de waarde `YES` heeft in [.filename]#/etc/rc.conf#. Als er een dienst gestart, gestopt of herstart moet worden, ongeacht de definities in [.filename]#/etc/rc.conf#, moet het commando voorafgegaan worden door "one". Dus om `sshd` te herstarten ongeacht de instellingen in [.filename]#/etc/rc.conf#, voldoet het volgende commando:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
Het is eenvoudig te controleren of een dienst is ingeschakeld is in [.filename]#/etc/rc.conf# door het bijpassende [.filename]#rc.d#-script uit te voeren met de optie `rcvar`. Voor `sshd`:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -331,7 +331,7 @@ De tweede regel (`# sshd`) is de uitvoer van `sshd`, geen `root`-console.
De optie `status` wordt gebruikt om vast te stellen of een dienst gestart is. Om bijvoorbeeld te controleren of `sshd` gestart is:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -341,7 +341,7 @@ In sommige gevallen is het ook mogelijk om een dienst te herstarten met de optie
Het rc.d-systeem wordt niet alleen gebruikt voor netwerkdiensten, maar ook voor het merendeel van de systeemstart. In dit kader is bijvoorbeeld het bestand [.filename]#bgfsck# interessant. Als dit script wordt uitgevoerd, wordt de volgende boodschap getoond:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -373,7 +373,7 @@ Als duidelijk is dat een kaart ondersteund wordt, moet vastgesteld worden wat he
Als een veelgebruikte kaart gebruikt wordt, hoeft meestal niet ver gezocht te worden. Stuurprogramma's voor veelvoorkomende netwerkinterfaces zijn al aanwezig in de algemene kernel [.filename]#GENERIC#. In dat geval wordt zo'n kaart al gevonden bij het opstarten, bijvoorbeeld met het volgende bericht:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -417,7 +417,7 @@ De bit-breedte van het stuurprogramma moet overeenkomen met die van het stuurpro
De volgende stap is het compileren van het binaire stuurprogramma in een laadbare kernelmodule. Gebruik man:ndisgen[8] als `root`:
-[source,bash]
+[source,shell]
....
# ndisgen /pad/naar/W32DRIVER.INF
/pad/naar/W32DRIVER.SYS
@@ -425,14 +425,14 @@ De volgende stap is het compileren van het binaire stuurprogramma in een laadbar
man:ndisgen[8] is interactief en vraagt om extra informatie als het dat nodig heeft. Een nieuwe kernel-module wordt in de huidige map geschreven. Gebruik man:kldload[8] om de nieuwe module te laden:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
Naast de gegenereerde kernelmodule, moeten ook de modules [.filename]#ndis.ko# en [.filename]#if_ndis.ko# geladen worden. Dit zou automatisch moeten gebeuren als er een module geladen wordt dit afhankelijk is van man:ndis[4]. Als ze handmatig ingeladen moeten worden gebruik dan de volgende commando's:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -442,7 +442,7 @@ Het eerste commando laadt de stuurprogrammawrapper voor de NDIS miniport, de twe
Controleer nu man:dmesg[8] om te zien of er ergens fouten voorkomen. Als alles goed gegaan is ziet u ongeveer het volgende:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -466,7 +466,7 @@ Nadat een geschikt stuurprogramma geladen is, moet de kaart nog ingesteld worden
Om de instellen van de netwerkkaarten weer te geven:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -508,7 +508,7 @@ In het vorige voorbeeld is het apparaat [.filename]#dc0# volledig operationeel.
Als de uitvoer man:ifconfig[8] er ongeveer zoals hieronder uitziet, dan is de netwerkkaart nog niet ingesteld:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -537,7 +537,7 @@ Ook [.filename]#/etc/hosts# moet worden gewijzigd om de namen en IP adressen van
====
Als internettoegang nodig is met dit apparaat, kan het zijn dat de default gateway en de naamserver handmatig moeten worden ingesteld:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -549,7 +549,7 @@ Als internettoegang nodig is met dit apparaat, kan het zijn dat de default gatew
Als de veranderingen in [.filename]#/etc/rc.conf# zijn gemaakt, moet het systeem opnieuw gestarten worden (of moeten nauwkeurig alle daemons gestart of herstart worden). Veranderingen aan de interface(s) worden dan toegepast en dan kan er controleerd worden of herstarten goed werkt zonder foutmeldingen. Als alternatief kan ook het netwerk systeem herstart worden:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -558,7 +558,7 @@ Als de veranderingen in [.filename]#/etc/rc.conf# zijn gemaakt, moet het systeem
====
Als er ook een default gateway ingesteld is in het [.filename]#/etc/rc.conf# bestand, moet ook onderstaand command worden gegeven:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -573,7 +573,7 @@ Om te controleren of een ethernet kaart goed geconfigureerd is, moeten er twee d
Test eerst de lokale interface:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -590,7 +590,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Nu kan er een andere machine op het LAN gepinged worden:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -938,14 +938,14 @@ In essentie heeft man:sysctl[8] twee functies: het lezen en wijzigen van systeem
Om alle leesbare variabelen te tonen:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Om een bepaalde variabele op te vragen, bijvoorbeeld `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -953,7 +953,7 @@ kern.maxproc: 1044
Om een bepaalde variabele toe te kennen (te wijzigen), is de syntaxis _variable_=_value_:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -970,7 +970,7 @@ In sommige gevallen is het wenselijk om man:sysctl[8]-waarden die alleen-lezen z
Op sommige laptops is bijvoorbeeld het apparaat man:cardbus[4] niet in staat om geheugenregio's af te tasten, met als gevolg foutmeldingen als:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1018,7 +1018,7 @@ De kernelinstelling `SCSI_DELAY` kan gebruikt worden om de opstarttijd te versne
man:tunefs[8] kan gebruikt worden om een bestandsysteem nauwkeurig af te stellen. Het heeft veel opties, maar nu wordt alleen het aan- en uitzetten van softupdates besproken. Dat gaat als volgt:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1106,7 +1106,7 @@ Een vnode is de interne representatie van een bestand of een map. Het verlagen v
Het huidige aantal gebruikte vnodes kan als volgt bekeken worden:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1114,7 +1114,7 @@ vfs.numvnodes: 91349
Om het maximale aantal vnodes weer te geven:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1136,7 +1136,7 @@ Een nieuwe harde schijf voor swap toevoegen geeft betere prestaties dan een part
Gebruik man:swapon[8] om een swap-partitie aan het systeem toe te voegen, bijvoorbeeld:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1179,14 +1179,14 @@ device md
Kijk voor meer informatie over het bouwen van een eigen kernel in crossref:kernelconfig[kernelconfig,De FreeBSD-kernel instellen].
. Het wisselbestand [.filename]#/usr/swap0# aanmaken:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
+
. De correcte rechten op [.filename]#/usr/swap0# instellen:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1200,7 +1200,7 @@ swapfile="/usr/swap0" # Instellen op naam van wisselbestand als hulpwisselbest
+
. De machine moet herstart worden of om het wisselbestand direct in te schakelen:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 swapon /dev/md0
....
@@ -1242,7 +1242,7 @@ ACPI en APM kunnen niet samenleven en moeten afzonderlijk en exclusief gebruikt
In haar eenvoudigste vorm kan ACPI gebruikt worden om het systeem in slaapmodus te zetten met man:acpiconf[8] met de vlag `-s` en een optie `1-5`. De meeste gebruikers hebben alleen `1` of `3` nodig. De optie `5` verricht een "soft-off", wat hetzelfde is als:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1272,7 +1272,7 @@ Diegenen die meteen een probleem willen indienen, sturen de volgende informatie
* Uitvoer van `sysctl hw.acpi`. Dit is tevens een goede manier om uit te vinden welke ACPI-mogelijkheden een systeem heeft.
* Een URL waar de _ACPISource Language_ (ASL) gevonden kan worden. De ASL dient _niet_ rechtstreeks naar de lijst gezonden te worden, omdat deze nogal groot kan zijn. Een kopie van een ASL kan gemaakt worden met het volgende commando:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > naam-systeem.asl
....
@@ -1305,7 +1305,7 @@ ACPI heeft drie slaapstanden waarbij het geheugen (RAM) wordt ingezet. Dit zijn
als eerste dienen de `sysctl hw.acpi` items die iets met de slaapstand te maken hebben gecontroleerd te worden. Hieronder staan de resultaten voor een Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1317,7 +1317,7 @@ Als suspend/resume getest moet worden, dient, indien ondersteund, bij `S1` begon
Een veelvoorkomend probleem met suspend/resume is dat veel apparaatstuurprogramma's hun firmware, registers of apparaatgeheugen niet fatsoenlijk opslaan, herstellen, of herinitialiseren. Een eerste poging om het probleem te vinden omvat:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1361,7 +1361,7 @@ Als er nog andere problemen zijn met ACPI (met een docking station of apparaten
Het grootste probleem is dat BIOS-producenten vaak incorrecte (of gewoon foutieve) bytecode leveren. Dit blijkt doorgaans uit kernelboodschappen als:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1371,7 +1371,7 @@ Vaak kunnen dergelijke problemen geoplost worden door de BIOS bij te werken tot
De eenvoudigste eerste controle is de ASL-code opnieuw compileren en kijken of er foutmeldingen optreden. Waarschuwingen kunnen doorgaans genegeerd worden, maar fouten zijn bugs die er meestal toe leiden dat ACPI niet correct werkt. Om ASL te hercompileren:
-[source,bash]
+[source,shell]
....
# iasl eigen.asl
....
@@ -1395,7 +1395,7 @@ Sommige methoden hebben geen specifieke returnwaarde, zoals wel vereist wordt do
Nadat [.filename]#eigen.asl# aangepast is, kan deze als volgt gecompileerd worden:
-[source,bash]
+[source,shell]
....
# iasl eigen.asl
....
@@ -1419,7 +1419,7 @@ Het stuurprogramma ACPI heeft een zeer flexibele debugfaciliteit. Er kan zowel e
Debuguitvoer staat standaard niet aan. Door `options ACPI_DEBUG` toe te voegen aan het bestand met kernelinstellingen als ACPI als de kernel is gebouwd, wordt het ingeschakeld. Door `ACPI_DEBUG=1` toe te voegen aan [.filename]#/etc/make.conf# wordt het systeembreed ingeschakeld. Als ACPI als module wordt gebruikt (de normale situatie), dan hoeft slechts de module [.filename]#acpi.ko# opnieuw gecompileerd te worden:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
make clean
diff --git a/documentation/content/nl/books/handbook/cutting-edge/_index.adoc b/documentation/content/nl/books/handbook/cutting-edge/_index.adoc
index ee119fd5d3..d5ae41ac6d 100644
--- a/documentation/content/nl/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/nl/books/handbook/cutting-edge/_index.adoc
@@ -153,7 +153,7 @@ Wanneer ingesteld op `yes`, zal `freebsd-update` aannemen dat de lijst `Componen
Beveiligingspatches staan op een verre machine en kunnen met het volgende commando gedownload en geïnstalleerd worden:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -170,7 +170,7 @@ Deze regel verklaart dat eenmaal per dag het commando `freebsd-update` gedraaid
Als er iets misging, heeft `freebsd-update` de mogelijkheid om de laatste verzamelingen veranderingen terug te draaien met het volgende commando:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -196,7 +196,7 @@ De updates die via `freebsd-update` verspreid worden hebben niet altijd betrekki
Dit proces ruimt oude objectbestanden en bibliotheken op waardoor de meeste applicaties van derde partijen kapot gaan. Het wordt aangeraden dat alle geïnstalleerde poorten ofwel verwijderd en geherinstalleerd worden of later ge-upgraded worden met het hulpmiddel package:ports-mgmt/portupgrade[]. De meeste gebruikers zullen willen proefdraaien met het volgende commando:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -208,7 +208,7 @@ Als een eigen kernel wordt gebruikt, is het upgradeproces iets ingewikkelder. Ee
* Als er slechts eenmaal een eigen kernel is gebouwd, dan is de kernel in [.filename]#/boot/kernel.old# eigenlijk de [.filename]#GENERIC#. Hernoem deze map naar [.filename]#/boot/GENERIC#.
* Aannemende dat fysieke toegang tot de machine mogelijk is, kan een kopie van de kernel [.filename]#GENERIC# van het CD-ROM-medium worden geïnstalleerd. Laad de installatieschijf en geef de volgende commando's:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -218,7 +218,7 @@ Als een eigen kernel wordt gebruikt, is het upgradeproces iets ingewikkelder. Ee
Vervang [.filename]#X.Y-RELEASE# met de versie van de uitgave die u gebruikt. De kernel [.filename]#GENERIC# zal standaard in [.filename]#/boot/GENERIC# worden geïnstalleerd.
* Als al het bovenstaande niet lukt, kan de kernel [.filename]#GENERIC# herbouwd en geherinstalleerd worden vanaf de broncode:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
@@ -232,14 +232,14 @@ Opnieuw opstarten naar de kernel [.filename]#GENERIC# is in dit stadium niet nod
Updates van grote en kleine versies kunnen worden uitgevoerd door een uitgaveversie als doel aan `freebsd-update` op te geven, het volgende commando zal bijvoorbeeld updaten naar FreeBSD 8.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 8.1-RELEASE upgrade
....
Nadat het commando is ontvangen, zal `freebsd-update` het instellingenbestand en het huidige systeem evalueren in een poging om de benodigde informatie te verzamelen om het systeem te updaten. Een lijst op het scherm zal aangeven welke componenten zijn gedetecteerd en welke niet. Bijvoorbeeld:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
@@ -263,7 +263,7 @@ Nu zal `freebsd-update` proberen om alle bestanden die nodig zijn voor de upgrad
Wanneer een eigen kernel wordt gebruikt, zal de bovenstaande stap een waarschuwing geven die lijkt op de volgende:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MIJNKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@@ -282,14 +282,14 @@ Het systeem is nog niet veranderd, al het patchen en samenvoegen gebeurt in een
Als dit proces eenmaal voltooid is, kan de upgrade aan de schijf toevertrouwd worden met het volgende commando.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
De kernel en kernelmodules zullen als eerste gepatcht worden. Nu moet de machine opnieuw opgestart worden. Als het systeem een eigen kernel draaide, gebruik dan het commando man:nextboot[8] om de kernel voor de volgende keer dat opgestart wordt in te stellen op [.filename]#/boot/GENERIC# (welke is bijgewerkt):
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -302,14 +302,14 @@ Voordat er met de kernel [.filename]#GENERIC# wordt opgestart, dient te worden g
De machine dient nu te worden herstart met de bijgewerkte kernel:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Als het systeem weer actief is, moet `freebsd-update` nogmaals gestart worden. De toestand van het proces is opgeslagen en dus zal `freebsd-update` niet vooraan beginnen, maar zal het alle oude gedeelde bibliotheken en objectbestanden verwijderen. Geef het volgende commando om verder te gaan op dit punt:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -321,7 +321,7 @@ Afhankelijk van het feit of er versienummers van bibliotheken zijn opgehoogd, ku
Alle software van derde partijen dient nu opnieuw gebouwd en geïnstalleerd te worden. Dit is nodig omdat geïnstalleerde software van bibliotheken afhankelijk kan zijn die tijdens het upgradeproces zijn verwijderd. Het commando package:ports-mgmt/portupgrade[] kan gebruikt worden om dit proces te automatiseren. Dit proces kan met de volgende commando's gestart worden:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -332,7 +332,7 @@ Alle software van derde partijen dient nu opnieuw gebouwd en geïnstalleerd te w
Voltooi, nadat dit voltooid is, het upgradeproces met een laatste aanroep naar `freebsd-update`. Geef het volgende commando om alle losse eindjes in het upgradeproces samen te knopen:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -346,7 +346,7 @@ Start de machine opnieuw op in de nieuwe FreeBSD-versie. Het proces is voltooid.
Het gereedschap `freebsd-update` kan gebruikt worden om de toestand van de geïnstalleerde versie van FreeBSD met een bekende goede kopie te vergelijken. Deze optie evalueert de huidige versie van systeemgereedschappen, bibliotheken, en instellingenbestanden. Geef het volgende commando om met de vergelijking te beginnen:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> uitvoerbestand.ids
....
@@ -361,7 +361,7 @@ Het systeem zal nu geïnspecteerd worden, en er zal een lijst van hun man:sha256
Deze regels zijn ook extreem lang, maar het uitvoerformaat kan vrij eenvoudig geparsed worden. Geef, om bijvoorbeeld een lijst van alle bestanden te krijgen die verschillen van die in de uitgave, het volgende commando:
-[source,bash]
+[source,shell]
....
# cat uitvoerbestand.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -379,7 +379,7 @@ Dit systeem kan gebruikt worden als deel van een uitgebreide upgrademethode, afg
Het basissysteem van FreeBSD bevat ook een gereedschap om de Portscollectie bij te werken: het hulpmiddel man:portsnap[8]. Wanneer het wordt uitgevoerd, zal het een verbinding maken met een verre site, de veilige sleutel controleren, en een nieuwe kopie van de Portscollectie downloaden. De sleutel wordt gebruikt om de integriteit van alle gedownloade bestanden te controleren, om er zeker van te zijn dat ze niet tijdens het downloaden zijn gewijzigd. Geef het volgende commando om de nieuwste versie van de bestanden van de Portscollectie te downloaden:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 9 mirrors found.
@@ -398,7 +398,7 @@ Dit voorbeeld laat zien dat man:portsnap[8] verscheidene patches heeft gevonden
Wanneer man:portsnap[8] succesvol een `fetch`-operatie afrondt, bestaan de Portscollectie en de vervolgpatches die de verificatie doorstaan hebben op het plaatselijke systeem. Gebruik de eerste keer dat `portsnap` wordt uitgevoerd `extract` om de gedownloade bestanden te installeren:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -417,7 +417,7 @@ Wanneer man:portsnap[8] succesvol een `fetch`-operatie afrondt, bestaan de Ports
Om een reeds geïnstalleerde Ports Collectie te updaten kan er gebruik worden gemaakt van het commando `portsnap update`:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -426,7 +426,7 @@ Het proces is nu compleet, en applicaties kunnen met de bijgewerkte Portscollect
De bewerkingen `fetch` en `extract` of `update` kunnen achter elkaar uitgevoerd worden, zoals het volgende voorbeeld laat zien:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -467,7 +467,7 @@ Subversion wordt geïnstalleerd met de port package:textproc/docproj[].
Het programma Subversion kan een schone kopie van de documentatiebroncode ophalen door het volgende te typen:
-[source,bash]
+[source,shell]
....
# svn checkout svn://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -476,14 +476,14 @@ De initiële download van de documentatiebroncode kan een tijd duren. Laat het d
Toekomstige updates van de documentatiebroncode kunnen opgehaald worden door het volgende commando te draaien:
-[source,bash]
+[source,shell]
....
# svn update /usr/doc
....
Nadat de broncode is uitgecheckt, wordt een alternatieve manier om de documentatie bij te werken ondersteund door [.filename]#Makefile# van de map [.filename]#/usr/doc# door het volgende te draaien:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update
@@ -516,7 +516,7 @@ Wanneer er een actueel snapshot van de documentatiebroncode is opgehaald in [.fi
Het volledig bijwerken van alle talen die in de Makefile-optie `DOC_LANG` zijn gedefinieerd kan worden gedaan door te typen:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -524,7 +524,7 @@ Het volledig bijwerken van alle talen die in de Makefile-optie `DOC_LANG` zijn g
Als alleen het bijwerken van een specifieke taal gewenst is, dan kan man:make[1] worden aangeroepen in een taalspecifieke submap van [.filename]#/usr/doc#, i.e.:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make update install clean
@@ -532,7 +532,7 @@ Als alleen het bijwerken van een specifieke taal gewenst is, dan kan man:make[1]
De te installeren uitvoerformaten kunnen worden gespecificeerd door de make-variabele `FORMATS` in te stellen, i.e.:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -566,7 +566,7 @@ De organisatie van de documentatie-ports is als volgt:
Gebruik de volgende commando's (als `root`) om een documentatieport vanaf de broncode te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -595,7 +595,7 @@ Merk op dat de standaard doelmap afwijkt van de map die door de Subversion-metho
Hier is een kort voorbeeld over hoe de bovengenoemde variabelen te gebruiken om de Hongaarse documentatie in Portable Document Format te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -615,7 +615,7 @@ Wanneer binaire pakketten worden gebruikt, zal de FreeBSD documentatie in _alle_
Het volgende commando bijvoorbeeld zal het nieuwste vooraf gebouwde pakket van de Hongaarse documentatie installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r hu-freebsd-doc
....
@@ -630,7 +630,7 @@ Pakketten hebben het volgende naamformaat welke afwijkt van de naam van de overe
Voor het bijwerken van een eerder geïnstalleerde documentatieport is elk gereedschap voor het bijwerken van ports geschikt. Het volgende commando bijvoorbeeld werkt de geïnstalleerde Hongaarse documentatie bij via het gereedschap package:ports-mgmt/portupgrade[] door alleen pakketten te gebruiken:
-[source,bash]
+[source,shell]
....
# portupgrade -PP hu-freebsd-doc
....
@@ -843,7 +843,7 @@ Deze procedure is in de loop der tijd veranderd aangezien de ontwikkelaars zagen
Samengevat is de huidige aanbevolen manier om FreeBSD vanaf broncode bij te werken:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -859,7 +859,7 @@ Er zijn een aantal zeldzame gevallen waarin `mergemaster -p` nog een keer moet d
Nadat `installkernel` succesvol is afgerond, dient er in single-user modus opgestart te worden (met `boot -s` vanaf de loaderprompt). Draai dan:
-[source,bash]
+[source,shell]
....
# mount -u /
# mount -a -t ufs
@@ -915,7 +915,7 @@ man:mergemaster[8] kan in voorbereidende modus gedraaid worden als de optie `-p`
In "paranoide beheerdersmodus" kan er gecontroleerd worden welke bestanden op een systeem eigendom zijn van de groep die wordt hernoemd of verwijderd:
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -932,14 +932,14 @@ Een andere methode is het systeem compileren in multi-user modus en daarna naar
Een supergebruiker kan als volgt een draaiend systeem naar single-user modus overgeschakelen:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Als alternatief kan tijdens het opstarten de optie `single user` worden gekozen. Het systeem start dan in single-user modus. Op de shell prompt moet dan worden ingegeven:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -953,7 +953,7 @@ Hierdoor worden de bestandssystemen gecontroleerd, [.filename]#/# met lees en sc
====
Als de CMOS-klok ingesteld is naar de lokale tijd en niet naar GMT (dit is waar als het resultaat van man:date[1] niet de correcte tijd en zone weergeeft), dan is het misschien handig om het volgende commando te starten:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -970,7 +970,7 @@ Het proces `make buildworld` kan versneld worden en problemen met afhankelijkhed
Sommige bestanden onder [.filename]#/usr/obj# hebben mogelijk de optie "niet aanpassen" ingesteld (zie man:chflags[1]) die eerst verwijderd moet worden:
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -986,7 +986,7 @@ Het is een goed idee om de uitvoer van man:make[1] te bewaren in een ander besta
De makkelijkste manier om dit te doen is door het commando man:script[1] te gebruiken, met een parameter die de naam specificeert waar de uitvoer naartoe moet. Dit moet direct gedaan worden vóór het herbouwen van de wereld, zodat het proces klaar is moet `exit` worden ingegeven:
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -1003,7 +1003,7 @@ Bewaar de uitvoer in deze stap _niet_ in [.filename]#/tmp#. Deze map wordt mogel
Ga naar de map [.filename]#/usr/src#, tenzij de broncode ergens anders staat, in welk geval naar die map gegaan moet worden:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -1012,7 +1012,7 @@ Om de wereld opnieuw te bouwen moet het commando man:make[1] gebruikt worden. Di
Het algemene formaat van de commandoregel die gebruikt moet worden is als volgt:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABELE doel
....
@@ -1021,7 +1021,7 @@ In dit voorbeeld is de optie `-_x_` een optie die wordt meegegeven aan man:make[
`-D_VARIABELE_` geeft een variabele door aan [.filename]#Makefile#. Het gedrag van [.filename]#Makefile# wordt beïnvloed door deze variabele. Dit zijn dezelfde variabelen die ingesteld worden in [.filename]#/etc/make.conf#. Deze optie biedt een alternatief om deze opties in te stellen.
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE doel
....
@@ -1039,7 +1039,7 @@ Sommige doelen staan vermeld in het bestand [.filename]#Makefile#, maar zijn nie
In veel gevallen hoeven er geen parameters te worden meegegeven aan man:make[1] en dus ziet de commando regel er als volgt uit:
-[source,bash]
+[source,shell]
....
# make doel
....
@@ -1056,7 +1056,7 @@ Alhoewel het doel `world` nog wel bestaat wordt het gebruik ervan sterk _afgerad
Voer het volgende commando uit:
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -1065,7 +1065,7 @@ Het is mogelijk om de optie `-j` mee te geven aan `make`, wat resulteert in meer
Start als volgt op een systeem met één processor:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -1091,7 +1091,7 @@ Op FreeBSD is het belangrijk om de <<make-buildworld,wereld opnieuw te bouwen>>
====
Als een aangepaste kernel gemaakt moet worden en er reeds een instellingenbestand aanwezig is, gebruik dan `KERNCONF=MYKERNEL` als volgt:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
@@ -1114,7 +1114,7 @@ Na het draaien van `make buildworld` kan nu `installworld` gebruikt worden om de
Voer de volgende commando's uit:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -1126,14 +1126,14 @@ Als er variabelen gespecificeerd zijn op de commandoregel van `make buildworld`
Als bijvoorbeeld het volgende commando is uitgevoerd:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
Dan moet het resultaat geïnstalleerd worden met:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -1180,7 +1180,7 @@ De simpelste manier om met de hand bij te werken, is de bestanden in een nieuwe
====
Ondanks dat, in theorie, niets in deze map automatisch wordt aangepast, is het altijd beter om daar zeker van te zijn. Dus kopieer de bestaande [.filename]#/etc# naar een veilige locatie. Zoals bijvoorbeeld met het volgende commando:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -1190,7 +1190,7 @@ Ondanks dat, in theorie, niets in deze map automatisch wordt aangepast, is het a
Er moet een dummyset van mappen gemaakt worden om de nieuwe [.filename]#/etc# en andere bestanden in te installeren. [.filename]#/var/tmp/root# is een redelijke keuze en er zijn hier een aantal benodigde submappen aanwezig:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -1199,7 +1199,7 @@ Er moet een dummyset van mappen gemaakt worden om de nieuwe [.filename]#/etc# en
Dit maakt de benodigde mappenstructuur en installeert de bestanden. Een groot deel van de submappen die gemaakt zijn in [.filename]#/var/tmp/root# zijn leeg en moeten verwijderd worden. De simpelste manier om dit te doen is:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2>/dev/null
@@ -1213,7 +1213,7 @@ Let op dat sommige van de bestanden die geïnstalleerd zijn in [.filename]#/var/
De simpelste manier om twee bestanden te vergelijken is man:diff[1] gebruiken:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -1231,7 +1231,7 @@ Dit proces kan versneld worden door een kopie te bewaren van de bestanden die ge
======
. Maak de wereld zoals normaal. Als [.filename]#/etc# en de andere mappen bijgewerkt moeten worden, geef dan de doelmap een naam gebaseerd op de huidige datum. Op 14 februari 1998 wordt dat als volgt gedaan:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -1245,7 +1245,7 @@ Verwijder de map [.filename]#/var/tmp/root-19980214#_niet_ na afronden.
. Als de laatste versie van de broncode gedownload en opnieuw gemaakt is, volg stap 1. Dit geeft een nieuwe map die wellicht [.filename]#/var/tmp/root-19980221# heet (als er een week zit tussen het bijwerken).
. De verschillen die gemaakt zijn in de tussenliggende week kunnen nu getoond worden door met man:diff[1] een recursieve diff te maken tussen de twee mappen:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1254,7 +1254,7 @@ Verwijder de map [.filename]#/var/tmp/root-19980214#_niet_ na afronden.
Vaak is dit een kleinere set aan verschillen dan tussen [.filename]#/var/tmp/root-19980221/etc# en [.filename]#/etc#. Omdat de set verschillen kleiner is, is het makkelijker om deze te migreren naar de map [.filename]#/etc#.
. De oudste van de twee [.filename]#/var/tmp/root-*#-mappen kan nu verwijderd worden:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1264,7 +1264,7 @@ Vaak is dit een kleinere set aan verschillen dan tussen [.filename]#/var/tmp/roo
Met man:date[1] kan het maken van de mappen geautomatiseerd worden:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1276,7 +1276,7 @@ Met man:date[1] kan het maken van de mappen geautomatiseerd worden:
Dit was het. Na een controle of alles op de juiste plaats staat kan het systeem herstart worden. Dan kan met een simpele man:shutdown[8]:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1287,7 +1287,7 @@ Het FreeBSD systeem is nu succesvol bijgewerkt. Gefeliciteerd!
Als er dingen misgingen is het makkelijk om een deel van het systeem opnieuw te bouwen. Als bijvoorbeeld per ongeluk [.filename]#/etc/magic# verwijderd is als onderdeel van de upgrade of door het samenvoegen van [.filename]#/etc#, dan werkt man:file[1] niet meer. Dat kan als volgt opgelost worden:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1300,7 +1300,7 @@ Als er dingen misgingen is het makkelijk om een deel van het systeem opnieuw te
Op deze vraag bestaat geen eenvoudig antwoord, omdat dit afhangt van de aard van de wijziging. Als bijvoorbeeld net CVSup is gedraaid en de onderstaande bestanden zijn bijgewerkt, dan is het waarschijnlijk niet de moeite waard om de volledige wereld te herbouwen:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1339,7 +1339,7 @@ _Normaal gesproken_ (en dit is geen vaste regel) maakt het proces `make buildwor
Als een systeem in de laatste fase zit (wat uit de uitvoer blijkt) kan dit redelijk veilig gedaan worden:
-[source,bash]
+[source,shell]
....
… fix the problem …
# cd /usr/src
@@ -1350,7 +1350,7 @@ Dit maakt het werk van de vorige `make buildworld` niet ongedaan.
Als het onderstaande bericht in de uitvoer van `make buildworld` staat, dan is het redelijk veilig om het te doen:
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1368,7 +1368,7 @@ Als dat bericht er niet is, of er is onzekerheid over, dan is het altijd beter o
* Geef de optie `-j__n__` mee aan man:make[1] om meerdere processen parallel te laten lopen. Dit helpt in de meeste gevallen, onafhankelijk of er gewerkt wordt op een systeem met één of meerdere processoren;
* Het bestandssysteem dat [.filename]#/usr/src# bevat, kan (opnieuw) gemount worden met de optie `noatime`. Dit voorkomt dat het bestandssysteem de toegangsmomenten registreert. Deze informatie is waarschijnlijk toch niet nodig.
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1389,7 +1389,7 @@ Houd er rekening mee dat deze optie het bestandssysteem kwetsbaarder maakt. Met
Als op dit bestandssysteem alleen [.filename]#/usr/obj# staat, is dit geen probleem. Als er andere belangrijke gegevens op hetzelfde bestandssysteem staan, zorg er dan voor dat er verse back-ups zijn voordat deze optie aangezet wordt.
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1404,7 +1404,7 @@ Zorg ervoor, zoals al eerder is aangegeven, dat als [.filename]#/usr/obj# niet o
Zorg ervoor dat het systeem geen rommel meer bevat van eerdere builds. Het volgende helpt daarbij:
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
@@ -1426,7 +1426,7 @@ Als onderdeel van de FreeBSD ontwikkel levenscyclus kan het van tijd tot tijd ge
Er wordt aangenomen dat de stappen gevolgd worden zoals uitgelegd in <<canonical-build>>. Na het `make installworld` commando en het daarop volgende `mergemaster` commando succesvol uitgevoerd zijn kan er op de volgende manier gecontroleerd worden voor verouderde bestanden en bibliotheken:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make check-old
@@ -1434,7 +1434,7 @@ Er wordt aangenomen dat de stappen gevolgd worden zoals uitgelegd in <<canonical
Als er verouderde bestanden gevonden worden kunnen deze verwijderd worden door het volgende commando:
-[source,bash]
+[source,shell]
....
# make delete-old
....
@@ -1447,14 +1447,14 @@ Zie het [.filename]#/usr/src/Makefile# bestand voor meer interessante targets.
Er wordt een prompt getoond voordat elk verouderd bestand wordt verwijderd. Deze prompt kan worden overgeslagen en het systeem deze bestanden automatisch laten verwijderen door gebruik te maken van de `BATCH_DELETE_OLD_FILES` make variabele als volgt:
-[source,bash]
+[source,shell]
....
# make -DBATCH_DELETE_OLD_FILES delete-old
....
Dit kan ook worden gedaan door deze commando's door `yes` te pipen als volgt:
-[source,bash]
+[source,shell]
....
# yes|make delete-old
....
@@ -1470,7 +1470,7 @@ Gereedschappen om gedeelde bibliotheek afhankelijkheden te controleren zijn besc
Overbodige gedeelde bibliotheken kunnen conflicteren met nieuwere bibliotheken welke berichten zoals deze kunnen veroorzaken:
-[source,bash]
+[source,shell]
....
/usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5
/usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so, may conflict with librpcsvc.so.5
@@ -1478,7 +1478,7 @@ Overbodige gedeelde bibliotheken kunnen conflicteren met nieuwere bibliotheken w
Om deze problemen op te lossen moet bepaald worden welke port deze bibliotheek heeft geïnstalleerd:
-[source,bash]
+[source,shell]
....
# pkg_info -W /usr/local/lib/libtiff.so
/usr/local/lib/libtiff.so was installed by package tiff-3.9.4
@@ -1488,7 +1488,7 @@ Om deze problemen op te lossen moet bepaald worden welke port deze bibliotheek h
Deïnstalleer, herbouw en herinstalleer de port. De package:ports-mgmt/portmaster[] en package:ports-mgmt/portupgrade[] gereedschappen kunnen gebruikt worden om deze processen te automatiseren. Nadat zeker is dat alle ports opnieuw gebouwd zijn, en de oude bibliotheken niet meer gebruikt worden, kunnen deze verwijderd worden met het volgende commando:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
diff --git a/documentation/content/nl/books/handbook/desktop/_index.adoc b/documentation/content/nl/books/handbook/desktop/_index.adoc
index 1107df4f70..9b0bb34cba 100644
--- a/documentation/content/nl/books/handbook/desktop/_index.adoc
+++ b/documentation/content/nl/books/handbook/desktop/_index.adoc
@@ -114,21 +114,21 @@ Firefox is een moderne, gratis, stabiele open-source browser die volledig geport
Installeer het pakket door het volgende te typen:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Dit zal de laatste uitgave van Firefox installeren, als u in plaats hiervan de Extended Support Release (ESR) van Firefox wilt draaien, gebruik dan:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox-esr
....
De Portscollectie kan ook gebruikt worden als u liever vanuit de broncode installeert.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -146,7 +146,7 @@ In deze en de volgende twee secties wordt er vanuit gegaan dat Firefox reeds ge
Installeer OpenJDK 6 vanuit de Ports Collectie door het volgende typen:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -154,7 +154,7 @@ Installeer OpenJDK 6 vanuit de Ports Collectie door het volgende typen:
Installeer daarna de port package:java/icedtea-web[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -166,7 +166,7 @@ Start de browser en voer `about:plugins` in de locatie balk en druk op kbd:[Ente
Als de browser de plugin niet kan vinden, dient elke gebruiker het volgende commando uit te voeren en de browser opnieuw te starten:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/lib/IcedTeaPlugin.so \
$HOME/.mozilla/plugins/
@@ -195,7 +195,7 @@ De volgende stap is om de Flash(TM) 11.X vanuit de port package:www/linux-f10-fl
+
Voor deze versie is het nodig om de volgende koppeling aan te maken:
+
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -206,7 +206,7 @@ De [.filename]#/usr/local/lib/browser_plugins# directory moet handmatig aangemaa
Wanneer de juiste Flash(TM) port, afhankelijk van de versie van FreeBSD die u draait, is geïnstalleerd, moet de plugin door elke gebruiker worden geïnstalleerd met `nspluginwrapper`:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
@@ -220,14 +220,14 @@ Swfdec is de bibliotheek om Flash(TM)-animaties te decoderen en af te beelden. S
Als u het niet kunt of wilt compileren, kan het pakket vanaf het netwerk worden geïnstalleerd:
-[source,bash]
+[source,shell]
....
# pkg_add -r swfdec-plugin
....
Als het pakket niet beschikbaar is, kunt u het vanuit de Portscollectie compileren en installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/swfdec-plugin
# make install clean
@@ -241,14 +241,14 @@ Opera is een volledige en een standaard volgende browser. Hij wordt standaard ge
De FreeBSD pakketversie van Opera wordt zo geïnstalleerd:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
Sommige FTP-sites hebben niet alle pakketten, maar Operakan worden nog altijd via de Portscollectie worden verkregen door te typen:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -258,7 +258,7 @@ De Linux(R) versie van Opera kan geïnstalleerd worden door bij de bovenstaande
De Adobe(R) Flash(TM) plugin is niet beschikbaar voor FreeBSD. Er bestaat echter een Linux(R) versie van de plugin. Om deze versie te installeren moet de port package:www/linux-f10-flashplugin11[] geïnstalleerd zijn, installeer daarna de port package:www/opera-linuxplugins[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/linux-f10-flashplugin11
# make install clean
@@ -278,7 +278,7 @@ Er is ook een verzameling plugins beschikbaar voor Konqueror, beschikbaar in pac
Konqueror ondersteunt WebKit naast het eigen KHTML. WebKit wordt gebruikt door vele moderne browsers waaronder Chromium. Om WebKit met Konqueror op FreeBSD te gebruiken:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/kwebkitpart
# make install clean
@@ -294,14 +294,14 @@ Chromium is een open-source browserproject dat er op gericht is om een veiligere
Chromium kan als volgt als een pakket worden geïnstalleerd:
-[source,bash]
+[source,shell]
....
# pkg_add -r chromium
....
Als alternatief kan Chromium worden gecompileerd vanuit de broncode door de Portscollectie te gebruiken:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -322,7 +322,7 @@ Deze sectie neemt aan dat Chromium al is geïnstalleerd.
Installeer OpenJDK 6 vanuit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -330,7 +330,7 @@ Installeer OpenJDK 6 vanuit de Portscollectie:
Installeer vervolgens package:java/icedtea-web[] vanuit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -340,7 +340,7 @@ Start Chromium en geef `about:plugins` op in de adresbalk. IcedTea-Web zou genoe
Als Chromium de plugin IcedTea-Web niet vermeldt, voer dan de volgende commando's uit en herstart de browser:
-[source,bash]
+[source,shell]
....
# mkdir -p /usr/local/shared/chromium/plugins
# ln -s /usr/local/lib/IcedTeaPlugin.so \
@@ -406,14 +406,14 @@ Voordat de nieuwste KOffice wordt geïnstalleert, moet er een recente versie van
KOffice voor KDE als pakket installeren gaat met het volgende commando:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice-kde4
....
Als het pakket niet beschikbaar is, kan de Portscollectie gebruiken worden. Om KOffice voor KDE4 te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde4
# make install clean
@@ -427,14 +427,14 @@ AbiWord kan veel bestandsformaten importeren en exporteren, waaronder enkele ges
AbiWord is beschikbaar als pakket en te installeren met:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Als het pakket niet beschikbaar is, kan het worden gecompileerd vanuit de Portscollectie. De Portscollectie is meer recent. Dat kan als volgt:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -446,14 +446,14 @@ Voor het bewerken of retoucheren van afbeeldingen is The GIMP een zeer geavancee
Het pakket is te installeren met:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Als een FTP-site dit pakket niet heeft, kan de Portscollectie gebruikt worden. De link:https://www.FreeBSD.org/ports/[graphics] map van de Portscollectie bevat ook The GIMP Manual. Die kan zo geïnstalleerd worden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -476,7 +476,7 @@ De tekstverwerker van Apache OpenOffice gebruikt een eigen XML-bestandsformaat v
Om Apache OpenOffice te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r apache-openoffice
....
@@ -488,7 +488,7 @@ Dit hoort te werken als er een -RELEASE versie van FreeBSD wordt gedraaid. In an
Als het pakket geïnstalleerd is, start dan met het volgende commando Apache OpenOffice:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -502,7 +502,7 @@ Tijdens de eerste keer starten worden er een aantal vragen gesteld en wordt de m
Als de Apache OpenOffice pakketten niet beschikbaar zijn, kan het uit de ports gecompileerd worden. Hiervoor is veel schijfruimte en tijd nodig:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-3
# make install clean
@@ -512,7 +512,7 @@ Als de Apache OpenOffice pakketten niet beschikbaar zijn, kan het uit de ports g
====
Vervang om een gelokaliseerde versie te bouwen de voorgaande commandoregel door de volgende:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=uw_taal install clean
....
@@ -522,7 +522,7 @@ Vervang _taal_ door de juiste ISO-taalcode. Een lijst met ondersteunde taalcodes
Start hierna Apache OpenOffice met:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -537,7 +537,7 @@ De tekstverwerker van LibreOffice gebruikt een eigen XML-bestandsformaat voor ve
Om LibreOffice als een pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r libreoffice
....
@@ -549,7 +549,7 @@ Dit zou moeten werken met een -RELEASE-versie van FreeBSD.
Als het pakket is geïnstalleerd, dient de volgende opdracht gebruikt te worden om LibreOffice te draaien:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -561,7 +561,7 @@ Tijdens de eerste keer draaien worden u wat vragen gesteld en wordt er een map [
Als er geen pakket voor LibreOffice beschikbaar is, heeft u nog altijd de optie om de port te compileren. Denk er echter aan dat dit veel schijfruimte en redelijk veel tijd kost.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -571,7 +571,7 @@ Als er geen pakket voor LibreOffice beschikbaar is, heeft u nog altijd de optie
====
Als u een gelokaliseerde versie wilt bouwen, dient u de vorige opdracht door het volgende te vervangen:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=uw_taal install clean
....
@@ -581,7 +581,7 @@ U dient _uw_taal_ te vervangen door de juiste ISO-taalcode. Een lijst met onders
Wanneer dit is gedaan, kan LibreOffice gestart worden met deze opdracht:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -628,7 +628,7 @@ Documenten worden vaak als PDF-bestanden, "Portable Document Format", verspreid.
Om Acrobat Reader(R) 8 te installeren uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread8
# make install clean
@@ -642,14 +642,14 @@ gv is een PostScript(R) en PDF viewer. Het is gebaseerd op ghostview maar heeft
gv is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -661,14 +661,14 @@ Xpdf een efficiënte lichtgewicht PDF-viewer voor FreeBSD. Het heeft erg weinig
Xpdf is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -682,14 +682,14 @@ GQview is een afbeeldingenbeheerder. Een bestand kan met één klik bekeken word
GQview is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -739,14 +739,14 @@ GnuCash levert een slim kasboek, een hiërarchisch systeem van rekeningen, en ve
GnuCash is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -758,14 +758,14 @@ Gnumeric is een spreadsheetprogramma uit de GNOME bureaubladomgeving. Het maakt
Gnumeric is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -777,14 +777,14 @@ Abacus is een kleine en gemakkelijk te gebruiken spreadsheetprogramma. Het bevat
Abacus is als pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Of uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -796,14 +796,14 @@ KMyMoney is een persoonlijke financiële beheerder gebouwd voor KDE. KMyMoney po
Om KMyMoney als een pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
Als het pakket niet beschikbaar is, kan de Portscollectie gebruikt worden:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/nl/books/handbook/disks/_index.adoc b/documentation/content/nl/books/handbook/disks/_index.adoc
index 80528d25c8..2e901bc54d 100644
--- a/documentation/content/nl/books/handbook/disks/_index.adoc
+++ b/documentation/content/nl/books/handbook/disks/_index.adoc
@@ -153,7 +153,7 @@ De laatste stap bestaat uit het bewerken van [.filename]#/etc/fstab# om hier een
Deze installatie zorgt ervoor dat de schijf correct samenwerkt met andere besturingssystemen die eventueel op de computer zijn geïnstalleerd en dat de `fdisk`-gereedschappen van andere besturingssystemen niet verward raken. Het wordt aangeraden om deze methode te gebruiken voor de installatie van nieuwe schijven. Gebruik de `toegewijde` modus alleen als hier een goede reden voor bestaat!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of/dev/da1 bs=1k count=1
# fdisk -BI da1 # Initialiseer de nieuwe schijf.
@@ -171,7 +171,7 @@ Vervang voor een IDE-schijf [.filename]#da# door [.filename]#ad#.
Indien de nieuwe schijf niet met een ander besturingssysteem gedeeld wordt, kan de `toegewijde` modus gebruikt worden. Denk eraan dat deze modus besturingssystemen van Microsoft kan verwarren. Ze richten echter geen schade aan. IBM's OS/2(R) "fatsoeneert" echter partities die het niet begrijpt.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -184,7 +184,7 @@ Indien de nieuwe schijf niet met een ander besturingssysteem gedeeld wordt, kan
Een alternatieve methode is:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -364,7 +364,7 @@ ar0: WARNING - mirror lost
Meer informatie kan met behulp van man:atacontrol[8] gezocht worden:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -392,7 +392,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Ontkoppel eerst het ata kanaal met de falende schijf zodat deze veilig kan worden verwijderd:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -400,7 +400,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Vervang de schijf.
. Koppel het ata kanaal opnieuw aan:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -409,21 +409,21 @@ Slave: no device present
+
. Voeg de nieuwe schijf toe aan de rij als reserve:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. De rij dient nu opnieuw opgebouwd te worden:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. Het is mogelijk de voortgang te volgen met het volgende commando:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[uitvoer verwijderd]
@@ -477,7 +477,7 @@ Aangezien de brander als een SCSI-schijf gezien wordt, dient het stuurprogramma
De instellingen zijn klaar om getest te worden: het USB-apparaat dient aangesloten te worden en in de buffer voor systeemmeldingen (man:dmesg[8]) dient het stuurprogramma ongeveer als volgt te verschijnen:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -491,7 +491,7 @@ Uiteraard kunnen het merk, de apparaatnode ([.filename]#da0#) en andere details
Aangezien het USB-apparaat als een SCSI-apparaat gezien wordt, kan het commando `camcontrol` gebruikt worden om de USB-opslagapparaten weer te geven die aan het systeem gekoppeld zijn:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -543,7 +543,7 @@ Let op, deze wijziging wordt pas actief na de volgende start van het systeem. Al
De laatste stap is het creëeren van de map waar het bestandssysteem gekoppeld wordt. Deze map moet eigendom zijn van de gebruiker die het bestandssysteem gaat koppelen. Een manier om dat te bewerkstelligen is door met de gebruiker `root` een submap aan te maken die eigendom is van de gebruiker als [.filename]#/mntgebruikersnaam# (verander _gebruikersnaam_ door de loginnaam van de daadwerkelijke gebruiker en _gebruikersgroep_ door de primaire groep van de gebruiker):
-[source,bash]
+[source,shell]
....
# mkdir /mnt/gebruikersnaam
# chown gebruikersnaam:gebruikersgroep /mnt/gebruikersnaam
@@ -551,14 +551,14 @@ De laatste stap is het creëeren van de map waar het bestandssysteem gekoppeld w
Stel dat er vervolgens een USB-stick ingeplugged wordt en er een [.filename]#/dev/da0s1# aangemaakt wordt. Omdat deze apparaten meestal voorgeformatteerd met een FAT-bestandssysteem komen, kan deze als volgende gekoppeld worden:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/gebruikersnaam
....
Indien het apparaat losgekoppeld wordt (nadat de schijf afgekoppeld is), dient in de buffer voor systeemmeldingen iets als het volgende te zien te zijn:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -593,7 +593,7 @@ Indien CD-brandsoftware met een grafische gebruikersinterface gewenst is, is X-C
Het programma man:mkisofs[8], dat deel uitmaakt van de port package:sysutils/cdrtools[], maakt een ISO 9660-bestandssysteem aan dat een beeld is van een boomstructuur in de UNIX(R) bestandssysteem-namespace. De eenvoudigste gebruiksvorm is:
-[source,bash]
+[source,shell]
....
# mkisofs -o beeldbestand.iso /pad/naar/boomstructuur
....
@@ -606,14 +606,14 @@ Voor CD's die alleen op FreeBSD-systemen gebruikt gaan worden, kan `-U` gebruikt
De laatste optie voor algemeen gebruik is `-b`. Deze wordt gebruikt om de plaats van het opstartbeeld aan te geven om een "El Torito" opstartbare CD te maken. Deze optie heeft een argument nodig, namelijk het pad naar een opstartbeeld dat het begin van de boomstructuur die naar de CD geschreven wordt voorstelt. Gewoonlijk maakt man:mkisofs[8] een ISO-beeld aan in de zogenaamde "diskette-emulatie"-modus en verwacht het dus dat het beeldbestand exact 1200, 1440 of 2880 KB groot is. Sommige bootloaders, zoals degene die door de distributieschijven van FreeBSD wordt gebruikt, gebruiken de emulatiemodus niet. In dat geval dient de optie `-no-emul-boot` gebruikt te worden. Dus indien [.filename]#/tmp/myboot# een opstartbaar FreeBSD-systeem met het beeldbestand in [.filename]#/tmp/myboot/boot/cdboot# bevat, kan het beeld van een ISO 9660-bestandssysteem als volgt in [.filename]#/tmp/bootable.iso# aangemaakt worden:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
Als dit gedaan is en [.filename]#md# in de kernel is ingesteld, kan het bestandssysteem gekoppeld worden:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -628,7 +628,7 @@ Er zijn vele andere opties die met man:mkisofs[8] gebruikt kunnen worden om het
Indien er een ATAPI CD-brander aanwezig is, kan het commando `burncd` gebruikt worden om een ISO-beeld naar een CD te branden. `burncd` maakt deel uit van het basissysteem en is geïnstalleerd als [.filename]#/usr/sbin/burncd#. Het gebruik is erg eenvoudig, aangezien het weinig opties heeft.
-[source,bash]
+[source,shell]
....
# burncd -f cd-apparaat gegevens beeldbestand.iso fixate
....
@@ -642,14 +642,14 @@ Indien er geen ATAPI CD-brander aanwezig is, dient `cdrecord` gebruikt te worden
Hoewel `cdrecord` vele opties heeft, is het gebruik voor gewone situaties nog eenvoudiger dan dat van `burncd`. Een ISO 9660-beeld kan gebrand worden met:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device beeldbestand.iso
....
Het lastige gedeelte in het gebruik van `cdrecord` is het vinden van de juiste `dev`. Om de juiste instelling te vinden, kan de vlag `-scanbus` van `cdrecord` gebruikt worden, wat resultaten zoals de onderstaande kan geven:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jörg Schilling
@@ -687,14 +687,14 @@ Een audio-CD kan gedupliceerd worden door de geluidsgegevens van de CD naar een
. Onttrek `cdda2wav` de audio:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
+
. Schrijf met `cdrecord` de [.filename]#.wav#-bestanden:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -715,14 +715,14 @@ Met behulp van de <<atapicam,ATAPI/CAM module>> kan `cdda2wav` ook gebruikt word
+
Controleer of de juiste bestanden in [.filename]#/dev# bestaan. Als de benodigde namen er niet bijstaan, forceer het systeem dan om opnieuw te kijken:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. De track kan met man:dd[1] onttrokken worden. Bij het onttrekken van de bestanden dient een specifieke blokgrootte gebruikt te worden.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
#dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -731,7 +731,7 @@ Controleer of de juiste bestanden in [.filename]#/dev# bestaan. Als de benodigde
+
. Brand de onttrokken bestanden met `burncd`. Er dient opgegeven te worden dat het geluidsbestanden zijn en dat `burncd` de schijf moet fixeren wanneer na afronding van het proces.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -742,7 +742,7 @@ Controleer of de juiste bestanden in [.filename]#/dev# bestaan. Als de benodigde
Een gegevens-CD kan gekopieerd worden naar een beeldbestand dat functioneel gelijk is aan het beeldbestand dat met man:mkisofs[8] gemaakt is en het kan gebruikt worden om elke gegevens-CD te dupliceren. Het hier gegeven voorbeeld neemt aan dat het CD-ROM-apparaat [.filename]#acd0# is.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=bestand.iso bs=2048
....
@@ -754,21 +754,21 @@ Nu het beeld beschikbaar is, kan het naar CD geschreven worden zoals hierboven b
Nu er een standaard gegevens-CD-ROM is aangemaakt moet deze waarschijnlijk aangekoppeld worden om de gegevens die er op staan te lezen. Normaalgesproken neemt man:mount[8] aan dat een bestandssysteem van het soort `ufs` is. Als zoiets als onderstaande geprobeerd wordt komt er een klacht over `Incorrect super block` en wordt er niet aangekoppeld:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
De CD-ROM bevat geen `UFS`-bestandssysteem, dus pogingen om zo aan te koppelen mislukken. Er dient aan man:mount[8] verteld te worden dat het bestandssysteem van het soort `ISO9660` is en dan werkt alles. Dit kan door de optie `-t cd9660` van man:mount[8] op te geven. Het CD-ROM-apparaat [.filename]#/dev/cd0# onder [.filename]#/mnt# aankoppelen kan zo:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
De apparaatnaam (in dit voorbeeld [.filename]#/dev/cd0#) kan afwijken, afhankelijk van de interface die de CD-ROM gebruikt. Verder voert de optie `-t cd9660` gewoon man:mount_cd9660[8] uit. Bovenstaand voorbeeld kan verkort worden tot:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -803,14 +803,14 @@ Dit zorgt ervoor dat de SCSI-bus 15 seconden pauzeert tijdens het opstarten opda
Een bestand kan direct naar CD geschreven worden zonder een ISO 9660-bestandssysteem aan te maken. Sommige mensen doen dit voor back-updoeleinden. Dit gaat sneller dan een standaard-CD branden:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 gegevens archief.tar.gz fixate
....
Om de gegevens terug te halen die op zo'n CD gebrand zijn, is het noodzakelijk om gegevens van de rauwe apparaatnode te lezen:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -855,7 +855,7 @@ Hierna dient de nieuwe kernel opnieuw gebouwd en geïnstalleerd te worden en die
Tijdens het opstartproces dient de brander als volgt te verschijnen:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -866,14 +866,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
Het station is nu toegankelijk via de apparaatnaam [.filename]#/dev/cd0#. Om bijvoorbeeld een CD-ROM op [.filename]#/mnt# aan te koppelen:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Als `root` kan het volgende commando gegeven worden om het SCSI-adres van de brander te verkrijgen:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CD-RW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -931,7 +931,7 @@ Het commando man:growisofs[1] is een frontend voor <<mkisofs,mkisofs>>. Het roep
Om de gegevens uit de map [.filename]#/pad/naar/gegevens# op een DVD+R of een DVD-R te branden:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /pad/naar/gegevens
....
@@ -942,7 +942,7 @@ De optie `-Z` wordt gebruikt voor het opnemen van de eerste sessie, ook bij meer
Het is ook mogelijk om een vooraf gemastered beeld te branden, om bijvoorbeeld het beeld _beeldbestand.iso_ te branden:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=beeldbestand.iso
....
@@ -955,14 +955,14 @@ Om bestanden groter dan 4,38GB in de compilatie op te nemen dient een UDF/ISO-96
Om zo'n ISO-bestand aan te maken:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o beeldbestand.iso /pad/naar/gegevens
....
Om de bestanden direct naar een schijf te schrijven:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /pad/naar/gegevens
....
@@ -978,7 +978,7 @@ Een DVD-Video is een specifiek bestandsschema dat gebaseerd is op de ISO 9660 en
Indien er reeds een beeld van het bestandssysteem van de DVD-Video beschikbaar is, kan het zoals elk ander beeld gebrand worden. In de vorige sectie staat een voorbeeld. Als het resultaat voor de inhoud voor de DVD bijvoorbeeld in de map [.filename]#/pad/naar/video# staat, kan de DVD-Video als volgt gebrand worden:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /pad/naar/video
....
@@ -989,7 +989,7 @@ De optie `-dvd-video` wordt doorgegeven aan man:mkisofs[8] en geeft het opdracht
In tegenstelling tot een CD-RW dient een nieuwe DVD+RW voor het eerste gebruik geformatteerd te worden. Het programma man:growisofs[1] regelt dit automatisch als nodig. Dit is de _aanbevolen_ manier. Het is ook mogelijk om `dvd+rw-format` te gebruiken om een DVD+RW te formatteren:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -998,7 +998,7 @@ Deze operatie hoeft slechts één maal uitgevoerd te worden. Onthoud dat alleen
Om nieuwe gegevens op een DVD+RW te branden (een geheel nieuw bestandssysteem branden, niet wat gegevens toevoegen), is het niet nodig om deze te wissen. Het is voldoende om de vorige opname te overschrijven (tijdens het aanmaken van een initiële sessie), zoals hieronder:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /pad/naar/nieuwe gegevens
....
@@ -1007,7 +1007,7 @@ Het DVD+RW-formaat biedt de mogelijkheid om eenvoudig nieuwe gegevens aan een vo
Om gegevens aan de vorige DVD+RW toe te voegen:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /pad/naar/volgende gegevens
....
@@ -1021,7 +1021,7 @@ De optie `-dvd-compat` kan gebruikt worden als betere uitwisselbaarheid met DVD-
Om het medium te wissen:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1034,7 +1034,7 @@ Een nieuwe DVD-RW kan direct beschreven worden zonder deze te formatteren. Een g
Om een DVD-RW in sequentiële toestand te wissen, dient het volgende gedaan te worden:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1043,7 +1043,7 @@ Om een DVD-RW in sequentiële toestand te wissen, dient het volgende gedaan te w
====
Volledig wissen (`-blank=full`) neemt ongeveer één uur in beslag op een 1x-medium. Het is mogelijk om snel te wissen door gebruik te maken van de optie `blank` als de DVD-RW in Disk-At-Once-modus (DAO) wordt opgenomen. Om de DVD-RW in DAO-modus te branden:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=beeldbestand.iso
....
@@ -1055,7 +1055,7 @@ Eigenlijk moet beperkt overschrijven gebruikt worden met elke DVD-RW. Dit formaa
Om gegevens op een sequentiële DVD-RW te schrijven, worden dezelfde instructies gebruikt als voor de andere DVD-formaten:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /pad/naar/gegevens
....
@@ -1066,14 +1066,14 @@ Een DVD-RW in het beperkt overschrijven formaat hoeft niet gewist te worden vó
Om een DVD-RW in het beperkt overschrijven-formaat te zetten:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Om terug te gaan naar het sequentiële formaat:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1084,7 +1084,7 @@ Multisessie DVD's worden door zeer weinig DVD-ROM-stations geaccepteerd en meest
Om een nieuwe sessie achter een initiële (niet-gesloten) sessie op een DVD+R, DVD-R of DVD-RW in sequentieel formaat toe te voegen:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /pad/naar/volgende gegevens
....
@@ -1123,7 +1123,7 @@ hw.ata.atapi_dma="1"
Zoals vermeld in de introductie van dit hoofdstuk kan DVD-RAM gezien worden als een verwijderbare harde schijf. Zoals elke andere harde schijf moet de DVD-RAM "voorbereid" worden voor het eerste gebruik. In het voorbeeld wordt alle beschikbare ruimte gebruikt voor een standaard UFS2 bestandssysteem:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -1136,7 +1136,7 @@ Het DVD apparaat, [.filename]#acd0# moet worden gewijzigd naar gelang de configu
Zodra de voorgaande operaties uitgevoerd zijn op de DVD-RAM kan het gekoppeld worden net als een normale harde schijf:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1168,7 +1168,7 @@ Op basis van eventuele foutmeldingen kan bepaald worden of een schijf goed of sl
Voor het formatteren van de diskette dienen de apparaten [.filename]#/dev/fdN# gebruikt te worden. Nadat een 3,5 inch diskette in het station is gestoken:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1181,7 +1181,7 @@ Het nieuwe schijflabel neemt de gehele schijf over en bevat alle benodigde infor
Nu kan man:bsdlabel[8] als volgt gedraaid worden:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1194,7 +1194,7 @@ Het bestandssysteem voor diskettes kan zowel UFS als FAT zijn. FAT is over het a
Om een nieuw bestandssysteem op de diskettes te zetten:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1221,7 +1221,7 @@ man:mt[1] is het hulpmiddel van FreeBSD om andere bewerkingen op het bandstation
Als voorbeeld kunnen de eerste drie bestanden op een band bewaard worden door ze over te slaan voordat een nieuw bestand wordt geschreven:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1230,14 +1230,14 @@ Als voorbeeld kunnen de eerste drie bestanden op een band bewaard worden door ze
man:tar[1] gebruiken om een enkel bestand naar band te schrijven:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 bestand
....
Bestanden vanuit een man:tar[1]-archief op band naar de huidige map herstellen:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
@@ -1246,14 +1246,14 @@ Bestanden vanuit een man:tar[1]-archief op band naar de huidige map herstellen:
Een eenvoudige back-up van [.filename]#/usr# maken met man:dump[8]:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
Interactief bestanden van een man:dump[8]-bestand vanaf band naar de huidige map herstellen:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1285,14 +1285,14 @@ Het beste kan naar diskettes worden geback-upped door gebruik te maken van man:t
Om alle bestanden in de huidige map en de submappen te back-uppen (als `root`):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Als de eerste diskette vol is, vraagt man:tar[1] om het volgende volume. Omdat man:tar[1] media-onafhankelijk is, refereert het aan volumes, in deze context diskettes.
-[source,bash]
+[source,shell]
....
Prepare volume #2 for /dev/fd0 and hit return:
....
@@ -1309,14 +1309,14 @@ Helaas staat man:tar[1] het gebruik van de optie `-z` niet toe voor archieven ov
Om een volledige archief terug te zetten:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Er zijn twee manieren om alleen specifieke bestanden terug te zetten. Ten eerste kan met de eerste diskette begonnen worden:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 bestandsnaam
....
@@ -1365,7 +1365,7 @@ Indien `dump` op een hoofdmap wordt gebruikt, wordt er geen back-up gemaakt van
Het is ook mogelijk om gegevens met `rdump` en `rrestore` over een netwerk naar een bandstation dat aan een andere computer gekoppeld is te back-uppen. Beide programma's maken gebruik van man:rcmd[3] en man:ruserok[3] om toegang tot het bandstation op afstand te krijgen. De gebruiker die de back-up uitvoert moet vermeld staat in het bestand [.filename]#.rhosts# op de computer op afstand. De argumenten die aan `rdump` en `rrestore` gegeven worden dienen geschikt te zijn voor gebruik op de computer op afstand. Als `rdump` gebruikt wordt om een dump te maken van een FreeBSD computer naar een Exabyte-bandstation dat met een Sun-computer genaamd `komodo` verbonden is:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1378,7 +1378,7 @@ Het is ook mogelijk om `dump` en `restore` op een veiligere manier via `ssh` te
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
doelgebruiker@doelmachine.example.com dd of=/mijngrotebestanden/dump-usr-10.gz
@@ -1392,7 +1392,7 @@ Ook kan de ingebouwde manier van `dump` gebruikt worden, door de omgevingsvariab
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f doelgebruiker@doelmachine.example.com:/dev/sa0 /usr
....
@@ -1405,7 +1405,7 @@ man:tar[1] stamt ook uit de tijd van Versie 6 van AT&T UNIX(R) (circa 1975). Het
Om `tar` toe te passen op een Exabyte-bandstation die met een Sun genaamd `komodo` verbonden is:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh komodo dd of=tape-device obs=20b
....
@@ -1418,7 +1418,7 @@ man:cpio[1] is het originele UNIX(R) bandprogramma voor magnetische media om bes
`cpio` biedt geen ondersteuning voor back-ups over het netwerk. Er kan gebruik worden gemaakt van een pijplijn en `rsh` om de gegevens naar een banddrive op afstand te sturen.
-[source,bash]
+[source,shell]
....
# for f in maplijst; do
find $f >> back-up.lijst
@@ -1518,7 +1518,7 @@ Om een bestaand beeld van een bestandssysteem aan te koppelen:
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f schijfbeeld -u 0
# mount /dev/md0 /mnt
@@ -1532,7 +1532,7 @@ Om een nieuw beeld van een bestandssysteem aan te maken met man:mdconfig[8]:
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=nieuwbeeld bs=1k count=5k
5120+0 records in
@@ -1560,7 +1560,7 @@ Het commando man:mdconfig[8] is erg nuttig, hoewel het veel opdrachten vergt om
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=nieuwbeeld bs=1k count=5k
5120+0 records in
@@ -1584,7 +1584,7 @@ Voor een geheugen gebaseerd bestands systeem moet normaal gesproken "wisselbesta
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1605,7 +1605,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1621,7 +1621,7 @@ Als een geheugen- of bestandsgebaseerd bestandssysteem niet gebruikt wordt, dien
Om bijvoorbeeld alle bronnen die door [.filename]#/dev/md4# gebruikt worden los te koppelen en vrij te geven:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1639,21 +1639,21 @@ De onveranderlijke bestandsvlag `snapshot` wordt door man:mksnap_ffs[8] ingestel
Snapshotbestanden worden aangemaakt met man:mount[8]. Om een snapshot van [.filename]#/var# in het bestand [.filename]#/var/snapshot/snap# te plaatsen:
-[source,bash]
+[source,shell]
....
# mount -o -o snapshot /var/snapshot/snap /var
....
Als alternatief kan man:mksnap_ffs[8] gebruikt worden om een snapshot aan te maken:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Snapshotbestanden kunnen gezocht worden op een bestandssysteem (bijvoorbeeld [.filename]#/var#) door gebruik te maken van het commando man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1666,7 +1666,7 @@ Nadat een snapshot is aangemaakt, kan het voor een aantal dingen gebruikt worden
* Het snapshot kan met man:mount[8] als bevroren beeld van het bestandssysteem worden aangekoppeld. Om het snapshot [.filename]#/var/snapshot/snap# aan te koppelen:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1674,7 +1674,7 @@ Nadat een snapshot is aangemaakt, kan het voor een aantal dingen gebruikt worden
Het is nu mogelijk om door de structuur van het bevroren bestandssysteem [.filename]#/var# te lopen dat aangekoppeld is op [.filename]#/mnt#. Alles zal initieel in dezelfde toestand verkeren als op het moment dat het snapshot werd aangemaakt. De enige uitzondering hierop is dat eerdere snapshots als bestanden met lengte nul verschijnen. Als een snapshot niet meer nodig is, kan het als volgt afgekoppeld worden:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1745,7 +1745,7 @@ Tijdens normale bewerkingen moet het niet nodig zijn om de commando's man:quotac
Indien het systeem ingesteld voor gebruik van quota, controleer dan of ze echt aanstaan. Een eenvoudige manier om dit te doen is de volgende:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1762,7 +1762,7 @@ Zachte limieten kunnen voor een beperkte tijd overschreden worden. Deze periode
Het volgende is een voorbeeld van een mogelijk gebruik van man:edquota[8]. Als het commando man:edquota[8] gestart wordt, wordt de tekstverwerker opgestart die door de omgevingsvariabele `EDITOR` gespecificeerd is, of de tekstverwerker vi als de variabele `EDITOR` niet is ingesteld. Nu kunnen de quotalimieten bewerkt worden.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1794,7 +1794,7 @@ De nieuwe quotalimieten gelden zodra de tekstverwerker verlaten wordt.
Soms is het gewenst om quotalimieten in te stellen op een aantal UID's. Dit kan gedaan worden door de optie `-p` van man:edquota[8] te gebruiken. Wijs eerst de gewenste quotalimiet aan een gebruiker toe en draai daarna `edquota -p protogebruiker beginuid-einduid`. Indien bijvoorbeeld gebruiker `test` de gewenste quotalimieten heeft, kan het volgende commando gebruikt worden om deze quotalimieten te dupliceren voor UID's 10.000 tot en met 19.999:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1832,7 +1832,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Vervolgens dient `inetd` opnieuw gestart te worden:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1855,7 +1855,7 @@ Los van hoe een aanvaller in het bezit van een harde schijf of een uitgezette co
+
Het instellen van gbde vereist beheerdersrechten.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1872,7 +1872,7 @@ Herbouw de kernel opnieuw zoals beschreven in crossref:kernelconfig[kernelconfig
Start op met de nieuwe kernel.
. Een alternatief voor het hercompileren van de kernel is door gebruik te maken van man:kldload[8] om man:gbde[4] te laden:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1889,7 +1889,7 @@ In het volgende voorbeeld wordt aangenomen dat er een nieuwe harde schijf aan he
+
Voeg de nieuwe harde schijf toe zoals beschreven in <<disks-adding>>. In dit voorbeeld is een nieuwe harde schijfpartitie toegevoegd als [.filename]#/dev/ad4s1c#. De apparaten [.filename]#/dev/ad0s1*# stellen bestaande standaard FreeBSD partities van het voorbeeldsysteem voor.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1899,7 +1899,7 @@ Voeg de nieuwe harde schijf toe zoals beschreven in <<disks-adding>>. In dit voo
+
. Maak een map aan voor gbde lockbestanden
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1909,7 +1909,7 @@ Het lockbestand voor gbde bevat informatie die gbde nodig heeft om toegang te kr
+
Een gbde-partitie dient geïnitialiseerd te worden voordat deze kan worden gebruikt. Deze initialisatie dient slechts eenmalig uitgevoerd te worden:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -1941,14 +1941,14 @@ gbde lockbestanden _moeten_ samen met de inhoud van versleutelde partities gebac
+
. Koppel de versleutelde partitie aan de kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Er wordt om de wachtwoordzin gevraagd die gekozen is tijdens de initialisatie van de versleutelde partitie. Het nieuwe versleutelde apparaat verschijnt in [.filename]#/dev# als [.filename]#/dev/apparaatnaam.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1960,7 +1960,7 @@ Er wordt om de wachtwoordzin gevraagd die gekozen is tijdens de initialisatie va
+
Nu het versleutelde apparaat aan de kernel gekoppeld is, kan een bestandssysteem op het apparaat aangemaakt worden. Met man:newfs[8] kan een bestandssysteem op het versleutelde apparaat aangemaakt wordne. Aangezien het veel sneller is om een nieuw UFS2 bestandssysteem te initialiseren dan om een oud UFS1 bestandssysteem te initialiseren, is het aan te raden om man:newfs[8] met de optie `-O2` te gebruiken.
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -1974,14 +1974,14 @@ Voer man:newfs[8] uit op een aangekoppelde gbde-partitie die geïndificeerd word
+
Maak een koppelpunt voor het versleutelde bestandssysteem aan:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Mount het versleutelde bestandssysteem:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -1990,7 +1990,7 @@ Mount het versleutelde bestandssysteem:
+
Het versleutelde bestandssysteem is nu zichtbaar met man:df[1] en gebruiksklaar:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2012,7 +2012,7 @@ Elke keer nadat het systeem is opgestart dient elk versleuteld bestandssysteem o
. Koppel de gbde-partitie aan de kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -2022,14 +2022,14 @@ Er wordt om de wachtwoordzin gevraagd die gekozen is tijdens de initialisatie va
+
Aangezien het nog niet mogelijk is om versleutelde bestandssystemen op te nemen in [.filename]#/etc/fstab# voor automatische controle, dienen de bestandssystemen voordat ze aangekoppeld worden handmatig op fouten gecontroleerd te worden door man:fsck[8] uit te voeren:
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. Mount het versleutelde bestandssysteem
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2060,7 +2060,7 @@ man:gbde[8] versleutelt de sectorlading door gebruik te maken van 128-bit AES in
man:sysinstall[8] is niet compatibel met apparaten die met gbde versleuteld zijn. Alle [.filename]#*.bde# apparaten moeten van de kernel ontkoppeld worden voordat man:sysinstall[8] gebruikt wordt om te voorkomen dat het crasht tijdens het initiële zoeken naar apparaten. Om het versleutelde apparaat dat in dit voorbeeld gebruikt wordt te ontkoppelen:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2116,7 +2116,7 @@ Het wordt aangeraden een grotere sectorgrootte in te stellen (zoals 4 kB) voor b
+
De Master Key wordt beschermd door een wachtwoordzin en de gegevensbron voor het sleutelbestand wordt [.filename]#/dev/random#. De sectorgrootte van [.filename]#/dev/da2.eli#, die als dienst wordt aangeduid, wordt 4 kB.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2128,14 +2128,14 @@ Het is niet verplicht om zowel een wachtwoordzijn als een sleutelbestand te gebr
+
Als een sleutelbestand wordt opgegeven als "-", wordt de standaardinvoer gebruikt. In het onderstaande voorbeeld wordt aangegeven hoe meer dan een sleutelbestand kan worden gebruikt.
+
-[source,bash]
+[source,shell]
....
# cat sleutelbestand1 sleutelbestand2 sleutelbestand3 | geli init -K - /dev/da2
....
+
. De dienst koppelen met de gemaakte sleutel
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2143,7 +2143,7 @@ Enter passphrase:
+
Het nieuwe platte tekst-apparaat wordt [.filename]#/dev/da2.eli# genoemd.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2151,7 +2151,7 @@ Het nieuwe platte tekst-apparaat wordt [.filename]#/dev/da2.eli# genoemd.
+
. Het nieuwe bestandssysteem maken
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2160,7 +2160,7 @@ Het nieuwe platte tekst-apparaat wordt [.filename]#/dev/da2.eli# genoemd.
+
Het versleutelde bestandssysteem moet nu zichtbaar zijn voor man:df[1] en beschikbaar zijn voor gebruik:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2176,7 +2176,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
Als het werk met de versleutelde partitie is afgehandeld en de [.filename]#/private#-partitie niet langer nodig is, dan is het verstandig te overwegen de met `geli` versleutelde partitie af te koppelen van het bestandssysteem en de kernel.
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -2219,7 +2219,7 @@ Tot het einde van deze sectie zal [.filename]#ad0s1b# het wisselbestand bevatten
Tot op dit moment is het wisselbestand niet versleuteld. Het is mogelijk dat er reeds wachtwoorden of andere gevoelige data onbeschermd op de harde schijf geschreven zijn. Om dit te corrigeren, moet de data op de swap partitie overschreven worden met willekeurige data:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2261,7 +2261,7 @@ Zodra het systeem opnieuw opgestart is kan gekeken worden of alles nog goed werk
Als gebruik gemaakt wordt van man:gbde[8]:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2270,7 +2270,7 @@ Device 1K-blocks Used Avail Capacity
Als gebruik gemaakt wordt van man:geli[8]:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2388,7 +2388,7 @@ Het is ook mogelijk om hostnamen in de regels met `remote` te gebruiken. Zorg er
Nu de configuratie op beide knooppunten aanwezig is, kan de HAST-pool aangemaakt worden . Voer deze commando's op beide knooppunten uit om de initiële metagegevens op de plaatselijke schijf te plaatsen en het man:hastd[8]-daemon te starten:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -2401,14 +2401,14 @@ Het is _niet_ mogelijk om GEOM-aanbieders met een bestaand bestandssysteem te ge
De rol van een HAST-knooppunt (`primair` of `secundair`) wordt uitgekozen door een beheerder of software zoals Heartbeat dat het gereedschap man:hastctl[8] gebruikt. Voer het volgende commando uit op het primaire knooppunt ( `hasta`):
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Voer dit soortgelijke commando uit op het secundaire knooppunt ( `hastb`):
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
@@ -2421,7 +2421,7 @@ De situatie dat de knooppunten niet met elkaar kunnen communiceren en beide geco
Verifieer met het gereedschap man:hastctl[8] het resultaat op elk knooppunt:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -2430,7 +2430,7 @@ De belangrijke tekst is de regel met `status` dat voor alle knooppunten `complet
De volgende stap is het aanmaken van een bestandssysteem op de GEOM-aanbieder [.filename]#/dev/hast/test# en het aan te koppelen. Dit moet op het `primaire` knooppunt gebeuren, aangezien [.filename]#/dev/hast/test# alleen op het `primaire` knooppunt verschijnt. Het aanmaken van het bestandssysteem kan afhankelijk van de grootte van de harde schijf enkele minuten duren:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2475,7 +2475,7 @@ notify 30 {
Herstart man:devd[8] op beide knooppunten om de nieuwe configuratie te laten gelden:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2609,7 +2609,7 @@ Wanneer problemen met HAST worden verholpen, dient het debug-niveau van man:hast
De beheerder moet besluiten welk knooppunt de belangrijkere veranderingen bevat (of ze handmatig samenvoegen) en HAST een volledige synchronisatie op het knooppunt dat de kapotte gegevens heeft laten uitvoeren. Voer hiervoor deze commando's uit op het knooppunt dat opnieuw gesynchroniseerd moet worden:
-[source,bash]
+[source,shell]
....
# hastctl role init <resource>
# hastctl create <resource>
diff --git a/documentation/content/nl/books/handbook/dtrace/_index.adoc b/documentation/content/nl/books/handbook/dtrace/_index.adoc
index a6a4ce578a..b51b1a7fd1 100644
--- a/documentation/content/nl/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/nl/books/handbook/dtrace/_index.adoc
@@ -111,7 +111,7 @@ Deze optie biedt ondersteuning voor de mogelijkheid FBT. DTrace zal zonder deze
Alle broncode moet herbouwd en geherinstalleerd worden met de CTF-opties. Om deze taak te volbrengen, wordt de FreeBSD-broncode herbouwd met:
-[source,bash]
+[source,shell]
....
# cd /usr/src
@@ -129,14 +129,14 @@ Als laatste dient de huidige DTraceToolkit verkregen te worden. Indien u FreeBSD
Voordat er gebruik wordt gemaakt van de functionaliteit van DTrace, moet het DTrace-apparaat bestaan. Geef het volgende commando om het apparaat te laten:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
Ondersteuning van DTrace zou nu beschikbaar moeten zijn. De beheerder kan het volgende commando uitvoeren om alle sondes te bekijken:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -145,7 +145,7 @@ Alle uitvoer wordt aan het hulpmiddel `more` doorgegeven omdat het snel de scher
De gereedschapskist is een verzameling van kant-en-klare scripts die met DTrace gedraaid kunnen worden om informatie over het systeem te verzamelen. Er zijn scripts om open bestanden, geheugen, CPU-gebruik, en nog veel meer te controleren. Pak de scripts uit met het volgende commando:
-[source,bash]
+[source,shell]
....
# gunzip -c DTraceToolkit* | tar xvf -
....
@@ -163,7 +163,7 @@ Op het moment van schrijven worden slechts twee scripts van de DTrace Toolkit vo
De [.filename]#hotkernel# is ontworpen om te identificeren welke functie de meeste kerneltijd gebruikt. Als het normaal gedraaid wordt, zal het uitvoer die op de volgende lijkt produceren:
-[source,bash]
+[source,shell]
....
# cd /usr/shared/dtrace/toolkit
# ./hotkernel
@@ -172,7 +172,7 @@ Sampling... Hit Ctrl-C to end.
De systeembeheerder moet de toetsencombinatie kbd:[Ctrl+C] gebruiken om het proces te stoppen. Nadat het gestopt is, zal het script een lijst van kernelfuncties en timinginformatie weergeven, waarbij de uitvoer in volgorde van toenemende tijd is gesorteerd:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -204,7 +204,7 @@ kernel`sched_idletd 137 0.3%
Het script werkt ook met kernelmodules. Draai het script met de vlag `-m` om deze mogelijkheid te gebruiken:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -226,7 +226,7 @@ kernel 874 0.4%
Het script [.filename]#procsystime# vangt en beeldt het tijdsgebruik van systeemaanroepen af voor een gegeven PID of procesnaam. In het volgende voorbeeld wordt er een nieuwe instantie van [.filename]#/bin/csh# gedraaid. Het [.filename]#procsystime# werd uitgevoerd en bleef wachten terwijl er enkele commando's op de andere instantie van `csh` werden getypt. Dit zijn de resultaten van deze test:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/nl/books/handbook/filesystems/_index.adoc b/documentation/content/nl/books/handbook/filesystems/_index.adoc
index 23468ec7f6..c19bcceaa1 100644
--- a/documentation/content/nl/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/nl/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ Zie voor een meer gedetailleerde lijst van aanbevelingen aangaande ZFS-afstellin
Er is een opstartmechanisme dat FreeBSD in staat stelt om ZFS pools te mounten tijdens initialisatie van het systeem. Voer de volgende commando's uit om dit in te stellen:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# service zfs start
@@ -125,14 +125,14 @@ In het resterende deel van dit document wordt aangenomen dat er drie SCSI-schijv
Voer het commando `zpool` uit om een simpele, niet-redundante ZFS-pool op een enkele schijf aan te maken:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Bestudeer de uitvoer van het commando `df` om de nieuwe pool te zien:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ example 17547136 0 17547136 0% /example
In deze uitvoer wordt duidelijk dat de `example`-pool niet alleen is aangemaakt, maar ook direct _gemount_ is. Hij is ook toegankelijk, net als een gewoon bestandssysteem; er kunnen bestanden op worden aangemaakt en gebruikers kunnen er op rondkijken zoals in het volgende voorbeeld:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Helaas benut deze pool nog geen ZFS-mogelijkheden. Maak een bestandssysteem aan op deze pool en activeer er compressie op:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -168,14 +168,14 @@ Helaas benut deze pool nog geen ZFS-mogelijkheden. Maak een bestandssysteem aan
De compressie kan nu worden uitgeschakeld met:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Voer het volgende commando uit om het bestandssysteem te unmounten, en controleer dat daarna met `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -188,7 +188,7 @@ example 17547008 0 17547008 0% /example
Mount het bestandssysteem opnieuw om het weer toegankelijk te maken en controleer met `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -202,7 +202,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
De pool en het bestandssysteem zijn ook zichtbaar in de uitvoer van `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -215,7 +215,7 @@ example/compressed on /example/compressed (zfs, local)
Zoals is te zien kunnen ZFS-bestandssystemen, nadat ze zijn gecreëerd, net als gewone bestandssystemen worden gebruikt; er zijn echter ook vele andere mogelijkheden beschikbaar. In het volgende voorbeeld wordt er een nieuw bestandssysteem `data` gecreëerd. Er zullen belangrijke bestanden op worden bewaard, dus het bestandssysteem wordt zodanig ingesteld dat het twee kopieën van ieder gegevensblok opslaat:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -223,7 +223,7 @@ Zoals is te zien kunnen ZFS-bestandssystemen, nadat ze zijn gecreëerd, net als
Het is nu mogelijk om het gegevens- en ruimtegebruik te bekijken door `df` opnieuw te draaien:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -237,7 +237,7 @@ example/data 17547008 0 17547008 0% /example/data
Merk op dat ieder bestandssysteem in de pool dezelfde hoeveelheid vrije ruimte heeft. Dit is de reden dat `df` steeds wordt gebruikt tussen de voorbeelden door, om te laten zien dat de bestandssystemen slechts zoveel ruimte gebruiken als ze nodig hebben en allemaal putten uit dezelfde pool. Het ZFS bestandssysteem elimineert concepten als volumes en partities, en staat verschillende bestandssystemen toe om in dezelfde pool te bestaan. Verwijder nu de bestandssystemen en verwijder daarna de pool, omdat deze niet meer nodig zijn:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -250,7 +250,7 @@ Schijven gaan slechter werken en begeven het, een onvermijdelijke eigenschap. Wa
Zoals eerder opgemerkt wordt in deze sectie aangenomen dat er drie SCSI-schijven bestaan als de apparaten [.filename]#da0#, [.filename]#da1# en [.filename]#da2# (of [.filename]#ad0# en hoger als IDE-schijven worden gebruikt). Voer het volgende commando uit om een RAID-Z-pool te creëren:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -262,14 +262,14 @@ Sun(TM) raadt aan om tussen de drie en negen schijven te gebruiken voor een RAID
De `storage` zpool zou gecreëerd moeten zijn. Dit kan worden geverifieerd met de man:mount[8] en man:df[1] commando's zoals eerder. Er kunnen meer schijfapparaten worden toegewezen door ze aan het einde van de bovenstaande lijst toe te voegen. Maak een nieuw bestandssysteem in de pool, genaamd `home`, waar op den duur de gebruikersbestanden geplaatst zullen worden:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Het is nu mogelijk om compressie in te schakelen en extra kopieën te bewaren van de gebruikersmappen en -bestanden. Dit kan net als eerder worden bewerkstelligd door de volgende commando's uit te voeren:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -277,7 +277,7 @@ Het is nu mogelijk om compressie in te schakelen en extra kopieën te bewaren va
Kopieer, om dit als de nieuwe home-map voor gebruikers in te stellen, de gebruikersgegevens naar deze map en creëer de benodigde links:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -289,42 +289,42 @@ De gebruikersgegevens zouden nu op het nieuw aangemaakte [.filename]#/storage/ho
Probeer een snapshot te maken dat later weer hersteld kan worden:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
Merk op dat de snapshot-optie alleen een echt bestandssysteem vastlegt, geen mappen of bestanden. Het `@`-karakter wordt gebruikt als scheidingsteken tussen de naam van het bestandssysteem of de naam van het volume. Wanneer de home-map van een gebruiker wordt weggegooid, kan deze worden hersteld met:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Voer `ls` in de [.filename]#.zfs/snapshot# directory van het bestandssysteem uit om een lijst van alle beschikbare snapshots te krijgen. Voer, om bijvoorbeeld het zojuist gemaakte snapshot te zien, het volgende commando uit:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
Het is mogelijk om een script te schrijven dat maandelijks een snapshot van de gebruikersgegevens maakt; na verloop van tijd kunnen snapshots echter een grote hoeveelheid schrijfruimte in beslag nemen. Het vorige snapshot kan worden verwijderd met het volgende commando:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Na al dit testen is er geen reden om [.filename]#/storage/home# in zijn huidige staat nog te bewaren. Maak er het echte [.filename]#/home# bestandssysteem van:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Het uitvoeren van de commando's `df` en `mount` laat zien dat het systeem ons bestandssysteem nu als de echte [.filename]#/home# behandelt:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -343,7 +343,7 @@ storage/home 26320512 0 26320512 0% /home
Hiermee is de RAID-Z configuratie compleet. Voer het volgende commando uit om status-updates van de gecreëerde bestandssystemen te krijgen tijdens het draaien van de nachtelijke man:periodic[8]:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -352,21 +352,21 @@ Hiermee is de RAID-Z configuratie compleet. Voer het volgende commando uit om st
Iedere software-RAID heeft een methode om zijn `status` te inspecteren. ZFS is geen uitzondering. De status van RAID-Z-apparaten kan worden geïnspecteerd met het volgende commando:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Als alle pools in orde zijn en alles is normaal, dan wordt het volgende bericht weergegeven:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Als er een probleem is, misschien een schijf die offine is gegaan, dan wordt de status van de pool weergegeven en dat zal er als volgt uitzien:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -390,21 +390,21 @@ errors: No known data errors
Hier staat dat het apparaat offline is gezet door de beheerder. Dat is waar voor dit specifieke voorbeeld. Om de schijf offline te zetten werd het volgende commando gebruikt:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Het is nu mogelijk om de schijf [.filename]#da1# te vervangen nadat het systeem uitgeschakeld is. Zodra het systeem weer opgestart is, kan het volgende commando worden uitgevoerd om de schijf te vervangen:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
Nu kan de status opnieuw geïnspecteerd worden, dit keer zonder de `-x` vlag, om de statusinformatie op te vragen:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -428,21 +428,21 @@ Zoals te zien in dit voorbeeld lijkt alles normaal te zijn.
Zoals eerder opgemerkt gebruikt ZFS `checksums` om de integriteit van opgeslagen gegevens te verifiëren. Ze worden automatisch ingeschakeld bij het creëeren van bestandssystemen en kunnen worden uitgeschakeld door middel van het volgende commando:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off storage/home
....
Dit is echter geen verstandig idee, omdat checksums zeer weinig opslagruimte innemen en nuttiger zijn wanneer ze zijn ingeschakeld. Het lijkt daarnaast ook geen merkbare invloed op de prestaties te hebben wanneer ze zijn ingeschakeld. Wanneer ze aanstaan is het mogelijk om ZFS gegevensintegriteit te laten controleren door middel van checksum-verificatie. Dit proces staat bekend als "scrubbing". Voer het volgende commando uit om de gegevensintegriteit van de `storage`-pool te controleren:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
Dit proces kan, afhankelijk van de hoeveelheid opgeslagen gegevens, een aanzienlijke hoeveelheid tijd in beslag nemen. Het is daarnaast ook zeer I/O-intensief, zozeer dat slechts één van deze operaties tegelijkertijd uitgevoerd kan worden. Nadat de scrub is voltooid wordt de status bijgewerkt en kan deze worden bekeken door een statusaanvraag te doen:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -479,7 +479,7 @@ De refquota, `refquota=grootte`, beperkt de hoeveelheid ruimte die een gegevensv
Gebruik het volgende om een algemeen quotum van 10 GB voor [.filename]#/home/storage/bob# af te dwingen:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
@@ -493,14 +493,14 @@ Gebruikersquota beperken de hoeveelheid ruimte die door de aangegeven gebruiker
Gebruik het volgende om bijvoorbeeld een quotum van 50 GB voor een gebruiker _jan_ af te dwingen:
-[source,bash]
+[source,shell]
....
# zfs set userquota@jan=50G
....
Gebruik in plaats hiervan, om het quotum te verwijderen of er zeker van te zijn dat er geen is ingesteld:
-[source,bash]
+[source,shell]
....
# zfs set userquota@jan=none
....
@@ -511,14 +511,14 @@ Groepsquota beperken de hoeveelheid ruimte die de gespecificeerde gebruikersgroe
Gebruik om het quotum voor de groep _eerstegroep_ op 50 GB in te stellen:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@eerstegroep=50G
....
Gebruik in plaats hiervan, om het quotum voor de groep _eerstegroep_ te verwijderen of om er voor te zorgen dat deze niet is ingesteld:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@eerstegroep=none
....
@@ -529,7 +529,7 @@ Het deelcommando `zfs userspace` geeft de hoeveelheid ruimte weer die door elke
Gebruik het volgende om de quota voor [.filename]#storage/home/bob# weer te geven, als u de juiste privileges heeft of `root` bent:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -544,14 +544,14 @@ Reserveringen kunnen in allerlei situaties nuttig zijn, bijvoorbeeld voor het pl
Het algemene formaat van de eigenschap `reservation` is `reservation=grootte`, dus gebruik het onderstaande commando om een reservering van 10 GB op [.filename]#storage/home/bob# te plaatsen:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
Gebruik, om te controleren of er geen reservatie is geplaatst of om een reservatie te verwijderen:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -560,7 +560,7 @@ Het zelfde principe kan worden toegepast op de eigenschap `refreservation` om ee
Gebruik één van de volgende commando's om te kijken of er een reservatie of refreservation bestaat op [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -579,14 +579,14 @@ Het stuurprogramma man:ext2fs[5] stelt de FreeBSD-kernel in staat om ext2 bestan
Laad ten eerste de kernelmodule:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Koppel daarna een man:ext2fs[5]-volume aan dat zich op [.filename]#/dev/ad1s1# bevindt:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
@@ -597,7 +597,7 @@ Het X-bestandssysteem, XFS, is origineel geschreven door SGI voor het besturings
Om XFS als een kernelmodule te laden:
-[source,bash]
+[source,shell]
....
# kldload xfs
....
@@ -606,7 +606,7 @@ Het stuurprogramma man:xfs[5] stelt de FreeBSD-kernel in staat om XFS-bestandssy
Om een man:xfs[5]-volume wat op [.filename]#/dev/ad1s1# aan te koppelen:
-[source,bash]
+[source,shell]
....
# mount -t xfs /dev/ad1s1 /mnt
....
@@ -623,14 +623,14 @@ Het stuurprogramma voor ReiserFS stelt de FreeBSD-kernel momenteel in staat om R
Laad ten eerste eerst de kernelmodule:
-[source,bash]
+[source,shell]
....
# kldload reiserfs
....
Om ten tweede een ReiserFS-volume dat zich op [.filename]#/dev/ad1s1# aan te koppelen:
-[source,bash]
+[source,shell]
....
# mount -t reiserfs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/nl/books/handbook/firewalls/_index.adoc b/documentation/content/nl/books/handbook/firewalls/_index.adoc
index f0a647d2f1..253c7453c3 100644
--- a/documentation/content/nl/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/nl/books/handbook/firewalls/_index.adoc
@@ -113,7 +113,7 @@ pf_enable="YES"
Draai vervolgens het opstartscript om de module te laden:
-[source,bash]
+[source,shell]
....
# service pf start
....
@@ -129,7 +129,7 @@ Het voorbeeld [.filename]#pf.conf# bestand kan gevonden worden in [.filename]#/u
De module PF kan ook handmatig vanaf de opdrachtregel geladen worden:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -143,7 +143,7 @@ pflog_enable="YES"
Draai vervolgens het opstartscript om de module te laden:
-[source,bash]
+[source,shell]
....
# service pflog start
....
@@ -336,7 +336,7 @@ ipnat_rules="/etc/ipnat.rules" # bestand met regels voor ipnat
Het commando man:ipf[8] wordt gebruikt om het bestand met firewallregels te laden. Gewoonlijk wordt er een bestand aangemaakt waarin de situatieafhankelijke regels staan waarmee in één keer de bestaande regels kunnen worden vervangen:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -361,7 +361,7 @@ In man:ipfstat[8] worden alle details behandeld.
Standaard ziet man:ipfstat[8] uitvoer er ongeveer als volgt uit:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -390,7 +390,7 @@ Als er als optie `-i` voor inkomend of `-o` voor uitgaand wordt meegegeven, dan
De uitvoer ziet er ongeveer als volgt uit:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -403,7 +403,7 @@ De uitvoer ziet er ongeveer als volgt uit:
De uitvoer ziet er ongeveer als volgt uit:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -436,7 +436,7 @@ Het is heel normaal om als laatste regel een `deny` regel aan de set met regels
Syslogd heeft een eigen methode om logboekgegevens te scheiden. Het maakt gebruik van speciale groepen die "facility" en "level" heten. man:ipmon[8] in `-Ds` mode gebruikt `local0` als "facility"naam. Alle door man:ipmon[8] gelogde gegevens gaan standaard naar de naam `security`. De nu volgende levels kunnen gebruikt worden om de gelogde gegevens nog verder uit elkaar te trekken als dat gewenst is.
-[source,bash]
+[source,shell]
....
LOG_INFO – pakketten gelogd met het sleutelwoord "log" als actie in plaats van pass of block.
LOG_NOTICE – gelogde pakketten die ook zijn doorgelaten
@@ -446,7 +446,7 @@ LOG_ERR – gelogde pakketten die een verkeerde opbouw hebben, "short"
Om IPFILTER alle gelogde gegevens naar [.filename]#/var/log/ipfilter.log# te laten schrijven, dient dat bestand vooraf te bestaan. Dat kan met het volgende commando:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -538,7 +538,7 @@ EOF
Dat is alles. De regels zijn niet van belang in dit voorbeeld, maar tonen hoe substitutievelden worden gedefinieerd en hoe ze worden gebruikt. Als het bovenstaande voorbeeld de inhoud van [.filename]#/etc/ipf.rules.script# was, dan konden deze regels herladen worden door het vanaf de commandoregel aan te roepen:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -562,7 +562,7 @@ sh /etc/ipf.rules.script
De permissies op dit script moeten zijn: lezen,schrijven en uitvoeren voor de gebruiker `root`.
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -949,28 +949,28 @@ NAT regels worden geladen met `ipnat`. De NAT regels worden vaak opgeslagen in [
Bij het maken van wijzigingen aan de NAT-regels nadat NAT gestart is, wordt aangeraden de wijziging aan het bestand met regels te maken en daarna `ipnat -CF` te gebruiken om alle actieve NAT-regels te wissen. Daarna kunnen de regels uit het bestand weer als volgt geladen worden:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
Gebruiksgegevens over NAT kunnen getoond worden met:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
De huidige inhoud van de NAT tabellen kan getoond worden met:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
Met het volgende commando kan de uitgebreide rapportage worden ingeschakeld en dan wordt informatie over het verwerken van verkeer en de actieve regels getoond:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1166,7 +1166,7 @@ IPFW zit bij de basisinstallatie van FreeBSD als een losse tijdens runtime laadb
Na het rebooten van een systeem met `firewall_enable="YES"` in [.filename]#rc.conf# is het volgende bericht op het scherm te zien tijdens het booten:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -1305,49 +1305,49 @@ Met `ipfw` kunnen de actieve regels van de firewall op het scherm getoond worden
Om alle regels in volgorde te tonen:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Om alle regels te tonen met de tijd waarop deze voor het laatst van toepassing was:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
Het volgende commando kan gebruikt worden om de verantwoordingsinformatie, pakkettellers en de regel zelf te tonen. De eerste kolom is het regelnummer met daarachter het aantal keren dat de regel van toepassing was voor inkomend verkeer, gevolgd door het aantal keren dat de regel van toepassing was voor uitgaand verkeer. Als laatste wordt de regel zelf getoond:
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Ook kunnen onder de statische regels de dynamische regels getoond worden:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
En de dynamische regels die verlopen zijn:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
De tellers op nul gesteld worden:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Alleen de tellers voor regel met nummer _NUM_ op nul stellen:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1511,7 +1511,7 @@ Dat is alles. De feitelijke functie van de regels is in dit voorbeeld van onderg
Als het bovenstaande voorbeeld de inhoud van [.filename]#/etc/ipfw.rules# was, dan kon het herladen worden met het volgende commando:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1520,7 +1520,7 @@ Als het bovenstaande voorbeeld de inhoud van [.filename]#/etc/ipfw.rules# was, d
Wat in het bovenstaande voorbeeld met een bestand is gerealiseerd, kan ook met de hand:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add 00500 check-state
diff --git a/documentation/content/nl/books/handbook/geom/_index.adoc b/documentation/content/nl/books/handbook/geom/_index.adoc
index f16e54ff8a..f10c3d2f4c 100644
--- a/documentation/content/nl/books/handbook/geom/_index.adoc
+++ b/documentation/content/nl/books/handbook/geom/_index.adoc
@@ -84,21 +84,21 @@ image::striping.png[Illustratie aaneengeschakelde schijven]
. Laad de module [.filename]#geom_stripe.ko#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. Zorg ervoor dat er een koppelpunt beschikbaar is. Als dit volume een rootpartitie wordt, gebruikt dan tijdelijk een ander koppelpunt zoals [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Stel de apparaatnamen voor de schijven vast die aaneen worden geschakeld en maak het nieuwe apparaat aan. Om twee ongebruikte, ongepartitioneerde ATA schijven aaneen te schakelen ([.filename]#/dev/ad2# en [.filename]#/dev/ad3#):
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -108,14 +108,14 @@ Done.
+
. Schrijf een standaard label naar de nieuwe partitie, ook wel bekend als een partitietabel en installeer de standaard opstart code:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Dit proces hoort twee nieuwe apparaten gemaakt te hebben in de map [.filename]#/dev/stripe# naast het apparaat [.filename]#st0#, te weten [.filename]#st0a# en [.filename]#st0c#. Vanaf nu kan er een bestandssysteem op [.filename]#st0a# worden gezet met behulp van de `newfs` applicatie:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -125,14 +125,14 @@ Na het uitvoeren van het bovenstaande commando rollen er veel getallen over het
Om de nieuwe aaneengeschakelde schijf handmatig te koppelen moet het volgende gedaan worden:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Om dit aaneengeschakelde bestandssysteem automatisch aan te koppelen bij het opstarten wordt de volume-informatie in [.filename]#/etc/fstab# gezet. Voor dit doel wordt een permanent koppelpunt, genaamd [.filename]#stripe#, aangemaakt:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /mnt ufs rw 2 2" \
@@ -141,7 +141,7 @@ Om dit aaneengeschakelde bestandssysteem automatisch aan te koppelen bij het ops
Laadt de module [.filename]#geom_stripe.ko# ook automatisch bij het initialiseren van een systeem door de volgende regel toe te voegen aan [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -168,21 +168,21 @@ Veel schijfsystemen slaan meta-gegevens op aan het einde van elke schijf. Oude m
GPT-meta-gegevens kunnen gewist worden met man:gpart[8]. Dit voorbeeld wist zowel de primaire als de back-up GPT-partitietabellen van schijf [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
man:gmirror[8] kan in één stap een schijf uit een actieve spiegel halen en de meta-gegevens wissen. Hier wordt de voorbeeldschijf [.filename]#ada8# uit de actieve spiegel [.filename]#gm4# gehaald:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
Gebruik, als de spiegel niet draait maar er nog oude meta-gegevens van de spiegel op de schijf staan, `gmirror clear` om deze te verwijderen:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -195,14 +195,14 @@ In dit voorbeeld is FreeBSD reeds op een enkele schijf [.filename]#ada0# geïnst
man:gmirror[8] heeft een kernelmodule [.filename]#geom_mirror.ko# nodig, ingebouwd in de kernel of geladen tijdens het opstarten of draaien. Laadt nu handmatig de kernelmodule:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Maak de spiegel aan met de twee nieuwe schijven:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -213,7 +213,7 @@ Nu kunnen er met man:gpart[8] MBR- en bsdlabel-partitietabellen op de spiegel wo
Partities op de spiegel hoeven niet dezelfde grootte te hebben als die op de bestaande schijf, maar moeten groot genoeg zijn om alle gegevens die reeds op [.filename]#ada0# staan te kunnen bevatten.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -224,7 +224,7 @@ Partities op de spiegel hoeven niet dezelfde grootte te hebben als die op de bes
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -245,7 +245,7 @@ Partities op de spiegel hoeven niet dezelfde grootte te hebben als die op de bes
Maak de spiegel opstartbaar door opstartcode in het MBR en bsdlabel te installeren en de actieve slice in te stellen:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -254,7 +254,7 @@ Maak de spiegel opstartbaar door opstartcode in het MBR en bsdlabel te installer
Formatteer de bestandssystemen op de nieuwe spiegel en zet daarbij soft-updates aan.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -264,7 +264,7 @@ Formatteer de bestandssystemen op de nieuwe spiegel en zet daarbij soft-updates
Bestandssystemen van de originele schijf ([.filename]#ada0#) kunnen nu met man:dump[8] en man:restore[8] naar de spiegel gekopieerd worden:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -307,14 +307,14 @@ In dit voorbeeld is FreeBSD reeds geïnstalleerd op een enkele schijf, [.filenam
Laadt de kernelmodule man:gmirror[8]:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Controleer de mediagrootte van de originele schijf met man:diskinfo[8]:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -324,7 +324,7 @@ Controleer de mediagrootte van de originele schijf met man:diskinfo[8]:
Maak een spiegel aan op de nieuwe schijf. Om er zeker van te zijn dat de capaciteit van de spiegel niet groter is dan die van de originele schijf, wordt man:gnop[8] gebruikt om een nepschijf van precies dezelfde grootte aan te maken. Deze schijf slaat geen gegevens op, maar wordt alleen gebruikt om de grootte van de spiegel te begrenzen. Wanneer man:gmirror[8] de spiegel aanmaakt, zal het de capaciteit beperken tot de grootte van [.filename]#gzero.nop# zelfs als de nieuwe schijf ([.filename]#ada1#) meer ruimte heeft. Merk op dat de _1000204821504_ op de tweede regel gelijk moet zijn aan de mediagrootte van [.filename]#ada0# zoals hierboven door man:diskinfo[8] is getoond.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -340,7 +340,7 @@ Deze uitvoer komt van een schijf van 1 TB. Als er wat niet-toegewezen ruimte aan
Als de uitvoer echter toont dat alle ruimte op de schijf is toegewezen zoals in de volgende lijst, is er geen ruimte over voor de 512 bytes aan meta-gegevens van man:gmirror[8] aan het einde van de schijf.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -351,7 +351,7 @@ In dit geval moet de partitietabel worden bewerkt om de capaciteit op [.filename
In beide gevallen dienen de partitietabellen op de primaire schijf eerst gekopieerd te worden. Dit kan gedaan worden met de subcommando's `backup` en `restore` van man:gpart[8].
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -359,14 +359,14 @@ In beide gevallen dienen de partitietabellen op de primaire schijf eerst gekopie
Deze subcommando's maken twee bestanden aan, [.filename]#table.ada0# en [.filename]#table.ada0s1#. Dit voorbeeld komt van een schijf van 1 TB af:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -380,14 +380,14 @@ BSD 8
Als de gehele schijf was gebruikt in de uitvoer van man:gpart[8] `show`, dan moet de capaciteit in deze partitietabellen met één sector verminderd worden. Bewerk de twee bestanden zodat de grootte van zowel de slice als de laatste partitie met één verminderd wordt. Dit zijn de laatste getallen in elke lijst.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -403,7 +403,7 @@ Als er tenminste één sector aan het einde van de schijf niet was toegewezen, k
Herstel nu de partitietabel naar [.filename]#mirror/gm0#.
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -411,7 +411,7 @@ Herstel nu de partitietabel naar [.filename]#mirror/gm0#.
Controleer de partitietabel met man:gpart[8] `show`. Dit voorbeeld heeft [.filename]#gm0s1a# voor [.filename]#/#, [.filename]#gm0s1d# voor [.filename]#/var#, [.filename]#gm0s1e# voor [.filename]#/usr#, [.filename]#gm0s1f# voor [.filename]#/data1# en [.filename]#gm0s1g# voor [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -433,7 +433,7 @@ Zowel de slice als de laatste partitie dienen wat vrije ruimte aan het einde van
Maak bestandssystemen aan op deze nieuwe partities. Het aantal partities zal variëren, overeenkomend met de partities op de originele schijf, [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -444,7 +444,7 @@ Maak bestandssystemen aan op deze nieuwe partities. Het aantal partities zal var
Maak de spiegel opstartbaar door opstartcode in het MBR en bsdlabel te installeren en de actieve slice in te stellen:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -453,7 +453,7 @@ Maak de spiegel opstartbaar door opstartcode in het MBR en bsdlabel te installer
Pas [.filename]#/etc/fstab# aan zodat het de nieuwe partities op de spiegel gebruikt. Maak eerst een kopie van dit bestand als [.filename]#/etc/fstab.orig#.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -480,7 +480,7 @@ geom_mirror_load="YES"
Bestandssystemen van de originele schijf kunnen nu met man:dump[8] en man:restore[8] naar de spiegel gekopieerd worden. Merk op dat het maken van een snapshot voor elk bestandssysteem dat met `dump -L` gedumpt is even kan duren.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -505,7 +505,7 @@ Nadat er succesvol van [.filename]#mirror/gm0# is opgestart, is de laatste stap
Als [.filename]#ada0# in de spiegel wordt geplaatst, zal de vorige inhoud worden overschreven door gegevens in de spiegel. Ben er zeker van dat [.filename]#mirror/gm0# dezelfde gegevens bevat als [.filename]#ada0# voordat [.filename]#ada0# aan de spiegel wordt toegevoegd. Als er iets mis is met de gegevens die door man:dump[8] en man:restore[8] gekopieerd zijn, draai dan [.filename]#/etc/fstab# terug om de bestandssystemen op [.filename]#ada0# aan te koppelen, start opnieuw op, en probeer de hele procedure nogmaals.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -513,7 +513,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
De synchronisatie tussen de twee schijven zal onmiddellijk beginnen. man:gmirror[8] `status` toont de voortgang.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -523,7 +523,7 @@ mirror/gm0 DEGRADED ada1 (ACTIVE)
Na een tijd zal de synchronisatie voltooid zijn.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -547,7 +547,7 @@ Mogelijk is het nodig om de BIOS-instellingen te wijzigen om van één van de ni
Als het opstarten met dit bericht stopt, is er iets mis met het spiegelapparaat:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -574,7 +574,7 @@ mountroot>
Het vergeten om de module [.filename]#geom_mirror# in [.filename]#/boot/loader.conf# te laden kan dit probleem veroorzaken. Start op vanaf een FreeBSD-9 of nieuwere CD of USB-stick en kies `Shell` op de eerste prompt om dit op te lossen. Laadt daarna de spiegelmodule en en koppel het spiegelapparaat aan:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -591,7 +591,7 @@ Sla het bestand op en start opnieuw op.
Andere problemen die `error 19` veroorzaken zijn lastiger om op te lossen. Typ `ufs:/dev/ada0s1a` in op de prompt. Hoewel het systeem van [.filename]#ada0# zou moeten opstarten, verschijnt er een andere prompt om een shell uit te kiezen omdat [.filename]#/etc/fstab# onjuist is. Druk op de prompt op de Enter-toets. Draai de wijzigingen tot nu toe terug door [.filename]#/etc/fstab# terug te draaien, waardoor de bestandssystemen vanaf de originele schijf ( [.filename]#ada0#) in plaats vanaf de spiegel worden aangekoppeld. Start het systeem opnieuw op en probeer de procedure nogmaals.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -608,14 +608,14 @@ Om de kapotte schijf te vervangen wordt de computer uitgezet en de kapotte schij
Nadat de computer opnieuw is aangezet, zal de spiegel in een "degraded" toestand met slechts één schijf draaien. De spiegel wordt verteld om schijven die momenteel niet verbonden zijn te vergeten:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Alle oude meta-gegevens zouden <<GEOM-mirror-metadata,van de vervangende schijf gewist>> moeten zijn. Daarna wordt de schijf, in dit voorbeeld [.filename]#ada4#, in de spiegel geplaatst:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -645,28 +645,28 @@ Hoewel het theoretisch mogelijk is om op FreeBSD van een RAID3-rij op te starten
. Laad ten eerste de kernelmodule [.filename]#geom_raid3.ko# door de volgende opdracht uit te voeren:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
Het is ook mogelijk om handmatig de module [.filename]#geom_raid3.ko# te laden:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3.ko
....
+
. Zorg ervoor dat er een geschikt aankoppelpunt bestaat of maak het aan:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia/
....
+
. Bepaal de apparaatnamen voor de schijven die aan de rij worden toegevoegd en maak het nieuwe RAID3-apparaat aan. Het laatst vermelde apparaat zal dienst doen als de toegewijde schijf voor de pariteit. Dit voorbeeld gebruikt drie ongepartitioneerde ATA-schijven: [.filename]#ada1# en [.filename]#ada2# voor gegevens en [.filename]#ada3# voor pariteit.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -677,7 +677,7 @@ Done.
+
. Partitioneer het nieuw aangemaakte apparaat [.filename]#gr0# en zet er een UFS-bestandssysteem op:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -687,7 +687,7 @@ Done.
Vele getallen zullen over het scherm lopen, en na wat tijd zal het proces voltooid zijn. Het volume is aangemaakt en is klaar om aangekoppeld te worden.
. De laatste stap is het aankoppelen van het bestandssysteem:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -731,14 +731,14 @@ Dit staat alle machines in het privé netwerk toe om het bestandssysteem op [.fi
Om dit apparaat te kunnen exporteren is het van belang dat de schijf nog niet gekoppeld is en moet de man:ggated[8] dienst gestart worden.
-[source,bash]
+[source,shell]
....
# ggated
....
Om vervolgens het apparaat aan een client machine te koppelen moet het volgende gedaan worden:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -776,7 +776,7 @@ Een tijdelijk label verdwijnt na een herstart van het systeem. Deze labels worde
Om een permanent label te schrijven voor een UFS2-bestandssysteem zonder de huidige data te vernietigen:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -801,7 +801,7 @@ Het bestandssysteem mag niet aangekoppeld zijn op het moment dat `tunefs` gebrui
Nu kan het bestandssysteem net als normaal worden gekoppeld:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -812,7 +812,7 @@ Bestandssystemen kunnen ook een standaard label mee krijgen door gebruik te make
Het volgende commando kan worden gebruikt om een label te verwijderen:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -826,7 +826,7 @@ Door de partities op de opstartschijf permanent te labelen zou het systeem in st
Start het systeem opnieuw op, en druk bij de man:loader[8]-prompt op 4 om in enkele gebruikersmodus op te starten. Geef dan de volgende commando's:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -855,7 +855,7 @@ Het systeem zal doorgaan met opstarten in meergebruikersmodus. Bewerk, nadat het
Het systeem kan nu worden herstart. Als alles goed ging, zal het normaal opstarten en zal `mount` dit laten zien:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -869,7 +869,7 @@ devfs on /dev (devfs, local)
Beginnend met FreeBSD 7.2 ondersteunt de klasse man:glabel[8] een nieuw labeltype voor UFS-bestandssystemen, gebaseerd op het unieke id van het bestandssysteem, `ufsid`. Deze labels kunnen in de map [.filename]#/dev/ufsid# gevonden worden en worden automatisch tijdens het opstarten aangemaakt. Het is mogelijk om de `ufsid`-labels te gebruiken om partities aan te koppelen door middel van de faciliteit [.filename]#/etc/fstab#. Gebruik `glabel status` om een lijst van bestandssystemen en hun overeenkomende `ufsid`-labels te ontvangen:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -921,7 +921,7 @@ options GEOM_JOURNAL
Het creëren van een logboek op een vrij en beschikbaar bestandssysteem kan nu gedaan worden met behulp van de volgende stappen, ervan uitgaande dat [.filename]#da4# de nieuwe beschikbare SCSI schijf is:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -929,7 +929,7 @@ Het creëren van een logboek op een vrij en beschikbaar bestandssysteem kan nu g
Op dit moment zou er een [.filename]#ad4# apparaatknooppunt en een [.filename]#ad4.journal# apparaatknooppunt moeten zijn. Nu kan er een bestandssysteem op gezet worden:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -938,7 +938,7 @@ Het hiervoor ingevoerde commando zal een UFS2 bestandssysteem met logboek onders
Koppel het apparaat op een gewenst koppelpunt met:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/nl/books/handbook/install/_index.adoc b/documentation/content/nl/books/handbook/install/_index.adoc
index 61b0ca3caa..56435744c2 100644
--- a/documentation/content/nl/books/handbook/install/_index.adoc
+++ b/documentation/content/nl/books/handbook/install/_index.adoc
@@ -317,7 +317,7 @@ Het onderstaande voorbeeld vermeldt [.filename]#/dev/da0# als het doelapparaat v
+
Het [.filename]#.img#-bestand is _geen_ gewoon bestand dat u naar de geheugenstick kopieert. Het is een afbeelding van de complete inhoud van de stick. Dit betekent dat u de bestanden _niet_ op de gewone manier van de ene schijf naar de andere kan kopieëren. U dient in plaats hiervan man:dd[1] gebruiken om de afbeelding direct naar de schijf te schrijven:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-11.2-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -381,7 +381,7 @@ Als de diskettes aanmaakt worden op een computer met MS-DOS(R) / Windows(R), dan
+
Als de floppies van de CD-ROM worden gebruikt en het CD-ROM station is [.filename]#E:#, dan kan dit als volgt:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
....
@@ -390,7 +390,7 @@ Herhaal dit commando voor elk [.filename]#.flp#-bestand, waarbij steeds een nieu
+
Als de diskettes worden aanmaakt op een UNIX(R) systeem (zoals een ander FreeBSD systeem) dan kan man:dd[1] gebruikt worden om de imagebestanden naar diskette te kopiëren. Onder FreeBSD:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -450,7 +450,7 @@ Als de computer opstart zoals altijd en met het huidige besturingssysteem begint
. FreeBSD start nu op. Bij opstarten vanaf CD-ROM is iets als het volgende op het scherm te zien (versie-informatie weggelaten):
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
645MB medium detected
@@ -477,7 +477,7 @@ Loading /boot/defaults/loader.conf
+
Bij opstarten vanaf diskette is iets als het volgende op het scherm te zien (versie-informatie weggelaten):
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -512,7 +512,7 @@ De meeste sparc64-systemen zijn ingesteld om automatisch vanaf schijf op te star
Start het systeem opnieuw op, en wacht totdat te opstartboodschappen verschijnen om dit te doen. Het hangt af van het model, maar het zou er ongeveer zo uit moeten zien:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -522,7 +522,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Als uw systeem vanaf hier verder gaat met opstarten vanaf schijf, dient u kbd:[L1+A] of kbd:[Stop+A] op het toetsenbord in te drukken, of een `BREAK` over de seriële console te versturen (door bijvoorbeeld `~#` in man:tip[1] of man:cu[1] te gebruiken) om bij de PROM-prompt te komen. Het ziet er als volgt uit:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -545,7 +545,7 @@ Dit kan nu gedaan worden om de tekst te bekijken die over het scherm rolde terwi
[[install-dev-probe]]
.Voorbeeld resultaten hardware-onderzoek
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -757,7 +757,7 @@ Wijzigingen die op dit punt gemaakt worden, worden niet weggeschreven naar de sc
Na de keuze een standaardinstallatie te beginnen toont sysinstall het volgende bericht:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -922,7 +922,7 @@ Als FreeBSD wordt geïnstalleerd op meer dan één schijf dan moeten ook partiti
Na het kiezen van de partitieopmaak kunnen ze worden aangemaakt met sysinstall. Dan verschijnt het volgende bericht:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -1024,7 +1024,7 @@ Na het kiezen van de gewenste distributie komt de vraag of de FreeBSD Portscolle
Het installatieprogramma controleert niet of er genoeg schijfruimte is. Deze optie dient alleen gekozen te worden als er voldoende schijfruimte is. In FreeBSD {rel120-current} neemt de Portscollectie ongeveer {ports-size} schijfruimte in. Het is verstandig om aan te nemen dat in recentere versies van FreeBSD meer ruimte nodig is.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1091,7 +1091,7 @@ Omdat [.filename]#/pub/FreeBSD# van `ftp.FreeBSD.org` via de proxy van `foo.exam
Nu kan de installatie verder gaan. Dit is ook de laatste mogelijkheid om de installatie te beëindigen ter voorkoming van wijzigingen op de harde schijf.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1110,7 +1110,7 @@ De duur van de installatie hangt af van de gekozen distributie, het installatiem
De installatie is klaar als het volgende bericht wordt getoond:
-[source,bash]
+[source,shell]
....
Message
@@ -1131,7 +1131,7 @@ Druk op kbd:[Enter] om verder te gaan met instellingen na de installatie.
Kiezen voor btn:[no] en bevestigen met kbd:[Enter] beëindigt de installatie en er worden geen wijzigingen aan het systeem gemaakt. Het volgende bericht verschijnt:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1156,7 +1156,7 @@ Als al eerder PPP is ingesteld voor een FTP-installatie verschijnt het volgende
Gedetailleerde informatie over lokale netwerken (LAN's) en het instellen van FreeBSD als een gateway of router staat in het hoofdstuk crossref:advanced-networking[advanced-networking,Netwerken voor Gevorderden].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1172,7 +1172,7 @@ image::ed0-conf.png[]
Kies de in te stellen interface met de pijltjestoetsen en druk op kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1184,7 +1184,7 @@ In dit gesloten lokale netwerk was het huidige type Internet protocol (IPv4) toe
Als er verbinding is met een bestaand IPv6 netwerk met een RA server, kies dan btn:[yes] en druk op kbd:[Enter]. Zoeken naar RA servers duurt een paar seconden.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1227,7 +1227,7 @@ Elke interface-specifieke optie voor `ifconfig` die toegevoegd moet worden. In d
Gebruik kbd:[Tab] om btn:[OK] te selecteren als de instellingen gereed zijn en druk op kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to Bring the ed0 interface up right now?
@@ -1240,7 +1240,7 @@ Het kiezen van btn:[yes] en het drukken op kbd:[Enter] maakt een machine onderde
[[gateway]]
=== Als gateway instellen
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1253,7 +1253,7 @@ Als de machine gateway voor een lokaal netwerk is en pakketjes doorstuurt naar a
[[inetd-services]]
=== Internetdiensten instellen
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1267,7 +1267,7 @@ Deze diensten kunnen na de installatie worden aangezet door [.filename]#/etc/ine
Selecteer btn:[yes] om deze diensten in te stellen tijdens de installatie. Er wordt een extra bevestiging getoond:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1282,7 +1282,7 @@ With this in mind, do you wish to enable inetd?
Selecteer btn:[yes] om verder te gaan.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1309,7 +1309,7 @@ Druk na het toevoegen van de gewenste diensten, op kbd:[Esc] om het menu te krij
[[ssh-login]]
=== SSH-login aanzetten
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1321,7 +1321,7 @@ Het kiezen van btn:[yes] zal man:sshd[8] aanzetten, het daemon-programma voor Op
[[ftpanon]]
=== Anonieme FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1341,7 +1341,7 @@ Als anonieme FTP wordt toegestaan kan iedereen de machine met FTP benaderen. De
Selecteer met de pijltjestoetsen btn:[yes] om anonieme FTP toe te staan en druk op kbd:[Enter]. Een aanvullende bevestiging zal verschijnen:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1389,7 +1389,7 @@ De startmap voor FTP wordt standaard ingesteld op [.filename]#/var#. Als daar ni
Druk op kbd:[Enter] om verder te gaan als de instellingen gemaakt zijn.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1415,7 +1415,7 @@ Network File System (NFS) maakt het mogelijk bestanden te delen over een netwerk
[[nsf-server-options]]
==== NFS Server
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1427,7 +1427,7 @@ Kies btn:[no] als er geen noodzaak is voor een Network File System server en dru
Na het kiezen van btn:[yes] wordt een bericht getoond dat aangeeft dat er een betand [.filename]#exports# moet worden gemaakt.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1452,7 +1452,7 @@ Druk op kbd:[Esc] en een pop-up menu verschijnt met als standaardoptie [.guimenu
De NFS client maakt het mogelijk om NFS servers te benaderen.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1467,7 +1467,7 @@ Kies met de pijltjestoetsen de optie btn:[yes] of btn:[no] en druk op kbd:[Enter
Er is een aantal opties beschikbaar om de systeemconsole in aan te passen.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1510,7 +1510,7 @@ Het instellen van de tijdzone van een machine maakt het mogelijk om automatisch
Het voorbeeld toont een machine die staat in de oostelijke tijdzone van de Verenigde Staten. De keuze voor een specifiek systeem hangt af van de geografische locatie.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1520,7 +1520,7 @@ Het voorbeeld toont een machine die staat in de oostelijke tijdzone van de Veren
Selecteer btn:[yes] en druk op kbd:[Enter] om de tijdzone in te stellen.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1549,7 +1549,7 @@ image::timezone3.png[]
Kies met de pijltjestoetsen de juiste tijdzone en druk op kbd:[Enter].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1567,7 +1567,7 @@ Bevestig dat de afkorting van de tijdzone juist is. Als die er goed uit ziet, dr
Dit gedeelte is alleen van toepassing op installaties van FreeBSD 7._X_, als u FreeBSD 8._X_ installeert wordt dit scherm niet getoond.
====
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1584,7 +1584,7 @@ Als via FTP wordt geïnstalleerd, dan moet de machine verbonden zijn met Interne
Deze optie geeft de mogelijkheid om tekst te kopiëren en te plakken in de console en programma's met een 3-knops muis. Als een 2-knops muis wordt gebruikt, ga dan naar de hulppagina man:moused[8] na de installatie voor de details over het emuleren van een 3-knops muis. Dit voorbeeld toont een niet-USB muisinstelling (zoals een PS/2 of seriële poort muis):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1639,7 +1639,7 @@ Pakketten zijn voorgebouwde binaire bestanden en zijn een gemakkelijke manier om
De installatie van één pakket wordt als voorbeeld getoond. Er kunnen nog meer pakketten geïnstalleerd worden als dat wenselijk is. Na de installatie kan `sysinstall` gebruikt worden om extra pakketten te installeren.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1692,7 +1692,7 @@ Na het installeren van pakketten gaat het maken van de laatste instellingen verd
Er moet minstens één gebruiker toegevoegd worden tijdens de installatie, zodat het systeem gebruikt kan worden zonder als `root` aan te hoeven melden. De rootpartitie is in het algemeen klein en het draaien van programma's als `root` kan de schijfruimte snel vullen. Een groter gevaar wordt hieronder aangegeven:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1758,7 +1758,7 @@ Kies na het toevoegen van gebruikers [.guimenuitem]#Exit# met de pijltjestoetsen
[[rootpass]]
=== `root` wachtwoord instellen
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1773,7 +1773,7 @@ Druk op kbd:[Enter] om het `root` wachtwoord in te stellen.
Het wachtwoord moet twee keer gelijk ingegeven worden. Het is vast overbodig om op te merken dat het belangrijk is zorg te dragen voor een manier om het wachtwoord terug te vinden in het geval het wordt vergeten. Tijdens de ingave van het wachtwoord wordt dit niet weergegeven en er worden ook geen sterretjes getoond.
-[source,bash]
+[source,shell]
....
Changing local password for root.
New password:
@@ -1787,7 +1787,7 @@ De installatie gaat verder als het wachtwoord succesvol is ingevoerd.
Als het nodig is om extra netwerkapparaten toe te voegen of andere instellingen te maken, dan kan dat nu of later met `sysinstall`.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1804,7 +1804,7 @@ image::mainexit.png[]
Selecteer btn:[X Exit Install] met de pijltjestoetsen en druk op kbd:[Enter]. Er wordt om bevestiging gevraagd:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -1814,7 +1814,7 @@ Selecteer btn:[X Exit Install] met de pijltjestoetsen en druk op kbd:[Enter]. Er
Selecteer btn:[yes]. Als u van het CD-ROM-station opstart zal de volgende boodschap u eraan herinneren de schijf te verwijderen:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -1846,7 +1846,7 @@ Kies [.guimenuitem]#AMD# voor het toevoegen van ondersteuning voor het BSD hulpp
De volgende optie is [.guimenuitem]#AMD Flags#. Als deze optie wordt selecteert komt er een pop-up menu waarin de specifieke AMD vlaggen kunnen worden ingesteld. Het menu bevat al een lijst standaardopties:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1917,7 +1917,7 @@ Meld aan met de gebruikersnaam en het wachtwoord die zijn aangemaakt tijdens de
Gebruikelijke opstartberichten (versie-informatie verwijderd):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2056,7 +2056,7 @@ Als de X-server ingesteld is en er een standaard desktop is gekozen, dan kan die
Het is belangrijk om het besturingssysteem op de juiste manier uit te schakelen. Schakel niet gewoon de stroom uit. Neem eerst de rol van superuser aan door `su` in te geven op de commandoregel en het `root` wachtwoord in te geven. Dit kan alleen als gebruiker die lid is van de groep `wheel`. Anders moet eerst worden aangemeld als `root`. Gebruik `shutdown -h now` om het systeem uit te schakelen.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2108,7 +2108,7 @@ De map [.filename]#/dos# moet reeds bestaan om dit te laten werken. Zie man:fsta
Een typische aanroep naar man:mount[8] voor een MS-DOS(R) bestandssysteem ziet er uit als:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2128,7 +2128,7 @@ NTFS-partities kunnen op soortgelijke manier aangekoppeld worden met het command
FreeBSD maakt veelvuldig gebruik van de ACPI-diensten van het systeem op de i386, amd64 en ia64 platformen bij het helpen van de systeemconfiguratie als het tijdens het opstarten is gedetecteerd. Helaas bestaan er nog enkele bugs in zowel het ACPI-stuurprogramma als in sommige systeemmoederborden en BIOSsen. ACPI kan worden uitgeschakeld door de hint `hint.acpi.0.disabled` in te stellen in de derde-fase-bootloader:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2145,7 +2145,7 @@ De eerste situatie is wanneer u twee IDE-schijven heeft, elk geconfigureerd als
FreeBSD staat op BIOS schijf 1, van het soort `ad` en het FreeBSD schijfnummer is 2, dus geldt:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2154,7 +2154,7 @@ Merk op dat indien u een slaaf op de primaire bus heeft, bovenstaande niet nodig
De tweede situatie is omvat opstarten van een SCSI-schijf wanneer u één of meer IDE-schijven in het systeem heeft. In dit geval is het FreeBSD schijfnummer lager dan het BIOS schijfnummer. Als u twee IDE-schijven alsook de SCSI-schijf heeft, dan is de SCSI-schijf BIOS schijf 2, soort `da` en FreeBSD schijfnummer 0, dus geldt:
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2205,7 +2205,7 @@ Volg de volgende stappen om de media te wijzigen om in een seriële console op t
+
Als wordt opgestart van de zojuist gemaakt USB-stick, start FreeBSD op in de normale installatiemodus. FreeBSD moet echter opstarten naar een seriële console voor de installatie. Om dit te regelen moet de USB-stick gekoppeld worden aan het FreeBSD systeem met het commando man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2217,14 +2217,14 @@ Pas het apparaat en het koppelpunt aan uw situatie aan.
+
Nu dat de stick is aangekoppeld, moet deze ingesteld worden om in een seriële toestand op te starten. Aan het bestand [.filename]#loader.conf# van het bestandssysteem van de USB-stick een regel worden toegevoegd dat de seriële console instelt als de systeemconsole:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /mnt/boot/loader.conf
....
+
Nu de USB-stick correct is geconfigureerd, moet deze afgekoppeld worden met man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2236,7 +2236,7 @@ Als met de CD zou worden opgestart die zojuist van het installatie-ISO-image is
+
Gebruik man:tar[1] om alle bestanden uit te pakken van het installatie-ISO-image, bijvoorbeeld [.filename]#FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso#:
+
-[source,bash]
+[source,shell]
....
# mkdir /pad/naar/headless-iso
# tar -C /pad/naar/headless-iso -pxvf FreeBSD-12.0-RELEASE-i386-disc1.iso
@@ -2244,7 +2244,7 @@ Gebruik man:tar[1] om alle bestanden uit te pakken van het installatie-ISO-image
+
Nu moet het installatiemedium worden ingesteld om in een seriële console op te starten. Aan het bestand [.filename]#loader.conf# van het uitgepakte ISO-image moet een regel worden toegevoegd dat de seriële console als de systeemconsole instelt:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >>
/pad/naar/headless-iso/boot/loader.conf
@@ -2252,7 +2252,7 @@ Nu moet het installatiemedium worden ingesteld om in een seriële console op te
+
Nu kan er een nieuw ISO-image van het gewijzigde bestandssysteem worden gemaakt. Het gereedschap man:mkisofs[8] van de port package:sysutils/cdrtools[] wordt gebruikt:
+
-[source,bash]
+[source,shell]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "Headless_installatie" \
-o Headless-FreeBSD-12.0-RELEASEi386-disc1.iso /pad/naar/headless-iso
@@ -2269,14 +2269,14 @@ Nu is het tijd om te beginnen met installeren. Steek de USB-stick in de machine
+
Nu moet verbinding gemaakt worden met die machine met man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
+
Gebruik op FreeBSD 7._X_ het volgende commando:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuad0
....
@@ -2380,7 +2380,7 @@ FreeBSD-schijven zijn op dezelfde manier ingedeeld als de FTP site. Dat maakt he
. Op de FreeBSD computer die de FTP site bevat moet de CD-ROM in het CD-ROM station zitten en aangekoppeld zijn op [.filename]#/cdrom#.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2418,7 +2418,7 @@ Vertrouw voorgeformatteerde schijven _niet_. Formatteer ze voor de zekerheid opn
Als de diskettes worden gemaakt op een andere FreeBSD machine is formatteren nog steeds geen slecht idee, hoewel niet op elke diskette een MS-DOS(R) bestandssysteem nodig is. Met de commando's `bsdlabel` en `newfs` kan er een UFS bestandssysteem op gezet worden, zoals met de volgende commando's wordt getoond (voor een 3.5" 1.44 MB diskette):
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w fd0.1440 floppy3
@@ -2441,7 +2441,7 @@ Als tijdens de installatie het scherm Media verschijnt kan [.guimenuitem]#Floppy
Om een installatie voor te bereiden vanaf een MS-DOS(R)-partitie kunnen alle bestanden vanaf de distributie in een map genaamd [.filename]#freebsd# in de hoofdmap van de partitie gezet worden, bijvoorbeeld [.filename]#c:\freebsd#. De mappenstructuur van de CD-ROM of FTP site moet gedeeltelijk worden gereproduceerd in deze map, dus we raden aan het MS-DOS(R) commando `xcopy` te gebruiken als de bron een CD-ROM is. Om bijvoorbeeld een minimale installatie van FreeBSD voor te bereiden:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2458,7 +2458,7 @@ Kopiëer de vanaf een MS-DOS(R)-partitie te installeren distributies (en waar sc
Het installeren vanaf een tape is waarschijnlijk de gemakkelijkste manier, sneller dan een online FTP installatie of een CD-ROM installatie. Het installatieprogramma verwacht dat de bestanden eenvoudigweg getarred zijn op een tape. Na het ophalen van alle benodigde distributiebestanden moeten ze op een tape getarred worden:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/nl/books/handbook/jails/_index.adoc b/documentation/content/nl/books/handbook/jails/_index.adoc
index 7be0df6cb1..0ce5e0e0db 100644
--- a/documentation/content/nl/books/handbook/jails/_index.adoc
+++ b/documentation/content/nl/books/handbook/jails/_index.adoc
@@ -118,7 +118,7 @@ Buiten deze kenmerken, kunnen jails hun eigen set aan gebruikers en `root` gebru
Sommige beheerders kiezen ervoor om jails op te delen in de volgende twee types: "complete" jails, welke een volledig FreeBSD systeem emuleert en "service" jails, gericht op één applicatie of dienst, mogelijkerwijs draaiende met privileges. Dit is alleen een conceptuele splitsing, de manier van het opbouwen van een jail wordt hierdoor niet veranderd. De man:jail[8] handleiding is heel duidelijk over de procedure voor het maken van een jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -180,7 +180,7 @@ Voor een complete lijst van beschikbare opties, zie de man:rc.conf[5] handleidin
man:service[8] kan worden gebruikt om jails handmatig te starten en te stoppen, mits er een overeenkomstige verzameling regels bestaat in [.filename]#/etc/rc.conf#.
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -188,7 +188,7 @@ man:service[8] kan worden gebruikt om jails handmatig te starten en te stoppen,
Er is op dit moment geen nette methode om een jail te stoppen. Dit komt omdat de benodigde applicaties die een nette afsluiting verzorgen, niet beschikbaar zijn in een jail. De beste manier om een jail af te sluiten is door het volgende commando van binnenin de jail uit te voeren of door middel van het man:jexec[8] commando:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -223,7 +223,7 @@ Het basis systeem van FreeBSD bevat een basis set van applicaties voor het inzie
* Het printen van een lijst van actieve jails met het corresponderende jail ID (JID), IP adres, de hostnaam en het pad.
* Het koppelen met een actieve jail vanuit het host systeem, en voor het uitvoeren van administratieve taken in de jail zelf. Dit is bijzonder handig wanneer de `root` gebruiker een jail netjes wilt afsluiten. Het man:jexec[8] commando kan ook gebruikt worden om een shell te starten in een jail om daarmee administratieve taken uit te voeren; bijvoorbeeld met:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -296,7 +296,7 @@ Het is altijd een goed idee om ervoor te zorgen dat het FreeBSD systeem de laats
. Als eerste moet er een directory structuur gecreeërd worden voor het alleen-lezen bestandssysteem, welke de FreeBSD binaries zal bevatten voor de jails. Daarna wordt het alleen-lezen bestandssysteem geïnstalleerd vanuit de FreeBSD broncode directory in de jail template:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -305,7 +305,7 @@ Het is altijd een goed idee om ervoor te zorgen dat het FreeBSD systeem de laats
+
. Hierna moet de FreeBSD Ports Collectie worden voorbereid, evenals de FreeBSD broncode directory, wat voor mergemaster vereist is:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -315,7 +315,7 @@ Het is altijd een goed idee om ervoor te zorgen dat het FreeBSD systeem de laats
+
. Nu moet er een "skelet" gecreeërd worden voor het bechrijfbare gedeelte van het systeem:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -327,7 +327,7 @@ Het is altijd een goed idee om ervoor te zorgen dat het FreeBSD systeem de laats
+
. De mergemaster applictie moet gebruikt worden om de ontbrekende configuratie bestanden te installeren. Erna moeten alle overtollige directories die gecreeërd zijn door mergemaster verwijderd worden:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -336,7 +336,7 @@ Het is altijd een goed idee om ervoor te zorgen dat het FreeBSD systeem de laats
+
. Nu moet er een symbolische link gemaakt worden tussen het beschrijfbare bestandssysteem en het alleen-lezen bestandssysteem, zorg ervoor dat de links gemaakt worden in de juiste [.filename]#/s# directory. Als hier echte directories worden gemaakt of de directories worden op de verkeerde plak aangemaakt zal dit resulteren in een mislukte installatie:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -414,14 +414,14 @@ De reden dat de `jail__name__rootdir` variabele verwijst naar de [.filename]#/us
+
. Creeër de benodigde koppelpunten voor het alleen-lezen bestandssysteem van elke jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Installeer de beschrijfbare template in elke jail. Let op het gebruik van package:sysutils/cpdup[], wat helpt om een goede kopie te maken in elke directory:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -431,7 +431,7 @@ De reden dat de `jail__name__rootdir` variabele verwijst naar de [.filename]#/us
+
. In deze fase zijn de jails gebouwd en voorbereid om op te starten. Koppel eerst de benodigde bestandssystemen voor elke jail, en start ze vervolgens door gebruik te maken van het rc-bestand voor de jail:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -440,7 +440,7 @@ De reden dat de `jail__name__rootdir` variabele verwijst naar de [.filename]#/us
De jails zouden nu gestart moeten zijn. Om te zien of ze correct gestart zijn, wordt het man:jls[8] programma gebruikt. Het resultaat hiervan ziet er ongeveer als volgend uit:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -451,7 +451,7 @@ De jails zouden nu gestart moeten zijn. Om te zien of ze correct gestart zijn, w
Op dit moment, zou het mogelijk moeten zijn om op elke jail aan te loggen, nieuwe gebruikers toe te voegen en het configureren van daemons. De `JID` kolom geeft het identificatie nummer voor elke gestarte jail. Gebruik het volgende commando om administratieve commando's uit te voeren in de jail met het `JID` 3:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -466,7 +466,7 @@ Naarmate de tijd verstrijkt komt de noodzaak om het systeem te updaten naar een
. De eerste stap is het upgraden van het host systeem zelf, waarna een nieuwe alleen-lezen template gemaakt wordt in [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -478,7 +478,7 @@ Naarmate de tijd verstrijkt komt de noodzaak om het systeem te updaten naar een
+
Het `installworld` doel creeërt een aantal onnodige directories, welke verwijderd moeten worden:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -486,7 +486,7 @@ Het `installworld` doel creeërt een aantal onnodige directories, welke verwijde
+
. Maak opnieuw de beschrijfbare symbolische linken voor het hoofd bestandssysteem:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -499,14 +499,14 @@ Het `installworld` doel creeërt een aantal onnodige directories, welke verwijde
+
. Dit is het juiste moment om de jails te stoppen:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
+
. Ontkoppel de originele bestandssystemen:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -523,7 +523,7 @@ Het beschrijfbare gedeelte van de jail is gekoppeld aan het alleen-lezen gedeelt
+
. Verplaatst het oude alleen-lezen systeem en vervang het door de nieuwe systeem. Het oude systeem dient als reservekopie voor het geval er iets misgaat. De naam moet het zelfde zijn als bij de installatie van het nieuwe systeem. Verplaats de FreeBSD Ports Collectie naar het nieuwe bestandssysteem om ruimte en inodes te besparen:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -533,7 +533,7 @@ Het beschrijfbare gedeelte van de jail is gekoppeld aan het alleen-lezen gedeelt
+
. Op dit moment is het alleen-lezen gedeelte klaar, de enig overgebleven taak is nu om alle bestandssystemen opnieuw te koppelen en om de jails weer op te starten:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
diff --git a/documentation/content/nl/books/handbook/kernelconfig/_index.adoc b/documentation/content/nl/books/handbook/kernelconfig/_index.adoc
index aa175a0eea..f08c78425c 100644
--- a/documentation/content/nl/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/nl/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ Dit beetje uitvoer, verkregen met `pciconf -lv` geeft aan dat het stuurprogramma
Wanneer de vlag `-k` aan man:man[1] wordt gegeven kan deze nuttige informatie geven. Met het bovenstaande kan dit gedaan worden:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -170,7 +170,7 @@ Dit voorbeelden in dit hoofdstuk veronderstellen dat de i386-architectuur gebrui
====
Als de map [.filename]#/usr/src/# _niet_ aanwezig is op een systeem (of als het leeg is), dan is de broncode niet geïnstalleerd. De eenvoudigste manier om de volledige broncode te installeren is man:csup[1] te gebruiken zoals beschreven in crossref:cutting-edge[synching,Broncode synchroniseren]. U dient tevens een symbolische link naar [.filename]#/usr/src/sys/# aan te maken:
-[source,bash]
+[source,shell]
....
# ln -s /usr/src/sys /sys
....
@@ -179,7 +179,7 @@ Als de map [.filename]#/usr/src/# _niet_ aanwezig is op een systeem (of als het
Daarna kan vanuit de map [.filename]#arch/conf# het instellingenbestand [.filename]#GENERIC# naar de naam voor de aangepaste kernel gekopieerd worden. Bijvoorbeeld:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MIJNKERNEL
@@ -194,7 +194,7 @@ Het kernelinstellingenbestand direct onder [.filename]#/usr/src# opslaan kan een
Het kan gewenst zijn om het kernelinstellingenbestand ergens anders op te slaan en een symbolische link naar het bestand in de map [.filename]#i386# aan te maken:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -226,21 +226,21 @@ Het is noodzakelijk om de volledige broncode van FreeBSD geïnstalleerd te hebbe
. Ga naar de map [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compileer de kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MIJNKERNEL
....
+
. Installeer de nieuwe kernel:
+
-[source,bash]
+[source,shell]
....
% make installkernel KERNCONF=MIJNKERNEL
....
@@ -297,7 +297,7 @@ Veel beheerders zullen aanzienlijke voordelen in dit model zien vergeleken met d
====
Draai het volgende commando als `root` om een bestand te bouwen dat alle beschikbare opties bevat, wat normaliter voor testdoeleinden gedaan wordt:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1138,7 +1138,7 @@ Er zijn vier probleemcategoriën die op kunnen treden tijdens het bouwen van een
`config` faalt::
Als het commando man:config[8] faalt bij het verwerken van de kernelbeschrijving, is er waarschijnlijk ergens een eenvoudige fout gemaakt. Gelukkig geeft man:config[8] het nummer van de regel weer waarmee het problemen had, dus kan snel de regel gevonden worden waarin de fout zit. In het onderstaande voorbeeld dient gecontroleerd te worden of het sleutelwoord juist is ingevoerd door het met de kernel [.filename]#GENERIC# of een andere referentie te vergelijken:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1155,7 +1155,7 @@ Nadat er met een goede kernel is opgestart, kan het instellingenbestand gecontro
====
Als er problemen zijn met het bouwen van een kernel, dient een [.filename]#GENERIC#, of een andere kernel waarvan bekend is dat die werkt, bewaard te worden onder een andere naam die niet verwijderd wordt als de volgende kernel gebouwd wordt. Er kan niet op [.filename]#kernel.old# vertrouwd worden omdat bij de installatie van een nieuwe kernel [.filename]#kernel.old# overschreven wordt met de laatst geïnstalleerde kernel, die niet hoeft te werken. Ook dient de werkende kernel zo snel mogelijk naar de juiste plaats [.filename]#/boot/kernel# verplaatst te worden, omdat anders commando's als man:ps[1] eventueel onjuist werken. Hiervoor dient simpelweg de map met de goede kernel hernoemd te worden:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.slecht
# mv /boot/kernel.goed /boot/kernel
diff --git a/documentation/content/nl/books/handbook/l10n/_index.adoc b/documentation/content/nl/books/handbook/l10n/_index.adoc
index ac69eb323b..68530a8242 100644
--- a/documentation/content/nl/books/handbook/l10n/_index.adoc
+++ b/documentation/content/nl/books/handbook/l10n/_index.adoc
@@ -113,7 +113,7 @@ Om een FreeBSD-systeem (of een ander I18N-ondersteunend UNIX(R) achtig systeem)
Een complete lijst van beschikbare locales is beschikbaar via:
-[source,bash]
+[source,shell]
....
% locale -a
....
@@ -219,7 +219,7 @@ german|Duitse gebruikersaccounts:\
Voer voordat de gebruikers login class wordt gewijzigd het volgende uit:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -242,14 +242,14 @@ Met `adduser` kunnen nieuwe gebruikers toegevoegd worden. Hierna dient één van
* `defaultclass = taal` instellen in [.filename]#/etc/adduser.conf#. In dit geval dient er voor alle gebruikers van andere talen een `default` klasse ingevoerd te worden.
* Er kan ook gekozen worden voor een antwoord op de vraag over taal vanuit man:adduser[8]:
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
* Ook kan het volgende gebruikt worden voor elke gebruiker die een andere taal gebruikt:
+
-[source,bash]
+[source,shell]
....
# adduser -class taal
....
@@ -258,7 +258,7 @@ Enter login class: default []:
Als man:pw[8] wordt gebruikt om nieuwe gebruikers toe te voegen:
-[source,bash]
+[source,shell]
....
# pw useradd gebruikersnaam -L taal
....
diff --git a/documentation/content/nl/books/handbook/linuxemu/_index.adoc b/documentation/content/nl/books/handbook/linuxemu/_index.adoc
index 36dd3024d8..652d907663 100644
--- a/documentation/content/nl/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/nl/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ Aangeraden voorkennis:
Linux(R) binaire compatibiliteit staat standaard niet aan. De gemakkelijkste manier om deze functionaliteit aan te zetten is door het `linux` KLD object ("Kernel LoaDable object") te laden. Deze module kan geladen worden door het volgende commando als `root` uit te voeren:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
Met man:kldstat[8] kan gecontroleerd worden of de KLD geladen is:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ Dit kan op twee manieren gedaan worden: door de <<linuxemu-libs-port,linux_base>
Dit is verreweg de gemakkelijkste weg om te bewandelen om de runtime bibliotheken te installeren. Het is net als het installeren van andere ports uit de crossref:ports[ports,Portscollectie]. Dit kan met het volgende commando:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-f10
# make install distclean
@@ -136,7 +136,7 @@ Als er toegang is tot een Linux(R) systeem kan gekeken worden welke gedeelde bib
Stel dat FTP gebruikt is om de Linux(R) binary van Doom op te halen en die op een Linux(R) systeem staat waar toegang tot is. Dan kan met `ldd linuxdoom` gecontroleerd worden welke gedeelde bibliotheken er nodig zijn:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -146,7 +146,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Alle bestanden uit de laatste kolom zijn nodig en moeten onder [.filename]#/compat/linux# komen te staat en de namen uit de eerste kolom moeten er als symbolische links naar verwijzen. Dit betekent dat uiteindelijk deze bestanden op een FreeBSD systeem staan:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -160,7 +160,7 @@ Alle bestanden uit de laatste kolom zijn nodig en moeten onder [.filename]#/comp
====
Als er al een Linux(R) gedeelde bibliotheek met een groot revisienummer overeenstemmend met de eerste kolom van de `ldd` uitvoer is, dan hoeft het bestand uit de laatste kolom niet naar een systeem gekopieerd te worden. Het bestand dat er al staat moet werken. Het is aan te raden om de gedeelde bibliotheek sowieso te kopiëren als het een nieuwere versie is. De oude kan verwijderd worden, zolang de symbolische link maar naar de nieuwe wijst. Dus als deze bibliotheken op een systeem staan:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -168,14 +168,14 @@ Als er al een Linux(R) gedeelde bibliotheek met een groot revisienummer overeens
en een nieuwe binary zegt een latere versie nodig te hebben volgens de uitvoer van `ldd`:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Als slechts één of twee versies verouderd zijn in het laatste cijfer, dan hoeft [.filename]#/lib/libc.so.4.6.29# niet gekopieerd te worden, omdat het programma goed moet werken met de ietwat oudere versie. Als er echter behoefte aan is, kan besloten worden om [.filename]#libc.so# sowieso te verplaatsen, en dat resulteert in:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/libc.so.4 -> lbic.so.4.6.29
@@ -192,7 +192,7 @@ Het symbolische linkmechanisme is _alleen_ nodig voor Linux(R)-binairen. De Free
ELF-binairen hebben soms een extra stap van "branding" nodig. Als er ongemerkte ELF-binairen worden gedraaid, ontstaat er een foutmelding zoals de volgende:
-[source,bash]
+[source,shell]
....
% ./mijn-linux-elf-binary
ELF binary type not known
@@ -201,7 +201,7 @@ Abort
Om de FreeBSD kernel te helpen FreeBSD ELF-binairen en Linux(R) binairen uit elkaar te houden, kan man:brandelf[1] gebruikt worden.
-[source,bash]
+[source,shell]
....
% brandelf -t Linux mijn-linux-elf-binary
....
@@ -214,7 +214,7 @@ FreeBSD heeft zijn eigen pakketdatabase die wordt gebruikt om alle ports te volg
Als u echter een willekeurige toepassing die op Linux(R) RPM is gebaseerd moet installeren kan dit bereikt worden met:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio -q < /pad/naar/linux.archief.rpm | cpio -id
@@ -224,7 +224,7 @@ Draai daarna brandelf op de geïnstalleerde ELF-binairen (niet de bibliotheken!)
=== De hostnaamresolver instellen
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -251,7 +251,7 @@ De Linux(R) versie van Mathematica(R) of Mathematica(R) for Students kan direct
Ten eerste dient FreeBSD te weten dat de Linux-binairen van Mathematica(R) de Linux ABI gebruiken. De gemakkelijkste manier om dit te doen is om het standaard ELF-merk op Linux te zetten voor alle ongemerkte binairen met het commando:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -260,7 +260,7 @@ Dit laat FreeBSD aannemen dat alle ongemerkte ELF-binairen de Linux ABI gebruike
Kopieer nu het bestand [.filename]#MathInstaller# naar de harde schijf:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/
@@ -298,7 +298,7 @@ De eerste manier is om ze te kopiëren in één van de bestaande lettertypenmapp
De tweede manier om dit te doen is door de mappen naar [.filename]#/usr/X11R6/lib/X11/fonts# te kopiëren:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -314,7 +314,7 @@ De tweede manier om dit te doen is door de mappen naar [.filename]#/usr/X11R6/li
Voeg nu de nieuwe lettertypenmappen toe aan het lettertypenpad:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -395,7 +395,7 @@ exit 0
+
. Maple(TM) testen:
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -447,7 +447,7 @@ Om MATLAB(R) te installeren:
. Laad de installatie-CD-ROM en koppel die aan. Start het installatiescript als `root`:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -486,7 +486,7 @@ Nu is de installatie van MATLAB(R) compleet. De volgende stappen "lijmen" het aa
. Maak symbolische links voor de scriptbestanden van de licentiebeheerder:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -521,7 +521,7 @@ exit 0
======
Het bestand moet uitvoerbaar zijn:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm
....
@@ -531,7 +531,7 @@ Ook moet bovenstaande _gebruikersnaam_ vervangen worden door een geldige gebruik
+
. Start de licentiebeheerder op met het commando:
+
-[source,bash]
+[source,shell]
....
# service flexlm start
....
@@ -542,7 +542,7 @@ Ook moet bovenstaande _gebruikersnaam_ vervangen worden door een geldige gebruik
Verander de Java(TM) Runtime Environment Link naar een die werkt op FreeBSD:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -619,7 +619,7 @@ exit 0
+
. Maak het bestand uitvoerbaar:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -643,7 +643,7 @@ Uit de Portscollectie dienen package:emulators/linux_base[] en package:devel/lin
Om de intelligente agent te draaien, moet ook het Red Hat Tcl package geïnstalleerd worden: [.filename]#tcl-8.0.3-20.i386.rpm#. Het algemene commando om pakketten te installeren met de officiële RPM port (package:archivers/rpm[]) is:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm package
....
@@ -730,7 +730,7 @@ Wegens een kleine inconsistentie in de Linux(R) emulator moet de map [.filename]
Een veelvoorkomend probleem is dat de adapter voor het TCP-protocol niet goed is geïnstalleerd. De consequentie daarvan is dat er geen TCP-listeners gestart kunnen worden. De volgende acties helpen om dit probleem op te lossen:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -827,7 +827,7 @@ De ELF loader zoekt naar een gespecialiseerd _merk_, dat een commentaargedeelte
Om Linux(R)-binairen werkend te krijgen, moeten ze _gemerkt_ worden als het type `Linux` met man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux bestand
....
diff --git a/documentation/content/nl/books/handbook/mac/_index.adoc b/documentation/content/nl/books/handbook/mac/_index.adoc
index 402deb7ea7..a3e1d47342 100644
--- a/documentation/content/nl/books/handbook/mac/_index.adoc
+++ b/documentation/content/nl/books/handbook/mac/_index.adoc
@@ -156,14 +156,14 @@ Vrijwel alle aspecten voor het instellen van labelbeleid worden uitgevoerd met b
Alle instellingen kunnen gemaakt worden met de hulpprogramma's man:setfmac[8] en man:setpmac[8]. Het commando `setfmac` wordt gebruikt om MAC labels op systeemobjecten in te stellen en `setpmac` voor het instellen van de labels op systeemsubjecten:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
Als het bovenstaande commando geen foutmeldingen heeft veroorzaakt, dan komt er een prompt terug. Deze commando's geven nooit uitvoer, tenzij er een fout is opgetreden; net als bij de commando's man:chmod[1] en man:chown[8]. In sommige gevallen kan de foutmelding `Permission denied` zijn en deze treedt meestal op als het label wordt ingesteld of gewijzigd op een object dat is beperkt. De systeembeheerder kan de volgende commando's gebruiken om dit probleem te voorkomen:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -253,7 +253,7 @@ Labels kunnen ook ingesteld worden op netwerkinterfaces om te assisteren bij het
Het `maclabel` kan meegegeven worden aan `ifconfig` als het MAC-label op netwerkinterfaces wordt ingesteld:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -282,7 +282,7 @@ Bij gebruik van `multilabel` voor een partitie en het neerzetten van een beveili
Het volgende commando stelt `multilabel` in op de bestandssystemen om meerdere labels te kunnen krijgen. Dit kan alleen uitgevoerd worden in enkele gebruikersmodus:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -357,7 +357,7 @@ Bij het werken met deze module dient bijzondere voorzichtigheid in acht te worde
Nadat de module man:mac_bsdextended[4] is geladen, kan met het volgende commando de huidige regels getoond worden:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -365,14 +365,14 @@ Nadat de module man:mac_bsdextended[4] is geladen, kan met het volgende commando
Zoals verwacht zijn er geen regels ingesteld. Dit betekent dat alles nog steeds volledig toegankelijk is. Om een regel te maken die alle toegang voor alle gebruikers behalve `root` ontzegt:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
Dit is een slecht idee, omdat het voorkomt dat alle gebruikers ook maar het meest eenvoudige commando kunnen uitvoeren, zoals `ls`. Een betere lijst met regels zou kunnen zijn:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid gebruiker1 object uid gebruiker2 mode n
# ugidfw set 3 subject uid gebruiker1 object gid gebruiker2 mode n
@@ -441,7 +441,7 @@ Zie de onderstaande voorbeelden of bekijk de handleidingpagina voor man:mac_port
De volgende voorbeelden zouden de bovenstaande discussie wat moeten toelichten:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -449,21 +449,21 @@ De volgende voorbeelden zouden de bovenstaande discussie wat moeten toelichten:
Eerst wordt man:mac_portacl[4] ingesteld om de standaard geprivilegieerde poorten te dekken en worden de normale bindbeperkingen van UNIX(R) uitgeschakeld.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
De gebruiker `root` zou niet beperkt moeten worden door dit beleid, stel `security.mac.portacl.suser_exempt` dus in op een waarde anders dan nul. De module man:mac_portacl[4] is nu ingesteld om zich op de zelfde manier te gedragen als UNIX(R)-achtige systemen zich standaard gedragen.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
Sta de gebruiker met UID 80 (normaliter de gebruiker `www`) toe om zich aan poort 80 te binden. Dit kan gebruikt worden om de gebruiker `www` toe te staan een webserver te draaien zonder ooit `root`-rechten te hebben.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -491,7 +491,7 @@ Wanneer dit beleid aanstaat, mogen gebruikers alleen hun eigen processen zien, e
Gebruik het gereedschap `setpmac` om gereedschappen in te stellen of ze in een partitielabel te plaatsen:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -502,14 +502,14 @@ Dit zal het commando `top` toevoegen aan het label dat voor gebruikers in de kla
Het volgende commando laat de partitielabel en de proceslijst zien:
-[source,bash]
+[source,shell]
....
# ps Zax
....
Het volgende commando staat toe om het procespartitielabel van een andere gebruiker en de momenteel draaiende processen van die gebruiker te zien:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -561,14 +561,14 @@ De volgende `sysctl`-tunables zijn beschikbaar voor de configuratie van speciale
Het commando man:setfmac[8] kan gebruikt worden om de MLS-labels te manipuleren. Gebruik het volgende commando om een label aan een object toe te kennen:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
Gebruik het volgende commando om het MLS-label voor het bestand [.filename]#test# te verkrijgen:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -617,7 +617,7 @@ De volgende `sysctl`-tunables kunnen gebruikt worden om het Biba-beleid te manip
Gebruik de commando's `setfmac` en `getfmac` om de instellingen van het Biba-beleid op systeemobjecten te benaderen:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -653,7 +653,7 @@ Het beleid MAC LOMAC berust op het overal labelen van alle systeemobjecten met i
Net zoals bij de beleiden Biba en MLS kunnen de commando's `setfmac` en `setpmac` gebruikt worden om labels op systeemobjecten te plaatsen:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -708,7 +708,7 @@ Voeg de volgende regel toe aan de standaard gebruikersklasse:
Wanneer dit voltooid is, moet het volgende commando gedraaid worden om de database te herbouwen:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -727,14 +727,14 @@ mac_seeotheruids_load="YES"
Stel de gebruiker `root` in op de standaardklasse met:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
Alle gebruikersaccounts die geen `root` of systeemgebruikers zijn hebben nu een aanmeldklasse nodig. De aanmeldklasse is nodig om te voorkomen dat gebruikers geen toegang hebben tot gewone commando's als man:vi[1]. Het volgende `sh`-script zou moeten werken:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -742,12 +742,12 @@ Alle gebruikersaccounts die geen `root` of systeemgebruikers zijn hebben nu een
Laat de gebruikers `nagios` en `www` in de klasse insecure vallen:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -796,7 +796,7 @@ Dit beleid zal beveiliging afdwingen door beperkingen aan de informatiestroom te
Dit bestand kan nu in ons systeem worden gelezen door ons systeem door het volgende commando uit te voeren:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /
@@ -839,7 +839,7 @@ Controleer dat de webserver en Nagios niet tijdens de systeeminitialisatie worde
Als alles er goed uitziet, kunnen Nagios, Apache, en Sendmail nu gestart worden op een manier die past in het beveiligingsbeleid. De volgende commando's zorgen hiervoor:
-[source,bash]
+[source,shell]
....
# cd /etc/mail &↦ make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -852,7 +852,7 @@ Controleer nogmaals om er zeker van te zijn dat alles juist werkt. Indien niet,
====
De gebruiker `root` kan zonder angst de afgedwongen beveiliging veranderen en de instellingenbestanden bewerken. Het volgende commando staat toe om het beveiligingsbeleid naar een lagere graad te degraderen voor een nieuw voortgebrachte shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/nl/books/handbook/mail/_index.adoc b/documentation/content/nl/books/handbook/mail/_index.adoc
index e837c3a974..dfee3806f7 100644
--- a/documentation/content/nl/books/handbook/mail/_index.adoc
+++ b/documentation/content/nl/books/handbook/mail/_index.adoc
@@ -108,7 +108,7 @@ DNS is verantwoordelijk voor het koppelen van hostnamen aan IP-adressen, en voor
De MX-regels van een willekeurig domein kunnen worden bekeken door gebruik te maken van het commando man:host[1], zoals te zien is in het onderstaande voorbeeld:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -325,7 +325,7 @@ toegevoegd te worden aan [.filename]#/etc/rc.conf#. Meer informatie over de opst
De nieuwe MTA kan gestart worden door deze instellingsregel toe te voegen aan [.filename]#/etc/rc.conf#, zoals het volgende voorbeeld voor postfix:
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable=“YES”' >> /etc/rc.conf
....
@@ -493,7 +493,7 @@ In standaard FreeBSD-installaties is sendmail geconfigureerd om alleen mail te
Er zijn verschillende manieren om dit te omzeilen. De oplossing die het meest voor de hand ligt, is om het adres van de internetprovider in een bestand relay-domains op [.filename]#/etc/mail/relay-domains# te zetten. Een snelle manier om dit te doen is:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -532,7 +532,7 @@ Met elk van de bovenstaanden kan mail direct op de host ontvangen worden.
Probeer dit:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -544,7 +544,7 @@ Indien dit verschijnt, zal mail die direct naar mailto:yourlogin@example.FreeBSD
Indien in plaats daarvan zoiets als dit verschijnt:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -618,7 +618,7 @@ De beste manier om UUCP te ondersteunen is het gebruiken van de eigenschap `mail
Als eerste dient het [.filename]#.mc#-bestand aangemaakt te worden. De map [.filename]#/usr/shared/sendmail/cf/cf# bevat enkele voorbeelden. Indien het bestand [.filename]#foo.mc# heet, hoeft slechts het volgende gedaan te worden om het in een geldig [.filename]#sendmail.cf# om te zetten:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make foo.cf
@@ -680,7 +680,7 @@ Dit bestand dient naar een DBM-database omgezet te worden voor gebruik. De opdra
Laatste tip: indien de werking van een zekere mailroute niet zeker is, kan de optie `-bt` van sendmail gebruikt worden. Het start sendmail in _adrestestmodus_ op; voer `3,0` gevolgd door het adres dat voor de mailrouting getest dient te worden in. De laatste regel bevat de gebruikte interne mailagent, de bestemmingshost waarmee deze agent aangeroepen wordt, en het (mogelijk vertaalde) adres. Deze modus kan door het typen van kbd:[Ctrl+D] verlaten worden.
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -706,7 +706,7 @@ Ook kan het zijn dat de overeenkomst van een typisch internetabonnement het draa
De gemakkelijkste manier om aan deze behoeften te voldoen is door de port package:mail/ssmtp[] te installeren. Voer als `root` de volgende opdrachten uit:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -812,7 +812,7 @@ saslauthd_enable="YES"
+
en start vervolgens het saslauthd-daemon op:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -830,7 +830,7 @@ SENDMAIL_LDADD=-lsasl2
Deze regels geven sendmail de juiste instelopties om tijdens het compileren met package:cyrus-sal2[] te linken. Zorg ervoor dat package:cyrus-sasl2[] is geïnstalleerd voordat sendmail wordt gehercompileerd.
. Hercompileer sendmail door de volgende opdrachten uit te voeren:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -872,14 +872,14 @@ Hoewel `mail` van huis uit geen ondersteuning voor POP- of IMAP -servers biedt,
Draai `mail` om email te versturen en te ontvangen:
-[source,bash]
+[source,shell]
....
% mail
....
De inhoud van de gebruikerspostbus in [.filename]#/var/mail# wordt automatisch gelezen door het programma `mail`. Indien de postbus leeg is, eindigt het programma het een melding dat er geen mail gevonden kon worden. Wanneer de postbus is gelezen, wordt de applicatie-interface gestart, en wordt er een berichtenlijst weergegeven. Berichten worden automatisch genummerd, zoals in het volgende voorbeeld te zien is:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -890,7 +890,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Berichten kunnen nu worden gelezen door middel van het commando kbd:[t] van `mail`, gevolgd door het gewenste berichtnummer. In dit voorbeeld wordt de eerste email gelezen:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -909,7 +909,7 @@ Zoals in bovenstaand voorbeeld te zien is, zorgt de toets kbd:[t] ervoor dat het
Er kan met `mail` op een email gereageerd worden, door gebruik te maken één van de toetsen kbd:[R] of kbd:[r]. De toets kbd:[R] vertelt `mail` dat er alleen aan de verzender van het bericht geantwoord dient te worden, terwijl de toets kbd:[r] niet alleen aan de verzender antwoordt, maar ook aan andere ontvangers van het bericht. Het is ook mogelijk om achter deze commando's het berichtnummer te plaatsen waarop gereageerd dient te worden. Nadat dit gedaan is , dient het antwoord gegeven te worden, en dient het einde van het bericht aangegeven te worden met een enkele kbd:[.] op een nieuwe regel. Een voorbeeld staat hieronder:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -922,7 +922,7 @@ EOT
Om een nieuwe email te verzenden, dient de toets kbd:[m] gebruikt te worden, gevolgd door het adres van de ontvanger. Er kunnen meerdere ontvangers gespecificeerd worden door ze met een kbd:[,] te scheiden. Hierna kan het onderwerp van het bericht worden gegeven, gevolgd door de inhoud van het bericht. Het einde van het bericht dient te worden aangegeven door een enkele kbd:[.] op een nieuwe regel te plaatsen.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -954,7 +954,7 @@ Al deze eigenschappen zorgen ervoor dat mutt een van de meest geavanceerde besc
De stabiele versie van mutt kan geïnstalleerd worden door de port package:mail/mutt[] te gebruiken, terwijl de huidige ontwikkelaarsversie geïnstalleerd kan worden via de port package:mail/mutt-devel[]. Nadat de port is geïnstalleerd, kan mutt gestart worden met het volgende commando:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -993,7 +993,7 @@ Er zijn in het verleden verschillende kwetsbaarheden voor alpine ontdekt, welke
De huidige versie van alpine kan door middel van de port package:mail/alpine[] geïnstalleerd worden. Wanneer de port geïnstalleerd is, kan alpine met het volgende commando gestart worden:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -1034,7 +1034,7 @@ fetchmail is een volwaardige client voor IMAP en POP welke gebruikers in staat s
Hoewel het niet de bedoeling van dit document is om alle mogelijkheden van fetchmail uit te leggen, zullen sommige basismogelijkheden worden uitgelegd. Het gereedschap fetchmail heeft een instellingenbestand [.filename]#.fetchmailrc# nodig om correct te kunnen werken. Dit bestand bevat zowel informatie over de server als de inloggegevens. Vanwege de gevoelige aard van de inhoud van dit bestand is het aan te raden om het met het volgende commando alleen leesbaar te maken voor de eigenaar ervan :
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1059,7 +1059,7 @@ user "john", with password "XXXXX", is "myth" here;
Het gereedschap fetchmail kan in daemon-modus worden gedraaid met de vlag `-d` gevolgd door het interval (in seconden) waarmee fetchmail de servers die in het bestand [.filename]#.fetchmailrc# vermeld staan dient te vragen. Het volgende voorbeeld zorgt ervoor dat fetchmail elke 600 seconden vraagt:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/nl/books/handbook/mirrors/_index.adoc b/documentation/content/nl/books/handbook/mirrors/_index.adoc
index a5469587e7..754e9f0773 100644
--- a/documentation/content/nl/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/nl/books/handbook/mirrors/_index.adoc
@@ -549,7 +549,7 @@ Hoewel het sterk wordt aangeraden eerst de hulppagina's voor man:cvs[1] grondig
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't be established.
@@ -564,7 +564,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -578,7 +578,7 @@ Op de prompt, voer een willekeurig wachtwoord in “wachtwoord”.
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs.freebsd.org (128.46.156.46)' can't be established.
@@ -593,7 +593,7 @@ Warning: Permanently added 'anoncvs.freebsd.org' (DSA) to the list of known host
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -607,7 +607,7 @@ Op de prompt, voer een willekeurig wachtwoord in “wachtwoord”.
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -621,7 +621,7 @@ Op de prompt, voer een willekeurig wachtwoord in “wachtwoord”.
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -692,7 +692,7 @@ Als er een delta als startpunt is gekozen, zijn ook alle delta's met hogere volg
Om de delta's toe te passen:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/the/stuff
# ctm -v -v /where/you/store/your/deltas/src-xxx.*
@@ -736,7 +736,7 @@ Een lijst met bestanden die CTM mag bewerken kan aangegeven worden met de opties
Om bijvoorbeeld een bijgewerkte kopie van [.filename]#lib/libc/Makefile# te maken uit de verzameling met opgeslagen CTM delta's, kan het volgende commando uitgevoerd worden:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/to/extract/it/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -976,7 +976,7 @@ Met deze handige eigenschap kunnen gebruikers met langzamere verbindingen of zij
Nu kan het bijwerken beginnen. Het commando is best wel eenvoudig:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -985,7 +985,7 @@ De [.filename]#supfile# is de naam van het [.filename]#supfile# bestand dat gebr
Omdat in dit voorbeeld de werkelijke structuur in [.filename]#/usr/src# wordt bijgewerkt, moet het programma als `root` uitgevoerd worden, zodat `cvsup` de rechten heeft die het nodig heeft om de bestanden bij te werken. Het is voorstelbaar dat de benodigde rechten, het net gemaakte bestand met instellingen en het voor de eerste keer draaien van een programma zorgt voor wat onrust. Daarom is het mogelijk proef te draaien zonder dat er bestanden gewijzigd worden. Dat kan door ergens een lege map te maken en een extra argument mee te geven op de commandoregel:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -995,7 +995,7 @@ De opgegeven map is de bestemming voor alle bestandsupdates. CVSup bekijkt wel d
Als er geen X11 draait of als het niet wenselijk is een GUI te gebruiken, dan kunnen daarvoor opties op de commandoregel meegegeven worden bij het draaien van `cvsup`:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
diff --git a/documentation/content/nl/books/handbook/multimedia/_index.adoc b/documentation/content/nl/books/handbook/multimedia/_index.adoc
index b0b938bf49..cb2b9c7494 100644
--- a/documentation/content/nl/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/nl/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ Alvorens te beginnen is het van belang te weten welk model een geluidskaart is,
Om een geluidsapparaat te gebruiken dient het juiste apparaatstuurprogramma geladen te worden. Dit kan op twee manieren. De meest eenvoudige manier is simpelweg een kernelmodule te laden voor de gewenste geluidskaart met man:kldload[8]. Dit kan vanaf de commandoregel:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
De bovenstaande voorbeelden zijn voor een Creative SoundBlaster(R) Live! geluidskaart. De overige beschikbare laadbare geluidsmodules staan beschreven in [.filename]#/boot/defaults/loader.conf#. Als niet compleet duidelijk is welk stuurprogramma gebruikt dient te worden, dan kan het met de module [.filename]#snd_driver# geprobeerd worden:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ De bovenstaande instellingen zijn de standaardinstellingen. In sommige gevallen
Na het herstarten met de aangepaste kernel of na het laden van de benodigde module, hoort de geluidskaart ongeveer als volgt te verschijnen in de systeemberichtbuffer (man:dmesg[8]):
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
De status van de geluidskaart kan gecontroleerd worden via het bestand [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,7 +182,7 @@ De uitvoer kan per systeem wat verschillen. Als er geen apparaten [.filename]#pc
Als het goed is werkt de geluidskaart nu. Als pinnen voor audio-out van de CD-ROM- of DVD-ROM-drive juist zijn aangesloten op de geluidskaart, dan kan er een CD in de drive gestopt worden en kan deze met man:cdcontrol[1] afgespeeld worden:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -191,7 +191,7 @@ Applicaties als package:audio/workman[] kunnen een vriendelijker interface biede
Een snelle manier om de kaart te testen is het als volgt sturen van gegevens naar [.filename]#/dev/dsp#:
-[source,bash]
+[source,shell]
....
% cat bestandsnaam > /dev/dsp
....
@@ -252,7 +252,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
Hier is de grafische kaart (`NVidia`) opgesomd voor de geluidskaart (`Realtek ALC889`). Om de geluidskaart als standaard afspeelapparaat te gebruiken, dient `hw.snd.default_unit` veranderd te worden in de eenheid dat voor afspelen gebruikt moet worden:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -273,7 +273,7 @@ Met FreeBSD kan dit met _Virtuele Geluidskanalen_, die aangezet kunnen worden me
Het aantal virtuele kanalen kan met drie sysctl knoppen als `root` als volgt ingesteld worden:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -318,7 +318,7 @@ De port package:audio/mpg123[] is een alternatieve MP3-speler die gebruik maakt
mpg123 werkt door het geluidsapparaat en het MP3-bestand aan te geven op de commandoregel. Aangenomen dat uw audio-apparaat [.filename]#/dev/dsp1.0# is en u het MP3-bestand _Foobar-GreatestHits.mp3_ wilt afspelen, zou u het volgende opgeven:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -339,14 +339,14 @@ Het hulpprogramma `cdda2wav`, dat onderdeel is van de suite package:sysutils/cdr
Als de audio CD in de drive zit, kan het volgende commando als `root` uitgevoerd worden om een hele CD naar individuele (per track) WAV-bestanden te rippen:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav ondersteunt ATAPI (IDE) CD-ROM-drives. Om van een IDE drive te rippen, dient de apparaatnaam aangegeven te worden in plaats van de SCSI eenheidsnummers. Om bijvoorbeeld track 7 van een IDE drive te rippen:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -355,14 +355,14 @@ De optie `-D _0,1,0_` geeft het SCSI apparaat [.filename]#0,1,0# aan, dat overee
Om individuele tracks te rippen kan gebruik gemaakt worden van de optie `-t`:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
In het bovenstaande voorbeeld wordt track 7 van de audio CD geript. Om een reeks tracks te rippen, bijvoorbeeld van 1 tot 7, kan een reeks opgegeven worden:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -376,7 +376,7 @@ Tegenwoordig is _de_ MP3 encoder lame. Lame staat in package:audio/lame[] in de
Met de geripte WAV-bestanden converteert het volgende commando [.filename]#audio01.wav# naar [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 192 \
--tt "Foo Titel" \
@@ -419,7 +419,7 @@ Schrijven naar stdout vanuit mpg123:
XMMS schrijft een bestand in het WAV-formaat, terwijl mpg123 de MP3 converteert naar ruwe PCM audio data. Beide formaten kunnen gebruikt worden met cdrecord om audio CD's te maken. Met man:burncd[8] moeten ruwe PCM-bestanden gebruikt worden. Als er WAV-bestanden worden gebruikt, is er een tikgeluid te horen bij het begin van iedere track. Dit is het geluid van de kop van ieder WAV-bestand. Met het hulpprogramma SoX kan de kop van WAV-bestanden verwijderd worden. Dit programma kan geïnstalleerd worden met de port of pakket package:audio/sox[]
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -435,7 +435,7 @@ Voor er wordt begonnen is het van belang te weten welk model videokaart zich in
Het is verstandig een kort MPEG-bestand beschikbaar te hebben dat gebruikt kan worden als testbestand voor het evalueren van de spelers en hun opties. Omdat sommige DVD-spelers standaard zoeken naar DVD media in [.filename]#/dev/dvd# of deze apparaatnaam standaard in de broncode hebben staan, is het wellicht verstandig om een symbolische link te maken naar de juiste apparaten:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -479,14 +479,14 @@ Xorg kent een uitbreiding _XVideo_, ook bekend als Xvideo, Xv of xv, waarmee vid
Of de uitbreiding actief is, kan gecontroleerd worden met het commando `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo wordt ondersteund als de uitvoer er ongeveer als volgt uitziet:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -565,7 +565,7 @@ Sommige van de weergegeven formaten (YUV2, YUV12, enzovoort) zijn niet in iedere
Als het resultaat er als hieronder uitziet, is er geen ondersteuning voor XVideo aanwezig op de videokaart in een systeem:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -620,7 +620,7 @@ MPlayer is een zich snel ontwikkelende videospeler. De doelen van het MPlayer-te
MPlayer staat in package:multimedia/mplayer[]. MPlayer voert een aantal hardwarecontroles uit tijdens het bouwen, wat resulteert in een binair bestand dat niet van het ene naar het andere systeem verplaatst kan worden. Daarom is het van belang dat het uit de ports wordt gebouwd en niet als binair pakket wordt geïnstalleerd. Daarnaast staan er ook nog opties die vanaf de `make` commandoregel meegegeven kunnen worden beschreven in de [.filename]#Makefile# en aan het begin van de build:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -648,7 +648,7 @@ De HTML documentatie voor MPlayer is erg informatief. Als de lezer vindt dat er
Iedere gebruiker van MPlayer dient een submap [.filename]#.mplayer# in zijn thuismap te hebben. Die kan als volgt gemaakt worden:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -658,27 +658,27 @@ De commando-opties voor `mplayer` staan in de hulppagina. Nog meer details staan
Om een bestand als [.filename]#testbestand.avi# af te spelen met een van de beschikbare video-interfaces, kan de optie `-vo` gebruikt worden:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testbestand.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testbestand.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testbestand.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testbestand.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testbestand.avi
....
@@ -687,7 +687,7 @@ Het is de moeite waard alle bovenstaande opties uit te proberen omdat hun relati
Om een DVD af te spelen dient [.filename]#testbestand.avi# vervangen te worden door `dvd://_N_ -dvd-device _APPARAAT_` waar _N_ het titelnummer is dat afgespeeld moeten worden en [.filename]#APPARAAT# het apparaatknooppunt is voor de DVD-ROM. Om bijvoorbeeld titel 3 van [.filename]#/dev/dvd# af te spelen:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -712,7 +712,7 @@ zoom=yes
Tenslotte kan `mplayer` gebruikt worden om een DVD naar een bestand van het type [.filename]#.vob# te rippen. Om de tweede titel van een DVD de dumpen kan het volgende commando gebruikt worden:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -724,7 +724,7 @@ Het uitvoerbestand [.filename]#out.vob#, is van het type MPEG en kan bewerkt wor
Voordat `mencoder` wordt gebruikt, is het verstandig de opties uit de HTML-documentatie te bekijken. Er is een hulppagina, maar die is niet echt bruikbaar zonder de HTML-documentatie. Er zijn ontelbare mogelijkheden om de kwaliteit te verhogen, de bitrate te verlagen en formaten te wijzigen en een aantal van die truuks maken het verschil tussen goede en slechte prestaties. Hieronder staan een aantal voorbeelden beschreven. Eerst een eenvoudige kopie:
-[source,bash]
+[source,shell]
....
% mencoder invoer.avi -oac copy -ovc copy -o uitvoer.avi
....
@@ -733,7 +733,7 @@ Verkeerde combinaties van commandoregelopties kunnen resulteren in uitvoerbestan
Om [.filename]#invoer.avi# te converteren naar de MPEG4-codec met MPEG3-audio encodering (package:audio/lame[] is verplicht):
-[source,bash]
+[source,shell]
....
% mencoder invoer.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o utvoer.avi
@@ -756,14 +756,14 @@ Vergeleken met MPlayer, doet xine meer voor de gebruiker, maar tegelijkertijd ne
Standaard start de xine speler op in een grafische gebruikersinterface. Via het menu kan een specifiek bestand geopend worden:
-[source,bash]
+[source,shell]
....
% xine
....
Het is ook mogelijk om zonder de GUI direct een bestand af te laten spelen:
-[source,bash]
+[source,shell]
....
% xine -g -p mijnfilm.avi
....
@@ -775,7 +775,7 @@ De software transcode is geen speler, maar een verzameling hulpprogramma's voor
Tijdens het bouwen van de port package:multimedia/transcode[] kan een groot aantal opties opgegeven worden en de volgende commandoregel wordt geadviseerd om transcode te bouwen:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -785,7 +785,7 @@ De geadviseerde instellingen zijn toereikend voor de meeste gebruikers.
Om de mogelijkheden van `transcode` te illustreren volgt nu een voorbeeld van hoe een DivX-bestand om te zetten in een PAL MPEG-1-bestand (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i invoer.avi -V --export_prof vcd-pal -o uitvoer_vcd
% mplex -f 1 -o uitvoer_vcd.mpg uitvoer_vcd.m1v uitvoer_vcd.mpa
@@ -864,7 +864,7 @@ options OVERRIDE_TUNER=6
Dit kan ook via een instelling van man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -912,7 +912,7 @@ Voor de achterkant is package:multimedia/mythtv[] nodig, alsook een MySQL(TM) da
Gebruik de volgende stappen om MythTV te installeren. Installeer als eerste MythTV van de FreeBSD Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -920,21 +920,21 @@ Gebruik de volgende stappen om MythTV te installeren. Installeer als eerste Myth
Installeer de database voor MythTV:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Configureer de achterkant:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Start de achterkant:
-[source,bash]
+[source,shell]
....
# echo 'mythbackend_enable="YES"' >> /etc/rc.conf
# service mythbackend start
@@ -969,7 +969,7 @@ device ehci
Na een herstart met de juiste kernel kan de USB-scanner aangesloten worden. Een regel die de detectie van uw scanner aangeeft zou in de berichtenbuffer van het systeem (man:dmesg[8]) moeten verschijnen:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -988,7 +988,7 @@ device pass
Als de kernel juist gecompileerd en geïnstalleerd is, horen de apparaten tijdens het opstarten zichtbaar te zijn in de systeemberichtbuffer:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -997,7 +997,7 @@ pass2: 3.300MB/s transfers
Als een scanner niet aan staat tijdens het opstarten, is het nog mogelijk handmatig detectie te forceren door de SCSI-bus te laten scannen met man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -1008,7 +1008,7 @@ Re-scan of bus 3 was successful
In het bovenstaande geval zal de scanner ongeveer als volgt verschijnen in de lijst met SCSI-apparaten:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -1025,7 +1025,7 @@ Het SANE systeem is opgesplitst in twee delen: de backends (package:graphics/san
De eerste stap is om de port of het pakket package:graphics/sane-backends[] te installeren. Daarna kan met het commando `sane-find-scanner` gecontroleerd worden welke scanner er door het SANE systeem is gedetecteerd:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -1040,7 +1040,7 @@ Sommige USB-scanners verlangen dat er firmware wordt geladen. Dit wordt uitgeleg
Hierna kan gecontroleerd worden of de scanner ook te zien is voor een scanner-frontend. Er zit bij de SANE backends een standaard hulpprogramma man:sane[1]. Met dit commando kunnen de apparaten zichtbaar gemaakt worden en kan vanaf de commandoregel gescand worden. Met de optie `-L` kunnen de scannerapparaten getoond worden:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -1048,7 +1048,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
Of, met bijvoorbeeld de USB-scanner die in <<scanners-kernel-usb>> wordt gebruikt:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -1062,7 +1062,7 @@ De afwezigheid van uitvoer of een bericht dat aangeeft dat er geen scanners zijn
De USB-scanner die in <<scanners-kernel-usb>> wordt gebruikt, wordt in FreeBSD 8.X prima gedetecteerd en werkt daar, maar in eerdere versies van FreeBSD (waar man:uscanner[4] wordt gebruikt) toont het de volgende informatie met `sane-find-scanner`:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -1070,7 +1070,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
De bovenstaande uitvoer geeft aan dat de scanner juist is gedetecteerd, dat het de USB-interface gebruikt en is aangesloten op het apparaatknooppunt [.filename]#/dev/uscanner0#. Nu kan gecontroleerd worden of de scanner juist wordt geïdentificeerd:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1089,7 +1089,7 @@ usb /dev/uscanner0
Het is aan te raden de opmerkingen te lezen in het bestand met instellingen voor het backend en ook de hulppagina, omdat daarin meer details en de correcte syntaxis te vinden zijn. Nu kan gecontroleerd worden of de scanner wèl juist wordt geïdentificeerd:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1110,7 +1110,7 @@ Alle voorgaande taken zijn uitgevoerd met `root` rechten, maar het is wellicht o
We zullen dus bijvoorbeeld een groep genaamd `_usb_` gebruiken. De eerste stap is het aanmaken van deze groep met behulp van het commando man:pw[8]:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1126,7 +1126,7 @@ add path usb/0.2.0 mode 0666 group usb
Nu dienen er alleen nog gebruikers aan de groep `_usb_` toegevoegd te worden om toegang tot de scanner toe te staan:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/nl/books/handbook/network-servers/_index.adoc b/documentation/content/nl/books/handbook/network-servers/_index.adoc
index 1affec1b50..c818cf03f3 100644
--- a/documentation/content/nl/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/nl/books/handbook/network-servers/_index.adoc
@@ -100,7 +100,7 @@ inetd_enable="NO"
in [.filename]#/etc/rc.conf# wordt inetd bij het opstarten van een systeem wel of niet ingeschakeld. Het commando:
-[source,bash]
+[source,shell]
....
# service inetd rcvar
....
@@ -142,7 +142,7 @@ Als er een wijziging wordt aangebracht in [.filename]#/etc/inetd.conf#, dan kan
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -373,14 +373,14 @@ Het volgende voorbeeld is een geldige exportlijst waar [.filename]#/usr# en [.fi
De daemon mountd moet gedwongen worden om het bestand [.filename]#/etc/exports# te controleren steeds wanneer het is aangepast, zodat de veranderingen effectief kunnen worden. Dit kan worden bereikt door òfwel een HUP-signaal naar de draaiende daemon te sturen:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
of door het man:rc[8] script `mountd` met de juiste parameter aan te roepen:
-[source,bash]
+[source,shell]
....
# service mountd onereload
....
@@ -391,7 +391,7 @@ Het is ook mogelijk een machine te herstarten, zodat FreeBSD alles netjes in kan
Op de NFS server:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -400,14 +400,14 @@ Op de NFS server:
Op de NFS cliënt:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Nu is alles klaar om feitelijk het netwerkbestandssysteem aan te koppelen. In de volgende voorbeelden is de naam van de server `server` en de naam van de cliënt is `client`. Om een netwerkbestandssysteem slechts tijdelijk aan te koppelen of om alleen te testen, kan een commando als het onderstaande als `root` op de cliënt uitgevoerd worden:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -435,7 +435,7 @@ rpc_statd_enable="YES"
Start de applicatie met:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -465,7 +465,7 @@ Het raadplegen van een bestand in [.filename]#/host/foobar/usr# geeft amd aan da
====
De beschikbare koppelingen van een netwerkhost zijn te bekijken met `showmount`. Om bijvoorbeeld de koppelingen van de host `foobar` te bekijken:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -523,7 +523,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
Als een handmatig aankoppelcommando op `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -537,7 +537,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
Als een handmatig aankoppelcommando op `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -700,7 +700,7 @@ Afhankelijk van de inrichting van NIS, kunnen er nog meer instellingen nodig zij
Draai na het instellen van bovenstaande regels het commando `/etc/netstart` als supergebruiker. Het zal alles voor u instellen, gebruikmakende van de waarden die u in [.filename]#/etc/rc.conf# heeft ingesteld. Start als laatste stap, voor het initialiseren van de NIS-afbeeldingen, de daemon ypserv handmatig:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -709,7 +709,7 @@ Draai na het instellen van bovenstaande regels het commando `/etc/netstart` als
Die _NIS-afbeeldingen_ zijn databasebestanden die in de map [.filename]#/var/yp# staan. Ze worden gemaakt uit de bestanden met instellingen uit de map [.filename]#/etc# van de NIS-master, met één uitzondering: [.filename]#/etc/master.passwd#. Daar is een goede reden voor, want het is niet wenselijk om de wachtwoorden voor `root` en andere administratieve accounts naar alle servers in het NIS-domein te sturen. Daar moet voor het initialiseren van de NIS-afbeeldingen het volgende uitgevoerd worden:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -725,7 +725,7 @@ Dan horen alle systeemaccounts verwijderd te worden (`bin`, `tty`, `kmem`, `game
Als dat is gedaan, kunnen de NIS-afbeeldingen geïnitialiseerd worden. Bij FreeBSD zit een script `ypinit` waarmee dit kan (in de hulppagina staat meer informatie). Dit script is beschikbaar op de meeste UNIX(R) besturingssystemen, maar niet op allemaal. Op Digital UNIX/Compaq Tru64 UNIX heet het `ypsetup`. Omdat er afbeeldingen voor een NIS-master worden gemaakt, wordt de optie `-m` meegegeven aan `ypinit`. Aangenomen dat de voorgaande stappen zijn uitgevoerd, kunnen de NIS-afbeeldingen gemaakt worden op de volgende manier:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -754,7 +754,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` hoort [.filename]#/var/yp/Makefile# gemaakt te hebben uit [.filename]#/var/yp/Makefile.dist#. Als dit bestand is gemaakt, neemt dat bestand aan dat er in een omgeving met een enkele NIS-server wordt gewerkt met alleen FreeBSD-machines. Omdat `test-domain` ook een slaveserver bevat, dient [.filename]#/var/yp/Makefile# gewijzigd te worden:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -770,7 +770,7 @@ NOPUSH = "True"
Het opzetten van een NIS-slaveserver is nog makkelijker dan het opzetten van de master. Dit kan door aan te melden op de slaveserver en net als voor de masterserver [.filename]#/etc/rc.conf# te wijzigen. Het enige verschil is dat nu de optie `-s` gebruikt wordt voor het draaien van `ypinit`. Met de optie `-s` moet ook de naam van de NIS-master meegegeven worden. Het commando ziet er dus als volgt uit:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -888,7 +888,7 @@ Er moet tenminste één lokale account behouden blijven (dus niet geïmporteerd
Voer, om de NIS-cliënt onmiddelijk te starten, de volgende commando's als supergebruiker uit:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -939,7 +939,7 @@ In het lab staat de machine `basie`, die alleen faculteitswerkstation hoort te z
Er is een manier om het aanmelden van specifieke gebruikers op een machine te weigeren, zelfs als ze in de NIS-database staan. Daarvoor hoeft er alleen maar `-gebruikersnaam` met het juiste aantal dubbele punten (zoals bij andere regels) aan het einde van [.filename]#/etc/master.passwd# op de cliëntmachine toegevoegd te worden, waar _gebruikersnaam_ de gebruikersnaam van de gebruiker die niet mag aanmelden is. De regel met de geblokkeerde gebruiker moet voor de regel met `+` staan om NIS-gebruikers toe te staan. Dit gebeurt bij voorkeur met `vipw`, omdat `vipw` de wijzigingen aan [.filename]#/etc/master.passwd# controleert en ook de wachtwoord database opnieuw bouwt na het wijzigen. Om bijvoorbeeld de gebruiker `bill` te kunnen laten aanmelden op `basie`:
-[source,bash]
+[source,shell]
....
basie# vipw
[voeg -bill::::::::: aan het einde toe, exit]
@@ -1024,7 +1024,7 @@ Het gebruik van netgroepen biedt in deze situatie een aantal voordelen. Niet ied
De eerst stap is het initialiseren van de NIS-afbeelding netgroup. man:ypinit[8] van FreeBSD maakt deze map niet standaard, maar als die is gemaakt, ondersteunt de NIS-implementatie hem wel. Een lege map wordt als volgt gemaakt:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1067,7 +1067,7 @@ Dit proces kan herhaald worden als er meer dan 225 gebruikers in een netgroep mo
Het activeren en distribueren van de nieuwe NIS-map is eenvoudig:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1075,7 +1075,7 @@ ellington# make
Hiermee worden drie nieuwe NIS-afbeeldingen gemaakt: [.filename]#netgroup#, [.filename]#netgroup.byhost# en [.filename]#netgroup.byuser#. Met man:ypcat[1] kan bekeken worden op de nieuwe NIS-afbeeldingen beschikbaar zijn:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1208,7 +1208,7 @@ In een NIS-omgeving werken een aantal dingen wel anders.
* Als er een gebruiker toegevoegd moet worden, dan moet die _alleen_ toegevoegd worden aan de master NIS-server en _mag niet vergeten worden dat de NIS-afbeeldingen herbouwd moeten worden_. Als dit wordt vergeten, dan kan de nieuwe gebruiker nergens anders aanmelden dan op de NIS-master. Als bijvoorbeeld een nieuwe gebruiker `jsmith` toegevoegd moet worden:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1259,7 +1259,7 @@ Andere mogelijke waarden voor `passwd_format` zijn `blf` en `md5` (respectieveli
Als er wijzigingen gemaakt zijn aan [.filename]#/etc/login.conf# dan moet de login capability database herbouwd worden door het volgende commando als `root` uit te voeren:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1443,7 +1443,7 @@ Vervang de interfacenaam `dc0` door de interface (of interfaces, gescheiden door
Daarna kunt u doorgaan met het starten van de server door het volgende commando te geven:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1567,7 +1567,7 @@ Omdat BIND standaard wordt geïnstalleerd, is het instellen relatief eenvoudig.
De standaardconfiguratie van named is die van een eenvoudige resolverende naamserver, draaiende in een man:chroot[8]-omgeving, en beperkt tot het luisteren op het lokale IPv4-teruglusadres (127.0.0.1). Gebruik het volgende commando om de server eenmaal met deze configuratie te starten:
-[source,bash]
+[source,shell]
....
# service named onestart
....
@@ -2105,7 +2105,7 @@ De volgende secties laten zien hoe DNSSEC voor een autoratieve DNS-server en een
Het aanzetten van DNSSEC-validatie van verzoeken die door een recursieve DNS-server worden uitgevoerd heeft enkele aanpassingen aan [.filename]#named.conf# nodig. Voordat deze wijzigingen worden gemaakt dient de rootzone-sleutel, of vertrouwensanker, te worden opgehaald. Momenteel is de rootzone-sleutel niet beschikbaar in een bestandsformaat dat BIND begrijpt, dus moet het handmatig in het juiste formaat omgezet worden. De sleutel zelf kan verkregen worden door de rootzone ervoor met dig te ondervragen. Door
-[source,bash]
+[source,shell]
....
% dig +multi +noall +answer DNSKEY . > root.dnskey
....
@@ -2136,7 +2136,7 @@ Schrik niet als de verkregen sleutels anders zijn dan in dit voorbeeld. Ze kunne
Nu moet de sleutel gecontroleerd en geformatteerd worden zodat BIND deze kan gebruiken. Maak om de sleutel te controleren een DS - RR-paar aan. Maak een bestand aan dat deze RRs bevat aan met
-[source,bash]
+[source,shell]
....
% dnssec-dsfromkey -f root-dnskey . > root.ds
....
@@ -2193,7 +2193,7 @@ dnssec-validation yes;
Om te controleren dat het ook echt werkt, kan dig gebruikt worden om een verzoek op een ondertekende zone uit te voeren met de zojuist geconfigureerde resolver. Een succesvol antwoord zal de vlag `AD` bevatten om aan te geven dat de gegevens zijn geautenticeerd. Een verzoek als
-[source,bash]
+[source,shell]
....
% dig @resolver +dnssec se ds
....
@@ -2216,21 +2216,21 @@ Om een autoratieve naamserver een met DNSSEC ondertekende zone te laten serveren
Om DNSSEC aan te zetten voor de zone `example.com` zoals beschreven in de voorgaande voorbeelden, dient als eerste dnssec-keygen gebruikt te worden om het sleutelpaar met de KSK en ZSK te genereren. Dit sleutelpaar kan verschillende cryptografische algoritmes gebruiken. Het wordt aanbevolen om RSA/SHA-256 voor de sleutels te gebruiken, een sleutellengte van 2048 bits zou voldoende moeten zijn. Om de KSK voor `example.com` te genereren:
-[source,bash]
+[source,shell]
....
% dnssec-keygen -f KSK -a RSASHA256 -b 2048 -n ZONE example.com
....
en om de ZSK te genereren:
-[source,bash]
+[source,shell]
....
% dnssec-keygen -a RSASHA256 -b 2048 -n ZONE example.com
....
dnssec-keygen maakt twee bestanden, de publieke en private sleutels in bestanden met namen als [.filename]#Kexample.com.+005+nnnnn.key# (publiek) en [.filename]#Kexample.com.+005+nnnnn.private# (privaat). Het gedeelte `nnnnn` van de bestandsnaam is een sleutel-ID van vijf cijfers. Houd bij welke sleutel-ID bij welke sleutel hoort. Dit is in het bijzonder van belang wanneer er meerdere sleutels per zone zijn. Het is ook mogelijk om de sleutels te hernoemen. Voor elk KSK-bestand:
-[source,bash]
+[source,shell]
....
% mv Kexample.com.+005+nnnnn.key Kexample.com.+005+nnnn.KSK.key
% mv Kexample.com.+005+nnnnn.private Kexample.com.+005+nnnnn.KSK.private
@@ -2246,7 +2246,7 @@ $include Kexample.com.+005+nnnnn.ZSK.key ; ZSK
Onderteken tenslotte de zone en vertel BIND om het ondertekende zonebestand te gebruiken. Voor het ondertekenen van een zone wordt dnssec-signzone gebruikt. Het commando om de zone `example.com`, dat zich in [.filename]#example.com.db# bevindt, zou er ongeveer zo uit moeten zien:
-[source,bash]
+[source,shell]
....
% dnssec-signzone -o example.com -k Kexample.com.+005+nnnnn.KSK example.com.db Kexample.com.+005+nnnnn.ZSK.key
....
@@ -2356,7 +2356,7 @@ apache22_flags=""
De configuratie van Apache kan worden getest op fouten voordat het daemon `httpd` voor de eerste keer wordt gestart, of na het maken van wijzigingen aan de instellingen terwijl `httpd` draait. Dit kan direct door het man:rc[8]-script worden gedaan, of door het gereedschap man:service[8] door één van de volgende commando's op te geven:
-[source,bash]
+[source,shell]
....
# service apache22 configtest
....
@@ -2368,7 +2368,7 @@ Het is belangrijk om op te merken dat `configtest` geen man:rc[8]-standaard is,
Als Apache geen instellingsfouten meldt, kan Apache `httpd` gestart worden met man:service[8]:
-[source,bash]
+[source,shell]
....
# service apache22 start
....
@@ -2388,7 +2388,7 @@ NameVirtualHost *
Als een webserver `www.domein.tld` heet en er moet een virtueel domein voor `www.anderdomein.tld` gaan draaien, dan kunnen de volgende regels aan [.filename]#httpd.conf# worden toegevoegd:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domein.tld
@@ -2434,7 +2434,7 @@ Django is afhankelijk van mod_python, Apache, en een SQL-database-engine naar ke
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/py-django; make all install clean -DWITH_MOD_PYTHON3 -DWITH_POSTGRESQL
....
@@ -2449,7 +2449,7 @@ Als Django en deze vereisten eenmaal zijn geïnstalleerd, dient u een Django-pro
====
U moet een regel aan het Apache-bestand [.filename]#httpd.conf# toevoegen om Apache in te stellen om verzoeken voor bepaalde URL's aan uw webapplicatie door te geven:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -2467,7 +2467,7 @@ U moet een regel aan het Apache-bestand [.filename]#httpd.conf# toevoegen om Apa
Ruby on Rails is een ader opensource webraamwerk dat een volledige ontwikkelstack biedt en geoptimaliseerd is om webontwikkelaars productiever te maken en snel krachtige applicaties te laten ontwikkelen. Het kan eenvoudig vanuit het portssysteem geïnstalleerd worden.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/rubygem-rails; make all install clean
....
@@ -2486,7 +2486,7 @@ Om ondersteuning voor PHP5 toe te voegen aan de Apache webserver kan eerst de po
Als de port package:lang/php5[] voor het eerst geïnstalleerd wordt, worden automatisch de beschikbare `OPTIONS` weergegeven. Als er geen menu wordt weergegeven, omdat de port package:lang/php5[] reeds in het verleden is geïnstalleerd, is het altijd mogelijk om het optiedialoog weer te laten verschijnen door
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2521,7 +2521,7 @@ AddModule mod_php5.c
Na voltooiing is een eenvoudige aanroep van het commando `apachectl` voor een nette herstart nodig om de module PHP te laden:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2534,7 +2534,7 @@ Om bijvoorbeeld ondersteuning voor de MySQL databaseserver aan PHP5 toe te voege
Na de installatie van een uitbreiding moet de Apache-server herladen worden om de nieuwe veranderingen in de configuratie op te pikken:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2574,14 +2574,14 @@ ftpd_enable="YES"
Na het instellen van de bovenstaande variabele zal de op zichzelf staande server gestart worden nadat de computer opnieuw is opgestart, of het kan handmatig worden gestart door het volgende commando als `root` uit te voeren:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Nu kan aangemeld worden op de FTP-server met:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2654,7 +2654,7 @@ Samba kent aan de achterkant verschillende authenticatiemodellen. Cliënten kunn
Als aangenomen wordt dat de standaard achterkant `smbpasswd` wordt gebruikt, dan moet [.filename]#/usr/local/etc/samba/smbpasswd# gemaakt worden om Samba in staat te stellen cliënten te authenticeren. Als het gewenst is om uw UNIX(R) gebruikersaccounts toegang te geven vanaf Windows(R) cliënten, gebruik dan het volgende commando:
-[source,bash]
+[source,shell]
....
# smbpasswd -a gebruikersnaam
....
@@ -2663,7 +2663,7 @@ Als aangenomen wordt dat de standaard achterkant `smbpasswd` wordt gebruikt, dan
====
De aanbevolen backend is nu `tdbsam`, en het volgende command moet gebruikt worden om gebruikersaccounts toe te voegen:
-[source,bash]
+[source,shell]
....
# pdbedit -a -u gebruikersnaam
....
@@ -2700,7 +2700,7 @@ Dit stelt Samba ook in om automatisch tijdens het opstarten te starten.
Vervolgens is het mogelijk om Samba op elk moment te starten door dit te typen:
-[source,bash]
+[source,shell]
....
# service samba start
Starting SAMBA: removing stale tdbs :
@@ -2714,7 +2714,7 @@ Samba bestaat feitelijk uit drie afzonderlijke daemons. Het script [.filename]#s
Samba kan op ieder moment gestopt worden met:
-[source,bash]
+[source,shell]
....
# service samba stop
....
@@ -2800,7 +2800,7 @@ De NTP-server kan bij het opstarten gestart worden door de regel `ntpd_enable="Y
Om de server zonder een herstart van de machine te starten kan `ntpd` uitgevoerd worden, met toevoeging van de parameters uit `ntpd_flags` in [.filename]#/etc/rc.conf#. Bijvoorbeeld:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -2878,14 +2878,14 @@ Er kunnen meerdere opties `-a` worden gespecificeerd om logging vanuit meerdere
Als laatste dient het logbestand gecreëerd te worden. De gebruikte manier maakt niet uit, maar man:touch[1] werkt prima in dit soort situaties:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
Nu dient het `syslogd`-daemon herstart en geverifieerd worden:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -2924,14 +2924,14 @@ De logserver moet in [.filename]#/etc/syslog.conf# van de cliënt zijn gedefinie
Eenmaal toegevoegd moet `syslogd` worden herstart zodat de veranderingen effect hebben:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Om te testen of logberichten over het netwerk worden verzonden, wordt man:logger[1] op de cliënt gebruikt om een bericht naar `syslogd` te sturen:
-[source,bash]
+[source,shell]
....
# logger "Testbericht van logclient"
....
@@ -2949,14 +2949,14 @@ In het volgende voorbeeld is [.filename]#/var/log/logclient.log# leeg, en noemt
syslogd_flags="-d -a logclien.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Debuggegevens zoals de volgende zullen meteen na de herstart over het scherm vliegen:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -2977,7 +2977,7 @@ syslogd_flags="-d -a logclien.example.com -v -v"
De regel dient `logclient`, niet `logclien` te bevatten. Nadat de juiste wijzigingen zijn gemaakt, wordt er herstart met de verwachte resultaten:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
diff --git a/documentation/content/nl/books/handbook/ports/_index.adoc b/documentation/content/nl/books/handbook/ports/_index.adoc
index 0a72e9ddc0..3f1d655d88 100644
--- a/documentation/content/nl/books/handbook/ports/_index.adoc
+++ b/documentation/content/nl/books/handbook/ports/_index.adoc
@@ -128,7 +128,7 @@ De lijst met voor FreeBSD beschikbare applicaties groeit continu. Gelukkig zijn
* Als de naam van de gewenst applicatie niet bekend is, is het wellicht mogelijk deze te achterhalen via een website als Freecode (http://www.freecode.com/[http://www.freecode.com/]) en kan daarna op de FreeBSD site gecontroleerd worden of de applicatie al geschikt gemaakt is voor gebruik met FreeBSD.
* Als de precieze naam van de port bekend is, maar niet bekend is in welke categorie deze staat, kan dit achterhaald worden met man:whereis[1]. Door simpelweg `whereis bestand` in te geven, waar _bestand_ het te installeren programma is. Als het op het systeem staat, wordt dat als volgt aangegeven:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -137,7 +137,7 @@ lsof: /usr/ports/sysutils/lsof
Dit geeft aan dat `lsof` (een systeemhulpprogramma) in de map [.filename]#/usr/ports/sysutils/lsof# staat.
* U kunt ook een eenvoudig man:echo[1]-statement gebruiken om uit te zoeken waar een port zich in te ports tree bevindt. Bijvoorbeeld:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -146,7 +146,7 @@ Dit geeft aan dat `lsof` (een systeemhulpprogramma) in de map [.filename]#/usr/p
Merk op dat dit alle overeenkomstige bestanden die gedownload zijn in de map [.filename]#/usr/ports/distfiles# terruggeeft.
* Nog een andere manier om een port op te sporen is door het ingebouwde zoekmechanisme van de Portscollectie te gebruiken. Hiervoor moet het huidige pad de map [.filename]#/usr/ports# zijn. Vanuit die map kan `make search name=programmanaam` uitgevoerd worden, waar _programmanaam_ de naam is van het programma dat wordt gezocht. Als bijvoorbeeld `lsof` wordt gezocht:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -181,7 +181,7 @@ Met man:pkg_add[1] kan een FreeBSD softwarepakket geïnstalleerd worden vanaf ee
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -212,7 +212,7 @@ ftp> exit
Als er lokaal geen bron is voor pakketten (zoals de FreeBSD CD-ROM-verzameling) dan is het waarschijnlijk makkelijker om de `-r` optie te gebruiken met man:pkg_add[1]. Deze optie zorgt er voor dat het hulpprogramma automatisch het correcte formaat en de juiste versie bepaalt en die daarna binnenhaalt en installeert vanaf een FTP site.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -232,7 +232,7 @@ De mappenstructuur van het pakkettensysteem is gelijk aan die van het portssyste
man:pkg_info[1] is een hulpprogramma dat de diverse geïnstalleerde pakketten toont en beschrijft.
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -242,7 +242,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
man:pkg_version[1] is een hulpprogramma dat een samenvatting van de versie van alle geïnstalleerde pakketten geeft. Het vergelijkt de versie van het pakket met de huidige versie in de Portscollectie.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -281,14 +281,14 @@ De symbolen in de tweede kolom geven aan hoe de geïnstalleerde versie staat ten
Voor het verwijderen van een geïnstalleerd pakket wordt het hulpprogramma man:pkg_delete[1] gebruikt.
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
Merk op dat man:pkg_delete[1] de volledige naam en het volledige nummer van het pakket nodig heeft; het bovenstaande commando zou niet werken als _xchat_ in plaats van _xchat-1.7.1_ was gegeven. Het is echter eenvoudig om man:pkg_version[1] te gebruiken om de versie van het geïnstalleerde pakket te achterhalen. U zou ook eenvoudigweg een wildcard kunnen gebruiken:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -323,21 +323,21 @@ Portsnap is een snel en gebruiksvriendelijk gereedschap om de Portscollectie te
. Download een gecomprimeerde momentopname van de Portscollectie naar [.filename]#/var/db/portsnap#.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Pak de momentopname bij het eerste gebruik van Portsnap uit naar [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Nadat het eerste gebruik van Portsnap is voltooid zoals hierboven is aangegeven, kan [.filename]#/usr/ports# worden bijgewerkt met:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -351,7 +351,7 @@ Als meer controle over de ports-boom nodig is (om bijvoorbeeld lokale veranderin
. Subversion moet geïnstalleerd zijn voordat het gebruikt kan worden om de ports-boom uit te checken. Als er reeds een kopie van de ports-boom aanwezig is, installeer dan Subversion als volgt:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -359,28 +359,28 @@ Als meer controle over de ports-boom nodig is (om bijvoorbeeld lokale veranderin
+
Als de ports-boom niet beschikbaar is, kan Subversion worden geïnstalleerd als een pakket:
+
-[source,bash]
+[source,shell]
....
# pkg_add -r subversion
....
+
Als pkgng wordt gebruikt om pakketten te beheren, kan Subversion in plaats daarvan worden geïnstalleerd met:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Check een kopie van de ports-boom uit. Gebruik voor een betere prestatie een specifieke link:{handbook}#mirrors-svn/[Subversion mirror] dichtbij u in plaats van _svn.FreeBSD.org_ in onderstaand commando. Committers dienen eerst de link:{committers-guide}#subversion-primer/[Subversion Primer] te lezen om er zeker van te zijn dat het juiste protocol is gekozen.
+
-[source,bash]
+[source,shell]
....
# svn checkout svn://svn.FreeBSD.org/ports/head /usr/ports
....
+
. Om [.filename]#/usr/ports# na de initiële checkout met Subversion bij te werken:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -407,7 +407,7 @@ Zorg ervoor dat [.filename]#/usr/ports# leeg is voordat csup voor het eerst gebr
. Draai `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -425,7 +425,7 @@ Het kan wenselijk zijn een aangepaste [.filename]#ports-supfile# te gebruiken, b
.. Wijzig _CHANGE_THIS.FreeBSD.org_ in een CVSup server in de buurt. In crossref:mirrors[cvsup-mirrors,CVSup Mirrors] (crossref:mirrors[cvsup-mirrors,CVSup sites]) staat een volledige lijst met mirrorsites.
.. Roep nu als volgt `csup` aan:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -444,7 +444,7 @@ Bij deze methode wordt sysinstall gebruikt om de Portscollectie van installatiem
. Draai als `root sysinstall` zoals hieronder aangegeven:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -476,21 +476,21 @@ De migratie zal ongeveer 1 GB aan schijfruimte op [.filename]#/usr# nodig hebben
. Schakel alle automatische updates aan ports die u gebruikt, zoals een man:cron[8]-taak die CVSup of csup uit.
. Verplaats de bestaande ports-boom naar een tijdelijke lokatie:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports /usr/ports.old
....
+
. Haal de nieuwe ports-boom met Portsnap op en pak deze uit in [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch extract
....
+
. Verplaats distfiles en bewaarde pakketten naar de nieuwe ports-boom:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports.old/distfiles /usr/ports
# mv /usr/ports.old/packages /usr/ports
@@ -498,21 +498,21 @@ De migratie zal ongeveer 1 GB aan schijfruimte op [.filename]#/usr# nodig hebben
+
. Verwijder de oude ports-boom:
+
-[source,bash]
+[source,shell]
....
# rm -rf /usr/ports.old
....
+
. Indien voorheen CVSup gebruikt werd, kan het nu worden gedeïnstalleerd:
+
-[source,bash]
+[source,shell]
....
# pkg_delete -r -v cvsup-without-gui-\*
....
+
Gebruikers van pkgng kunnen het volgende commando gebruiken:
+
-[source,bash]
+[source,shell]
....
# pkg remove cvsup-without-gui
....
@@ -554,14 +554,14 @@ De Portscollectie neemt aan dat er een werkende Internetverbinding is. Als die n
Ga om te beginnen naar de juiste map voor een port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Eenmaal in de map [.filename]#lsof# is het skelet van de port te zien. In de volgende stap wordt de broncode voor de port gecompileerd of "gebouwd". Dit wordt gedaan door op het prompt `make` in te voeren. Dat levert iets als het volgende op:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -586,7 +586,7 @@ Eenmaal in de map [.filename]#lsof# is het skelet van de port te zien. In de vol
Als het compileren is afgerond is het prompt weer zichtbaar. In de volgende stap wordt de port geïnstalleerd. Om dat te bewerkstelligen wordt het woord `install` aan `make` toegevoegd:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -606,7 +606,7 @@ Als de prompt weer beschikbaar is, is de applicatie klaar voor gebruik. Omdat `l
Het is verstandig om de submap die als werkmap wordt gebruikt te verwijderen. Hierin staan alle tijdelijke bestanden die tijdens het compileren worden gebruikt. Die bestanden gebruiken niet alleen waardevolle schijfruimte, maar ze kunnen later ook problemen veroorzaken als de port wordt bijgewerkt.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -652,7 +652,7 @@ Het is mogelijk alle ports in een categorie te bouwen door `make` in een hogere
In zeldzame gevallen willen of moeten gebruikers de tar-bestanden van een andere site dan de `MASTER_SITES` halen (de locatie waar de bestanden vandaan komen). Dat is mogelijk met de optie `MASTER_SITES` met een volgend commando:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -670,21 +670,21 @@ Sommige ports staan toe (of schrijven zelfs voor) dat er een aantal instellingen
Soms is het handig (of verplicht) om een andere map voor werk of ports te gebruiken. Met de variabelen `WRKDIRPREFIX` en `PREFIX` kunnen de standaardmappen veranderd worden:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
Het voorbeeld hierboven compileert de port in [.filename]#/usr/home/example/ports# en installeert alles in [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
Het voorbeeld hierboven compileert in [.filename]#/usr/ports# en installeert in [.filename]#/usr/home/example/local#.
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -706,7 +706,7 @@ Tijdens het bouwen van bepaalde ports kan er een menu dat op ncurses is gebaseer
Nu u weet hoe ports te installeren, zult u zich waarschijnlijk afvragen hoe ze te verwijderen, in het geval dat u er een installeert en later besluit dat u de verkeerde port heeft geïnstalleerd. We zullen ons vorige voorbeeld (`lsof`) verwijderen. Ports worden op precies dezelfde manier verwijderd als pakketten met het commando man:pkg_delete[1] (zoals beschreven in het onderdeel <<packages-using,Pakketten>>):
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -716,7 +716,7 @@ Nu u weet hoe ports te installeren, zult u zich waarschijnlijk afvragen hoe ze t
Stel als eerste een lijst samen met ports waarvoor een nieuwere versie beschikbaar is in de Portscollectie met het commando man:pkg_version[1]:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -733,7 +733,7 @@ Als [.filename]#UPDATING# tegenstrijdig is met wat hier beschreven is, moet men
Het hulpprogramma portupgrade is ontworpen om geïnstalleerde ports eenvoudig bij te werken. Het is beschikbaar via de port package:ports-mgmt/portupgrade[]. Installeer het net als iedere andere port met het commando `make install clean`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -743,21 +743,21 @@ Scan de lijst met geïnstalleerde ports met het commando `pkgdb -F` en corrigeer
Door het draaien van `portupgrade -a` zal portupgrade beginnen met het bijwerken van alle geïnstalleerde ports op een systeem waarvoor een nieuwere versie beschikbaar is. Met de vlag `-i` is het mogelijk in te stellen dat voor iedere bij te werken port om bevestiging wordt gevraagd.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Gebruik om alleen een specifieke applicatie bij te werken en niet alle beschikbare ports `portupgrade pkgname`. Gebruik de vlag `-R` om portupgrade eerst alle ports bij te laten werken die voor een bij te werken toepassing benodigd zijn.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Gebruik de vlag `-P` om bij installatie van pakketten in plaats van ports gebruik te maken. Met deze optie zoekt portupgrade in de lokale mappen uit `PKG_PATH` of haalt de pakketten via het netwerk op als ze lokaal niet worden aangetroffen. Als een pakket niet lokaal en niet via het netwerk wordt gevonden, dan gebruikt portupgrade ports. Om het gebruik van ports te voorkomen kan gebruik gemaakt worden van de optie `-PP`:
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -769,7 +769,7 @@ Om alleen de distributiebestanden op te halen (of pakketten als `-P` is opgegeve
portmaster is nog een gereedschap voor het bijwerken van geïnstalleerde ports. portmaster was ontworpen om gebruik te maken van de gereedschappen die in het "basis" systeem te vinden zijn (het hangt niet af andere ports) en het gebruikt de informatie in [.filename]#/var/db/pkg# om te bepalen welke ports bij te werken. Het is beschikbaar via de port package:ports-mgmt/portmaster[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -784,7 +784,7 @@ portmaster verdeelt ports in vier categoriën:
U kunt de optie `-L` gebruiken om alle geïnstalleerde ports tonen en naar updates te zoeken:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -811,7 +811,7 @@ U kunt de optie `-L` gebruiken om alle geïnstalleerde ports tonen en naar updat
Alle geïnstalleerde ports kunnen met dit eenvoudige commando worden bijgewerkt:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -823,14 +823,14 @@ Standaard maakt portmaster een back-up-pakket aan voordat het een bestaande port
Als u fouten tegenkomt tijdens het bijwerkproces, kunt u de optie `-f` gebruiken om alle ports bij te werken/te herbouwen:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
U kunt portmaster ook gebruiken om nieuwe ports op het systeem te installeren, en alle afhankelijkheden bijwerken voordat de nieuwe port gebouwd en geïnstalleerd wordt:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -842,21 +842,21 @@ Bekijk man:portmaster[8] voor meer informatie.
Werken met de Portscollectie kan in de loop der tijd veel schijfruimte gebruiken. Na het bouwen en installeren van software uit de ports, is het van belang altijd de tijdelijke mappen [.filename]#work# op te ruimen met het commando `make clean`. De complete Portscollectie kan geschoond worden met het volgende commando:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
In de loop der tijd komen ook veel oude bestanden met broncode in de map [.filename]#distfiles# te staan. Die kunnen handmatig verwijderd worden of met het volgende commando dat alle distributiebestanden waarnaar in de huidige ports geen verwijzingen meer staan verwijdert:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Of om alle distributiebestanden te verwijderen waardoor momenteel door geen één geïnstalleerde port op uw systeem wordt verwezen:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -877,7 +877,7 @@ De exacte stappen om een applicatie in te stellen zijn natuurlijk voor iedere ap
* Met man:pkg_info[1] kan uitgevonden worden welke bestanden geïnstalleerd zijn en waar. Om bijvoorbeeld uit te vinden welke bestanden door FooPackage versie 1.0.0 zijn geïnstalleerd:
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -886,7 +886,7 @@ Bestanden in mapnamen met [.filename]#man/# zijn hulppagina's, [.filename]#etc/#
+
Als niet helemaal duidelijk is welke versie van het programma is geïnstalleerd, kan een commando als volgt gebruikt worden:
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -895,7 +895,7 @@ Hiermee worden alle pakketten getoond waar _foopackage_ in de pakketnaam voorkom
* Als de hulppagina's zijn gevonden, kunnen die bekeken worden met man:man[1]. Zo kan er ook in de bestanden met voorbeeldinstellingen gekeken worden en naar aanvullende documentatie, als die is bijgeleverd.
* Als er een website is voor de applicatie staat daar vaak ook aanvullende documentatie, veelgestelde vragen, enzovoort. Als het webadres niet bekend is, kan dat nog staan in de uitvoer van het volgende commando:
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/nl/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/nl/books/handbook/ppp-and-slip/_index.adoc
index a9c0614b7d..42593337c2 100644
--- a/documentation/content/nl/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/nl/books/handbook/ppp-and-slip/_index.adoc
@@ -190,7 +190,7 @@ Als u gebruik maakt van PPP en CHAP, zal er geen login op dit moment zijn, en mo
+
De login regel is hetzelfde als de chat-achtige syntax van de inbelregel. In dit voorbeeld werkt de reegl voor een dienst wiens login sessie als volgt eruit ziet:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -305,7 +305,7 @@ exec /usr/sbin/ppp -direct $IDENT
Dit script moet uitvoerbaar zijn. Ook moet er een symbolische link gemaakt worden naar dit script met de naam [.filename]#ppp-dialup# door gebruik te maken van de volgende commando's:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -319,7 +319,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Creeër vervolgens een map [.filename]#/home/ppp# die door iedereen gelezen en beschreven kan worden en zet daar de volgende 0 byte grote bestanden in:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -333,7 +333,7 @@ Creeër het [.filename]#ppp-shell# bestand zoals hierboven, en voor elk account
Als u bijvoorbeeld drie inbel gebruikers hebt genaamd `fred`, `sam` en `mary` waar u een /24 CIDR netwerk voor routeert, moet u het volgende typen:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -602,7 +602,7 @@ sendmail_flags="-bd"
Het nadeel hiervan is dat u `sendmail` moet forceren om de mailqueue periodiek te bekijken zodra de ppp link op is door het typen van:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -621,14 +621,14 @@ Als u dit niet wilt doen, is het mogelijk om een "dfiler" in te stellen welke SM
Alles wat nu nog nodig is, is het herstarten van de machine. Na het herstarten kunt het volgende typen:
-[source,bash]
+[source,shell]
....
# ppp
....
en daarna `dial provider` om de PPP sessie te starten, of u indien u dat wilt kan `ppp` automatisch sessies opzetten wanneer er uitgaand verkeer is (en wanneer u geen [.filename]#start_if.tun0# script heeft aangemaakt), typt u:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -718,7 +718,7 @@ Om verbinding te maken:
. Stop Kermit (zonder de lijn op te hangen).
. Type het volgende:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/pppd /dev/tty01 19200
....
@@ -865,7 +865,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTtelefoon.nummer
Zodra deze zijn geïnstalleerd en correct aangepast is het enige dat gedaan moet worden, het starten van `pppd` zoals volgt:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1107,7 +1107,7 @@ device uart
Het apparaat [.filename]#uart# is al in de kernel `GENERIC` opgenomen, dus zijn er in dit geval geen extra stappen nodig. Controleer de resultaten van het commando `dmesg` voor het modemapparaat door middel van:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -1118,35 +1118,35 @@ U zou enige informatie moeten ontvangen over de [.filename]#uart# apparaten. Dez
Verbinding maken met het internet door handmatig controle te hebben over `ppp` is snel, makkelijk en een geweldige manier om problemen te vinden bij een verbinding of zelfs voor alleen het verkrijgen van inforamtie over hoe uw provider de `ppp` cliënt verbindingen behandelt. Laten we starten met PPP vanaf de commando regel. Let op dat in al onze voorbeelden we gebruik maken van _example_ als hostnaam van de machine die PPP draait. U start `ppp` door enkel het commando `ppp` te typen:
-[source,bash]
+[source,shell]
....
# ppp
....
We hebben nu `ppp` gestart.
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
We stellen ons modem in, in dit geval is dat [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
We stellen de verbindings snelheid in, in dit geval gebruiken we 115,200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Vertel `ppp` om onze naam vertaler te configuren, en de juiste naamserver regels toe te voegen aan [.filename]#/etc/resolv.conf#. Als `ppp` onze hostnaam niet kan bepalen, kunnen we deze later instellen.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -1159,7 +1159,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1168,56 +1168,56 @@ atdt123456789
Gebruik `at` om het modem te initialiseren, en daarna `atdt` en het nummer voor uw provider om het inbel proces te beginnen.
-[source,bash]
+[source,shell]
....
CONNECT
....
Bevestiging van de verbinding, als we tegen problemen aanlopen met de verbinding, welke niet gerelateerd zijn aan de hardware, is dit de plek om te beginnen om de problemen op te lossen.
-[source,bash]
+[source,shell]
....
provider login:myusername
....
Hier wordt u gevraagd om een gebruikersnaam. Geef de gebruikersnaam op welke aangeleverd is door de provider.
-[source,bash]
+[source,shell]
....
provider pass:mypassword
....
Deze keer worden we gevraagd voor een wachtwoord. Vul uw wachtwoord in welke u is aangeleverd door de provider. Net zoals het aanloggen op FreeBSD zal het wachtwoord niet getoond worden.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Afhankelijk van uw provider wordt deze prompt wellicht nooit getoond. Hier wordt ons gevraagd of we een shell willen starten op de host van de provider, of dat we `ppp` willen starten. In dit geval is er gekozen voor `ppp` omdat we een internet verbinding willen.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Let op dat in dit voorbeeld de eerste `p` een hoofdletter geworden is. Dit geeft aan dat we succesvol verbonden zijn met de provider.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
We hebben ons succesvol geauthenticeerd bij onze provider en we wachten op een IP-adres dat ons wordt toegewezen.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
We hebben een IP adres verkregen en hebben succesvol een verbinding opgebouwd.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -1236,14 +1236,14 @@ Het kan voorkomen dat PPP niet terugkeert naar de commando mode, wat meestal bet
Als u nooit een inlogin prompt krijgt is het zeer waarschijnlijk dat u PAP of CHAP authenticatie moet gebruiken in plaats van de UNIX(R) stijl in het voorbeeld hierboven. Om gebruik te maken van PAP of CHAP voegt u het volgende opties toe aan PPP voordat u de terminal mode ingaat:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname mijngebruikersnaam
....
Waarbij _mijngebruikersnaam_ moet worden vervangen met de gebruikersnaam die wordt toegewezen door de provider.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mijnwachtwoord
....
@@ -1303,7 +1303,7 @@ name_of_service_provider:
Als de `root` gebruiker kunt u het volgende draaien:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1357,7 +1357,7 @@ net.graph.nonstandard_pppoe=1
Dit kan ook direct gedaan worden met het commando:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -1464,14 +1464,14 @@ adsl:
Het is mogelijk om de verbinding makkelijk te initialiseren door het volgende commando als `root` uit te voeren:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
U kunt de status van de verbinding zien met het volgende commando:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1507,7 +1507,7 @@ adsl:
Omdat u het wachtwoord van uw account in het [.filename]#ppp.conf# bestand in leesbare vorm moet plaatsen, moet u ervoor zorgen dat niemand anders de inhoud van dit bestand kan lezen. De volgende serie van commando's zorgt ervoor dat het bestand alleen leesbaar is door de `root` gebruiker. Raadpleeg de handleidingen van man:chmod[1] en man:chown[8] voor verdere informatie.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1517,7 +1517,7 @@ Omdat u het wachtwoord van uw account in het [.filename]#ppp.conf# bestand in le
Dit opent een tunnel voor een PPP sessie naar uw DSL router. Ethernet DSL-modems hebben een voor geconfigureerd LAN IP adres waarmee u verbinding maakt. In het geval van de Alcatel SpeedTouch(TM) home is `10.0.0.138` het adres. Uw router documentatie vertelt u welk adres uw apparaat gebruikt. Om de tunnel te openen en om een PPP sessie op te zetten, start u het volgende commando:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -1530,7 +1530,7 @@ Het kan wenselijk zijn om een ampersand ("&") toe te voegen aan het einde van he
Er wordt een [.filename]#tun# virtueel tunnel apparaat gecreeërd voor interactie tussen de pptp en ppp processen. Zodra u terugbent op uw prompt, of als pptp bevestigd dat er een verbinding is, kunt u de tunnel als volgend inzien:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1657,7 +1657,7 @@ Het achterlaten van uw wachtwoord in leesbare tekst waar dan ook op het bestands
+
. Laat Kermit daar (het programma kan tijdelijk uitgeschakeld worden door kbd:[Ctrl+z]) en type vervolgens als `root`:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1669,7 +1669,7 @@ Als u in staat bent om andere hosten met `ping` te benaderen aan de andere kant
Doe het volgende::
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1688,7 +1688,7 @@ Als dit niet werkt, voelt u zich dan vrij om rond te vragen op de link:{freebsd-
* Het intypen van `s10` in plaats van `sl0` (het verschil is wellicht lastig te zien met sommige fonts).
* Probeer `ifconfig sl0` uit te voeren om de interface status te zien. U kunt bijvoorbeeld krijgen:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1697,7 +1697,7 @@ sl0: flags=10<POINTOPOINT>
* Als u `no route to host` krijgt van het man:ping[8] commando, is er mogelijk een probleem met uw route tabel. U kunt het `netstat -r` commando uitvoeren om de huidige routes te zien:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1771,7 +1771,7 @@ Standaard zal uw FreeBSD machine geen pakketten doorsturen. Als u wilt dat uw Fr
Om de instellingen meteen actief te maken kunt u het volgende commando als `root` uitvoeren:
-[source,bash]
+[source,shell]
....
# service routing start
....
@@ -1860,7 +1860,7 @@ De extra regel in het [.filename]#slip.login# bestand, `arp -s $5 00:11:22:33:44
Wanneer u gebruik maakt van het voorbeeld hierboven, wees u er dan zeker van dat u het Ethernet MAC adres (`00:11:22:33:44:55`) veranderd in het MAC adres van uw systeem's Ethernet kaart, anders werkt uw "proxy ARP" zeker niet! U kunt het Ethernet MAC adres van uw SLIP-server achterhalen door het bekijken van het resultaat van `netstat -i`; de tweede regel met resultaten moet er ongeveer als volgend uitzien:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/nl/books/handbook/preface/_index.adoc b/documentation/content/nl/books/handbook/preface/_index.adoc
index 1849cfdffe..fa95d2f14e 100644
--- a/documentation/content/nl/books/handbook/preface/_index.adoc
+++ b/documentation/content/nl/books/handbook/preface/_index.adoc
@@ -230,21 +230,21 @@ zou betekenen dat de gebruiker de kbd:[Ctrl] en kbd:[X] toetsen tegelijk moet in
Voorbeelden die beginnen met [.filename]#E:\# geven aan dat het een MS-DOS(R) commando betreft. Tenzij anders vermeld, kunnen deze commando's in een "Command prompt"scherm in een moderne Microsoft(R) Windows(R) omgeving worden gebruikt.
-[source,bash]
+[source,shell]
....
E:\ tools\fdimage floppies\kern.flp A:
....
Voorbeelden die starten met een # geven aan dat een commando ingegeven moet worden als de superuser in FreeBSD. Er kan aangemeld worden met `root` om het commando in te typen, of er kan na als gewone gebruiker aangemeld te hebben gebruikt gemaakt worden van man:su[1] om superuser-rechten te verkrijgen.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Voorbeelden die starten met % geven aan dat een commando opgegeven moet worden vanuit een normale gebruikersaccount. Tenzij anders vermeld, wordt de C-shell syntaxis gebruikt voor het instellen van omgevingsvariabelen en andere shellcommando's.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/nl/books/handbook/printing/_index.adoc b/documentation/content/nl/books/handbook/printing/_index.adoc
index aa2b0e2b55..152579f180 100644
--- a/documentation/content/nl/books/handbook/printing/_index.adoc
+++ b/documentation/content/nl/books/handbook/printing/_index.adoc
@@ -182,14 +182,14 @@ Het besturingssysteem is gecompileerd om met een beperkte verzameling apparaten
Om te achterhalen of de huidige kernel een seriële poort ondersteunt:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
Hier is _N_ het aantal seriële poorten, beginnende bij nul. Als de uitvoer op het volgende lijkt, dan wordt de poort door de kernel ondersteund:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -197,14 +197,14 @@ sio2: type 16550A
Om te achterhalen of de kernel een parallelle poort ondersteunt:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Hier is _N_ het aantal parallelle poorten beginnende bij nul. Als de uitvoer er ongeveer als volgt uit ziet, dan wordt de poort door de kernel ondersteund:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -243,7 +243,7 @@ hint.ppc.0.irq="N"
+
Het kernelinstellingenbestand moet ook het stuurprogramma man:ppc[4] bevatten:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -266,7 +266,7 @@ _Communicatietype instellen met_ man:lptcontrol[8]:
====
. Typ:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -274,14 +274,14 @@ _Communicatietype instellen met_ man:lptcontrol[8]:
om `lptN` op interrupt-gestuurde modus in te stellen.
. Typ:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
+
om `lptN` op polled modus in te stellen.
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -329,7 +329,7 @@ _Voer de volgende stappen uit om een printer op een parallelle poort te testen:_
** Gebruik man:lptest[1] als de printer platte tekst af kan drukken:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -338,7 +338,7 @@ Hier is _N_ het nummer van de parallelle poort, beginnende bij nul.
+
** Als de printer PostScript(R) of een andere printertaal begrijpt, stuur dan een klein programma naar de printer:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -347,7 +347,7 @@ Geef het programma regel voor regel _heel nauwkeurig_ in. Een regel kan niet wor
+
Het programma kan ook in een bestand worden opgeslagen:
+
-[source,bash]
+[source,shell]
....
# cat bestand > /dev/lptN
....
@@ -386,7 +386,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
. Maak verbinding met de printer met man:tip[1]:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -397,7 +397,7 @@ Als dit niet werkt, pas dan [.filename]#/etc/remote# opnieuw aan en probeer gebr
+
** Gebruik man:lptest[1] als de printer platte tekst af kan drukken:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -406,7 +406,7 @@ Als dit niet werkt, pas dan [.filename]#/etc/remote# opnieuw aan en probeer gebr
+
Het programma kan ook in een bestand worden opgeslagen:
+
-[source,bash]
+[source,shell]
....
% >bestand
....
@@ -499,14 +499,14 @@ Vanwege het veranderlijke karakter van wachtrijmappen is het gebruikelijk om dez
Het is ook gebruikelijk om de naam van de map overeen te laten komen met die van de printer, zoals onder is weergegeven:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/printernaam
....
Als er veel printers zijn aangesloten op een netwerk, is het beter de wachtrijmappen aan te maken in een enkele map die speciaal wordt gebruikt voor afdrukken met LPD. In dit voorbeeld wordt dat gedaan voor de printers `rattan` en `bamboo`:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -517,7 +517,7 @@ Als er veel printers zijn aangesloten op een netwerk, is het beter de wachtrijma
====
Als de afdrukopdrachten privé moeten blijven, dan is het belangrijk de wachtrijmap niet algemeen toegankelijk te maken. Wachtrijmappen moeten eigendom zijn van gebruiker `daemon` en groep `daemon`. Uitsluitend deze gebruiker en groep moeten de map kunnen lezen, schrijven en doorzoeken. We doen dit voor onze voorbeeldprinters:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -624,7 +624,7 @@ exit 2
Zorg dat het bestand uitvoerbaar is:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -662,7 +662,7 @@ lpd_enable="YES"
Of voer het commando man:lpd[8] uit:
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -676,7 +676,7 @@ Het programma man:lpr[1] is te combineren met het programma man:lptest[1] uit <<
_Om de eenvoudige installatie van LPD te testen:_
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinternaam
....
@@ -685,7 +685,7 @@ Hier is _printernaam_ de naam van een printer (of een alias) die in [.filename]#
Voor een PostScript(R)-printer moet het resultaat van het programma verschijnen. Als gebruik wordt gemaakt van man:lptest[1] ziet het resultaat er ongeveer zo uit:
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -908,7 +908,7 @@ Na de eenvoudige installatie, zoals beschreven in <<printing-simple,Eenvoudige p
Conversiefilters maken het afdrukken van verschillende bestanden eenvoudig. Stel dat veel gebruik gemaakt wordt van het tekstverwerkingsprogramma TeX en een PostScript(R) printer. Elke keer als door TeX een DVI-bestand wordt gegenereerd, kan dat niet direct afgedrukt worden. Het DVI-bestand moet omgezet worden naar PostScript(R). De te geven opdrachten zijn de volgende:
-[source,bash]
+[source,shell]
....
% dvips zeewieranalyse.dvi
% lpr zeewieranalyse.ps
@@ -916,7 +916,7 @@ Conversiefilters maken het afdrukken van verschillende bestanden eenvoudig. Stel
Na installatie van een conversiefilter voor DVI-bestanden kan deze handmatige conversie overgeslagen worden door LPD de conversie te laten uitvoeren. Elke keer als een DVI-bestand wordt afgedrukt, hoeft alleen de volgende opdracht gegeven te worden:
-[source,bash]
+[source,shell]
....
% lpr -d zeewieranalyse.dvi
....
@@ -1282,7 +1282,7 @@ LPD drukt een karakter voor pagina-einde af na elk voorblad. Als een printer een
Door het afdrukken van voorbladen aan te zetten, produceert LPD een _lang voorblad_ waarop in grote letters de gebruiker, host en opdracht te lezen zijn. Hier volgt een voorbeeld (`kelly` heeft de opdracht "outline" afgedrukt vanaf host `rose`):
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1322,7 +1322,7 @@ LPD geeft een paginabegin na deze tekst, zodat de opdracht op een nieuwe pagina
Als dit wenselijk is, kan LPD ook een _korte tekst_ op het voorblad afdrukken; geef hiervoor de optie `sb` (_short banner_, "kort voorblad") op in het bestand [.filename]#/etc/printcap#. Het voorblad ziet er dan als volgt uit:
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1551,7 +1551,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Op `orchid` moeten wachtrijmappen worden aangemaakt:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1560,7 +1560,7 @@ Op `orchid` moeten wachtrijmappen worden aangemaakt:
Nu kunnen gebruikers op `orchid` afdrukken op `rattan` en `bamboo`. Een gebruiker op `orchid` geeft bijvoorbeeld de volgende invoer:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1627,7 +1627,7 @@ Het LPD systeem maakt het heel makkelijk voor gebruikers om meerdere afdrukken v
Wanneer meerdere kopieën onwenselijk zijn, kan de optie `-#` van man:lpr[1] worden uitgeschakeld door de optie `sc` in [.filename]##/etc/printcap## op te nemen. Als gebruikers opdrachten versturen met de optie `-#`, zien ze het volgende:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1675,7 +1675,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Door de optie `sc` te gebruiken, wordt het gebruik van `lpr -#i` voorkomen, maar dat weerhoudt gebruikers er nog steeds niet van om man:lpr[1] meerdere keren te aanroepen of meerdere keren hetzelfde bestand te versturen in een opdracht:
-[source,bash]
+[source,shell]
....
% lpr voorverkoop.teken voorverkoop.teken voorverkoop.teken voorverkoop.teken voorverkoop.teken
....
@@ -1689,7 +1689,7 @@ Door gebruik te maken van het UNIX(R) groepmechanisme en de optie `rg` in [.file
Als gebruikers buiten de groep (inclusief `root`) naar de beheerde printer proberen te printen, worden ze begroet met het volgende bericht:
-[source,bash]
+[source,shell]
....
lpr: Not a member of the restricted group
....
@@ -1805,7 +1805,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
De wachtrijmap wordt opgegeven met de optie `sd`. Er wordt een limiet van drie megabyte ingesteld (wat gelijk staat aan 6144 schijfblokken) voor de hoeveelheid vrije schijfruimte die op het bestandssysteem beschikbaar moet zijn voordat LPD een opdracht op afstand accepteert:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1852,7 +1852,7 @@ Aangezien `lpf` geen ingebouwde logica voor bestandslocking kent, moet voor elke
Wanneer het tijd is om met gebruikers af te rekenen voor hun afdrukken, kan het programma man:pac[8] gedraaid worden. Ga naar de wachtrijmap van de printer waarvoor betaald moet worden en typ `pac`. Er verschijnt een dollar-centrische samenvatting zoals het volgende:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1891,7 +1891,7 @@ Druk de administratiegegevens alleen af voor gebruikersnamen _namen_.
In de standaard samenvatting die man:pac[8] genereert, is het aantal pagina's te zien dat iedere gebruiker vanaf een bepaalde host heeft afgedrukt. Wanneer de hostnaam niet van belang is (bijvoorbeeld omdat gebruikers iedere host kunnen gebruiken), gebruik dan `pac -m` om de volgende samenvatting te genereren:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1905,7 +1905,7 @@ total 337.00 154 $ 6.74
Om het verschuldigde bedrag te berekenen gebruikt man:pac[8] de optie `pc` uit [.filename]#/etc/printcap# (standaard aantal van 200 of 2 cent per pagina). Specificeer, in honderden centen, de prijs per pagina of per voet die berekent moet worden. Deze waarde kan worden aangepast door man:pac[8] aan te roepen met de optie `-p`. De eenheden van de optie `-p` zijn echter in dollars, niet in honderden centen. Bijvoorbeeld,
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1957,28 +1957,28 @@ Alledrie de commando's man:lpr[1], man:lprm[1] en man:lpq[1] accepteren een opti
Om bestanden af te drukken:
-[source,bash]
+[source,shell]
....
% lpr bestandsnaam ...
....
Dit drukt elk van de opgegeven bestanden af op de standaard printer. Als geen bestanden worden opgegeven, drukt man:lpr[1] de standaard invoer af. De volgende opdracht drukt bijvoorbeeld een paar belangrijke systeembestanden af:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
Om een specifieke printer te selecteren:
-[source,bash]
+[source,shell]
....
% lpr -P printernaam bestandsnaam ...
....
Dit voorbeeld drukt een lange opgave van de huidige map af op de printer `rattan`:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -1994,14 +1994,14 @@ Als man:lpr[1] wordt gebruikt om af te drukken, dan worden de gegevens die afdru
De wachtrij voor de standaardprinter kan worden weergegeven met man:lpq[1]. Voor een specifieke printer moet de optie `-P` meegegeven worden. Het volgende commando toont de wachtrij van printer `bamboo`:
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
Hieronder volgt een voorbeeld van de uitvoer van het commando `lpq`:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2018,7 +2018,7 @@ De allereerste regel uitvoer van man:lpq[1] is ook handig: die vertelt wat de pr
Het commando man:lpq[1] ondersteunt ook een optie `-l` om een gedetailleerd, lang overzicht te geven. Hieronder volgt voorbeelduitvoer van `lpq -l`:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2039,14 +2039,14 @@ Een gebruiker die van gedachten verandert over een af te drukken opdracht, kan e
Om een opdracht van de standaardprinter te verwijderen dient eerst met man:lpq[1] het opdrachtnummer gevonden te worden. Typ vervolgens:
-[source,bash]
+[source,shell]
....
% lprm opdrachtnummer
....
Om een opdracht van een specifieke printer te verwijderen, moet de optie `-P` worden toegevoegd. Het volgende commando verwijdert opdrachtnummer 10 uit de wachtrij van printer `bamboo`:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2064,7 +2064,7 @@ Zonder een opdrachtnummer, gebruikersnaam of `-` op de opdrachtregel, verwijdert
Gebruik de optie `-P` met bovenstaande snelkoppelingen om een specifieke printer in plaats van de standaard printer te selecteren. Het volgende voorbeeld verwijdert alle opdrachten van de huidige gebruiker uit de wachtrij van printer `rattan`:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2073,7 +2073,7 @@ Gebruik de optie `-P` met bovenstaande snelkoppelingen om een specifieke printer
====
Als in een netwerkomgeving wordt gewerkt, staat man:lprm[1] alleen toe opdrachten te verwijderen vanaf hosts waarvan de afdrukopdrachten zijn gegeven, ook als dezelfde printer vanaf andere hosts bereikbaar is. Het volgende voorbeeld demonstreert dit:
-[source,bash]
+[source,shell]
....
% lpr -P rattan mijnbestand
% rlogin orchid
@@ -2103,7 +2103,7 @@ De volgende opties voor man:lpr[1] zorgen voor de opmaak van de bestanden in de
Het volgende commando drukt bijvoorbeeld een DVI-bestand af (van het TeX typesettingsysteem) met de naam [.filename]#visrapport.dvi# op de printer `bamboo`:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d visrapport.dvi
....
@@ -2155,7 +2155,7 @@ Afdrukken van rastergegevens.
In het volgende voorbeeld wordt een mooi opgemaakte versie van de handleiding man:ls[1] afgedrukt op de standaardprinter:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2172,7 +2172,7 @@ Produceer een aantal van _kopieën_ kopieën van elk bestand in de opdracht, in
+
Dit voorbeeld drukt drie kopieën af van [.filename]#parser.c# gevolgd door drie kopieën van [.filename]#parser.h# op de standaardprinter:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2318,7 +2318,7 @@ exit 2
De opdracht produceerde een getrapt effect.::
Het resultaat ziet er als volgt uit:
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/nl/books/handbook/security/_index.adoc b/documentation/content/nl/books/handbook/security/_index.adoc
index 37798225c0..e0f5249cea 100644
--- a/documentation/content/nl/books/handbook/security/_index.adoc
+++ b/documentation/content/nl/books/handbook/security/_index.adoc
@@ -125,7 +125,7 @@ Natuurlijk moet een systeembeheerder de mogelijkheid hebben om `root` te worden.
Om een account volledig op slot te zetten, dient het commando man:pw[8] gebruikt te worden:
-[source,bash]
+[source,shell]
....
# pw lock staff
....
@@ -181,7 +181,7 @@ Maar zelfs als het [.filename]#bpf# apparaat is uitgeschakeld, dan zijn er nog [
Het veiligheidsniveau van de kernel kan op een aantal manieren worden ingesteld. De eenvoudigste manier om het veiligheidsniveau van een draaiende kernel te verhogen is met `sysctl` op de kernelvariabele `kern.securelevel`:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel=1
....
@@ -293,7 +293,7 @@ Nu worden vier verschillende acties besproken. Bij de eerste wordt `opiepasswd`
Gebruik het commando `opiepasswd` om OPIE voor de eerste keer te initialiseren:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -315,7 +315,7 @@ Als `Enter new secret pass phrase:` of `Enter secret password:` op het scherm ve
Om een wachtwoord te initialiseren of te wijzigen over een onveilige verbinding, moet er al ergens een veilige verbinding bestaan waar de gebruiker `opiekey` kan uitvoeren. Dit kan een shellprompt zijn op een machine die vertrouwd wordt. De gebruiker moet ook een iteratieteller verzinnen (100 is wellicht een prima getal) en een eigen zaad bedenken of er een laten fabriceren. Over de onveilige verbinding (naar de machine die de gebruiker wil initialiseren) wordt het commando `opiepasswd` gebruikt:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -334,7 +334,7 @@ LINE PAP MILK NELL BUOY TROY
Druk op kbd:[Return] om het standaardzaad te accepteren. Voor een toegangswachtwoord wordt ingevoerd, dient eerst gewisseld te worden naar de veilige verbinding en dienen dezelfde parameters ingegeven te worden:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -349,7 +349,7 @@ In de onveilige verbinding wordt nu het eenmalige wachtwoord in het relevante pr
Als OPIE eenmaal is ingesteld staat er bij het aanmelden iets als het volgende:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -369,7 +369,7 @@ Nu moet het eenmalige wachtwoord gemaakt worden om het aanmeldprompt mee te antw
Op het vertrouwde systeem:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -384,7 +384,7 @@ Nu het eenmalige wachtwoord er is, kan het aanmelden doorgang vinden.
Soms moet een gebruiker ergens naar toe gaan waar er geen toegang is tot een vertrouwde machine of een beveiligde verbinding. In dat geval is het mogelijk om met het commando `opiekey` een aantal eenmalige wachtwoorden te maken om uit te printen en mee te nemen:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -453,7 +453,7 @@ qpopper : ALL : allow
Nadat deze regel is toegevoegd moet inetd herstart worden door gebruik te maken van man:service[8]:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -617,7 +617,7 @@ Tenslotte, nog steeds in `kadmin`, kan de eerste principal gemaakt worden met `a
Hieronder een sessie waarin een voorbeelddatabase wordt aangemaakt:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -636,7 +636,7 @@ Verifying password - Password: xxxxxxxx
Nu kan de KDC dienst gestart worden met `service kerberos start` en `service kadmind start`. Op dit moment draait er nog geen enkele daemon die gebruik maakt van Kerberos. Bevestiging dat KDC draait is te krijgen door een ticket te vragen en dat uit te lezen voor de principal (gebruiker) die zojuist is aangemaakt vanaf de commandoregel van het KDC zelf:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -651,7 +651,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
Het ticket kan worden ingenomen wanneer u klaar bent:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -668,7 +668,7 @@ Let wel op dat er al een ticket moet zijn en dat dit ticket de `kadmin` interfac
Na het installeren van [.filename]#/etc/krb5.conf# kan `kadmin` van de Kerberos server gebruikt worden. Met `add --random-key` kan de host principal toegevoegd worden en met `ext` kan de host principal van de server naar zijn eigen keytab getrokken worden. Bijvoorbeeld:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -683,7 +683,7 @@ Let op: `ext` slaat de sleutel standaard op in [.filename]#/etc/krb5.keytab#.
Als `kadmind` niet beschikbaar is op de KDC (wellicht om beveiligingsredenen) en er via het netwerk dus geen toegang is tot `kadmin`, dan kan de host principal (`host/myserver.EXAMPLE.ORG`) ook direct aan de KDC toegevoegd worden en daarna in een tijdelijk bestand gezet worden. Het volgende kan gebruikt worden om te voorkomen dat [.filename]#/etc/krb5.keytab# op de KDC) wordt overschreven:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -721,7 +721,7 @@ Soms moet iemand zonder bijpassende Kerberos principal toch toegang hebben tot e
De bestanden [.filename]#.k5login# en [.filename]#.k5users# uit de gebruikersmap kunnen op eenzelfde manier gebruikt worden als [.filename]#.hosts# en [.filename]#.rhosts#. Zo wordt het voorgaande probleem opgelost. Als bijvoorbeeld een [.filename]#.k5login# met de volgende inhoud:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -830,7 +830,7 @@ Een van de meest gebruikte toepassingen van OpenSSL is het leveren van certifica
Voor het maken van certificaten is het volgende commando beschikbaar:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -865,21 +865,21 @@ Er horen nu twee bestanden te staan in de map waarin het voorgaande commando is
In gevallen waar ondertekening door een CA niet vereist is, kan een zelfondertekend certificaat gemaakt worden. Maak als eerste de RSA sleutel:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
Hierna kan de CA sleutel gemaakt worden:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Deze sleutel kan gebruikt worden om een certificaat te maken:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -913,7 +913,7 @@ Als alles goed is gegaan, dan staan er geen foutmeldingen [.filename]#/var/log/m
Maak als eenvoudige test een verbinding met de mailserver met man:telnet[1]:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -961,7 +961,7 @@ IPsec kan gebruikt worden om het verkeer tussen twee hosts direct te versleutele
Voor ondersteuning voor IPsec in de kernel zijn de volgende opties nodig in het kernelinstellingenbestand:
-[source,bash]
+[source,shell]
....
options IPSEC IP-beveiliging
device crypto
@@ -969,7 +969,7 @@ device crypto
Als er ook fouten in IPsec (debugging) verwijderd moeten kunnen worden, dan is de volgende optie ook nodig:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug voor IP-beveiliging
....
@@ -994,17 +994,17 @@ Om te beginnen moet de port package:security/ipsec-tools[] geïnstalleerd zijn v
De volgende benodigdheid is om twee man:gif[4] pseudo-apparaten aan te maken om de pakketten te tunnelen en beide netwerken in staat stellen om op een juiste wijze te communiceren. Draai als `root` de volgende commando's, waarbij de items _intern_ en _extern_ met de echte interne en externe gateways:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 intern1 intern2
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 tunnel extern1 extern2
....
@@ -1058,22 +1058,22 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
Zoals verwacht hebben beide kanten de mogelijkheid om ICMP-pakketten te verzenden en te ontvangen van de privaat geconfigureerde adressen. Vervolgens dient aan beide gateways verteld te worden hoe pakketten te routeren om op de juiste wijze verkeer van een van de netwerken te versturen. Het volgende commando doet dit:
-[source,bash]
+[source,shell]
....
# corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# corp-net# route add net 10.0.0.0: gateway 10.0.0.5
....
-[source,bash]
+[source,shell]
....
# priv-net# route add 10.246.38.0 10.246.38.1 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# priv-net# route add host 10.246.38.0: gateway 10.246.38.1
....
@@ -1185,7 +1185,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in esp/tunnel/192.168.1.12-172.16.5.4/u
Eenmaal aanwezig kan racoon op beide gateways gestart worden met het volgende commando:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1210,7 +1210,7 @@ Foreground mode.
Om er zeker van te zijn dat de tunnel correct werkt, dient naar een ander console geschakeld te worden en man:tcpdump[1] gebruikt te worden om hiermee het netwerkverkeer te bekijken. Vervang `em0` door de netwerkinterfacekaart indien nodig.
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1287,7 +1287,7 @@ sshd_enable="YES"
Hierdoor wordt man:sshd[8] geladen, het daemonprogramma voor OpenSSH, als het systeem de volgende keer opstart. Als alternatief is het mogelijk om man:rc[8] te gebruiken om OpenSSH te starten:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1296,7 +1296,7 @@ Hierdoor wordt man:sshd[8] geladen, het daemonprogramma voor OpenSSH, als het sy
man:ssh[1] werkt net zoals man:rlogin[1].
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1313,7 +1313,7 @@ Recente OpenSSH servers staan standaard ingesteld om alleen SSH v2 connecties to
Het commando man:scp[1] (secure copy) werkt gelijk aan man:rcp[1]. Het kopieert een bestand van of naar een andere machine, maar doet dat veilig.
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1339,7 +1339,7 @@ Daarnaast bieden het `sshd_program` (standaard [.filename]#/usr/sbin/sshd#) en `
In plaats van het gebruik van wachtwoorden kan man:ssh-keygen[1] gebruikt worden om DSA en RSA sleutels te maken om een gebruiker te autenticeren:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1374,7 +1374,7 @@ Het hulpprogramma man:ssh-agent[1] handelt de autenticatie af voor de geheime sl
Voordat man:ssh-agent[1] in een shell gebruikt kan worden dient het eerst gestart te worden met een shell als argument. Daarna kan de identiteit toegevoegd worden daar man:ssh-add[1] aan te roepen en de wachtwoordzin voor de geheime sleutel op te geven. Als deze stappen zijn voltooid kan een gebruiker met man:ssh[1] naar iedere host waar de corresponderende publieke sleutel is geïnstalleerd:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1399,7 +1399,7 @@ OpenSSH kan een tunnel maken waarin een ander protocol ingepakt kan worden zodat
Het volgende commando geeft man:ssh[1] aan dat er een tunnel voor telnet gemaakt moet worden:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1432,7 +1432,7 @@ Dit kan gebruikt worden om ieder willekeurig onveilig TCP protocol in te pakken
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1451,7 +1451,7 @@ Dit kan samen met een man:ssh-keygen[1] en extra gebruikersaccounts gebruikt wor
Op het werk staat een SSH server die verbindingen van buitenaf toestaat. Op hetzelfde netwerk op kantoor staat een mailserver waarop POP3 draait. Het netwerk of het netwerkpad tussen de locatie op Internet en kantoor is wellicht niet helemaal te vertrouwen. Om deze reden dient de mailserver op een veilige manier benaderd te worden. De oplossing is een SSH verbinding opzetten naar de SSH server op kantoor en dan door de tunnel heen een verbinding opzetten met de mailserver.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password:
@@ -1468,7 +1468,7 @@ Soms wil een gebruiker dan toch toegang krijgen tot andere (wellicht niet netwer
De oplossing ligt in het opzetten van een SSH verbinding naar een machine buiten de firewall en die tunnel te gebruiken om bij de Ogg Vorbis server te komen.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1506,7 +1506,7 @@ Het is van belang dat iedere gebruiker die zich moet kunnen aanmelden wordt geno
Nadat er wijzigingen zijn gemaakt aan [.filename]#/etc/ssh/sshd_config# dienen de bestanden in man:sshd[8] geladen te worden:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1567,7 +1567,7 @@ Hierboven is te zien dat mappen [.filename]#directory1#, [.filename]#directory2#
De ACLs van het bestandssysteem kunnen bekeken worden met het hulpprogramma man:getfacl[1]. Om de ACL op het bestand [.filename]#test# te bekijken zou het volgende commando nodig zijn:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1580,14 +1580,14 @@ other::r--
Om de ACL op dit bestand te wijzigen wordt het hulpprogramma man:setfacl[1] als volgt gebruikt:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
De vlag `-k` verwijdert alle bestaande ACLs van een bestand of bestandssysteem. De methode die de voorkeur geniet is `-b` gebruiken omdat die optie de basisvelden die nodig zijn voor het laten werken van de ACLs laat staan.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1605,7 +1605,7 @@ De port package:ports-mgmt/portaudit[] zoekt naar bekende beveiligingsproblemen
Voordat Portaudit gebruikt kan worden dient het geïnstalleerd te worden uit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -1614,7 +1614,7 @@ Tijdens het installatieproces worden de instellingenbestanden voor man:periodic[
Na de installatie kan de beheerder de database bijwerken en bekende kwetsbaarheden in geïnstalleerde pakketten bekijken met het volgende commando:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -1626,7 +1626,7 @@ De database wordt automatisch bijgewerkt tijdens de man:periodic[8] run; dus het
De software de uit de Portscollectie is geïnstalleerd kan op elk moment door een beheerder ge-audit worden met:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -1743,7 +1743,7 @@ Deze methode heeft voordelen en nadelen. Eén van de positieve punten is dat een
Voordat procesaccounting gebruikt kan worden dient het te worden ingeschakeld met de volgende commando's:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
# accton /var/account/acct
@@ -1754,7 +1754,7 @@ Eenmaal ingeschakeld begint accounting met het bijhouden van CPU statistieken, c
Informatie over uitgevoerde commando's kan bekeken worden met man:lastcomm[1]. Zo kan met `lastcomm` bijvoorbeeld weergegeven worden welke commando's door gebruikers op een specifieke man:ttys[5] zijn uitgevoerd:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
diff --git a/documentation/content/nl/books/handbook/serialcomms/_index.adoc b/documentation/content/nl/books/handbook/serialcomms/_index.adoc
index 0834a18911..4d6e05b25e 100644
--- a/documentation/content/nl/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/nl/books/handbook/serialcomms/_index.adoc
@@ -335,7 +335,7 @@ Bekijk de boodschappen tijdens het opstarten van de kernel om te zien of de kern
Gebruik het volgende commando om alleen de boodschappen die het woord `sio` bevatten te zien:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'uart'
# /sbin/dmesg | grep 'sio'
@@ -345,7 +345,7 @@ Gebruik het volgende commando om alleen de boodschappen die het woord `sio` beva
Voor bijvoorbeeld een FreeBSD 7._X_ systeem met vier seriële poorten zijn dit de opstartboodschappen van de kernel die specifiek zijn voor de seriële poorten:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -375,14 +375,14 @@ De meeste apparaten in de kernel worden benaderd met "speciale apparaatbestanden
Het apparaat [.filename]#ttyuN# (of [.filename]#cuauN#) is het gebruikelijke apparaat dat geopend dient te worden voor de applicaties. Wanneer een proces het apparaat opent, heeft het een standaardverzameling aan terminal I/O-instellingen. Bekijk deze instellingen met het volgende commando:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
Als de instellingen van dit apparaat veranderd worden, blijven de instellingen geldig totdat het apparaat gesloten wordt. Als het heropend wordt, gaat het terug naar de standaardverzameling. Om de standaardverzameling te veranderen, dient het apparaat voor de "initiële toestand" geopend te worden en die instellingen veranderd te worden. Om bijvoorbeeld de `CLOCAL`-modus, 8-bits-communicatie en `XON/XOFF`-gegevensstroombeheer voor apparaat [.filename]#ttyu5# standaard aan te zetten:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
@@ -391,7 +391,7 @@ De systeembrede initialisatie van de seriële apparaten wordt beheerd in [.filen
Om te voorkomen dat bepaalde instellingen door een applicatie worden veranderd, dienen wijzigingen aan het "slottoestand"-apparaat te worden aangebracht. Om bijvoorbeeld de snelheid van [.filename]#ttyu5# vast te zetten op 57600 bps:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -448,7 +448,7 @@ Er zijn minstens twee applicaties beschikbaar in het basissysteem van FreeBSD we
Om een connectie op te zetten vanaf een systeem dat FreeBSD draait naar een seriële connectie van een andere machine kan het volgende gedaan worden:
-[source,bash]
+[source,shell]
....
# cu -l serial-port-device
....
@@ -526,7 +526,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
Stuur na het maken van de benodigde veranderingen aan het bestand [.filename]#/etc/ttys# een SIGHUP-signaal (ophangen) naar het proces `init` om het te dwingen het instellingenbestand opnieuw te lezen:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -553,14 +553,14 @@ Controleer of de terminal en FreeBSD dezelfde bps-snelheid en pariteit gebruiken
Controleer of er een proces `getty` draait dat de terminal bedient. Om bijvoorbeeld een lijst van draaiende `getty`-processen te krijgen:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Er zou een regel voor de terminal zichtbaar moeten zijn. Het volgende scherm geeft bijvoorbeeld weer dat `getty` op de tweede seriële poort [.filename]#ttyu1# draait en de regel `std.38400` in [.filename]#/etc/gettytab# gebruikt:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
....
@@ -641,7 +641,7 @@ FreeBSD ondersteunt EIA RS-232C (CCITT V.24) communicatie-interfaces gebaseerd o
Net als met terminals zet `init` een `getty`-proces op voor elke seriële poort die voor inbelverbindingen is ingesteld. Indien bijvoorbeeld een modem aan [.filename]#/dev/ttyu0# is gekoppeld, kan het commando `ps ax` het volgende weergeven:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyu0
....
@@ -746,7 +746,7 @@ Het standaard terminaltype (`dialup` in bovenstaand voorbeeld) mag afhangen van
Nadat [.filename]#/etc/ttys# gewijzigd is, kan aan het proces `init` een signaal HUP gestuurd worden om het bestand opnieuw te laten lezen. Gebruik volgende opdracht om het signaal te versturen:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -859,7 +859,7 @@ Verbind een modem met een FreeBSD-systeem, start het systeem op en kijk, indien
Geef als de DTR-indicator niet oplicht, na aanmelden op de console, de opdracht `ps ax` om te zien of FreeBSD probeert een `getty`-proces op de juiste poort te draaien. Er dienen tussen de weergegeven processen regels zoals de onderstaande te verschijnen:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu1
@@ -867,7 +867,7 @@ Geef als de DTR-indicator niet oplicht, na aanmelden op de console, de opdracht
Er kan ook iets als het volgende verschijnen:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -928,7 +928,7 @@ Gebruik voor de mogelijkheid `br` de hoogst ondersteunde snelheid van het modem
Als alternatief kan `cu` als `root` met het volgende commando gebruikt worden:
-[source,bash]
+[source,shell]
....
# cu
-llijn
@@ -962,7 +962,7 @@ tip57600|Bel elk telefoonnummer met 57600 bps:\
Hierna zijn onder andere de volgende mogelijkheden beschikbaar:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -977,7 +977,7 @@ cu115200|Gebruik cu om elk nummer met 115200bps te bellen:\
Voer in:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1104,7 +1104,7 @@ Deze sectie neemt aan dat de standaard opstelling wordt gebruikt en dat een kort
. Verbind de seriële kabel met [.filename]#COM1# en de leidende terminal;
. Om alle opstartmeldingen op de seriële console te zien, dient het volgende commando als supergebruiker uitgevoerd te worden:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1197,7 +1197,7 @@ De opties, behalve `-P`, worden aan de opstartlader ([.filename]#/boot/loader# d
+
Als FreeBSD gestart wordt, tonen de opstartblokken de inhoud van [.filename]#/boot.config# op de console. Bijvoorbeeld:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1234,7 +1234,7 @@ Na de bovenstaande berichten is er een korte pauze voordat de opstartblokken doo
+
Om het opstartproces te onderbreken, kan op elke andere toets dan kbd:[Enter] gedrukt worden. De opstartblokken vragen dan om verdere actie. Er verschijnt iets als het volgende:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1401,7 +1401,7 @@ device sio1 at isa? port IO_COM2 flags 0x30 irq 3
Stel de consolevlaggen voor de andere seriële poorten niet in;
. Hercompileer en installeer de opstartblokken en de opstartlader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/nl/books/handbook/users/_index.adoc b/documentation/content/nl/books/handbook/users/_index.adoc
index 81426647e8..ab9e925997 100644
--- a/documentation/content/nl/books/handbook/users/_index.adoc
+++ b/documentation/content/nl/books/handbook/users/_index.adoc
@@ -167,7 +167,7 @@ man:adduser[8] is een eenvoudig programma voor het aanmaken van nieuwe gebruiker
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -238,7 +238,7 @@ Standaard wordt een interactieve modus gebruikt, die ervoor zorgt dat alle stapp
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -274,7 +274,7 @@ Er zal om uw wachtwoord gevraagd worden na het verlaten van de tekstverwerker, a
[example]
====
-[source,bash]
+[source,shell]
....
#Informatie in de gebruikersdatabase wijzigen voor jru.
Login: jru
@@ -301,7 +301,7 @@ Een normale gebruiker kan slechts een deel van de bovenstaande informatie wijzen
[example]
====
-[source,bash]
+[source,shell]
....
#Informatie in de gebruikersdatabase wijzigen voor jru.
Shell: /usr/local/bin/zsh
@@ -333,7 +333,7 @@ Om onbedoelde of ongeautoriseerde wijzigen te voorkomen moet het originele wacht
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -350,7 +350,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -387,7 +387,7 @@ Aanmeldklassen worden ingesteld in [.filename]#/etc/login.conf#. De precieze sem
====
Een systeem leest de instellingen uit normaal gesproken [.filename]#/etc/login.conf# niet direct, maar leest het databasebestand [.filename]#/etc/login.conf.db# welke snellere opzoekmogelijkheden biedt. [.filename]#/etc/login.conf.db# kan met het volgende commando gemaakt worden uit [.filename]#/etc/login.conf#:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -452,7 +452,7 @@ Als het onwenselijk is om [.filename]#/etc/group# met de hand aan te passen, dan
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -467,7 +467,7 @@ Het getal `1100` hierboven is het groep ID van de groep `teamtwo`. Met de huidig
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -482,7 +482,7 @@ Het argument voor de optie `-M` is een door komma's gescheiden lijst van gebruik
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -497,7 +497,7 @@ Het argument voor de optie `-m` is een door komma's gescheiden lijst van gebruik
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/nl/books/handbook/virtualization/_index.adoc b/documentation/content/nl/books/handbook/virtualization/_index.adoc
index a48a6cc5f8..b3263fbca0 100644
--- a/documentation/content/nl/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/nl/books/handbook/virtualization/_index.adoc
@@ -327,7 +327,7 @@ De volgende commando's worden gedraaid in de FreeBSD-gast.
Installeer ten eerste het pakket package:emulators/virtualbox-ose-additions[] in de FreeBSD-gast.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -424,7 +424,7 @@ VirtualBox(TM) is een actief ontwikkeld en compleet virtualisatiepakket dat besc
VirtualBox(TM) is beschikbaar als een FreeBSD-port in package:emulators/virtualbox-ose[]. Zorg ervoor, aangezien VirtualBox(TM) erg actief ontwikkeld wordt, dat uw ports bijgewerkt is voordat u met de installatie begint. Installeer het met deze commando's:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -434,7 +434,7 @@ Een nuttige optie in het configuratiescherm is de verzameling `GuestAdditions` p
Er zijn enkele aanpassingen aan de instellingen nodig voordat VirtualBox(TM) voor het eerst wordt gestart. De port installeert een kernelmodule in [.filename]#/boot/modules# welke in de draaiende kernel geladen moet worden:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -455,7 +455,7 @@ vboxnet_enable="YES"
De groep `vboxusers` wordt tijdens de installatie van VirtualBox(TM) aangemaakt. Alle gebruikers die toegang tot VirtualBox(TM) nodig hebben moeten als lid van deze groep worden toegevoegd. Met het commando `pw` kunnen nieuwe leden worden toegevoegd:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m uwgebruikersnaam
....
@@ -464,7 +464,7 @@ De standaardpermissies voor [.filename]#/dev/vboxnetctl# zijn restrictief en moe
Om het tijdelijk te testen:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -480,7 +480,7 @@ perm vboxnetctl 0660
Gebruik de optie [.guimenuitem]#Sun VirtualBox# van het menu van de grafische omgeving of typ het volgende in een terminal om VirtualBox(TM) te starten:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -497,7 +497,7 @@ Voor deze stappen is VirtualBox 4.0.0 of nieuwer nodig.
Om van UBS-apparaten te kunnen lezen en ernaar te kunnen schrijven dienen gebruikers lid te zijn van de groep operator:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m jerry
....
@@ -519,7 +519,7 @@ devfs_system_ruleset="system
Herstart vervolgens devfs:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -538,7 +538,7 @@ HAL moet draaien om de DVD/CD-functies van VirtualBox(TM) te laten werken, zet h
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -552,7 +552,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
diff --git a/documentation/content/nl/books/handbook/x11/_index.adoc b/documentation/content/nl/books/handbook/x11/_index.adoc
index 27fc0d0417..7c15b91c66 100644
--- a/documentation/content/nl/books/handbook/x11/_index.adoc
+++ b/documentation/content/nl/books/handbook/x11/_index.adoc
@@ -146,7 +146,7 @@ Xorg is de X11-implementatie voor FreeBSD. Xorg is de X11 server van de open sou
Om Xorg vanuit de Portscollectie te bouwen en te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -161,7 +161,7 @@ X11 kan ook als pakket geïnstalleerd worden doordat er binaire pakketten beschi
Om het pakket voor Xorg op te halen en te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -206,7 +206,7 @@ Deze diensten dienen gestart te worden (ofwel handmatig of door opnieuw op te st
Xorg werkt vaak zonder enige verdere configuratie door het volgende op de prompt te typen:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -220,7 +220,7 @@ Bureaubladomgevingen als GNOME, KDE, of Xfce hebben gereedschappen waarmee de ge
Het instellen van X11 bestaat uit meerdere stappen. De eerste stap is het bouwen van een instellingenbestand. Dit kan als de supergebruiker met:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -229,7 +229,7 @@ Dit genereert een kaal X11-instellingenbestand in de map [.filename]#/root# met
De volgende stap is het testen van de bestaande instellingen om te controleren of Xorg met de grafische kaart van het doelsysteem kan werken. Typ:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -240,7 +240,7 @@ Als er een zwart/grijs rooster en een X muis cursor verschijnen was de instellin
====
De toetsencombinatie kbd:[Ctrl+Alt+Backspace] kan ook gebruikt worden om uit Xorg te breken. Om het aan te zetten, kunt u òfwel het volgende commando uitvoeren vanaf elke X-terminal-emulator:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -304,7 +304,7 @@ U dient uw machine opnieuw op te starten om hald te forceren om dit bestand te l
Het is mogelijk om hetzelfde te bereiken vanaf een X-terminal of een script met dit commando:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -360,7 +360,7 @@ Bij het oplossen van problemen zijn de logboekbestanden van X11 vaak een goede h
Als alles is ingesteld, moet het instellingenbestand op een plaats gezet worden waar man:Xorg[1] het kan vinden. Dit is meestal [.filename]#/etc/X11/xorg.conf# of [.filename]#/usr/local/etc/X11/xorg.conf#:
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -449,7 +449,7 @@ De standaard lettertypen van X11 zijn allerminst ideaal voor het typische bureau
Om de bovenstaande Type1 lettertypecollectie van de Portscollectie te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -464,7 +464,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
Ook kan op de commando regel in de X sessie het volgende gestart worden:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -484,7 +484,7 @@ Load "freetype"
Hierna dient een map voor de TrueType(R) lettertypen gemaakt te worden (bijvoorbeeld [.filename]#/usr/local/lib/X11/fonts/TrueType#) en alle TrueType(R) lettertypen moeten naar deze map gekopieerd worden. TrueType(R) lettertypen kunnen niet direct van een Macintosh(R) gehaald worden. Ze moeten in een UNIX(R)/MS-DOS(R)/Windows(R) formaat zijn voor X11. Zodra de bestanden naar deze map zijn gekopieerd, kan ttmkfdir gestart worden om een [.filename]#fonts.dir# bestand te maken zodat de X lettertyperenderer weet waar deze nieuwe bestanden zijn geïnstalleerd. `ttmkfdir` zit in de FreeBSD Portscollectie als package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -492,7 +492,7 @@ Hierna dient een map voor de TrueType(R) lettertypen gemaakt te worden (bijvoorb
Nu moet de TrueType(R) map toe aan het lettertypepad toegevoegd worden. Dit gebeurt op dezelfde wijze als boven is beschreven voor <<type1,Type1>> lettertypen:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -527,7 +527,7 @@ Zoals al eerder is vermeld zijn alle lettertypen in [.filename]#/usr/local/lib/X
Na het toevoegen van nieuwe lettertypen en zeker nieuwe lettertypemappen dienen de lettertypecaches opnieuw opgebouwd worden met:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -640,7 +640,7 @@ XDM levert de gebruiker dezelfde functionaliteit levert als man:getty[8] (zie cr
Om XDM te gebruiken moet de port package:x11/xdm[] geïnstalleerd worden (het wordt in recente versies van Xorg niet standaard geïnstalleerd). Het daemon-programma XDM is daarna beschikbaar in [.filename]#/usr/local/bin/xdm#. Dit programma kan als `root` altijd gestart worden en regelt dan het X weergavegedeelte van de lokale machine. Als XDM iedere keer bij het opstarten moet starten is het handig om een regel toe te voegen aan [.filename]#/etc/ttys#. Meer informatie over het gebruik van dit bestand staat in crossref:serialcomms[term-etcttys,Een regel aan /etc/ttys toevoegen]. In de standaardversie van [.filename]#/etc/ttys# staat een regel om de applicatie daemon XDM op een virtuele terminal te draaien:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -718,7 +718,7 @@ Hierin staan de meldingen die de X servers geven als XDM ze probeert te starten.
Om gebruikers een verbinding te laten maken met een X server moeten de toegangsregels gewijzigd worden en de connectielistener moet aangezet worden. Deze hebben standaard wat terughoudende waarden. Om XDM te laten luisteren naar verbindingen moet als eerste een regel uitgecommentarieerd worden in [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with XDM
@@ -751,14 +751,14 @@ De software kan eenvoudig worden geïnstalleerd vanuit een pakket of de Portscol
Om het GNOME pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
Om GNOME vanuit de Portscollectie te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -793,7 +793,7 @@ gnome_enable="YES"
GNOME kan ook gestart worden vanaf de commandoregel door het bestand [.filename]#.xinitrc# juist in te stellen. Als er al een [.filename]#.xinitrc# is, dan hoeft alleen de regel die de huidige window manager start veranderd te worden in een regel die /usr/local/bin/gnome-session start. Als er niets speciaals met dit instellingenbestand is gedaan:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -805,7 +805,7 @@ Nu kan met `startx` de GNOME bureaubladomgeving gestart worden.
Als een beeldschermmanager als XDM gebruikt wordt werkt het bovenstaande niet. In plaats daarvan moet een uitvoerbaar [.filename]#.xsession# gemaakt worden met hetzelfde commando erin. Hiervoor moet het bestand aangepast worden door het bestaande window manager commando te vervangen door /usr/local/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -842,14 +842,14 @@ Net als bij GNOME of iedere andere bureaubladomgeving kan de software eenvoudig
Om het KDE 3 pakket van het netwerk te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
Om het KDE 4 pakket van het netwerk te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -858,7 +858,7 @@ man:pkg_add[1] haalt automatisch de laatste versie van de applicatie op.
Om KDE 3 vanuit de Portscollectie te bouwen en te installeren:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -866,7 +866,7 @@ Om KDE 3 vanuit de Portscollectie te bouwen en te installeren:
Gebruik de Portscollectie om KDE 4 vanuit de broncode te bouwen:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -876,14 +876,14 @@ Nadat KDE geïnstalleerd is, moet de X server verteld worden dat déze applicati
Voor KDE 3:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
Voor KDE 4:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -942,14 +942,14 @@ Meer informatie over Xfce staat op de http://www.xfce.org/[Xfce website].
Xfce is met een pakket te installeren:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Of vanuit de Portscollectie:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -957,7 +957,7 @@ Of vanuit de Portscollectie:
Nu moet de X server weten dat Xfce gestart moet worden als X de volgende keer start:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/pl/articles/filtering-bridges/_index.adoc b/documentation/content/pl/articles/filtering-bridges/_index.adoc
index 31f5812a40..4525307679 100644
--- a/documentation/content/pl/articles/filtering-bridges/_index.adoc
+++ b/documentation/content/pl/articles/filtering-bridges/_index.adoc
@@ -112,7 +112,7 @@ Jeśli pojawią się jakiekolwiek problemy, należy się z nimi uporać przed pr
Uruchomienie mostu polega na wykonaniu następującej sekwencji poleceń (nazwy przykładowych interfejsów sieciowych [.filename]#fxp0# i [.filename]#xl0# należy zastąpić nazwami własnych interfejsów):
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge_cfg=fxp0:0,xl0:0
# sysctl net.link.ether.bridge_ipfw=1
diff --git a/documentation/content/pl/articles/new-users/_index.adoc b/documentation/content/pl/articles/new-users/_index.adoc
index 401d86ce2f..ad503c44b5 100644
--- a/documentation/content/pl/articles/new-users/_index.adoc
+++ b/documentation/content/pl/articles/new-users/_index.adoc
@@ -39,7 +39,7 @@ Gdy ujrzysz komunikat `login:`, zaloguj się jako użytkownik utworzony podczas
Aby się wylogować (i powrócić do komunikatu `login:`), napisz:
-[source,bash]
+[source,shell]
....
# exit
....
@@ -48,21 +48,21 @@ Oczywiście, wydane polecenia potwierdza się wciskając kbd:[enter]. Trzeba tak
By wyłączyć komputer, napisz
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
By natomiast uruchomić go ponownie
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
lub
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -73,7 +73,7 @@ Ponowne uruchomienie można też wykonać za pomocą kbd:[Ctrl+Alt+Delete]. W ob
Jeżeli nie dodawałeś użytkowników podczas instalacji systemu, i jesteś zalogowany jako root, powinieneś teraz utworzyć użytkownika poleceniem
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -82,7 +82,7 @@ Przy pierwszym korzystaniu z adduser mogą pojawić się pytania o pewne ustawie
Dla przykładu, chcesz dodać użytkownika `marek` o nazwisku __Marek Piegus__. Dla bezpieczeństwa przydziel markowi hasło (choćby w obawie przed wszędobylskimi dzieciakami). Gdy zobaczysz pytanie, do jakich innych grup ma należeć marek, wpisz `wheel`
-[source,bash]
+[source,shell]
....
Login group is "marek". Invite marek into other groups: wheel
....
@@ -158,7 +158,7 @@ Spróbuj użyć `whatis` by otrzymać opisy najczęściej używanych poleceń, n
Niektóre z powyższych poleceń mogą działać nie całkiem prawidłowo. Działanie man:locate[1] i man:whatis[1] uzależnione jest od bazy danych, która aktualizowana jest raz na tydzień. Jeżeli nie planujesz zostawiać włączonego komputera (z uruchomionym FreeBSD) na weekend, powinieneś co jakiś czas uruchomić polecenia codziennej, cotygodniowej i comiesięcznej obsługi. Uruchamiaj je jako root i daj każdemu z nich nieco czasu na wykonanie pracy przed uruchomieniem kolejnego.
-[source,bash]
+[source,shell]
....
# periodic daily
pominięto wyniki
@@ -178,14 +178,14 @@ Konfigurowanie systemu wiąże się z edytowaniem plików tekstowych. Większoś
Zanim zabierzesz się za edycję pliku, dobrze byłoby zrobić jego kopię zapasową. Jeżeli na przykład chcesz edytować [.filename]#/etc/rc.conf#, możesz przejść do katalogu [.filename]#/etc# poleceniem `cd /etc` i napisać:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
W rezultacie plik [.filename]#rc.conf# zostałby skopiowany jako [.filename]#rc.conf.orig#. Mógłbyś później przywrócić oryginalny plik kopiując [.filename]#rc.conf.orig# jako [.filename]#rc.conf#. Jeszcze lepszym wyjściem jest przeniesienie pliku (zmiana nazwy) i późniejsze skopiowanie go z powrotem:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -193,7 +193,7 @@ W rezultacie plik [.filename]#rc.conf# zostałby skopiowany jako [.filename]#rc.
Polecenie `mv` zachowuje oryginalną datę i właściciela pliku. Możesz już edytować [.filename]#rc.conf#. Gdy zechcesz powrócić do poprzedniego pliku, napisz `mv rc.conf rc.conf.moje` (o ile chcesz również zachować swoją wersję), a następnie
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -202,7 +202,7 @@ Powrócisz w ten sposób do poprzedniego stanu.
Edycję pliku rozpoczyna się poleceniem
-[source,bash]
+[source,shell]
....
# vi nazwapliku
....
@@ -255,14 +255,14 @@ Możesz teraz, przy pomocy `cd`, przejść do [.filename]#/etc# i zostać rootem
Zapewne twoja drukarka nie jest jeszcze gotowa do pracy w FreeBSD, by więc wydrukować plik trzeba będzie przenieść go na dyskietkę i wydrukować w DOS-ie. Załóżmy, iż chciałbyś uważnie przeczytać stronę dokumentacji omawiającą dokonywanie zmian w prawach dostępu do plików (co jest dosyć ważnym zagadnieniem); możesz ją zobaczyć wpisując `man chmod`. Natomiast polecenie
-[source,bash]
+[source,shell]
....
% man chmod | col -b > chmod.txt
....
spowoduje usunięcie znaczników formatujących i zamiast pokazywać stronę dokumentacji na ekranie, zapisze ją w pliku [.filename]#chmod.txt#. Włóż teraz sformatowaną dyskietkę do stacji A, skorzystaj z `su` by zostać rootem, i wpisz
-[source,bash]
+[source,shell]
....
# /sbin/mount -t msdos /dev/fd0 /mnt
....
@@ -271,7 +271,7 @@ Powyższe polecenie zamontuje stację dyskietek w katalogu [.filename]#/mnt#.
Uprawnienia roota nie są już potrzebne, możesz więc wpisać `exit` by z powrotem korzystać z konta marka. Przejdź teraz do katalogu, w którym utworzyłeś plik [.filename]#chmod.txt# i skopiuj go na dyskietkę poleceniem:
-[source,bash]
+[source,shell]
....
% cp chmod.txt /mnt
....
@@ -280,7 +280,7 @@ Po wpisaniu `ls /mnt` powinieneś zobaczyć, że w katalogu [.filename]#/mnt# zn
Niekiedy warto zapisać w pliku to, co wyświetla [.filename]#/sbin/dmesg#. Można to zrobić wpisując
-[source,bash]
+[source,shell]
....
% /sbin/dmesg > dmesg.txt
....
@@ -289,7 +289,7 @@ Potem można skopiować [.filename]#dmesg.txt# na dyskietkę. `/sbin/dmesg` poka
Możesz już odmontować stację dyskietek (jako root), wydając polecenie
-[source,bash]
+[source,shell]
....
# /sbin/umount /mnt
....
@@ -323,7 +323,7 @@ dokumentacja Uniksowego systemu plików
Aby odnaleźć plik [.filename]#nazwapliku# w [.filename]#/usr# lub jego podkatalogach, skorzystaj z polecenia `find`:
-[source,bash]
+[source,shell]
....
% find /usr -name "nazwapliku"
....
@@ -340,7 +340,7 @@ Jeżeli opis instalacji portów z CDROM-u zawarty w podręczniku wydaje ci się
Znajdź port, który chcesz zainstalować, powiedzmy, że będzie to `kermit`. Na CDROM-ie znajdziesz jego katalog. Skopiuj ten katalog do [.filename]#/usr/local# (to dobre miejsce na dodatkowe programy, które mają być dostępne dla wszystkich użytkowników) poleceniem:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -351,7 +351,7 @@ Następnie korzystając z polecenia `mkdir` utwórz katalog [.filename]#/usr/por
Teraz poleceniem `cd` przejdź do podkatalogu [.filename]#/usr/local/kermit# zawierającego plik [.filename]#Makefile#. Napisz
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/pl/books/handbook/advanced-networking/_index.adoc b/documentation/content/pl/books/handbook/advanced-networking/_index.adoc
index fc1725c0b1..a92baaca6e 100644
--- a/documentation/content/pl/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/pl/books/handbook/advanced-networking/_index.adoc
@@ -81,7 +81,7 @@ This section provides an overview of routing basics. It then demonstrates how to
To view the routing table of a FreeBSD system, use man:netstat[1]:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -167,7 +167,7 @@ defaultrouter="10.20.30.1"
It is also possible to manually add the route using `route`:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -203,7 +203,7 @@ In this scenario, `RouterA` is a FreeBSD machine that is acting as a router to t
Before adding any static routes, the routing table on `RouterA` looks like this:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -218,7 +218,7 @@ default 10.0.0.1 UGS 0 49378 xl0
With the current routing table, `RouterA` does not have a route to the `192.168.2.0/24` network. The following command adds the `Internal Net 2` network to ``RouterA``'s routing table using `192.168.1.2` as the next hop:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -299,14 +299,14 @@ Connecting a computer to an existing wireless network is a very common situation
. Obtain the SSID (Service Set Identifier) and PSK (Pre-Shared Key) for the wireless network from the network administrator.
. Identify the wireless adapter. The FreeBSD [.filename]#GENERIC# kernel includes drivers for many common wireless adapters. If the wireless adapter is one of those models, it will be shown in the output from man:ifconfig[8]:
+
-[source,bash]
+[source,shell]
....
% ifconfig | grep -B3 -i wireless
....
+
On FreeBSD 11 or higher, use this command instead:
+
-[source,bash]
+[source,shell]
....
% sysctl net.wlan.devices
....
@@ -334,7 +334,7 @@ ifconfig_wlan0="WPA SYNCDHCP"
. Restart the computer, or restart the network service to connect to the network:
+
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -398,7 +398,7 @@ With this information in the kernel configuration file, recompile the kernel and
Information about the wireless device should appear in the boot messages, like this:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -411,14 +411,14 @@ Since the regulatory situation is different in various parts of the world, it is
The available region definitions can be found in [.filename]#/etc/regdomain.xml#. To set the data at runtime, use `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 regdomain ETSI country AT
....
To persist the settings, add it to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc create_args_wlan0="country AT regdomain ETSI"
....
@@ -433,7 +433,7 @@ Infrastructure (BSS) mode is the mode that is typically used. In this mode, a nu
To scan for available networks, use man:ifconfig[8]. This request may take a few moments to complete as it requires the system to switch to each available wireless frequency and probe for available access points. Only the superuser can initiate a scan:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -473,7 +473,7 @@ The output of a scan request lists each BSS/IBSS network found. Besides listing
One can also display the current list of known networks with:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -551,14 +551,14 @@ ifconfig_wlan0="DHCP"
The wireless interface is now ready to bring up:
-[source,bash]
+[source,shell]
....
# service netif start
....
Once the interface is running, use man:ifconfig[8] to see the status of the interface [.filename]#ath0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -624,7 +624,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -648,7 +648,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Or, try to configure the interface manually using the information in [.filename]#/etc/wpa_supplicant.conf#:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -659,7 +659,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
The next operation is to launch man:dhclient[8] to get the IP address from the DHCP server:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -685,7 +685,7 @@ If [.filename]#/etc/rc.conf# has an `ifconfig_wlan0="DHCP"` entry, man:dhclient[
If DHCP is not possible or desired, set a static IP address after man:wpa_supplicant[8] has authenticated the station:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -703,7 +703,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
When DHCP is not used, the default gateway and the nameserver also have to be manually set:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -755,7 +755,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -814,7 +814,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -881,7 +881,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -909,7 +909,7 @@ Wired Equivalent Privacy (WEP) is part of the original 802.11 standard. There is
WEP can be set up using man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -940,7 +940,7 @@ network={
Then:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -953,7 +953,7 @@ IBSS mode, also called ad-hoc mode, is designed for point to point connections.
On `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -972,7 +972,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
`B` should now be able to detect `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -982,7 +982,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
The `I` in the output confirms that `A` is in ad-hoc mode. Now, configure `B` with a different IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1015,7 +1015,7 @@ The NDIS driver wrapper for Windows(R) drivers does not currently support AP ope
Once wireless networking support is loaded, check if the wireless device supports the host-based access point mode, also known as hostap mode:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1027,14 +1027,14 @@ This output displays the card's capabilities. The `HOSTAP` word confirms that th
The wireless device can only be put into hostap mode during the creation of the network pseudo-device, so a previously created device must be destroyed first:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
then regenerated with the correct option before setting the other parameters:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1042,7 +1042,7 @@ then regenerated with the correct option before setting the other parameters:
Use man:ifconfig[8] again to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1072,7 +1072,7 @@ Although it is not recommended to run an AP without any authentication or encryp
Once the AP is configured, initiate a scan from another wireless machine to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1082,7 +1082,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
The client machine found the AP and can be associated with it:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1144,12 +1144,12 @@ wpa_pairwise=CCMP <.>
The next step is to start man:hostapd[8]:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1174,7 +1174,7 @@ It is not recommended to use WEP for setting up an AP since there is no authenti
The wireless device can now be put into hostap mode and configured with the correct SSID and IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1186,7 +1186,7 @@ The wireless device can now be put into hostap mode and configured with the corr
Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1201,7 +1201,7 @@ Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
From another wireless machine, it is now possible to initiate a scan to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1230,7 +1230,7 @@ Debugging support is provided by man:wpa_supplicant[8]. Try running this utility
* Once the system can associate with the access point, diagnose the network configuration using tools like man:ping[8].
* There are many lower-level debugging tools. Debugging messages can be enabled in the 802.11 protocol support layer using man:wlandebug[8]. For example, to enable console messages related to scanning for access points and the 802.11 protocol handshakes required to arrange communication:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i wlan0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1251,7 +1251,7 @@ Many cellphones provide the option to share their data connection over USB (ofte
Before attaching a device, load the appropriate driver into the kernel:
-[source,bash]
+[source,shell]
....
# kldload if_urndis
# kldload if_cdce
@@ -1262,7 +1262,7 @@ Once the device is attached ``ue``_0_ will be available for use like a normal ne
To make this change permanent and load the driver as a module at boot time, place the appropriate line of the following in [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
if_urndis_load="YES"
if_cdce_load="YES"
@@ -1282,7 +1282,7 @@ The Bluetooth stack in FreeBSD is implemented using the man:netgraph[4] framewor
Before attaching a device, determine which of the above drivers it uses, then load the driver. For example, if the device uses the man:ng_ubt[4] driver:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1296,7 +1296,7 @@ ng_ubt_load="YES"
Once the driver is loaded, plug in the USB dongle. If the driver load was successful, output similar to the following should appear on the console and in [.filename]#/var/log/messages#:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1306,7 +1306,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
To start and stop the Bluetooth stack, use its startup script. It is a good idea to stop the stack before unplugging the device. Starting the bluetooth stack might require man:hcsecd[8] to be started. When starting the stack, the output should be similar to the following:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1328,7 +1328,7 @@ The Host Controller Interface (HCI) provides a uniform method for accessing Blue
One of the most common tasks is discovery of Bluetooth devices within RF proximity. This operation is called _inquiry_. Inquiry and other HCI related operations are done using man:hccontrol[8]. The example below shows how to find out which Bluetooth devices are in range. The list of devices should be displayed in a few seconds. Note that a remote device will only answer the inquiry if it is set to _discoverable_ mode.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1344,7 +1344,7 @@ Inquiry complete. Status: No error [00]
The `BD_ADDR` is the unique address of a Bluetooth device, similar to the MAC address of a network card. This address is needed for further communication with a device and it is possible to assign a human readable name to a `BD_ADDR`. Information regarding the known Bluetooth hosts is contained in [.filename]#/etc/bluetooth/hosts#. The following example shows how to obtain the human readable name that was assigned to the remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1357,7 +1357,7 @@ Remote devices can be assigned aliases in [.filename]#/etc/bluetooth/hosts#. Mor
The Bluetooth system provides a point-to-point connection between two Bluetooth units, or a point-to-multipoint connection which is shared among several Bluetooth devices. The following example shows how to create a connection to a remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci create_connection BT_ADDR
....
@@ -1366,7 +1366,7 @@ The Bluetooth system provides a point-to-point connection between two Bluetooth
The following example shows how to obtain the list of active baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1375,7 +1375,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
A _connection handle_ is useful when termination of the baseband connection is required, though it is normally not required to do this by hand. The stack will automatically terminate inactive baseband connections.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1431,7 +1431,7 @@ In FreeBSD, these profiles are implemented with man:ppp[8] and the man:rfcomm_pp
In this example, man:rfcomm_pppd[8] is used to open a connection to a remote device with a `BD_ADDR` of `00:80:37:29:19:a4` on a DUNRFCOMM channel:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
@@ -1440,7 +1440,7 @@ The actual channel number will be obtained from the remote device using the SDP
In order to provide network access with the PPPLAN service, man:sdpd[8] must be running and a new entry for LAN clients must be created in [.filename]#/etc/ppp/ppp.conf#. Consult man:rfcomm_pppd[8] for examples. Finally, start the RFCOMMPPP server on a valid RFCOMM channel number. The RFCOMMPPP server will automatically register the Bluetooth LAN service with the local SDP daemon. The example below shows how to start the RFCOMMPPP server.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1459,7 +1459,7 @@ In FreeBSD, a netgraph L2CAP node is created for each Bluetooth device. This nod
A useful command is man:l2ping[8], which can be used to ping other devices. Some Bluetooth implementations might not return all of the data sent to them, so `0 bytes` in the following example is normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1470,7 +1470,7 @@ A useful command is man:l2ping[8], which can be used to ping other devices. Some
The man:l2control[8] utility is used to perform various operations on L2CAP nodes. This example shows how to obtain the list of logical connections (channels) and the list of baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1484,7 +1484,7 @@ Remote BD_ADDR Handle Flags Pending State
Another diagnostic tool is man:btsockstat[1]. It is similar to man:netstat[1], but for Bluetooth network-related data structures. The example below shows the same logical connection as man:l2control[8] above.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1518,7 +1518,7 @@ Normally, a SDP client searches for services based on some desired characteristi
The Bluetooth SDP server, man:sdpd[8], and command line client, man:sdpcontrol[8], are included in the standard FreeBSD installation. The following example shows how to perform a SDP browse query.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1546,7 +1546,7 @@ Bluetooth Profile Descriptor List:
Note that each service has a list of attributes, such as the RFCOMM channel. Depending on the service, the user might need to make note of some of the attributes. Some Bluetooth implementations do not support service browsing and may return an empty list. In this case, it is possible to search for the specific service. The example below shows how to search for the OBEX Object Push (OPUSH) service:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1560,7 +1560,7 @@ sdpd_enable="YES"
Then the man:sdpd[8] daemon can be started with:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1569,7 +1569,7 @@ The local server application that wants to provide a Bluetooth service to remote
The list of services registered with the local SDP server can be obtained by issuing a SDP browse query via the local control channel:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1582,7 +1582,7 @@ The OBEX server and client are implemented by obexapp, which can be installed us
The OBEX client is used to push and/or pull objects from the OBEX server. An example object is a business card or an appointment. The OBEX client can obtain the RFCOMM channel number from the remote device via SDP. This can be done by specifying the service name instead of the RFCOMM channel number. Supported service names are: `IrMC`, `FTRN`, and `OPUSH`. It is also possible to specify the RFCOMM channel as a number. Below is an example of an OBEX session where the device information object is pulled from the cellular phone, and a new object, the business card, is pushed into the phone's directory.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1595,7 +1595,7 @@ Success, response: OK, Success (0x20)
In order to provide the OPUSH service, man:sdpd[8] must be running and a root folder, where all incoming objects will be stored, must be created. The default path to the root folder is [.filename]#/var/spool/obex#. Finally, start the OBEX server on a valid RFCOMM channel number. The OBEX server will automatically register the OPUSH service with the local SDP daemon. The example below shows how to start the OBEX server.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1606,7 +1606,7 @@ The Serial Port Profile (SPP) allows Bluetooth devices to perform serial cable e
In FreeBSD, man:rfcomm_sppd[1] implements SPP and a pseudo tty is used as a virtual serial port abstraction. The example below shows how to connect to a remote device's serial port service. A RFCOMM channel does not have to be specified as man:rfcomm_sppd[1] can obtain it from the remote device via SDP. To override this, specify a RFCOMM channel on the command line.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t
rfcomm_sppd[94692]: Starting on /dev/pts/6...
@@ -1615,7 +1615,7 @@ rfcomm_sppd[94692]: Starting on /dev/pts/6...
Once connected, the pseudo tty can be used as serial port:
-[source,bash]
+[source,shell]
....
# cu -l /dev/pts/6
....
@@ -1632,7 +1632,7 @@ cu -l $PTS
By default, when FreeBSD is accepting a new connection, it tries to perform a role switch and become master. Some older Bluetooth devices which do not support role switching will not be able to connect. Since role switching is performed when a new connection is being established, it is not possible to ask the remote device if it supports role switching. However, there is a HCI option to disable role switching on the local side:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1678,7 +1678,7 @@ In FreeBSD, man:if_bridge[4] is a kernel module which is automatically loaded by
The bridge is created using interface cloning. To create the bridge interface:
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1694,7 +1694,7 @@ When a bridge interface is created, it is automatically assigned a randomly gene
Next, specify which network interfaces to add as members of the bridge. For the bridge to forward packets, all member interfaces and the bridge need to be up:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1713,7 +1713,7 @@ ifconfig_fxp1="up"
If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces. The address can be set statically or via DHCP. This example sets a static IP address:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1735,7 +1735,7 @@ The Rapid Spanning Tree Protocol (RSTP or 802.1w) provides backwards compatibili
STP can be enabled on member interfaces using man:ifconfig[8]. For a bridge with [.filename]#fxp0# and [.filename]#fxp1# as the current interfaces, enable STP with:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1755,7 +1755,7 @@ This bridge has a spanning tree ID of `00:01:02:4b:d4:50` and a priority of `327
Another bridge on the network also has STP enabled:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1782,7 +1782,7 @@ A private interface does not forward any traffic to any other port that is also
span::
A span port transmits a copy of every Ethernet frame received by the bridge. The number of span ports configured on a bridge is unlimited, but if an interface is designated as a span port, it cannot also be used as a regular bridge port. This is most useful for snooping a bridged network passively on another host connected to one of the span ports of the bridge. For example, to send a copy of all frames out the interface named [.filename]#fxp4#:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1792,7 +1792,7 @@ If a bridge member interface is marked as sticky, dynamically learned address en
+
An example of using sticky addresses is to combine the bridge with VLANs in order to isolate customer networks without wasting IP address space. Consider that `CustomerA` is on `vlan100`, `CustomerB` is on `vlan101`, and the bridge has the address `192.168.0.1`:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1802,7 +1802,7 @@ In this example, both clients see `192.168.0.1` as their default gateway. Since
+
Any communication between the VLANs can be blocked using a firewall or, as seen in this example, private interfaces:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1813,14 +1813,14 @@ The number of unique source MAC addresses behind an interface can be limited. On
+
The following example sets the maximum number of Ethernet devices for `CustomerA` on `vlan100` to 10:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
Bridge interfaces also support monitor mode, where the packets are discarded after man:bpf[4] processing and are not processed or forwarded further. This can be used to multiplex the input of two or more interfaces into a single man:bpf[4] stream. This is useful for reconstructing the traffic for network taps that transmit the RX/TX signals out through two separate interfaces. For example, to read the input from four network interfaces as one stream:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1846,7 +1846,7 @@ bsnmpd_enable="YES"
Then, start man:bsnmpd[1]:
-[source,bash]
+[source,shell]
....
# service bsnmpd start
....
@@ -1861,7 +1861,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
To monitor a single bridge using the IETF BRIDGE-MIB (RFC4188):
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1885,7 +1885,7 @@ The `dot1dStpTopChanges.0` value is two, indicating that the STP bridge topology
To monitor multiple bridge interfaces, the private BEGEMOT-BRIDGE-MIB can be used:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1906,7 +1906,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
To change the bridge interface being monitored via the `mib-2.dot1dBridge` subtree:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1947,7 +1947,7 @@ Frame ordering is mandatory on Ethernet links and any traffic between two statio
On the Cisco(R) switch, add the _FastEthernet0/1_ and _FastEthernet0/2_ interfaces to channel group _1_:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1960,7 +1960,7 @@ interface FastEthernet0/2
On the FreeBSD system, create the man:lagg[4] interface using the physical interfaces _fxp0_ and _fxp1_ and bring the interfaces up with an IP address of _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1970,7 +1970,7 @@ On the FreeBSD system, create the man:lagg[4] interface using the physical inter
Next, verify the status of the virtual interface:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1988,7 +1988,7 @@ Ports marked as `ACTIVE` are part of the LAG that has been negotiated with the r
To see the port status on the Cisco(R) switch:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2026,7 +2026,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
Failover mode can be used to switch over to a secondary interface if the link is lost on the master interface. To configure failover, make sure that the underlying physical interfaces are up, then create the man:lagg[4] interface. In this example, _fxp0_ is the master interface, _fxp1_ is the secondary interface, and the virtual interface is assigned an IP address of _10.0.0.15/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2036,7 +2036,7 @@ Failover mode can be used to switch over to a secondary interface if the link is
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2085,7 +2085,7 @@ If the driver for the wireless interface is not loaded in the `GENERIC` or custo
In this example, the Ethernet interface, _re0_, is the master and the wireless interface, _wlan0_, is the failover. The _wlan0_ interface was created from the _ath0_ physical wireless interface, and the Ethernet interface will be configured with the MAC address of the wireless interface. First, determine the MAC address of the wireless interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2103,21 +2103,21 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Replace _wlan0_ to match the system's wireless interface name. The `ether` line will contain the MAC address of the specified interface. Now, change the MAC address of the Ethernet interface:
-[source,bash]
+[source,shell]
....
# ifconfig re0 ether b8:ee:65:5b:32:59
....
Bring the wireless interface up (replacing _FR_ with your own 2-letter country code), but do not set an IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 country FR ssid my_router up
....
Make sure the _re0_ interface is up, then create the man:lagg[4] interface with _re0_ as master with failover to _wlan0_:
-[source,bash]
+[source,shell]
....
# ifconfig re0 up
# ifconfig lagg0 create
@@ -2126,7 +2126,7 @@ Make sure the _re0_ interface is up, then create the man:lagg[4] interface with
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2142,7 +2142,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Then, start the DHCP client to obtain an IP address:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2190,7 +2190,7 @@ The steps shown in this section configure the built-in NFS and TFTP servers. The
[.procedure]
. Create the root directory which will contain a FreeBSD installation to be NFS mounted:
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2212,7 +2212,7 @@ nfs_server_enable="YES"
. Start the NFS server:
+
-[source,bash]
+[source,shell]
....
# service nfsd start
....
@@ -2238,7 +2238,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
. Start man:inetd[8]:
+
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -2246,7 +2246,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
. Install the base system into [.filename]#${NFSROOTDIR}#, either by decompressing the official archives or by rebuilding the FreeBSD kernel and userland (refer to crossref:cutting-edge[makeworld,“Updating FreeBSD from Source”] for more detailed instructions, but do not forget to add `DESTDIR=_${NFSROOTDIR}_` when running the `make installkernel` and `make installworld` commands.
. Test that the TFTP server works and can download the boot loader which will be obtained via PXE:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2264,7 +2264,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
Replace _myhost.example.com_ with the hostname or IP address of the NFS server. In this example, the root file system is mounted read-only in order to prevent NFS clients from potentially deleting the contents of the root file system.
. Set the root password in the PXE environment for client machines which are PXE booting :
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2275,7 +2275,7 @@ Replace _myhost.example.com_ with the hostname or IP address of the NFS server.
When booting from an NFS root volume, [.filename]#/etc/rc# detects the NFS boot and runs [.filename]#/etc/rc.initdiskless#. In this case, [.filename]#/etc# and [.filename]#/var# need to be memory backed file systems so that these directories are writable but the NFS root directory is read-only:
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2331,7 +2331,7 @@ dhcpd_enable="YES"
Then start the DHCP service:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -2361,7 +2361,7 @@ image::pxe-nfs.png[]
+
. On the TFTP server, read [.filename]#/var/log/xferlog# to ensure that [.filename]#pxeboot# is being retrieved from the correct location. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2371,7 +2371,7 @@ Received 264951 bytes in 0.1 seconds
The `BUGS` sections in man:tftpd[8] and man:tftp[1] document some limitations with TFTP.
. Make sure that the root file system can be mounted via NFS. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2415,7 +2415,7 @@ A third form is to write the last 32 bits using the well known IPv4 notation. Fo
To view a FreeBSD system's IPv6 address, use man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2628,7 +2628,7 @@ carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2674,7 +2674,7 @@ Having two CARPVHIDs configured means that `hostc.example.org` will notice if ei
====
If the original master server becomes available again, `hostc.example.org` will not release the virtual IP address back to it automatically. For this to happen, preemption has to be enabled. The feature is disabled by default, it is controlled via the man:sysctl[8] variable `net.inet.carp.preempt`. The administrator can force the backup server to return the IP address to the master:
-[source,bash]
+[source,shell]
....
# ifconfig em0 vhid 1 state backup
....
@@ -2699,7 +2699,7 @@ if_carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2713,7 +2713,7 @@ device carp
Next, on each host, create a CARP device:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2753,7 +2753,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
Preemption is disabled in the [.filename]#GENERIC# FreeBSD kernel. If preemption has been enabled with a custom kernel, `hostc.example.org` may not release the IP address back to the original content server. The administrator can force the backup server to return the IP address to the master with the command:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
....
@@ -2774,7 +2774,7 @@ When configuring a VLAN, a couple pieces of information must be known. First, wh
To configure VLANs at run time, with a NIC of `em0` and a VLAN tag of `5` the command would look like this:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24
....
@@ -2798,14 +2798,14 @@ It is useful to assign a symbolic name to an interface so that when the associat
To configure VLAN `5`, on the NIC `em0`, assign the interface name `cameras`, and assign the interface an IP address of `_192.168.20.20_` with a `24`-bit prefix, use this command:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 name cameras inet 192.168.20.20/24
....
For an interface named `video`, use the following:
-[source,bash]
+[source,shell]
....
# ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24
....
diff --git a/documentation/content/pl/books/handbook/audit/_index.adoc b/documentation/content/pl/books/handbook/audit/_index.adoc
index ba3052ae5a..db79cfe531 100644
--- a/documentation/content/pl/books/handbook/audit/_index.adoc
+++ b/documentation/content/pl/books/handbook/audit/_index.adoc
@@ -97,7 +97,7 @@ auditd_enable="YES"
Then, start the audit daemon:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -311,7 +311,7 @@ Since audit trails are stored in the BSM binary format, several built-in tools a
For example, to dump the entire contents of a specified audit log in plain text:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -337,7 +337,7 @@ XML output format is also supported and can be selected by including `-x`.
Since audit logs may be very large, a subset of records can be selected using `auditreduce`. This example selects all audit records produced for the user `trhodes` stored in [.filename]#AUDITFILE#:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -348,7 +348,7 @@ Members of the `audit` group have permission to read audit trails in [.filename]
Audit pipes are cloning pseudo-devices which allow applications to tap the live audit record stream. This is primarily of interest to authors of intrusion detection and system monitoring applications. However, the audit pipe device is a convenient way for the administrator to allow live monitoring without running into problems with audit trail file ownership or log rotation interrupting the event stream. To track the live audit event stream:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -372,7 +372,7 @@ It is easy to produce audit event feedback cycles, in which the viewing of each
Audit trails are written to by the kernel and managed by the audit daemon, man:auditd[8]. Administrators should not attempt to use man:newsyslog.conf[5] or other tools to directly rotate audit logs. Instead, `audit` should be used to shut down auditing, reconfigure the audit system, and perform log rotation. The following command causes the audit daemon to create a new audit log and signal the kernel to switch to using the new log. The old log will be terminated and renamed, at which point it may then be manipulated by the administrator:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/pl/books/handbook/basics/_index.adoc b/documentation/content/pl/books/handbook/basics/_index.adoc
index 99f3f9894d..2660b2f1c9 100644
--- a/documentation/content/pl/books/handbook/basics/_index.adoc
+++ b/documentation/content/pl/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ Z systemu FreeBSD korzystać można na różne sposoby; jednym z nich jest wpisy
Jeśli konfigurując FreeBSD nie wybraliśmy, by przy uruchamianiu systemu było automatycznie ładowane środowisko graficzne, to po uruchomieniu i wykonaniu skryptów startowych system przywita nas komunikatem logowania się do systemu. Zobaczymy mniej więcej coś takiego:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ Każdy system wieloużytkownikowy musi mieć możliwość odróżnienia jednego
Zaraz po załadowaniu systemu i zakończeniu uruchamiania skryptów startowych, FreeBSD wyświetli komunikat z prośbą o podanie nazwy użytkownika:
-[source,bash]
+[source,shell]
....
login:
....
Dla przykładu załóżmy, że nasz użytkownik nazywa się `janek`. Wpisujemy tutaj `janek` i naciskamy kbd:[Enter]. Powinniśmy zostać poproszeni o podanie "hasła":
-[source,bash]
+[source,shell]
....
login: janek
Password:
@@ -239,7 +239,7 @@ Ze względu na obsługę wielu użytkowników, zasoby, którymi zarządza system
Korzystając z polecenia man:ls[1] możemy posłużyć się opcją `-l`, by zawartość katalogu została pokazana w formie szczegółowej, z uwzględnieniem kolumny zawierającej informację o prawach dostępu do pliku dla jego właściciela, grupy, oraz wszystkich innych. Przykładowy wynik polecenia `ls -l`:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -251,7 +251,7 @@ total 530
Pierwsza kolumna listy plików po wykonaniu polecenia `ls -l` ma następującą postać:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -328,14 +328,14 @@ Uprawnienia symboliczne, określane również jako wyrażenia symboliczne, przy
Do ustawienia tych wartości, podobnie jak w przypadku wartości liczbowych, wykorzystywane jest polecenie man:chmod[1]. Przykładowo, by zablokować dostęp innych użytkowników do _PLIKU_ należy wpisać:
-[source,bash]
+[source,shell]
....
% chmod go= PLIK
....
Gdy musimy wykonać więcej niż jedną zmianę uprawnień parametry należy oddzielić przecinkami. Na przykład, poniższe polecenie usunie prawa zapisu do _PLIKU_ grupie i innym. Następnie doda wszystkim prawo wykonywania:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x PLIK
....
@@ -348,21 +348,21 @@ Dzięki zwiększonemu poziomowi kontroli plików system może zagwarantować, ż
Zmiany flag plików dokonuje się poleceniem man:chflags[1]. Przykładowo, by plikowi [.filename]#plik1# nadać flagę nieusuwalności należy wydać poniższe polecenie:
-[source,bash]
+[source,shell]
....
# chflags sunlink plik1
....
Natomiast, by usunąć flagę nieusuwalności wystarczy wprowadzić takie samo polecenie dodając "no" przed `sunlink`:
-[source,bash]
+[source,shell]
....
# chflags nosunlink plik1
....
By wyświetlić flagi danego pliku wystarczy wpisać polecenie man:ls[1] z parametrem `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo plik1
....
@@ -705,7 +705,7 @@ Polecenie man:mount[8] jest głównym poleceniem używanym do montowania system
W najprostszej postaci, używa się go następująco:
-[source,bash]
+[source,shell]
....
# mount urządzenie punkt-montowania
....
@@ -770,7 +770,7 @@ Są dwa bardzo przydatne polecenia, które pozwalają zobaczyć, jakie procesy s
Domyślnie `ps` pokazuje tylko działające procesy należące do użytkownika wydającego polecenie. Na przykład:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -798,7 +798,7 @@ man:ps[1] ma wiele rozmaitych opcji, które mają wpływ na wyświetlane informa
Informacje pokazywane przez man:top[1] wyglądają podobnie. Oto przykład:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -855,7 +855,7 @@ W tym przykładzie zaprezentowano wysyłanie sygnału do man:inetd[8]. Plik konf
. Trzeba ustalić PID procesu, do którego wysyłać będziemy sygnał - do tego celu posłużą polecenia man:ps[1] i man:grep[1]. Polecenia man:grep[1] używamy do odnalezienia podanego ciągu znaków. Ponieważ polecenia wydajemy jako zwykły użytkownik, a man:inetd[8] działa jako `root`, polecenie man:ps[1] musimy wywołać z opcją `ax`.
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -864,7 +864,7 @@ W tym przykładzie zaprezentowano wysyłanie sygnału do man:inetd[8]. Plik konf
Jak widać, man:inetd[8] ma PID o wartości 198. Niekiedy w przedstawionym powyżej przykładzie może się także pojawić proces `grep inetd`, wynika to ze sposobu, w jaki man:ps[1] odnajduje działające procesy.
. Sygnał wysyłamy przy pomocy polecenia man:kill[1]. Najpierw skorzystamy jednak z polecenia man:su[1] by stać się rootem, gdyż man:inetd[8] działa jako `root`.
+
-[source,bash]
+[source,shell]
....
% su
@@ -944,14 +944,14 @@ Inną cechą powłoki są zmienne środowiskowe. Przechowywane są one w przestr
Sposób odczytywania i ustawiania zmiennych środowiskowych zależy od rodzaju używanej powłoki. Na przykład w powłokach wzorowanych na C, jak `tcsh` i `csh`, do ustawiania i przeglądania zmiennych środowiskowych służy polecenie `setenv`, natomiast w powłokach Bourne'a, czyli `sh` i `bash`, do tych celów wykorzystywane jest polecenie `export`. Przykładowo, aby zmienić zmienną środowiskową `EDITOR` na [.filename]#/usr/local/bin/emacs# w powłoce `csh` lub `tcsh`, należy wydać polecenie:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
A w powłokach Bourne'a:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -969,7 +969,7 @@ Najłatwiej jest zmienić powłokę przy użyciu polecenia `chsh`. Wywołanie te
Można też skorzystać z `chsh` z opcją `-s`, która automatycznie zmieni powłokę, bez uruchamiania edytora. Poniżej przedstawiono wywołanie zmieniające powłokę na `bash`:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -980,7 +980,7 @@ Wybrana powłoka _musi_ być wymieniona w pliku [.filename]#/etc/shells#. Jeśli
Dla przykładu, jeśli powłoka `bash` została zainstalowana i umieszczona w [.filename]#/usr/local/bin#, trzeba będzie wydać polecenie:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1055,14 +1055,14 @@ Format ELF oferuje większą rozszerzalność niz [.filename]#a.out#. Narzędzia
Najdokładniejszą dokumentacją we FreeBSD jest dokumentacja systemowa. Dla prawie każdego dostępnego w systemie programu przygotowana jest krótka instrukcja obsługi, omawiająca podstawy jego działania i rozmaite opcje. Dokumentację możemy przeglądać przy pomocy polecenia `man`. Korzystanie z tego polecenia jest bardzo proste:
-[source,bash]
+[source,shell]
....
% man polecenie
....
`polecenie` jest nazwą polecenia, o którym chcemy uzyskać informacje. Na przykład, aby dowiedzieć się czegoś na temat polecenia `ls` wpisujemy:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1081,7 +1081,7 @@ Dokumentacja systemowa podzielona jest na ponumerowane części:
Niekiedy takie samo zagadnienie może pojawić się w kilku częściach dokumentacji. Na przykład istnieje polecenie `chmod`, oraz funkcja systemowa `chmod()`. W taki wypadku możemy wybrać interesującą nas część dokumentacji, podając jej numer jako parametr polecenia `man`:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1090,7 +1090,7 @@ W efekcie pokazana zostanie dokumentacja polecenia `chmod`. Zgodnie z przyjętą
W opisany powyżej sposób możemy dowiedzieć się, jak korzystać z danego polecenia, jeśli znamy jego nazwę. Co zrobić, jeśli nie możemy sobie przypomnieć nazwy polecenia? Otóż, `man` potrafi również wyszukiwać wybranych słów kluczowych w opisach poleceń, służy do tego opcja `-k`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1099,7 +1099,7 @@ Wpisanie takiego polecenia spowoduje wyświetlenie listy poleceń, których opis
Jeśli więc, przeglądając zawartość katalogu [.filename]#/usr/bin#, zastanawiamy się, do czego właściwie służą znajdujące się tam polecenia, możemy wpisać:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1107,7 +1107,7 @@ Jeśli więc, przeglądając zawartość katalogu [.filename]#/usr/bin#, zastana
lub
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1122,7 +1122,7 @@ Do FreeBSD dołączonych jest wiele programów i narzędzi stworzonych przez Fre
By skorzystać z polecenia man:info[1], wpisujemy:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/pl/books/handbook/boot/_index.adoc b/documentation/content/pl/books/handbook/boot/_index.adoc
index 926a7c14c5..e38549d6ba 100644
--- a/documentation/content/pl/books/handbook/boot/_index.adoc
+++ b/documentation/content/pl/books/handbook/boot/_index.adoc
@@ -101,7 +101,7 @@ The MBR installed by the FreeBSD installer is based on [.filename]#/boot/boot0#.
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
Other operating systems will overwrite an existing MBR if they are installed after FreeBSD. If this happens, or to replace the existing MBR with the FreeBSD MBR, use the following command:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -136,7 +136,7 @@ Stage two, [.filename]#boot2#, is slightly more sophisticated, and understands t
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -147,7 +147,7 @@ boot:
To replace the installed [.filename]#boot1# and [.filename]#boot2#, use `bsdlabel`, where _diskslice_ is the disk and slice to boot from, such as [.filename]#ad0s1# for the first slice on the first IDE disk:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -220,14 +220,14 @@ Finally, by default, loader issues a 10 second wait for key presses, and boots t
Here are some practical examples of loader usage. To boot the usual kernel in single-user mode :
-[source,bash]
+[source,shell]
....
boot -s
....
To unload the usual kernel and modules and then load the previous or another, specified kernel:
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -237,7 +237,7 @@ Use [.filename]#kernel.GENERIC# to refer to the default kernel that comes with a
Use the following to load the usual modules with another kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -246,7 +246,7 @@ Use the following to load the usual modules with another kernel:
To load an automated kernel configuration script:
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -382,14 +382,14 @@ Once the system is booted, man:kenv[1] can be used to dump all of the variables.
The syntax for [.filename]#/boot/device.hints# is one variable per line, using the hash "#" as comment markers. Lines are constructed as follows:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
The syntax for the Stage 3 boot loader is:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/pl/books/handbook/config/_index.adoc b/documentation/content/pl/books/handbook/config/_index.adoc
index 8d8bcf5776..1f84c5e4e6 100644
--- a/documentation/content/pl/books/handbook/config/_index.adoc
+++ b/documentation/content/pl/books/handbook/config/_index.adoc
@@ -159,7 +159,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <.>
To create a user crontab, invoke `crontab` in editor mode:
-[source,bash]
+[source,shell]
....
% crontab -e
....
@@ -198,7 +198,7 @@ The environment set by cron is discussed in man:crontab[5]. Checking that script
When finished editing the crontab, save the file. It will automatically be installed and cron will read the crontab and run its cron jobs at their specified times. To list the cron jobs in a crontab, use this command:
-[source,bash]
+[source,shell]
....
% crontab -l
0 14 * * * /usr/home/dru/bin/mycustomscript.sh
@@ -206,7 +206,7 @@ When finished editing the crontab, save the file. It will automatically be insta
To remove all of the cron jobs in a user crontab:
-[source,bash]
+[source,shell]
....
% crontab -r
remove crontab for dru? y
@@ -217,7 +217,7 @@ remove crontab for dru? y
FreeBSD uses the man:rc[8] system of startup scripts during system initialization and for managing services. The scripts listed in [.filename]#/etc/rc.d# provide basic services which can be controlled with the `start`, `stop`, and `restart` options to man:service[8]. For instance, man:sshd[8] can be restarted with the following command:
-[source,bash]
+[source,shell]
....
# service sshd restart
....
@@ -233,14 +233,14 @@ If a `natd_enable="NO"` line is already present, change the `NO` to `YES`. The m
Since the man:rc[8] system is primarily intended to start and stop services at system startup and shutdown time, the `start`, `stop` and `restart` options will only perform their action if the appropriate [.filename]#/etc/rc.conf# variable is set. For instance, `sshd restart` will only work if `sshd_enable` is set to `YES` in [.filename]#/etc/rc.conf#. To `start`, `stop` or `restart` a service regardless of the settings in [.filename]#/etc/rc.conf#, these commands should be prefixed with "one". For instance, to restart man:sshd[8] regardless of the current [.filename]#/etc/rc.conf# setting, execute the following command:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
To check if a service is enabled in [.filename]#/etc/rc.conf#, run the appropriate man:rc[8] script with `rcvar`. This example checks to see if man:sshd[8] is enabled in [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -256,7 +256,7 @@ The `# sshd` line is output from the above command, not a `root` console.
To determine whether or not a service is running, use `status`. For instance, to verify that man:sshd[8] is running:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -266,7 +266,7 @@ In some cases, it is also possible to `reload` a service. This attempts to send
The man:rc[8] system is used for network services and it also contributes to most of the system initialization. For instance, when the [.filename]#/etc/rc.d/bgfsck# script is executed, it prints out the following message:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -335,7 +335,7 @@ If the NIC is supported, determine the name of the FreeBSD driver for the NIC. R
The drivers for common NICs are already present in the [.filename]#GENERIC# kernel, meaning the NIC should be probed during boot. The system's boot messages can be viewed by typing `more /var/run/dmesg.boot` and using the spacebar to scroll through the text. In this example, two Ethernet NICs using the man:dc[4] driver are present on the system:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -377,21 +377,21 @@ The driver bit width must match the version of FreeBSD. For FreeBSD/i386, use a
The next step is to compile the driver binary into a loadable kernel module. As `root`, use man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
This command is interactive and prompts for any extra information it requires. A new kernel module will be generated in the current directory. Use man:kldload[8] to load the new module:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
In addition to the generated kernel module, the [.filename]#ndis.ko# and [.filename]#if_ndis.ko# modules must be loaded. This should happen automatically when any module that depends on man:ndis[4] is loaded. If not, load them manually, using the following commands:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -401,7 +401,7 @@ The first command loads the man:ndis[4] miniport driver wrapper and the second l
Check man:dmesg[8] to see if there were any load errors. If all went well, the output should be similar to the following:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -425,7 +425,7 @@ Once the right driver is loaded for the NIC, the card needs to be configured. It
To display the NIC configuration, enter the following command:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -468,7 +468,7 @@ In this example, [.filename]#dc0# is up and running. The key indicators are:
If the man:ifconfig[8] output had shown something similar to:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -511,7 +511,7 @@ If the network is not using DNS, edit [.filename]#/etc/hosts# to add the names a
====
If there is no DHCP server and access to the Internet is needed, manually configure the default gateway and the nameserver:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -524,7 +524,7 @@ If there is no DHCP server and access to the Internet is needed, manually config
Once the necessary changes to [.filename]#/etc/rc.conf# are saved, a reboot can be used to test the network configuration and to verify that the system restarts without any configuration errors. Alternatively, apply the settings to the networking system with this command:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -533,7 +533,7 @@ Once the necessary changes to [.filename]#/etc/rc.conf# are saved, a reboot can
====
If a default gateway has been set in [.filename]#/etc/rc.conf#, also issue this command:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -546,7 +546,7 @@ Once the networking system has been relaunched, test the NICs.
To verify that an Ethernet card is configured correctly, man:ping[8] the interface itself, and then man:ping[8] another machine on the LAN:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -561,7 +561,7 @@ PING 192.168.1.3 (192.168.1.3): 56 data bytes
round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
....
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -805,14 +805,14 @@ Multiple `-a` options may be specified to allow logging from multiple clients. I
Finally, create the log file:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
At this point, syslogd should be restarted and verified:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -843,14 +843,14 @@ Next, define the logging server in the client's [.filename]#/etc/syslog.conf#. I
After saving the edit, restart syslogd for the changes to take effect:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
To test that log messages are being sent across the network, use man:logger[1] on the client to send a message to syslogd:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -868,14 +868,14 @@ If the `ping` succeeds on both hosts but log messages are still not being receiv
syslogd_flags="-d -a logclient.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Debugging data similar to the following will flash on the console immediately after the restart:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -889,7 +889,7 @@ rejected in rule 0 due to name mismatch.
In this example, the log messages are being rejected due to a typo which results in a hostname mismatch. The client's hostname should be `logclient`, not `logclien`. Fix the typo, issue a restart, and verify the results:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
@@ -1050,14 +1050,14 @@ At its core, man:sysctl[8] serves two functions: to read and to modify system se
To view all readable variables:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
To read a particular variable, specify its name:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -1065,7 +1065,7 @@ kern.maxproc: 1044
To set a particular variable, use the _variable_=_value_ syntax:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -1099,7 +1099,7 @@ In some cases it may be desirable to modify read-only man:sysctl[8] values, whic
For instance, on some laptop models the man:cardbus[4] device will not probe memory ranges and will fail with errors similar to:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1147,7 +1147,7 @@ The `SCSI_DELAY` kernel configuration option may be used to reduce system boot t
To fine-tune a file system, use man:tunefs[8]. This program has many different options. To toggle Soft Updates on and off, use:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1233,7 +1233,7 @@ A vnode is the internal representation of a file or directory. Increasing the nu
To see the current number of vnodes in use:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1241,7 +1241,7 @@ vfs.numvnodes: 91349
To see the maximum vnodes:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1263,7 +1263,7 @@ Adding a new hard drive for swap gives better performance than using a partition
Use `swapon` to add a swap partition to the system. For example:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1297,14 +1297,14 @@ Using swap files requires that the module needed by man:md[4] has either been bu
[.procedure]
. Create the swap file:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1m count=512
....
. Set the proper permissions on the new file:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1319,7 +1319,7 @@ md99 none swap sw,file=/usr/swap0,late 0 0
The man:md[4] device [.filename]#md99# is used, leaving lower device numbers available for interactive use.
. Swap space will be added on system startup. To add swap space immediately, use man:swapon[8]:
+
-[source,bash]
+[source,shell]
....
# swapon -aL
....
@@ -1374,7 +1374,7 @@ ACPI has three suspend to RAM (STR) states, `S1`-`S3`, and one suspend to disk s
Use `sysctl hw.acpi` to check for the suspend-related items. These example results are from a Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1386,7 +1386,7 @@ When testing suspend/resume, start with `S1`, if supported. This state is most l
A common problem with suspend/resume is that many device drivers do not save, restore, or reinitialize their firmware, registers, or device memory properly. As a first attempt at debugging the problem, try:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1426,7 +1426,7 @@ First, try setting `hw.acpi.disable_on_poweroff="0"` in [.filename]#/boot/loader
Some BIOS vendors provide incorrect or buggy bytecode. This is usually manifested by kernel console messages like this:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1442,7 +1442,7 @@ The goal of FreeBSD is for everyone to have working ACPI without any user interv
To help identify buggy behavior and possibly fix it manually, a copy can be made of the system's ASL. To copy the system's ASL to a specified file name, use `acpidump` with `-t`, to show the contents of the fixed tables, and `-d`, to disassemble the AML:
-[source,bash]
+[source,shell]
....
# acpidump -td > my.asl
....
@@ -1451,7 +1451,7 @@ Some AML versions assume the user is running Windows(R). To override this, set `
Other workarounds may require [.filename]#my.asl# to be customized. If this file is edited, compile the new ASL using the following command. Warnings can usually be ignored, but errors are bugs that will usually prevent ACPI from working correctly.
-[source,bash]
+[source,shell]
....
# iasl -f my.asl
....
@@ -1475,7 +1475,7 @@ The ACPI driver has a flexible debugging facility. A set of subsystems and the l
Debugging output is not enabled by default. To enable it, add `options ACPI_DEBUG` to the custom kernel configuration file if ACPI is compiled into the kernel. Add `ACPI_DEBUG=1` to [.filename]#/etc/make.conf# to enable it globally. If a module is used instead of a custom kernel, recompile just the [.filename]#acpi.ko# module as follows:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi && make clean && make ACPI_DEBUG=1
....
@@ -1505,7 +1505,7 @@ When submitting a problem report, include the following information:
* Output from `sysctl hw.acpi`. This lists which features the system offers.
* The URL to a pasted version of the system's ASL. Do _not_ send the ASL directly to the list as it can be very large. Generate a copy of the ASL by running this command:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
diff --git a/documentation/content/pl/books/handbook/cutting-edge/_index.adoc b/documentation/content/pl/books/handbook/cutting-edge/_index.adoc
index 6f9ac1b35b..678d686eea 100644
--- a/documentation/content/pl/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/pl/books/handbook/cutting-edge/_index.adoc
@@ -152,7 +152,7 @@ The process of applying FreeBSD security patches has been simplified, allowing a
FreeBSD security patches may be downloaded and installed using the following commands. The first command will determine if any outstanding patches are available, and if so, will list the files that will be modifed if the patches are applied. The second command will apply the patches.
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -176,7 +176,7 @@ If patches exist, they will automatically be downloaded but will not be applied.
If anything goes wrong, `freebsd-update` has the ability to roll back the last set of changes with the following command:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -207,14 +207,14 @@ If the system is running a custom kernel, make sure that a copy of the [.filenam
The following command, when run on a FreeBSD 9.0 system, will upgrade it to FreeBSD 9.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
After the command has been received, `freebsd-update` will evaluate the configuration file and current system in an attempt to gather the information necessary to perform the upgrade. A screen listing will display which components have and have not been detected. For example:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -238,7 +238,7 @@ At this point, `freebsd-update` will attempt to download all files required for
When using a custom kernel, the above step will produce a warning similar to the following:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -254,7 +254,7 @@ Once all the patches have been downloaded to the local system, they will be appl
====
The system is not being altered yet as all patching and merging is happening in another directory. Once all patches have been applied successfully, all configuration files have been merged and it seems the process will go smoothly, the changes can be committed to disk by the user using the following command:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -263,7 +263,7 @@ The system is not being altered yet as all patching and merging is happening in
The kernel and kernel modules will be patched first. If the system is running with a custom kernel, use man:nextboot[8] to set the kernel for the next boot to the updated [.filename]#/boot/GENERIC#:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -276,14 +276,14 @@ Before rebooting with the [.filename]#GENERIC# kernel, make sure it contains all
The machine should now be restarted with the updated kernel:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Once the system has come back online, restart `freebsd-update` using the following command. Since the state of the process has been saved, `freebsd-update` will not start from the beginning, but will instead move on to the next phase and remove all old shared libraries and object files.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -302,7 +302,7 @@ Before using `freebsd-update`, ensure that a copy of the [.filename]#GENERIC# ke
If a custom kernel has been built more than once or if it is unknown how many times the custom kernel has been built, obtain a copy of the `GENERIC` kernel that matches the current version of the operating system. If physical access to the system is available, a copy of the `GENERIC` kernel can be installed from the installation media:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -311,7 +311,7 @@ If a custom kernel has been built more than once or if it is unknown how many ti
Alternately, the `GENERIC` kernel may be rebuilt and installed from source:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -328,14 +328,14 @@ Generally, installed applications will continue to work without problems after m
A forced upgrade of all installed packages will replace the packages with fresh versions from the repository even if the version number has not increased. This is required because of the ABI version change when upgrading between major versions of FreeBSD. The forced upgrade can be accomplished by performing:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
A rebuild of all installed applications can be accomplished with this command:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -344,7 +344,7 @@ This command will display the configuration screens for each application that ha
Once the software upgrades are complete, finish the upgrade process with a final call to `freebsd-update` in order to tie up all the loose ends in the upgrade process:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -366,7 +366,7 @@ This command is not a replacement for a real IDS such as package:security/snort[
To begin the comparison, specify the output file to save the results to:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -375,7 +375,7 @@ The system will now be inspected and a lengthy listing of files, along with the
The entries in the listing are extremely long, but the output format may be easily parsed. For instance, to obtain a list of all files which differ from those in the release, issue the following command:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -402,7 +402,7 @@ Rebuilding the FreeBSD documentation from source requires a collection of tools
Once installed, use svnlite to fetch a clean copy of the documentation source:
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -411,7 +411,7 @@ The initial download of the documentation sources may take a while. Let it run u
Future updates of the documentation sources may be fetched by running:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -420,7 +420,7 @@ Once an up-to-date snapshot of the documentation sources has been fetched to [.f
A full update of all available languages may be performed by typing:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -428,7 +428,7 @@ A full update of all available languages may be performed by typing:
If an update of only a specific language is desired, `make` can be invoked in a language-specific subdirectory of [.filename]#/usr/doc#:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -436,14 +436,14 @@ If an update of only a specific language is desired, `make` can be invoked in a
An alternative way of updating the documentation is to run this command from [.filename]#/usr/doc# or the desired language-specific subdirectory:
-[source,bash]
+[source,shell]
....
# make update
....
The output formats that will be installed may be specified by setting `FORMATS`:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -482,7 +482,7 @@ Organization of the documentation ports is as follows:
When binary packages are used, the FreeBSD documentation will be installed in all available formats for the given language. For example, the following command will install the latest package of the Hungarian documentation:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -494,7 +494,7 @@ Packages use a format that differs from the corresponding port's name: `_lang_-f
To specify the format of the documentation, build the port instead of installing the package. For example, to build and install the English documentation:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -515,7 +515,7 @@ Specifies where to install the documentation. It defaults to [.filename]#/usr/lo
This example uses variables to install the Hungarian documentation as a PDF in the specified directory:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -523,7 +523,7 @@ This example uses variables to install the Hungarian documentation as a PDF in t
Documentation packages or ports can be updated using the instructions in crossref:ports[ports,Installing Applications: Packages and Ports]. For example, the following command updates the installed Hungarian documentation using package:ports-mgmt/portmaster[] by using packages only:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -598,7 +598,7 @@ This is a quick reference for the typical steps used to update FreeBSD by buildi
====
* Update and Build
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -643,7 +643,7 @@ Read [.filename]#/usr/src/UPDATING#. Any manual steps that must be performed bef
FreeBSD source code is located in [.filename]#/usr/src/#. The preferred method of updating this source is through the Subversion version control system. Verify that the source code is under version control:
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -654,7 +654,7 @@ Working Copy Root Path: /usr/src
This indicates that [.filename]#/usr/src/# is under version control and can be updated with man:svnlite[1]:
[[synching]]
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -694,7 +694,7 @@ STABLE branches occasionally have bugs or incompatibilities which might affect u
Determine which version of FreeBSD is being used with man:uname[1]:
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -702,7 +702,7 @@ Determine which version of FreeBSD is being used with man:uname[1]:
Based on <<updating-src-obtaining-src-repopath>>, the source used to update `10.3-RELEASE` has a repository path of `base/releng/10.3`. That path is used when checking out the source:
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -718,7 +718,7 @@ Based on <<updating-src-obtaining-src-repopath>>, the source used to update `10.
The _world_, or all of the operating system except the kernel, is compiled. This is done first to provide up-to-date tools to build the kernel. Then the kernel itself is built:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -734,7 +734,7 @@ These are the basic steps. Additional options to control the build are described
Some versions of the FreeBSD build system leave previously-compiled code in the temporary object directory, [.filename]#/usr/obj#. This can speed up later builds by avoiding recompiling code that has not changed. To force a clean rebuild of everything, use `cleanworld` before starting a build:
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -750,7 +750,7 @@ Increasing the number of build jobs on multi-core processors can improve build s
====
Building the world and kernel with four jobs:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -762,7 +762,7 @@ Building the world and kernel with four jobs:
A `buildworld` must be completed if the source code has changed. After that, a `buildkernel` to build a kernel can be run at any time. To build just the kernel:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -785,7 +785,7 @@ Kernel config files are located in [.filename]#/usr/src/sys/arch/conf/#, where _
A custom config file can be created by copying the [.filename]#GENERIC# config file. In this example, the new custom kernel is for a storage server, so is named [.filename]#STORAGESERVER#:
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -796,7 +796,7 @@ A custom config file can be created by copying the [.filename]#GENERIC# config f
The custom kernel is built by setting `KERNCONF` to the kernel config file on the command line:
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -806,7 +806,7 @@ The custom kernel is built by setting `KERNCONF` to the kernel config file on th
After the `buildworld` and `buildkernel` steps have been completed, the new kernel and world are installed:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -818,7 +818,7 @@ After the `buildworld` and `buildkernel` steps have been completed, the new kern
If a custom kernel was built, `KERNCONF` must also be set to use the new custom kernel:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -840,7 +840,7 @@ man:mergemaster[8] provides an easy way to merge changes that have been made to
With `-Ui`, man:mergemaster[8] automatically updates files that have not been user-modified and installs new files that are not already present:
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -852,28 +852,28 @@ If a file must be manually merged, an interactive display allows the user to cho
Some obsolete files or directories can remain after an update. These files can be located:
-[source,bash]
+[source,shell]
....
# make check-old
....
and deleted:
-[source,bash]
+[source,shell]
....
# make delete-old
....
Some obsolete libraries can also remain. These can be detected with:
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
and deleted with
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -885,7 +885,7 @@ Programs which were still using those old libraries will stop working when the l
When all the old files or directories are known to be safe to delete, pressing kbd:[y] and kbd:[Enter] to delete each file can be avoided by setting `BATCH_DELETE_OLD_FILES` in the command. For example:
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -897,7 +897,7 @@ When all the old files or directories are known to be safe to delete, pressing k
The last step after updating is to restart the computer so all the changes take effect:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/pl/books/handbook/desktop/_index.adoc b/documentation/content/pl/books/handbook/desktop/_index.adoc
index 60bf8c2c8f..73fd8daf8e 100644
--- a/documentation/content/pl/books/handbook/desktop/_index.adoc
+++ b/documentation/content/pl/books/handbook/desktop/_index.adoc
@@ -116,14 +116,14 @@ Na wolnych maszynach, z procesorem wolniejszym niż 233MHz bądź z pojemności
Jeśli nie możemy bądź z dowolnego powodu nie chcemy kompilować przeglądarki Mozilla, grupa FreeBSD GNOME zrobiła to za nas. Wystarczy zainstalować pakiet bezpośrednio z sieci za pomocą:
-[source,bash]
+[source,shell]
....
# pkg_add -r mozilla
....
Jeśli z jakichś powodów pakiet nie jest dostępny, a my dysponujemy czasem i miejscem na dysku, możemy pobrać źródła, skompilować je i zainstalować w naszym systemie. W tym celu wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/mozilla
# make install clean
@@ -133,14 +133,14 @@ Port ten przygotowany został w sposób zapewniający właściwą inicjalizację
By uruchomić przeglądarkę należy wpisać poniższe polecenie. Poza procesem instalacji, przeglądarka nie wymaga korzystania z konta `root`.
-[source,bash]
+[source,shell]
....
% mozilla
....
Uruchomienie jej bezpośrednio w trybie klienta poczty i grup dyskusyjnych możliwe jest za pomocą polecenia:
-[source,bash]
+[source,shell]
....
% mozilla -mail
....
@@ -151,14 +151,14 @@ Firefox jest nowoczesną przeglądarką, opartą o kod przeglądarki Mozilla. O
By zainstalować go z pakietu wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Jeśli preferujemy kompilację programów wprost z kodu źródłowego, możemy skorzystać z kolekcji portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -189,7 +189,7 @@ Kolejnym krokiem jest instalacja portu www/linux-flashplugin7. Po zainstalowaniu
Jeśli na powyższej liście brak jest modułu Flash(R), najczęstszą przyczyną jest brak odpowiedniego dowiązania symbolicznego. W takiej sytuacji należy jako użytkownik root uruchomić następujące polecenia:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so \
/usr/X11R6/lib/browser_plugins/
@@ -199,7 +199,7 @@ Jeśli na powyższej liście brak jest modułu Flash(R), najczęstszą przyczyn
Po ponownym uruchomieniu przeglądarki, moduł powinien zostać wyświetlony na wspomnianej liście. Może się również zdażyć, że nasza przeglądarka ulegenie awarii w trakcie odtwarzania animacji Flash(R). W takim przypadku będziemy musieli nałożyć odpowiednią łatę (ang. patch):
-[source,bash]
+[source,shell]
....
# cd /usr/src
# fetch http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff
@@ -224,7 +224,7 @@ Opera jest nowoczesną, zgodną ze standardami przeglądarką internetową. Posi
By móc przeglądać zasoby sieci WWW za pomocą wersji dla FreeBSD, musimy zainstalować odpowiedni pakiet:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -232,7 +232,7 @@ By móc przeglądać zasoby sieci WWW za pomocą wersji dla FreeBSD, musimy zain
Niektóre serwery FTP nie zawierają wszystkich pakietów, lecz ten sam efekt możemy otrzymać wykorzystując kolekcję portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -293,14 +293,14 @@ Przed instalacją najnowszej wersji pakietu KOffice, powinniśmy się upewnić,
By zainstalować KOffice z pakietu, należy wpisać następujące polecenie:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Jeśli pakiet nie jest dostępny, możemy wykorzystać kolekcję portów. Na przykład, by zainstalować KOffice dla KDE3, należy wpisać:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -314,14 +314,14 @@ AbiWord potrafi importować z i eksportować do wielu formatów plików, w tym r
AbiWord dostępny jest w postaci pakietu. By go zainstalować wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Jeśli pakiet nie jest dostępny, możemy skompilować program wprost z kolekcji portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -333,14 +333,14 @@ The GIMP jest wyrafinowanym programem przetwarzającym obraz. Wykorzystywany mo
Możemy zainstalować go z pakietu, za pomocą polecenia:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Jeśli wykorzystywany serwer FTP nie dysponuje odpowiednim pakietem, możemy wykorzystać kolekcję portów. Katalog graphics zawiera oprócz samego programu, również podręcznik The Gimp Manual. Oto przykładowa metoda instalacji:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -361,7 +361,7 @@ Procesor tekstu pakietu OpenOffice.org wykorzystuje format pliku XML, by tym spo
By zainstalować OpenOffice.org, wystarczy:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -373,7 +373,7 @@ Metoda ta przewidzana jest dla wydań FreeBSD gałęzi -RELEASE. W innym przypad
Mając zainstalowany pakiety, wystarczy wpisać następujące polecenie by uruchomić OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -385,7 +385,7 @@ Przy pierwszym uruchomieniu będziemy poproszeni o udzielenie kilku odpowiedzi.
Jeśli pakiety OpenOffice.org nie są dostępne, wciąż mamy możliwość skompilowania portu. Miejmy jednakże w pamięci, że wymaga do dużej ilości wolnej przestrzeni na dysku oraz zajmuje dość dużo czasu.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-2
# make install clean
@@ -395,7 +395,7 @@ Jeśli pakiety OpenOffice.org nie są dostępne, wciąż mamy możliwość skomp
====
Jeśli chcemy skompilować pakiet w naszej wersji językowej, należy powyższe polecenie zastąpić następującym:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=nasz_język install clean
....
@@ -406,7 +406,7 @@ Opcję `nasz_język` należy zastąpić właściwym kodem ISO. Lista kodów obs
Skończywszy instalację, możemy uruchomić OpenOffice.org za pomocą polecenia:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -453,7 +453,7 @@ Obecnie wiele dokumentów publikowanych jest w postaci plików PDF (ang. Portabl
By zainstalować Acrobat Reader(R) 7 wprost z kolekcji portów, należy wpisać:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread7
# make install clean
@@ -467,14 +467,14 @@ gv jest przeglądarką dokumentów PostScript(R) i PDF. Bazuje ona bezpośrednio
By zainstalować gv z pakietu, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Jeśli nie możemy pobrać pakietu, możemy zawsze wykorzystać kolekcję portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -486,14 +486,14 @@ Jeśli potrzebujemy małej przeglądarki dokumentów PDF, Xpdf stanowi lekkie i
By zainstalować pakiet Xpdf, należy wykorzystać następujące polecenie:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Jeśli pakiet nie jest dostępny bądź wolimy wykorzystać kolekcję portów, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -507,14 +507,14 @@ GQview jest menedżerem i przeglądarką obrazów. Za pomocą jednego kliknięci
By zainstalować pakiet GQview, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Jeśli pakiet nie jest dostępny bądź wolimy skorzystać z kolekcji portów, możemy wpisać:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -559,14 +559,14 @@ GnuCash zawiera inteligentny rejestr, hierarchiczny system kont, wiele skrótów
By zainstalować GnuCash należy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Jeśli pakiet nie jest dostępny, możemy wykorzystać kolekcję portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -578,14 +578,14 @@ Gnumeric jest arkuszem kalkulacyjnym, dostępnym jako część środowiska GNOME
By zainstalować Gnumeric z pakietu, należy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Jeśli pakiet nie jest dostępny, możemy skorzystać z kolekcji portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -597,14 +597,14 @@ Abacus jest małym i prostym w użyciu arkuszem kalkulacyjnym. Zawiera on wiele
By zainstalować Abacus z pakietu, należy:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Jeśli pakiet nie jest dostępny, możemy wykorzystać kolekcję portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
diff --git a/documentation/content/pl/books/handbook/disks/_index.adoc b/documentation/content/pl/books/handbook/disks/_index.adoc
index 7298f1775e..21aace20ab 100644
--- a/documentation/content/pl/books/handbook/disks/_index.adoc
+++ b/documentation/content/pl/books/handbook/disks/_index.adoc
@@ -83,7 +83,7 @@ If the disk to be added is not blank, old partition information can be removed w
The partition scheme is created, and then a single partition is added. To improve performance on newer disks with larger hardware block sizes, the partition is aligned to one megabyte boundaries:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
@@ -93,7 +93,7 @@ Depending on use, several smaller partitions may be desired. See man:gpart[8] fo
The disk partition information can be viewed with `gpart show`:
-[source,bash]
+[source,shell]
....
% gpart show ada1
=> 34 1465146988 ada1 GPT (699G)
@@ -104,14 +104,14 @@ The disk partition information can be viewed with `gpart show`:
A file system is created in the new partition on the new disk:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
An empty directory is created as a _mountpoint_, a location for mounting the new disk in the original disk's file system:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -125,7 +125,7 @@ Finally, an entry is added to [.filename]#/etc/fstab# so the new disk will be mo
The new disk can be mounted manually, without restarting the system:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -139,7 +139,7 @@ Determine the device name of the disk to be resized by inspecting [.filename]#/v
List the partitions on the disk to see the current configuration:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 83886013 ada0 GPT (48G) [CORRUPT]
@@ -153,7 +153,7 @@ List the partitions on the disk to see the current configuration:
====
If the disk was formatted with the http://en.wikipedia.org/wiki/GUID_Partition_Table[GPT] partitioning scheme, it may show as "corrupted" because the GPT backup partition table is no longer at the end of the drive. Fix the backup partition table with `gpart`:
-[source,bash]
+[source,shell]
....
# gpart recover ada0
ada0 recovered
@@ -163,7 +163,7 @@ ada0 recovered
Now the additional space on the disk is available for use by a new partition, or an existing partition can be expanded:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 102399933 ada0 GPT (48G)
@@ -177,14 +177,14 @@ Partitions can only be resized into contiguous free space. Here, the last partit
Disable the swap partition:
-[source,bash]
+[source,shell]
....
# swapoff /dev/ada0p3
....
Delete the third partition, specified by the `-i` flag, from the disk _ada0_.
-[source,bash]
+[source,shell]
....
# gpart delete -i 3 ada0
ada0p3 deleted
@@ -200,7 +200,7 @@ ada0p3 deleted
There is risk of data loss when modifying the partition table of a mounted file system. It is best to perform the following steps on an unmounted file system while running from a live CD-ROM or USB device. However, if absolutely necessary, a mounted file system can be resized after disabling GEOM safety features:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -209,7 +209,7 @@ There is risk of data loss when modifying the partition table of a mounted file
Resize the partition, leaving room to recreate a swap partition of the desired size. The partition to resize is specified with `-i`, and the new desired size with `-s`. Optionally, alignment of the partition is controlled with `-a`. This only modifies the size of the partition. The file system in the partition will be expanded in a separate step.
-[source,bash]
+[source,shell]
....
# gpart resize -i 2 -s 47G -a 4k ada0
ada0p2 resized
@@ -222,7 +222,7 @@ ada0p2 resized
Recreate the swap partition and activate it. If no size is specified with `-s`, all remaining space is used:
-[source,bash]
+[source,shell]
....
# gpart add -t freebsd-swap -a 4k ada0
ada0p3 added
@@ -236,7 +236,7 @@ ada0p3 added
Grow the UFS file system to use the new capacity of the resized partition:
-[source,bash]
+[source,shell]
....
# growfs /dev/ada0p2
Device is mounted read-write; resizing will result in temporary write suspension for /.
@@ -249,7 +249,7 @@ super-block backups (for fsck -b #) at:
If the file system is ZFS, the resize is triggered by running the `online` subcommand with `-e`:
-[source,bash]
+[source,shell]
....
# zpool online -e zroot /dev/ada0p2
....
@@ -290,7 +290,7 @@ The rest of this section demonstrates how to verify that a USB storage device is
To test the USB configuration, plug in the USB device. Use `dmesg` to confirm that the drive appears in the system message buffer. It should look something like this:
-[source,bash]
+[source,shell]
....
umass0: <STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x0100
@@ -307,7 +307,7 @@ The brand, device node ([.filename]#da0#), speed, and size will differ according
Since the USB device is seen as a SCSI one, `camcontrol` can be used to list the USB storage devices attached to the system:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<STECH Simple Drive 1.04> at scbus4 target 0 lun 0 (pass3,da0)
@@ -315,7 +315,7 @@ Since the USB device is seen as a SCSI one, `camcontrol` can be used to list the
Alternately, `usbconfig` can be used to list the device. Refer to man:usbconfig[8] for more information about this command.
-[source,bash]
+[source,shell]
....
# usbconfig
ugen0.3: <Simple Drive STECH> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
@@ -365,7 +365,7 @@ vfs.usermount=1
Since this only takes effect after the next reboot, use `sysctl` to set this variable now:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -373,7 +373,7 @@ vfs.usermount: 0 -> 1
The final step is to create a directory where the file system is to be mounted. This directory needs to be owned by the user that is to mount the file system. One way to do that is for `root` to create a subdirectory owned by that user as [.filename]#/mnt/username#. In the following example, replace _username_ with the login name of the user and _usergroup_ with the user's primary group:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -381,21 +381,21 @@ The final step is to create a directory where the file system is to be mounted.
Suppose a USB thumbdrive is plugged in, and a device [.filename]#/dev/da0s1# appears. If the device is formatted with a FAT file system, the user can mount it using:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Before the device can be unplugged, it _must_ be unmounted first:
-[source,bash]
+[source,shell]
....
% umount /mnt/username
....
After device removal, the system message buffer will show messages similar to the following:
-[source,bash]
+[source,shell]
....
umass0: at uhub3, port 2, addr 3 (disconnected)
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
@@ -407,14 +407,14 @@ da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
USB devices can be automatically mounted by uncommenting this line in [.filename]#/etc/auto_master#:
-[source,bash]
+[source,shell]
....
/media -media -nosuid
....
Then add these lines to [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "GEOM";
@@ -425,7 +425,7 @@ notify 100 {
Reload the configuration if man:autofs[5] and man:devd[8] are already running:
-[source,bash]
+[source,shell]
....
# service automount restart
# service devd restart
@@ -442,7 +442,7 @@ man:autofs[5] requires man:devd[8] to be enabled, as it is by default.
Start the services immediately with:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -454,7 +454,7 @@ Each file system that can be automatically mounted appears as a directory in [.f
The file system is transparently mounted on the first access, and unmounted after a period of inactivity. Automounted drives can also be unmounted manually:
-[source,bash]
+[source,shell]
....
# automount -fu
....
@@ -530,7 +530,7 @@ This will require a reboot of the system as this driver can only be loaded at bo
To verify that FreeBSD recognizes the device, run `dmesg` and look for an entry for the device. On systems prior to 10.x, the device name in the first line of the output will be [.filename]#acd0# instead of [.filename]#cd0#.
-[source,bash]
+[source,shell]
....
% dmesg | grep cd
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
@@ -547,14 +547,14 @@ In FreeBSD, `cdrecord` can be used to burn CDs. This command is installed with t
While `cdrecord` has many options, basic usage is simple. Specify the name of the ISO file to burn and, if the system has multiple burner devices, specify the name of the device to use:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
To determine the device name of the burner, use `-scanbus` which might produce results like this:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 Jörg Schilling
@@ -583,7 +583,7 @@ Locate the entry for the CD burner and use the three numbers separated by commas
Alternately, run the following command to get the device address of the burner:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (cd0,pass0)
@@ -596,7 +596,7 @@ Use the numeric values for `scbus`, `target`, and `lun`. For this example, `1,0,
In order to produce a data CD, the data files that are going to make up the tracks on the CD must be prepared before they can be burned to the CD. In FreeBSD, package:sysutils/cdrtools[] installs `mkisofs`, which can be used to produce an ISO 9660 file system that is an image of a directory tree within a UNIX(R) file system. The simplest usage is to specify the name of the ISO file to create and the path to the files to place into the ISO 9660 file system:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -609,14 +609,14 @@ For CDs that are going to be used only on FreeBSD systems, `-U` can be used to d
The last option of general use is `-b`. This is used to specify the location of a boot image for use in producing an "El Torito" bootable CD. This option takes an argument which is the path to a boot image from the top of the tree being written to the CD. By default, `mkisofs` creates an ISO image in "floppy disk emulation" mode, and thus expects the boot image to be exactly 1200, 1440 or 2880 KB in size. Some boot loaders, like the one used by the FreeBSD distribution media, do not use emulation mode. In this case, `-no-emul-boot` should be used. So, if [.filename]#/tmp/myboot# holds a bootable FreeBSD system with the boot image in [.filename]#/tmp/myboot/boot/cdboot#, this command would produce [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
The resulting ISO image can be mounted as a memory disk with:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -630,7 +630,7 @@ There are many other options available for `mkisofs` to fine-tune its behavior.
====
It is possible to copy a data CD to an image file that is functionally equivalent to the image file created with `mkisofs`. To do so, use [.filename]#dd# with the device name as the input file and the name of the ISO to create as the output file:
-[source,bash]
+[source,shell]
....
# dd if=/dev/cd0 of=file.iso bs=2048
....
@@ -643,7 +643,7 @@ The resulting image file can be burned to CD as described in <<cdrecord>>.
Once an ISO has been burned to a CD, it can be mounted by specifying the file system type, the name of the device containing the CD, and an existing mount point:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
@@ -681,7 +681,7 @@ It is possible to burn a file directly to CD, without creating an ISO 9660 file
This type of disk can not be mounted as a normal data CD. In order to retrieve the data burned to such a CD, the data must be read from the raw device node. For example, this command will extract a compressed tar file located on the second CD device into the current working directory:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/cd1
....
@@ -701,7 +701,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
. The package:sysutils/cdrtools[] package or port installs `cdda2wav`. This command can be used to extract all of the audio tracks, with each track written to a separate WAV file in the current working directory:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -B -Owav
....
@@ -711,7 +711,7 @@ A device name does not need to be specified if there is only one CD device on th
. Use `cdrecord` to write the [.filename]#.wav# files:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -765,7 +765,7 @@ Since man:growisofs[1] is a front-end to <<mkisofs,mkisofs>>, it will invoke man
To burn to a DVD+R or a DVD-R the data in [.filename]#/path/to/data#, use the following command:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -776,7 +776,7 @@ For the initial session recording, `-Z` is used for both single and multiple ses
To burn a pre-mastered image, such as _imagefile.iso_, use:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -789,14 +789,14 @@ In order to support working files larger than 4.38GB, an UDF/ISO-9660 hybrid fil
To create this type of ISO file:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
To burn files directly to a disk:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -812,7 +812,7 @@ A DVD-Video is a specific file layout based on the ISO 9660 and micro-UDF (M-UDF
If an image of the DVD-Video file system already exists, it can be burned in the same way as any other image. If `dvdauthor` was used to make the DVD and the result is in [.filename]#/path/to/video#, the following command should be used to burn the DVD-Video:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -823,7 +823,7 @@ If an image of the DVD-Video file system already exists, it can be burned in the
Unlike CD-RW, a virgin DVD+RW needs to be formatted before first use. It is _recommended_ to let man:growisofs[1] take care of this automatically whenever appropriate. However, it is possible to use `dvd+rw-format` to format the DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -832,7 +832,7 @@ Only perform this operation once and keep in mind that only virgin DVD+RW medias
To burn a totally new file system and not just append some data onto a DVD+RW, the media does not need to be blanked first. Instead, write over the previous recording like this:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -841,7 +841,7 @@ The DVD+RW format supports appending data to a previous recording. This operatio
For example, to append data to a DVD+RW, use the following:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -855,7 +855,7 @@ Use `-dvd-compat` for better media compatibility with DVD-ROM drives. When using
To blank the media, use:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -868,7 +868,7 @@ A virgin DVD-RW can be directly written without being formatted. However, a non-
To blank a DVD-RW in sequential mode:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -877,7 +877,7 @@ To blank a DVD-RW in sequential mode:
====
A full blanking using `-blank=full` will take about one hour on a 1x media. A fast blanking can be performed using `-blank`, if the DVD-RW will be recorded in Disk-At-Once (DAO) mode. To burn the DVD-RW in DAO mode, use the command:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -889,7 +889,7 @@ One should instead use restricted overwrite mode with any DVD-RW as this format
To write data on a sequential DVD-RW, use the same instructions as for the other DVD formats:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -900,14 +900,14 @@ A DVD-RW in restricted overwrite format does not need to be blanked before a new
To put a DVD-RW in restricted overwrite format, the following command must be used:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
To change back to sequential format, use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -918,7 +918,7 @@ Few DVD-ROM drives support multi-session DVDs and most of the time only read the
Using the following command after an initial non-closed session on a DVD+R, DVD-R, or DVD-RW in sequential format, will add a new session to the disc:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -953,7 +953,7 @@ hw.ata.atapi_dma="1"
A DVD-RAM can be seen as a removable hard drive. Like any other hard drive, the DVD-RAM must be formatted before it can be used. In this example, the whole disk space will be formatted with a standard UFS2 file system:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -964,7 +964,7 @@ The DVD device, [.filename]#acd0#, must be changed according to the configuratio
Once the DVD-RAM has been formatted, it can be mounted as a normal hard drive:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -984,7 +984,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
. To format the floppy, insert a new 3.5 inch floppy disk into the first floppy drive and issue:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -993,7 +993,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
+
To write the disk label, use man:bsdlabel[8]:
+
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1002,7 +1002,7 @@ To write the disk label, use man:bsdlabel[8]:
+
To format the floppy with FAT, issue:
+
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1046,7 +1046,7 @@ Instead, one can use `dump` and `restore` in a more secure fashion over an SSH c
.Using `dump` over ssh
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1058,7 +1058,7 @@ This example sets `RSH` in order to write the backup to a tape drive on a remote
.Using `dump` over ssh with `RSH` Set
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1075,7 +1075,7 @@ This example creates a compressed backup of the current directory and saves it t
.Backing Up the Current Directory with `tar`
[example]
====
-[source,bash]
+[source,shell]
....
# tar czvf /tmp/mybackup.tgz .
....
@@ -1086,7 +1086,7 @@ To restore the entire backup, `cd` into the directory to restore into and specif
.Restoring Up the Current Directory with `tar`
[example]
====
-[source,bash]
+[source,shell]
....
# tar xzvf /tmp/mybackup.tgz
....
@@ -1101,7 +1101,7 @@ For example, a list of files can be created using `ls` or `find`. This example c
.Using `ls` and `cpio` to Make a Recursive Backup of the Current Directory
[example]
====
-[source,bash]
+[source,shell]
....
# ls -R | cpio -ovF /tmp/mybackup.cpio
....
@@ -1114,7 +1114,7 @@ The `pax` equivalent to the previous examples would be:
.Backing Up the Current Directory with `pax`
[example]
====
-[source,bash]
+[source,shell]
....
# pax -wf /tmp/mybackup.pax .
....
@@ -1129,7 +1129,7 @@ For SCSI tape devices, FreeBSD uses the man:sa[4] driver and the [.filename]#/de
In FreeBSD, `mt` is used to control operations of the tape drive, such as seeking through files on a tape or writing tape control marks to the tape. For example, the first three files on a tape can be preserved by skipping past them before writing a new file:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1138,28 +1138,28 @@ This utility supports many operations. Refer to man:mt[1] for details.
To write a single file to tape using `tar`, specify the name of the tape device and the file to backup:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
To recover files from a `tar` archive on tape into the current directory:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
To backup a UFS file system, use `dump`. This examples backs up [.filename]#/usr# without rewinding the tape when finished:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
To interactively restore files from a `dump` file on tape into the current directory:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1209,7 +1209,7 @@ device md
To mount an existing file system image, use `mdconfig` to specify the name of the ISO file and a free unit number. Then, refer to that unit number to mount it on an existing mount point. Once mounted, the files in the ISO will appear in the mount point. This example attaches _diskimage.iso_ to the memory device [.filename]#/dev/md0# then mounts that memory device on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -1219,7 +1219,7 @@ Notice that `-t cd9660` was used to mount an ISO format. If a unit number is not
When a memory disk is no longer in use, its resources should be released back to the system. First, unmount the file system, then use `mdconfig` to detach the disk from the system and release its resources. To continue this example:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 0
@@ -1234,7 +1234,7 @@ FreeBSD also supports memory disks where the storage to use is allocated from ei
To create a new memory-backed file system, specify a type of `swap` and the size of the memory disk to create. Then, format the memory disk with a file system and mount as usual. This example creates a 5M memory disk on unit `1`. That memory disk is then formatted with the UFS file system before it is mounted:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1251,7 +1251,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
To create a new file-backed memory disk, first allocate an area of disk to use. This example creates an empty 5MB file named [.filename]#newimage#:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1260,7 +1260,7 @@ To create a new file-backed memory disk, first allocate an area of disk to use.
Next, attach that file to a memory disk, label the memory disk and format it with the UFS file system, mount the memory disk, and verify the size of the file-backed disk:
-[source,bash]
+[source,shell]
....
# mdconfig -f newimage -u 0
# bsdlabel -w md0 auto
@@ -1277,14 +1277,14 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
It takes several commands to create a file- or memory-backed file system using `mdconfig`. FreeBSD also comes with `mdmfs` which automatically configures a memory disk, formats it with the UFS file system, and mounts it. For example, after creating _newimage_ with `dd`, this one command is equivalent to running the `bsdlabel`, `newfs`, and `mount` commands shown above:
-[source,bash]
+[source,shell]
....
# mdmfs -F newimage -s 5m md0 /mnt
....
To instead create a new memory-based memory disk with `mdmfs`, use this one command:
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md1 /mnt
....
@@ -1302,21 +1302,21 @@ The un-alterable `snapshot` file flag is set by man:mksnap_ffs[8] after initial
Snapshots are created using man:mount[8]. To place a snapshot of [.filename]#/var# in the file [.filename]#/var/snapshot/snap#, use the following command:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternatively, use man:mksnap_ffs[8] to create the snapshot:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
One can find snapshot files on a file system, such as [.filename]#/var#, using man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1329,7 +1329,7 @@ Once a snapshot has been created, it has several uses:
* The snapshot can be mounted as a frozen image of the file system. To man:mount[8] the snapshot [.filename]#/var/snapshot/snap# run:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1337,7 +1337,7 @@ Once a snapshot has been created, it has several uses:
The frozen [.filename]#/var# is now available through [.filename]#/mnt#. Everything will initially be in the same state it was during the snapshot creation time. The only exception is that any earlier snapshots will appear as zero length files. To unmount the snapshot, use:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1356,7 +1356,7 @@ This section describes how to configure disk quotas for the UFS file system. To
To determine if the FreeBSD kernel provides support for disk quotas:
-[source,bash]
+[source,shell]
....
% sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
@@ -1407,7 +1407,7 @@ In the normal course of operations, there should be no need to manually run man:
To verify that quotas are enabled, run:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1424,7 +1424,7 @@ Soft limits can be exceeded for a limited amount of time, known as the grace per
In the following example, the quota for the `test` account is being edited. When `edquota` is invoked, the editor specified by `EDITOR` is opened in order to edit the quota limits. The default editor is set to vi.
-[source,bash]
+[source,shell]
....
# edquota -u test
Quotas for user test:
@@ -1445,7 +1445,7 @@ The new quota limits take effect upon exiting the editor.
Sometimes it is desirable to set quota limits on a range of users. This can be done by first assigning the desired quota limit to a user. Then, use `-p` to duplicate that quota to a specified range of user IDs (UIDs). The following command will duplicate those quota limits for UIDs `10,000` through `19,999`:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1481,7 +1481,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Then, restart `inetd`:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1503,7 +1503,7 @@ This facility provides several barriers to protect the data stored in each disk
FreeBSD provides a kernel module for gbde which can be loaded with this command:
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1520,7 +1520,7 @@ The following example demonstrates adding a new hard drive to a system that will
+
Install the new drive to the system as explained in <<disks-adding>>. For the purposes of this example, a new hard drive partition has been added as [.filename]#/dev/ad4s1c# and [.filename]#/dev/ad0s1*# represents the existing standard FreeBSD partitions.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1530,7 +1530,7 @@ Install the new drive to the system as explained in <<disks-adding>>. For the pu
. Create a Directory to Hold `gbde` Lock Files
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1540,7 +1540,7 @@ The gbde lock file contains information that gbde requires to access encrypted p
+
A gbde partition must be initialized before it can be used. This initialization needs to be performed only once. This command will open the default editor, in order to set various configuration options in a template. For use with the UFS file system, set the sector_size to 2048:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
# $FreeBSD: src/sbin/gbde/template.txt,v 1.1.36.1 2009/08/03 08:13:06 kensmith Exp $
@@ -1566,14 +1566,14 @@ Lock files _must_ be backed up together with the contents of any encrypted parti
. Attach the Encrypted Partition to the Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
This command will prompt to input the passphrase that was selected during the initialization of the encrypted partition. The new encrypted device will appear in [.filename]#/dev# as [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1585,7 +1585,7 @@ This command will prompt to input the passphrase that was selected during the in
+
Once the encrypted device has been attached to the kernel, a file system can be created on the device. This example creates a UFS file system with soft updates enabled. Be sure to specify the partition which has a [.filename]#*.bde# extension:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ad4s1c.bde
....
@@ -1594,7 +1594,7 @@ Once the encrypted device has been attached to the kernel, a file system can be
+
Create a mount point and mount the encrypted file system:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
# mount /dev/ad4s1c.bde /private
@@ -1604,7 +1604,7 @@ Create a mount point and mount the encrypted file system:
+
The encrypted file system should now be visible and available for use:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1631,7 +1631,7 @@ This requires that the passphrase be entered at the console at boot time. After
====
sysinstall is incompatible with gbde-encrypted devices. All [.filename]#*.bde# devices must be detached from the kernel before starting sysinstall or it will crash during its initial probing for devices. To detach the encrypted device used in the example, use the following command:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1667,7 +1667,7 @@ geom_eli_load="YES"
+
To load the kernel module now:
+
-[source,bash]
+[source,shell]
....
# kldload geom_eli
....
@@ -1684,7 +1684,7 @@ device crypto
+
The following commands generate a master key that all data will be encrypted with. This key can never be changed. Rather than using it directly, it is encrypted with one or more user keys. The user keys are made up of an optional combination of random bytes from a file, [.filename]#/root/da2.key#, and/or a passphrase. In this case, the data source for the key file is [.filename]#/dev/random#. This command also configures the sector size of the provider ([.filename]#/dev/da2.eli#) as 4kB, for better performance:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -K /root/da2.key -s 4096 /dev/da2
@@ -1696,7 +1696,7 @@ It is not mandatory to use both a passphrase and a key file as either method of
+
If the key file is given as "-", standard input will be used. For example, this command generates three key files:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
@@ -1705,7 +1705,7 @@ If the key file is given as "-", standard input will be used. For example, this
+
To attach the provider, specify the key file, the name of the disk, and the passphrase:
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1713,7 +1713,7 @@ Enter passphrase:
+
This creates a new device with an [.filename]#.eli# extension:
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1723,7 +1723,7 @@ This creates a new device with an [.filename]#.eli# extension:
+
Next, format the device with the UFS file system and mount it on an existing mount point:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1732,7 +1732,7 @@ Next, format the device with the UFS file system and mount it on an existing mou
+
The encrypted file system should now be available for use:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1746,7 +1746,7 @@ Filesystem Size Used Avail Capacity Mounted on
Once the work on the encrypted partition is done, and the [.filename]#/private# partition is no longer needed, it is prudent to put the device into cold storage by unmounting and detaching the `geli` encrypted partition from the kernel:
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1773,7 +1773,7 @@ This section demonstrates how to configure an encrypted swap partition using man
Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. To overwrite the current swap partition with random garbage, execute the following command:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ada0s1b bs=1m
....
@@ -1822,7 +1822,7 @@ Once the system has rebooted, proper operation of the encrypted swap can be veri
If man:gbde[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1831,7 +1831,7 @@ Device 1K-blocks Used Avail Capacity
If man:geli[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1928,7 +1928,7 @@ It is also possible to use host names in the `remote` statements if the hosts ar
Once the configuration exists on both nodes, the HAST pool can be created. Run these commands on both nodes to place the initial metadata onto the local disk and to start man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -1941,21 +1941,21 @@ It is _not_ possible to use GEOM providers with an existing file system or to co
A HAST node's `primary` or `secondary` role is selected by an administrator, or software like Heartbeat, using man:hastctl[8]. On the primary node, `hasta`, issue this command:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Run this command on the secondary node, `hastb`:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
Verify the result by running `hastctl` on each node:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -1964,7 +1964,7 @@ Check the `status` line in the output. If it says `degraded`, something is wrong
The next step is to create a file system on the GEOM provider and mount it. This must be done on the `primary` node. Creating the file system can take a few minutes, depending on the size of the hard drive. This example creates a UFS file system on [.filename]#/dev/hast/test#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2014,7 +2014,7 @@ If the systems are running FreeBSD 10 or higher, replace [.filename]#carp0# with
Restart man:devd[8] on both nodes to put the new configuration into effect:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2147,7 +2147,7 @@ _Split-brain_ occurs when the nodes of the cluster are unable to communicate wit
The administrator must either decide which node has more important changes, or perform the merge manually. Then, let HAST perform full synchronization of the node which has the broken data. To do this, issue these commands on the node which needs to be resynchronized:
-[source,bash]
+[source,shell]
....
# hastctl role init test
# hastctl create test
diff --git a/documentation/content/pl/books/handbook/dtrace/_index.adoc b/documentation/content/pl/books/handbook/dtrace/_index.adoc
index 6e3cfe29f8..1afc638c53 100644
--- a/documentation/content/pl/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/pl/books/handbook/dtrace/_index.adoc
@@ -72,7 +72,7 @@ Before reading this chapter, you should:
While the DTrace in FreeBSD is similar to that found in Solaris(TM), differences do exist. The primary difference is that in FreeBSD, DTrace is implemented as a set of kernel modules and DTrace can not be used until the modules are loaded. To load all of the necessary modules:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
@@ -127,7 +127,7 @@ DTrace scripts consist of a list of one or more _probes_, or instrumentation poi
To view all probes, the administrator can execute the following command:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -138,7 +138,7 @@ The examples in this section provide an overview of how to use two of the fully
The [.filename]#hotkernel# script is designed to identify which function is using the most kernel time. It will produce output similar to the following:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/dtrace-toolkit
# ./hotkernel
@@ -147,7 +147,7 @@ Sampling... Hit Ctrl-C to end.
As instructed, use the kbd:[Ctrl+C] key combination to stop the process. Upon termination, the script will display a list of kernel functions and timing information, sorting the output in increasing order of time:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -179,7 +179,7 @@ kernel`sched_idletd 137 0.3%
This script will also work with kernel modules. To use this feature, run the script with `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -201,7 +201,7 @@ kernel 874 0.4%
The [.filename]#procsystime# script captures and prints the system call time usage for a given process `ID` (`PID`) or process name. In the following example, a new instance of [.filename]#/bin/csh# was spawned. Then, [.filename]#procsystime# was executed and remained waiting while a few commands were typed on the other incarnation of `csh`. These are the results of this test:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/pl/books/handbook/filesystems/_index.adoc b/documentation/content/pl/books/handbook/filesystems/_index.adoc
index 420dfa7fb4..0a281add46 100644
--- a/documentation/content/pl/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/pl/books/handbook/filesystems/_index.adoc
@@ -85,14 +85,14 @@ This driver can also be used to access ext3 and ext4 file systems. The man:ext2f
To access an ext file system, first load the kernel loadable module:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Then, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. This example mounts [.filename]#/dev/ad1s1# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/pl/books/handbook/firewalls/_index.adoc b/documentation/content/pl/books/handbook/firewalls/_index.adoc
index 5a2a5964d2..2510418056 100644
--- a/documentation/content/pl/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/pl/books/handbook/firewalls/_index.adoc
@@ -144,7 +144,7 @@ To use PF, its kernel module must be first loaded. This section describes the en
Start by adding `pf_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pf_enable=yes
....
@@ -165,7 +165,7 @@ pf_rules="/path/to/pf.conf"
Logging support for PF is provided by man:pflog[4]. To enable logging support, add `pflog_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pflog_enable=yes
....
@@ -187,7 +187,7 @@ gateway_enable="YES" # Enable as LAN gateway
After saving the needed edits, PF can be started with logging support by typing:
-[source,bash]
+[source,shell]
....
# service pf start
# service pflog start
@@ -242,7 +242,7 @@ pass out all keep state
The first rule denies all incoming traffic by default. The second rule allows connections created by this system to pass out, while retaining state information on those connections. This state information allows return traffic for those connections to pass back and should only be used on machines that can be trusted. The ruleset can be loaded with:
-[source,bash]
+[source,shell]
....
# pfctl -e ; pfctl -f /etc/pf.conf
....
@@ -270,14 +270,14 @@ Even though UDP is considered to be a stateless protocol, PF is able to track so
Whenever an edit is made to a ruleset, the new rules must be loaded so they can be used:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
If there are no syntax errors, `pfctl` will not output any messages during the rule load. Rules can also be tested before attempting to load them:
-[source,bash]
+[source,shell]
....
# pfctl -nf /etc/pf.conf
....
@@ -297,21 +297,21 @@ This section demonstrates how to configure a FreeBSD system running PF to act as
First, enable the gateway to let the machine forward the network traffic it receives on one interface to another interface. This sysctl setting will forward IPv4 packets:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.ip.forwarding=1
....
To forward IPv6 traffic, use:
-[source,bash]
+[source,shell]
....
# sysctl net.inet6.ip6.forwarding=1
....
To enable these settings at system boot, use man:sysrc[8] to add them to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc gateway_enable=yes
# sysrc ipv6_gateway_enable=yes
@@ -452,7 +452,7 @@ where `$proxy` expands to the address the proxy daemon is bound to.
Save [.filename]#/etc/pf.conf#, load the new rules, and verify from a client that FTP connections are working:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
@@ -564,14 +564,14 @@ pass inet proto tcp from <clients> to any port $client_out flags S/SA keep state
A table's contents can be manipulated live, using `pfctl`. This example adds another network to the table:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T add 192.168.1.0/16
....
Note that any changes made this way will take affect now, making them ideal for testing, but will not survive a power failure or reboot. To make the changes permanent, modify the definition of the table in the ruleset or edit the file that the table refers to. One can maintain the on-disk copy of the table using a man:cron[8] job which dumps the table's contents to disk at regular intervals, using a command such as `pfctl -t clients -T show >/etc/clients`. Alternatively, [.filename]#/etc/clients# can be updated with the in-memory table contents:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T replace -f /etc/clients
....
@@ -651,7 +651,7 @@ Over time, tables will be filled by overload rules and their size will grow incr
For situations like these, pfctl provides the ability to expire table entries. For example, this command will remove `<bruteforce>` table entries which have not been referenced for `86400` seconds:
-[source,bash]
+[source,shell]
....
# pfctl -t bruteforce -T expire 86400
....
@@ -901,14 +901,14 @@ For those users who wish to statically compile IPFW support into a custom kernel
To configure the system to enable IPFW at boot time, add `firewall_enable="YES"` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_enable="YES"
....
To use one of the default firewall types provided by FreeBSD, add another line which specifies the type:
-[source,bash]
+[source,shell]
....
# sysrc firewall_type="open"
....
@@ -929,14 +929,14 @@ Note that the `filename` type is used to load a custom ruleset.
An alternate way to load a custom ruleset is to set the `firewall_script` variable to the absolute path of an _executable script_ that includes IPFW commands. The examples used in this section assume that the `firewall_script` is set to [.filename]#/etc/ipfw.rules#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_script="/etc/ipfw.rules"
....
To enable logging through man:syslogd[8], include this line:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logging="YES"
....
@@ -949,21 +949,21 @@ Only firewall rules with the `log` option will be logged. The default rules do n
There is no [.filename]#/etc/rc.conf# variable to set logging limits. To limit the number of times a rule is logged per connection attempt, specify the number using this line in [.filename]#/etc/sysctl.conf#:
-[source,bash]
+[source,shell]
....
# echo "net.inet.ip.fw.verbose_limit=5" >> /etc/sysctl.conf
....
To enable logging through a dedicated interface named `ipfw0`, add this line to [.filename]#/etc/rc.conf# instead:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logif="YES"
....
Then use tcpdump to see what is being logged:
-[source,bash]
+[source,shell]
....
# tcpdump -t -n -i ipfw0
....
@@ -976,7 +976,7 @@ There is no overhead due to logging unless tcpdump is attached.
After saving the needed edits, start the firewall. To enable logging limits now, also set the `sysctl` value specified above:
-[source,bash]
+[source,shell]
....
# service ipfw start
# sysctl net.inet.ip.fw.verbose_limit=5
@@ -1396,49 +1396,49 @@ redirect_address 192.168.0.3 128.1.1.3
To list all the running rules in sequence:
-[source,bash]
+[source,shell]
....
# ipfw list
....
To list all the running rules with a time stamp of when the last time the rule was matched:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
The next example lists accounting information and the packet count for matched rules along with the rules themselves. The first column is the rule number, followed by the number of matched packets and bytes, followed by the rule itself.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
To list dynamic rules in addition to static rules:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
To also show the expired dynamic rules:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
To zero the counters:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
To zero the counters for just the rule with number _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1490,7 +1490,7 @@ The rules are not important as the focus of this example is how the symbolic sub
If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be reloaded by the following command:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1499,7 +1499,7 @@ If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be rel
The same thing could be accomplished by running these commands by hand:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
@@ -1595,7 +1595,7 @@ Then, to start IPF now:
To load the firewall rules, specify the name of the ruleset file using `ipf`. The following command can be used to replace the currently running firewall rules:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -1919,28 +1919,28 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Whenever the file containing the NAT rules is edited, run `ipnat` with `-CF` to delete the current NAT rules and flush the contents of the dynamic translation table. Include `-f` and specify the name of the NAT ruleset to load:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
To display the NAT statistics:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
To list the NAT table's current mappings:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
To turn verbose mode on and display information relating to rule processing and active rules and table entries:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1951,7 +1951,7 @@ IPF includes man:ipfstat[8] which can be used to retrieve and display statistics
The default `ipfstat` output looks like this:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -1974,7 +1974,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Several options are available. When supplied with either `-i` for inbound or `-o` for outbound, the command will retrieve and display the appropriate list of filter rules currently installed and in use by the kernel. To also see the rule numbers, include `-n`. For example, `ipfstat -on` displays the outbound rules table with rule numbers:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -1983,7 +1983,7 @@ Several options are available. When supplied with either `-i` for inbound or `-o
Include `-h` to prefix each rule with a count of how many times the rule was matched. For example, `ipfstat -oh` displays the outbound internal rules table, prefixing each rule with its usage count:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -2012,7 +2012,7 @@ Once the logging facility is enabled in [.filename]#rc.conf# and started with `s
By default, `ipmon -Ds` mode uses `local0` as the logging facility. The following logging levels can be used to further segregate the logged data:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -2022,7 +2022,7 @@ LOG_ERR - packets which have been logged and which can be considered short due t
In order to setup IPF to log all data to [.filename]#/var/log/ipfilter.log#, first create the empty file:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -2064,14 +2064,14 @@ This chapter describes how to set up blacklistd, configure it, and provides exam
The main configuration for blacklistd is stored in man:blacklistd.conf[5]. Various command line options are also available to change blacklistd's run-time behavior. Persistent configuration across reboots should be stored in [.filename]#/etc/blacklistd.conf#. To enable the daemon during system boot, add a `blacklistd_enable` line to [.filename]#/etc/rc.conf# like this:
-[source,bash]
+[source,shell]
....
# sysrc blacklistd_enable=yes
....
To start the service manually, run this command:
-[source,bash]
+[source,shell]
....
# service blacklistd start
....
@@ -2187,7 +2187,7 @@ That is all that is needed to make these programs talk to blacklistd.
Blacklistd provides the user with a management utility called man:blacklistctl[8]. It displays blocked addresses and networks that are blacklisted by the rules defined in man:blacklistd.conf[5]. To see the list of currently blocked hosts, use `dump` combined with `-b` like this.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -b
address/ma:port id nfail last access
@@ -2198,7 +2198,7 @@ This example shows that there were 6 out of three permitted attempts on port 22
To see the remaining time that this host will be on the blacklist, add `-r` to the previous command.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -br
address/ma:port id nfail remaining time
@@ -2211,7 +2211,7 @@ In this example, there are 36s seconds left until this host will not be blocked
Sometimes it is necessary to remove a host from the block list before the remaining time expires. Unfortunately, there is no functionality in blacklistd to do that. However, it is possible to remove the address from the PF table using pfctl. For each blocked port, there is a child anchor inside the blacklistd anchor defined in [.filename]#/etc/pf.conf#. For example, if there is a child anchor for blocking port 22 it is called `blacklistd/22`. There is a table inside that child anchor that contains the blocked addresses. This table is called port followed by the port number. In this example, it would be called `port22`. With that information at hand, it is now possible to use man:pfctl[8] to display all addresses listed like this:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T show
...
@@ -2221,7 +2221,7 @@ Sometimes it is necessary to remove a host from the block list before the remain
After identifying the address to be unblocked from the list, the following command removes it from the list:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T delete 213.0.123.128/25
....
diff --git a/documentation/content/pl/books/handbook/geom/_index.adoc b/documentation/content/pl/books/handbook/geom/_index.adoc
index 9c7b04f299..a5d8d42441 100644
--- a/documentation/content/pl/books/handbook/geom/_index.adoc
+++ b/documentation/content/pl/books/handbook/geom/_index.adoc
@@ -88,7 +88,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Load the [.filename]#geom_stripe.ko# module:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
@@ -96,7 +96,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Ensure that a suitable mount point exists. If this volume will become a root partition, then temporarily use another mount point such as [.filename]#/mnt#.
. Determine the device names for the disks which will be striped, and create the new stripe device. For example, to stripe two unused and unpartitioned ATA disks with device names of [.filename]#/dev/ad2# and [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -106,14 +106,14 @@ Done.
. Write a standard label, also known as a partition table, on the new volume and install the default bootstrap code:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
. This process should create two other devices in [.filename]#/dev/stripe# in addition to [.filename]#st0#. Those include [.filename]#st0a# and [.filename]#st0c#. At this point, a UFS file system can be created on [.filename]#st0a# using `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -121,14 +121,14 @@ Done.
Many numbers will glide across the screen, and after a few seconds, the process will be complete. The volume has been created and is ready to be mounted.
. To manually mount the created disk stripe:
+
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
. To mount this striped file system automatically during the boot process, place the volume information in [.filename]#/etc/fstab#. In this example, a permanent mount point, named [.filename]#stripe#, is created:
+
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -137,7 +137,7 @@ Many numbers will glide across the screen, and after a few seconds, the process
. The [.filename]#geom_stripe.ko# module must also be automatically loaded during system initialization, by adding a line to [.filename]#/boot/loader.conf#:
+
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -171,21 +171,21 @@ Many disk systems store metadata at the end of each disk. Old metadata should be
GPT metadata can be erased with man:gpart[8]. This example erases both primary and backup GPT partition tables from disk [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
A disk can be removed from an active mirror and the metadata erased in one step using man:gmirror[8]. Here, the example disk [.filename]#ada8# is removed from the active mirror [.filename]#gm4#:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
If the mirror is not running, but old mirror metadata is still on the disk, use `gmirror clear` to remove it:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -199,14 +199,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
The [.filename]#geom_mirror.ko# kernel module must either be built into the kernel or loaded at boot- or run-time. Manually load the kernel module now:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Create the mirror with the two new drives:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -217,7 +217,7 @@ MBR and bsdlabel partition tables can now be created on the mirror with man:gpar
Partitions on the mirror do not have to be the same size as those on the existing disk, but they must be large enough to hold all the data already present on [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -228,7 +228,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -249,7 +249,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -258,7 +258,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Format the file systems on the new mirror, enabling soft-updates.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -268,7 +268,7 @@ Format the file systems on the new mirror, enabling soft-updates.
File systems from the original [.filename]#ada0# disk can now be copied onto the mirror with man:dump[8] and man:restore[8].
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -312,14 +312,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
Load the [.filename]#geom_mirror.ko# kernel module:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Check the media size of the original disk with `diskinfo`:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -329,7 +329,7 @@ Check the media size of the original disk with `diskinfo`:
Create a mirror on the new disk. To make certain that the mirror capacity is not any larger than the original [.filename]#ada0# drive, man:gnop[8] is used to create a fake drive of the exact same size. This drive does not store any data, but is used only to limit the size of the mirror. When man:gmirror[8] creates the mirror, it will restrict the capacity to the size of [.filename]#gzero.nop#, even if the new [.filename]#ada1# drive has more space. Note that the _1000204821504_ in the second line is equal to [.filename]#ada0#'s media size as shown by `diskinfo` above.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -343,7 +343,7 @@ After creating [.filename]#gm0#, view the partition table on [.filename]#ada0#.
However, if the output shows that all of the space on the disk is allocated, as in the following listing, there is no space available for the 512-byte mirror metadata at the end of the disk.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -354,7 +354,7 @@ In this case, the partition table must be edited to reduce the capacity by one s
In either case, partition tables on the primary disk should be first copied using `gpart backup` and `gpart restore`.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -362,14 +362,14 @@ In either case, partition tables on the primary disk should be first copied usin
These commands create two files, [.filename]#table.ada0# and [.filename]#table.ada0s1#. This example is from a 1 TB drive:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -383,14 +383,14 @@ BSD 8
If no free space is shown at the end of the disk, the size of both the slice and the last partition must be reduced by one sector. Edit the two files, reducing the size of both the slice and last partition by one. These are the last numbers in each listing.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -406,7 +406,7 @@ If at least one sector was unallocated at the end of the disk, these two files c
Now restore the partition table into [.filename]#mirror/gm0#:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -414,7 +414,7 @@ Now restore the partition table into [.filename]#mirror/gm0#:
Check the partition table with `gpart show`. This example has [.filename]#gm0s1a# for [.filename]#/#, [.filename]#gm0s1d# for [.filename]#/var#, [.filename]#gm0s1e# for [.filename]#/usr#, [.filename]#gm0s1f# for [.filename]#/data1#, and [.filename]#gm0s1g# for [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -436,7 +436,7 @@ Both the slice and the last partition must have at least one free block at the e
Create file systems on these new partitions. The number of partitions will vary to match the original disk, [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -447,7 +447,7 @@ Create file systems on these new partitions. The number of partitions will vary
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -456,7 +456,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Adjust [.filename]#/etc/fstab# to use the new partitions on the mirror. Back up this file first by copying it to [.filename]#/etc/fstab.orig#.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -483,7 +483,7 @@ geom_mirror_load="YES"
File systems from the original disk can now be copied onto the mirror with man:dump[8] and man:restore[8]. Each file system dumped with `dump -L` will create a snapshot first, which can take some time.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -508,7 +508,7 @@ After booting from [.filename]#mirror/gm0# successfully, the final step is inser
When [.filename]#ada0# is inserted into the mirror, its former contents will be overwritten by data from the mirror. Make certain that [.filename]#mirror/gm0# has the same contents as [.filename]#ada0# before adding [.filename]#ada0# to the mirror. If the contents previously copied by man:dump[8] and man:restore[8] are not identical to what was on [.filename]#ada0#, revert [.filename]#/etc/fstab# to mount the file systems on [.filename]#ada0#, reboot, and start the whole procedure again.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -516,7 +516,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
Synchronization between the two disks will start immediately. Use `gmirror status` to view the progress.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -526,7 +526,7 @@ girror/gm0 DEGRADED ada1 (ACTIVE)
After a while, synchronization will finish.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -544,7 +544,7 @@ If the system no longer boots, BIOS settings may have to be changed to boot from
If the boot stops with this message, something is wrong with the mirror device:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -571,7 +571,7 @@ mountroot>
Forgetting to load the [.filename]#geom_mirror.ko# module in [.filename]#/boot/loader.conf# can cause this problem. To fix it, boot from a FreeBSD installation media and choose `Shell` at the first prompt. Then load the mirror module and mount the mirror device:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -588,7 +588,7 @@ Save the file and reboot.
Other problems that cause `error 19` require more effort to fix. Although the system should boot from [.filename]#ada0#, another prompt to select a shell will appear if [.filename]#/etc/fstab# is incorrect. Enter `ufs:/dev/ada0s1a` at the boot loader prompt and press kbd:[Enter]. Undo the edits in [.filename]#/etc/fstab# then mount the file systems from the original disk ([.filename]#ada0#) instead of the mirror. Reboot the system and try the procedure again.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -603,14 +603,14 @@ To replace the failed drive, shut down the system and physically replace the fai
After the computer is powered back up, the mirror will be running in a "degraded" mode with only one drive. The mirror is told to forget drives that are not currently connected:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Any old metadata should be cleared from the replacement disk using the instructions in <<geom-mirror-metadata>>. Then the replacement disk, [.filename]#ada4# for this example, is inserted into the mirror:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -640,28 +640,28 @@ In FreeBSD, support for RAID3 is implemented by the man:graid3[8] GEOM class. Cr
[.procedure]
. First, load the [.filename]#geom_raid3.ko# kernel module by issuing one of the following commands:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
or:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3
....
. Ensure that a suitable mount point exists. This command creates a new directory to use as the mount point:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
. Determine the device names for the disks which will be added to the array, and create the new RAID3 device. The final device listed will act as the dedicated parity disk. This example uses three unpartitioned ATA drives: [.filename]#ada1# and [.filename]#ada2# for data, and [.filename]#ada3# for parity.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -672,7 +672,7 @@ Done.
. Partition the newly created [.filename]#gr0# device and put a UFS file system on it:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -681,7 +681,7 @@ Done.
+
Many numbers will glide across the screen, and after a bit of time, the process will be complete. The volume has been created and is ready to be mounted:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -727,7 +727,7 @@ Software RAID devices often have a menu that can be entered by pressing special
Some space on the drives will be overwritten when they are made into a new array. Back up existing data first!
====
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 ada1
GEOM_RAID: Intel-a29ea104: Array Intel-a29ea104 created.
@@ -743,7 +743,7 @@ GEOM_RAID: Intel-a29ea104: Provider raid/r0 for volume gm0 created.
A status check shows the new mirror is ready for use:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -755,7 +755,7 @@ The array device appears in [.filename]#/dev/raid/#. The first array is called [
The BIOS menu on some of these devices can create arrays with special characters in their names. To avoid problems with those special characters, arrays are given simple numbered names like [.filename]#r0#. To show the actual labels, like [.filename]#gm0# in the example above, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.raid.name_format=1
....
@@ -765,7 +765,7 @@ The BIOS menu on some of these devices can create arrays with special characters
Some software RAID devices support more than one _volume_ on an array. Volumes work like partitions, allowing space on the physical drives to be split and used in different ways. For example, Intel software RAID devices support two volumes. This example creates a 40 G mirror for safely storing the operating system, followed by a 20 G RAID0 (stripe) volume for fast temporary storage:
-[source,bash]
+[source,shell]
....
# graid label -S 40G Intel gm0 RAID1 ada0 ada1
# graid add -S 20G gm0 RAID0
@@ -785,14 +785,14 @@ Under certain specific conditions, it is possible to convert an existing single
If the drive meets these requirements, start by making a full backup. Then create a single-drive mirror with that drive:
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 NONE
....
man:graid[8] metadata was written to the end of the drive in the unused space. A second drive can now be inserted into the mirror:
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
....
@@ -806,7 +806,7 @@ Drives can be inserted into an array as replacements for drives that have failed
In the example mirror array, data immediately begins to be copied to the newly-inserted drive. Any existing information on the new drive will be overwritten.
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from NONE to ACTIVE.
@@ -820,7 +820,7 @@ GEOM_RAID: Intel-a29ea104: Subdisk gm0:1-ada1 rebuild start at 0.
Individual drives can be permanently removed from a from an array and their metadata erased:
-[source,bash]
+[source,shell]
....
# graid remove raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from ACTIVE to OFFLINE.
@@ -833,7 +833,7 @@ GEOM_RAID: Intel-a29ea104: Volume gm0 state changed from OPTIMAL to DEGRADED.
An array can be stopped without removing metadata from the drives. The array will be restarted when the system is booted.
-[source,bash]
+[source,shell]
....
# graid stop raid/r0
....
@@ -843,7 +843,7 @@ An array can be stopped without removing metadata from the drives. The array wil
Array status can be checked at any time. After a drive was added to the mirror in the example above, data is being copied from the original drive to the new drive:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -853,7 +853,7 @@ raid/r0 DEGRADED ada0 (ACTIVE (ACTIVE))
Some types of arrays, like `RAID0` or `CONCAT`, may not be shown in the status report if disks have failed. To see these partially-failed arrays, add `-ga`:
-[source,bash]
+[source,shell]
....
# graid status -ga
Name Status Components
@@ -865,7 +865,7 @@ Intel-e2d07d9a BROKEN ada6 (ACTIVE (ACTIVE))
Arrays are destroyed by deleting all of the volumes from them. When the last volume present is deleted, the array is stopped and metadata is removed from the drives:
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -878,7 +878,7 @@ Drives may unexpectedly contain man:graid[8] metadata, either from previous use
[.procedure]
. Boot the system. At the boot menu, select `2` for the loader prompt. Enter:
+
-[source,bash]
+[source,shell]
....
OK set kern.geom.raid.enable=0
OK boot
@@ -897,7 +897,7 @@ to [.filename]#/boot/loader.conf#.
+
To permanently remove the man:graid[8] metadata from the affected drive, boot a FreeBSD installation CD-ROM or memory stick, and select `Shell`. Use `status` to find the name of the array, typically `raid/r0`:
+
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -907,7 +907,7 @@ raid/r0 OPTIMAL ada0 (ACTIVE (ACTIVE))
+
Delete the volume by name:
+
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -930,7 +930,7 @@ Similar to NFS, which is discussed in crossref:network-servers[network-nfs,"Netw
Before exporting the device, ensure it is not currently mounted. Then, start ggated:
-[source,bash]
+[source,shell]
....
# ggated
....
@@ -939,7 +939,7 @@ Several options are available for specifying an alternate listening port or chan
To access the exported device on the client machine, first use `ggatec` to specify the IP address of the server and the device name of the exported device. If successful, this command will display a `ggate` device name to mount. Mount that specified device name on a free mount point. This example connects to the [.filename]#/dev/da0s4d# partition on `192.168.1.1`, then mounts [.filename]#/dev/ggate0# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -977,7 +977,7 @@ Temporary labels are destroyed at the next reboot. These labels are created in [
To create a permanent label for a UFS2 file system without destroying any data, issue the following command:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -996,7 +996,7 @@ The file system must not be mounted while attempting to run `tunefs`.
Now the file system may be mounted:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -1007,7 +1007,7 @@ File systems may also be created with a default label by using the `-L` flag wit
The following command can be used to destroy the label:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -1021,7 +1021,7 @@ By permanently labeling the partitions on the boot disk, the system should be ab
Reboot the system, and at the man:loader[8] prompt, press kbd:[4] to boot into single user mode. Then enter the following commands:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -1050,7 +1050,7 @@ The system will continue with multi-user boot. After the boot completes, edit [.
The system can now be rebooted. If everything went well, it will come up normally and `mount` will show:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -1064,7 +1064,7 @@ devfs on /dev (devfs, local)
The man:glabel[8] class supports a label type for UFS file systems, based on the unique file system id, `ufsid`. These labels may be found in [.filename]#/dev/ufsid# and are created automatically during system startup. It is possible to use `ufsid` labels to mount partitions using [.filename]#/etc/fstab#. Use `glabel status` to receive a list of file systems and their corresponding `ufsid` labels:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -1107,7 +1107,7 @@ options GEOM_JOURNAL
Once the module is loaded, a journal can be created on a new file system using the following steps. In this example, [.filename]#da4# is a new SCSI disk:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -1117,7 +1117,7 @@ This will load the module and create a [.filename]#/dev/da4.journal# device node
A UFS file system may now be created on the journaled device, then mounted on an existing mount point:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
# mount /dev/da4.journal /mnt
diff --git a/documentation/content/pl/books/handbook/install/_index.adoc b/documentation/content/pl/books/handbook/install/_index.adoc
index 11ebd3fe59..c1857c13cc 100644
--- a/documentation/content/pl/books/handbook/install/_index.adoc
+++ b/documentation/content/pl/books/handbook/install/_index.adoc
@@ -183,7 +183,7 @@ Zgodnie z konwencją stosowaną w podręcznikach Digital / Compaq wszystkie pole
By wyświetlić nazwy i rodzaje zainstalowanych w komputerze dysków, posługujemy się poleceniem `SHOW DEVICE` w konsoli SRM:
-[source,bash]
+[source,shell]
....
>>>SHOW DEVICE
dka0.0.0.4.0 DKA0 TOSHIBA CD-ROM XM-57 3476
@@ -301,7 +301,7 @@ Jeśli dyskietki nagrywamy na komputerze z MS-DOS(R)/Windows(R), to możemy skor
+
W przypadku, gdy wykorzystujemy obrazy dyskietek z płyty CDROM dostępnego jako dysk [.filename]#E:#, posłużymy się poleceniem:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
@@ -310,7 +310,7 @@ Powtarzamy je dla każdego z plików [.filename]#.flp#, za każdym razem zmienia
+
Jeżeli natomiast dyskietki nagrywamy w systemie uniksowym (na przykład w innym FreeBSD), do zapisania plików obrazów na dyskietkach możemy wykorzystać polecenie man:dd[1]. We FreeBSD wpisalibyśmy:
+
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
@@ -365,7 +365,7 @@ Jeżeli komputer uruchomi się jak zwykle i załaduje już zainstalowany system
+
. Rozpocznie się ładowanie FreeBSD. Podczas ładowania z płyty CD pojawi się tekst podobny do poniższego (pominięto informacje o wersji)::
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
Boot from ATAPI CD-ROM :
@@ -391,7 +391,7 @@ Booting [kernel] in 9 seconds... _
+
Natomiast ładując z dyskietki, zobaczymy tekst w rodzaju (pominięto informacje o wersji):
+
-[source,bash]
+[source,shell]
....
Verifying DMI Pool Data ........
@@ -411,7 +411,7 @@ Please insert MFS root floppy and press enter:
Postępując zgodnie z instrukcją na ekranie, wyjmujemy dyskietkę [.filename]#kern.flp#, wkładamy [.filename]#mfsroot.flp# i naciskamy kbd:[Enter]. We FreeBSD 5.3 i późniejszych dostępne są również inne dyskietki opisane w <<install-floppies,poprzednim podrozdziale>>. Należy uruchomić system z pierwszej dyskietki, następnie wkładać kolejne zgodnie z pojawiającymi się komunikatami.
. Niezależnie, czy uruchamiamy komputer z dyskietki czy z płyty, podczas ładowania ujrzymy komunikat:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -428,21 +428,21 @@ Albo czekamy dziesięć sekund, albo wciskamy kbd:[Enter].
. Włączamy komputer i czekamy na znak zachęty boot monitora.
. Jeżeli korzystamy z dyskietek startowych opisanych w <<install-floppies>>, to jedna z nich będzie pierwszą dyskietką startową, najprawdopodobniej będzie to dyskietka zawierająca [.filename]#kern.flp#. Ją właśnie wkładamy do stacji i wpisujemy następujące polecenie, aby uruchomić komputer z dyskietki (zmieniając nazwę napędu dyskietek, jeżeli będzie to konieczne):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DVA0 -FLAGS '' -FILE ''
....
+
W przypadku korzystania z płyty CD, wkładamy ją do napędu i rozpoczynamy instalację wpisując następujące polecenie (wstawiając inną nazwę napędu CDROM, jeżeli będzie to konieczne):
+
-[source,bash]
+[source,shell]
....
>>>BOOT DKA0 -FLAGS '' -FILE ''
....
+
. Rozpocznie się ładowanie FreeBSD. Podczas ładowania z dyskietki, zobaczymy tekst w rodzaju:
+
-[source,bash]
+[source,shell]
....
Please insert MFS root floppy and press enter:
....
@@ -450,7 +450,7 @@ Please insert MFS root floppy and press enter:
Postępując zgodnie z instrukcją na ekranie, wyjmujemy dyskietkę [.filename]#kern.flp#, wkładamy [.filename]#mfsroot.flp# i naciskamy kbd:[Enter].
. Niezależnie, czy uruchamiamy komputer z dyskietki czy z płyty, podczas ładowania ujrzymy komunikat:
+
-[source,bash]
+[source,shell]
....
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in 9 seconds... _
@@ -470,7 +470,7 @@ Zróbmy to, aby przejrzeć tekst, który został przewinięty poza ekran, gdy j
[[install-dev-probe]]
.Przykład wyników rozpoznania urządzeń
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -545,7 +545,7 @@ image::sysinstall-exit.png[]
Korzystając z klawiszy kursora, wybieramy z głównego menu [.guimenuitem]#Exit Install#. Ukaże się następujący komunikat:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot
@@ -689,7 +689,7 @@ Dokonywane tutaj zmiany nie zostaną zapisane na dysku. Jeżeli będziemy podejr
Po wybraniu standardowej instalacji w sysinstall zostanie wyświetlony następujący komunikat:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -848,7 +848,7 @@ Jeżeli instalujemy FreeBSD na dwóch lub więcej dyskach, musimy utworzyć part
Po podjęciu decyzji jak ma wyglądać układ partycji, pora wprowadzić go w życie używając sysinstall. Na ekranie ukaże się następujący komunikat:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -955,7 +955,7 @@ Po wyborze komponentów będziemy mieć możliwość zainstalowania kolekcji por
Program instalacyjny nie sprawdza, czy mamy odpowiednio dużo wolnego miejsca na dysku. Kolekcję portów powinniśmy instalować tylko pod warunkiem, że miejsca faktycznie wystarczy. We FreeBSD {rel120-current} kolekcja zajmuje około {ports-size}.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1024,7 +1024,7 @@ Ze względu na to, że [.filename]#/pub/FreeBSD# z `ftp.FreeBSD.org` jest udost
Możemy teraz rozpocząć właściwą instalację, a zarazem mamy ostatnią szansę na rezygnację z instalacji bez zmiany zawartości dysku twardego.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1043,7 +1043,7 @@ Czas trwania instalacji zależy od wybranych komponentów, używanego nośnika i
Po zakończeniu instalacji wyświetlony zostanie następujący komunikat:
-[source,bash]
+[source,shell]
....
Message
@@ -1064,7 +1064,7 @@ Po naciśnięciu klawisza kbd:[Enter] zajmiemy się przygotowaniem wstępnej kon
Jeśli wybierzemy btn:[no] i naciśniemy kbd:[Enter] instalacja zostanie przerwana, bez dokonywania jakichkolwiek zmian. Pojawi się komunikat o treści:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1089,7 +1089,7 @@ Jeśli wcześniej skonfigurowaliśmy PPP na potrzeby instalacji przez FTP, konfi
Szczegółowe informacje na temat sieci lokalnych (LAN) oraz konfiguracji FreeBSD w roli bramy lub rutera znaleźć można w rozdziale crossref:advanced-networking[advanced-networking,Zaawansowana konfiguracja sieciowa].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or SLIP/PPP network devices?
@@ -1105,7 +1105,7 @@ image::ed0-conf.png[]
Klawiszami kursora wybieramy interfejs, który będziemy konfigurować i wciskamy kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1117,7 +1117,7 @@ Dla przykładu, w sieci lokalnej w zupełności wystarcza obecny protokół Inte
Jeśli chcemy wypróbować nowy protokół Internetu (IPv6), wybieramy btn:[yes] i naciskamy kbd:[Enter]. Przez chwilę będzie się odbywać poszukiwanie serwerów RA.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1160,7 +1160,7 @@ Tu wpisywane są dodatkowe opcje dla `ifconfig` charakterystyczne dla interfejsu
Gdy konfiguracja będzie gotowa, klawiszem kbd:[Tab] wybieramy btn:[OK] i naciskamy kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to Bring Up the ed0 interface right now?
@@ -1173,7 +1173,7 @@ Jeśli wybierzemy btn:[yes] i wciśniemy kbd:[Enter], komputer zostanie aktywowa
[[gateway]]
=== Konfiguracja bramy
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1186,7 +1186,7 @@ Jeśli komputer będzie w sieci lokalnej pełnić rolę bramy, czyli będzie prz
[[inetd-services]]
=== Konfiguracja usług internetowych
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1200,7 +1200,7 @@ Usługi możemy włączyć po zainstalowaniu systemu, aby to zrobić, modyfikuje
Jeśli wolelibyśmy skonfigurować usługi internetowe podczas instalacji, wybieramy btn:[yes]. Zostaniemy poproszeni o dodatkowe potwierdzenie:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1215,7 +1215,7 @@ With this in mind, do you wish to enable inetd?
Wybieramy btn:[yes], by przejść dalej.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1242,7 +1242,7 @@ Gdy włączymy wybrane usługi, naciskamy kbd:[Esc] by przejść do menu, w któ
[[ftpanon]]
=== Anonimowe FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1268,7 +1268,7 @@ image::ftp-anon1.png[]
Możemy nacisnąć kbd:[F1], by uzyskać pomoc:
-[source,bash]
+[source,shell]
....
This screen allows you to configure the anonymous FTP user.
@@ -1294,7 +1294,7 @@ Główny katalog ftp jest domyślnie umieszczany w [.filename]#/var#. Jeżeli ni
Po wybraniu odpowiadających nam ustawień naciskamy kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1320,7 +1320,7 @@ Sieciowe usługi plikowe (Network File Services - NFS) pozwalają na współdzie
[[nsf-server-options]]
==== Serwer NFS
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1332,7 +1332,7 @@ Jeśli nie zamierzamy korzystać z serwera NFS, wybieramy btn:[no] i wciskamy kb
W przeciwnym wypadku, gdy wybierzemy btn:[yes], zostanie pokazany komunikat o konieczności stworzenia pliku [.filename]#exports#.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1357,7 +1357,7 @@ Gdy naciśniemy kbd:[Esc], pokazane zostanie menu z domyślnie zaznaczoną opcj
Instalacja klienta NFS pozwoli naszemu komputerowi łączyć się z serwerami NFS.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1404,7 +1404,7 @@ Poniższa tabela pokazuje, jaki jest efekt stosowania każdego z profili zabezpi
|NIE
|===
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to select a default security profile for this host (select
@@ -1427,7 +1427,7 @@ Klawiszami kursora wybieramy [.guimenuitem]#Medium#, chyba, że jesteśmy pewni,
Zostanie wyświetlony komunikat potwierdzający wybór profilu zabezpieczeń.
-[source,bash]
+[source,shell]
....
Message
@@ -1445,7 +1445,7 @@ To change any of these settings later, edit /etc/rc.conf
[OK]
....
-[source,bash]
+[source,shell]
....
Message
@@ -1476,7 +1476,7 @@ Profil zabezpieczeń nie jest cudownym lekarstwem! Nawet, jeśli wybraliśmy naj
Kilka opcji służy do konfiguracji konsoli systemowej.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1519,7 +1519,7 @@ Dzięki ustawieniu strefy czasowej komputer będzie mógł automatycznie ustawia
W przykładzie mamy do czynienia z komputerem znajdującym się we wschodniej strefie czasowej Stanów Zjednoczonych. Rzeczywiste ustawienia będą zależeć od naszego położenia geograficznego.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1529,7 +1529,7 @@ W przykładzie mamy do czynienia z komputerem znajdującym się we wschodniej st
By ustawić strefę czasową, wybieramy btn:[yes] i naciskamy kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1558,7 +1558,7 @@ image::timezone3.png[]
Klawiszami kursora wybieramy właściwą strefę czasową i wciskamy kbd:[Enter].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1571,7 +1571,7 @@ Zostaniemy zapytani, czy skrót nazwy strefy czasowej jest prawidłowy. Jeśli t
[[linuxcomp]]
=== Kompatybilność z Linuksem
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1588,7 +1588,7 @@ Jeśli instalujemy system przez FTP, komputer będzie potrzebować łączności
Posługując się 3-przyciskową myszką będziemy mogli wycinać i wklejać tekst na konsoli i w uruchamianych programach. Jeśli nasza myszka ma dwa przyciski, po instalacji zajrzyjmy do dokumentacji systemowej man:moused[8], gdzie opisana została emulacja trzech przycisków. W naszym przykładzie konfigurujemy myszkę nie podłączoną przez USB (np. przez złącze PS/2 lub port COM)::
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a non-USB mouse attached to it?
@@ -1655,7 +1655,7 @@ Wybór opcji [.guimenuitem]#AMD# włączy wsparcie dla narzędzia automatycznego
Kolejną opcją jest [.guimenuitem]#AMD Flags#. Po jej wybraniu pojawi się menu, gdzie należy wprowadzić specyficzne flagi AMD. Menu zawiera już domyślne wartości:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1729,7 +1729,7 @@ By uruchomić XFree86(TM) z poziomu użytkownika innego niż `root`, należy zai
Aby sprawdzić, czy nasza karta graficzna jest obsługiwana, możemy zajrzeć na stronę WWW http://www.xfree86.org/[XFree86(TM)].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure your X server at this time?
@@ -1755,7 +1755,7 @@ Wybór xf86cfg i xf86cfg -textmode może spowodować, że ekran stanie się ciem
W poniższym przykładzie przedstawione będzie korzystanie z programu konfiguracyjnego xf86config. Wybierane przez nas opcje zależeć będą od wyposażenia naszego komputera, będą się więc zapewne różnić od opcji pokazanych w przykładzie:
-[source,bash]
+[source,shell]
....
Message
You have configured and been running the mouse daemon.
@@ -1771,7 +1771,7 @@ Komunikat ten informuje o wykryciu skonfigurowanego wcześniej demona myszki. Na
Po uruchomieniu, xf86config wyświetli krótkie wprowadzenie:
-[source,bash]
+[source,shell]
....
This program will create a basic XF86Config file, based on menu selections you
make.
@@ -1794,7 +1794,7 @@ Press enter to continue, or ctrl-c to abort.
Po naciśnięciu kbd:[Enter] przejdziemy do konfiguracji myszki. Pamiętajmy, by uważnie czytać polecenia i wybrać właściwy protokół myszki "Mouse Systems" i port myszki [.filename]#/dev/sysmouse#, nawet jeśli w przykładzie wybierana jest myszka PS/2.
-[source,bash]
+[source,shell]
....
First specify a mouse protocol type. Choose one from the following list:
@@ -1839,7 +1839,7 @@ Mouse device: /dev/sysmouse
Kolejnym krokiem jest konfiguracja klawiatury. W przykładzie wybrana została typowa klawiatura o 101 klawiszach. Jako wariant nazwy możemy wybrać dowolną nazwę, lub po prostu nacisnąć kbd:[Enter], akceptując proponowaną nazwę domyślną.
-[source,bash]
+[source,shell]
....
Please select one of the following keyboard types that is the better
description of your keyboard. If nothing really matches,
@@ -1913,7 +1913,7 @@ group indicator, etc.)? n
Następnie przystępujemy do konfiguracji monitora. Pamiętajmy, by nie przekroczyć dopuszczalnych wartości częstotliwości, ponieważ może to spowodować uszkodzenie monitora. W razie jakichkolwiek wątpliwości, odłóżmy konfigurację monitora do czasu, gdy będziemy już mieć niezbędne informacje.
-[source,bash]
+[source,shell]
....
Now we want to set the specifications of the monitor. The two critical
parameters are the vertical refresh rate, which is the rate at which the
@@ -1972,7 +1972,7 @@ Enter an identifier for your monitor definition: Hitachi
W kolejnym etapie wybieramy z listy sterownik karty graficznej. Jeśli przewijając listę niechcący ominiemy naszą kartę, naciskajmy dalej kbd:[Enter], a lista zostanie powtórzona. W przykładzie pokazujemy tylko fragment listy:
-[source,bash]
+[source,shell]
....
Now we must configure video card specific settings. At this point you can
choose to make a selection out of a database of video card definitions.
@@ -2063,7 +2063,7 @@ Enter an identifier for your video card definition:
Następnie wybieramy tryby graficzne dla preferowanych rozdzielczości. Najczęściej używane są tryby 640x480, 800x600 i 1024x768, wybór zależy jednak od możliwości karty graficznej, rozmiarów monitora i oczekiwanej wygody pracy. Gdy będziemy wybierać głębię koloru, wybierzmy najwyższą wartość, którą obsługuje karta.
-[source,bash]
+[source,shell]
....
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
@@ -2148,7 +2148,7 @@ Enter a number to choose the default depth.
Przygotowaną konfigurację należy zachować. Upewnijmy się, że konfiguracja zostanie zapisana w pliku o nazwie [.filename]#/etc/X11/XF86Config#.
-[source,bash]
+[source,shell]
....
I am going to write the XF86Config file now. Make sure you don't accidently
overwrite a previously configured one.
@@ -2158,7 +2158,7 @@ Shall I write it to /etc/X11/XF86Config? y
Jeśli z jakichś przyczyn konfiguracja nie powiedzie się, możemy zacząć ją od początku, wybierając btn:[yes], gdy pojawi się następujący komunikat:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The XFree86 configuration process seems to have
@@ -2206,7 +2206,7 @@ Pakiety to skompilowane programy, które można w łatwy sposób instalować.
W poniższym przykładzie pokazana jest instalacja jednego pakietu. Możemy oczywiście zainstalować więcej pakietów. Gdy system będzie już zainstalowany, kolejne pakiety będzie można dodawać przy użyciu `sysinstall` (`/stand/sysinstall` w wersjach FreeBSD wcześniejszych niż 5.2).
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -2259,7 +2259,7 @@ Po zainstalowaniu pakietów wracamy do konfiguracji systemu. Nawet jeśli nie wy
Powinniśmy założyć przynajmniej jedno konto użytkownika, by móc korzystać z systemu nie będąc zalogowanym jako `root`. Główna partycja jest zwykle niewielka, więc korzystanie z aplikacji jako `root` może ją szybko zapełnić. Inny powód wymieniony został w poniższym komunikacie:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -2325,7 +2325,7 @@ Gdy skończymy dodawanie użytkowników wybieramy klawiszami kursora [.guimenuit
[[rootpass]]
=== Hasło użytkownika `root`
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -2340,7 +2340,7 @@ Wciskamy kbd:[Enter], aby ustawić hasło ``root``a.
Hasło musi być prawidłowo podane dwukrotnie. Rzecz jasna, powinniśmy zadbać o to, by łatwo odnaleźć hasło, gdy zdarzy się nam je zapomnieć. Zwróćmy uwagę, że w trakcie wpisywania hasła nie pojawią się żadne znaki, nawet gwiazdki.
-[source,bash]
+[source,shell]
....
Changing local password for root.
New password :
@@ -2354,7 +2354,7 @@ Po pomyślnym wprowadzeniu hasła przejdziemy do kolejnego etapu instalacji.
Jeżeli będziemy chcieli skonfigurować dodatkowe urządzenia sieciowe, lub wprowadzić inne zmiany w konfiguracji systemu, możemy to zrobić w tym właśnie momencie, lub też po zakończeniu instalacji za pośrednictwem `sysinstall` (`/stand/sysinstall` w wersjach FreeBSD wcześniejszych niż 5.2).
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -2371,7 +2371,7 @@ image::mainexit.png[]
Przy pomocy klawiszy kursora wybieramy btn:[X Exit Install] i naciskamy kbd:[Enter]. Pojawi się prośba o potwierdzenie chęci zakończenia instalacji:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot (be sure to
@@ -2398,7 +2398,7 @@ Zalogujmy się, wpisując nazwę użytkownika i hasło wybrane podczas instalacj
Typowe komunikaty pokazywane podczas uruchamiania systemu (pominięto informacje o wersji):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2536,14 +2536,14 @@ Jeśli skonfigurowaliśmy serwer X i wybraliśmy menedżera okien, możemy uruch
Po zakończeniu instalacji będziemy mogli uruchomić FreeBSD, wpisując następujące polecenie w konsoli SRM:
-[source,bash]
+[source,shell]
....
>>>BOOT DKC0
....
Nakazuje ono oprogramowaniu sprzętowemu uruchomić system z określonego dysku. By FreeBSD było automatycznie uruchamiane przy włączeniu komputera, wpisujemy poniższe polecenia:
-[source,bash]
+[source,shell]
....
>>> SET BOOT_OSFLAGS A
>>> SET BOOT_FILE ''
@@ -2558,7 +2558,7 @@ Komunikaty pokazywane podczas ładowania systemu będą podobne (choć nie ident
Właściwe wyłączenie systemu operacyjnego jest istotną sprawą. Nie należy po prostu wyłączać komputera. Powinniśmy najpierw uzyskać prawa administratora, wpisując w linii poleceń `su` i podając hasło ``root``a; może to zrobić tylko użytkownik należący do grupy `wheel`. Możemy także po prostu zalogować się jako `root`. Następnie wydajemy polecenie `shutdown -h now`.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2625,7 +2625,7 @@ W chwili obecnej FreeBSD nie obsługuje systemów plików skompresowanych za pom
FreeBSD obsługuje systemy plików MS-DOS(R). By je zamontować należy wykorzystać polecenie man:mount_msdosfs[8] z odpowiednimi parametrami. Typowa forma polecenia wygląda następująco:
-[source,bash]
+[source,shell]
....
# mount_msdosfs /dev/ad0s1 /mnt
....
@@ -2674,28 +2674,28 @@ By zmodyfikować dyskietki do pracy z konsolą szeregową należy wykonać nast
+
Jeśli spróbowalibyśmy uruchomić komputer korzystając z utworzonych właśnie dyskietek startowych, zostałaby uruchomiona zwykła instalacja FreeBSD. My jednak chcemy, by podczas instalacji używana była konsola szeregowa. By to skonfigurować, montujemy dyskietkę [.filename]#kern.flp# we FreeBSD przy użyciu polecenia man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/fd0 /mnt
....
+
Po zamontowaniu dyskietki, wchodzimy do katalogu [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# cd /mnt
....
+
Teraz włączymy na dyskietce konsolę szeregową. Musimy stworzyć plik [.filename]#boot.config# zawierający wiersz `/boot/loader -h`. Jego zadaniem jest po prostu nakazanie programowi ładującemu system, by używał konsoli szeregowej.
+
-[source,bash]
+[source,shell]
....
# echo "/boot/loader -h" > boot.config
....
+
Po prawidłowym skonfigurowaniu dyskietki odmontowujemy ją poleceniem man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /mnt
@@ -2712,7 +2712,7 @@ Możemy już uruchomić instalację. Do stacji dyskietek "bezgłowego" komputera
+
Z komputerem łączymy się korzystając z man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuaa0
....
@@ -2818,7 +2818,7 @@ Układ plików na dysku FreeBSD jest taki sam, jak układ plików na serwerze FT
====
. Na komputerze, który będzie służyć jako serwer FTP, umieszczamy CDROM w napędzie i montujemy go w katalogu [.filename]#/cdrom#.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2856,7 +2856,7 @@ _Nie ufajmy_ dyskietkom sformatowanym fabrycznie. Dla pewności sformatujmy je j
Jeżeli do przygotowania dyskietek służy nam komputer z FreeBSD, również powinniśmy je sformatować. Dyskietki nie muszą być formatowane w DOS-owym systemie plików. Możemy utworzyć na nich system plików UFS, za pomocą poleceń `bsdlabel` i `newfs`, wywołanych w następujący sposób (na przykładzie dyskietek 3.5" 1.44 MB):
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w -r fd0.1440 floppy3
@@ -2879,7 +2879,7 @@ Podczas instalacji, gdy pojawi się ekran wyboru nośnika (Media), wybieramy [.g
By można było zainstalować FreeBSD z partycji MS-DOS(R), kopiujemy pliki dystrybucyjne do katalogu [.filename]#freebsd# w głównym katalogu partycji - na przykład [.filename]#c:\freebsd#. Wewnątrz tego katalogu musi być częściowo zachowana struktura katalogów płyty CDROM lub serwera FTP, jeśli więc kopiujemy pliki z płyty CD, dobrze jest skorzystać z DOS-owego polecenia `xcopy`. Dla przykładu, poniższe polecenia przygotują minimalną instalację FreeBSD:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2896,7 +2896,7 @@ Zestawy plików, które chcemy instalować z partycji MS-DOS(R) (i dla których
Instalacja z taśmy jest jedną z najprostszych metod, obok instalacji przez FTP i instalacji z płyty CD. Program instalacyjny zakłada, że taśma po prostu zawiera pliki w postaci archiwum tar. Interesujące nas pliki dystrybucyjne archiwizujemy na taśmie:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/pl/books/handbook/jails/_index.adoc b/documentation/content/pl/books/handbook/jails/_index.adoc
index b5f5449acd..d1ac72b52b 100644
--- a/documentation/content/pl/books/handbook/jails/_index.adoc
+++ b/documentation/content/pl/books/handbook/jails/_index.adoc
@@ -110,7 +110,7 @@ Some administrators divide jails into the following two types: "complete" jails,
The man:bsdinstall[8] tool can be used to fetch and install the binaries needed for a jail. This will walk through the picking of a mirror, which distributions will be installed into the destination directory, and some basic configuration of the jail:
-[source,bash]
+[source,shell]
....
# bsdinstall jail /here/is/the/jail
....
@@ -124,7 +124,7 @@ To install the userland from installation media, first create the root directory
Start a shell and define `DESTDIR`:
-[source,bash]
+[source,shell]
....
# sh
# export DESTDIR=/here/is/the/jail
@@ -132,7 +132,7 @@ Start a shell and define `DESTDIR`:
Mount the install media as covered in man:mdconfig[8] when using the install ISO:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
# cd /mnt/usr/freebsd-dist/
@@ -142,14 +142,14 @@ Extract the binaries from the tarballs on the install media into the declared de
To install just the base system:
-[source,bash]
+[source,shell]
....
# tar -xf base.txz -C $DESTDIR
....
To install everything except the kernel:
-[source,bash]
+[source,shell]
....
# for set in base ports; do tar -xf $set.txz -C $DESTDIR ; done
....
@@ -159,7 +159,7 @@ To install everything except the kernel:
The man:jail[8] manual page explains the procedure for building a jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -218,7 +218,7 @@ For a full list of available options, please see the man:jail.conf[5] manual pag
man:service[8] can be used to start or stop a jail by hand, if an entry for it exists in [.filename]#jail.conf#:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -226,7 +226,7 @@ man:service[8] can be used to start or stop a jail by hand, if an entry for it e
Jails can be shut down with man:jexec[8]. Use man:jls[8] to identify the jail's `JID`, then use man:jexec[8] to run the shutdown script in that jail.
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -264,7 +264,7 @@ The base system of FreeBSD contains a basic set of tools for viewing information
* Print a list of active jails and their corresponding jail identifier (JID), IP address, hostname and path.
* Attach to a running jail, from its host system, and run a command inside the jail or perform administrative tasks inside the jail itself. This is especially useful when the `root` user wants to cleanly shut down a jail. The man:jexec[8] utility can also be used to start a shell in a jail to do administration in it; for example:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -281,7 +281,7 @@ Jails should be kept up to date from the host operating system as attempting to
To update the jail to the latest patch release of the version of FreeBSD it is already running, then execute the following commands on the host:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail fetch
# freebsd-update -b /here/is/the/jail install
@@ -289,7 +289,7 @@ To update the jail to the latest patch release of the version of FreeBSD it is a
To upgrade the jail to a new major or minor version, first upgrade the host system as described in crossref:cutting-edge[freebsdupdate-upgrade,“Performing Major and Minor Version Upgrades”]. Once the host has been upgraded and rebooted, the jail can then be upgraded. For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, on the host run:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade
# freebsd-update -b /here/is/the/jail install
@@ -299,7 +299,7 @@ To upgrade the jail to a new major or minor version, first upgrade the host syst
Then, if it was a major version upgrade, reinstall all installed packages and restart the jail again. This is required because the ABI version changes when upgrading between major versions of FreeBSD. From the host:
-[source,bash]
+[source,shell]
....
# pkg -j myjail upgrade -f
# service jail restart myjail
@@ -348,7 +348,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
[.procedure]
. First, create a directory structure for the read-only file system which will contain the FreeBSD binaries for the jails. Then, change directory to the FreeBSD source tree and install the read-only file system to the jail template:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -357,7 +357,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Next, prepare a FreeBSD Ports Collection for the jails as well as a FreeBSD source tree, which is required for mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -367,7 +367,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Create a skeleton for the read-write portion of the system:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -379,7 +379,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Use mergemaster to install missing configuration files. Then, remove the extra directories that mergemaster creates:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -388,7 +388,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. Now, symlink the read-write file system to the read-only file system. Ensure that the symlinks are created in the correct [.filename]#s/# locations as the creation of directories in the wrong locations will cause the installation to fail.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -454,14 +454,14 @@ jail_www_devfs_enable="YES"
The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [.filename]#/home# because the physical path of [.filename]#/home# on a default FreeBSD installation is [.filename]#/usr/home#. The `jail__name__rootdir` variable must _not_ be set to a path which includes a symbolic link, otherwise the jails will refuse to start.
. Create the required mount points for the read-only file system of each jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
. Install the read-write template into each jail using package:sysutils/cpdup[]:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -471,7 +471,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
. In this phase, the jails are built and prepared to run. First, mount the required file systems for each jail, and then start them:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -479,7 +479,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
The jails should be running now. To check if they have started correctly, use `jls`. Its output should be similar to the following:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -490,7 +490,7 @@ The jails should be running now. To check if they have started correctly, use `j
At this point, it should be possible to log onto each jail, add new users, or configure daemons. The `JID` column indicates the jail identification number of each running jail. Use the following command to perform administrative tasks in the jail whose JID is `3`:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -503,7 +503,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
[.procedure]
. The first step is to upgrade the host system. Then, create a new temporary read-only template in [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -515,7 +515,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
+
The `installworld` creates a few unnecessary directories, which should be removed:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -523,7 +523,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Recreate the read-write symlinks for the master file system:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -536,14 +536,14 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Next, stop the jails:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
. Unmount the original file systems as the read-write systems are attached to the read-only system ([.filename]#/s#):
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -555,7 +555,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. Move the old read-only file system and replace it with the new one. This will serve as a backup and archive of the old read-only file system should something go wrong. The naming convention used here corresponds to when a new read-only file system has been created. Move the original FreeBSD Ports Collection over to the new file system to save some space and inodes:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -565,7 +565,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
. At this point the new read-only template is ready, so the only remaining task is to remount the file systems and start the jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -597,7 +597,7 @@ cloned_interfaces="lo1"
The second loopback interface `lo1` will be created when the system starts. It can also be created manually without a restart:
+
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -610,7 +610,7 @@ Inside a jail, access to the loopback address `127.0.0.1` is redirected to the f
Give each jail a unique loopback address in the `127.0.0.0/8` netblock.
. Install package:sysutils/ezjail[]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/ezjail
# make install clean
@@ -625,7 +625,7 @@ ezjail_enable="YES"
. The service will automatically start on system boot. It can be started immediately for the current session:
+
-[source,bash]
+[source,shell]
....
# service ezjail start
....
@@ -644,7 +644,7 @@ In both of these examples, `-p` causes the ports tree to be retrieved with man:p
+
For a basejail based on the FreeBSD RELEASE matching that of the host computer, use `install`. For example, on a host computer running FreeBSD 10-STABLE, the latest RELEASE version of FreeBSD -10 will be installed in the jail):
+
-[source,bash]
+[source,shell]
....
# ezjail-admin install -p
....
@@ -655,7 +655,7 @@ The basejail can be installed from binaries created by `buildworld` on the host
+
In this example, FreeBSD 10-STABLE has been built from source. The jail directories are created. Then `installworld` is executed, installing the host's [.filename]#/usr/obj# into the basejail.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i -p
....
@@ -690,7 +690,7 @@ New jails are created with `ezjail-admin create`. In these examples, the `lo1` l
.Procedure: Create and Start a New Jail
. Create the jail, specifying a name and the loopback and network interfaces to use, along with their IP addresses. In this example, the jail is named `dnsjail`.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin create dnsjail 'lo1|127.0.1.1,em0|192.168.1.50'
....
@@ -712,14 +712,14 @@ Do not enable raw network sockets unless services in the jail actually require t
. Start the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin start dnsjail
....
. Use a console on the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
....
@@ -731,7 +731,7 @@ The jail is operating and additional configuration can be completed. Typical set
+
Connect to the jail and set the `root` user's password:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
# passwd
@@ -771,14 +771,14 @@ Because the basejail's copy of the userland is shared by the other jails, updati
To build the world from source on the host, then install it in the basejail, use:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -b
....
If the world has already been compiled on the host, install it in the basejail with:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i
....
@@ -787,14 +787,14 @@ Binary updates use man:freebsd-update[8]. These updates have the same limitation
Update the basejail to the latest patched release of the version of FreeBSD on the host. For example, updating from RELEASE-p1 to RELEASE-p2.
-[source,bash]
+[source,shell]
....
# ezjail-admin update -u
....
To upgrade the basejail to a new version, first upgrade the host system as described in crossref:cutting-edge[freebsdupdate-upgrade,“Performing Major and Minor Version Upgrades”]. Once the host has been upgraded and rebooted, the basejail can then be upgraded. man:freebsd-update[8] has no way of determining which version is currently installed in the basejail, so the original version must be specified. Use man:file[1] to determine the original version in the basejail:
-[source,bash]
+[source,shell]
....
# file /usr/jails/basejail/bin/sh
/usr/jails/basejail/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.3, stripped
@@ -802,7 +802,7 @@ To upgrade the basejail to a new version, first upgrade the host system as descr
Now use this information to perform the upgrade from `9.3-RELEASE` to the current version of the host system:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -U -s 9.3-RELEASE
....
@@ -817,7 +817,7 @@ How to use man:mergemaster[8] depends on the purpose and trustworthiness of a ja
====
Delete the link from the jail's [.filename]#/usr/src# into the basejail and create a new [.filename]#/usr/src# in the jail as a mountpoint. Mount the host computer's [.filename]#/usr/src# read-only on the jail's new [.filename]#/usr/src# mountpoint:
-[source,bash]
+[source,shell]
....
# rm /usr/jails/jailname/usr/src
# mkdir /usr/jails/jailname/usr/src
@@ -826,14 +826,14 @@ Delete the link from the jail's [.filename]#/usr/src# into the basejail and crea
Get a console in the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin console jailname
....
Inside the jail, run `mergemaster`. Then exit the jail console:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# mergemaster -U
@@ -842,7 +842,7 @@ Inside the jail, run `mergemaster`. Then exit the jail console:
Finally, unmount the jail's [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# umount /usr/jails/jailname/usr/src
....
@@ -856,7 +856,7 @@ Finally, unmount the jail's [.filename]#/usr/src#:
If the users and services in a jail are trusted, man:mergemaster[8] can be run from the host:
-[source,bash]
+[source,shell]
....
# mergemaster -U -D /usr/jails/jailname
....
@@ -868,7 +868,7 @@ If the users and services in a jail are trusted, man:mergemaster[8] can be run f
After a major version update it is recommended by package:sysutils/ezjail[] to make sure your `pkg` is of the correct version. Therefore enter:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f pkg
....
@@ -883,7 +883,7 @@ The ports tree in the basejail is shared by the other jails. Updating that copy
The basejail ports tree is updated with man:portsnap[8]:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -P
....
@@ -896,7 +896,7 @@ The basejail ports tree is updated with man:portsnap[8]:
ezjail automatically starts jails when the computer is started. Jails can be manually stopped and restarted with `stop` and `start`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop sambajail
Stopping jails: sambajail.
@@ -904,7 +904,7 @@ Stopping jails: sambajail.
By default, jails are started automatically when the host computer starts. Autostarting can be disabled with `config`:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r norun seldomjail
....
@@ -913,7 +913,7 @@ This takes effect the next time the host computer is started. A jail that is alr
Enabling autostart is very similar:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r run oftenjail
....
@@ -927,7 +927,7 @@ The archive file can be copied elsewhere as a backup, or an existing jail can be
Stop and archive a jail named `wwwserver`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop wwwserver
Stopping jails: wwwserver.
@@ -938,7 +938,7 @@ wwwserver-201407271153.13.tar.gz
Create a new jail named `wwwserver-clone` from the archive created in the previous step. Use the [.filename]#em1# interface and assign a new IP address to avoid conflict with the original:
-[source,bash]
+[source,shell]
....
# ezjail-admin create -a /usr/jails/ezjail_archives/wwwserver-201407271153.13.tar.gz wwwserver-clone 'lo1|127.0.3.1,em1|192.168.1.51'
....
@@ -967,7 +967,7 @@ cloned_interfaces="lo1"
Immediately create the new loopback interface:
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -975,14 +975,14 @@ Created clone interfaces: lo1.
Create the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin create dns1 'lo1|127.0.2.1,re0|192.168.1.240'
....
Start the jail, connect to a console running on it, and perform some basic configuration:
-[source,bash]
+[source,shell]
....
# ezjail-admin start dns1
# ezjail-admin console dns1
@@ -1005,7 +1005,7 @@ nameserver 10.0.0.61
Still using the jail console, install package:dns/bind99[].
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/dns/bind99 install clean
....
@@ -1070,7 +1070,7 @@ named_enable="YES"
Start and test the name server:
-[source,bash]
+[source,shell]
....
# service named start
wrote key file "/usr/local/etc/namedb/rndc.key"
@@ -1080,14 +1080,14 @@ Starting named.
A response that includes
-[source,bash]
+[source,shell]
....
;; Got answer;
....
shows that the new DNS server is working. A long delay followed by a response including
-[source,bash]
+[source,shell]
....
;; connection timed out; no servers could be reached
....
diff --git a/documentation/content/pl/books/handbook/kernelconfig/_index.adoc b/documentation/content/pl/books/handbook/kernelconfig/_index.adoc
index 6a145549e3..4694290747 100644
--- a/documentation/content/pl/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/pl/books/handbook/kernelconfig/_index.adoc
@@ -86,7 +86,7 @@ Przykłady w niniejszym rozdziale zakładają, że wykorzystujemy architekturę
====
Jeśli _nie_ mamy katalogu [.filename]#/usr/src/sys#, oznacza to, że nie dysponujemy zainstalowanymi źródłami jądra. Najprostszym sposobem na zainstalowanie jest uruchomienie jako `root sysinstall`'a, wybranie [.guimenuitem]#Configure#, następnie [.guimenuitem]#Distributions#, później [.guimenuitem]#src#, a na końcu [.guimenuitem]#sys#. Jeśli jednak jesteśmy osobami mającymi awersję do konfiguratorów możemy zainstalować źródła jądra ręcznie. W poniższym przykładzie instalacja z "oficjalnej" płyty CD FreeBSD:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -98,7 +98,7 @@ Jeśli _nie_ mamy katalogu [.filename]#/usr/src/sys#, oznacza to, że nie dyspon
Następnie wchodzimy do katalogu [.filename]#arch/conf# i kopiujemy domyślny plik konfiguracyjny o nazwie [.filename]#GENERIC# tworząc plik z nazwą jaką chcemy nadać swojemu jądru. Na przykład:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -115,7 +115,7 @@ Możemy chcieć trzymać plik konfiguracyjny jądra gdziekolwiek, a następnie u
Przykładowo:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -148,21 +148,21 @@ Jeśli _nie_ aktualizowaliśmy naszych źródeł w żaden sposób od ostatniego,
. By wygenerować kod źródłowy jądra, należy uruchomić man:config[8].
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/config MYKERNEL
....
+
. Następnie, przenieśmy się do katalogu w którym dokonuje się budowy. Po ponownym uruchomieniu man:config[8] wyświetlona zostanie nazwa katalogu.
+
-[source,bash]
+[source,shell]
....
# cd ../compile/MYKERNEL
....
+
. Skompilujmy jądro.
+
-[source,bash]
+[source,shell]
....
# make depend
# make
@@ -170,7 +170,7 @@ Jeśli _nie_ aktualizowaliśmy naszych źródeł w żaden sposób od ostatniego,
+
. Zainstalujmy nowe jądro.
+
-[source,bash]
+[source,shell]
....
# make install
....
@@ -182,21 +182,21 @@ Jeśli _nie_ aktualizowaliśmy naszych źródeł w żaden sposób od ostatniego,
. Wejdźmy do katalogu [.filename]#/usr/src#.
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Skompilujmy jądro.
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Zainstalujmy nowe jądro.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -236,7 +236,7 @@ Ogólny format pliku konfiguracyjnego jest całkiem prosty. Każda linia zawiera
====
By skompilować plik zawierający wszystkie dostępne opcje, jak się z reguły robi do celów testowych, należy wpisać jako `root` następujące polecenie:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1038,7 +1038,7 @@ Istnieje pięć kategorii problemów, które możemy napotkać budując jądro.
Błąd `config`:::
Jeśli program man:config[8] zgłosił błąd podczas przetwarzania naszego pliku konfiguracyjnego, najprawdopodobniej popełniliśmy mały błąd w postaci literówki. Na szczęście man:config[8] wyświetli linię, z którą miał problem, dzięki czemu będziemy mogli szybko do niej dotrzeć. Na przykład, jeśli widzimy:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1057,7 +1057,7 @@ Po uruchomieniu z dobrym jądrem, możemy sprawdzić nasz plik konfiguracyjny, a
====
Jeśli mamy problemy ze zbudowaniem jądra, upewnijmy się, że posiadamy jądro [.filename]#GENERIC# lub inne działające jądro nazwane tak, by nie zostało nadpisane po kolejnym procesie budowy. Nie możemy polegać na [.filename]#kernel.old#, ponieważ gdy instalujemy nowe jądro, [.filename]#kernel.old# jest nadpisywane przez ostatnio zainstalowane jądro, które może być niedziałające. Ponadto, powinniśmy tak szybko, jak to tylko możliwe, przenieść działające jądro do właściwej lokalizacji [.filename]#/boot/kernel#, albo komendy takie jak man:ps[1] nie będą działały poprawnie. By to zrobić wystarczy zmienić nazwę katalogu zawierającego właściwe jądro:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/pl/books/handbook/l10n/_index.adoc b/documentation/content/pl/books/handbook/l10n/_index.adoc
index a602e8bf79..35c2914198 100644
--- a/documentation/content/pl/books/handbook/l10n/_index.adoc
+++ b/documentation/content/pl/books/handbook/l10n/_index.adoc
@@ -95,14 +95,14 @@ The _LanguageCode_ and _CountryCode_ are used to determine the country and the s
A complete listing of available locales can be found by typing:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
To determine the current locale setting:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -183,7 +183,7 @@ See man:login.conf[5] for more details about these variables. Note that it alrea
Whenever [.filename]#/etc/login.conf# is edited, remember to execute the following command to update the capability database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -205,28 +205,28 @@ If all new users use the same language, set `defaultclass=_language_` in [.filen
To override this setting when creating a user, either input the required locale at this prompt:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
or specify the locale to set when invoking `adduser`:
-[source,bash]
+[source,shell]
....
# adduser -class language
....
If `pw` is used to add new users, specify the locale as follows:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
To change the login class of an existing user, `chpass` can be used. Invoke it as superuser and provide the username to edit as the argument.
-[source,bash]
+[source,shell]
....
# chpass user_name
....
diff --git a/documentation/content/pl/books/handbook/linuxemu/_index.adoc b/documentation/content/pl/books/handbook/linuxemu/_index.adoc
index 2f3fcc862c..8473966e93 100644
--- a/documentation/content/pl/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/pl/books/handbook/linuxemu/_index.adoc
@@ -75,21 +75,21 @@ By default, Linux(R) libraries are not installed and Linux(R) binary compatibili
Before attempting to build the port, load the Linux(R) kernel module, otherwise the build will fail:
-[source,bash]
+[source,shell]
....
# kldload linux
....
For 64-bit compatibility:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
To verify that the module is loaded:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -99,7 +99,7 @@ To verify that the module is loaded:
The package:emulators/linux_base-c7[] package or port is the easiest way to install a base set of Linux(R) libraries and binaries on a FreeBSD system. To install the port:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -122,7 +122,7 @@ If a Linux(R) application complains about missing shared libraries after configu
From a Linux(R) system, `ldd` can be used to determine which shared libraries the application needs. For example, to check which shared libraries `linuxdoom` needs, run this command from a Linux(R) system that has Doom installed:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -132,7 +132,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Then, copy all the files in the last column of the output from the Linux(R) system into [.filename]#/compat/linux# on the FreeBSD system. Once copied, create symbolic links to the names in the first column. This example will result in the following files on the FreeBSD system:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -146,7 +146,7 @@ If a Linux(R) shared library already exists with a matching major revision numbe
For example, these libraries already exist on the FreeBSD system:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -154,14 +154,14 @@ For example, these libraries already exist on the FreeBSD system:
and `ldd` indicates that a binary requires a later version:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Since the existing library is only one or two versions out of date in the last digit, the program should still work with the slightly older version. However, it is safe to replace the existing [.filename]#libc.so# with the newer version:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -173,7 +173,7 @@ Generally, one will need to look for the shared libraries that Linux(R) binaries
ELF binaries sometimes require an extra step. When an unbranded ELF binary is executed, it will generate an error message:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -182,7 +182,7 @@ Abort
To help the FreeBSD kernel distinguish between a FreeBSD ELF binary and a Linux(R) binary, use man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -193,7 +193,7 @@ Since the GNU toolchain places the appropriate branding information into ELF bin
To install a Linux(R) RPM-based application, first install the package:archivers/rpm4[] package or port. Once installed, `root` can use this command to install a [.filename]#.rpm#:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -205,7 +205,7 @@ If necessary, `brandelf` the installed ELF binaries. Note that this will prevent
If DNS does not work or this error appears:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -240,7 +240,7 @@ For the Linux(R) ABI support, FreeBSD sees the magic number as an ELF binary. Th
For Linux(R) binaries to function, they must be _branded_ as type `Linux` using man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/pl/books/handbook/mac/_index.adoc b/documentation/content/pl/books/handbook/mac/_index.adoc
index 82964d26a3..6cb47f314e 100644
--- a/documentation/content/pl/books/handbook/mac/_index.adoc
+++ b/documentation/content/pl/books/handbook/mac/_index.adoc
@@ -113,7 +113,7 @@ Using a multi label policy on a partition and establishing a multi label securit
The following command will set `multilabel` on the specified UFS file system. This may only be done in single-user mode and is not a requirement for the swap file system:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -131,7 +131,7 @@ Virtually all aspects of label policy module configuration will be performed usi
All configuration may be done using `setfmac`, which is used to set MAC labels on system objects, and `setpmac`, which is used to set the labels on system subjects. For example, to set the `biba` MAC label to `high` on [.filename]#test#:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
@@ -140,7 +140,7 @@ If the configuration is successful, the prompt will be returned without error. A
The system administrator may use `setpmac` to override the policy module's settings by assigning a different label to the invoked process:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -223,7 +223,7 @@ Labels may be set on network interfaces to help control the flow of data across
When setting the MAC label on network interfaces, `maclabel` may be passed to `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -302,7 +302,7 @@ The rule list may be entered using man:ugidfw[8] which has a syntax similar to m
After the man:mac_bsdextended[4] module has been loaded, the following command may be used to list the current rule configuration:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -310,14 +310,14 @@ After the man:mac_bsdextended[4] module has been loaded, the following command m
By default, no rules are defined and everything is completely accessible. To create a rule which blocks all access by users but leaves `root` unaffected:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
While this rule is simple to implement, it is a very bad idea as it blocks all users from issuing any commands. A more realistic example blocks `user1` all access, including directory listings, to ``_user2_``'s home directory:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -369,7 +369,7 @@ Once loaded, this module enables the MAC policy on all sockets. The following tu
By default, ports below 1024 can only be used by privileged processes which run as `root`. For man:mac_portacl[4] to allow non-privileged processes to bind to ports below 1024, set the following tunables as follows:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0
@@ -378,21 +378,21 @@ By default, ports below 1024 can only be used by privileged processes which run
To prevent the `root` user from being affected by this policy, set `security.mac.portacl.suser_exempt` to a non-zero value.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
To allow the `www` user with UID 80 to bind to port 80 without ever needing `root` privilege:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
This next example permits the user with the UID of 1001 to bind to TCP ports 110 (POP3) and 995 (POP3s):
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -414,21 +414,21 @@ When this policy is enabled, users will only be permitted to see their processes
This example adds `top` to the label set on users in the `insecure` class. All processes spawned by users in the `insecure` class will stay in the `partition/13` label.
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
This command displays the partition label and the process list:
-[source,bash]
+[source,shell]
....
# ps Zax
....
This command displays another user's process partition label and that user's currently running processes:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -471,14 +471,14 @@ The following `sysctl` tunables are available:
To manipulate MLS labels, use man:setfmac[8]. To assign a label to an object:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
To get the MLS label for the file [.filename]#test#:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -525,7 +525,7 @@ The following tunables can be used to manipulate the Biba policy:
To access the Biba policy setting on system objects, use `setfmac` and `getfmac`:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -555,7 +555,7 @@ This policy relies on the ubiquitous labeling of all system objects with integri
Like the Biba and MLS policies, `setfmac` and `setpmac` are used to place labels on system objects:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -642,7 +642,7 @@ Then, add the following line to the default user class section:
Save the edits and issue the following command to rebuild the database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -651,14 +651,14 @@ Save the edits and issue the following command to rebuild the database:
Set the `root` user to the default class using:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
All user accounts that are not `root` will now require a login class. The login class is required, otherwise users will be refused access to common commands. The following `sh` script should do the trick:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -666,7 +666,7 @@ All user accounts that are not `root` will now require a login class. The login
Next, drop the `nagios` and `www` accounts into the insecure class:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
# pw usermod www -L insecure
@@ -709,7 +709,7 @@ This policy enforces security by setting restrictions on the flow of information
This file will be read after running `setfsmac` on every file system. This example sets the policy on the root file system:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
....
@@ -748,7 +748,7 @@ First, ensure that the web server and Nagios will not be started on system initi
If all seems well, Nagios, Apache, and Sendmail can now be started:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -761,7 +761,7 @@ Double check to ensure that everything is working properly. If not, check the lo
====
The `root` user can still change the security enforcement and edit its configuration files. The following command will permit the degradation of the security policy to a lower grade for a newly spawned shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/pl/books/handbook/mail/_index.adoc b/documentation/content/pl/books/handbook/mail/_index.adoc
index 985c7d8547..71786cfaac 100644
--- a/documentation/content/pl/books/handbook/mail/_index.adoc
+++ b/documentation/content/pl/books/handbook/mail/_index.adoc
@@ -102,7 +102,7 @@ In addition to mapping hostnames to IP addresses, DNS is responsible for storing
+
To view the MX records for a domain, specify the type of record. Refer to man:host[1], for more details about this command:
+
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -146,7 +146,7 @@ To configure the access database, use the format shown in the sample to make ent
+
Whenever this file is updated, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -188,7 +188,7 @@ postmaster@example.com postmaster@noc.example.net
+
This file is processed in a first match order. When an email address matches the address on the left, it is mapped to the local mailbox listed on the right. The format of the first entry in this example maps a specific email address to a local mailbox, whereas the format of the second entry maps a specific email address to a remote mailbox. Finally, any email address from `example.com` which has not matched any of the previous entries will match the last mapping and be sent to the local mailbox `joe`. When creating custom entries, use this format and add them to [.filename]#/etc/mail/virtusertable#. Whenever this file is edited, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
# service sendmail restart
@@ -252,7 +252,7 @@ More information on Sendmail's startup options is available in man:rc.sendmail[8
When a new MTA is installed using the Ports Collection, its startup script is also installed and startup instructions are mentioned in its package message. Before starting the new MTA, stop the running Sendmail processes. This example stops all of these services, then starts the Postfix service:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -432,7 +432,7 @@ Either of the above will allow mail to be received directly at the host.
Try this:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -444,7 +444,7 @@ In this example, mail sent directly to mailto:yourlogin@example.FreeBSD.org[your
For this example:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -516,7 +516,7 @@ Additionally, a typical Internet access service agreement may forbid one from ru
The easiest way to fulfill those needs is to install the package:mail/ssmtp[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -620,7 +620,7 @@ saslauthd_enable="YES"
+
Finally, start the saslauthd daemon:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -637,7 +637,7 @@ SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
These lines provide Sendmail the proper configuration options for linking to package:cyrus-sasl2[] at compile time. Make sure that package:cyrus-sasl2[] has been installed before recompiling Sendmail.
. Recompile Sendmail by executing the following commands:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -678,14 +678,14 @@ Although `mail` does not natively support interaction with POP or IMAP servers,
In order to send and receive email, run `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
The contents of the user's mailbox in [.filename]#/var/mail# are automatically read by `mail`. Should the mailbox be empty, the utility exits with a message indicating that no mail could be found. If mail exists, the application interface starts, and a list of messages will be displayed. Messages are automatically numbered, as can be seen in the following example:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -696,7 +696,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Messages can now be read by typing kbd:[t] followed by the message number. This example reads the first email:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -715,7 +715,7 @@ As seen in this example, the message will be displayed with full headers. To dis
If the email requires a reply, press either kbd:[R] or kbd:[r] `mail` keys. kbd:[R] instructs `mail` to reply only to the sender of the email, while kbd:[r] replies to all other recipients of the message. These commands can be suffixed with the mail number of the message to reply to. After typing the response, the end of the message should be marked by a single kbd:[.] on its own line. An example can be seen below:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -728,7 +728,7 @@ EOT
In order to send a new email, press kbd:[m], followed by the recipient email address. Multiple recipients may be specified by separating each address with the kbd:[,] delimiter. The subject of the message may then be entered, followed by the message contents. The end of the message should be specified by putting a single kbd:[.] on its own line.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -760,7 +760,7 @@ Refer to http://www.mutt.org[http://www.mutt.org] for more information on mutt.
mutt may be installed using the package:mail/mutt[] port. After the port has been installed, mutt can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -799,7 +799,7 @@ alpine has had several remote vulnerabilities discovered in the past, which allo
The current version of alpine may be installed using the package:mail/alpine[] port. Once the port has installed, alpine can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -840,7 +840,7 @@ fetchmail is a full-featured IMAP and POP client. It allows users to automatical
This section explains some of the basic features of fetchmail. This utility requires a [.filename]#.fetchmailrc# configuration in the user's home directory in order to run correctly. This file includes server information as well as login credentials. Due to the sensitive nature of the contents of this file, it is advisable to make it readable only by the user, with the following command:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -865,7 +865,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail can be run in daemon mode by running it with `-d`, followed by the interval (in seconds) that fetchmail should poll servers listed in [.filename]#.fetchmailrc#. The following example configures fetchmail to poll every 600 seconds:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/pl/books/handbook/mirrors/_index.adoc b/documentation/content/pl/books/handbook/mirrors/_index.adoc
index 49ed443bf5..2c65d0f6a4 100644
--- a/documentation/content/pl/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/pl/books/handbook/mirrors/_index.adoc
@@ -410,7 +410,7 @@ This section demonstrates how to install Subversion on a FreeBSD system and use
Installing package:security/ca_root_nss[] allows Subversion to verify the identity of HTTPS repository servers. The root SSL certificates can be installed from a port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -418,7 +418,7 @@ Installing package:security/ca_root_nss[] allows Subversion to verify the identi
or as a package:
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -437,7 +437,7 @@ If `svnlite` is unavailable or the full version of Subversion is needed, then it
Subversion can be installed from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -445,7 +445,7 @@ Subversion can be installed from the Ports Collection:
Subversion can also be installed as a package:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -467,7 +467,7 @@ Subversion uses URLs to designate a repository, taking the form of _protocol://h
A checkout from a given repository is performed with a command like this:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lwcdir
....
@@ -480,7 +480,7 @@ where:
This example checks out the Ports Collection from the FreeBSD repository using the HTTPS protocol, placing the local working copy in [.filename]#/usr/ports#. If [.filename]#/usr/ports# is already present but was not created by `svn`, remember to rename or delete it before the checkout.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -489,14 +489,14 @@ Because the initial checkout must download the full branch of the remote reposit
After the initial checkout, the local working copy can be updated by running:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
To update [.filename]#/usr/ports# created in the example above, use:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -505,7 +505,7 @@ The update is much quicker than a checkout, only transferring files that have ch
An alternate way of updating the local working copy after checkout is provided by the [.filename]#Makefile# in the [.filename]#/usr/ports#, [.filename]#/usr/src#, and [.filename]#/usr/doc# directories. Set `SVN_UPDATE` and use the `update` target. For example, to update [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/pl/books/handbook/multimedia/_index.adoc b/documentation/content/pl/books/handbook/multimedia/_index.adoc
index 12835839dc..95081cc266 100644
--- a/documentation/content/pl/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/pl/books/handbook/multimedia/_index.adoc
@@ -78,7 +78,7 @@ Before beginning the configuration, determine the model of the sound card and th
In order to use the sound device, its device driver must be loaded. The easiest way is to load a kernel module for the sound card with man:kldload[8]. This example loads the driver for a built-in audio chipset based on the Intel specification:
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -92,7 +92,7 @@ snd_hda_load="YES"
Other available sound modules are listed in [.filename]#/boot/defaults/loader.conf#. When unsure which driver to use, load the [.filename]#snd_driver# module:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -149,7 +149,7 @@ The settings shown above are the defaults. In some cases, the IRQ or other setti
After loading the required module or rebooting into the custom kernel, the sound card should be detected. To confirm, run `dmesg | grep pcm`. This example is from a system with a built-in Conexant CX20590 chipset:
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -158,7 +158,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
The status of the sound card may also be checked using this command:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -172,7 +172,7 @@ The output will vary depending upon the sound card. If no [.filename]#pcm# devic
If all goes well, the sound card should now work in FreeBSD. If the `CD` or `DVD` drive is properly connected to the sound card, one can insert an audio `CD` in the drive and play it with man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -187,7 +187,7 @@ Various applications, such as package:audio/workman[], provide a friendlier inte
Another quick way to test the card is to send data to [.filename]#/dev/dsp#:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -206,28 +206,28 @@ Connecting to a Bluetooth device is out of scope for this chapter. Refer to cros
To get Bluetooth sound sink working with FreeBSD's sound system, users have to install package:audio/virtual_oss[] first:
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] requires `cuse` to be loaded into the kernel:
-[source,bash]
+[source,shell]
....
# kldload cuse
....
To load `cuse` during system startup, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
To use headphones as a sound sink with package:audio/virtual_oss[], users need to create a virtual device after connecting to a Bluetooth audio device:
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -297,7 +297,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
In this example, the graphics card (`NVidia`) has been enumerated before the sound card (`Realtek ALC889`). To use the sound card as the default playback device, change `hw.snd.default_unit` to the unit that should be used for playback:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -316,7 +316,7 @@ It is often desirable to have multiple sources of sound that are able to play si
Three man:sysctl[8] knobs are available for configuring virtual channels:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -355,7 +355,7 @@ A popular graphical `MP3` player is Audacious. It supports Winamp skins and addi
The package:audio/mpg123[] package or port provides an alternative, command-line `MP3` player. Once installed, specify the `MP3` file to play on the command line. If the system has multiple audio devices, the sound device can also be specified:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
@@ -377,7 +377,7 @@ The `cdda2wav` tool, which is installed with the package:sysutils/cdrtools[] sui
With the audio `CD` in the drive, the following command can be issued as `root` to rip an entire `CD` into individual, per track, `WAV` files:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -386,21 +386,21 @@ In this example, the `-D _0,1,0_` indicates the `SCSI` device [.filename]#0,1,0#
To rip individual tracks, use `-t` to specify the track:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
To rip a range of tracks, such as track one to seven, specify a range:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
To rip from an `ATAPI` (`IDE`) `CDROM` drive, specify the device name in place of the `SCSI` unit numbers. For example, to rip track 7 from an IDE drive:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -414,7 +414,7 @@ Lame is a popular `MP3` encoder which can be installed from the package:audio/la
The following command will convert the ripped `WAV` file [.filename]#audio01.wav# to [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "Foo Song Title" --ta "FooBar Artist" --tl "FooBar Album" \
--ty "2014" --tc "Ripped and encoded by Foo" --tg "Genre" audio01.wav audio01.mp3
@@ -426,7 +426,7 @@ In order to burn an audio `CD` from ``MP3``s, they must first be converted to a
To convert [.filename]#audio01.mp3# using mpg123, specify the name of the `PCM` file:
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -447,7 +447,7 @@ To use XMMS to convert a `MP3` to `WAV` format, use these steps:
Both the `WAV` and `PCM` formats can be used with cdrecord. When using `WAV` files, there will be a small tick sound at the beginning of each track. This sound is the header of the `WAV` file. The package:audio/sox[] port or package can be used to remove the header:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -461,7 +461,7 @@ Before configuring video playback, determine the model and chipset of the video
It is a good idea to have a short MPEG test file for evaluating various players and options. Since some `DVD` applications look for `DVD` media in [.filename]#/dev/dvd# by default, or have this device name hardcoded in them, it might be useful to make a symbolic link to the proper device:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/cd0 /dev/dvd
....
@@ -501,14 +501,14 @@ Common video interfaces include:
To check whether this extension is running, use `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo is supported for the card if the result is similar to:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -584,7 +584,7 @@ The formats listed, such as YUV2 and YUV12, are not present with every implement
If the result instead looks like:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -615,27 +615,27 @@ This section describes only a few common uses. Refer to mplayer(1) for a complet
To play the file [.filename]#testfile.avi#, specify the video interfaces with `-vo`, as seen in the following examples:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -644,7 +644,7 @@ It is worth trying all of these options, as their relative performance depends o
To play a `DVD`, replace [.filename]#testfile.avi# with `dvd://_N_ -dvd-device _DEVICE_`, where _N_ is the title number to play and _DEVICE_ is the device node for the `DVD`. For example, to play title 3 from [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -669,7 +669,7 @@ zoom=yes
`mplayer` can be used to rip a `DVD` title to a [.filename]#.vob#. To dump the second title from a `DVD`:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -682,7 +682,7 @@ Before using `mencoder`, it is a good idea to become familiar with the options d
Here is an example of a simple copy:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -691,7 +691,7 @@ To rip to a file, use `-dumpfile` with `mplayer`.
To convert [.filename]#input.avi# to the MPEG4 codec with MPEG3 audio encoding, first install the package:audio/lame[] port. Due to licensing restrictions, a package is not available. Once installed, type:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -712,7 +712,7 @@ By default, the xine player starts a graphical user interface. The menus can the
Alternatively, xine may be invoked from the command line by specifying the name of the file to play:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -728,7 +728,7 @@ In FreeBSD, Transcode can be installed using the package:multimedia/transcode[]
This example demonstrates how to convert a DivX file into a PAL MPEG-1 file (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -787,7 +787,7 @@ options OVERRIDE_TUNER=6
or, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -829,14 +829,14 @@ The https://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] page contains a list of
To install MythTV using binary packages:
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
Alternatively, to install from the Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -844,21 +844,21 @@ Alternatively, to install from the Ports Collection:
Once installed, set up the MythTV database:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Then, configure the backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Finally, start the backend:
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -889,7 +889,7 @@ device xhci
To determine if the `USB` scanner is detected, plug it in and use `dmesg` to determine whether the scanner appears in the system message buffer. If it does, it should display a message similar to this:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -906,7 +906,7 @@ device pass
Verify that the device is displayed in the system message buffer:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -915,7 +915,7 @@ pass2: 3.300MB/s transfers
If the scanner was not powered-on at system boot, it is still possible to manually force detection by performing a `SCSI` bus scan with `camcontrol`:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -926,7 +926,7 @@ Re-scan of bus 3 was successful
The scanner should now appear in the `SCSI` devices list:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -943,14 +943,14 @@ The SANE system provides the access to the scanner via backends (package:graphic
To install the backends from binary package:
-[source,bash]
+[source,shell]
....
# pkg install sane-backends
....
Alternatively, to install from the Ports Collection
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-backends
# make install clean
@@ -958,7 +958,7 @@ Alternatively, to install from the Ports Collection
After installing the package:graphics/sane-backends[] port or package, use `sane-find-scanner` to check the scanner detection by the SANE system:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -973,7 +973,7 @@ Some `USB` scanners require firmware to be loaded. Refer to sane-find-scanner(1)
Next, check if the scanner will be identified by a scanning frontend. The SANE backends include `scanimage` which can be used to list the devices and perform an image acquisition. Use `-L` to list the scanner devices. The first example is for a `SCSI` scanner and the second is for a `USB` scanner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -986,7 +986,7 @@ In this second example, `epson2` is the backend name and `libusb:000:002` means
If `scanimage` is unable to identify the scanner, this message will appear:
-[source,bash]
+[source,shell]
....
# scanimage -L
No scanners were identified. If you were expecting something different,
@@ -1004,7 +1004,7 @@ usb /dev/ugen0.2
Save the edits and verify that the scanner is identified with the right backend name and the device node:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
@@ -1020,7 +1020,7 @@ In order to have access to the scanner, a user needs read and write permissions
This example creates a group called `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1058,14 +1058,14 @@ devfs_system_ruleset="system"
And, restart the man:devfs[8] system:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
Finally, add the users to `_usb_` in order to allow access to the scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/pl/books/handbook/network-servers/_index.adoc b/documentation/content/pl/books/handbook/network-servers/_index.adoc
index df15779df0..ecdb187e6a 100644
--- a/documentation/content/pl/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/pl/books/handbook/network-servers/_index.adoc
@@ -93,7 +93,7 @@ inetd_enable="YES"
To start inetd now, so that it listens for the service you configured, type:
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -105,7 +105,7 @@ Once inetd is started, it needs to be notified whenever a modification is made t
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -330,14 +330,14 @@ mountd_enable="YES"
The server can be started now by running this command:
-[source,bash]
+[source,shell]
....
# service nfsd start
....
Whenever the NFS server is started, mountd also starts automatically. However, mountd only reads [.filename]#/etc/exports# when it is started. To make subsequent [.filename]#/etc/exports# edits take effect immediately, force mountd to reread it:
-[source,bash]
+[source,shell]
....
# service mountd reload
....
@@ -353,14 +353,14 @@ nfs_client_enable="YES"
Then, run this command on each NFS client:
-[source,bash]
+[source,shell]
....
# service nfsclient start
....
The client now has everything it needs to mount a remote file system. In these examples, the server's name is `server` and the client's name is `client`. To mount [.filename]#/home# on `server` to the [.filename]#/mnt# mount point on `client`:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -388,7 +388,7 @@ rpc_statd_enable="YES"
Then start the applications:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -419,7 +419,7 @@ There is a special automounter map mounted on [.filename]#/net#. When a file is
====
In this example, `showmount -e` shows the exported file systems that can be mounted from the NFS server, `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -441,7 +441,7 @@ autofs_enable="YES"
Then man:autofs[5] can be started by running:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -585,7 +585,7 @@ nis_client_flags="-S test-domain,server" <.>
After saving the edits, type `/etc/netstart` to restart the network and apply the values defined in [.filename]#/etc/rc.conf#. Before initializing the NIS maps, start man:ypserv[8]:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -594,7 +594,7 @@ After saving the edits, type `/etc/netstart` to restart the network and apply th
NIS maps are generated from the configuration files in [.filename]#/etc# on the NIS master, with one exception: [.filename]#/etc/master.passwd#. This is to prevent the propagation of passwords to all the servers in the NIS domain. Therefore, before the NIS maps are initialized, configure the primary password files:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -610,7 +610,7 @@ Ensure that the [.filename]#/var/yp/master.passwd# is neither group or world rea
After completing this task, initialize the NIS maps. FreeBSD includes the man:ypinit[8] script to do this. When generating maps for the master server, include `-m` and specify the NIS domain name:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -648,7 +648,7 @@ NOPUSH = "True"
Every time a new user is created, the user account must be added to the master NIS server and the NIS maps rebuilt. Until this occurs, the new user will not be able to login anywhere except on the NIS master. For example, to add the new user `jsmith` to the `test-domain` domain, run these commands on the master server:
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -661,7 +661,7 @@ The user could also be added using `adduser jsmith` instead of `pw useradd smith
To set up an NIS slave server, log on to the slave server and edit [.filename]#/etc/rc.conf# as for the master server. Do not generate any NIS maps, as these already exist on the master server. When running `ypinit` on the slave server, use `-s` (for slave) instead of `-m` (for master). This option requires the name of the NIS master in addition to the domain name, as seen in this example:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -765,7 +765,7 @@ This line configures the client to provide anyone with a valid account in the NI
To start the NIS client immediately, execute the following commands as the superuser:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -804,7 +804,7 @@ In this example, the `basie` system is a faculty workstation within the NIS doma
To prevent specified users from logging on to a system, even if they are present in the NIS database, use `vipw` to add `-_username_` with the correct number of colons towards the end of [.filename]#/etc/master.passwd# on the client, where _username_ is the username of a user to bar from logging in. The line with the blocked user must be before the `+` line that allows NIS users. In this example, `bill` is barred from logging on to `basie`:
-[source,bash]
+[source,shell]
....
basie# cat /etc/master.passwd
root:[password]:0:0::0:0:The super-user:/root:/bin/csh
@@ -914,14 +914,14 @@ Repeat this process if more than 225 (15 times 15) users exist within a single n
To activate and distribute the new NIS map:
-[source,bash]
+[source,shell]
ellington# cd /var/yp
ellington# make
....
This will generate the three NIS maps [.filename]#netgroup#, [.filename]#netgroup.byhost# and [.filename]#netgroup.byuser#. Use the map key option of man:ypcat[1] to check if the new NIS maps are available:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1055,7 +1055,7 @@ In this example, the system is using the DES format. Other possible values are `
If the format on a host needs to be edited to match the one being used in the NIS domain, the login capability database must be rebuilt after saving the change:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1078,7 +1078,7 @@ LDAP uses several terms which should be understood before starting the configura
An example LDAP entry looks like the following. This example searches for the entry for the specified user account (`uid`), organizational unit (`ou`), and organization (`o`):
-[source,bash]
+[source,shell]
....
% ldapsearch -xb "uid=trhodes,ou=users,o=example.com"
# extended LDIF
@@ -1113,7 +1113,7 @@ More information about LDAP and its terminology can be found at http://www.openl
FreeBSD does not provide a built-in LDAP server. Begin the configuration by installing package:net/openldap-server[] package or port:
-[source,bash]
+[source,shell]
....
# pkg install openldap-server
....
@@ -1122,14 +1122,14 @@ There is a large set of default options enabled in the link:{linux-users}#softwa
The installation creates the directory [.filename]#/var/db/openldap-data# to hold the data. The directory to store the certificates must be created:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/private
....
The next phase is to configure the Certificate Authority. The following commands must be executed from [.filename]#/usr/local/etc/openldap/private#. This is important as the file permissions need to be restrictive and users should not have access to these files. More detailed information about certificates and their parameters can be found in crossref:security[openssl,"OpenSSL"]. To create the Certificate Authority, start with this command and follow the prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt
....
@@ -1138,21 +1138,21 @@ The entries for the prompts may be generic _except_ for the `Common Name`. This
The next task is to create a certificate signing request and a private key. Input this command and follow the prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout server.key -out server.csr
....
During the certificate generation process, be sure to correctly set the `Common Name` attribute. The Certificate Signing Request must be signed with the Certificate Authority in order to be used as a valid certificate:
-[source,bash]
+[source,shell]
....
# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial
....
The final part of the certificate generation process is to generate and sign the client certificates:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout client.key -out client.csr
# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CA ../ca.crt -CAkey ca.key
@@ -1305,28 +1305,28 @@ This http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=tree;f=tests/data
When the configuration is completed, [.filename]#slapd.ldif# must be placed in an empty directory. It is recommended to create it as:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/slapd.d/
....
Import the configuration database:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif
....
Start the [.filename]#slapd# daemon:
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/
....
Option `-d` can be used for debugging, as specified in slapd(8). To verify that the server is running and working:
-[source,bash]
+[source,shell]
....
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
@@ -1351,21 +1351,21 @@ result: 0 Success
The server must still be trusted. If that has never been done before, follow these instructions. Install the OpenSSL package or port:
-[source,bash]
+[source,shell]
....
# pkg install openssl
....
From the directory where [.filename]#ca.crt# is stored (in this example, [.filename]#/usr/local/etc/openldap#), run:
-[source,bash]
+[source,shell]
....
# c_rehash .
....
Both the CA and the server certificate are now correctly recognized in their respective roles. To verify this, run this command from the [.filename]#server.crt# directory:
-[source,bash]
+[source,shell]
....
# openssl verify -verbose -CApath . server.crt
....
@@ -1385,7 +1385,7 @@ slapd_cn_config="YES"
The following example adds the group `team` and the user `john` to the `domain.example` LDAP database, which is still empty. First, create the file [.filename]#domain.ldif#:
-[source,bash]
+[source,shell]
....
# cat domain.ldif
dn: dc=domain,dc=example
@@ -1426,14 +1426,14 @@ userPassword: secret
See the OpenLDAP documentation for more details. Use [.filename]#slappasswd# to replace the plain text password `secret` with a hash in `userPassword`. The path specified as `loginShell` must exist in all the systems where `john` is allowed to login. Finally, use the `mdb` administrator to modify the database:
-[source,bash]
+[source,shell]
....
# ldapadd -W -D "cn=mdbadmin,dc=domain,dc=example" -f domain.ldif
....
Modifications to the _global configuration_ section can only be performed by the global super-user. For example, assume that the option `olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` was initially specified and must now be deleted. First, create a file that contains the following:
-[source,bash]
+[source,shell]
....
# cat global_mod
dn: cn=config
@@ -1443,7 +1443,7 @@ delete: olcTLSCipherSuite
Then, apply the modifications:
-[source,bash]
+[source,shell]
....
# ldapmodify -f global_mod -x -D "cn=config" -W
....
@@ -1452,7 +1452,7 @@ When asked, provide the password chosen in the _configuration backend_ section.
If something goes wrong, or if the global super-user cannot access the configuration backend, it is possible to delete and re-write the whole configuration:
-[source,bash]
+[source,shell]
....
# rm -rf /usr/local/etc/openldap/slapd.d/
....
@@ -1573,7 +1573,7 @@ Replace the `dc0` with the interface (or interfaces, separated by whitespace) th
Start the server by issuing the following command:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1671,21 +1671,21 @@ Any existing nameservers in [.filename]#/etc/resolv.conf# will be configured as
If any of the listed nameservers do not support DNSSEC, local DNS resolution will fail. Be sure to test each nameserver and remove any that fail the test. The following command will show the trust tree or a failure for a nameserver running on `192.168.1.1`:
====
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org @192.168.1.1
....
Once each nameserver is confirmed to support DNSSEC, start Unbound:
-[source,bash]
+[source,shell]
....
# service local_unbound onestart
....
This will take care of updating [.filename]#/etc/resolv.conf# so that queries for DNSSEC secured domains will now work. For example, run the following to validate the FreeBSD.org DNSSEC trust tree:
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org
;; Number of trusted keys: 1
@@ -1749,7 +1749,7 @@ apache24_flags=""
If apachectl does not report configuration errors, start `httpd` now:
-[source,bash]
+[source,shell]
....
# service apache24 start
....
@@ -1758,7 +1758,7 @@ The `httpd` service can be tested by entering `http://_localhost_` in a web brow
The Apache configuration can be tested for errors after making subsequent configuration changes while `httpd` is running using the following command:
-[source,bash]
+[source,shell]
....
# service apache24 configtest
....
@@ -1822,7 +1822,7 @@ LoadModule php5_module libexec/apache24/libphp5.so
Then, perform a graceful restart to load the PHP module:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -1833,7 +1833,7 @@ Alternatively, individual extensions can be installed using the appropriate port
After installing an extension, the Apache server must be reloaded to pick up the new configuration changes:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -1898,14 +1898,14 @@ ftpd_enable="YES"
To start the service now:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Test the connection to the FTP server by typing:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -1992,7 +1992,7 @@ Samba has several different backend authentication models. Clients may be authen
FreeBSD user accounts must be mapped to the `SambaSAMAccount` database for Windows(R) clients to access the share. Map existing FreeBSD user accounts using man:pdbedit[8]:
-[source,bash]
+[source,shell]
....
# pdbedit -a username
....
@@ -2010,7 +2010,7 @@ samba_server_enable="YES"
To start Samba now:
-[source,bash]
+[source,shell]
....
# service samba_server start
Performing sanity check on Samba configuration: OK
@@ -2027,7 +2027,7 @@ winbindd_enable="YES"
Samba can be stopped at any time by typing:
-[source,bash]
+[source,shell]
....
# service samba_server stop
....
@@ -2095,7 +2095,7 @@ The `leapfile` keyword specifies the location of a file containing information a
Set `ntpd_enable=YES` to start ntpd at boot time. Once `ntpd_enable=YES` has been added to [.filename]#/etc/rc.conf#, ntpd can be started immediately without rebooting the system by typing:
-[source,bash]
+[source,shell]
....
# service ntpd start
....
@@ -2218,14 +2218,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#. If this file is edited after the daemon starts, use this command so that the changes take effect immediately:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
@@ -2291,7 +2291,7 @@ iscsid_enable="YES"
To start man:iscsid[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service iscsid start
....
@@ -2302,7 +2302,7 @@ Connecting to a target can be done with or without an [.filename]#/etc/iscsi.con
To connect an initiator to a single target, specify the IP address of the portal and the name of the target:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0
....
@@ -2317,7 +2317,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Connected: da0
In this example, the iSCSI session was successfully established, with [.filename]#/dev/da0# representing the attached LUN. If the `iqn.2012-06.com.example:target0` target exports more than one LUN, multiple device nodes will be shown in that section of the output:
-[source,bash]
+[source,shell]
....
Connected: da0 da1 da2.
....
@@ -2356,7 +2356,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Authentication f
To specify a CHAP username and secret, use this syntax:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret
....
@@ -2380,14 +2380,14 @@ The `t0` specifies a nickname for the configuration file section. It will be use
To connect to the defined target, specify the nickname:
-[source,bash]
+[source,shell]
....
# iscsictl -An t0
....
Alternately, to connect to all targets defined in the configuration file, use:
-[source,bash]
+[source,shell]
....
# iscsictl -Aa
....
diff --git a/documentation/content/pl/books/handbook/ports/_index.adoc b/documentation/content/pl/books/handbook/ports/_index.adoc
index c24bba9463..ade854717e 100644
--- a/documentation/content/pl/books/handbook/ports/_index.adoc
+++ b/documentation/content/pl/books/handbook/ports/_index.adoc
@@ -128,7 +128,7 @@ Lista dostępnych we FreeBSD programów rośnie cały czas. Na szczęście jest
* Jeśli nie znamy nazwy programu, który chcemy zainstalować, warto poszukać go na stronach pokroju FreshMeat (http://www.freshmeat.net/[http://www.freshmeat.net/]) a następnie sprawdzić na stronie FreeBSD czy został przygotowany odpowiedni port.
* Jeśli znamy dokładną nazwę portu a chcemy sprawdzić z jakiej pochodzi kategorii, można skorzystać z polecenia man:whereis[1]. Wystarczy wpisać `whereis plik`, gdzie _plik_ jest nazwą programu, którego poszukujemy. Otrzymany wynik będzie postaci:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -137,7 +137,7 @@ lsof: /usr/ports/sysutils/lsof
Przykład ten informuje nas, że program `lsof` (narzędzie systemowe) znajduje się w katalogu [.filename]#/usr/ports/sysutils/lsof#.
* Jeszcze innym sposobem na odnalezienie danego portu jest wykorzystanie mechanizmu przeszukiwania kolekcji portów. By skorzystać z tej funkcji należy przejść do katalogu [.filename]#/usr/ports#. Następnie wpisać `make search name=nazwa-programu`, gdzie _program-name_ jest nazwą poszukiwanej aplikacji. Przykładowo, szukając `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -167,7 +167,7 @@ Programu man:pkg_add[1] można użyć do instalacji programów zarówno z dysku
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -198,7 +198,7 @@ ftp> exit
Jeśli nie posiadamy lokalnego źródła programów (np na płytach CD FreeBSD), będzie Ci prawdopodobnie łatwiej użyć komendy man:pkg_add[1] z opcją `-r`. Spowoduje to, że program samodzielnie określi odpowiednią wersję oprogramowania dla naszej wersji systemu. Następnie pobierze odpowiedni plik z sieci oraz go zainstaluje.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -218,7 +218,7 @@ Struktura katalogów pakietów jest identyczna względem struktury katalogów po
Narzędziem służącym do przedstawienia informacji o zainstalowanych pakietach oraz wyświetlającym ich krótki opis jest man:pkg_info[1].
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -228,7 +228,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
Program man:pkg_version[1] jest natomiast narzędziem, które podsumowuje wersje wszystkich zainstalowanych pakietów. Porównuje je następnie z tymi które znajdują się w drzewie portów.
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -264,7 +264,7 @@ Symbol w drugiej kolumnie określa wiek zainstalowanej wersji oprogramowania wzg
Aby usunąć uprzednio zainstalowane oprogramowanie użyj man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
@@ -295,7 +295,7 @@ Bardzo ważnym jest, aby upewnić się, że katalog [.filename]#/usr/ports# jest
. Zainstaluj pakiet package:net/cvsup-without-gui[]:
+
-[source,bash]
+[source,shell]
....
# pkg_add -r cvsup-without-gui
....
@@ -303,7 +303,7 @@ Bardzo ważnym jest, aby upewnić się, że katalog [.filename]#/usr/ports# jest
Więcej informacji w podrozdziale crossref:mirrors[cvsup-install,Instalacja CVSup] (crossref:mirrors[cvsup-install,Installation]).
. Uruchom `cvsup`:
+
-[source,bash]
+[source,shell]
....
# cvsup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -320,7 +320,7 @@ Można wykorzystać własny plik [.filename]#ports-supfile#, by np. uniknąć ko
.. Zmień wpis _CHANGE_THIS.FreeBSD.org_na adres wybranego serwera lustrzanego CVSup. Kompletna lista serwerów lustrzanych dostępna jest w podrozdziale crossref:mirrors[cvsup-mirrors,Serwery lustrzane CVSup] (crossref:mirrors[cvsup-mirrors,CVSup Sites]).
.. Teraz uruchom `cvsup` używając polecenia::
+
-[source,bash]
+[source,shell]
....
# cvsup -L 2 /root/ports-supfile
....
@@ -336,7 +336,7 @@ Można wykorzystać własny plik [.filename]#ports-supfile#, by np. uniknąć ko
Portsnap jest alternatywnym systemem dystrybucji kolekcji portów. Po raz pierwszy został dołączony do FreeBSD 6.0. W starszych wersjach może zostać zainstalowany z pakietu package:sysutils/portsnap[]:
-[source,bash]
+[source,shell]
....
# pkg_add -r portsnap
....
@@ -345,28 +345,28 @@ Szczegółowe informacje o możliwościach programu dostępne są w podrozdziale
. Ten punkt możemy pominąć jeśli posiadamy FreeBSD 6.1-RELEASE bądź najnowszą wersję programu Portsnap. Przy pierwszym uruchomieniu programu man:portsnap[8] zostanie automatycznie utworzony katalog [.filename]#/usr/ports#. W starszych wersjach programu wymagane jest własnoręczne utworzenie katalogu:
+
-[source,bash]
+[source,shell]
....
# mkdir /usr/ports
....
+
. Pobierz skompresowaną migawkę kolekcji portów do katalogu [.filename]#/var/db/portsnap#. Można następnie zakończyć połączenie z Internetem, jeśli jest taka potrzeba.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Jeśli uruchamiany Portsnap po raz pierwszy należy rozpakować migawkę do katalogu [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
Jeśli posiadamy już kolekcję portów w [.filename]#/usr/ports# i jedynie ją aktualizujemy, wpisujemy polecenie:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -380,7 +380,7 @@ Metoda ta instaluje kolekcję portów z lokalnego nośnika posługując się pro
. Uruchom `sysinstall` jako użytkownik `root` (`/stand/sysinstall` w wersjach FreeBSD starszych niż 5.2):
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -428,14 +428,14 @@ Sposób funkcjonowania kolekcji portów wiąże się z założeniem, że posiada
By rozpocząć instalację należy przejść do katalogu wybranego portu:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Wewnątrz katalogu [.filename]#lsof# znajduje się szkielet portu. Następnym krokiem jest kompilacja programu, co sprowadza się do wpisania polecenia `make`. Efekt działania polecenia powinien być zbliżony do:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -460,7 +460,7 @@ Wewnątrz katalogu [.filename]#lsof# znajduje się szkielet portu. Następnym kr
Po skończeniu kompilacji powracamy do linii poleceń. Kolejnym krokiem jest instalacja portu poprzez wpisanie polecenia `make` wraz ze słowem `install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -480,7 +480,7 @@ Gdy ponownie powrócimy do linii poleceń, powinniśmy być już w stanie urucho
Dobrym pomysłem, jest również usunięcie podkatalogu zawierającego wszystkie tymczasowe pliki wykorzystywane w trakcie kompilacji. Nie tylko dlatego, że niepotrzebnie zajmuje miejsce na dysku, ale również dlatego, że może być przyczyną problemów podczas aktualizacji programu do nowszej wersji.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -515,7 +515,7 @@ Możliwe jest kompilowanie każdego portu z osobna w danej kategorii, bądź wsz
W naprawdę żadkich przypadkach, użytkownicy mogą pozyskać pliki distfile z innego źródła niż `MASTER_SITES` (miejsce skąd je pobiera system portów). Opcję `MASTER_SITES` można zastąpić za pomocą następującego polecenia:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -533,14 +533,14 @@ Niektóre porty umożliwiają (a nawet wymagają) podanie pewnych opcji kompilac
Czasami okazuje się być przydatne (a nawet wymagane) by skorzystać z innych katalogów tymczasowych i docelowych. Domyślne katalogi można zastąpić wykorzystując zmienne `WRKDIRPREFIX` i `PREFIX`. Na przykład:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
spowoduje skompilowanie portu w katalogu [.filename]#/usr/home/example/ports# i instalację w podkatalogach [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -549,7 +549,7 @@ spowoduje natomiast kompilację w katalogu [.filename]#/usr/ports# oraz instalac
I oczywiście,
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -567,7 +567,7 @@ Niektóre porty wykorzystujące `imake` (część Systemu okien X) nie współpr
Teraz, gdy wiesz już jak instalować porty, zastanawiasz się prawdopodobnie jak je usuwać, na przykład w wypadku, gdy zainstalowaliśmy port, ale okazało się jednak, że to nie był ten którego szukaliśmy. W ramach przykładu usuniemy port, który instalowaliśmy poprzednio (dla tych którzy nie uważają, był to `lsof`). Podobnie jak w przypadku pakietów (szerzej opisane w podrozdziale traktującym o <<packages-using,pakietach>>), również porty usuwane są za pomocą polecenia man:pkg_delete[1]:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -577,7 +577,7 @@ Teraz, gdy wiesz już jak instalować porty, zastanawiasz się prawdopodobnie ja
Na wstępie musimy wyświetlić zdezaktualizowane porty w kolekcji. Wykorzystamy do tego polecenie man:pkg_version[1]:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -594,7 +594,7 @@ Jeśli opis w pliku [.filename]#UPDATING# mówi coś innego niż ten tekst, nale
Program portupgrade został zaprojektowany by ułatwić aktualizację zainstalowanych w systemie portów. Dostępny jest z portu package:sysutils/portupgrade[]. Jego instalacja przebiega dokładnie tak samo, jak każdego innego portu, wykorzystując polecenie `make install clean` command:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/portupgrade
# make install clean
@@ -604,21 +604,21 @@ Przeskanujmy następnie listę zainstalowanych portów za pomocą polecenia `pkg
Wydanie polecenia `portupgrade -a` spowoduje, że program portupgrade rozpocznie aktualizację wszystkich przedawnionych portów zainstalowanych w naszym systemie. Parametr `-i` pozwoli przejść w tryb interaktywny, gdzie będziemy musieli potwierdzić aktualizację każdego portu.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
By zaktualizować jedynie wybraną aplikację zamiast wszystkich portów należy wykorzystać polecenie `portupgrade nazwa_programu`. Opcja `-R` oznacza, że portupgrade powinien najpierw zaktualizować wszystkie porty, od których zależy dany program.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
By do instalacji wykorzystać pakiety zamiast portów należy dodać parametr `-P`. Wówczas portupgrade przeszuka katalogi zawarte w zmiennej `PKG_PATH`. Jeśli pakiet nie zostanie odnaleziony lokalnie zostanie pobrany z Internetu. Jeśli nie będzie możliwe żadne z powyższych, wówczas portupgrade wykorzysta do aktualizacji porty. By temu zapobiec należy zastosować parametr `-PP`.
-[source,bash]
+[source,shell]
....
# portupgrade -PR gnome2
....
@@ -630,7 +630,7 @@ Aby pobrać jedynie pliki źródłowe distfiles (bądź pakiety, gdy wykorzystam
Kolejnym narzędziem ułatwiającym aktualizację zainstalowanych portów jest Portmanager, dostępny z portu package:sysutils/portmanager[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/portmanager
# make install clean
@@ -638,21 +638,21 @@ Kolejnym narzędziem ułatwiającym aktualizację zainstalowanych portów jest P
Wszystkie zainstalowane porty mogą zostać zaktualizowane za pomocą polecenia:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
Wykorzystując parametr `-ui` przechodzimy w tryb interaktywny, gdzie będziemy pytani o potwierdzenie każdej operacji wykonywanej przez Portmanager. Program ten może być z równym powodzeniem wykorzystywany do instalacji nowych portów w systemie. W przeciwieństwie do polecenia `make install clean` program Portmanager zaktualizuje wszystkie zależności nim skompiluje i zainstaluje wybrany port.
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
Gdy wystąpią problemy z zależnościami wybranego portu można wykorzystać Portmanagera, by ponownie skompilował je we właściwej kolejności. Na koniec zostanie również ponownie skompilowany port stwarzający problemy.
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -664,21 +664,21 @@ Więcej informacji dostępnych jest na stronach podręcznika systemowego Portman
Korzystanie z kolekcji portów z czasem odbije się na wolnym miejscu na dysku. Dlatego też zawsze po skompilowaniu i zainstalowaniu programu z portu powinniśmy pamiętać o usunięciu tymczasowych katalogów roboczych (ang. [.filename]#work# directories) wykorzystując do tego polecenie `make clean`. Całą kolekcję natomiast można oczyścić wpisujące polecenie:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Z czasem uzbiera nam się wiele katalogów [.filename]#distfiles#, które będą jedynie zajmować przestrzeń na dysku. Możemy je ręcznie usuwać bądź posłużyć się następującym poleceniem, by usunąć wszystkie katalogi distfiles nie powiązane aktualnie z żadnym portem:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Badź, by usunąć wszystkie katalogi disftiles, do których nie odnosi się żaden z aktualnie zainstalowanych portów w naszym systemie:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -699,7 +699,7 @@ Oczywiście, szczegółowe kroki jakie należy podjąć konfigurując każdą ap
* Za pomocą man:pkg_info[1] możemy sprawdzić gdzie i jakie pliki zostały zainstalowane. Na przykład, jeśli zainstalowaliśmy wersję 1.0.0 pakietu FooPackage, polecenie
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -708,7 +708,7 @@ wyświetli nam wszystkie pliki zainstalowane z pakietu. Szczególną uwagę wart
+
Jeśli nie jesteśmy pewni, którą wersją programu zainstalowaliśmy, polecenie
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -717,7 +717,7 @@ wyświetli wszystkie zainstalowane pakiety zawierające _foopackage_ w nazwie. O
* Gdy już udało się ustalić jakie strony podręcznika systemowego zostały zainstalowane przez dany pakiet, można je przeczytać za pomocą polecenia man:man[1]. Warto również obejrzeć przykładowe pliki konfiguracyjne i wszelką dodatkową dokumentację.
* Jeśli dana aplikacja posiada własną witrynę internetową warto jest również tam poszukać dodatkowej dokumentacji czy odpowiedzi na często zadawane pytania (FAQ). Jeśli nie znamy właściwego adresu internetowego może być on podany w wyniku polecenia
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/pl/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/pl/books/handbook/ppp-and-slip/_index.adoc
index 6bc0bd54d6..2fa0dd563e 100644
--- a/documentation/content/pl/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/pl/books/handbook/ppp-and-slip/_index.adoc
@@ -359,14 +359,14 @@ An alternative is to set up a "dfilter" to block SMTP traffic. Refer to the samp
All that is left is to reboot the machine. After rebooting, either type:
-[source,bash]
+[source,shell]
....
# ppp
....
and then `dial provider` to start the PPP session, or, to configure `ppp` to establish sessions automatically when there is outbound traffic and [.filename]#start_if.tun0# does not exist, type:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -451,7 +451,7 @@ device uart
The [.filename]#uart# device is already included in the `GENERIC` kernel, so no additional steps are necessary in this case. Just check the `dmesg` output for the modem device with:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -462,33 +462,33 @@ This should display some pertinent output about the [.filename]#uart# devices. T
Connecting to the Internet by manually controlling `ppp` is quick, easy, and a great way to debug a connection or just get information on how the ISP treats `ppp` client connections. Lets start PPP from the command line. Note that in all of our examples we will use _example_ as the hostname of the machine running PPP. To start `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
This second command sets the modem device to [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
This sets the connection speed to 115,200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
This tells `ppp` to configure the resolver and add the nameserver lines to [.filename]#/etc/resolv.conf#. If `ppp` cannot determine the hostname, it can manually be set later.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -501,7 +501,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -510,56 +510,56 @@ atdt123456789
Use `at` to initialize the modem, then use `atdt` and the number for the ISP to begin the dial in process.
-[source,bash]
+[source,shell]
....
CONNECT
....
Confirmation of the connection, if we are going to have any connection problems, unrelated to hardware, here is where we will attempt to resolve them.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
At this prompt, return the prompt with the username that was provided by the ISP.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
At this prompt, reply with the password that was provided by the ISP. Just like logging into FreeBSD, the password will not echo.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Depending on the ISP, this prompt might not appear. If it does, it is asking whether to use a shell on the provider or to start `ppp`. In this example, `ppp` was selected in order to establish an Internet connection.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Notice that in this example the first `p` has been capitalized. This shows that we have successfully connected to the ISP.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
We have successfully authenticated with our ISP and are waiting for the assigned IP address.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
We have made an agreement on an IP address and successfully completed our connection.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -578,14 +578,14 @@ PPP may not return to the command mode, which is usually a negotiation error whe
If a login prompt never appears, PAP or CHAP authentication is most likely required. To use PAP or CHAP, add the following options to PPP before going into terminal mode:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Where _myusername_ should be replaced with the username that was assigned by the ISP.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -635,7 +635,7 @@ name_of_service_provider:
As `root`, run:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -685,7 +685,7 @@ net.graph.nonstandard_pppoe=1
or can be done immediately with the command:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -755,14 +755,14 @@ adsl:
It is possible to initialize the connection easily by issuing the following command as `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
To view the status of the connection:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -797,7 +797,7 @@ adsl:
Since the account's password is added to [.filename]#ppp.conf# in plain text form, make sure nobody can read the contents of this file:
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -807,7 +807,7 @@ Since the account's password is added to [.filename]#ppp.conf# in plain text for
This will open a tunnel for a PPP session to the DSL router. Ethernet DSL modems have a preconfigured LAN IP address to connect to. In the case of the Alcatel SpeedTouch(TM) Home, this address is `10.0.0.138`. The router's documentation should list the address the device uses. To open the tunnel and start a PPP session:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -820,7 +820,7 @@ If an ampersand ("&") is added to the end of this command, pptp will return the
A [.filename]#tun# virtual tunnel device will be created for interaction between the pptp and ppp processes. Once the prompt is returned, or the pptp process has confirmed a connection, examine the tunnel:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
diff --git a/documentation/content/pl/books/handbook/preface/_index.adoc b/documentation/content/pl/books/handbook/preface/_index.adoc
index 2df838b795..c231c7021f 100644
--- a/documentation/content/pl/books/handbook/preface/_index.adoc
+++ b/documentation/content/pl/books/handbook/preface/_index.adoc
@@ -218,21 +218,21 @@ Co oznacza, że użytkownik powinien nacisnąć klawisze kbd:[Ctrl] i kbd:[X] je
Przykłady zaczynające się od [.filename]#E:\># wskazują polecenie systemu MS-DOS(R). Jeśli nie jest wyraźnie zaznaczone, że jest inaczej, polecenia te mogą być wprowadzane bezpośrednio w oknie "Linii poleceń" w środowisku Microsoft(R) Windows(R).
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
Przykłady zaczynające się od `#` wskazują polecenie, które musi być wprowadzone przez użytkownika z uprawnieniami administratora systemu FreeBSD. Możesz zalogować się jako `root` i wprowadzić polecenie, bądź zalogować jako zwykły użytkownik i wykorzystać man:su[1] by uzyskać prawa administratora.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Przykłady zaczynające się od % wskazują, iż polecenie powinno być wprowadzone przez zwykłego użytkownika. Jeśli nie jest inaczej zaznaczone, stosowana jest składnia powłoki C (csh) do ustawiania zmiennych środowiskowych i uruchamiania innych poleceń powłoki.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/pl/books/handbook/printing/_index.adoc b/documentation/content/pl/books/handbook/printing/_index.adoc
index fe61205e9c..fb6216a61a 100644
--- a/documentation/content/pl/books/handbook/printing/_index.adoc
+++ b/documentation/content/pl/books/handbook/printing/_index.adoc
@@ -56,7 +56,7 @@ Basic printing can be set up quickly. The printer must be capable of printing pl
****
. Create a directory to store files while they are being printed:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -102,7 +102,7 @@ lpd_enable="YES"
+
Start the service:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -110,7 +110,7 @@ Starting lpd.
+
. Print a test:
+
-[source,bash]
+[source,shell]
....
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
....
@@ -123,7 +123,7 @@ If both lines do not start at the left border, but "stairstep" instead, see <<pr
+
Text files can now be printed with `lpr`. Give the filename on the command line, or pipe output directly into `lpr`.
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -239,14 +239,14 @@ Descriptions of many PDLs can be found at http://www.undocprint.org/formats/page
For occasional printing, files can be sent directly to a printer device without any setup. For example, a file called [.filename]#sample.txt# can be sent to a `USB` printer:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
Direct printing to network printers depends on the abilities of the printer, but most accept print jobs on port 9100, and man:nc[1] can be used with them. To print the same file to a printer with the `DNS` hostname of _netlaser_:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -263,7 +263,7 @@ FreeBSD includes a spooler called man:lpd[8]. Print jobs are submitted with man:
A directory for storing print jobs is created, ownership is set, and the permissions are set to prevent other users from viewing the contents of those files:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -296,7 +296,7 @@ lp:\ <.>
After creating [.filename]#/etc/printcap#, use man:chkprintcap[8] to test it for errors:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -312,7 +312,7 @@ lpd_enable="YES"
Start the service:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -322,7 +322,7 @@ Start the service:
Documents are sent to the printer with `lpr`. A file to be printed can be named on the command line or piped into `lpr`. These two commands are equivalent, sending the contents of [.filename]#doc.txt# to the default printer:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -330,7 +330,7 @@ Documents are sent to the printer with `lpr`. A file to be printed can be named
Printers can be selected with `-P`. To print to a printer called _laser_:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -396,7 +396,7 @@ CR=$'\r'
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -425,7 +425,7 @@ Create [.filename]#/usr/local/libexec/enscript# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -456,7 +456,7 @@ Create [.filename]#/usr/local/libexec/ps2pcl# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -472,7 +472,7 @@ Modify [.filename]#/etc/printcap# to use this new input filter:
Test the filter by sending a small PostScript(R) program to it:
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -508,7 +508,7 @@ esac
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -568,7 +568,7 @@ man:lpq[1] shows the status of a user's print jobs. Print jobs from other users
Show the current user's pending jobs on a single printer:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -577,7 +577,7 @@ Rank Owner Job Files Total Size
Show the current user's pending jobs on all printers:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -596,7 +596,7 @@ man:lprm[1] is used to remove print jobs. Normal users are only allowed to remov
Remove all pending jobs from a printer:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -609,7 +609,7 @@ cfA004smithy dequeued
Remove a single job from a printer. man:lpq[1] is used to find the job number.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -627,7 +627,7 @@ man:lpc[8] is used to check and modify printer status. `lpc` is followed by a co
Show the status of all printers:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -644,7 +644,7 @@ laser:
Prevent a printer from accepting new jobs, then begin accepting new jobs again:
-[source,bash]
+[source,shell]
....
# lpc disable lp
lp:
@@ -656,7 +656,7 @@ lp:
Stop printing, but continue to accept new jobs. Then begin printing again:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -669,7 +669,7 @@ lp:
Restart a printer after some error condition:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -680,7 +680,7 @@ lp:
Turn the print queue off and disable printing, with a message to explain the problem to users:
-[source,bash]
+[source,shell]
....
# lpc down lp Repair parts will arrive on Monday
lp:
@@ -690,7 +690,7 @@ lp:
Re-enable a printer that is down:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -717,14 +717,14 @@ lp|repairsprinter|salesprinter:\
Aliases can be used in place of the printer name. For example, users in the Sales department print to their printer with
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Users in the Repairs department print to _their_ printer with
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....
diff --git a/documentation/content/pl/books/handbook/security/_index.adoc b/documentation/content/pl/books/handbook/security/_index.adoc
index cfc539c6ec..94ad359e4a 100644
--- a/documentation/content/pl/books/handbook/security/_index.adoc
+++ b/documentation/content/pl/books/handbook/security/_index.adoc
@@ -97,14 +97,14 @@ In securing a system, a good starting point is an audit of accounts. Ensure that
To deny login access to accounts, two methods exist. The first is to lock the account. This example locks the `toor` account:
-[source,bash]
+[source,shell]
....
# pw lock toor
....
The second method is to prevent login access by changing the shell to [.filename]#/usr/sbin/nologin#. Only the superuser can change the shell for other users:
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -120,7 +120,7 @@ The second, and recommended, method to permit privilege escalation is to install
After installation, use `visudo` to edit [.filename]#/usr/local/etc/sudoers#. This example creates a new `webadmin` group, adds the `trhodes` account to that group, and configures that group access to restart package:apache24[]:
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
# visudo
@@ -139,7 +139,7 @@ Blowfish is not part of AES and is not considered compliant with any Federal Inf
To determine which hash algorithm is used to encrypt a user's password, the superuser can view the hash for the user in the FreeBSD password database. Each hash starts with a symbol which indicates the type of hash mechanism used to encrypt the password. If DES is used, there is no beginning symbol. For MD5, the symbol is `$`. For SHA256 and SHA512, the symbol is `$6$`. For Blowfish, the symbol is `$2a$`. In this example, the password for `dru` is hashed using the default SHA512 algorithm as the hash starts with `$6$`. Note that the encrypted hash, not the password itself, is stored in the password database:
-[source,bash]
+[source,shell]
....
# grep dru /etc/master.passwd
dru:$6$pzIjSvCAn.PBYQBA$PXpSeWPx3g5kscj3IMiM7tUEUSPmGexxta.8Lt9TGSi2lNQqYGKszsBPuGME0:1001:1001::0:0:dru:/usr/home/dru:/bin/csh
@@ -183,7 +183,7 @@ The `similar` setting denies passwords that are similar to the user's previous p
Once this file is saved, a user changing their password will see a message similar to the following:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -214,7 +214,7 @@ So, to set an expiry of 90 days for this login class, remove the comment symbol
To set the expiration on individual users, pass an expiration date or the number of days to expiry and a username to `pw`:
-[source,bash]
+[source,shell]
....
# pw usermod -p 30-apr-2015 -n trhodes
....
@@ -230,7 +230,7 @@ A rootkit does do one thing useful for administrators: once detected, it is a si
After installation of this package or port, the system may be checked using the following command. It will produce a lot of information and will require some manual pressing of kbd:[ENTER]:
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -248,7 +248,7 @@ FreeBSD provides native support for a basic IDS system. While the nightly securi
The built-in `mtree` utility can be used to generate a specification of the contents of a directory. A seed, or a numeric constant, is used to generate the specification and is required to check that the specification has not changed. This makes it possible to determine if a file or binary has been modified. Since the seed value is unknown by an attacker, faking or checking the checksum values of files will be difficult to impossible. The following example generates a set of SHA256 hashes, one for each system binary in [.filename]#/bin#, and saves those values to a hidden file in ``root``'s home directory, [.filename]#/root/.bin_chksum_mtree#:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
# mtree: /bin checksum: 3427012225
@@ -286,7 +286,7 @@ The machine's hostname, the date and time the specification was created, and the
To verify that the binary signatures have not changed, compare the current contents of the directory to the previously generated specification, and save the results to a file. This command requires the seed that was used to generate the original specification:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
# mtree: /bin checksum: 3427012225
@@ -294,7 +294,7 @@ To verify that the binary signatures have not changed, compare the current conte
This should produce the same checksum for [.filename]#/bin# that was produced when the specification was created. If no changes have occurred to the binaries in this directory, the [.filename]#/root/.bin_chksum_output# output file will be empty. To simulate a change, change the date on [.filename]#/bin/cat# using `touch` and run the verification command again:
-[source,bash]
+[source,shell]
....
# touch /bin/cat
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
@@ -352,7 +352,7 @@ This section describes four different sorts of operations. The first is how to s
To initialize OPIE for the first time, run this command from a secure location:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
Adding unfurl:
@@ -377,7 +377,7 @@ The `ID` line lists the login name (`unfurl`), default iteration count (`499`),
To initialize or change the secret password on an insecure system, a secure connection is needed to some place where `opiekey` can be run. This might be a shell prompt on a trusted machine. An iteration count is needed, where 100 is probably a good value, and the seed can either be specified or the randomly-generated one used. On the insecure connection, the machine being initialized, use man:opiepasswd[1]:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -396,7 +396,7 @@ LINE PAP MILK NELL BUOY TROY
To accept the default seed, press kbd:[Return]. Before entering an access password, move over to the secure connection and give it the same parameters:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -411,7 +411,7 @@ Switch back over to the insecure connection, and copy the generated one-time pas
After initializing OPIE and logging in, a prompt like this will be displayed:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -431,7 +431,7 @@ At this point, generate the one-time password to answer this login prompt. This
On the trusted system:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -446,7 +446,7 @@ Once the one-time password is generated, continue to log in.
Sometimes there is no access to a trusted machine or secure connection. In this case, it is possible to use man:opiekey[1] to generate a number of one-time passwords beforehand. For example:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -514,7 +514,7 @@ qpopper : ALL : allow
Whenever this file is edited, restart inetd:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -606,14 +606,14 @@ While running a KDC requires few computing resources, a dedicated machine acting
To begin, install the package:security/heimdal[] package as follows:
-[source,bash]
+[source,shell]
....
# pkg install heimdal
....
Next, update [.filename]#/etc/rc.conf# using `sysrc` as follows:
-[source,bash]
+[source,shell]
....
# sysrc kdc_enable=yes
# sysrc kadmind_enable=yes
@@ -664,7 +664,7 @@ In order for clients to be able to find the Kerberos services, they _must_ have
Next, create the Kerberos database which contains the keys of all principals (users and hosts) encrypted with a master password. It is not required to remember this password as it will be stored in [.filename]#/var/heimdal/m-key#; it would be reasonable to use a 45-character random password for this purpose. To create the master key, run `kstash` and enter a password:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxxxxxxxxxxxxxxxxx
@@ -673,7 +673,7 @@ Verifying password - Master key: xxxxxxxxxxxxxxxxxxxxxxx
Once the master key has been created, the database should be initialized. The Kerberos administrative tool man:kadmin[8] can be used on the KDC in a mode that operates directly on the database, without using the man:kadmind[8] network service, as `kadmin -l`. This resolves the chicken-and-egg problem of trying to connect to the database before it is created. At the `kadmin` prompt, use `init` to create the realm's initial database:
-[source,bash]
+[source,shell]
....
# kadmin -l
kadmin> init EXAMPLE.ORG
@@ -682,7 +682,7 @@ Realm max ticket life [unlimited]:
Lastly, while still in `kadmin`, create the first principal using `add`. Stick to the default options for the principal for now, as these can be changed later with `modify`. Type `?` at the prompt to see the available options.
-[source,bash]
+[source,shell]
....
kadmin> add tillman
Max ticket life [unlimited]:
@@ -696,7 +696,7 @@ Verifying password - Password: xxxxxxxx
Next, start the KDC services by running:
-[source,bash]
+[source,shell]
....
# service kdc start
# service kadmind start
@@ -704,7 +704,7 @@ Next, start the KDC services by running:
While there will not be any kerberized daemons running at this point, it is possible to confirm that the KDC is functioning by obtaining a ticket for the principal that was just created:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -712,7 +712,7 @@ tillman@EXAMPLE.ORG's Password:
Confirm that a ticket was successfully obtained using `klist`:
-[source,bash]
+[source,shell]
....
% klist
Credentials cache: FILE:/tmp/krb5cc_1001
@@ -724,7 +724,7 @@ Aug 27 15:37:58 2013 Aug 28 01:37:58 2013 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
The temporary ticket can be destroyed when the test is finished:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -739,7 +739,7 @@ Of course, `kadmin` is a kerberized service; a Kerberos ticket is needed to auth
After installing [.filename]#/etc/krb5.conf#, use `add --random-key` in `kadmin`. This adds the server's host principal to the database, but does not extract a copy of the host principal key to a keytab. To generate the keytab, use `ext` to extract the server's host principal key to its own keytab:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -754,7 +754,7 @@ kadmin> exit
Note that `ext_keytab` stores the extracted key in [.filename]#/etc/krb5.keytab# by default. This is good when being run on the server being kerberized, but the `--keytab _path/to/file_` argument should be used when the keytab is being extracted elsewhere:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext_keytab --keytab=/tmp/example.keytab host/myserver.example.org
@@ -869,7 +869,7 @@ For more information about SSL, read the free https://www.feistyduck.com/books/o
To generate a certificate that will be signed by an external CA, issue the following command and input the information requested at the prompts. This input information will be written to the certificate. At the `Common Name` prompt, input the fully qualified name for the system that will use the certificate. If this name does not match the server, the application verifying the certificate will issue a warning to the user, rendering the verification provided by the certificate as useless.
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.key -sha256 -newkey rsa:2048
Generating a 2048 bit RSA private key
@@ -904,7 +904,7 @@ This command will create two files in the current directory. The certificate req
Alternately, if a signature from a CA is not required, a self-signed certificate can be created. First, generate the RSA key:
-[source,bash]
+[source,shell]
....
# openssl genrsa -rand -genkey -out cert.key 2048
0 semi-random bytes loaded
@@ -916,7 +916,7 @@ e is 65537 (0x10001)
Use this key to create a self-signed certificate. Follow the usual prompts for creating a certificate:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key cert.key -out cert.crt -sha256
You are about to be asked to enter information that will be incorporated
@@ -957,14 +957,14 @@ sendmail_cert_cn="localhost.example.org"
This will automatically create a self-signed certificate, [.filename]#/etc/mail/certs/host.cert#, a signing key, [.filename]#/etc/mail/certs/host.key#, and a CA certificate, [.filename]#/etc/mail/certs/cacert.pem#. The certificate will use the `Common Name` specified in `sendmail_cert_cn`. After saving the edits, restart Sendmail:
-[source,bash]
+[source,shell]
....
# service sendmail restart
....
If all went well, there will be no error messages in [.filename]#/var/log/maillog#. For a simple test, connect to the mail server's listening port using `telnet`:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1007,7 +1007,7 @@ IPsec supports two modes of operation. The first mode, _Transport Mode_, protect
IPsec support is enabled by default on FreeBSD 11 and later. For previous versions of FreeBSD, add these options to a custom kernel configuration file and rebuild the kernel using the instructions in crossref:kernelconfig[kernelconfig,Configuring the FreeBSD Kernel]:
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -1015,7 +1015,7 @@ device crypto
If IPsec debugging support is desired, the following kernel option should also be added:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1032,7 +1032,7 @@ To begin, package:security/ipsec-tools[] must be installed from the Ports Collec
The next requirement is to create two man:gif[4] pseudo-devices which will be used to tunnel packets and allow both networks to communicate properly. As `root`, run the following commands, replacing _internal_ and _external_ with the real IP addresses of the internal and external interfaces of the two gateways:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 internal1 internal2
@@ -1087,7 +1087,7 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
As expected, both sides have the ability to send and receive ICMP packets from the privately configured addresses. Next, both gateways must be told how to route packets in order to correctly send traffic from either network. The following commands will achieve this goal:
-[source,bash]
+[source,shell]
....
corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
corp-net# route add net 10.0.0.0: gateway 10.0.0.5
@@ -1202,7 +1202,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Once in place, racoon may be started on both gateways using the following command:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1227,7 +1227,7 @@ Foreground mode.
To ensure the tunnel is working properly, switch to another console and use man:tcpdump[1] to view network traffic using the following command. Replace `em0` with the network interface card as required:
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1297,7 +1297,7 @@ This section provides an overview of the built-in client utilities to securely a
To log into a SSH server, use `ssh` and specify a username that exists on that server and the IP address or hostname of the server. If this is the first time a connection has been made to the specified server, the user will be prompted to first verify the server's fingerprint:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
The authenticity of host 'example.com (10.0.0.1)' can't be established.
@@ -1313,7 +1313,7 @@ By default, recent versions of OpenSSH only accept SSHv2 connections. By default
Use man:scp[1] to securely copy a file to or from a remote machine. This example copies [.filename]#COPYRIGHT# on the remote system to a file of the same name in the current directory of the local system:
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
Password for user@example.com: *******
@@ -1333,7 +1333,7 @@ To open an interactive session for copying files, use `sftp`. Refer to man:sftp[
Instead of using passwords, a client can be configured to connect to the remote machine using keys. To generate RSA authentication keys, use `ssh-keygen`. To generate a public and private key pair, specify the type of key and follow the prompts. It is recommended to protect the keys with a memorable, but hard to guess passphrase.
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa
Generating public/private rsa key pair.
@@ -1377,7 +1377,7 @@ Authentication is handled by `ssh-agent`, using the private keys that are loaded
To use `ssh-agent` in a shell, start it with a shell as an argument. Add the identity by running `ssh-add` and entering the passphrase for the private key. The user will then be able to `ssh` to any host that has the corresponding public key installed. For example:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1404,7 +1404,7 @@ OpenSSH has the ability to create a tunnel to encapsulate another protocol in an
The following command tells `ssh` to create a tunnel for telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1435,7 +1435,7 @@ This method can be used to wrap any number of insecure TCP protocols such as SMT
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1454,7 +1454,7 @@ This can be used in conjunction with `ssh-keygen` and additional user accounts t
In this example, there is an SSH server that accepts connections from the outside. On the same network resides a mail server running a POP3 server. To check email in a secure manner, create an SSH connection to the SSH server and tunnel through to the mail server:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1471,7 +1471,7 @@ Some firewalls filter both incoming and outgoing connections. For example, a fir
The solution is to create an SSH connection to a machine outside of the network's firewall and use it to tunnel to the desired service:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1486,7 +1486,7 @@ In addition to providing built-in SSH client utilities, a FreeBSD system can be
To see if sshd is operating, use the man:service[8] command:
-[source,bash]
+[source,shell]
....
# service sshd status
....
@@ -1500,7 +1500,7 @@ sshd_enable="YES"
This will start sshd, the daemon program for OpenSSH, the next time the system boots. To start it now:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1538,7 +1538,7 @@ AllowUsers root@192.168.1.32 admin
After making changes to [.filename]#/etc/ssh/sshd_config#, tell sshd to reload its configuration file by running:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1606,7 +1606,7 @@ In this example, [.filename]#directory1#, [.filename]#directory2#, and [.filenam
File system ACLs can be viewed using `getfacl`. For instance, to view the ACL settings on [.filename]#test#:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1619,14 +1619,14 @@ File system ACLs can be viewed using `getfacl`. For instance, to view the ACL se
To change the ACL settings on this file, use `setfacl`. To remove all of the currently defined ACLs from a file or file system, include `-k`. However, the preferred method is to use `-b` as it leaves the basic fields required for ACLs to work.
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
To modify the default ACL entries, use `-m`:
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1650,7 +1650,7 @@ Installation provides man:periodic[8] configuration files for maintaining the pk
After installation, and to audit third party utilities as part of the Ports Collection at any time, an administrator may choose to update the database and view known vulnerabilities of installed packages by invoking:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -1866,7 +1866,7 @@ If more fine-grained accounting is needed, refer to crossref:audit[audit,Securit
Before using process accounting, it must be enabled using the following commands:
-[source,bash]
+[source,shell]
....
# sysrc accounting_enable=yes
# service accounting start
@@ -1878,7 +1878,7 @@ Once enabled, accounting will begin to track information such as CPU statistics
To display the commands issued by users, use `lastcomm`. For example, this command prints out all usage of `ls` by `trhodes` on the `ttyp1` terminal:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1905,7 +1905,7 @@ In the traditional method, login classes and the resource limits to apply to a l
====
Whenever [.filename]#/etc/login.conf# is edited, the [.filename]#/etc/login.conf.db# must be updated by executing the following command:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1982,7 +1982,7 @@ In this rule, the subject is `user`, the subject-id is `trhodes`, the resource,
Some care must be taken when adding rules. Since this user is constrained to `10` processes, this example will prevent the user from performing other tasks after logging in and executing a `screen` session. Once a resource limit has been hit, an error will be printed, as in this example:
-[source,bash]
+[source,shell]
....
% man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1991,7 +1991,7 @@ eval: Cannot fork: Resource temporarily unavailable
As another example, a jail can be prevented from exceeding a memory limit. This rule could be written as:
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -2006,14 +2006,14 @@ jail:httpd:memoryuse:deny=2G/jail
To remove a rule, use `rctl` to remove it from the list:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
A method for removing all rules is documented in man:rctl[8]. However, if removing all rules for a single user is required, this command may be issued:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
@@ -2029,7 +2029,7 @@ Up to this point, the security chapter has covered permitting access to authoriz
Sudo allows administrators to configure more rigid access to system commands and provide for some advanced logging features. As a tool, it is available from the Ports Collection as package:security/sudo[] or by use of the man:pkg[8] utility. To use the man:pkg[8] tool:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -2045,21 +2045,21 @@ user1 ALL=(ALL) /usr/sbin/service webservice *
The user may now start _webservice_ using this command:
-[source,bash]
+[source,shell]
....
% sudo /usr/sbin/service webservice start
....
While this configuration allows a single user access to the webservice service; however, in most organizations, there is an entire web team in charge of managing the service. A single line can also give access to an entire group. These steps will create a web group, add a user to this group, and allow all members of the group to manage the service:
-[source,bash]
+[source,shell]
....
# pw groupadd -g 6001 -n webteam
....
Using the same man:pw[8] command, the user is added to the webteam group:
-[source,bash]
+[source,shell]
....
# pw groupmod -m user1 -n webteam
....
@@ -2112,14 +2112,14 @@ Once this directive has been added to the [.filename]#sudoers# file, any user co
From this point on, all _webteam_ members altering the status of the _webservice_ application will be logged. The list of previous and current sessions can be displayed with:
-[source,bash]
+[source,shell]
....
# sudoreplay -l
....
In the output, to replay a specific session, search for the `TSID=` entry, and pass that to sudoreplay with no other options to replay the session at normal speed. For example:
-[source,bash]
+[source,shell]
....
# sudoreplay user1/00/00/02
....
diff --git a/documentation/content/pl/books/handbook/serialcomms/_index.adoc b/documentation/content/pl/books/handbook/serialcomms/_index.adoc
index 9fd803f954..fbfcc3e10b 100644
--- a/documentation/content/pl/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/pl/books/handbook/serialcomms/_index.adoc
@@ -345,7 +345,7 @@ By default, FreeBSD supports four serial ports which are commonly known as [.fil
To see if the system recognizes the serial ports, look for system boot messages that start with `uart`:
-[source,bash]
+[source,shell]
....
# grep uart /var/run/dmesg.boot
....
@@ -354,21 +354,21 @@ If the system does not recognize all of the needed serial ports, additional entr
To determine the default set of terminal I/O settings used by the port, specify its device name. This example determines the settings for the call-in port on [.filename]#COM2#:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
System-wide initialization of serial devices is controlled by [.filename]#/etc/rc.d/serial#. This file affects the default settings of serial devices. To change the settings for a device, use `stty`. By default, the changed settings are in effect until the device is closed and when the device is reopened, it goes back to the default set. To permanently change the default set, open and adjust the settings of the initialization device. For example, to turn on `CLOCAL` mode, 8 bit communication, and `XON/XOFF` flow control for [.filename]#ttyu5#, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
To prevent certain settings from being changed by an application, make adjustments to the locking device. For example, to lock the speed of [.filename]#ttyu5# to 57600 bps, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -404,7 +404,7 @@ There are at least two utilities in the base-system of FreeBSD that can be used
+
For example, to connect from a client system that runs FreeBSD to the serial connection of another system:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuauN
....
@@ -463,7 +463,7 @@ The final field is used to specify whether the port is secure. Marking a port as
After making any changes to [.filename]#/etc/ttys#, send a SIGHUP (hangup) signal to the `init` process to force it to re-read its configuration file:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -485,7 +485,7 @@ Make sure the terminal and FreeBSD agree on the bps rate and parity settings. Fo
Use `ps` to make sure that a `getty` process is running and serving the terminal. For example, the following listing shows that a `getty` is running on the second serial port, [.filename]#ttyu1#, and is using the `std.38400` entry in [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
# ps -axww|grep ttyu
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
@@ -593,14 +593,14 @@ ttyu0 "/usr/libexec/getty V19200" dialup on
After editing [.filename]#/etc/ttys#, wait until the modem is properly configured and connected before signaling `init`:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
High-speed modems, like V.32, V.32bis, and V.34 modems, use hardware (`RTS/CTS`) flow control. Use `stty` to set the hardware flow control flag for the modem port. This example sets the `crtscts` flag on [.filename]#COM2#'s dial-in and dial-out initialization devices:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu1.init crtscts
# stty -f /dev/cuau1.init crtscts
@@ -614,7 +614,7 @@ Hook up the modem to the FreeBSD system and boot the system. If the modem has st
If the DTR indicator does not light, login to the FreeBSD system through the console and type `ps ax` to see if FreeBSD is running a `getty` process on the correct port:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -665,7 +665,7 @@ Use the highest bps rate the modem supports in the `br` capability. Then, type `
Or, use `cu` as `root` with the following command:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -697,7 +697,7 @@ tip57600|Dial any phone number at 57600 bps:\
This should now work:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -712,7 +712,7 @@ cu115200|Use cu to dial any number at 115200bps:\
and type:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -828,7 +828,7 @@ This section provides a fast overview of setting up the serial console. This pro
. Connect the serial cable to [.filename]#COM1# and the controlling terminal.
. To configure boot messages to display on the serial console, issue the following command as the superuser:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -896,7 +896,7 @@ The options, except for `-P`, are passed to the boot loader. The boot loader wil
+
When FreeBSD starts, the boot blocks echo the contents of [.filename]#/boot.config# to the console. For example:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -933,7 +933,7 @@ After the message, there will be a small pause before the boot blocks continue l
+
Press any key, other than kbd:[Enter], at the console to interrupt the boot process. The boot blocks will then prompt for further action:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -974,7 +974,7 @@ By default, the serial port settings are 9600 baud, 8 bits, no parity, and 1 sto
* Edit [.filename]#/etc/make.conf# and set `BOOT_COMCONSOLE_SPEED` to the new console speed. Then, recompile and install the boot blocks and the boot loader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/pl/books/handbook/usb-device-mode/_index.adoc b/documentation/content/pl/books/handbook/usb-device-mode/_index.adoc
index c839d3c6fe..664247dc68 100644
--- a/documentation/content/pl/books/handbook/usb-device-mode/_index.adoc
+++ b/documentation/content/pl/books/handbook/usb-device-mode/_index.adoc
@@ -75,7 +75,7 @@ Virtual serial port support is provided by templates number 3, 8, and 10. Note t
To enable USB device mode serial ports, add those lines to [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
@@ -83,7 +83,7 @@ ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
Then add these lines to [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "DEVFS";
@@ -96,14 +96,14 @@ notify 100 {
Reload the configuration if man:devd[8] is already running:
-[source,bash]
+[source,shell]
....
# service devd restart
....
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
-[source,bash]
+[source,shell]
....
umodem_load="YES"
hw.usb.template=3
@@ -111,7 +111,7 @@ hw.usb.template=3
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload umodem
# sysctl hw.usb.template=3
@@ -121,7 +121,7 @@ To load the module and set the template without rebooting use:
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. Use `pstat -t` on the host to list the terminal lines. Near the end of the list you should see a USB serial port, eg "ttyU0". To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/ttyU0
....
@@ -132,7 +132,7 @@ After pressing the Enter key a few times you will see a login prompt.
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/cu.usbmodemFreeBSD1
....
@@ -141,7 +141,7 @@ To connect to a board configured to provide USB device mode serial ports, connec
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# minicom -D /dev/ttyACM0
....
@@ -157,7 +157,7 @@ Virtual network interfaces support is provided by templates number 1, 8, and 10.
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
-[source,bash]
+[source,shell]
....
if_cdce_load="YES"
hw.usb.template=1
@@ -165,7 +165,7 @@ hw.usb.template=1
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload if_cdce
# sysctl hw.usb.template=1
@@ -192,7 +192,7 @@ cfumass_enable="YES"
To configure the target without restarting, run this command:
-[source,bash]
+[source,shell]
....
# service cfumass start
....
@@ -205,7 +205,7 @@ The rest of this chapter provides detailed description of setting the target wit
USB Mass Storage does not require the man:ctld[8] daemon to be running, although it can be used if desired. This is different from iSCSI. Thus, there are two ways to configure the target: man:ctladm[8], or man:ctld[8]. Both require the [.filename]#cfumass.ko# kernel module to be loaded. The module can be loaded manually:
-[source,bash]
+[source,shell]
....
# kldload cfumass
....
@@ -219,7 +219,7 @@ cfumass_load="YES"
A LUN can be created without the man:ctld[8] daemon:
-[source,bash]
+[source,shell]
....
# ctladm create -b block -o file=/data/target0
....
@@ -251,14 +251,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#. If this file is edited after the daemon starts, reload the changes so they take effect immediately:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
diff --git a/documentation/content/pl/books/handbook/users/_index.adoc b/documentation/content/pl/books/handbook/users/_index.adoc
index dc39a10164..d0fb53fc88 100644
--- a/documentation/content/pl/books/handbook/users/_index.adoc
+++ b/documentation/content/pl/books/handbook/users/_index.adoc
@@ -172,7 +172,7 @@ Przy wprowadzaniu hasła na ekranie nie są wyświetlane żadne znaki, nawet gwi
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -237,7 +237,7 @@ Domyślnie wykorzystywany jest tryb interaktywny, który stara upewnić się, ż
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -273,7 +273,7 @@ Jeśli nie jesteśmy superużytkownikiem, przed opuszczeniem edytora zostaniemy
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -300,7 +300,7 @@ Zwykli użytkownicy mogą zmienić jedynie część tych informacji i jedynie w
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -332,7 +332,7 @@ By uniknąć przypadkowych bądź nieuprawnionych zmian, nim będziemy mogli pod
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -349,7 +349,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -386,7 +386,7 @@ Klasy logowania określane są w pliku [.filename]#/etc/login.conf#. Szczegóło
====
Normalnie system nie odczytuje konfiguracji bezpośrednio z pliku [.filename]#/etc/login.conf#, lecz odczytuje plik bazy danych [.filename]#/etc/login.conf.db#, który umożliwia szybsze przeszukiwanie. By wygenerować plik [.filename]#/etc/login.conf.db# z [.filename]#/etc/login.conf# należy uruchomić następujące polecenie:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -451,7 +451,7 @@ Jeśli nie chcemy ręcznie edytować pliku [.filename]#/etc/group#, by dodawać
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -466,7 +466,7 @@ Numer `1100` powyżej jest identyfikatorem grupy `teamtwo`. W chwili obecnej gru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -481,7 +481,7 @@ Parametrem opcji `-M` jest lista użytkowników oddzielonych przecinkami, którz
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/pl/books/handbook/virtualization/_index.adoc b/documentation/content/pl/books/handbook/virtualization/_index.adoc
index 7b48777401..b2359102ca 100644
--- a/documentation/content/pl/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/pl/books/handbook/virtualization/_index.adoc
@@ -319,7 +319,7 @@ These commands are run in the FreeBSD guest.
First, install the package:emulators/virtualbox-ose-additions[] package or port in the FreeBSD guest. This will install the port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -401,14 +401,14 @@ HAL users should create the following [.filename]#/usr/local/etc/hal/fdi/policy/
Shared folders for file transfers between host and VM are accessible by mounting them using `mount_vboxvfs`. A shared folder can be created on the host using the VirtualBox GUI or via `vboxmanage`. For example, to create a shared folder called _myshare_ under [.filename]#/mnt/bsdboxshare# for the VM named _BSDBox_, run:
-[source,bash]
+[source,shell]
....
# vboxmanage sharedfolder add 'BSDBox' --name myshare --hostpath /mnt/bsdboxshare
....
Note that the shared folder name must not contain spaces. Mount the shared folder from within the guest system like this:
-[source,bash]
+[source,shell]
....
# mount_vboxvfs -w myshare /mnt
....
@@ -423,7 +423,7 @@ VirtualBox(TM) is an actively developed, complete virtualization package, that i
VirtualBox(TM) is available as a FreeBSD package or port in package:emulators/virtualbox-ose[]. The port can be installed using these commands:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -433,7 +433,7 @@ One useful option in the port's configuration menu is the `GuestAdditions` suite
A few configuration changes are needed before VirtualBox(TM) is started for the first time. The port installs a kernel module in [.filename]#/boot/modules# which must be loaded into the running kernel:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -454,14 +454,14 @@ vboxnet_enable="YES"
The `vboxusers` group is created during installation of VirtualBox(TM). All users that need access to VirtualBox(TM) will have to be added as members of this group. `pw` can be used to add new members:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
The default permissions for [.filename]#/dev/vboxnetctl# are restrictive and need to be changed for bridged networking:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -477,7 +477,7 @@ perm vboxnetctl 0660
To launch VirtualBox(TM), type from a Xorg session:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -491,7 +491,7 @@ VirtualBox(TM) can be configured to pass USB devices through to the guest operat
For VirtualBox(TM) to be aware of USB devices attached to the machine, the user needs to be a member of the `operator` group.
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m yourusername
....
@@ -513,7 +513,7 @@ devfs_system_ruleset="system"
Then, restart devfs:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -532,7 +532,7 @@ HAL needs to run for VirtualBox(TM)DVD/CD functions to work, so enable it in [.f
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -546,7 +546,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -563,14 +563,14 @@ The bhyve design requires a processor that supports Intel(R) Extended Page Table
The first step to creating a virtual machine in bhyve is configuring the host system. First, load the bhyve kernel module:
-[source,bash]
+[source,shell]
....
# kldload vmm
....
Then, create a [.filename]#tap# interface for the network device in the virtual machine to attach to. In order for the network device to participate in the network, also create a bridge interface containing the [.filename]#tap# interface and the physical interface as members. In this example, the physical interface is _igb0_:
-[source,bash]
+[source,shell]
....
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
@@ -585,14 +585,14 @@ net.link.tap.up_on_open: 0 -> 1
Create a file to use as the virtual disk for the guest machine. Specify the size and name of the virtual disk:
-[source,bash]
+[source,shell]
....
# truncate -s 16G guest.img
....
Download an installation image of FreeBSD to install:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-bootonly.iso
FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
@@ -600,7 +600,7 @@ FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
FreeBSD comes with an example script for running a virtual machine in bhyve. The script will start the virtual machine and run it in a loop, so it will automatically restart if it crashes. The script takes a number of options to control the configuration of the machine: `-c` controls the number of virtual CPUs, `-m` limits the amount of memory available to the guest, `-t` defines which [.filename]#tap# device to use, `-d` indicates which disk image to use, `-i` tells bhyve to boot from the CD image instead of the disk, and `-I` defines which CD image to use. The last parameter is the name of the virtual machine, used to track the running machines. This example starts the virtual machine in installation mode:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso guestname
....
@@ -609,7 +609,7 @@ The virtual machine will boot and start the installer. After installing a system
Reboot the virtual machine. While rebooting the virtual machine causes bhyve to exit, the [.filename]#vmrun.sh# script runs `bhyve` in a loop and will automatically restart it. When this happens, choose the reboot option from the boot loader menu in order to escape the loop. Now the guest can be started from the virtual disk:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
....
@@ -621,7 +621,7 @@ In order to boot operating systems other than FreeBSD, the package:sysutils/grub
Next, create a file to use as the virtual disk for the guest machine:
-[source,bash]
+[source,shell]
....
# truncate -s 16G linux.img
....
@@ -636,14 +636,14 @@ Starting a virtual machine with bhyve is a two step process. First a kernel must
Use package:sysutils/grub2-bhyve[] to load the Linux(R) kernel from the ISO image:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
....
This will start grub. If the installation CD contains a [.filename]#grub.cfg#, a menu will be displayed. If not, the `vmlinuz` and `initrd` files must be located and loaded manually:
-[source,bash]
+[source,shell]
....
grub> ls
(hd0) (cd0) (cd0,msdos1) (host)
@@ -657,7 +657,7 @@ grub> boot
Now that the Linux(R) kernel is loaded, the guest can be started:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024M linuxguest
@@ -665,14 +665,14 @@ Now that the Linux(R) kernel is loaded, the guest can be started:
The system will boot and start the installer. After installing a system in the virtual machine, reboot the virtual machine. This will cause bhyve to exit. The instance of the virtual machine needs to be destroyed before it can be started again:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
Now the guest can be started directly from the virtual disk. Load the kernel:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r hd0,msdos1 -M 1024M linuxguest
grub> ls
@@ -689,7 +689,7 @@ grub> boot
Boot the virtual machine:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024M linuxguest
@@ -697,7 +697,7 @@ Boot the virtual machine:
Linux(R) will now boot in the virtual machine and eventually present you with the login prompt. Login and use the virtual machine. When you are finished, reboot the virtual machine to exit bhyve. Destroy the virtual machine instance:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
@@ -711,7 +711,7 @@ In order to make use of the UEFI support in bhyve, first obtain the UEFI firmwar
With the firmware in place, add the flags `-l bootrom,_/path/to/firmware_` to your bhyve command line. The actual bhyve command may look like this:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -722,7 +722,7 @@ guest
package:sysutils/bhyve-firmware[] also contains a CSM-enabled firmware, to boot guests with no UEFI support in legacy BIOS mode:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -740,7 +740,7 @@ Support for the UEFI-GOP framebuffer may also be enabled with the `-s 29,fbuf,tc
The resulting bhyve command would look like this:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -758,14 +758,14 @@ Note, in BIOS emulation mode, the framebuffer will cease receiving updates once
If ZFS is available on the host machine, using ZFS volumes instead of disk image files can provide significant performance benefits for the guest VMs. A ZFS volume can be created by:
-[source,bash]
+[source,shell]
....
# zfs create -V16G -o volmode=dev zroot/linuxdisk0
....
When starting the VM, specify the ZFS volume as the disk drive:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest
@@ -776,7 +776,7 @@ When starting the VM, specify the ZFS volume as the disk drive:
It is advantageous to wrap the bhyve console in a session management tool such as package:sysutils/tmux[] or package:sysutils/screen[] in order to detach and reattach to the console. It is also possible to have the console of bhyve be a null modem device that can be accessed with `cu`. To do this, load the [.filename]#nmdm# kernel module and replace `-l com1,stdio` with `-l com1,/dev/nmdm0A`. The [.filename]#/dev/nmdm# devices are created automatically as needed, where each is a pair, corresponding to the two ends of the null modem cable ([.filename]#/dev/nmdm0A# and [.filename]#/dev/nmdm0B#). See man:nmdm[4] for more information.
-[source,bash]
+[source,shell]
....
# kldload nmdm
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
@@ -794,7 +794,7 @@ handbook login:
A device node is created in [.filename]#/dev/vmm# for each virtual machine. This allows the administrator to easily see a list of the running virtual machines:
-[source,bash]
+[source,shell]
....
# ls -al /dev/vmm
total 1
@@ -807,7 +807,7 @@ crw------- 1 root wheel 0x1a1 Mar 17 12:19 otherguest
A specified virtual machine can be destroyed using `bhyvectl`:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=guestname
....
@@ -860,14 +860,14 @@ Users of FreeBSD 11 should install the package:emulators/xen-kernel47[] and pack
Configuration files must be edited to prepare the host for the Dom0 integration after the Xen packages are installed. An entry to [.filename]#/etc/sysctl.conf# disables the limit on how many pages of memory are allowed to be wired. Otherwise, DomU VMs with higher memory requirements will not run.
-[source,bash]
+[source,shell]
....
# echo 'vm.max_wired=-1' >> /etc/sysctl.conf
....
Another memory-related setting involves changing [.filename]#/etc/login.conf#, setting the `memorylocked` option to `unlimited`. Otherwise, creating DomU domains may fail with `Cannot allocate memory` errors. After making the change to [.filename]#/etc/login.conf#, run `cap_mkdb` to update the capability database. See crossref:security[security-resourcelimits,"Resource Limits"] for details.
-[source,bash]
+[source,shell]
....
# sed -i '' -e 's/memorylocked=64K/memorylocked=unlimited/' /etc/login.conf
# cap_mkdb /etc/login.conf
@@ -875,7 +875,7 @@ Another memory-related setting involves changing [.filename]#/etc/login.conf#, s
Add an entry for the Xen(TM) console to [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
# echo 'xc0 "/usr/libexec/getty Pc" xterm onifconsole secure' >> /etc/ttys
....
@@ -884,7 +884,7 @@ Selecting a Xen(TM) kernel in [.filename]#/boot/loader.conf# activates the Dom0.
The following command is used for Xen 4.7 packages:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf hw.pci.mcfg=0
# sysrc -f /boot/loader.conf if_tap_load="YES"
@@ -894,7 +894,7 @@ The following command is used for Xen 4.7 packages:
For Xen versions 4.11 and higher, the following command should be used instead:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf if_tap_load="YES"
# sysrc -f /boot/loader.conf xen_kernel="/boot/xen"
@@ -909,14 +909,14 @@ Log files that Xen(TM) creates for the DomU VMs are stored in [.filename]#/var/l
Activate the xencommons service during system startup:
-[source,bash]
+[source,shell]
....
# sysrc xencommons_enable=yes
....
These settings are enough to start a Dom0-enabled system. However, it lacks network functionality for the DomU machines. To fix that, define a bridged interface with the main NIC of the system which the DomU VMs can use to connect to the network. Replace _em0_ with the host network interface name.
-[source,bash]
+[source,shell]
....
# sysrc cloned_interfaces="bridge0"
# sysrc ifconfig_bridge0="addm em0 SYNCDHCP"
@@ -925,14 +925,14 @@ These settings are enough to start a Dom0-enabled system. However, it lacks netw
Restart the host to load the Xen(TM) kernel and start the Dom0.
-[source,bash]
+[source,shell]
....
# reboot
....
After successfully booting the Xen(TM) kernel and logging into the system again, the Xen(TM) management tool `xl` is used to show information about the domains.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -946,21 +946,21 @@ The output confirms that the Dom0 (called `Domain-0`) has the ID `0` and is runn
Unprivileged domains consist of a configuration file and virtual or physical hard disks. Virtual disk storage for the DomU can be files created by man:truncate[1] or ZFS volumes as described in crossref:zfs[zfs-zfs-volume,“Creating and Destroying Volumes”]. In this example, a 20 GB volume is used. A VM is created with the ZFS volume, a FreeBSD ISO image, 1 GB of RAM and two virtual CPUs. The ISO installation file is retrieved with man:fetch[1] and saved locally in a file called [.filename]#freebsd.iso#.
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-bootonly.iso -o freebsd.iso
....
A ZFS volume of 20 GB called [.filename]#xendisk0# is created to serve as the disk space for the VM.
-[source,bash]
+[source,shell]
....
# zfs create -V20G -o volmode=dev zroot/xendisk0
....
The new DomU guest VM is defined in a file. Some specific definitions like name, keymap, and VNC connection details are also defined. The following [.filename]#freebsd.cfg# contains a minimum DomU configuration for this example:
-[source,bash]
+[source,shell]
....
# cat freebsd.cfg
builder = "hvm" <.>
@@ -991,7 +991,7 @@ These lines are explained in more detail:
After the file has been created with all the necessary options, the DomU is created by passing it to `xl create` as a parameter.
-[source,bash]
+[source,shell]
....
# xl create freebsd.cfg
....
@@ -1003,7 +1003,7 @@ Each time the Dom0 is restarted, the configuration file must be passed to `xl cr
The output of `xl list` confirms that the DomU has been created.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -1013,7 +1013,7 @@ freebsd 1 1024 1 -b---- 663.9
To begin the installation of the base operating system, start the VNC client, directing it to the main network address of the host or to the IP address defined on the `vnclisten` line of [.filename]#freebsd.cfg#. After the operating system has been installed, shut down the DomU and disconnect the VNC viewer. Edit [.filename]#freebsd.cfg#, removing the line with the `cdrom` definition or commenting it out by inserting a `#` character at the beginning of the line. To load this new configuration, it is necessary to remove the old DomU with `xl destroy`, passing either the name or the id as the parameter. Afterwards, recreate it using the modified [.filename]*freebsd.cfg*.
-[source,bash]
+[source,shell]
....
# xl destroy freebsd
# xl create freebsd.cfg
@@ -1039,7 +1039,7 @@ In order to troubleshoot host boot issues you will likely need a serial cable, o
FreeBSD should also be booted in verbose mode in order to identify any issues. To activate verbose booting, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf boot_verbose="YES"
....
@@ -1053,7 +1053,7 @@ Issues can also arise when creating guests, the following attempts to provide so
The most common cause of guest creation failures is the `xl` command spitting some error and exiting with a return code different than 0. If the error provided is not enough to help identify the issue, more verbose output can also be obtained from `xl` by using the `v` option repeatedly.
-[source,bash]
+[source,shell]
....
# xl -vvv create freebsd.cfg
Parsing config from freebsd.cfg
diff --git a/documentation/content/pl/books/handbook/x11/_index.adoc b/documentation/content/pl/books/handbook/x11/_index.adoc
index 7a29b91396..2c0f7d634a 100644
--- a/documentation/content/pl/books/handbook/x11/_index.adoc
+++ b/documentation/content/pl/books/handbook/x11/_index.adoc
@@ -147,7 +147,7 @@ Domyślną implementacją serwera X11 dla FreeBSD jest Xorg. Jest on serwerem gr
By skompilować i zainstalować Xorg z kolekcji portów wpisujemy:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -162,7 +162,7 @@ Alternatywnie, X11 może zostać zainstalowany z pakietów binarnych za pomocą
Zatem, by pobrać i zainstalować pakiet Xorg wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -195,7 +195,7 @@ Rozmiar pamięci karty graficznej wpływa bezpośrednio na rozdzielczość i gł
Konfiguracja X11 jest procesem składającym się z kilku kroków. Pierwszym z nich jest przygotowanie wstępnego pliku konfiguracyjnego. Wystarczy jako użytkownik `root` wpisać:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -204,7 +204,7 @@ Wygeneruje to szkielet konfiguracji X11 w katalogu [.filename]#/root#, w pliku o
Kolejnym krokiem jest przetestowanie konfiguracji i sprawdzenie czy Xorg jest w stanie współpracować ze sprzętem graficznym w systemie. W tym celu należy wpisać:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
@@ -267,7 +267,7 @@ Jednym z pomocnych narzędzi w radzeniu sobie z problemami są pliki dzienników
Jeśli test wypadł dobrze, należy zainstalować plik konfiguracyjny w miejscu gdzie man:Xorg[1] będzie w stanie go znaleźć. Z reguły jest to [.filename]#/etc/X11/xorg.conf# lub [.filename]#/usr/X11R6/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -363,7 +363,7 @@ Czcionki dostarczane razem z X11 są dalekie od idealnych dla typowych aplikacji
By zainstalować kolekcje czcionek Type1 z portów, należy wpisać następujące polecenia:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -378,7 +378,7 @@ FontPath "/usr/X11R6/lib/X11/fonts/URW/"
Alternatywną metodą jest wpisanie w trakcie sesji X:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/X11R6/lib/X11/fonts/URW
% xset fp rehash
@@ -398,7 +398,7 @@ Load "freetype"
Teraz musimy utworzyć katalog dla czcionek TrueType(R) (na przykład [.filename]#/usr/X11R6/lib/X11/fonts/TrueType#) i skopiować wszystkie czcionki do tego katalogu. Należy pamiętać, że czcionki TrueType(R) nie mogą być bezpośrednio skopiowane z systemu Macintosh(R), by możliwe było wykorzystanie ich z X11; muszą być w formacie UNIX(R)/MS-DOS(R)/Windows(R). Po skopiowaniu plików należy wykorzystać ttmkfdir do stworzenia pliku [.filename]#fonts.dir#, by poinformować X, że zostały zainstalowane nowe czcionki. Program `ttmkfdir` dostępny jest z kolekcji portów FreeBSD jako package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -406,7 +406,7 @@ Teraz musimy utworzyć katalog dla czcionek TrueType(R) (na przykład [.filename
Na koniec musimy dodać katalog TrueType(R) do ścieżki czcionek. Robimy to analogicznie jak w przypadku czcionek <<type1,Type1>>, za pomocą polecenia
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/X11R6/lib/X11/fonts/TrueType
% xset fp rehash
@@ -442,7 +442,7 @@ Jak już to zostało wcześniej powiedziane, wszystkie czcionki w katalogach [.f
Po dodaniu nowych czcionek, a szczególnie nowych katalogów, powinniśmy uruchomić poniższe polecenie, by przebudować bufor informacji o czcionkach:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -560,7 +560,7 @@ XDM można postrzegać jako narzędzie dostarczające użytkownikowi takich samy
Demon XDM znajduje się w [.filename]#/usr/X11R6/bin/xdm#. Program ten może zostać uruchomiony w dowolnej chwili przez użytkownika `root` i od razu rozpocznie zarządzanie ekranami X w lokalnym systemie. Jeśli jednak XDM ma być uruchamiany przy każdym starcie systemu, najlepszym rozwiązaniem jest dodanie odpowiedniego wpisu do pliku [.filename]#/etc/ttys#. crossref:serialcomms[term-etcttys,Adding an Entry to /etc/ttys] zawiera więcej informacji odnośnie formatu i wykorzystania tego pliku. W domyślnej wersji plik [.filename]#/etc/ttys# zawiera wiersz uruchamiający demona XDM w wirtualnym terminalu:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure
....
@@ -638,7 +638,7 @@ Plik ten zawiera wydruki wyjściowe serwerów X, które XDM stara się uruchomi
By umożliwić innym klientom łączenie się z serwerem graficznym, należy zmodyfikować reguły kontroli dostępu i włączyć opcję nasłuchiwania połączeń. Domyślnie opcja ta jest nie aktywna. Jej aktywacja polega na odkomentowaniu poniższej linii w pliku [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -671,14 +671,14 @@ Najprostszym sposobem instalacji GNOME jest poprzez menu "Desktop Configuration"
By zainstalować pakiet GNOME z sieci, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
By skompilować GNOME ze źródeł najlepiej jest skorzystać z portu:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -690,7 +690,7 @@ Najprostszą metodą uruchomienia GNOME jest wykorzystanie GDM - menedżera pulp
Oczywiście, GNOME można uruchomić również bezpośrednio z linii poleceń poprawnie konfigurując plik [.filename]#.xinitrc# w katalogu domowym. Jeśli plik ten już istnieje wystarczy zastąpić wiersz odpowiadający za uruchomienie aktualnego menedżera okien na wiersz uruchamiający /usr/X11R6/bin/gnome-session. Jeśli w pliku nie dokonywaliśmy żadnych istotnych zmian, najprościej będzie po prostu wpisać:
-[source,bash]
+[source,shell]
....
% echo "/usr/X11R6/bin/gnome-session" > ~/.xinitrc
....
@@ -702,7 +702,7 @@ Następnie wpisujemy `startx`, co spowoduje uruchomienie środowiska GNOME.
Jeśli wykorzystujemy starszego menedżera okien, jak np. XDM, powyższe rozwiązanie nie zadziała. W takiej sytuacji musimy stworzyć plik wykonywalny [.filename]#.xsession# zawierający powyższe polecenie. W tym celu należy zmodyfikować ten plik i zastąpić polecenie uruchamiające aktualnego menedżera poleceniem /usr/X11R6/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/X11R6/bin/gnome-session" >> ~/.xsession
@@ -742,7 +742,7 @@ Podobnie jak w przypadku GNOME czy dowolnego innego środowiska graficznego, naj
By zainstalować pakiet KDE z sieci, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
@@ -751,7 +751,7 @@ man:pkg_add[1] automatycznie pobierze najnowszą wersję aplikacji.
By skompilować KDE ze źródeł najlepiej jest skorzystać z portu:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -759,7 +759,7 @@ By skompilować KDE ze źródeł najlepiej jest skorzystać z portu:
Po instalacji KDE należy poinformować serwer X, by uruchamiał go w miejsce domyślnego menedżera okien. W tym celu należy zmodyfikować plik [.filename]#.xinitrc#:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
@@ -809,14 +809,14 @@ Więcej informacji dostępnych jest na http://www.xfce.org/[stronie XFce].
W chwili pisania niniejszego tekstu dostępny jest pakiet binarny. By z niego zainstalować XFce, wystarczy wpisać:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Oczywiście, można również skompilować go ze źródeł przy pomocy kolekcji portów:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -824,7 +824,7 @@ Oczywiście, można również skompilować go ze źródeł przy pomocy kolekcji
Pozostaje jeszcze poinformować serwer X by uruchamiał XFce przy kolejnych uruchomieniach X. Wystarczy wpisać:
-[source,bash]
+[source,shell]
....
% echo "/usr/X11R6/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/pl/books/handbook/zfs/_index.adoc b/documentation/content/pl/books/handbook/zfs/_index.adoc
index 4a661cdb5e..dd2d2a139d 100644
--- a/documentation/content/pl/books/handbook/zfs/_index.adoc
+++ b/documentation/content/pl/books/handbook/zfs/_index.adoc
@@ -74,7 +74,7 @@ zfs_enable="YES"
Then start the service:
-[source,bash]
+[source,shell]
....
# service zfs start
....
@@ -86,14 +86,14 @@ The examples in this section assume three SCSI disks with the device names [.fil
To create a simple, non-redundant pool using a single disk device:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
To view the new pool, review the output of `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -105,7 +105,7 @@ example 17547136 0 17547136 0% /example
This output shows that the `example` pool has been created and mounted. It is now accessible as a file system. Files can be created on it and users can browse it:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -119,7 +119,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
However, this pool is not taking advantage of any ZFS features. To create a dataset on this pool with compression enabled:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -129,14 +129,14 @@ The `example/compressed` dataset is now a ZFS compressed file system. Try copyin
Compression can be disabled with:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
To unmount a file system, use `zfs umount` and then verify with `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -149,7 +149,7 @@ example 17547008 0 17547008 0% /example
To re-mount the file system to make it accessible again, use `zfs mount` and verify with `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -163,7 +163,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
The pool and file system may also be observed by viewing the output from `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -175,7 +175,7 @@ example/compressed on /example/compressed (zfs, local)
After creation, ZFS datasets can be used like any file systems. However, many other features are available which can be set on a per-dataset basis. In the example below, a new file system called `data` is created. Important files will be stored here, so it is configured to keep two copies of each data block:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -183,7 +183,7 @@ After creation, ZFS datasets can be used like any file systems. However, many ot
It is now possible to see the data and space utilization by issuing `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -199,7 +199,7 @@ Notice that each file system on the pool has the same amount of available space.
To destroy the file systems and then destroy the pool as it is no longer needed:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -213,7 +213,7 @@ Disks fail. One method of avoiding data loss from disk failure is to implement R
This example creates a RAID-Z pool, specifying the disks to add to the pool:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -225,14 +225,14 @@ Sun(TM) recommends that the number of devices used in a RAID-Z configuration be
The previous example created the `storage` zpool. This example makes a new file system called `home` in that pool:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
Compression and keeping extra copies of directories and files can be enabled:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -240,7 +240,7 @@ Compression and keeping extra copies of directories and files can be enabled:
To make this the new home directory for users, copy the user data to this directory and create the appropriate symbolic links:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -252,7 +252,7 @@ Users data is now stored on the freshly-created [.filename]#/storage/home#. Test
Try creating a file system snapshot which can be rolled back later:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
@@ -261,35 +261,35 @@ Snapshots can only be made of a full file system, not a single directory or file
The `@` character is a delimiter between the file system name or the volume name. If an important directory has been accidentally deleted, the file system can be backed up, then rolled back to an earlier snapshot when the directory still existed:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
To list all available snapshots, run `ls` in the file system's [.filename]#.zfs/snapshot# directory. For example, to see the previously taken snapshot:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
It is possible to write a script to perform regular snapshots on user data. However, over time, snapshots can consume a great deal of disk space. The previous snapshot can be removed using the command:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
After testing, [.filename]#/storage/home# can be made the real [.filename]#/home# using this command:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Run `df` and `mount` to confirm that the system now treats the file system as the real [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -318,21 +318,21 @@ daily_status_zfs_enable="YES"
Every software RAID has a method of monitoring its `state`. The status of RAID-Z devices may be viewed with this command:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
If all pools are <<zfs-term-online,Online>> and everything is normal, the message shows:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
If there is an issue, perhaps a disk is in the <<zfs-term-offline,Offline>> state, the pool state will look similar to:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -356,21 +356,21 @@ errors: No known data errors
This indicates that the device was previously taken offline by the administrator with this command:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Now the system can be powered down to replace [.filename]#da1#. When the system is back online, the failed disk can replaced in the pool:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
From here, the status may be checked again, this time without `-x` so that all pools are shown:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -403,14 +403,14 @@ Checksums can be disabled, but it is _not_ recommended! Checksums take very litt
Checksum verification is known as _scrubbing_. Verify the data integrity of the `storage` pool with this command:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
The duration of a scrub depends on the amount of data stored. Larger amounts of data will take proportionally longer to verify. Scrubs are very I/O intensive, and only one scrub is allowed to run at a time. After the scrub completes, the status can be viewed with `status`:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -444,7 +444,7 @@ Creating a ZFS storage pool (_zpool_) involves making a number of decisions that
Create a simple mirror pool:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2
# zpool status
@@ -464,7 +464,7 @@ errors: No known data errors
Multiple vdevs can be created at once. Specify multiple groups of disks separated by the vdev type keyword, `mirror` in this example:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2 mirror /dev/ada3 /dev/ada4
pool: mypool
@@ -488,7 +488,7 @@ Pools can also be constructed using partitions rather than whole disks. Putting
Create a <<zfs-term-vdev-raidz,RAID-Z2>> pool using partitions:
-[source,bash]
+[source,shell]
....
# zpool create mypool raidz2 /dev/ada0p3 /dev/ada1p3 /dev/ada2p3 /dev/ada3p3 /dev/ada4p3 /dev/ada5p3
# zpool status
@@ -521,7 +521,7 @@ A pool created with a single disk lacks redundancy. Corruption can be detected b
Upgrade the single disk (stripe) vdev _ada0p3_ to a mirror by attaching _ada1p3_:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -587,7 +587,7 @@ When attaching additional devices to a boot pool, remember to update the bootcod
Attach a second mirror group ([.filename]#ada2p3# and [.filename]#ada3p3#) to the existing mirror:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -629,7 +629,7 @@ Currently, vdevs cannot be removed from a pool, and disks can only be removed fr
Remove a disk from a three-way mirror group:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -666,7 +666,7 @@ errors: No known data errors
Pool status is important. If a drive goes offline or a read, write, or checksum error is detected, the corresponding error count increases. The `status` output shows the configuration and status of each device in the pool and the status of the entire pool. Actions that need to be taken and details about the last <<zfs-zpool-scrub,`scrub`>> are also shown.
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -699,7 +699,7 @@ There are a number of situations where it may be desirable to replace one disk w
Replace a functioning device in the pool:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -771,7 +771,7 @@ When replacing a failed disk, the name of the failed disk is replaced with the G
Replace a failed disk using `zpool replace`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -831,7 +831,7 @@ errors: No known data errors
It is recommended that pools be <<zfs-term-scrub,scrubbed>> regularly, ideally at least once every month. The `scrub` operation is very disk-intensive and will reduce performance while running. Avoid high-demand periods when scheduling `scrub` or use <<zfs-advanced-tuning-scrub_delay,`vfs.zfs.scrub_delay`>> to adjust the relative priority of the `scrub` to prevent it interfering with other workloads.
-[source,bash]
+[source,shell]
....
# zpool scrub mypool
# zpool status
@@ -864,7 +864,7 @@ The checksums stored with data blocks enable the file system to _self-heal_. Thi
The next example demonstrates this self-healing behavior. A mirrored pool of disks [.filename]#/dev/ada0# and [.filename]#/dev/ada1# is created.
-[source,bash]
+[source,shell]
....
# zpool create healer mirror /dev/ada0 /dev/ada1
# zpool status healer
@@ -887,7 +887,7 @@ healer 960M 92.5K 960M - - 0% 0% 1.00x ONLINE -
Some important data that have to be protected from data errors using the self-healing feature are copied to the pool. A checksum of the pool is created for later comparison.
-[source,bash]
+[source,shell]
....
# cp /some/important/data /healer
# zfs list
@@ -906,7 +906,7 @@ Data corruption is simulated by writing random data to the beginning of one of t
This is a dangerous operation that can destroy vital data. It is shown here for demonstrational purposes only and should not be attempted during normal operation of a storage pool. Nor should this intentional corruption example be run on any disk with a different file system on it. Do not use any other disk device names other than the ones that are part of the pool. Make certain that proper backups of the pool are created before running the command!
====
-[source,bash]
+[source,shell]
....
# zpool export healer
# dd if=/dev/random of=/dev/ada1 bs=1m count=200
@@ -918,7 +918,7 @@ This is a dangerous operation that can destroy vital data. It is shown here for
The pool status shows that one device has experienced an error. Note that applications reading data from the pool did not receive any incorrect data. ZFS provided data from the [.filename]#ada0# device with the correct checksums. The device with the wrong checksum can be found easily as the `CKSUM` column contains a nonzero value.
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -942,7 +942,7 @@ errors: No known data errors
The error was detected and handled by using the redundancy present in the unaffected [.filename]#ada0# mirror disk. A checksum comparison with the original one will reveal whether the pool is consistent again.
-[source,bash]
+[source,shell]
....
# sha1 /healer >> checksum.txt
# cat checksum.txt
@@ -952,7 +952,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
The two checksums that were generated before and after the intentional tampering with the pool data still match. This shows how ZFS is capable of detecting and correcting any errors automatically when the checksums differ. Note that this is only possible when there is enough redundancy present in the pool. A pool consisting of a single device has no self-healing capabilities. That is also the reason why checksums are so important in ZFS and should not be disabled for any reason. No man:fsck[8] or similar file system consistency check program is required to detect and correct this and the pool was still available during the time there was a problem. A scrub operation is now required to overwrite the corrupted data on [.filename]#ada1#.
-[source,bash]
+[source,shell]
....
# zpool scrub healer
# zpool status healer
@@ -979,7 +979,7 @@ errors: No known data errors
The scrub operation reads data from [.filename]#ada0# and rewrites any data with an incorrect checksum on [.filename]#ada1#. This is indicated by the `(repairing)` output from `zpool status`. After the operation is complete, the pool status changes to:
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -1003,7 +1003,7 @@ errors: No known data errors
After the scrub operation completes and all the data has been synchronized from [.filename]#ada0# to [.filename]#ada1#, the error messages can be <<zfs-zpool-clear,cleared>> from the pool status by running `zpool clear`.
-[source,bash]
+[source,shell]
....
# zpool clear healer
# zpool status healer
@@ -1037,7 +1037,7 @@ Pools are _exported_ before moving them to another system. All datasets are unmo
Export a pool that is not in use:
-[source,bash]
+[source,shell]
....
# zpool export mypool
....
@@ -1046,7 +1046,7 @@ Importing a pool automatically mounts the datasets. This may not be the desired
List all available pools for import:
-[source,bash]
+[source,shell]
....
# zpool import
pool: mypool
@@ -1061,7 +1061,7 @@ List all available pools for import:
Import the pool with an alternative root directory:
-[source,bash]
+[source,shell]
....
# zpool import -o altroot=/mnt mypool
# zfs list
@@ -1077,7 +1077,7 @@ After upgrading FreeBSD, or if a pool has been imported from a system using an o
Upgrade a v28 pool to support `Feature Flags`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1126,7 +1126,7 @@ The newer features of ZFS will not be available until `zpool upgrade` has comple
Upgrade a pool to support additional feature flags:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1184,14 +1184,14 @@ The boot code on systems that boot from a pool must be updated to support the ne
For legacy boot using GPT, use the following command:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
....
For systems using EFI to boot, execute the following command:
-[source,bash]
+[source,shell]
....
# gpart bootcode -p /boot/boot1.efifat -i 1 ada1
....
@@ -1204,7 +1204,7 @@ Apply the bootcode to all bootable disks in the pool. See man:gpart[8] for more
Commands that modify the pool are recorded. Recorded actions include the creation of datasets, changing properties, or replacement of a disk. This history is useful for reviewing how a pool was created and which user performed a specific action and when. History is not kept in a log file, but is part of the pool itself. The command to review this history is aptly named `zpool history`:
-[source,bash]
+[source,shell]
....
# zpool history
History for 'tank':
@@ -1218,7 +1218,7 @@ The output shows `zpool` and `zfs` commands that were executed on the pool along
`zpool history` can show even more information when the options `-i` or `-l` are provided. `-i` displays user-initiated events as well as internally logged ZFS events.
-[source,bash]
+[source,shell]
....
# zpool history -i
History for 'tank':
@@ -1233,7 +1233,7 @@ History for 'tank':
More details can be shown by adding `-l`. History records are shown in a long format, including information like the name of the user who issued the command and the hostname on which the change was made.
-[source,bash]
+[source,shell]
....
# zpool history -l
History for 'tank':
@@ -1252,7 +1252,7 @@ Both options to `zpool history` can be combined to give the most detailed inform
A built-in monitoring system can display pool I/O statistics in real time. It shows the amount of free and used space on the pool, how many read and write operations are being performed per second, and how much I/O bandwidth is currently being utilized. By default, all pools in the system are monitored and displayed. A pool name can be provided to limit monitoring to just that pool. A basic example:
-[source,bash]
+[source,shell]
....
# zpool iostat
capacity operations bandwidth
@@ -1265,7 +1265,7 @@ To continuously monitor I/O activity, a number can be specified as the last para
Even more detailed I/O statistics can be displayed with `-v`. Each device in the pool is shown with a statistics line. This is useful in seeing how many read and write operations are being performed on each device, and can help determine if any individual device is slowing down the pool. This example shows a mirrored pool with two devices:
-[source,bash]
+[source,shell]
....
# zpool iostat -v
capacity operations bandwidth
@@ -1295,7 +1295,7 @@ Unlike traditional disks and volume managers, space in ZFS is _not_ preallocated
Create a new dataset and enable <<zfs-term-compression-lz4,LZ4 compression>> on it:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1335,7 +1335,7 @@ Destroying a dataset is much quicker than deleting all of the files that reside
Destroy the previously-created dataset:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1380,7 +1380,7 @@ A volume is a special type of dataset. Rather than being mounted as a file syste
A volume can be formatted with any file system, or used without a file system to store raw data. To the user, a volume appears to be a regular disk. Putting ordinary file systems on these _zvols_ provides features that ordinary disks or file systems do not normally have. For example, using the compression property on a 250 MB volume allows creation of a compressed FAT file system.
-[source,bash]
+[source,shell]
....
# zfs create -V 250m -o compression=on tank/fat32
# zfs list tank
@@ -1404,7 +1404,7 @@ The name of a dataset can be changed with `zfs rename`. The parent of a dataset
Rename a dataset and move it to be under a different parent dataset:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1443,7 +1443,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
Snapshots can also be renamed like this. Due to the nature of snapshots, they cannot be renamed into a different parent dataset. To rename a recursive snapshot, specify `-r`, and all snapshots with the same name in child datasets with also be renamed.
-[source,bash]
+[source,shell]
....
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
@@ -1461,7 +1461,7 @@ Each ZFS dataset has a number of properties that control its behavior. Most prop
User-defined properties can also be set. They become part of the dataset configuration and can be used to provide additional information about the dataset or its contents. To distinguish these custom properties from the ones supplied as part of ZFS, a colon (`:`) is used to create a custom namespace for the property.
-[source,bash]
+[source,shell]
....
# zfs set custom:costcenter=1234 tank
# zfs get custom:costcenter tank
@@ -1471,7 +1471,7 @@ tank custom:costcenter 1234 local
To remove a custom property, use `zfs inherit` with `-r`. If the custom property is not defined in any of the parent datasets, it will be removed completely (although the changes are still recorded in the pool's history).
-[source,bash]
+[source,shell]
....
# zfs inherit -r custom:costcenter tank
# zfs get custom:costcenter tank
@@ -1486,7 +1486,7 @@ tank custom:costcenter - -
Two commonly used and useful dataset properties are the NFS and SMB share options. Setting these define if and how ZFS datasets may be shared on the network. At present, only setting sharing via NFS is supported on FreeBSD. To get the current status of a share, enter:
-[source,bash]
+[source,shell]
....
# zfs get sharenfs mypool/usr/home
NAME PROPERTY VALUE SOURCE
@@ -1498,14 +1498,14 @@ mypool/usr/home sharesmb off local
To enable sharing of a dataset, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs=on mypool/usr/home
....
It is also possible to set additional options for sharing datasets through NFS, such as `-alldirs`, `-maproot` and `-network`. To set additional options to a dataset shared through NFS, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs="-alldirs,-maproot=root,-network=192.168.1.0/24" mypool/usr/home
....
@@ -1524,7 +1524,7 @@ Snapshots are created with `zfs snapshot _dataset_@_snapshotname_`. Adding `-r`
Create a recursive snapshot of the entire pool:
-[source,bash]
+[source,shell]
....
# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
@@ -1567,7 +1567,7 @@ Snapshots are not shown by a normal `zfs list` operation. To list snapshots, `-t
Snapshots are not mounted directly, so no path is shown in the `MOUNTPOINT` column. There is no mention of available disk space in the `AVAIL` column, as snapshots cannot be written to after they are created. Compare the snapshot to the original dataset from which it was created:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/usr/home
NAME USED AVAIL REFER MOUNTPOINT
@@ -1577,7 +1577,7 @@ mypool/usr/home@my_recursive_snapshot 0 - 184K -
Displaying both the dataset and the snapshot together reveals how snapshots work in <<zfs-term-cow,COW>> fashion. They save only the changes (_delta_) that were made and not the complete file system contents all over again. This means that snapshots take little space when few changes are made. Space usage can be made even more apparent by copying a file to the dataset, then making a second snapshot:
-[source,bash]
+[source,shell]
....
# cp /etc/passwd /var/tmp
# zfs snapshot mypool/var/tmp@after_cp
@@ -1595,7 +1595,7 @@ The second snapshot contains only the changes to the dataset after the copy oper
ZFS provides a built-in command to compare the differences in content between two snapshots. This is helpful when many snapshots were taken over time and the user wants to see how the file system has changed over time. For example, `zfs diff` lets a user find the latest snapshot that still contains a file that was accidentally deleted. Doing this for the two snapshots that were created in the previous section yields this output:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1632,7 +1632,7 @@ Comparing two snapshots is helpful when using the ZFS replication feature to tra
Compare two snapshots by providing the full dataset name and snapshot name of both datasets:
-[source,bash]
+[source,shell]
....
# cp /var/tmp/passwd /var/tmp/passwd.copy
# zfs snapshot mypool/var/tmp@diff_snapshot
@@ -1654,7 +1654,7 @@ When at least one snapshot is available, it can be rolled back to at any time. M
In the first example, a snapshot is rolled back because of a careless `rm` operation that removes too much data than was intended.
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1671,7 +1671,7 @@ vi.recover
At this point, the user realized that too many files were deleted and wants them back. ZFS provides an easy way to get them back using rollbacks, but only when snapshots of important data are performed on a regular basis. To get the files back and start over from the last snapshot, issue the command:
-[source,bash]
+[source,shell]
....
# zfs rollback mypool/var/tmp@diff_snapshot
# ls /var/tmp
@@ -1680,7 +1680,7 @@ passwd passwd.copy vi.recover
The rollback operation restored the dataset to the state of the last snapshot. It is also possible to roll back to a snapshot that was taken much earlier and has other snapshots that were created after it. When trying to do this, ZFS will issue this warning:
-[source,bash]
+[source,shell]
....
# zfs list -rt snapshot mypool/var/tmp
AME USED AVAIL REFER MOUNTPOINT
@@ -1696,7 +1696,7 @@ mypool/var/tmp@diff_snapshot
This warning means that snapshots exist between the current state of the dataset and the snapshot to which the user wants to roll back. To complete the rollback, these snapshots must be deleted. ZFS cannot track all the changes between different states of the dataset, because snapshots are read-only. ZFS will not delete the affected snapshots unless the user specifies `-r` to indicate that this is the desired action. If that is the intention, and the consequences of losing all intermediate snapshots is understood, the command can be issued:
-[source,bash]
+[source,shell]
....
# zfs rollback -r mypool/var/tmp@my_recursive_snapshot
# zfs list -rt snapshot mypool/var/tmp
@@ -1713,7 +1713,7 @@ The output from `zfs list -t snapshot` confirms that the intermediate snapshots
Snapshots are mounted in a hidden directory under the parent dataset: [.filename]#.zfs/snapshots/snapshotname#. By default, these directories will not be displayed even when a standard `ls -a` is issued. Although the directory is not displayed, it is there nevertheless and can be accessed like any normal directory. The property named `snapdir` controls whether these hidden directories show up in a directory listing. Setting the property to `visible` allows them to appear in the output of `ls` and other commands that deal with directory contents.
-[source,bash]
+[source,shell]
....
# zfs get snapdir mypool/var/tmp
NAME PROPERTY VALUE SOURCE
@@ -1727,7 +1727,7 @@ mypool/var/tmp snapdir hidden default
Individual files can easily be restored to a previous state by copying them from the snapshot back to the parent dataset. The directory structure below [.filename]#.zfs/snapshot# has a directory named exactly like the snapshots taken earlier to make it easier to identify them. In the next example, it is assumed that a file is to be restored from the hidden [.filename]#.zfs# directory by copying it from the snapshot that contained the latest version of the file:
-[source,bash]
+[source,shell]
....
# rm /var/tmp/passwd
# ls -a /var/tmp
@@ -1741,7 +1741,7 @@ passwd vi.recover
When `ls .zfs/snapshot` was issued, the `snapdir` property might have been set to hidden, but it would still be possible to list the contents of that directory. It is up to the administrator to decide whether these directories will be displayed. It is possible to display these for certain datasets and prevent it for others. Copying files or directories from this hidden [.filename]#.zfs/snapshot# is simple enough. Trying it the other way around results in this error:
-[source,bash]
+[source,shell]
....
# cp /etc/rc.conf /var/tmp/.zfs/snapshot/after_cp/
cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
@@ -1760,7 +1760,7 @@ A clone is a copy of a snapshot that is treated more like a regular dataset. Unl
To demonstrate the clone feature, this example dataset is used:
-[source,bash]
+[source,shell]
....
# zfs list -rt all camino/home/joe
NAME USED AVAIL REFER MOUNTPOINT
@@ -1771,7 +1771,7 @@ camino/home/joe@backup 0K - 87K -
A typical use for clones is to experiment with a specific dataset while keeping the snapshot around to fall back to in case something goes wrong. Since snapshots cannot be changed, a read/write clone of a snapshot is created. After the desired result is achieved in the clone, the clone can be promoted to a dataset and the old file system removed. This is not strictly necessary, as the clone and dataset can coexist without problems.
-[source,bash]
+[source,shell]
....
# zfs clone camino/home/joe@backup camino/home/joenew
# ls /usr/home/joe*
@@ -1788,7 +1788,7 @@ usr/home/joenew 1.3G 31k 1.3G 0% /usr/home/joenew
After a clone is created it is an exact copy of the state the dataset was in when the snapshot was taken. The clone can now be changed independently from its originating dataset. The only connection between the two is the snapshot. ZFS records this connection in the property `origin`. Once the dependency between the snapshot and the clone has been removed by promoting the clone using `zfs promote`, the `origin` of the clone is removed as it is now an independent dataset. This example demonstrates it:
-[source,bash]
+[source,shell]
....
# zfs get origin camino/home/joenew
NAME PROPERTY VALUE SOURCE
@@ -1801,7 +1801,7 @@ camino/home/joenew origin - -
After making some changes like copying [.filename]#loader.conf# to the promoted clone, for example, the old directory becomes obsolete in this case. Instead, the promoted clone can replace it. This can be achieved by two consecutive commands: `zfs destroy` on the old dataset and `zfs rename` on the clone to name it like the old dataset (it could also get an entirely different name).
-[source,bash]
+[source,shell]
....
# cp /boot/defaults/loader.conf /usr/home/joenew
# zfs destroy -f camino/home/joe
@@ -1822,7 +1822,7 @@ Keeping data on a single pool in one location exposes it to risks like theft and
These examples demonstrate ZFS replication with these two pools:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -1832,7 +1832,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
The pool named _mypool_ is the primary pool where data is written to and read from on a regular basis. A second pool, _backup_ is used as a standby in case the primary pool becomes unavailable. Note that this fail-over is not done automatically by ZFS, but must be manually done by a system administrator when needed. A snapshot is used to provide a consistent version of the file system to be replicated. Once a snapshot of _mypool_ has been created, it can be copied to the _backup_ pool. Only snapshots can be replicated. Changes made since the most recent snapshot will not be included.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@backup1
# zfs list -t snapshot
@@ -1842,7 +1842,7 @@ mypool@backup1 0 - 43.6M -
Now that a snapshot exists, `zfs send` can be used to create a stream representing the contents of the snapshot. This stream can be stored as a file or received by another pool. The stream is written to standard output, but must be redirected to a file or pipe or an error is produced:
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1
Error: Stream can not be written to a terminal.
@@ -1851,7 +1851,7 @@ You must redirect standard output.
To back up a dataset with `zfs send`, redirect to a file located on the mounted backup pool. Ensure that the pool has enough free space to accommodate the size of the snapshot being sent, which means all of the data contained in the snapshot, not just the changes from the previous snapshot.
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1 > /backup/backup1
# zpool list
@@ -1864,7 +1864,7 @@ The `zfs send` transferred all the data in the snapshot called _backup1_ to the
Instead of storing the backups as archive files, ZFS can receive them as a live file system, allowing the backed up data to be accessed directly. To get to the actual data contained in those streams, `zfs receive` is used to transform the streams back into files and directories. The example below combines `zfs send` and `zfs receive` using a pipe to copy the data from one pool to another. The data can be used directly on the receiving pool after the transfer is complete. A dataset can only be replicated to an empty dataset.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica1
# zfs send -v mypool@replica1 | zfs receive backup/mypool
@@ -1883,7 +1883,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
`zfs send` can also determine the difference between two snapshots and send only the differences between the two. This saves disk space and transfer time. For example:
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica2
# zfs list -t snapshot
@@ -1898,7 +1898,7 @@ mypool 960M 50.2M 910M - - 0% 5% 1.00x ONLINE -
A second snapshot called _replica2_ was created. This second snapshot contains only the changes that were made to the file system between now and the previous snapshot, _replica1_. Using `zfs send -i` and indicating the pair of snapshots generates an incremental replica stream containing only the data that has changed. This can only succeed if the initial snapshot already exists on the receiving side.
-[source,bash]
+[source,shell]
....
# zfs send -v -i mypool@replica1 mypool@replica2 | zfs receive /backup/mypool
send from @replica1 to mypool@replica2 estimated size is 5.02M
@@ -1941,14 +1941,14 @@ This configuration is required:
* Normally, the privileges of the `root` user are needed to send and receive streams. This requires logging in to the receiving system as `root`. However, logging in as `root` is disabled by default for security reasons. The <<zfs-zfs-allow,ZFS Delegation>> system can be used to allow a non-`root` user on each system to perform the respective send and receive operations.
* On the sending system:
+
-[source,bash]
+[source,shell]
....
# zfs allow -u someuser send,snapshot mypool
....
* To mount the pool, the unprivileged user must own the directory, and regular users must be allowed to mount file systems. On the receiving system:
+
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -1960,7 +1960,7 @@ vfs.usermount: 0 -> 1
The unprivileged user now has the ability to receive and mount datasets, and the _home_ dataset can be replicated to the remote system:
-[source,bash]
+[source,shell]
....
% zfs snapshot -r mypool/home@monday
% zfs send -R mypool/home@monday | ssh someuser@backuphost zfs recv -dvu recvpool/backup
@@ -1977,21 +1977,21 @@ The following examples assume that the users already exist in the system. Before
To enforce a dataset quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
To enforce a reference quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set refquota=10G storage/home/bob
....
To remove a quota of 10 GB for [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=none storage/home/bob
....
@@ -2005,14 +2005,14 @@ The general format is `userquota@_user_=_size_`, and the user's name must be in
For example, to enforce a user quota of 50 GB for the user named _joe_:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
To remove any quota:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -2026,14 +2026,14 @@ The general format for setting a group quota is: `groupquota@_group_=_size_`.
To set the quota for the group _firstgroup_ to 50 GB, use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
To remove the quota for the group _firstgroup_, or to make sure that one is not set, instead use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -2044,7 +2044,7 @@ To display the amount of space used by each user on a file system or snapshot al
Users with sufficient privileges, and `root`, can list the quota for [.filename]#storage/home/bob# using:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -2056,14 +2056,14 @@ Users with sufficient privileges, and `root`, can list the quota for [.filename]
The general format of the `reservation` property is `reservation=_size_`, so to set a reservation of 10 GB on [.filename]#storage/home/bob#, use:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
To clear any reservation:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -2072,7 +2072,7 @@ The same principle can be applied to the `refreservation` property for setting a
This command shows any reservations or refreservations that exist on [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -2087,7 +2087,7 @@ ZFS offers several different compression algorithms, each with different trade-o
The administrator can monitor the effectiveness of compression using a number of dataset properties.
-[source,bash]
+[source,shell]
....
# zfs get used,compressratio,compression,logicalused mypool/compressed_dataset
NAME PROPERTY VALUE SOURCE
@@ -2110,14 +2110,14 @@ When enabled, <<zfs-term-deduplication,deduplication>> uses the checksum of each
To activate deduplication, set the `dedup` property on the target pool:
-[source,bash]
+[source,shell]
....
# zfs set dedup=on pool
....
Only new data being written to the pool will be deduplicated. Data that has already been written to the pool will not be deduplicated merely by activating this option. A pool with a freshly activated deduplication property will look like this example:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2126,7 +2126,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
The `DEDUP` column shows the actual rate of deduplication for the pool. A value of `1.00x` shows that data has not been deduplicated yet. In the next example, the ports tree is copied three times into different directories on the deduplicated pool created above.
-[source,bash]
+[source,shell]
....
# for d in dir1 dir2 dir3; do
> mkdir $d && cp -R /usr/ports $d &
@@ -2135,7 +2135,7 @@ The `DEDUP` column shows the actual rate of deduplication for the pool. A value
Redundant data is detected and deduplicated:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2146,7 +2146,7 @@ The `DEDUP` column shows a factor of `3.00x`. Multiple copies of the ports tree
Deduplication is not always beneficial, especially when the data on a pool is not redundant. ZFS can show potential space savings by simulating deduplication on an existing pool:
-[source,bash]
+[source,shell]
....
# zdb -S pool
Simulated DDT histogram:
diff --git a/documentation/content/pt-br/articles/committers-guide/_index.adoc b/documentation/content/pt-br/articles/committers-guide/_index.adoc
index cd7b6d54f2..9ca1865fa4 100644
--- a/documentation/content/pt-br/articles/committers-guide/_index.adoc
+++ b/documentation/content/pt-br/articles/committers-guide/_index.adoc
@@ -115,7 +115,7 @@ cert-digest-algo SHA512
....
. Gere uma chave:
+
-[source,bash]
+[source,shell]
....
% gpg --full-gen-key
gpg (GnuPG) 2.1.8; Copyright (C) 2015 Free Software Foundation, Inc.
@@ -174,7 +174,7 @@ O cluster do FreeBSD requer uma senha do Kerberos para acessar certos serviços.
Para criar uma nova conta do Kerberos no cluster do FreeBSD, ou para redefinir uma senha do Kerberos para uma conta existente usando um gerador de senha aleatória:
-[source,bash]
+[source,shell]
....
% ssh kpasswd.freebsd.org
....
@@ -186,7 +186,7 @@ Isto deve ser feito a partir de uma máquina fora do cluster do FreeBSD.org.
Uma senha do Kerberos também pode ser definida manualmente, para isto logue no servidor `freefall.FreeBSD.org` e execute:
-[source,bash]
+[source,shell]
....
% kpasswd
....
@@ -250,7 +250,7 @@ O repositório da coleção de `ports` do FreeBSD foi migrado do `CVS` para o Su
O Subversion pode ser instalado a partir da Coleção de Ports do FreeBSD, executando o comando:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -265,21 +265,21 @@ Existem algumas maneiras de obter uma cópia de trabalho da árvore do Subversio
O primeiro é fazer check-out diretamente do repositório principal. Para a árvore `src`, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head /usr/src
....
Para a árvore `doc`, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/doc/head /usr/doc
....
Para a árvore da coleção de `ports`, use:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/ports/head /usr/ports
....
@@ -358,7 +358,7 @@ Esta seção explicará como realizar operações comuns do dia-a-dia com o Subv
O `SVN` traz em si uma documentação interna de ajuda. Ela pode ser acessada digitando:
-[source,bash]
+[source,shell]
....
% svn help
....
@@ -370,7 +370,7 @@ Informações adicionais podem ser encontradas no http://svnbook.red-bean.com/[S
Como visto anteriormente, para fazer o checkout da branch principal (head) do FreeBSD:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head /usr/src
....
@@ -379,7 +379,7 @@ Em algum momento, provavelmente será útil ter uma copia de trabalho mais do qu
Para fazer isso, primeiro confira a raiz do repositório:
-[source,bash]
+[source,shell]
....
% svn checkout --depth=immediates svn+ssh://repo.freebsd.org/base
....
@@ -388,7 +388,7 @@ Isso vai obter o `base` com todos os arquivos que ele contém (no momento da esc
É possível expandir a cópia de trabalho. Basta alterar a profundidade dos vários subdiretórios:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/head
% svn up --set-depth=immediates base/release base/releng base/stable
@@ -398,14 +398,14 @@ O comando acima irá baixar uma cópia completa do `head`, além de cópias vazi
Se numa data posterior você tiver necessidade de mesclar algo, por exemplo, com a `7-STABLE`, expanda a cópia de trabalho:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/stable/7
....
As subárvores não precisam ser expandidas completamente. Por exemplo, para expandir apenas o `stable/7/sys` e depois expandir o resto do `stable/7`:
-[source,bash]
+[source,shell]
....
% svn up --set-depth=infinity base/stable/7/sys
% svn up --set-depth=infinity base/stable/7
@@ -418,7 +418,7 @@ Atualizar a árvore com `svn update` irá apenas atualizar o que foi pedido ante
É possível efetuar o checkout anonimo o repositório Subversion do FreeBSD. Isso dará acesso a uma árvore somente leitura que pode ser atualizada, mas que não poderá ser enviada de volta para o repositório principal por meio de um commit. Para fazer isso, use:
-[source,bash]
+[source,shell]
....
% svn co https://svn.FreeBSD.org/base/head /usr/src
....
@@ -430,7 +430,7 @@ Mais detalhes sobre o uso do Subversion podem ser encontrados em link:{handbook}
Para atualizar uma cópia de trabalho para a revisão mais recente ou uma revisão específica:
-[source,bash]
+[source,shell]
....
% svn update
% svn update -r12345
@@ -441,14 +441,14 @@ Para atualizar uma cópia de trabalho para a revisão mais recente ou uma revis
Para ver as alterações locais que foram feitas na cópia de trabalho:
-[source,bash]
+[source,shell]
....
% svn status
....
Para mostrar alterações locais e arquivos que estão desatualizados, execute:
-[source,bash]
+[source,shell]
....
% svn status --show-updates
....
@@ -460,21 +460,21 @@ O `SVN` não precisa ser avisado com antecedência sobre a edição de arquivos.
Para efetuar o commit de todas as alterações no diretório atual e em todos os seus subdiretórios:
-[source,bash]
+[source,shell]
....
% svn commit
....
Para efetuar o commit de todas as alterações, por exemplo, nos arquivos [.filename]#lib/libfetch/# e [.filename]#usr/bin/fetch/# em uma única operação, execute:
-[source,bash]
+[source,shell]
....
% svn commit lib/libfetch usr/bin/fetch
....
Também existe um wrapper de commit para a árvore de ports para manipular as propriedades e para verificar a sanidade das mudanças:
-[source,bash]
+[source,shell]
....
% /usr/ports/Tools/scripts/psvn commit
....
@@ -489,7 +489,7 @@ Antes de adicionar arquivos, obtenha uma cópia do https://people.FreeBSD.org/~p
Os arquivos são adicionados a um `SVN` repositório com `svn add`. Para adicionar um arquivo chamado __foo__, edite-o e depois execute:
-[source,bash]
+[source,shell]
....
% svn add foo
....
@@ -501,7 +501,7 @@ A maioria dos novos arquivos fonte deve incluir uma string `$FreeBSD: head/pt_BR
Os arquivos podem ser removidos com `svn remove`:
-[source,bash]
+[source,shell]
....
% svn remove foo
....
@@ -510,7 +510,7 @@ O subversion não requer a exclusão do arquivo antes de usaramos o comando `svn
É possível adicionar diretórios com `svn add`:
-[source,bash]
+[source,shell]
....
% mkdir bar
% svn add bar
@@ -518,14 +518,14 @@ O subversion não requer a exclusão do arquivo antes de usaramos o comando `svn
Apesar que o `svn mkdir` torna isso mais fácil, combinando a criação do diretório e a adição dele:
-[source,bash]
+[source,shell]
....
% svn mkdir bar
....
Como arquivos, os diretórios são removidos com `svn rm`. Não existe um comando separado especificamente para remover diretórios.
-[source,bash]
+[source,shell]
....
% svn rm bar
....
@@ -535,7 +535,7 @@ Como arquivos, os diretórios são removidos com `svn rm`. Não existe um comand
Este comando cria uma cópia do arquivo [.filename]#foo.c# nomeado [.filename]#bar.c#, com o novo arquivo também sob controle de versão e com o histórico completo de [.filename]#foo.c#:
-[source,bash]
+[source,shell]
....
% svn copy foo.c bar.c
....
@@ -544,7 +544,7 @@ Geralmente é preferível copiar desta forma ao invés de copiar o arquivo com c
Para mover e renomear um arquivo:
-[source,bash]
+[source,shell]
....
% svn move foo.c bar.c
....
@@ -563,14 +563,14 @@ O `svn diff` exibe alterações na cópia de trabalho. Diffs gerado por `SVN` s
O `svn diff` pode mostrar as mudanças entre duas revisões do mesmo arquivo:
-[source,bash]
+[source,shell]
....
% svn diff -r179453:179454 ROADMAP.txt
....
Ele também pode mostrar todas as alterações para um changeset específico. Este comando mostra quais alterações foram feitas no diretório atual e em todos os subdiretórios do changeset 179454:
-[source,bash]
+[source,shell]
....
% svn diff -c179454 .
....
@@ -585,14 +585,14 @@ Mudanças locais (incluindo adições e deleções) podem ser revertidas usando
Se um `svn update` resultou em um conflito de mesclagem, o Subversion irá lembrar quais arquivos têm conflitos e se recusará a fazer o commit de quaisquer alterações nesses arquivos até que seja explicitamente informado que os conflitos foram resolvidos. O procedimento simples, ainda não obsoleto, é:
-[source,bash]
+[source,shell]
....
% svn resolved foo
....
No entanto, o procedimento preferido é:
-[source,bash]
+[source,shell]
....
% svn resolve --accept=working foo
....
@@ -622,7 +622,7 @@ A opção `--depth` se aplica a muitos outros comandos, incluindo `svn commit`,
Como o parâmetro `--depth` utilizado é persistente, existe uma opção `--set-depth` para o `svn update` que irá mudar a profundidade selecionada. Assim, dada a cópia de trabalho produzida pelo exemplo anterior:
-[source,bash]
+[source,shell]
....
% cd ~/freebsd
% svn update --set-depth=immediates .
@@ -630,7 +630,7 @@ Como o parâmetro `--depth` utilizado é persistente, existe uma opção `--set-
O comando acima irá popular a cópia de trabalho em _~/freebsd_ com [.filename]#ROADMAP.txt# e subdiretórios vazios, e nada acontecerá quando `svn update` for executado nos subdiretórios. No entanto, esse comando definirá a profundidade para _head_ (nesse caso) como infinito e o populará totalmente:
-[source,bash]
+[source,shell]
....
% svn update --set-depth=infinity head
....
@@ -648,14 +648,14 @@ Certas operações podem ser realizadas diretamente no repositório sem tocar na
A criação de uma branch é muito rápida. Este comando seria usado para criar a branch `RELENG_8`:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/head svn+ssh://repo.freebsd.org/base/stable/8
....
Isso equivale a esses comandos, que levam minutos e horas, em vez de segundos, dependendo da sua conexão de rede:
-[source,bash]
+[source,shell]
....
% svn checkout --depth=immediates svn+ssh://repo.freebsd.org/base
% cd base
@@ -691,7 +691,7 @@ Se você considerar o caso em que uma revisão altera várias partes separadas d
Mesclagens para as branches `stable/` devem originar-se da `head/`. Por exemplo:
-[source,bash]
+[source,shell]
....
svn merge -c r123456 ^/head/ stable/11
svn commit stable/11
@@ -699,7 +699,7 @@ svn commit stable/11
Mesclagens para as branches `releng/` devem sempre se originar da branch `stable/` correspondente. Por exemplo:
-[source,bash]
+[source,shell]
....
svn merge -c r123456 ^/stable/11 releng/11.0
svn commit releng/11.0
@@ -712,7 +712,7 @@ Os committers só podem se efetuar um commit para as branches `releng/` durante
Todas as mesclagens são mescladas e enviadas por commit a partir da raiz da branch. Todas as mesclagens se parecem com:
-[source,bash]
+[source,shell]
....
svn merge -cr123456 ^/head/checkout
svn commit checkout
@@ -720,7 +720,7 @@ svn commit checkout
Observe que _checkout_ deve ser uma verificação completa da branch na qual a mesclagem ocorre.
-[source,bash]
+[source,shell]
....
svn merge -c r123456 ^/stable/10 releng/10.0
....
@@ -729,7 +729,7 @@ svn merge -c r123456 ^/stable/10 releng/10.0
Devido aos problemas de propagação do mergeinfo descritos anteriormente, é muito importante nunca mesclar as alterações em uma cópia de trabalho esparsa. Sempre use um checkout completo do branch que está sendo mesclado. Por exemplo, ao mesclar de HEAD para 7, use um checkout completo de stable/7:
-[source,bash]
+[source,shell]
....
% cd stable/7
% svn up --set-depth=infinity
@@ -741,7 +741,7 @@ O diretório de destino também deve estar atualizado e não deve conter altera
Identificar revisões a serem mescladas é uma obrigação. Se o alvo já tiver mergeinfo completo, solicite uma lista para o `SVN`:
-[source,bash]
+[source,shell]
....
% cd stable/6/contrib/openpam
% svn mergeinfo --show-revs=eligible $FSVN/head/contrib/openpam
@@ -764,7 +764,7 @@ Por exemplo, para mesclar:
Supondo que as revisões $P e $Q já tenham sido mescladas e que o diretório atual seja uma cópia de trabalho atualizada de stable/$B, a mergeinfo existente será semelhante a:
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R $target
$target - /head/$source:$P,$Q
@@ -772,7 +772,7 @@ $target - /head/$source:$P,$Q
A mesclagem é feita assim:
-[source,bash]
+[source,shell]
....
% svn merge -c$R $FSVN/head/$source $target
....
@@ -781,7 +781,7 @@ A mesclagem é feita assim:
O svn:mergeinfo agora se parece com:
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R $target
$target - head/$source:$P,$Q,$R
@@ -795,14 +795,14 @@ Como um exemplo prático, considere este cenário. As alterações no [.filename
O primeiro passo é inspecionar o mergeinfo existente.
-[source,bash]
+[source,shell]
....
% svn propget svn:mergeinfo -R stable/9/shared/man/man4
....
Tome uma nota rápida de como ele se parece antes de avançar para o próximo passo; fazendo a mesclagem real:
-[source,bash]
+[source,shell]
....
% svn merge -c r238987 svn+ssh://repo.freebsd.org/base/head/shared/man/man4 stable/9/shared/man/man4
--- Merging r238987 into 'stable/9/shared/man/man4':
@@ -814,7 +814,7 @@ U stable/9/shared/man/man4/netmap.4
Verifique se o número de revisão da revisão mesclada foi adicionado. Quando isso for verificado, a única coisa que resta é o commit em si.
-[source,bash]
+[source,shell]
....
% svn commit stable/9/shared/man/man4
....
@@ -865,7 +865,7 @@ Durante a conversão do `CVS` para o Subversion, as branches do fornecedor foram
Para achatar a árvore do `pf`:
-[source,bash]
+[source,shell]
....
% cd vendor/pf/dist/contrib/pf
% svn mv $(svn list) ../..
@@ -883,7 +883,7 @@ As tags também podem ser achatadas (3, 4, 3.5 etc.); o procedimento é exatamen
A árvore `dist` pode ser limpa conforme necessário. A desativação da expansão de palavras-chave é recomendada, pois não faz sentido no código do fornecedor não modificado e, em alguns casos, pode até mesmo ser prejudicial. O OpenSSH, por exemplo, inclui dois arquivos que se originaram do FreeBSD e ainda contêm as tags da versão original. Para fazer isso:
-[source,bash]
+[source,shell]
....
% svn propdel svn:keywords -R .
% svn commit
@@ -893,7 +893,7 @@ A árvore `dist` pode ser limpa conforme necessário. A desativação da expans
Se estiver importando pela primeira vez após a mudança para o Subversion, faça o bootstrap do `svn:mergeinfo` no diretório de destino da árvore principal para a revisão que corresponde à última alteração relacionada à árvore do fornecedor, antes de importar novos fontes:
-[source,bash]
+[source,shell]
....
% cd head/contrib/pf
% svn merge --record-only svn+ssh://repo.freebsd.org/base/vendor/pf/dist@180876 .
@@ -910,7 +910,7 @@ O Subversion é capaz de armazenar uma distribuição completa na árvore do for
Um `svn add` é necessário para adicionar quaisquer arquivos que foram adicionados desde a última importação do fornecedor, e o `svn rm` é necessário para remover todos os que foram removidos desde então. Recomenda-se a preparação de listas ordenadas do conteúdo da árvore do fornecedor e das fontes que serão importadas, para facilitar o processo.
-[source,bash]
+[source,shell]
....
% cd vendor/pf/dist
% svn list -R | grep -v '/$' | sort >../old
@@ -924,7 +924,7 @@ Com esses dois arquivos, o `comm -23 ../old ../new` listará os arquivos removid
Agora, os fontes devem ser copiados para [.filename]#dist# e os comandos `svn add` e `svn rm` são usados conforme necessário:
-[source,bash]
+[source,shell]
....
% cd vendor/pf/pf-4.3
% tar cf - . | tar xf - -C ../dist
@@ -943,7 +943,7 @@ Agora é possível fazer o commit. No entanto, é uma boa prática certificar-se
Depois de realizado o commit, as versões do fornecedor são marcadas para referência futura. A melhor e mais rápida maneira de fazer isso é diretamente no repositório:
-[source,bash]
+[source,shell]
....
% svn cp svn+ssh://repo.freebsd.org/base/vendor/pf/dist svn+ssh://repo.freebsd.org/base/vendor/pf/4.3
....
@@ -952,7 +952,7 @@ Quando isso estiver concluído, execute o `svn up` para a cópia de trabalho do
Se você criar a tag na cópia de trabalho da árvore, os resultados do `svn:mergeinfo` deverão ser removidos:
-[source,bash]
+[source,shell]
....
% cd vendor/pf
% svn cp dist 4.3
@@ -961,7 +961,7 @@ Se você criar a tag na cópia de trabalho da árvore, os resultados do `svn:mer
===== Mesclagem para o Head
-[source,bash]
+[source,shell]
....
% cd head/contrib/pf
% svn up
@@ -974,7 +974,7 @@ O `--accept=postpone` diz ao Subversion para não reclamar sobre conflitos de me
====
A mudança do `cvs2svn` ocorreu em 3 de junho de 2008. Ao realizar mesclagens de fornecedores para pacotes que já estavam presentes e convertidos pelo processo `cvs2svn`, o comando usado para mesclar [.filename]#/vendor/package_name/dist# para [.filename]#/head/package_location# (por exemplo, [.filename]#head/contrib/sendmail#) deve usar `-c _REV_` para indicar a revisão a ser mesclada a partir da árvore [.filename]#/vendor#. Por exemplo:
-[source,bash]
+[source,shell]
....
% svn checkout svn+ssh://repo.freebsd.org/base/head/contrib/sendmail
% cd sendmail
@@ -993,7 +993,7 @@ Se estiver usando o shell Zsh, o `^` deve ser escapado com `\` ou entre aspas.
Certifique-se de que todos os arquivos adicionados ou removidos na árvore do fornecedor tenham sido adicionados ou removidos corretamente na árvore principal. Para verificar os diffs com relação ao branch do fornecedor:
-[source,bash]
+[source,shell]
....
% svn diff --no-diff-deleted --old=svn+ssh://repo.freebsd.org/base/vendor/pf/dist --new=.
....
@@ -1016,7 +1016,7 @@ Esta seção é um exemplo de importação e marcação do byacc no [.filename]#
Primeiro, prepare o diretório em [.filename]#vendor#:
-[source,bash]
+[source,shell]
....
% svn co --depth immediates $FSVN/vendor
% cd vendor
@@ -1026,7 +1026,7 @@ Primeiro, prepare o diretório em [.filename]#vendor#:
Agora, importe os fontes para o diretório [.filename]#dist#. Uma vez que os arquivos estiverem no lugar, faça o `svn add` dos novos, e então faça o `svn commit` e aplique a tag na versão importada. Para poupar tempo e largura de banda, é possível efetuar diretamente o commit e as marcações de forma remota:
-[source,bash]
+[source,shell]
....
% svn cp -m "Tag byacc 20120115" $FSVN/vendor/byacc/dist $FSVN/vendor/byacc/20120115
....
@@ -1035,7 +1035,7 @@ Agora, importe os fontes para o diretório [.filename]#dist#. Uma vez que os arq
Devido a este ser um novo arquivo, copie-o para a mesclagem:
-[source,bash]
+[source,shell]
....
% svn cp -m "Import byacc to contrib" $FSVN/vendor/byacc/dist $FSVN/head/contrib/byacc
....
@@ -1047,7 +1047,7 @@ Ainda é possível trabalhar normalmente nos fontes recém importados.
A reversão de um commit para uma versão anterior é bem fácil:
-[source,bash]
+[source,shell]
....
% svn merge -r179454:179453 ROADMAP.txt
% svn commit
@@ -1055,7 +1055,7 @@ A reversão de um commit para uma versão anterior é bem fácil:
Alterar a sintaxe do número, com o negativo significando a reversão de uma mudança, também pode ser usado:
-[source,bash]
+[source,shell]
....
% svn merge -c -179454 ROADMAP.txt
% svn commit
@@ -1063,7 +1063,7 @@ Alterar a sintaxe do número, com o negativo significando a reversão de uma mud
Isso também pode ser feito diretamente no repositório:
-[source,bash]
+[source,shell]
....
% svn merge -r179454:179453 svn+ssh://repo.freebsd.org/base/ROADMAP.txt
....
@@ -1075,7 +1075,7 @@ Isso também pode ser feito diretamente no repositório:
A reversão da exclusão de um arquivo é um pouco diferente. É necessário copiar a versão do arquivo que antecede a exclusão. Por exemplo, para restaurar um arquivo que foi excluído na revisão N, restaure a versão N-1:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/ROADMAP.txt@179454
% svn commit
@@ -1083,7 +1083,7 @@ A reversão da exclusão de um arquivo é um pouco diferente. É necessário cop
ou, igualmente:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/ROADMAP.txt@179454 svn+ssh://repo.freebsd.org/base
....
@@ -1120,7 +1120,7 @@ Uma maneira de limitar o tempo necessário é pegar um arquivo de https://downlo
Extraia o arquivo e o atualize:
-[source,bash]
+[source,shell]
....
% tar xf svnmirror-base-r261170.tar.xz
% svnsync sync file:///home/svnmirror/base
@@ -1130,7 +1130,7 @@ Agora, configure isso para executar a partir do man:cron[8], faça checkouts loc
O mirror seed está definido para buscar o conteúdo a partir de `svn://svn.freebsd.org/base`. A configuração para o mirror é armazenada em `revprop 0` no mirror local. Para ver a configuração, tente:
-[source,bash]
+[source,shell]
....
% svn proplist -v --revprop -r 0 file:///home/svnmirror/base
....
@@ -1142,7 +1142,7 @@ Use `svn propset` para mudar as coisas.
Os arquivos que possuem bits high-ASCII são considerados arquivos binários no `SVN`, portanto, as verificações de pré-commit falham e indicam que a propriedade `mime-type` deve ser definida como `application/octet-stream`. No entanto, o uso deste é desencorajado, por isso, não o defina. A melhor maneira é sempre evitar dados high-ASCII, para que possam ser lidos em qualquer lugar com qualquer editor de texto, mas se não for possivel evitar, em vez de alterar o mime-type, defina a propriedade `fbsd:notbinary` com o `propset`:
-[source,bash]
+[source,shell]
....
% svn propset fbsd:notbinary yes foo.data
....
@@ -1156,14 +1156,14 @@ Como explicado em https://people.FreeBSD.org/\~peter/svn_notes.txt[https://peopl
Para criar um branch de projeto:
-[source,bash]
+[source,shell]
....
% svn copy svn+ssh://repo.freebsd.org/base/head svn+ssh://repo.freebsd.org/base/projects/spif
....
Para mesclar as alterações do HEAD de volta ao branch de projeto:
-[source,bash]
+[source,shell]
....
% cd copy_of_spif
% svn merge svn+ssh://repo.freebsd.org/base/head
@@ -1178,7 +1178,7 @@ Nos logs de commit, etc., "rev 179872" é soletrado "r179872" conforme a conven
É possível acelerar o svn adicionando estas entradas ao [.filename]#~/.ssh/config#:
-[source,bash]
+[source,shell]
....
Host *
ControlPath ~/.ssh/sockets/master-l-r@h:p
@@ -1188,14 +1188,14 @@ ControlPersist yes
e depois digitando
-[source,bash]
+[source,shell]
....
mkdir ~/.ssh/sockets
....
Fazer o check-out de uma cópia de trabalho com um cliente Subversion padrão sem patches específicos do FreeBSD (`OPTIONS_SET=FREEBSD_TEMPLATE`) significará que as tags `$FreeBSD: head/pt_BR.ISO8859-1/articles/committers-guide/article.xml 53731 2020-01-01 14:37:53Z ebrandi $` não serão expandidas. Uma vez que a versão correta foi instalada, engane o Subversion para expandi-las da seguinte forma:
-[source,bash]
+[source,shell]
....
% svn propdel -R svn:keywords .
% svn revert -R .
@@ -1461,14 +1461,14 @@ O nome e endereço de e-mail da pessoa ou pessoas que aprovaram a alteração; p
Enquanto estiver sob orientação, obtenha aprovação do mentor antes do commit. Digite o nome de usuário do mentor neste campo e adicione uma nota de que ele é um mentor:
-[source,bash]
+[source,shell]
....
Approved by: username-of-mentor (mentor)
....
Se uma equipe aprovou esses commits, inclua o nome da equipe seguido do nome de usuário do aprovador entre parênteses. Por exemplo:
-[source,bash]
+[source,shell]
....
Approved by: re (username)
....
@@ -2037,7 +2037,7 @@ A maneira mais fácil de adicionar um novo port é o script `addport` localizado
Verifique o port, de preferência para garantir que ele seja compilado e empacotado corretamente. Essa é a seqüência recomendada:
-[source,bash]
+[source,shell]
....
# make install
# make package
diff --git a/documentation/content/pt-br/articles/contributing/_index.adoc b/documentation/content/pt-br/articles/contributing/_index.adoc
index dcfc565770..d4650dd374 100644
--- a/documentation/content/pt-br/articles/contributing/_index.adoc
+++ b/documentation/content/pt-br/articles/contributing/_index.adoc
@@ -129,14 +129,14 @@ Supondo que você consiga obter acesso à uma versão razoavelmente atualizada d
O formato preferido do man:diff[1] para o envio de um patch, é o formato de saída unificada gerado pelo comando `diff -u`.
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
ou
-[source,bash]
+[source,shell]
....
% diff -u -r -N olddir newdir
....
diff --git a/documentation/content/pt-br/articles/cups/_index.adoc b/documentation/content/pt-br/articles/cups/_index.adoc
index 6b128d80e7..29accc4936 100644
--- a/documentation/content/pt-br/articles/cups/_index.adoc
+++ b/documentation/content/pt-br/articles/cups/_index.adoc
@@ -47,7 +47,7 @@ O site do CUPS é http://www.cups.org/[http://www.cups.org/].
Para instalar o CUPS utilizando binários pré compilados, execute o seguinte comando como root a partir de um terminal:
-[source,bash]
+[source,shell]
....
# pkg install cups
....
@@ -92,7 +92,7 @@ application/octet-stream
Uma vez que estas alterações tenham sido feitas, os sistemas man:devfs[8] e CUPS deverão ser reiniciados, seja reiniciando o computador ou executando os dois comandos a seguir como root em um terminal:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
# /usr/local/etc/rc.d/cupsd restart
diff --git a/documentation/content/pt-br/articles/filtering-bridges/_index.adoc b/documentation/content/pt-br/articles/filtering-bridges/_index.adoc
index 7bef9d853c..565e708eaa 100644
--- a/documentation/content/pt-br/articles/filtering-bridges/_index.adoc
+++ b/documentation/content/pt-br/articles/filtering-bridges/_index.adoc
@@ -112,7 +112,7 @@ Se houver algum problema, você deve resolvê-los agora antes de prosseguir.
Neste ponto, para habilitar a ponte, você tem que executar os seguintes comandos (tendo a perspicácia para substituir os nomes das duas interfaces de rede [.filename]#fxp0# e [.filename]#xl0# com as suas próprias):
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.config=fxp0:0,xl0:0
# sysctl net.link.ether.bridge.ipfw=1
diff --git a/documentation/content/pt-br/articles/fonts/_index.adoc b/documentation/content/pt-br/articles/fonts/_index.adoc
index 12e20cece1..64095c3bbe 100644
--- a/documentation/content/pt-br/articles/fonts/_index.adoc
+++ b/documentation/content/pt-br/articles/fonts/_index.adoc
@@ -105,7 +105,7 @@ font8x8="iso-8x8" # font 8x8 from /usr/shared/syscons/fonts/* (or NO).
O comando para alterar o modo é man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
% vidcontrol VGA_80x60
....
@@ -128,7 +128,7 @@ O X11 pode tanto usar o formato [.filename]#.pfa# quanto o formato [.filename]#.
Já existe um diretório chamado [.filename]#Type1#. A forma mais direta de adicionar uma nova fonte é colocá-la nesse diretório. Uma forma melhor seria colocar todas as novas fontes num diretório separado e usar um link simbólico para as fontes adicionais. Isso permite identificar as fontes sem confundir com aquelas que são originalmente fornecidas. Por exemplo:
-[source,bash]
+[source,shell]
....
Cria um diretório para armazenar os arquivos de fonte
% mkdir -p /usr/local/shared/fonts/type1
@@ -163,7 +163,7 @@ Agora, para usar a nova fonte com o X11, deve-se tornar os arquivos de fonte dis
Um novo nome precisa ser criado para cada nova fonte. Se você possui alguma informação na documentação que acompanha a fonte, então isso pode servir de base para a criação do nome. Se não há informação, então você pode ter alguma idéia usando man:strings[1] no arquivo da fonte. Por exemplo:
-[source,bash]
+[source,shell]
....
% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
@@ -194,7 +194,7 @@ end readonly def
Usando essas informações, um possível nome poderia ser:
-[source,bash]
+[source,shell]
....
-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
....
@@ -224,7 +224,7 @@ proporcional ou monoespaçada. A opção _Poporcional_ é usada quando o _isFixe
Todos esses nomes são arbitrários, mas deve-se tentar ser compatível com as convenções existentes. A fonte é referenciada pelo nome com possíveis curingas pelo programa X11, então o nome escolhido tem que fazer algum sentido. Pode-se começar simplesmente usando
-[source,bash]
+[source,shell]
....
…-normal-r-normal-…-p-…
....
@@ -233,7 +233,7 @@ como o nome, e então usar man:xfontsel[1] para examiná-lo e ajustar o nome com
Então, para completar nosso exemplo:
-[source,bash]
+[source,shell]
....
Torne a fonte acessível para o X11
% cd /usr/X11R6/lib/X11/fonts/Type1
@@ -268,7 +268,7 @@ Referências: man:xfontsel[1], man:xset[1], The X Windows System in a Nutshell,
O Ghostscript referencia uma fonte via seu arquivo de [.filename]#Fontmap#. Este deve ser modificado de uma maneira similar a feita para o arquivo [.filename]#fonts.dir# do X11. O Ghostscript pode usar tanto o formato [.filename]#.pfa# quanto o [.filename]#.pfb#. Usando a fonte do exemplo anterior, segue um passo a passo de como utilizá-la com o Ghostscript:
-[source,bash]
+[source,shell]
....
Coloque a fonte no diretório do Ghostscript
% cd /usr/local/shared/ghostscript/fonts
@@ -308,7 +308,7 @@ Agora que a nova fonte pode ser utilizada tanto pelo X11 quanto pelo Ghostscript
A primeira ferramenta é o `afmtodit`. Ela normalmente não está instalada, então deve ser baixada de uma fonte de distribuição. Eu percebi que teria que mudar a primeira linha do arquivo, então eu fiz:
-[source,bash]
+[source,shell]
....
% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
@@ -320,7 +320,7 @@ A primeira ferramenta é o `afmtodit`. Ela normalmente não está instalada, ent
Essa ferramenta irá criar o arquivo de fontes do Groff a partir dos arquivos de métrica ([.filename]#.afm# suffix.) Continuando com nosso exemplo:
-[source,bash]
+[source,shell]
....
Muitos arquivos .afm estão no formato do Mac, com ^M delimitando as linhas
Nós temos que convertê-los para o estilo UNIX que delimita as linhas com ^J
@@ -337,7 +337,7 @@ A fonte agora pode ser referenciada pelo nome SHOWBOAT.
Se o Ghostscript é utilizado para impressão com driver simulado no sistema, então não precisa fazer mais nada. Entretanto, se as impressoras usam PostScript(R) real, então a fonte deve ser baixada pela impressora de maneira que a fonte a ser utilizada (a menos que a impressora tenha a fonte showboat embutida ou acessível a partir de um disco de fontes.) O passo final é criar uma fonte descarregável. A ferramenta `pfbtops` é usada para criar o formato [.filename]#.pfa# da fonte, e o arquivo para [.filename]#download# é modificado para referenciar a nova fonte. O arquivo para [.filename]#download# deve referenciar o nome interno da fonte. Isso pode ser facilmente determinado de um arquivo de fonte groff conforme demonstrado:
-[source,bash]
+[source,shell]
....
Criando o arquivo de fonte .pfa
@@ -346,7 +346,7 @@ Criando o arquivo de fonte .pfa
Claro que, se o arquivo [.filename]#.pfa# já existe, apenas crie um link simbólico para referenciá-lo.
-[source,bash]
+[source,shell]
....
Obtendo o nome interno da fonte
@@ -363,7 +363,7 @@ Showboat showboat.pfa
Para testar a fonte:
-[source,bash]
+[source,shell]
....
% cd /tmp
@@ -432,7 +432,7 @@ Se você é paranóico sobre o trabalhar no diretório [.filename]#/usr/src#, si
+
Na área de trabalho, você precisará compilar o utilitário. Apenas digite:
+
-[source,bash]
+[source,shell]
....
# make -f Makefile.sub afmtodit
....
@@ -443,7 +443,7 @@ Depois que todos esses utilitários estiverem no lugar, você está pronto para
. Crie o arquivo [.filename]#.afm# digitando:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -q -- ttf2pf.ps TTF_name PS_font_name AFM_name
....
@@ -454,7 +454,7 @@ Isso também produz um arquivo [.filename]#.pfa#, o arquivo ascii de métricas d
+
Por exemplo, para converter a fonte de código de barras 30f9 usando o nome de arquivo padrão, use o seguinte comando:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -465,7 +465,7 @@ Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
+
Se você quiser que as fontes convertidas sejam armazenadas em [.filename]#A.pfa# e [.filename]#B.afm#, use este comando:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -478,14 +478,14 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
Vá para o diretório [.filename]#/usr/shared/groff_font/devps# para facilitar a execução do comando abaixo. Você provavelmente precisará de privilégios de root para isso. (Ou, se você é paranoico sobre trabalhar lá, certifique-se de referenciar os arquivos [.filename]#DESC#, [.filename]#text.enc# e [.filename]#generate/textmap# como estando neste diretório.)
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc file.afm generate/textmap PS_font_name
....
+
Onde, [.filename]#file.afm# é o _AFM_name_ criado pelo `ttf2pf.ps` acima e _PS_font_name_ é o nome da fonte usada a partir desse comando, bem como o nome que man:groff[1] usará para referências a essa fonte. Por exemplo, supondo que você usou o primeiro comando `tiff2pf.ps` acima, a fonte 3of9 Barcode pode ser criada usando o comando:
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc 3of9.afm generate/textmap 3of9
....
diff --git a/documentation/content/pt-br/articles/freebsd-questions/_index.adoc b/documentation/content/pt-br/articles/freebsd-questions/_index.adoc
index 524e6aefc1..c20ca695dc 100644
--- a/documentation/content/pt-br/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/pt-br/articles/freebsd-questions/_index.adoc
@@ -165,7 +165,7 @@ Há uma chamada de julgamento aqui, é claro, mas a saída do comando man:dmesg[
* Muitas das informações que você precisa fornecer são a saída de programas, como man:dmesg[8], ou mensagens do console, que geralmente aparecem em [.filename]#/var/log/messages#. Não tente copiar essa informação digitando-a novamente; é um sofrimento real e você está fadado a cometer um erro. Para enviar o conteúdo do arquivo de log, faça uma cópia do arquivo e use um editor para reduzir as informações apenas ao que for relevantes ou copie e cole na sua mensagem. Para a saída de programas como man:dmesg[8], redirecione a saída para um arquivo e inclua-o. Por exemplo,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/pt-br/articles/freebsd-releng/_index.adoc b/documentation/content/pt-br/articles/freebsd-releng/_index.adoc
index 1ffbbd0b7d..93337b1677 100644
--- a/documentation/content/pt-br/articles/freebsd-releng/_index.adoc
+++ b/documentation/content/pt-br/articles/freebsd-releng/_index.adoc
@@ -340,7 +340,7 @@ Veja <<releng-building>> para informações sobre como construir as imagens `ALP
Ao criar a branch `stable/`, várias alterações são necessárias na nova branch `stable/` e na branch `head/`. Os arquivos listados são relativos ao repositório raiz. Para criar a nova branch `stable/_12_/` no Subversion:
-[source,bash]
+[source,shell]
....
% svn cp ^/head stable/12/
....
@@ -359,7 +359,7 @@ Uma vez que a branch `stable/_12_/` tenha sido criada, faça as seguintes ediç
|[.filename]#stable/12/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h#
a|
-[source,bash]
+[source,shell]
....
#ifndef MALLOC_PRODUCTION
#define MALLOC_PRODUCTION
@@ -495,7 +495,7 @@ Feito isso, o primeiro conjunto de builds `BETA` é iniciado. Builds `BETA` subs
Quando a primeira construção `RC` (Release Candidate) está pronta para começar, a branch `releng/` é criada. Este é um processo de várias etapas que deve ser feito em uma ordem específica, a fim de evitar anomalias, como sobreposições com valores de `__FreeBSD_version`, por exemplo. Os caminhos listados abaixo são relativos ao repositório raiz. A ordem dos commits e o que mudar são:
-[source,bash]
+[source,shell]
....
% svn cp ^/stable/12/ releng/12.0/
....
@@ -528,7 +528,7 @@ Quando a primeira construção `RC` (Release Candidate) está pronta para começ
|Adicione uma nova linha de aprovadores para a branch releng como foi feito para a branch stable
|===
-[source,bash]
+[source,shell]
....
% svn propdel -R svn:mergeinfo releng/12.0/
% svn commit releng/12.0/
@@ -560,7 +560,7 @@ Antes do FreeBSD 9.2-RELEASE, foi introduzido o [.filename]#src/release/release.
Como um breve exemplo do uso de [.filename]#src/release/release.sh# para construir uma única versão em [.filename]#/scratch#:
-[source,bash]
+[source,shell]
....
# /bin/sh /usr/src/release/release.sh
....
@@ -578,7 +578,7 @@ KERNEL="GENERIC64"
Em seguida, invoque [.filename]#src/release/release.sh# da seguinte forma:
-[source,bash]
+[source,shell]
....
# /bin/sh /usr/src/release/release.sh -c $HOME/release.conf
....
@@ -632,7 +632,7 @@ Como o [.filename]#thermite.sh# percorre a lista principal de combinações e lo
Assumindo esses caminhos do sistema de arquivos, o [.filename]#thermite.sh# deveria ser chamado como:
-[source,bash]
+[source,shell]
....
# cd /releng/scripts-snapshot/scripts
# ./setrev.sh -b stable/12/
@@ -642,7 +642,7 @@ Assumindo esses caminhos do sistema de arquivos, o [.filename]#thermite.sh# deve
Quando as compilações forem concluídas, scripts adicionais auxiliares estarão disponíveis para gerar e-mails de snapshots de desenvolvimento que são enviados para a lista de e-mail `freebsd-snapshots@freebsd.org`:
-[source,bash]
+[source,shell]
....
# cd /releng/scripts-snapshot/scripts
# ./get-checksums.sh -c ./builds-12.conf | ./generate-email.pl > snapshot-12-mail
@@ -671,7 +671,7 @@ Durante o ciclo de release, uma cópia do [.filename]#CHECKSUM.SHA512# e do [.fi
Depois de construir a `RELEASE` final, a branch `releng/_12.0_/` é marcada como `release/_12.0.0_/` usando a revisão a partir da qual a `RELEASE` foi construída. Semelhante a criar as branches `stable/_12_/` e `releng/_12.0_/`, isso é feito com `svn cp`. Da raiz do repositório:
-[source,bash]
+[source,shell]
....
% svn cp ^/releng/12.0/@r306420 release/12.0.0/
% svn commit release/12.0.0/
@@ -691,7 +691,7 @@ A preparação dos snapshots e das versões do FreeBSD é um processo de duas pa
+
Se `EVERYTHINGISFINE` for definido nos arquivos de configuração de compilação, [.filename]#main.conf# no caso dos scripts de compilação mencionados acima, isto acontece automaticamente no man:chroot[8] após a compilação ser concluída, criando a estrutura de diretório em [.filename]#${DESTDIR}/R/ftp-stage# com um estrutura de caminho que corresponde ao que é esperado em `ftp-master`. Isto é equivalente a executar o seguinte diretamente no man:chroot[8]:
+
-[source,bash]
+[source,shell]
....
# make -C /usr/src/release -f Makefile.mirrors EVERYTHINGISFINE=1 ftp-stage
....
@@ -725,7 +725,7 @@ Assim como nas etapas de preparação, isto requer acesso em nível de `root`, j
Como o usuário `archive`:
-[source,bash]
+[source,shell]
....
% cd /archive/tmp/snapshots
% pax -r -w -l . /archive/pub/FreeBSD/snapshots
diff --git a/documentation/content/pt-br/articles/freebsd-update-server/_index.adoc b/documentation/content/pt-br/articles/freebsd-update-server/_index.adoc
index a999a42a73..c55d28bbcf 100644
--- a/documentation/content/pt-br/articles/freebsd-update-server/_index.adoc
+++ b/documentation/content/pt-br/articles/freebsd-update-server/_index.adoc
@@ -67,7 +67,7 @@ No mínimo, as atualizações requerem a criação de uma versão do FreeBSD mai
Faça o download do software https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] instalando package:devel/subversion[] e package:security/ca_root_nss[], e execute:
-[source,bash]
+[source,shell]
....
% svn co https://svn.freebsd.org/base/user/cperciva/freebsd-update-build freebsd-update-server
....
@@ -108,7 +108,7 @@ Personalizações para o código de `fetchiso()` podem ser instaladas copiando o
<.> O nome do host em construção. Esta informação será exibida em sistemas atualizados ao executar:
+
-[source,bash]
+[source,shell]
....
% uname -v
....
@@ -125,7 +125,7 @@ O arquivo padrão [.filename]#build.conf# fornecido com o código-fonte do freeb
[.procedure]
. Crie um ambiente de compilação para o amd64:
+
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/scripts/7.2-RELEASE/amd64
....
@@ -150,7 +150,7 @@ export EOL=1275289200 <.>
<.> A chave man:sha256[1] usada para fazer o hash para a release desejada é publicada no respectivo https://www.FreeBSD.org/releases/[anúncio de release].
<.> Para gerar o número "End of Life" para o [.filename]#build.conf#, consulte o "EOL estimado" publicado no https://www.FreeBSD.org/security/[Site de Segurança do FreeBSD]. O valor de `EOL` pode ser derivado da data listada no site, usando o utilitário man:date[1], por exemplo:
+
-[source,bash]
+[source,shell]
....
% date -j -f '%Y%m%d-%H%M%S' '20090401-000000' '+%s'
....
@@ -160,7 +160,7 @@ export EOL=1275289200 <.>
O primeiro passo é executar o [.filename]#scripts/make.sh#. Isso criará alguns binários, criará diretórios e irá gerar uma chave de assinatura RSA usada para aprovar as compilações. Nesta etapa, uma senha terá que ser fornecida para a criação final da chave de assinatura.
-[source,bash]
+[source,shell]
....
# sh scripts/make.sh
cc -O2 -fno-strict-aliasing -pipe findstamps.c -o findstamps
@@ -190,7 +190,7 @@ Mantenha um backup do fingerprint gerado. Este valor é necessário para o arqui
Neste ponto, estamos prontos para montar uma construção.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/init.sh amd64 7.2-RELEASE
@@ -198,7 +198,7 @@ Neste ponto, estamos prontos para montar uma construção.
O que se segue é uma amostra de uma execução da compilação __inicial__.
-[source,bash]
+[source,shell]
....
# sh scripts/init.sh amd64 7.2-RELEASE
Mon Aug 24 16:04:36 PDT 2009 Starting fetch for FreeBSD/amd64 7.2-RELEASE
@@ -247,7 +247,7 @@ Então a compilação do world é executada novamente, com patches para world. U
Durante este segundo ciclo de compilação, o daemon do protocolo de tempo de rede, man:ntpd[8], é desativado. Segundo o Colin Percival mailto:cperciva@FreeBSD.org[cperciva@FreeBSD.org], Oficial de segurança emérito do FreeBSD, "a compilação do código do https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/[freebsd-update-server] precisa identificar os timestamps que são armazenados nos arquivos para que possam ser ignorados ao comparar builds para determinar quais arquivos precisam ser atualizados. Essa busca de timestamp trabalha com duas construções com 400 dias de diferença e compara os resultados."
====
-[source,bash]
+[source,shell]
....
Mon Aug 24 17:54:07 PDT 2009 Extracting world+src for FreeBSD/amd64 7.2-RELEASE
Wed Sep 29 00:54:34 UTC 2010 Building world for FreeBSD/amd64 7.2-RELEASE
@@ -286,7 +286,7 @@ world|base|/usr/lib/libalias_ftp.a
Finalmente, a construção é concluída.
-[source,bash]
+[source,shell]
....
Values of build stamps, excluding library archive headers:
v1.2 (Aug 25 2009 00:40:36)
@@ -324,13 +324,13 @@ to sign the release.
Aprove a compilação se tudo estiver correto. Mais informações sobre como determinar isso podem ser encontradas no arquivo fonte distribuído chamado [.filename]#USAGE#. Execute [.filename]#scripts/approve.sh#, conforme indicado. Isso assinará a release e moverá os componentes para uma área de preparação adequada para o upload.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/mountkey.sh
....
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.2-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.2-RELEASE
@@ -342,7 +342,7 @@ Wed Aug 26 12:50:07 PDT 2009 Cleaning staging area for FreeBSD/amd64 7.2-RELEASE
Após o processo de aprovação ser concluído, o procedimento de upload pode ser iniciado.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.2-RELEASE
@@ -352,7 +352,7 @@ Após o processo de aprovação ser concluído, o procedimento de upload pode se
====
No caso de o código de atualização precisar ser reenviado, isso pode ser feito mudando para o diretório de distribuições públicas para o release alvo e atualizando os atributos do arquivo __carregado__.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server/pub/7.2-RELEASE/amd64
# touch -t 200801010101.01 uploaded
@@ -385,7 +385,7 @@ Algumas suposições são feitas para uma versão diferente:
Crie o diretório de correção do respectivo release no diretório [.filename]#/usr/local/freebsd-update-server/patches/#.
-[source,bash]
+[source,shell]
....
% mkdir -p /usr/local/freebsd-update-server/patches/7.1-RELEASE/
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE
@@ -395,7 +395,7 @@ Como exemplo, pegue o patch para man:named[8]. Leia o comunicado, e pegue o arqu
No https://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.asc[resumo de segurança], este comunicado é chamado `SA-09:12.bind`. Depois de baixar o arquivo, é necessário renomear o arquivo para um nível de correção apropriado. Sugere-se manter isso consistente com os níveis oficiais de correção do FreeBSD, mas seu nome pode ser escolhido livremente. Para esta compilação, vamos seguir a prática atualmente estabelecida do FreeBSD e chamar isso de `p7`. Renomeie o arquivo:
-[source,bash]
+[source,shell]
....
% cd /usr/local/freebsd-update-server/patches/7.1-RELEASE/; mv bind.patch 7-SA-09:12.bind
@@ -415,7 +415,7 @@ Cabe ao administrador do Servidor de Atualização do FreeBSD tomar as medidas a
Neste ponto, um _diff_ está pronto para ser construído. O software verifica primeiro para ver se um [.filename]#scripts/init.sh# foi executado na respectiva versão antes de executar a construção do diff.
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/diff.sh amd64 7.1-RELEASE 7
@@ -423,7 +423,7 @@ Neste ponto, um _diff_ está pronto para ser construído. O software verifica pr
O que se segue é um exemplo de uma execução de uma compilação __diferencial__.
-[source,bash]
+[source,shell]
....
# sh -e scripts/diff.sh amd64 7.1-RELEASE 7
Wed Aug 26 10:09:59 PDT 2009 Extracting world+src for FreeBSD/amd64 7.1-RELEASE-p7
@@ -500,7 +500,7 @@ Wed Aug 26 17:20:39 UTC 2009
As atualizações são impressas e a aprovação é solicitada.
-[source,bash]
+[source,shell]
....
New updates:
kernel|generic|/GENERIC/kernel.symbols|f|0|0|0555|0|7c8dc176763f96ced0a57fc04e7c1b8d793f27e006dd13e0b499e1474ac47e10|
@@ -522,7 +522,7 @@ to sign the build.
Siga o mesmo processo descrito anteriormente para aprovar uma compilação:
-[source,bash]
+[source,shell]
....
# sh -e scripts/approve.sh amd64 7.1-RELEASE
Wed Aug 26 12:50:06 PDT 2009 Signing build for FreeBSD/amd64 7.1-RELEASE
@@ -540,7 +540,7 @@ the new builds.
Depois de aprovar a compilação, faça o upload do software:
-[source,bash]
+[source,shell]
....
# cd /usr/local/freebsd-update-server
# sh scripts/upload.sh amd64 7.1-RELEASE
diff --git a/documentation/content/pt-br/articles/gjournal-desktop/_index.adoc b/documentation/content/pt-br/articles/gjournal-desktop/_index.adoc
index 0d1979d303..3e5fcec4b3 100644
--- a/documentation/content/pt-br/articles/gjournal-desktop/_index.adoc
+++ b/documentation/content/pt-br/articles/gjournal-desktop/_index.adoc
@@ -163,28 +163,28 @@ Quando o sistema voltar a funcionar, estaremos prontos para configurar o journal
Tendo preparado todas as partições requeridas, é bastante fácil configurar o journaling. Nós precisaremos mudar para o modo de single user, então entre como `root` e digite:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Pressione kbd:[Enter] para obter o shell padrão. Nós precisaremos desmontar as partições que serão registradas no diário, no nosso exemplo [.filename]#/usr# e [.filename]#/var#:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Carregue o módulo necessário para o journaling:
-[source,bash]
+[source,shell]
....
# gjournal load
....
Agora, use suas anotações para determinar qual partição será usada para cada diário. Em nosso exemplo, [.filename]#/usr# é [.filename]#ad0s1f# e seu journal será [.filename]#ad0s1g#, enquanto [.filename]#/var# é [.filename]#ad0s1d# e será journaled para [.filename]#ad0s1h#. Os seguintes comandos são necessários:
-[source,bash]
+[source,shell]
....
# gjournal label ad0s1f ad0s1g
GEOM_JOURNAL: Journal 2948326772: ad0s1f contains data.
@@ -199,7 +199,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
====
Se o último setor de qualquer partição for usado, o `gjournal` retornará um erro. Você terá que executar o comando usando o sinalizador `-f` para forçar uma substituição, ou seja:
-[source,bash]
+[source,shell]
....
# gjournal label -f ad0s1d ad0s1h
....
@@ -209,7 +209,7 @@ Como esta é uma nova instalação, é altamente improvável que qualquer coisa
Neste ponto, dois novos dispositivos são criados, a saber [.filename]#ad0s1d.journal# e [.filename]#ad0s1f.journal#. Os quais representam as partições [.filename]#/var# e [.filename]#/usr# que temos que montar. Antes de montar, devemos definir o flag de Journal e limpar o flag de Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J enable -n disable ad0s1d.journal
tunefs: gjournal set
@@ -222,7 +222,7 @@ tunefs: soft updates cleared
Agora, monte os novos dispositivos manualmente em seus respectivos locais (note que agora podemos usar a opção de montagem `async`):
-[source,bash]
+[source,shell]
....
# mount -o async /dev/ad0s1d.journal /var
# mount -o async /dev/ad0s1f.journal /usr
@@ -250,7 +250,7 @@ geom_journal_load="YES"
Parabéns! Seu sistema está agora configurado para journaling. Você pode digitar `exit` para retornar ao modo multiusuário ou reinicializar para testar sua configuração (recomendado). Durante a inicialização, você verá mensagens como as seguintes:
-[source,bash]
+[source,shell]
....
ad0: 76293MB XEC XE800JD-00HBC0 08.02D08 at ata0-master SATA150
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -263,7 +263,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Após um encerramento não limpo, as mensagens variam ligeiramente, ou seja:
-[source,bash]
+[source,shell]
....
GEOM_JOURNAL: Journal ad0s1d consistent.
....
@@ -275,7 +275,7 @@ Isso geralmente significa que o man:gjournal[8] usou as informações no journal
Embora o procedimento acima seja necessário para partições que fazem uso de journaling e que já contêm dados, o journaling de uma partição vazia é um pouco mais fácil, uma vez que os dados e o journal provider podem ser armazenados na mesma partição. Por exemplo, suponha que um novo disco tenha sido instalado e uma nova partição [.filename]#/dev/ad1s1d# tenha sido criada. Criar o journal seria tão simples quanto:
-[source,bash]
+[source,shell]
....
# gjournal label ad1s1d
....
@@ -284,14 +284,14 @@ O tamanho do journal será 1 GB por padrão. Você pode ajustá-lo usando a opç
Por exemplo, para criar um journal de 2 GB, você poderia usar o seguinte comando:
-[source,bash]
+[source,shell]
....
# gjournal label -s 2G ad1s1d
....
Você pode criar um sistema de arquivos em sua nova partição e ativar o journaling usando a opção `-J`:
-[source,bash]
+[source,shell]
....
# newfs -J /dev/ad1s1d.journal
....
@@ -324,14 +324,14 @@ O journal provavelmente se enche antes que ele tenha a chance de ser enviado (de
Você esqueceu (ou escreveu incorretamente) a entrada em [.filename]#/boot/loader.conf#, ou existem erros no seu arquivo [.filename]#/etc/fstab#. Estes erros geralmente são fáceis de corrigir. Pressione kbd:[Enter] para acessar o shell padrão do modo single user. Em seguida, localize a raiz do problema:
-[source,bash]
+[source,shell]
....
# cat /boot/loader.conf
....
Se a entrada `geom_journal_load` estiver ausente ou incorreta, os dispositivos registrados nunca serão criados. Carregue o módulo manualmente, monte todas as partições e continue com a inicialização do modo multi usuário:
-[source,bash]
+[source,shell]
....
# gjournal load
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -354,28 +354,28 @@ Certo. Use o procedimento a seguir, que inverte as alterações. As partições
Faça login como `root` e alterne para o modo de usuário único:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Desmonte as partições journaled:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Sincronize os journals:
-[source,bash]
+[source,shell]
....
# gjournal sync
....
Pare os provedores de journaling:
-[source,bash]
+[source,shell]
....
# gjournal stop ad0s1d.journal
# gjournal stop ad0s1f.journal
@@ -383,7 +383,7 @@ Pare os provedores de journaling:
Limpe os metadados de journaling de todos os dispositivos usados:
-[source,bash]
+[source,shell]
....
# gjournal clear ad0s1d
# gjournal clear ad0s1f
@@ -393,7 +393,7 @@ Limpe os metadados de journaling de todos os dispositivos usados:
Limpe o sinalizador de journaling do sistema de arquivos e restaure a flag do Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J disable -n enable ad0s1d
tunefs: gjournal cleared
@@ -406,7 +406,7 @@ tunefs: soft updates set
Remonte os dispositivos antigos à mão:
-[source,bash]
+[source,shell]
....
# mount -o rw /dev/ad0s1d /var
# mount -o rw /dev/ad0s1f /usr
diff --git a/documentation/content/pt-br/articles/hubs/_index.adoc b/documentation/content/pt-br/articles/hubs/_index.adoc
index 166643e065..c98c5209ac 100644
--- a/documentation/content/pt-br/articles/hubs/_index.adoc
+++ b/documentation/content/pt-br/articles/hubs/_index.adoc
@@ -145,7 +145,7 @@ Como o número de clientes rsync terá um impacto significativo na performance d
Um exemplo de linha de comando para espelhar o FreeBSD pode ser verificada abaixo:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://ftp4.de.FreeBSD.org/FreeBSD/ /pub/FreeBSD/
....
@@ -159,7 +159,7 @@ O site do FreeBSD deve ser espelhado apenas via rsync.
Uma linha de comando para espelhar o site do FreeBSD pode parecer com:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/local/www/
....
@@ -169,14 +169,14 @@ Uma linha de comando para espelhar o site do FreeBSD pode parecer com:
Devido a exigências muito altas de largura de banda, armazenamento e administração, o Projeto FreeBSD decidiu não permitir espelhos públicos de pacotes. Para sites com muitas máquinas, pode ser vantajoso executar um proxy HTTP para fazer cache do man:pkg[8]. Alternativamente, pacotes específicos e suas dependências podem ser baixados executando algo assim:
-[source,bash]
+[source,shell]
....
% pkg fetch -d -o /usr/local/mirror vim
....
Quando esses pacotes forem baixados, os metadados do repositório devem ser gerados executando:
-[source,bash]
+[source,shell]
....
% pkg repo /usr/local/mirror
....
diff --git a/documentation/content/pt-br/articles/ipsec-must/_index.adoc b/documentation/content/pt-br/articles/ipsec-must/_index.adoc
index 048ef5a013..207ba80215 100644
--- a/documentation/content/pt-br/articles/ipsec-must/_index.adoc
+++ b/documentation/content/pt-br/articles/ipsec-must/_index.adoc
@@ -62,7 +62,7 @@ Também precisamos de uma maneira de capturar os dados brutos da rede. Um progra
O comando:
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -80,7 +80,7 @@ Aqui está o experimento:
. Na janela "segura", execute o comando UNIX(R) man:yes[1], que transmitirá o caractere `y`. Depois de um tempo, pare com isso. Alterne para a janela insegura e repita. Depois de um tempo, pare.
. Agora execute o <<code>> nos pacotes capturados. Você deve ver algo como o seguinte. O importante é notar que a conexão segura tem 93% (6,7) do valor esperado (7,18), e a conexão "normal" tem 29% (2,1) do valor esperado.
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
diff --git a/documentation/content/pt-br/articles/ldap-auth/_index.adoc b/documentation/content/pt-br/articles/ldap-auth/_index.adoc
index dbf00bf770..a449193e4c 100644
--- a/documentation/content/pt-br/articles/ldap-auth/_index.adoc
+++ b/documentation/content/pt-br/articles/ldap-auth/_index.adoc
@@ -70,7 +70,7 @@ Primeiro, instale o OpenLDAP:
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/net/openldap24-server
# make install clean
@@ -118,7 +118,7 @@ Os arquivos [.filename]#cert.crt#, [.filename]#cert.key# e [.filename]#cacert.cr
[example]
====
-[source,bash]
+[source,shell]
....
% openssl genrsa -out cert.key 1024
Generating RSA private key, 1024 bit long modulus
@@ -140,7 +140,7 @@ Por fim, a requisição de assinatura de certificado precisa ser assinada:
[example]
====
-[source,bash]
+[source,shell]
....
% openssl x509 -req -in cert.csr -days 365 -signkey cert.key -out cert.crt
Signature ok
@@ -161,7 +161,7 @@ slapd_enable="YES"
Em seguida, execute `/usr/local/etc/rc.d/slapd start`. Isso deve iniciar o OpenLDAP. Confirme que está escutando em 389 com
-[source,bash]
+[source,shell]
....
% sockstat -4 -p 389
ldap slapd 3261 7 tcp4 *:389 *:*
@@ -295,14 +295,14 @@ Com esta definição, o package:security/pam_ldap[] pesquisará todo o diretóri
Os usuários cujo shell não está em [.filename]#/etc/shells# não poderão efetuar login. Isto é particularmente importante quando o Bash é definido como o shell do usuário no servidor LDAP. O Bash não está incluído em uma instalação padrão do FreeBSD. Quando instalado a partir de um pacote ou port, ele está localizado em [.filename]#/usr/local/bin/bash#. Verifique se o caminho para o shell no servidor está definido corretamente:
-[source,bash]
+[source,shell]
....
% getent passwd username
....
Existem duas opções quando a saída mostra `/bin/bash` na última coluna. A primeira é alterar a entrada do usuário no servidor LDAP para [.filename]#/usr/local/bin/bash#. A segunda opção é criar um link simbólico no computador cliente LDAP para que o Bash seja encontrado no local correto:
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/bin/bash /bin/bash
....
@@ -437,7 +437,7 @@ ldappasswd -D uid="$USER",ou=people,dc=example,dc=org \
====
Esse script dificilmente faz qualquer verificação de erros, mas, o mais importante, é muito indiferente sobre como ele armazena suas senhas. Se você fizer algo assim, ajuste pelo menos o valor de sysctl `security.bsd.see_other_uids`:
-[source,bash]
+[source,shell]
....
# sysctl security.bsd.see_other_uids=0
....
@@ -649,7 +649,7 @@ Para criar uma autoridade de certificação, simplesmente precisamos de um certi
[example]
====
-[source,bash]
+[source,shell]
....
% openssl genrsa -out root.key 1024
% openssl req -new -key root.key -out root.csr
@@ -673,7 +673,7 @@ Para assinar a chave, use `-CA` e `-CAkey` em vez de `-signkey`:
[example]
====
-[source,bash]
+[source,shell]
....
% openssl x509 -req -dias 1024 \
-em servidor ldap-one.csr -CA root.crt -CAkey root.key \
diff --git a/documentation/content/pt-br/articles/leap-seconds/_index.adoc b/documentation/content/pt-br/articles/leap-seconds/_index.adoc
index 7e482f1a57..571e892063 100644
--- a/documentation/content/pt-br/articles/leap-seconds/_index.adoc
+++ b/documentation/content/pt-br/articles/leap-seconds/_index.adoc
@@ -66,7 +66,7 @@ Por favor, tente garantir que nada horrível acontecerá por causa do leap secon
É possível testar se um leap seconds será utilizado. Devido a natureza do NTP, o teste deve funcionar até 24 horas antes do lead seconds. Algumas da principais fontes de referência de tempo somente anunciam o leap seconds uma hora antes do evento. Consulte o daemon do NTP:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/pt-br/articles/linux-users/_index.adoc b/documentation/content/pt-br/articles/linux-users/_index.adoc
index dff0da5e07..e68fc61748 100644
--- a/documentation/content/pt-br/articles/linux-users/_index.adoc
+++ b/documentation/content/pt-br/articles/linux-users/_index.adoc
@@ -74,7 +74,7 @@ A lista completa da árvore de ports e dos pacotes pode ser encontrada https://w
Pacotes são aplicações pré-compiladas, os equivalentes no FreeBSD aos arquivos [.filename]#.deb# nos sistemas baseados no Debian/Ubuntu e aos arquivos [.filename]#.rpm# nos sistemas baseados no Fedora/Red Hat. Pacotes são instalados através do comando `pkg`. Por exemplo, o comando a seguir instala o Apache 2.4:
-[source,bash]
+[source,shell]
....
# pkg install apache24
....
@@ -90,7 +90,7 @@ A Coleção de Ports, algumas vezes referenciada como a árvore de ports, pode s
Para compilar um port, mude para o diretório do port e inicie o processo de compilação. O exemplo abaixo instala o Apache 2.4 através da Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make install clean
@@ -98,7 +98,7 @@ Para compilar um port, mude para o diretório do port e inicie o processo de com
Um dos benefícios de usar a árvore de ports para realizar a instalação de um software é a possibilidade de customizar as opções de instalação. O exemplo a seguir, especifica que o módulo mod_ldap também deve ser instalado:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache24
# make WITH_LDAP="YES" install clean
@@ -130,7 +130,7 @@ apache24_flags="-DSSL"
Uma vez que o serviço tenha sido habilitado no arquivo [.filename]#/etc/rc.conf#, ele pode ser inicializado sem a necessidade de uma reinicialização do sistema.
-[source,bash]
+[source,shell]
....
# service sshd start
# service apache24 start
@@ -138,7 +138,7 @@ Uma vez que o serviço tenha sido habilitado no arquivo [.filename]#/etc/rc.conf
Se o serviço não tiver sido habilitado, ele poderá ser inicializado a partir da linha de comando usando a opção `onestart`:
-[source,bash]
+[source,shell]
....
# service sshd onestart
@@ -149,7 +149,7 @@ Se o serviço não tiver sido habilitado, ele poderá ser inicializado a partir
Diferente da identificação genérica _ethX_ usada pelo Linux(R) para identificar a interface de rede, o FreeBSD usa o nome do driver seguido por um número. A seguinte saída do comando man:ifconfig[8] mostra duas interfaces de rede Intel(R) Pro 1000 ([.filename]#em0# e [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
@@ -249,7 +249,7 @@ Em algumas distribuições do Linux(R), você pode consultar o [.filename]#/proc
Por exemplo, use o seguinte comando para determinar se o encaminhamento de IP está ou não habilitado.
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -257,7 +257,7 @@ net.inet.ip.forwarding: 0
Use a opção `-a` para ver todas as variáveis do sistema:
-[source,bash]
+[source,shell]
....
% sysctl -a | more
@@ -265,7 +265,7 @@ Use a opção `-a` para ver todas as variáveis do sistema:
Se alguma aplicação necessitar do procfs, adicione a seguinte entrada no arquivo [.filename]#/etc/fstab#:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -274,7 +274,7 @@ Incluindo a opção `noauto` irá previnir que o [.filename]#/proc# seja montado
Para montar o sistema de arquivos sem reinicializar:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/pt-br/articles/mailing-list-faq/_index.adoc b/documentation/content/pt-br/articles/mailing-list-faq/_index.adoc
index 4a54dfd286..9afc8f3a37 100644
--- a/documentation/content/pt-br/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/pt-br/articles/mailing-list-faq/_index.adoc
@@ -112,7 +112,7 @@ Tente não usar MIME: muitas pessoas usam clientes de email que não se dão mui
* Verifique se o seu horário e fuso horário estão definidos corretamente. Isso pode parecer um pouco bobo, já que sua mensagem ainda chegará na lista, mas muitas das pessoas nestas listas recebem centenas de mensagens por dia. Eles frequentemente classificam as mensagens recebidas por assunto e por data, e se sua mensagem não vier antes da primeira resposta, eles podem assumir que eles perderam a mensagem e não se darão ao trabalho de procurar.
* Muitas das informações que você precisará fornecer referem-se a saída de programas, como man:dmesg[8], ou mensagens do console, que geralmente aparecem no [.filename]#/var/log/messages#. Não tente copiar essa informação digitando-a novamente; Isso será não só um sofrimento real, mas você é provavelmente irá cometer um erro. Para enviar o conteúdo do arquivo de log, faça uma cópia do arquivo e use um editor para reduzi-lo às informações relevantes ou copie e cole na sua mensagem. Para a saída de programas como `dmesg`, redirecione a saída para um arquivo e inclua-o. Por exemplo,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/pt-br/articles/nanobsd/_index.adoc b/documentation/content/pt-br/articles/nanobsd/_index.adoc
index b1aa90044d..fc5ca09adc 100644
--- a/documentation/content/pt-br/articles/nanobsd/_index.adoc
+++ b/documentation/content/pt-br/articles/nanobsd/_index.adoc
@@ -68,7 +68,7 @@ A partição do arquivo de configuração persiste no diretório [.filename]#/cf
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -91,7 +91,7 @@ Uma imagem NanoBSD é construída usando um simples shell script [.filename]#nan
Os comandos necessários para construir uma imagem NanoBSD são:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
@@ -114,7 +114,7 @@ Este é provavelmente o recurso mais importante e interessante do NanoBSD. Este
A execução do seguinte comando forçará o [.filename]#nanobsd.sh# a ler sua configuração do [.filename]#myconf.nano# localizado no diretório atual:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -262,7 +262,7 @@ De acordo com os serviços que estiverem disponíveis no servidor que contem a n
Se a velocidade de transferência estiver em primeiro lugar, use este exemplo:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -272,7 +272,7 @@ get _.disk.image "| sh updatep1"
Se uma transferência segura for preferida, considere usar este exemplo:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -284,7 +284,7 @@ Tente este exemplo se o host remoto que contem a nova imagem não estiver execut
[.procedure]
. Primeiramente, abra um socket TCP em modo escuta no host que serve a imagem e envie a imagem para o cliente:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -295,7 +295,7 @@ Certifique-se de que a porta usada não esteja bloqueada para receber conexões
====
. Conecte-se ao host que está servindo a nova imagem e execute o script [.filename]#updatep1#:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/pt-br/articles/new-users/_index.adoc b/documentation/content/pt-br/articles/new-users/_index.adoc
index 5a9b3ae5a1..faf0391c84 100644
--- a/documentation/content/pt-br/articles/new-users/_index.adoc
+++ b/documentation/content/pt-br/articles/new-users/_index.adoc
@@ -40,7 +40,7 @@ Entre com o usuário que você criou na instalação (quando você visualizar o
Para se sair (e obter um novo `login:`), digite
-[source,bash]
+[source,shell]
....
# exit
....
@@ -49,21 +49,21 @@ quantas vezes forem necessárias. Pressione kbd:[enter] após digitar os comando
Para desligar o computador, digite
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
Ou para reiniciar, digite
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
ou
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -75,7 +75,7 @@ Você também pode reiniciar com kbd:[Ctrl+Alt+Delete]. Aguarde um instante para
Se você não criou um usuário quando instalou o sistema operacional e está logado como `root`, você provavelmente deve criar um usuário com
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -84,7 +84,7 @@ A primeira vez que você usar o comando `adduser`, ele poderá solicitar alguns
Suponha que você crie um usuário `jack`, o qual possui _Jack Benimble_ como nome completo. Dê a `jack` uma senha se a segurança (até mesmo crianças ao redor que podem esbarrar no teclado) for um problema. Quando perguntarem se você deseja convidar `jack` para outros grupos, digite `wheel`
-[source,bash]
+[source,shell]
....
O grupo de login é "jack". Convide o jack para outros grupos: wheel
....
@@ -162,7 +162,7 @@ Você pode experimentar usar `whatis` em alguns comandos utéis e comuns como `c
Alguns deles não estão funcionado muito bem? Ambos man:locate[1] e man:whatis[1] dependem de um banco de dados que é reconstruído semanalmente. Se a sua máquina não for ficar ligada nos fins de semana (e rodando FreeBSD), você pode executar os comandos a seguir para que ela execute manutenções diárias, semanais, mensais ou apenas de vez em quando. Execute-os como `root` e dê a cada comando o tempo necessário para ser finalizado antes de executar o próximo.
-[source,bash]
+[source,shell]
....
# periodic daily
output omitted
@@ -183,14 +183,14 @@ Para configurar o seu sistema, você precisará editar arquivos de texto. A maio
Antes de editar um arquivo, é recomendado criar um backup do mesmo. Suponha que você queira editar o [.filename]#/etc/rc.conf#. Você poderia usar apenas `cd /etc` para acessar o diretório [.filename]#/etc# e usar o seguinte comando:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
Isso iria copiar [.filename]#rc.conf# para [.filename]#rc.conf.orig#, e após isso você poderia copiar [.filename]#rc.conf.orig# para [.filename]#rc.conf# para recuperar o original. Mas melhor ainda seria mover (renomear) e depois copiar de volta:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -198,7 +198,7 @@ Isso iria copiar [.filename]#rc.conf# para [.filename]#rc.conf.orig#, e após is
porque o comando `mv` preserva a data original e o proprietário do arquivo. Agora você pode editar o [.filename]#rc.conf#. Se você quiser o original de volta, você deve então executar `mv rc.conf rc.conf.myedit` (considerando que você quer preservar sua versão editada) e então
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -207,7 +207,7 @@ para colocar as coisas de volta da maneira que estavam.
Para editar um arquivo, digite
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -282,7 +282,7 @@ exibe as páginas do manual para o sistema de arquivos UNIX(R) e sua estrutura h
Use o comando `find` para localizar [.filename]#filename# no diretório [.filename]#/usr# e nos seus subdiretórios:
-[source,bash]
+[source,shell]
....
% find /usr -name "filename"
....
@@ -300,7 +300,7 @@ Se você achar o handbook muito sofisticado (com isso do `lndir` e tudo mais) ao
Encontre o port que você deseja, digamos o `kermit`. Haverá um diretório para ele no CDROM. Copie o subdiretório para [.filename]#/usr/local# (este é um bom lugar para softwares que você adicione no sistema e que devem estar disponíveis para todos os usuários) com:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -311,7 +311,7 @@ Em seguida, crie o diretório [.filename]#/usr/ports/distfiles# se ele ainda nã
Em seguida, use o comando `cd` para ir para o subdiretório [.filename]#/usr/local/kermit# que contém o arquivo [.filename]#Makefile#. Digite
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/pt-br/articles/pam/_index.adoc b/documentation/content/pt-br/articles/pam/_index.adoc
index 55090c0a82..cc5c9a1f8f 100644
--- a/documentation/content/pt-br/articles/pam/_index.adoc
+++ b/documentation/content/pt-br/articles/pam/_index.adoc
@@ -99,7 +99,7 @@ Esta seção tem como objetivo ilustrar os significados de alguns dos termos def
Este exemplo simples mostra `alice` usando man:su[1] para se tornar `root`.
-[source,bash]
+[source,shell]
....
% whoami
@@ -125,7 +125,7 @@ root
O exemplo abaixo mostra `eve` tentar iniciar uma conexão man:ssh[1] com `login.example.com`, solicitar para efetuar login como `bob` e ter exito. Bob deveria ter escolhido uma senha melhor!
-[source,bash]
+[source,shell]
....
% whoami
@@ -298,7 +298,7 @@ auth required pam_nologin.so no_warn
Como consequência dessa sintaxe simplificada, é possível usar a mesma política para vários serviços vinculando cada nome de serviço a um mesmo arquivo de política. Por exemplo, para usar a mesma política para os serviços `su` e `sudo`, pode-se fazer o seguinte:
-[source,bash]
+[source,shell]
....
# cd /etc/pam.d
diff --git a/documentation/content/pt-br/articles/rc-scripting/_index.adoc b/documentation/content/pt-br/articles/rc-scripting/_index.adoc
index 40c918ae8c..58144c2a27 100644
--- a/documentation/content/pt-br/articles/rc-scripting/_index.adoc
+++ b/documentation/content/pt-br/articles/rc-scripting/_index.adoc
@@ -94,7 +94,7 @@ Os pontos a serem observadas são:
&#10122; Um script interpretado deve começar com a linha mágica "shebang". Essa linha especifica o programa interpretador para o script. Devido a linha shebang, o script pode ser invocado exatamente como um programa binário, desde que tenha o bit de execução definido. (Veja man:chmod[1].) Por exemplo, um administrador do sistema pode executar nosso script manualmente, a partir da linha de comando:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
....
@@ -193,7 +193,7 @@ Ao examinar os scripts [.filename]#rc.d#, tenha em mente que o man:sh[1] adia a
====
Você pode fazer o man:rc.subr[8] agir como se o knob fosse definido como `ON`, independentemente da sua configuração atual, prefixando o argumento para o script com `one` ou `force`, como em `onestart` ou `forcestop`. Tenha em mente que o `force` tem outros efeitos perigosos que mencionaremos abaixo, enquanto `one` apenas sobrescreve o knob ON/OFF. Por exemplo, suponha que `dummy_enable` seja `OFF`. O comando a seguir executará o método `start` apesar da configuração:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy onestart
....
@@ -371,7 +371,7 @@ Comandos não padrão não são chamados durante a inicialização ou o desligam
A lista completa de comandos disponíveis pode ser encontrada na linha de uso impressa por man:rc.subr[8] quando o script é invocado sem argumentos. Por exemplo, aqui está a linha de uso do script em estudo:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mumbled
Uso: /etc/rc.d/mumbled [fast|force|one](start|stop|restart|rcvar|reload|plugh|xyzzy|status|poll)
@@ -556,7 +556,7 @@ Quais mudanças essenciais podemos notar no script?
&#10122; Todos os argumentos digitados após `start` podem terminar como parâmetros posicionais para o respectivo método. Podemos usá-los de qualquer maneira de acordo com nossa tarefa, habilidades e fantasia. No exemplo atual, apenas passamos todos eles para man:echo[1] como uma cadeia na linha seguinte - note `$*` entre aspas duplas. Aqui está como o script pode ser chamado agora:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
Nothing started.
@@ -566,7 +566,7 @@ Greeting message: Hello world!
&#10123; O mesmo se aplica a qualquer método que nosso script forneça, não apenas a um método padrão. Nós adicionamos um método customizado chamado `kiss`, e ele pode tirar proveito dos argumentos extras da mesma forma que o `start` tira. Por exemplo:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy kiss
A ghost gives you a kiss.
diff --git a/documentation/content/pt-br/articles/releng/_index.adoc b/documentation/content/pt-br/articles/releng/_index.adoc
index 9affb8e8e7..fccbb25c68 100644
--- a/documentation/content/pt-br/articles/releng/_index.adoc
+++ b/documentation/content/pt-br/articles/releng/_index.adoc
@@ -129,21 +129,21 @@ Em todos os exemplos abaixo, `$FSVN` refere-se ao local do repositório Subversi
O layout das branchs do FreeBSD no Subversion é descrito no link:{committers-guide}#subversion-primer-base-layout[Guia do Commiter]. O primeiro passo na criação de uma branch é identificar a revisão do código fonte do `stable/_X_`, a partir do qual você deseja criar a nova _branch_.
-[source,bash]
+[source,shell]
....
# svn log -v $FSVN/stable/9
....
O próximo passo é criar a _branch da release_
-[source,bash]
+[source,shell]
....
# svn cp $FSVN/stable/9@REVISION $FSVN/releng/9.2
....
Esta branch pode ser obtida com:
-[source,bash]
+[source,shell]
....
# svn co $FSVN/releng/9.2 src
....
@@ -214,7 +214,7 @@ Além disso, atualize o arquivo da "Árvore Genealógica do BSD":
Quando a versão final estiver pronta, o seguinte comando criará a tag `release/9.2.0`.
-[source,bash]
+[source,shell]
....
# svn cp $FSVN/releng/9.2 $FSVN/release/9.2.0
....
@@ -232,7 +232,7 @@ As "releases" do FreeBSD podem ser construídas por qualquer pessoa com uma máq
A página de manual man:release[7] documenta os comandos exatos necessários para construir uma Release do FreeBSD. As seguintes sequências de comandos podem construir uma versão 9.2.0:
-[source,bash]
+[source,shell]
....
# cd /usr/src/release
# sh generate-release.sh release/9.2.0 /local3/release
@@ -271,7 +271,7 @@ A https://www.FreeBSD.org/ports[Coleção de Ports do FreeBSD] é uma coleção
Começando no FreeBSD 4.4, o Projeto FreeBSD decidiu liberar todas as quatro imagens ISO que eram vendidas anteriormente nas distribuições "oficiais" em CDROM pela __BSRi/Wind River Systems/FreeBSD Mall__. Cada um dos quatro discos deve conter um arquivo [.filename]#README.TXT# que explica o conteúdo do disco, um arquivo [.filename]#CDROM.INF# que fornece metadados do disco para que o man:bsdinstall[8] possa validar e usar o conteúdo, e um arquivo [.filename]#filename.txt# que fornece um manifesto para o disco. Este _manifesto_ pode ser criado com um simples comando:
-[source,bash]
+[source,shell]
....
/stage/cdrom# find . -type f | sed -e 's/^\.\///' | sort > filename.txt
....
diff --git a/documentation/content/pt-br/articles/remote-install/_index.adoc b/documentation/content/pt-br/articles/remote-install/_index.adoc
index 6712825cbb..683e94912c 100644
--- a/documentation/content/pt-br/articles/remote-install/_index.adoc
+++ b/documentation/content/pt-br/articles/remote-install/_index.adoc
@@ -77,7 +77,7 @@ Por favor, note que os detalhes de como o mfsBSD funciona internamente e como tu
Faça o download e extraia a versão mais recente do mfsBSD e altere seu diretório de trabalho para o diretório em que os scripts mfsBSD residirão:
-[source,bash]
+[source,shell]
....
# fetch http://mfsbsd.vx.sk/release/mfsbsd-2.1.tar.gz
# tar xvzf mfsbsd-2.1.tar.gz
@@ -128,7 +128,7 @@ O processo de construção de uma imagem mfsBSD é bastante simples.
O primeiro passo é montar o CD de instalação do FreeBSD, ou a imagem ISO de instalação em [.filename]#/cdrom#. Por exemplo, neste artigo vamos supor que você tenha baixado o ISO do FreeBSD 10.1-RELEASE. Montar esta imagem ISO no diretório [.filename]#/cdrom# é fácil de se fazer com o utilitário man:mdconfig[8]:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -u 10 -f FreeBSD-10.1-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /cdrom
@@ -136,7 +136,7 @@ O primeiro passo é montar o CD de instalação do FreeBSD, ou a imagem ISO de i
Como as versões recentes do FreeBSD não contêm conjuntos de distribuição regulares, é necessário extrair os arquivos de distribuição do FreeBSD dos arquivos de distribuição localizados na imagem ISO:
-[source,bash]
+[source,shell]
....
# mkdir DIST
# tar -xvf /cdrom/usr/freebsd-dist/base.txz -C DIST
@@ -145,7 +145,7 @@ Como as versões recentes do FreeBSD não contêm conjuntos de distribuição re
Em seguida, construa a imagem mfsBSD inicializável:
-[source,bash]
+[source,shell]
....
# make BASE=DIST
....
@@ -159,14 +159,14 @@ O make acima deve ser executado a partir do nível superior da árvore de diret
Agora que a imagem mfsBSD está pronta, ela deve ser carregada para o sistema remoto executando o sistema de recuperação ou uma distribuição Linux(R) pré-instalada. A ferramenta mais adequada para essa tarefa é o scp:
-[source,bash]
+[source,shell]
....
# scp disk.img root@192.168.0.2:.
....
Para inicializar corretamente a imagem mfsBSD, ela deve ser colocada no primeiro dispositivo (inicializável) da máquina em questão. Isso pode ser feito usando este exemplo, desde que o [.filename]#sda# seja o primeiro dispositivo de disco inicializável:
-[source,bash]
+[source,shell]
....
# dd if=/root/disk.img of=/dev/sda bs=1m
....
@@ -184,7 +184,7 @@ A primeira tarefa é alocar espaço em disco para o FreeBSD, ou seja: criar slic
No início, marque todos os discos do sistema como vazios. Repita o seguinte comando para cada disco rígido:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/ad0 count=2
....
@@ -193,7 +193,7 @@ Em seguida, crie as slices e atribua um label usando sua ferramenta preferida. E
O exemplo a seguir descreverá como criar slices e labels, inicializar o man:gmirror[8] em cada partição e como criar um sistema de arquivos UFS2 em cada partição espelhada:
-[source,bash]
+[source,shell]
....
# fdisk -BI /dev/ad0 <.>
# fdisk -BI /dev/ad1
@@ -228,7 +228,7 @@ O exemplo a seguir descreverá como criar slices e labels, inicializar o man:gmi
Esta é a parte mais importante. Esta seção irá descrever como instalar a distribuição mínima do FreeBSD nos discos rígidos que preparamos na seção anterior. Para atingir este objetivo, todos os sistemas de arquivos precisam ser montados para que o Sysinstall possa gravar o conteúdo do FreeBSD nos discos rígidos:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/root /mnt
# mkdir /mnt/var /mnt/usr
@@ -260,7 +260,7 @@ O sistema operacional do FreeBSD deve estar instalado agora; no entanto, o proce
Você deve agora executar man:chroot[8] para o sistema recém-instalado para concluir a instalação. Use o seguinte comando:
-[source,bash]
+[source,shell]
....
# chroot /mnt
....
@@ -269,7 +269,7 @@ Para completar nosso objetivo, execute estas etapas:
* Copie o kernel `GENERIC` para o diretório [.filename]#/boot/kernel#:
+
-[source,bash]
+[source,shell]
....
# cp -Rp /boot/GENERIC/* /boot/kernel
....
@@ -294,7 +294,7 @@ zfs_load="YES"
....
* Execute o seguinte comando, que disponibilizará o ZFS na próxima inicialização:
+
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
....
@@ -311,14 +311,14 @@ Se o seu sistema sobreviveu à reinicialização, agora deve ser possível efetu
O único passo restante é configurar o man:zpool[8] e criar algum sistemas de arquivos man:zfs[8]. Criar e administrar o ZFS é muito simples. Primeiro, crie um pool espelhado:
-[source,bash]
+[source,shell]
....
# zpool create tank mirror /dev/ad[01]s1f
....
Em seguida, crie alguns sistemas de arquivos:
-[source,bash]
+[source,shell]
....
# zfs create tank/ports
# zfs create tank/src
diff --git a/documentation/content/pt-br/articles/serial-uart/_index.adoc b/documentation/content/pt-br/articles/serial-uart/_index.adoc
index 37687707f8..ea57e431f7 100644
--- a/documentation/content/pt-br/articles/serial-uart/_index.adoc
+++ b/documentation/content/pt-br/articles/serial-uart/_index.adoc
@@ -535,7 +535,7 @@ O COMTEST pode ser usado como uma ferramenta de triagem para alertar o administr
Se você executar o COMTEST em um 16550 que esteja em um modem ou se um modem estiver conectado à porta serial, será necessário primeiro emitir um comando ATE0&W para o modem para que o modem não faça eco de nenhum dos caracteres de teste. Se você esquecer de fazer isso, o COMTEST informará pelo menos essa diferença:
-[source,bash]
+[source,shell]
....
Error (6)...Timeout interrupt failed: IIR = c1 LSR = 61
....
@@ -781,7 +781,7 @@ A entrada de flags _deve_ ser alterada deste exemplo, a menos que você esteja u
indica que a porta principal é a sio16. Se eu adicionasse outra placa e atribuísse do sio17 até sio28, os sinalizadores para todas as 16 portas _nesta_ placa seriam 0x1C05, onde 1C indica o menor número da porta principal. Não altere a configuração 05.
. Salve e complete a configuração do kernel, recompile, instale e reinicialize. Presumindo que você tenha instalado com sucesso o kernel recompilado e configurado para o endereço e IRQ correto, sua mensagem de boot deve indicar o teste bem-sucedido das portas Boca da seguinte forma: (obviamente os números sio, IO e IRQ podem ser diferentes)
+
-[source,bash]
+[source,shell]
....
sio1 at 0x100-0x107 flags 0x1005 on isa
sio1: type 16550A (multiport)
@@ -819,7 +819,7 @@ sio16: type 16550A (multiport master)
+
Se as mensagens forem muito rápidas para serem visualizadas,
+
-[source,bash]
+[source,shell]
....
# dmesg | more
....
@@ -829,7 +829,7 @@ mostrará as mensagens de inicialização.
+
Se você precisar criar as entradas [.filename]#/dev#, execute o seguinte como `root`:
+
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV tty1
@@ -842,7 +842,7 @@ Se você precisar criar as entradas [.filename]#/dev#, execute o seguinte como `
Se você não quiser ou precisar de dispositivos de chamada por algum motivo, você pode dispensar o uso dos dispositivos [.filename]#cua*#.
. Se você quiser uma maneira rápida e desleixada de se certificar de que os dispositivos estão funcionando, você pode simplesmente conectar um modem em cada porta e (como root)
+
-[source,bash]
+[source,shell]
....
# echo at > ttyd*
....
@@ -906,7 +906,7 @@ device sio2 at isa? port "IO_COM3" flags 0x205 irq 3
Note que a configuração das `flags` para [.filename]#sio1# e [.filename]#sio2# é realmente essencial; consulte man:sio[4] para detalhes. (Geralmente, o `2` no atributo "flags" refere-se ao [.filename]#sio2# que contém o IRQ, e você certamente deseja um "nibble" abaixo de `5`. ) Com o modo verboso do kernel ativado, isso deve render algo semelhante a isto:
-[source,bash]
+[source,shell]
....
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
@@ -939,7 +939,7 @@ device cy0 at isa? irq 10 iomem 0xd4000 iosiz 0x2000
. Recompile e instale o novo kernel.
. Crie os device nodes digitando (o exemplo a seguir assume uma placa de 8 portas) footnote:[Você pode omitir esta parte se você estiver executando o FreeBSD 5.X com devfs5.]:
+
-[source,bash]
+[source,shell]
....
# cd /dev
# for i in 0 1 2 3 4 5 6 7;do ./MAKEDEV cuac$i ttyc$i;done
@@ -1003,7 +1003,7 @@ A etapa seguinte, não é necessária se você estiver usando o man:devfs[5] no
Após a reinicialização com o novo kernel, você precisa criar os device nodes no [.filename]#/dev#. O script [.filename]#MAKEDEV# cuidará disso para você. Conte quantas portas totais você tem e digite:
-[source,bash]
+[source,shell]
....
# cd /dev
# ./MAKEDEV ttyAnn cuaAnn
diff --git a/documentation/content/pt-br/articles/solid-state/_index.adoc b/documentation/content/pt-br/articles/solid-state/_index.adoc
index c6b8c1dde5..3ed1debea0 100644
--- a/documentation/content/pt-br/articles/solid-state/_index.adoc
+++ b/documentation/content/pt-br/articles/solid-state/_index.adoc
@@ -89,14 +89,14 @@ Alguns aplicativos no sistema começarão a falhar imediatamente como resultado
Uma coisa importante para lembrar é que um sistema de arquivos que foi montado como read-only com o [.filename]#/etc/fstab# pode ser colocado em modo read-write a qualquer momento, executando o comando:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partition
....
e pode ser alternado de volta para somente leitura com o comando:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partition
....
@@ -117,7 +117,7 @@ Após inicializar com os disquetes do kern e mfsroot, escolha `custom` no menu d
+
Saia do menu de instalação personalizada e, no menu de instalação principal, escolha a opção `fixit`. Depois de entrar no ambiente do fixit, digite o seguinte comando:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -131,7 +131,7 @@ a: 123456 0 4.2BSD 0 0
+
Onde _123456_ é um número o qual é exatamente o mesmo que o número existente na entrada `c:` para o tamanho. Basicamente, você está duplicando a linha `c:` existente como uma linha `a:`, certifique-se de que o fstype seja `4.2BSD`. Salve o arquivo e saia.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -141,14 +141,14 @@ Onde _123456_ é um número o qual é exatamente o mesmo que o número existente
+
Monte a mídia flash recém-preparada:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
+
Coloque esta máquina na rede para que possamos transferir nosso arquivo tar e extrai-lo em nosso sistema de arquivos de mídia flash. Um exemplo de como fazer isso é:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -156,21 +156,21 @@ Coloque esta máquina na rede para que possamos transferir nosso arquivo tar e e
+
Agora que a máquina está na rede, transfira seu arquivo tar. Você pode se deparar com um pequeno dilema neste ponto - se a sua memória flash tiver por exemplo 128 megabytes, e seu arquivo tar for maior que 64 megabytes, você não poderá ter o seu arquivo tar na mídia flash ao mesmo tempo em que realiza a descompressão - você ficará sem espaço. Uma solução para esse problema, se você estiver usando FTP, é descompactar o arquivo enquanto ele é transferido por FTP. Se você realizar sua transferência desta maneira, você nunca terá o arquivo tar e o conteúdo do tar em seu disco ao mesmo tempo:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| tar xvf -"
....
+
Se o seu arquivo tar estiver gzipado, você pode fazer isso também:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| zcat | tar xvf -"
....
+
Depois que o conteúdo do seu sistema de arquivos compactado pelo tar estiver no sistema de arquivos da sua memória flash, você poderá desmontar a memória flash e reinicializar:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -194,7 +194,7 @@ No entanto, isso não resolve o problema de manter as crontabs entre nas reinici
O [.filename]#syslog.conf# especifica os locais de certos arquivos de log que existem em [.filename]#/var/log#. Esses arquivos não são criados pelo [.filename]#/etc/rc.d/var# na inicialização do sistema. Portanto, em algum lugar do [.filename]#/etc/rc.d/var#, logo após a seção que cria os diretórios em [.filename]#/var#, você precisará adicionar algo como isto:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -208,14 +208,14 @@ Para tornar possível entrar em um diretório do ports e executar com sucesso o
Primeiro, crie o diretório do banco de dados de pacotes. Ele fica normalmente em [.filename]#/var/db/pkg#, mas não podemos colocá-lo lá, pois ele irá desaparecer toda vez que o sistema for inicializado.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Agora, adicione uma linha ao arquivo [.filename]#/etc/rc.d/var# que vincule o [.filename]#/etc/pkg# ao [.filename]#/var/db/pkg#. Um exemplo:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -235,7 +235,7 @@ Primeiro, adicione o diretório `log/apache` à lista de diretórios a serem cri
Segundo, adicione estes comandos ao [.filename]#/etc/rc.d/var# após a seção de criação do diretório:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -243,7 +243,7 @@ Segundo, adicione estes comandos ao [.filename]#/etc/rc.d/var# após a seção d
Por fim, remova o diretório [.filename]#apache_log_dir# existente e substitua-o por um link:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_dir
# ln -s /var/log/apache apache_log_dir
diff --git a/documentation/content/pt-br/articles/vinum/_index.adoc b/documentation/content/pt-br/articles/vinum/_index.adoc
index 42e4f6fc4e..40d20eaacf 100644
--- a/documentation/content/pt-br/articles/vinum/_index.adoc
+++ b/documentation/content/pt-br/articles/vinum/_index.adoc
@@ -397,7 +397,7 @@ Para o sistema os volumes são idênticos aos discos, com uma exceção. Ao cont
Para criar um sistema de arquivos neste volume, use man:newfs[8]:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
....
@@ -478,7 +478,7 @@ Para configurar essas partições `a` para cada dispositivo contendo parte do vo
[.procedure]
. A localização, offset desde o início do dispositivo, e o tamanho do subdisco desse dispositivo que faz parte do volume raiz precisam ser examinados, usando o comando:
+
-[source,bash]
+[source,shell]
....
# gvinum l -rv root
....
@@ -486,7 +486,7 @@ Para configurar essas partições `a` para cada dispositivo contendo parte do vo
Os offsets (deslocamentos) e tamanhos do [.filename]#vinum# são medidos em bytes. Eles devem ser divididos por 512 para obter os números de blocos que serão usados pelo `bsdlabel`.
. Execute este comando para cada dispositivo que participa do volume raiz:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -e devname
....
@@ -500,7 +500,7 @@ O offset da partição [.filename]#vinum# neste dispositivo (se houver) deve ser
Desta forma, uma nova partição `a` será estabelecida sobrepondo a partição [.filename]#vinum# neste dispositivo. O `bsdlabel` só permitirá essa sobreposição se a partição [.filename]#vinum# tiver sido marcada corretamente usando o modo fstype do `vinum`.
. Temos agora uma falsa partição `a` em cada dispositivo que possui uma réplica do volume raiz. É altamente recomendável verificar o resultado usando um comando como:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/devnamea
....
@@ -509,7 +509,7 @@ Deve ser lembrado que todos os arquivos contendo informações de controle devem
Na próxima reinicialização, o bootstrap deve descobrir as informações de controle apropriadas do novo sistema de arquivos raiz baseado no [.filename]#vinum# e agir de acordo. No final do processo de inicialização do kernel, após todos os dispositivos terem sido anunciados, o aviso de destaque que mostra o sucesso desta configuração é uma mensagem como:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/gvinum/root
....
@@ -518,7 +518,7 @@ Mounting root from ufs:/dev/gvinum/root
Depois que o volume raiz [.filename]#vinum# foi configurado, a saída de `gvinum l -rv root` pode parecer com:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -538,7 +538,7 @@ Os valores a serem observados são `135680` para o offset, relativo à partiçã
O bsdlabel para esses dispositivos pode se parecer com:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/pt-br/books/faq/_index.adoc b/documentation/content/pt-br/books/faq/_index.adoc
index fd4b8d9ba6..4f1fd80b49 100644
--- a/documentation/content/pt-br/books/faq/_index.adoc
+++ b/documentation/content/pt-br/books/faq/_index.adoc
@@ -324,7 +324,7 @@ Depois de escolher o formato e o mecanismo de compactação, baixe os arquivos c
Por exemplo, a versão split HTML do FAQ, compactada usando man:bzip2[1], pode ser encontrada em [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2# Para baixar e descompactar esse arquivo, digite:
-[source,bash]
+[source,shell]
....
# fetch https://download.freebsd.org/ftp/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -420,14 +420,14 @@ Se o Windows(TM) for instalado primeiro, então sim. O gerenciador de boot do Fr
Isso depende do gerenciador de inicialização. O menu de seleção de inicialização do FreeBSD pode ser reinstalado usando man:boot0cfg[8]. Por exemplo, para restaurar o menu de inicialização no disco _ada0_:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
O gerenciador de inicialização MBR não interativo pode ser instalado usando man:gpart[8]:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -537,7 +537,7 @@ Veja a lista completa nas Notas de Hardware para o FreeBSD https://www.FreeBSD.o
O driver de console padrão, man:vt[4], fornece a capacidade de usar um ponteiro de mouse em consoles de texto para cortar & colar o texto. Execute o daemon do mouse, man:moused[8] e ative o ponteiro do mouse no console virtual:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -584,7 +584,7 @@ bindkey ^[[3~ delete-char # para o xterm
Algumas placas de som definem seu volume de saída como 0 em cada inicialização. Execute o seguinte comando toda vez que a máquina inicializar:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -686,7 +686,7 @@ O computador tem dois ou mais relógios e o FreeBSD escolheu usar o errado.
Execute o comando man:dmesg[8] e verifique as linhas que contêm a palavra `Timecounter`. Aquele com o maior valor de quality é o que o FreeBSD escolheu.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -697,7 +697,7 @@ Timecounters tick every 1.000 msec
Confirme isso verificando o valor da variável `kern.timecounter.hardware` no man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -714,7 +714,7 @@ Ou a BIOS poderá modificar o relógio TSC - talvez para mudar a velocidade do p
Neste exemplo, o relógio `i8254` também está disponível e pode ser selecionado alterando-se a variável `kern.timecounter.hardware` do man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -878,7 +878,7 @@ Há várias causas possíveis para esse problema:
O nome do agendador que atualmente sendo usado está diretamente disponível como o valor da variavel `kern.sched.name` do sysctl:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: ULE
@@ -914,7 +914,7 @@ Quando os discos estiverem formatados com UFS, nunca use nada além do man:dump[
Por exemplo, para mover [.filename]#/dev/ada1s1a# tendo [.filename]#/mnt# como o ponto de montagem temporário, digite:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -924,7 +924,7 @@ Por exemplo, para mover [.filename]#/dev/ada1s1a# tendo [.filename]#/mnt# como o
Reorganizar as partições com o comando `dump` requer um pouco mais de trabalho. Para mesclar uma partição como [.filename]#/var# com a partição pai, crie uma nova partição grande o suficiente para conter ambas, mova a partição pai conforme descrito acima e mova a partição filha para o diretório vazio criado pela primeira movimentação:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -936,7 +936,7 @@ Reorganizar as partições com o comando `dump` requer um pouco mais de trabalho
Para separar um diretório do seu pai, digamos colocar [.filename]#/var# em sua própria partição quando não era antes, crie as duas partições, monte a partição filho no diretório apropriado no ponto de montagem temporário e mova a antiga partição única:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -992,7 +992,7 @@ O FreeBSD inclui o sistema de arquivos de rede NFS e a Coleção de Ports do Fre
As partições secundárias do DOS são encontradas depois de _todas_ as partições primárias. Por exemplo, se `E` for a segunda partição DOS na segunda unidade SCSI, haverá um arquivo de dispositivo para a "slice 5" em [.filename]#/dev#. Para montá-lo:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1028,14 +1028,14 @@ Isso não pode ser feito com o gerenciador de inicialização padrão sem reescr
Se a unidade já tiver um sistema de arquivos, use um comando como este:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
Se a unidade só for usada com sistemas FreeBSD, particione-a com UFS ou ZFS. Isso fornecerá suporte a nomes longos de arquivo, melhoria no desempenho e na estabilidade. Se a unidade for usada por outros sistemas operacionais, uma escolha mais portátil, como por exemplo o msdosfs, será mais apropriada.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1044,14 +1044,14 @@ Se a unidade só for usada com sistemas FreeBSD, particione-a com UFS ou ZFS. Is
Finalmente, crie um novo sistema de arquivos:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
e monte-o:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1095,7 +1095,7 @@ Por padrão, o man:mount[8] tentará montar a última trilha de dados (sessão)
Como `root`, defina a variável `vfs.usermount` do sysctl como `1`.
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1115,7 +1115,7 @@ Por exemplo, para permitir que os usuários montem a primeira unidade USB, adici
Todos os usuários agora podem montar dispositivos que eles podem ler em um diretório que eles possuem:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1123,7 +1123,7 @@ Todos os usuários agora podem montar dispositivos que eles podem ler em um dire
Desmontar o dispositivo é simples:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1193,7 +1193,7 @@ A deduplicação também pode levar há algumas situações inesperadas. Em part
Isso pode acontecer porque o pool está 100% cheio. O ZFS requer espaço no disco para gravar metadados de transação. Para restaurar o pool para um estado utilizável, primeiro faça o truncate do arquivo que irá excluir:
-[source,bash]
+[source,shell]
....
% truncate -s 0 unimportant-file
....
@@ -1229,7 +1229,7 @@ O arquivo de configuração principal é o [.filename]#/etc/defaults/rc.conf#, o
Por exemplo, se para iniciar man:named[8], o servidor DNS incluído:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1248,7 +1248,7 @@ Isto normalmente é causado pela edição do crontab do sistema. Esta não é a
Para excluir o crontab extra incorreto:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1259,7 +1259,7 @@ Este é um recurso de segurança. Para executar `su` para `root`, ou qualquer ou
Para permitir que alguém execute o comando `su root`, coloque-os no grupo `wheel` usando o comando `pw`:
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1347,7 +1347,7 @@ Se a partição raiz não puder ser montada a partir do modo de usuário único,
Ao usar man:vt[4], o driver de console padrão, isso pode ser feito configurando o seguinte sysctl man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.vt.kbd_reboot=0
....
@@ -1356,7 +1356,7 @@ Ao usar man:vt[4], o driver de console padrão, isso pode ser feito configurando
Use este comando man:perl[1]:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1365,7 +1365,7 @@ no qual _files(s)_ trata-se de um ou mais arquivos que desejamos processar. A mo
Alternativamente, use o man:tr[1]:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1378,7 +1378,7 @@ Uma outra maneira de reformatar arquivos de texto do DOS é usar o port package:
Entre no modo single user e retorne ao modo multi usuário:
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1401,7 +1401,7 @@ Resposta curta: o nível de segurança é maior que 0. Reinicialize diretamente
Resposta longa: O FreeBSD não permite alterar os flags do sistema em níveis de segurança superiores a 0. Para verificar o nível de segurança atual:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1414,7 +1414,7 @@ Resposta curta: o sistema está em um nível de segurança maior que 1. Reinicia
Resposta longa: O FreeBSD proíbe a alteração do tempo em mais de um segundo em níveis de segurança superiores a 1. Para verificar o nível de segurança:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1459,7 +1459,7 @@ O [.filename]#/var/empty# é um diretório que o programa man:sshd[8] utiliza ao
Para ver o que man:newsyslog[8] vai fazer, use o seguinte:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1486,7 +1486,7 @@ Use package:x11/xorg-minimal[], que constrói e instala apenas os componentes Xo
Instale o Xorg a partir de pacotes do FreeBSD:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1531,7 +1531,7 @@ link sysmouse mouse
Este link pode ser criado reiniciando o man:devfs[5] com o seguinte comando (executado como `root`):
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1599,7 +1599,7 @@ Por motivos de segurança, a configuração padrão é não permitir que uma má
Para ativar esse recurso, inicie o X com o argumento opcional `-listen_tcp`:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1714,7 +1714,7 @@ Supondo que todos os teclados Windows sigam um padrão, os códigos de teclas pa
Para que a tecla kbd:[ Windows ] da esquerda imprima uma vírgula, tente isto.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1780,14 +1780,14 @@ Sim. Para obter instruções sobre como usar o NAT em uma conexão PPP, consulte
Se o alias estiver na mesma sub-rede que um endereço já configurado na interface, adicione `netmask 0xffffffff` a este comando:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Caso contrário, especifique o endereço de rede e a máscara de rede como de costume:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1798,7 +1798,7 @@ Mais informações podem ser encontradas link:{handbook}#configtuning-virtual-ho
Algumas versões do código NFS do Linux(TM) aceitam somente solicitações de montagem vindas de uma porta privilegiada; tente executar o seguinte comando:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1821,7 +1821,7 @@ Se o kernel é compilado com a opção `IPFIREWALL`, esteja ciente de que a pol
Se o firewall foi inadvertidamente configurado de forma errada, restaure a operacionalidade da rede digitando o seguinte comando como `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1834,7 +1834,7 @@ Para obter mais informações sobre como configurar seu firewall, consulte o lin
Possivelmente porque você precisa utilizar a conversão de endereços de rede (NAT) em vez de apenas encaminhar os pacotes. Uma regra "fwd" apenas encaminha os pacotes, ela não altera os dados dentro do pacote. Considere esta regra:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -1880,14 +1880,14 @@ Esta mensagem do kernel indica que alguma atividade está provocando o envio de
O primeiro número na mensagem indica quantos pacotes o kernel teria enviado se o limite não estivesse no lugar e o segundo indica o limite. Este limite é controlado usando `net.inet.icmp.icmplim`. Este exemplo define o limite para `300` pacotes por segundo:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
Para desativar essas mensagens sem desativar a limitação de resposta, use o `net.inet.icmp.icmplim_output` para desativar a saída:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -1906,7 +1906,7 @@ Porque um pacote está vindo de fora da rede inesperadamente. Para desativá-los
Configure seu kernel com estas configurações:
-[source,bash]
+[source,shell]
....
include GENERIC
ident GENERIC-IPV6ONLY
@@ -1953,7 +1953,7 @@ Um processo UNIX(TM) é de propriedade de um determinado ID de usuário. Se o ID
Para verificar o status do securelevel em um sistema em execução:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -1992,7 +1992,7 @@ Veja link:{handbook}#serialconsole-setup[ esta seção do Handbook].
Quando o kernel do FreeBSD for inicializado, ele irá sondar as portas seriais para as quais o kernel está configurado. Observe atentamente as mensagens de inicialização ou execute este comando após o sistema estar ativo e em execução:
-[source,bash]
+[source,shell]
....
% grep -E '^(sio|uart)[0-9]' < /var/run/dmesg.boot
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2051,7 +2051,7 @@ Os utilitários man:tip[1] and man:cu[1] só podem acessar o diretório [.filena
Como alternativa, todos podem ser configurados para executar man:tip[1] e man:cu[1] digitando:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2073,7 +2073,7 @@ A resposta simples é que a memória livre é uma memória desperdiçada. Qualqu
Os links simbólicos não têm permissões e, por padrão, man:chmod[1] seguirá links simbólicos para alterar as permissões no arquivo de origem, se possível. Para o arquivo, [.filename]#foo# com um link simbólico chamado [.filename]#bar#, este comando será sempre bem-sucedido.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2087,7 +2087,7 @@ Ao alterar os modos das hierarquias de arquivos do usuario root em vez dos próp
`-R` faz um man:chmod[1] recursivo. Tenha cuidado ao especificar diretórios ou links simbólicos para diretórios para o man:chmod[1]. Para alterar as permissões de um diretório referenciado por um link simbólico, use man:chmod[1] sem nenhuma opção e siga o link simbólico com uma barra à direita ([.filename]#/#). Por exemplo, se [.filename]#foo# for um link simbólico para o diretório [.filename]#bar#, para alterar as permissões de [.filename]#foo# (na verdade [.filename]#bar#) faça algo como:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2328,14 +2328,14 @@ Para prosseguir:
. Anote o valor do ponteiro de instrução. Note que a parte `0x8:` no começo não é relevante neste caso: é a parte `0xf0xxxxxx` que nós queremos.
. Quando o sistema for reinicializado, faça o seguinte:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxxx
....
+
no qual `f0xxxxxx` é o valor do ponteiro de instrução. As probabilidades são de que você não obterá uma correspondência exata, pois os símbolos na tabela de símbolos do kernel são para os pontos de entrada das funções e o endereço do ponteiro de instrução estará em algum lugar dentro de uma função, não no início. Se você não obtiver uma correspondência exata, omita o último dígito do valor do ponteiro de instrução e tente novamente:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -2359,21 +2359,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
. Mude para o diretório [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compile o kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Aguarde até o man:make[1] terminar a compilação.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2397,7 +2397,7 @@ Os despejos de memória do FreeBSD são geralmente do mesmo tamanho que a RAM f
Depois que o despejo de memória for recuperado, obtenha um rastreamento de pilha da seguinte maneira:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/pt-br/books/handbook/advanced-networking/_index.adoc b/documentation/content/pt-br/books/handbook/advanced-networking/_index.adoc
index 2b8b9093ce..0a97a16b23 100644
--- a/documentation/content/pt-br/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/advanced-networking/_index.adoc
@@ -81,7 +81,7 @@ Esta seção fornece uma visão geral dos fundamentos de roteamento. Em seguida,
Para ver a tabela de roteamento de um sistema FreeBSD, use man:netstat[1]:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -166,7 +166,7 @@ defaultrouter="10.20.30.1"
Também é possível adicionar manualmente a rota usando o comando `route`:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -202,7 +202,7 @@ Neste cenário, o `RouterA` é uma máquina FreeBSD que está agindo como um rot
Antes de adicionar rotas estáticas, a tabela de roteamento no `RouterA` se parece com:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -217,7 +217,7 @@ default 10.0.0.1 UGS 0 49378 xl0
Com a tabela de roteamento atual, o `RouterA` não tem uma rota para a rede `192.168.2.0/24`. O comando a seguir adiciona a rede `Internal Net 2` à tabela de roteamento do `RouterA` usando `192.168.1.2` como o próximo salto:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -300,14 +300,14 @@ Conectar um computador a uma rede sem fio existente é uma situação muito comu
. Obtenha o SSID (identificador de conjunto de serviços) e PSK (chave pré-compartilhada) para a rede sem fio do administrador da rede.
. Identifique o adaptador sem fio. O kernel [.filename]#GENERIC# do FreeBSD inclui drivers para muitos adaptadores sem fio comuns. Se o adaptador sem fio for um desses modelos, ele será mostrado na saída do man:ifconfig[8]:
+
-[source,bash]
+[source,shell]
....
% ifconfig | grep -B3 -i wireless
....
+
No FreeBSD 11 ou superior, use este comando:
+
-[source,bash]
+[source,shell]
....
% sysctl net.wlan.devices
....
@@ -335,7 +335,7 @@ ifconfig_wlan0="WPA SYNCDHCP"
+
. Reinicie o computador ou reinicie o serviço de rede para conectar-se à rede:
+
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -400,7 +400,7 @@ Com esta informação no arquivo de configuração do kernel, recompile o kernel
Informações sobre o dispositivo sem fio devem aparecer nas mensagens de inicialização, assim:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -413,14 +413,14 @@ Como a situação regulatória é diferente em várias partes do mundo, é neces
As definições de região disponíveis podem ser encontradas em [.filename]#/etc/regdomain.xml#. Para definir os dados em tempo de execução, use o `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 regdomain ETSI country AT
....
Para persistir as configurações, adicione-o ao [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc create_args_wlan0="country AT regdomain ETSI"
....
@@ -435,7 +435,7 @@ O modo de infra-estrutura (BSS) é o modo normalmente usado. Neste modo, vários
Para procurar redes disponíveis, use man:ifconfig[8]. Essa solicitação pode demorar alguns instantes para ser concluída, pois exige que o sistema alterne para cada frequência sem fio disponível e sonde os pontos de acesso disponíveis. Apenas o superusuário pode iniciar uma varredura:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -475,7 +475,7 @@ A saída de uma solicitação de varredura lista cada rede BSS/IBSS encontrada.
Pode-se também exibir a lista atual de redes conhecidas com:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -553,14 +553,14 @@ ifconfig_wlan0="DHCP"
A interface sem fio está agora pronta para subir:
-[source,bash]
+[source,shell]
....
# service netif start
....
Quando a interface estiver rodando, use o man:ifconfig[8] para ver o status da interface [.filename]#ath0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -626,7 +626,7 @@ ifconfig_wlan0="WPA DHCP"
Então, suba a interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -650,7 +650,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Ou, tente configurar a interface manualmente usando as informações em [.filename]#/etc/wpa_supplicant.conf#:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -661,7 +661,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
A próxima operação é iniciar o man:dhclient[8] para obter o endereço IP do servidor DHCP:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -687,7 +687,7 @@ Se o [.filename]#/etc/rc.conf# tiver uma entrada `ifconfig_wlan0="DHCP"`, man:dh
Se o DHCP não for possível ou desejado, defina um endereço IP estático após o man:wpa_supplicant[8] autenticar a estação:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -705,7 +705,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Quando o DHCP não é usado, o gateway padrão e o servidor de nomes também precisam ser definidos manualmente:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -765,7 +765,7 @@ ifconfig_wlan0="WPA DHCP"
O próximo passo é subir a interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -828,7 +828,7 @@ ifconfig_wlan0="WPA DHCP"
O próximo passo é subir a interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -900,7 +900,7 @@ ifconfig_wlan0="WPA DHCP"
Então, suba a interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -928,7 +928,7 @@ A privacidade equivalente com fio (WEP) faz parte do padrão 802.11 original. N
O WEP pode ser configurado usando o man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -959,7 +959,7 @@ network={
Então:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -972,7 +972,7 @@ O modo IBSS, também chamado de modo ad-hoc, é projetado para conexões ponto a
Em `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -991,7 +991,7 @@ O parâmetro `adhoc` indica que a interface está sendo executada no modo IBSS.
`B` deve ser capaz de detectar `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -1001,7 +1001,7 @@ O parâmetro `adhoc` indica que a interface está sendo executada no modo IBSS.
O `I` na saída confirma que `A` está no modo ad-hoc. Agora, configure `B` com um endereço IP diferente:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1034,7 +1034,7 @@ O wrapper do driver NDIS para os drivers Windows(TM) não suporta atualmente a o
Quando o suporte à rede sem fio estiver carregado, verifique se o dispositivo sem fio oferece suporte ao modo de ponto de acesso baseado em host, também conhecido como modo hostap:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1046,14 +1046,14 @@ Esta saída exibe os recursos da placa. A palavra `HOSTAP` confirma que esta pla
O dispositivo sem fio só pode ser colocado no modo hostap durante a criação do pseudo-dispositivo de rede, portanto, um dispositivo criado anteriormente deve ser destruído primeiro:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
e então regenerado com a opção correta antes de configurar os outros parâmetros:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1061,7 +1061,7 @@ e então regenerado com a opção correta antes de configurar os outros parâmet
Use o man:ifconfig[8] novamente para ver o status da interface [.filename]#wlan0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1091,7 +1091,7 @@ Embora não seja recomendado executar um AP sem nenhuma autenticação ou cripto
Quando o AP estiver configurado, inicie uma verificação de outra máquina sem fio para encontrar o AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1101,7 +1101,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
A máquina cliente encontrou o AP e pode ser associado a ele:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1170,12 +1170,12 @@ Algoritmos de criptografia aceitos pelo ponto de acesso. Neste exemplo, apenas a
O próximo passo é iniciar man:hostapd[8]:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1200,7 +1200,7 @@ Não é recomendado o uso do WEP para configurar um AP, já que não há mecanis
O dispositivo sem fio agora pode ser colocado no modo hostap e configurado com o endereço SSID e IP corretos:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1212,7 +1212,7 @@ O dispositivo sem fio agora pode ser colocado no modo hostap e configurado com o
Use o man:ifconfig[8] para ver o status da interface [.filename]#wlan0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1227,7 +1227,7 @@ Use o man:ifconfig[8] para ver o status da interface [.filename]#wlan0#:
De uma outra máquina sem fio, agora é possível iniciar uma varredura para encontrar o AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1256,7 +1256,7 @@ O suporte a depuração é fornecido pelo man:wpa_supplicant[8]. Tente executar
* Uma vez que o sistema possa se associar com o ponto de acesso, diagnostique a configuração da rede usando ferramentas como o man:ping[8].
* Existem muitas ferramentas de depuração de nível inferior. As mensagens de depuração podem ser ativadas na camada de suporte do protocolo 802.11 usando o man:wlandebug[8]. Por exemplo, para habilitar mensagens do console relacionadas à varredura de pontos de acesso e aos handshakes do protocolo 802.11 necessários para organizar a comunicação:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i wlan0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1277,7 +1277,7 @@ Muitos telefones celulares oferecem a opção de compartilhar sua conexão de da
Antes de conectar um dispositivo, carregue o driver apropriado no kernel:
-[source,bash]
+[source,shell]
....
# kldload if_urndis
# kldload if_cdce
@@ -1288,7 +1288,7 @@ Uma vez que o dispositivo esteja conectado, ``ue``__0__ estará disponível para
Para tornar essa alteração permanente e carregar o driver como um módulo no momento da inicialização, coloque a linha apropriada abaixo em [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
if_urndis_load="YES"
if_cdce_load="YES"
@@ -1308,7 +1308,7 @@ A pilha Bluetooth no FreeBSD é implementada usando o framework man:netgraph[4].
Antes de conectar um dispositivo, determine qual dos drivers acima ele usa e, em seguida, carregue o driver. Por exemplo, se o dispositivo usar o driver man:ng_ubt[4]:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1322,7 +1322,7 @@ ng_ubt_load="YES"
Quando o driver estiver carregado, conecte o dongle USB. Se a carga do driver tiver sido bem-sucedida, uma saída semelhante à seguinte deve aparecer no console e em [.filename]#/var/log/messages#:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1332,7 +1332,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
Para iniciar e parar a stack Bluetooth, use seu script de inicialização. É uma boa ideia parar a stack antes de desconectar o dispositivo. Iniciar a stack bluetooth pode exigir que o man:hcsecd[8] seja iniciado. Ao iniciar a stack, a saída deve ser semelhante à seguinte:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1354,7 +1354,7 @@ A Interface do Controlador do Host (HCI) fornece um método uniforme para acessa
Uma das tarefas mais comuns é a descoberta de dispositivos Bluetooth dentro da proximidade RF. Esta operação é chamada _inquiry_. Investigação e outras operações relacionadas a HCI são feitas usando man:hccontrol[8]. O exemplo abaixo mostra como descobrir quais dispositivos Bluetooth estão ao alcance. A lista de dispositivos deve ser exibida em alguns segundos. Note que um dispositivo remoto só irá responder a pergunta se estiver configurado para o modo _detectável_.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1370,7 +1370,7 @@ Inquiry complete. Status: No error [00]
O `BD_ADDR` é o endereço exclusivo de um dispositivo Bluetooth, semelhante ao endereço MAC de uma placa de rede. Este endereço é necessário para uma comunicação posterior com um dispositivo e é possível atribuir um nome legível a um `BD_ADDR`. Informações sobre os hosts Bluetooth conhecidos estão contidas em [.filename]#/etc/bluetooth/hosts#. O exemplo a seguir mostra como obter o nome legível que foi atribuído ao dispositivo remoto:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1383,7 +1383,7 @@ Dispositivos remotos podem receber aliases em [.filename]#/etc/bluetooth/hosts#.
O sistema Bluetooth fornece uma conexão ponta-a-ponto entre duas unidades Bluetooth ou uma conexão ponto-a-multiponto que é compartilhada entre vários dispositivos Bluetooth. O exemplo a seguir mostra como criar uma conexão a um dispositivo remoto:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci create_connection BT_ADDR
....
@@ -1392,7 +1392,7 @@ O `create_connection` aceita `BT_ADDR`, bem como aliases de host em [.filename]#
O exemplo a seguir mostra como obter a lista de conexões de banda base ativas para o dispositivo local:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1401,7 +1401,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Um _identificador de conexão_ é útil quando a finalização da conexão de banda base é necessária, embora normalmente não seja necessário fazer isso manualmente. A stack terminará automaticamente as conexões de banda básica inativas.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1457,7 +1457,7 @@ No FreeBSD, esses perfis são implementados com o man:ppp[8] e o wrapper man:rfc
Neste exemplo, o man:rfcomm_pppd[8] é usado para abrir uma conexão com um dispositivo remoto com um `BD_ADDR` de `00:80:37:29:19:a4` em um canal DUNRFCOMM:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
@@ -1466,7 +1466,7 @@ O número real do canal será obtido a partir do dispositivo remoto usando o pro
Para fornecer acesso à rede com o serviço PPPLAN, o man:sdpd[8] precisa estar sendo executado e uma nova entrada para clientes LAN deve ser criada em [.filename]#/etc/ppp/ppp.conf#. Consulte man:rfcomm_pppd[8] para exemplos. Por fim, inicie o servidor RFCOMMPPP em um número de canal RFCOMM válido. O servidor RFCOMMPPP registrará automaticamente o serviço Bluetooth LAN com o daemon local SDP. O exemplo abaixo mostra como iniciar o servidor RFCOMMPPP.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1485,7 +1485,7 @@ No FreeBSD, um nó netgraph L2CAP é criado para cada dispositivo Bluetooth. Ess
Um comando útil é o man:l2ping[8], que pode ser usado para executar ping em outros dispositivos. Algumas implementações Bluetooth podem não retornar todos os dados enviados para elas, portanto, a saída `0 bytes` no exemplo a seguir é normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1496,7 +1496,7 @@ Um comando útil é o man:l2ping[8], que pode ser usado para executar ping em ou
O utilitário man:l2control[8] é usado para executar várias operações em nós L2CAP. Este exemplo mostra como obter a lista de conexões lógicas (canais) e a lista de conexões de banda base para o dispositivo local:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1510,7 +1510,7 @@ Remote BD_ADDR Handle Flags Pending State
Outra ferramenta de diagnóstico é o man:btsockstat[1]. Ele é semelhante ao man:netstat[1], mas para estruturas de dados relacionadas à rede Bluetooth. O exemplo abaixo mostra a mesma conexão lógica que man:l2control[8] acima.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1544,7 +1544,7 @@ Normalmente, um cliente SDP procura serviços baseados em algumas característic
O servidor Bluetooth SDP, man:sdpd[8] e o cliente de linha de comandos, man:sdpcontrol[8], estão incluídos na instalação padrão do FreeBSD. O exemplo a seguir mostra como executar uma consulta de navegação SDP.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1572,7 +1572,7 @@ Bluetooth Profile Descriptor List:
Observe que cada serviço tem uma lista de atributos, como o canal RFCOMM. Dependendo do serviço, o usuário pode precisar anotar alguns dos atributos. Algumas implementações Bluetooth não suportam a navegação de serviço e podem retornar uma lista vazia. Nesse caso, é possível procurar pelo serviço específico. O exemplo abaixo mostra como pesquisar o serviço OBEX Object Push (OPUSH) :
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1586,7 +1586,7 @@ sdpd_enable="YES"
Então o daemon man:sdpd[8] pode ser iniciado com:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1595,7 +1595,7 @@ O aplicativo de servidor local que deseja fornecer um serviço Bluetooth a clien
A lista de serviços registrados no servidor SDPlocal pode ser obtida através da emissão de uma consulta de navegação SDP através do canal de controle local:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1608,7 +1608,7 @@ O servidor e o cliente OBEX são implementados pelo obexapp, que pode ser instal
O cliente OBEX é usado para empurrar e/ou puxar objetos do servidor OBEX. Um exemplo de objeto é um cartão de visita ou um compromisso. O cliente OBEX pode obter o número do canal RFCOMM do dispositivo remoto via SDP. Isso pode ser feito especificando o nome do serviço em vez do número do canal RFCOMM. Os nomes de serviços suportados são: `IrMC`, `FTRN` e `OPUSH`. Também é possível especificar o canal RFCOMM como um número. Abaixo está um exemplo de uma sessão OBEX em que o objeto de informações do dispositivo é extraído do telefone celular e um novo objeto, o cartão de visita, é inserido no diretório do telefone.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1621,7 +1621,7 @@ Success, response: OK, Success (0x20)
Para fornecer o serviço OPUSH, o man:sdpd[8] deve estar em execução e uma pasta raiz, onde todos os objetos recebidos serão armazenados, deve ser criado. O caminho padrão para a pasta raiz é [.filename]#/var/spool/obex#. Por fim, inicie o servidor OBEX em um número de canal RFCOMM válido. O servidor OBEX registrará automaticamente o serviço OPUSH com o daemon SDP local. O exemplo abaixo mostra como iniciar o servidor OBEX.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1632,7 +1632,7 @@ O perfil de porta serial (SPP) permite que dispositivos Bluetooth executem emula
No FreeBSD, o man:rfcomm_sppd[1] implementa o SPP e uma pseudo tty é usada como uma abstração de porta serial virtual. O exemplo abaixo mostra como se conectar ao serviço de porta serial de um dispositivo remoto. Um canal RFCOMM não precisa ser especificado uma vez que o man:rfcomm_sppd[1] pode obtê-lo a partir do dispositivo remoto via SDP. Para sobrescrever isso, especifique um canal RFCOMM na linha de comando.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t
rfcomm_sppd[94692]: Starting on /dev/pts/6...
@@ -1641,7 +1641,7 @@ rfcomm_sppd[94692]: Starting on /dev/pts/6...
Uma vez conectado, o pseudo-tty pode ser usado como porta serial:
-[source,bash]
+[source,shell]
....
# cu -l /dev/pts/6
....
@@ -1658,7 +1658,7 @@ cu -l $PTS
Por padrão, quando o FreeBSD está aceitando uma nova conexão, ele tenta executar uma troca de função e se tornar o mestre. Alguns dispositivos Bluetooth mais antigos que não suportam a troca de função não poderão se conectar. Como a troca de função é executada quando uma nova conexão está sendo estabelecida, não é possível perguntar ao dispositivo remoto se ele suporta a troca de função. No entanto, há uma opção HCI para desativar a alternância de funções no lado local:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1704,7 +1704,7 @@ No FreeBSD, o man:if_bridge[4] é um módulo do kernel que é carregado automati
A bridge é criada usando clonagem de interface. Para criar a interface da bridge:
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1720,7 +1720,7 @@ Quando uma interface de bridge é criada, ela recebe automaticamente um endereç
Em seguida, especifique quais interfaces de rede adicionar como membros da bridge. Para a bridge encaminhar pacotes, todas as interfaces de membros e a bridge precisam estar ativas:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1739,7 +1739,7 @@ ifconfig_fxp1="up"
Se o host de ponte precisar de um endereço IP, defina-o na interface de bridge, não nas interfaces de membro. O endereço pode ser definido estaticamente ou via DHCP. Este exemplo define um endereço IP estático:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1761,7 +1761,7 @@ O protocolo Rapid Spanning Tree (RSTP ou 802.1w) fornece compatibilidade retroat
O STP pode ser ativado nas interfaces de membro usando o man:ifconfig[8]. Para uma bridge com [.filename]#fxp0# e [.filename]#fxp1# como as interfaces atuais, ative o STP com:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1781,7 +1781,7 @@ Essa ponte possui um spanning tree ID de `00:01:02:4b:d4:50` e uma prioridade de
Outra bridge na rede também tem o STP ativado:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1808,7 +1808,7 @@ Uma interface privada não encaminha qualquer tráfego para qualquer outra porta
span::
Uma porta span transmite uma cópia de cada quadro Ethernet recebido pela bridge. O número de portas de span configuradas em uma bridge é ilimitado, mas se uma interface for designada como uma porta de span, ela também não poderá ser usada como uma porta de bridge comum. Isso é mais útil para espionar passivamente uma rede em bridge a partir de outro host conectado a uma das portas da bridge. Por exemplo, para enviar uma cópia de todos os quadros para fora da interface denominada [.filename]#fxp4#:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1818,7 +1818,7 @@ Se uma interface de membro de uma bridge estiver marcada como fixa, as entradas
+
Um exemplo do uso de endereços fixos é combinar a bridge com VLANs para isolar redes de clientes sem desperdiçar espaço de endereço IP. Considere que `CustomerA` está em `vlan100`, `CustomerB` está em `vlan101`, e a bridge tem o endereço `192.168.0.1`:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1828,7 +1828,7 @@ Neste exemplo, os dois clientes vêem `192.168.0.1` como seu gateway padrão. Co
+
Qualquer comunicação entre as VLANs pode ser bloqueada usando um firewall ou, como visto neste exemplo, interfaces privadas:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1839,14 +1839,14 @@ O número de endereços MAC de origem exclusivos por trás de uma interface pode
+
O exemplo a seguir define o número máximo de dispositivos Ethernet para `CustomerA` em `vlan100` para 10:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
As interfaces de bridge também suportam o modo monitor, onde os pacotes são descartados após processamento do man:bpf[4] e não são processados ou encaminhados. Isso pode ser usado para multiplexar a entrada de duas ou mais interfaces em um único fluxo man:bpf[4]. Isso é útil para reconstruir o tráfego de taps de rede que transmitem os sinais RX/TX através de duas interfaces separadas. Por exemplo, para ler a entrada de quatro interfaces de rede como um fluxo:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1872,7 +1872,7 @@ bsnmpd_enable="YES"
Em seguida, inicie o man:bsnmpd[1]:
-[source,bash]
+[source,shell]
....
# service bsnmpd start
....
@@ -1887,7 +1887,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
Para monitorar uma única bridge usando o IETF BRIDGE-MIB (RFC4188):
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1911,7 +1911,7 @@ O valor `dot1dStpTopChanges.0` é dois, indicando que a topologia da bridge STP
Para monitorar várias interfaces de bridge, o BEGEMOT-BRIDGE-MIB privado pode ser usado:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1932,7 +1932,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
Para alterar a interface da bridge que está sendo monitorada através da subárvore `mib-2.dot1dBridge`:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1973,7 +1973,7 @@ A ordenação de quadros é obrigatória em links Ethernet e qualquer tráfego e
No switch Cisco(TM), adicione as interfaces _FastEthernet0/1_ e _FastEthernet0/2_ ao grupo de canais _1_:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1986,7 +1986,7 @@ interface FastEthernet0/2
No sistema FreeBSD, crie a interface man:lagg[4] usando as interfaces físicas _fxp0_ e _fxp1_ e suba as interfaces com o endereço IP de _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1996,7 +1996,7 @@ No sistema FreeBSD, crie a interface man:lagg[4] usando as interfaces físicas _
Em seguida, verifique o status da interface virtual:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2014,7 +2014,7 @@ Portas marcadas como `ACTIVE` fazem parte do LAG que foi negociado com o switch
Para ver o status da porta no switch Cisco(TM):
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2051,7 +2051,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
====
O modo de failover pode ser usado para alternar para uma interface secundária se o link for perdido na interface principal. Para configurar o failover, certifique-se de que as interfaces físicas subjacentes estejam ativadas e crie a interface man:lagg[4]. Neste exemplo, _fxp0_ é a interface principal, _fxp1_ é a interface secundária e a interface virtual recebeu um endereço IP de _10.0.0.15/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2061,7 +2061,7 @@ O modo de failover pode ser usado para alternar para uma interface secundária s
A interface virtual deve ser algo como isto:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2109,7 +2109,7 @@ Se o driver para a interface wireless não estiver carregado no kernel `GENERIC`
Neste exemplo, a interface Ethernet, _re0_, é a interface principal e a interface sem fio, _wlan0_, é o failover. A interface _wlan0_ foi criada a partir da interface wireless _ath0_, e a interface Ethernet será configurada com o endereço MAC da interface wireless. Primeiro, determine o endereço MAC da interface wireless:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2127,21 +2127,21 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Substitua _wlan0_ para corresponder ao nome da interface wireless do sistema. A linha `ether` conterá o endereço MAC da interface especificada. Agora, altere o endereço MAC da interface Ethernet subjacente:
-[source,bash]
+[source,shell]
....
# ifconfig re0 ether b8:ee:65:5b:32:59
....
Suba a interface sem fio (substituindo _FR_ pelo seu próprio código de país com duas letras), mas não defina um endereço IP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 country FR ssid my_router up
....
Certifique-se de que a interface _re0_ esteja ativa, então crie a interface man:lagg[4] com a _re0_ como master com failover para a_wlan0_:
-[source,bash]
+[source,shell]
....
# ifconfig re0 up
# ifconfig lagg0 create
@@ -2150,7 +2150,7 @@ Certifique-se de que a interface _re0_ esteja ativa, então crie a interface man
A interface virtual deve ser algo como isto:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2166,7 +2166,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Em seguida, inicie o cliente DHCP para obter um endereço IP:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2216,7 +2216,7 @@ As etapas mostradas nesta seção configuram os servidores internos de NFS e TFT
. Crie o diretório raiz que irá conter uma instalação do FreeBSD para ser montado por NFS:
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2239,7 +2239,7 @@ nfs_server_enable="YES"
. Inicie o servidor NFS:
+
-[source,bash]
+[source,shell]
....
# service nfsd start
....
@@ -2265,7 +2265,7 @@ Algumas versões do PXE exigem a versão TCP do TFTP. Neste caso, remova o comen
+
. Inicie o man:inetd[8]:
+
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -2273,7 +2273,7 @@ Algumas versões do PXE exigem a versão TCP do TFTP. Neste caso, remova o comen
. Instale o sistema básico em [.filename]#${NFSROOTDIR}#, seja descompactando os arquivos oficiais ou recompilando o kernel do FreeBSD e o userland (consulte crossref:cutting-edge[makeworld,Atualizando o FreeBSD a partir do código fonte] para instruções mais detalhadas, mas não esqueça de adicionar `DESTDIR=_${NFSROOTDIR}_` ao executar os comandos `make installkernel` e `make installworld`.
. Teste que o servidor TFTP funciona e que pode baixar o gerenciador de boot que será obtido via PXE:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2291,7 +2291,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
Substitua _myhost.example.com_ pelo nome do host ou pelo endereço IP do servidor NFS. Neste exemplo, o sistema de arquivos raiz é montado como somente leitura para evitar que os clientes do NFS excluam potencialmente o conteúdo do sistema de arquivos raiz.
. Defina a senha de root no ambiente PXE para as máquinas clientes que serão inicializadas por PXE:
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2303,7 +2303,7 @@ Substitua _myhost.example.com_ pelo nome do host ou pelo endereço IP do servido
Ao inicializar de um volume raiz NFS, o [.filename]#/etc/rc# detecta a inicialização do NFS e executa o [.filename]#/etc/rc.initdiskless#. Neste caso, o [.filename]#/etc# e [.filename]#/var# precisam ser sistemas de arquivos montados em memória para que estes diretórios sejam graváveis mas o diretório raiz NFS seja apenas de leitura:
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2359,7 +2359,7 @@ dhcpd_enable="YES"
Então inicie o serviço DHCP:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -2379,7 +2379,7 @@ image::pxe-nfs.png[]
+
. No servidor TFTP, leia o [.filename]#/var/log/xferlog# para garantir que o [.filename]#pxeboot# esteja sendo recuperado do local correto. Para testar esta configuração de exemplo:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2389,7 +2389,7 @@ Received 264951 bytes in 0.1 seconds
As seções de `BUGS` do man:tftpd[8] e man:tftp[1] documenta algumas limitações com o TFTP.
. Certifique-se de que o sistema de arquivos raiz possa ser montado via NFS. Para testar esta configuração de exemplo:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2433,7 +2433,7 @@ Uma terceira forma é escrever os últimos 32 bits usando a conhecida notação
Para visualizar o endereço IPv6 do sistema FreeBSD, use man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2646,7 +2646,7 @@ carp_load="YES"
Para carregar o módulo agora sem reiniciar:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2692,7 +2692,7 @@ Ter dois CARPVHIDs configurados significa que o `hostc.example.org` notará se u
====
Se o servidor mestre original se tornar disponível novamente, o `hostc.example.org` não liberará o endereço virtual IP de volta a ele automaticamente. Para que isso aconteça, a preempção deve ser ativada. O recurso está desabilitado por padrão, ele é controlado por meio da variável man:sysctl[8]`net.inet.carp.preempt`. O administrador pode forçar o servidor de backup a retornar o endereço IP para o mestre:
-[source,bash]
+[source,shell]
....
# ifconfig em0 vhid 1 state backup
....
@@ -2717,7 +2717,7 @@ if_carp_load="YES"
Para carregar o módulo agora sem reiniciar:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2731,7 +2731,7 @@ device carp
Em seguida, em cada host, crie um dispositivo CARP:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2771,7 +2771,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
A preempção está desabilitada no kernel [.filename]#GENERIC# do FreeBSD. Se a preempção tiver sido ativada com um kernel personalizado, o `hostc.example.org` poderá não liberar o endereço IP de volta ao servidor de conteúdo original. O administrador pode forçar o servidor de backup a retornar o endereço IP para o mestre com o comando:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
@@ -2793,7 +2793,7 @@ Ao configurar uma VLAN, algumas informações devem ser conhecidas. Primeiro, qu
Para configurar uma VLANs em tempo de execução, com uma NIC `em0` e uma tag VLAN de `5` o comando ficaria assim:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24
....
@@ -2817,14 +2817,14 @@ VLANs adicionais podem ser inseridas, simplesmente adicionando a tag ao campo `v
Para configurar a VLAN `5`, na NIC `em0`, atribua o nome de interface `cameras`, e atribua à interface um endereço IP de `_192.168.20.20_` com um prefixo `24`-bit, use este comando:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 name cameras inet 192.168.20.20/24
....
Para uma interface denominada `video`, use o seguinte:
-[source,bash]
+[source,shell]
....
# ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24
....
diff --git a/documentation/content/pt-br/books/handbook/audit/_index.adoc b/documentation/content/pt-br/books/handbook/audit/_index.adoc
index 24ce36127a..b78fbacd19 100644
--- a/documentation/content/pt-br/books/handbook/audit/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/audit/_index.adoc
@@ -97,7 +97,7 @@ auditd_enable="YES"
Em seguida, inicie o daemon de auditoria:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -310,7 +310,7 @@ Como as trilhas de auditoria são armazenadas no formato binário BSM, várias f
Por exemplo, para baixar todo o conteúdo de um log de auditoria especificado em texto simples:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -336,7 +336,7 @@ O formato de saída XML também é suportado e pode ser selecionado incluindo `-
Como os logs de auditoria podem ser muito grandes, um subconjunto de registros pode ser selecionado usando `auditreduce`. Este exemplo seleciona todos os registros de auditoria produzidos para o usuário `trhodes` armazenados em [.filename]#AUDITFILE#:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -347,7 +347,7 @@ Os membros do grupo `audit` têm permissão para ler trilhas de auditoria em [.f
Pipes de auditoria são pseudo-dispositivos clones que permitem que os aplicativos acessem o fluxo de registro de auditoria em tempo real. Isto é principalmente de interesse para os autores de aplicações de detecção de intrusão e monitoramento de sistemas. No entanto, o dispositivo de canal de auditoria é uma maneira conveniente para o administrador permitir o monitoramento ao vivo sem incorrer em problemas com a propriedade do arquivo de trilha de auditoria ou a rotação de log interrompendo o fluxo de eventos. Para acompanhar o fluxo de eventos de auditoria em tempo real:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -371,7 +371,7 @@ Veja man:devfs.rules[5] para mais informações sobre como configurar o sistema
As trilhas de auditoria são gravadas pelo kernel e gerenciadas pelo daemon de auditoria, man:auditd[8]. Os administradores não devem tentar usar o man:newsyslog.conf[5] ou outras ferramentas para rotacionar diretamente os logs de auditoria. Em vez disso, o `audit` deve ser usado para encerrar a auditoria, reconfigurar o sistema de auditoria e executar a rotação de log. O comando a seguir faz com que o daemon de auditoria crie um novo log de auditoria e sinalize ao kernel para alternar para o novo log. O log antigo será finalizado e renomeado, podendo então ser manipulado pelo administrador:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/pt-br/books/handbook/basics/_index.adoc b/documentation/content/pt-br/books/handbook/basics/_index.adoc
index ddfb8c8233..aeb78470e2 100644
--- a/documentation/content/pt-br/books/handbook/basics/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/basics/_index.adoc
@@ -69,7 +69,7 @@ Depois de ler este capítulo, você saberá:
A menos que o FreeBSD tenha sido configurado para iniciar automaticamente um ambiente gráfico durante a inicialização, o sistema inicializará em um prompt de login da linha de comando, como visto neste exemplo:
-[source,bash]
+[source,shell]
....
FreeBSD/amd64 (pc3.example.org) (ttyv0)
@@ -147,21 +147,21 @@ __Tenha cuidado ao alterar esta configuração para ``inseguro``__! Se a senha d
O modo de vídeo padrão do console do FreeBSD pode ser ajustado para 1024x768, 1280x1024 ou qualquer outro tamanho suportado pelo chip gráfico e monitor. Para usar um modo de vídeo diferente, carregue o módulo `VESA`:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
Para determinar quais modos de vídeo são suportados pelo hardware, use man:vidcontrol[1]. Para obter uma lista de modos de vídeo suportados, execute o seguinte:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
A saída deste comando lista os modos de vídeo suportados pelo hardware. Para selecionar um novo modo de vídeo, especifique o modo usando man:vidcontrol[1] como o usuário `root` :
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -265,7 +265,7 @@ Neste exemplo, o usuário só se torna superusuário para executar `make install
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -320,7 +320,7 @@ O utilitário man:adduser[8] é interativo e percorre as etapas para criar uma n
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -386,7 +386,7 @@ Por padrão, um modo interativo é usado, conforme mostrado no exemplo a seguir.
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -418,7 +418,7 @@ Em <<users-modifying-chpass-su>>, o superusuário digitou `chpass jru` e agora e
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -444,7 +444,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -471,7 +471,7 @@ Qualquer usuário pode alterar facilmente sua senha usando o man:passwd[1]. Para
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -490,7 +490,7 @@ O superusuário pode alterar a senha de qualquer usuário especificando o nome d
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -525,7 +525,7 @@ O superusuário pode modificar o [.filename]#/etc/group# usando um editor de tex
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -540,7 +540,7 @@ Neste exemplo, `1100` é o GID de `teamtwo`. No momento, `teamtwo` não possui m
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -555,7 +555,7 @@ O argumento para a opção `-M` é uma lista de usuários, delimitada por vírgu
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -570,7 +570,7 @@ Neste exemplo, o argumento para `-m` é uma lista delimitada por vírgulas de us
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
@@ -635,7 +635,7 @@ A Tabela 4.1 resume as possíveis possibilidades numéricas e alfabéticas. Ao l
Use o argumento `-l` com o man:ls[1] para exibir uma lista longa de diretórios que inclua uma coluna de informações sobre um permissões do arquivo para o proprietário, grupo e outros. Por exemplo, um `ls -l` em um diretório arbitrário pode mostrar:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -716,14 +716,14 @@ Permissões simbólicas usam caracteres em vez de valores octais para atribuir p
Esses valores são usados com o man:chmod[1], mas com letras em vez de números. Por exemplo, o comando a seguir impediria que outros usuários acessassem _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Uma lista separada por vírgula pode ser fornecida quando mais de um conjunto de alterações em um arquivo precisar ser feito. Por exemplo, o comando a seguir remove as permissões de gravação do grupo e "resto do mundo" no _FILE_ e adiciona as permissões de execução para todos:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -734,21 +734,21 @@ Além das permissões de arquivo, o FreeBSD suporta o uso de "flags de arquivo".
Os sinalizadores de arquivo são modificados usando o man:chflags[1]. Por exemplo, para ativar o sinalizador undeletable do sistema no arquivo [.filename]#file1#, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Para desabilitar o sinalizador undeletable do sistema, coloque um "no" na frente do `sunlink`:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Para visualizar os sinalizadores de um arquivo, use `-lo` com o man:ls[1]:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -770,7 +770,7 @@ O ID de usuário real é o UID que inicia ou é o dono do processo. O ID de usu
A permissão setuid pode ser definida prefixando um conjunto de permissões com o número quatro (4), conforme mostrado no exemplo a seguir:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -793,7 +793,7 @@ Para ver isso em tempo real, abra dois terminais. Em um deles, digite `passwd` c
No terminal A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -801,12 +801,12 @@ Old Password:
No terminal B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -818,14 +818,14 @@ A permissão `setgid` executa a mesma função que a permissão `setuid`; exceto
Para definir a permissão `setgid` em um arquivo, execute o man:chmod[1] com dois (2) no início:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Na listagem a seguir, observe que o `s` está agora no campo designado para as configurações de permissão do grupo:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -839,19 +839,19 @@ Os bits de permissão `setuid` e `setgid` podem diminuir a segurança do sistema
Quando o `sticky bit` é definido em um diretório, ele permite a exclusão de arquivos apenas pelo proprietário do arquivo. Isso é útil para impedir a exclusão de arquivos em diretórios públicos, como [.filename]#/tmp#, por usuários que não possuem o arquivo. Para utilizar essa permissão, use o um (1) no início das permissões:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
A permissão `sticky bit` será exibida como um `t` no final do conjunto de permissões:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -1174,7 +1174,7 @@ Consulte man:fstab[5] para obter maiores informações sobre o formato do [.file
Os sistemas de arquivos são montados usando o comando man:mount[8]. A sintaxe mais básica é a seguinte:
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -1237,7 +1237,7 @@ Para ver os processos em execução no sistema, use o man:ps[1] ou o man:top[1].
Por padrão, o man:ps[1] mostra apenas os comandos que estão em execução e que são de propriedade do usuário. Por exemplo:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -1251,7 +1251,7 @@ Várias opções diferentes estão disponíveis para alterar as informações ex
A saída do man:top[1] é semelhante a abaixo:
-[source,bash]
+[source,shell]
....
% top
last pid: 9609; load averages: 0.56, 0.45, 0.36 up 0+00:20:03 10:21:46
@@ -1304,7 +1304,7 @@ Este exemplo mostra como enviar um sinal para o man:inetd[8]. O arquivo de confi
. Encontre o PID do processo para enviar o sinal usando man:pgrep[1]. Neste exemplo, o PID do man:inetd[8] é 198:
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -1312,7 +1312,7 @@ Este exemplo mostra como enviar um sinal para o man:inetd[8]. O arquivo de confi
+
. Use o man:kill[1] para enviar o sinal. Como o man:inetd[8] é de propriedade do `root`, use o man:su[1] para se tornar `root` primeiro.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1390,14 +1390,14 @@ Outra característica do shell é o uso de variáveis de ambiente. As variáveis
O processo para definir uma variável de ambiente difere entre as shells. Em man:tcsh[1] e man:csh[1], use `setenv` para definir variáveis de ambiente. Em man:sh[1] e no `bash`, use `export` para definir as variáveis de ambiente atuais. Este exemplo define o `EDITOR` padrão para [.filename]#/usr/local/bin/emacs# para a shell man:tcsh[1]:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
O comando equivalente para `bash` seria:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1415,7 +1415,7 @@ A maneira mais fácil de alterar permanentemente a shell padrão é usar o `chsh
Como alternativa, use `chsh -s`, que irá definir a shell especificada sem abrir um editor. Por exemplo, para alterar a shell para `bash`:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
@@ -1425,7 +1425,7 @@ Como alternativa, use `chsh -s`, que irá definir a shell especificada sem abrir
====
A nova shell _deve_ estar presente no arquivo [.filename]#/etc/shells#. Se a shell foi instalada a partir da coleção de ports do FreeBSD, como descrito em crossref:ports[ports, Instalando Aplicativos. Pacotes e Ports], ela deve ser adicionada automaticamente a este arquivo. Se estiver faltando, adicione-a usando este comando, substituindo o caminho pelo caminho da shell:
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash >> /etc/shells
@@ -1440,21 +1440,21 @@ A shell UNIX(TM) não é apenas um interpretador de comandos, ela atua como uma
O redirecionamento de shell é a ação de enviar a saída ou a entrada de um comando para outro comando ou para um arquivo. Para capturar a saída do comando man:ls[1], por exemplo, em um arquivo, redirecione a saída:
-[source,bash]
+[source,shell]
....
% ls > directory_listing.txt
....
O conteúdo do diretório agora será listado em [.filename]#directory_listing.txt#. Alguns comandos podem ser usados para ler entradas, como man:sort[1]. Para classificar esta listagem, redirecione a entrada:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt
....
A entrada será classificada e colocada na tela. Para redirecionar essa entrada para outro arquivo, pode-se redirecionar a saída de man:sort[1] misturando a direção:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt > sorted.txt
....
@@ -1465,7 +1465,7 @@ Através do uso desses descritores, a shell permite que a saída e a entrada sej
O operador pipe UNIX(TM), "|" permite que a saída de um comando seja transmitida diretamente ou direcionada para outro programa. Basicamente, um pipe permite que a saída padrão de um comando seja passada como entrada padrão para outro comando, por exemplo:
-[source,bash]
+[source,shell]
....
% cat directory_listing.txt | sort | less
....
@@ -1497,14 +1497,14 @@ A maioria dos dispositivos no FreeBSD deve ser acessada através de arquivos esp
A documentação mais abrangente sobre o FreeBSD está na forma de páginas de manual. Quase todos os programas do sistema vêm com um breve manual de referência explicando a operação básica e os argumentos disponíveis. Estes manuais podem ser visualizados usando o `man`:
-[source,bash]
+[source,shell]
....
% man command
....
onde _command_ é o nome do comando para aprender. Por exemplo, para saber mais sobre o man:ls[1], digite:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1523,7 +1523,7 @@ As páginas de manual são divididas em seções que representam o tipo de tópi
Em alguns casos, o mesmo tópico pode aparecer em mais de uma seção do manual online. Por exemplo, existe um comando de usuário `chmod` e uma chamada de sistema `chmod()`. Para informar ao man:man[1] qual seção exibir, especifique o número da seção:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1532,7 +1532,7 @@ Isto irá mostrar a página de manual do comando man:chmod[1]. Referências a um
Se o nome da página de manual for desconhecido, use `man -k` para procurar por palavras-chave nas descrições da página de manual:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1541,7 +1541,7 @@ Este comando exibe uma lista de comandos que possuem a palavra-chave "mail" em s
Para ler as descrições de todos os comandos em [.filename]#/usr/bin#, digite:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f * | more
@@ -1549,7 +1549,7 @@ Para ler as descrições de todos os comandos em [.filename]#/usr/bin#, digite:
ou
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis * |more
@@ -1562,7 +1562,7 @@ O FreeBSD inclui vários aplicativos e utilitários produzidos pela Free Softwar
Para usar o man:info[1], digite:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/pt-br/books/handbook/boot/_index.adoc b/documentation/content/pt-br/books/handbook/boot/_index.adoc
index 98b486a9ba..04ee029ebd 100644
--- a/documentation/content/pt-br/books/handbook/boot/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/boot/_index.adoc
@@ -101,7 +101,7 @@ O MBR instalado pelo instalador do FreeBSD é baseado no [.filename]#/boot/boot0
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
Outros sistemas operacionais sobrescreverão um MBR existente se forem instalados após o FreeBSD. Se isto acontecer, ou para substituir o MBR existente com o MBR do FreeBSD, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -136,7 +136,7 @@ O estágio dois, [.filename]#boot2#, é um pouco mais sofisticado, e entende o s
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -147,7 +147,7 @@ boot:
Para substituir o [.filename]#boot1# e [.filename]#boot2# instalados, use o `bsdlabel`, onde _diskslice_ é o disco e o slice para inicializar, como [.filename]#ad0s1# para o primeiro slice no primeiro disco IDE:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -219,14 +219,14 @@ Finalmente, por padrão, o loader realiza uma espera de 10 segundos por pression
Aqui estão alguns exemplos práticos de uso do loader. Para inicializar o kernel usual no modo single-user :
-[source,bash]
+[source,shell]
....
boot -s
....
Para descarregar o kernel e os módulos usuais e, em seguida, carregar o kernel anterior ou outro especificado:
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -236,7 +236,7 @@ Use o [.filename]#kernel.GENERIC# para se referir ao kernel padrão que vem com
Use o seguinte para carregar os módulos usuais com outro kernel:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -245,7 +245,7 @@ Use o seguinte para carregar os módulos usuais com outro kernel:
Para carregar um script de configuração do kernel automatizado:
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -380,14 +380,14 @@ Uma vez que o sistema é inicializado, man:kenv[1] pode ser usado para despejar
A sintaxe para o arquivo [.filename]#/boot/device.hints# é uma variável por linha, usando o hash "#" como marcadores de comentário. As linhas são construídas da seguinte forma:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
A sintaxe para o estágio 3 do boot loader é:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/pt-br/books/handbook/bsdinstall/_index.adoc b/documentation/content/pt-br/books/handbook/bsdinstall/_index.adoc
index adb4706042..6ef781c0fb 100644
--- a/documentation/content/pt-br/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/bsdinstall/_index.adoc
@@ -198,7 +198,7 @@ Este exemplo usa [.filename]#/dev/da0# como o dispositivo de destino em que a im
======
. O utilitário de linha de comando man:dd[1] está disponível no BSD, no Linux(TM) e no Mac OS(TM). Para gravar a imagem usando o `dd`, insira o pendrive USB e determine o nome do dispositivo. Em seguida, especifique o nome do arquivo de instalação baixado e o nome do dispositivo para o pendrive USB. Este exemplo grava a imagem de instalação amd64 no primeiro dispositivo USB em um sistema FreeBSD existente.
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-12.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -261,7 +261,7 @@ Se o computador carregar o sistema operacional existente em vez do instalador do
Na maioria das máquinas, manter pressionado o kbd:[C] no teclado durante a inicialização irá inicializar a partir do CD. Caso contrário, mantenha pressionados kbd:[Command+Option+O+F], ou kbd:[Windows+Alt+O+F] em teclados não-Apple(TM). No prompt `0 >`, digite
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -893,7 +893,7 @@ As mensagens que apareceram durante a inicialização podem ser revisadas pressi
Se o sshd foi habilitado em <<bsdinstall-config-serv>>, a primeira inicialização pode ser um pouco mais lenta, pois o sistema gerará as chaves RSA e DSA. As inicializações subseqüentes serão mais rápidas. As impressões digitais das chaves serão exibidas, conforme mostrado neste exemplo:
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1048,7 +1048,7 @@ Os fabricantes geralmente desaconselham a atualização da BIOS da placa-mãe, a
Se o sistema trava enquanto verifica o hardware durante a inicialização ou se comporta de maneira estranha durante a instalação, o ACPI pode ser o culpado. O FreeBSD faz uso extensivo do sistema ACPI nas plataformas i386 e amd64 para ajudar na configuração do sistema, caso seja detectado durante a inicialização. Infelizmente, alguns bugs ainda existem tanto no driver ACPI como nas placas-mãe do sistema e no firmware BIOS. O ACPI pode ser desativado configurando a opção `hint.acpi.0.disabled` no terceiro estágio do boot loader:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/pt-br/books/handbook/config/_index.adoc b/documentation/content/pt-br/books/handbook/config/_index.adoc
index 5b5d7e8334..9d82dc488e 100644
--- a/documentation/content/pt-br/books/handbook/config/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/config/_index.adoc
@@ -159,7 +159,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <.>
Para criar um crontab de usuário, invoque o `crontab` no modo editor:
-[source,bash]
+[source,shell]
....
% crontab -e
....
@@ -198,7 +198,7 @@ O ambiente definido pelo cron é discutido em man:crontab[5]. Verificar se os sc
Quando terminar de editar o crontab, salve o arquivo. Ele será instalado automaticamente e o cron lerá o crontab e executará seus cron jobs nos horários especificados. Para listar as tarefas agendadas em um crontab, use este comando:
-[source,bash]
+[source,shell]
....
% crontab -l
0 14 * * * /usr/home/dru/bin/mycustomscript.sh
@@ -206,7 +206,7 @@ Quando terminar de editar o crontab, salve o arquivo. Ele será instalado automa
Para remover todas as tarefas cron em um crontab de usuário:
-[source,bash]
+[source,shell]
....
% crontab -r
remove crontab for dru? y
@@ -217,7 +217,7 @@ remove crontab for dru? y
O FreeBSD usa o sistema man:rc[8] de scripts de inicialização durante a inicialização do sistema e para gerenciar serviços. Os scripts listados em [.filename]#/etc/rc.d# fornecem serviços básicos que podem ser controlados com `start`, `stop` e `restart` opções para man:service[8]. Por exemplo, man:sshd[8] pode ser reiniciado com o seguinte comando:
-[source,bash]
+[source,shell]
....
# service sshd restart
....
@@ -233,14 +233,14 @@ Se uma linha `natd_enable="NO"` já estiver presente, altere o `NO` para `YES`.
Como o sistema man:rc[8] é destinado principalmente a iniciar e parar serviços na inicialização do sistema e no tempo de desligamento, o `start`, as opções `stop` e `restart` somente executarão suas ações se a variável apropriada estiver configurada no [.filename]#/etc/rc.conf#. Por exemplo, o `sshd restart` só funcionará se `sshd_enable` estiver definido como `YES` em [.filename]#/etc/rc.conf#. Para `iniciar`, `parar` ou `reiniciar` um serviço independente das configurações em [.filename]#/etc/rc.conf#, estes comandos deve ser prefixado com "one". Por exemplo, para reiniciar man:sshd[8] independentemente da configuração atual do [.filename]#/etc/rc.conf#, execute o seguinte comando:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
Para verificar se um serviço está habilitado em [.filename]#/etc/rc.conf#, execute o script apropriado man:rc[8] com `rcvar`. Este exemplo verifica se o man:sshd[8] está habilitado no [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -256,7 +256,7 @@ A linha `# sshd` é gerada pelo comando acima, não pelo console do `root`.
Para determinar se um serviço está ou não em execução, use `status`. Por exemplo, para verificar se o man:sshd[8] está em execução:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -266,7 +266,7 @@ Em alguns casos, também é possível fazer o `reload` denum serviço. Isso tent
O sistema man:rc[8] é usado para serviços de rede e também contribui para a maior parte da inicialização do sistema. Por exemplo, quando o script [.filename]#/etc/rc.d/bgfsck# é executado, ele imprime a seguinte mensagem:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -335,7 +335,7 @@ Se a NIC é suportada, determine o nome do driver do FreeBSD para a NIC. Consult
Os drivers para as NICs comuns já estão presentes no kernel [.filename]#GENERIC#, o que significa que a NIC deve ser verificada durante a inicialização. As mensagens de inicialização do sistema podem ser visualizadas digitando `more /var/run/dmesg.boot` e usando a barra de espaço para percorrer o texto. Neste exemplo, duas NICs Ethernet que utilizam o driver man:dc[4] estão presentes no sistema:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -377,21 +377,21 @@ A largura do bit do driver deve corresponder à versão do FreeBSD. Para FreeBSD
O próximo passo é compilar o binário do driver em um módulo do kernel carregável. Como `root`, use man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
Este comando é interativo e solicita qualquer informação extra necessária. Um novo módulo do kernel será gerado no diretório atual. Use man:kldload[8] para carregar o novo módulo:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
Além do módulo do kernel gerado, os módulos [.filename]#ndis.ko# e [.filename]#if_ndis.ko# devem ser carregados. Isso deve acontecer automaticamente quando qualquer módulo que dependa do man:ndis[4] for carregado. Caso contrário, carregue-os manualmente, usando os seguintes comandos:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -401,7 +401,7 @@ O primeiro comando carrega o wrapper do driver da miniporta man:ndis[4] e o segu
Execute o comando man:dmesg[8] para ver se houve algum erro de carregamento. Se tudo correu bem, a saída deve ser semelhante à seguinte:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -425,7 +425,7 @@ Quando o driver correto é carregado para a NIC, a placa precisa ser configurada
Para exibir a configuração da NIC, digite o seguinte comando:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -468,7 +468,7 @@ Neste exemplo, o [.filename]#dc0# está ativo e em execução. Os principais ind
Se a saída man:ifconfig[8] tivesse mostrado algo semelhante a:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -511,7 +511,7 @@ Se a rede não estiver usando DNS, edite o [.filename]#/etc/hosts# para adiciona
====
Se não houver um servidor DHCP e o acesso à Internet for necessário, configure manualmente o gateway padrão e o nameserver:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -524,7 +524,7 @@ Se não houver um servidor DHCP e o acesso à Internet for necessário, configur
Uma vez que as alterações necessárias no [.filename]#/etc/rc.conf# sejam salvas, uma reinicialização pode ser usada para testar a configuração de rede e verificar se o sistema é reiniciado sem nenhum erro. Como alternativa, aplique as configurações ao sistema de rede com este comando:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -533,7 +533,7 @@ Uma vez que as alterações necessárias no [.filename]#/etc/rc.conf# sejam salv
====
Se um gateway padrão foi configurado no [.filename]#/etc/rc.conf#, também execute este comando:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -546,7 +546,7 @@ Uma vez que o sistema de rede tiver sido reiniciado, teste as NIC.
Para verificar se uma placa Ethernet está configurada corretamente, execute um man:ping[8] na própria interface e, em seguida, man:ping[8] outra máquina na LAN:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -561,7 +561,7 @@ PING 192.168.1.3 (192.168.1.3): 56 data bytes
round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
....
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -804,14 +804,14 @@ Múltiplas opções `-a` podem ser especificadas para permitir o registro de mú
Finalmente, crie o arquivo de log:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
Neste ponto, o syslogd deve ser reiniciado e verificado:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -842,14 +842,14 @@ Em seguida, defina o servidor de log no [.filename]#/etc/syslog.conf# do cliente
Depois de salvar a edição, reinicie o syslogd para que as alterações entrem em vigor:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Para testar se as mensagens de log estão sendo enviadas pela rede, use o man:logger[1] no cliente para enviar uma mensagem para syslogd:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -867,14 +867,14 @@ Se o `ping` for bem-sucedido em ambos os hosts, mas as mensagens de log ainda n
syslogd_flags="-d -a logclient.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Dados de debug semelhantes aos seguintes irão aparecer no console imediatamente após a reinicialização:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -888,7 +888,7 @@ rejected in rule 0 due to name mismatch.
Neste exemplo, as mensagens de log estão sendo rejeitadas devido a um erro de digitação que resulta em uma incompatibilidade de nome de host. O nome do host do cliente deve ser `logclient`, não `logclien`. Corrija o erro de digitação, execute uma reinicialização e verifique os resultados:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
@@ -1049,14 +1049,14 @@ Em sua essência, o man:sysctl[8] serve duas funções: ler e modificar as confi
Para ver todas as variáveis legíveis:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Para ler uma variável específica, especifique seu nome:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -1064,7 +1064,7 @@ kern.maxproc: 1044
Para definir uma variável específica, use a sintaxe _variable_=_value_:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -1098,7 +1098,7 @@ Em alguns casos, pode ser desejável modificar os valores de variáveis do man:s
Por exemplo, em alguns modelos de laptops, o dispositivo man:cardbus[4] não examinará os intervalos de memória e falhará com erros semelhantes a:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1146,7 +1146,7 @@ A opção de configuração do kernel `SCSI_DELAY` pode ser usada para reduzir o
Para ajustar um sistema de arquivos, use man:tunefs[8]. Este programa tem muitas opções diferentes. Para ativar e desativar o Soft Updates, use:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1232,7 +1232,7 @@ Um vnode é a representação interna de um arquivo ou diretório. Aumentar o n
Para ver o número atual de vnodes em uso:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1240,7 +1240,7 @@ vfs.numvnodes: 91349
Para ver o máximo de vnodes:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1262,7 +1262,7 @@ Adicionar um novo disco rígido para swap resulta em um melhor desempenho do que
Use o `swapon` para adicionar uma partição swap ao sistema. Por exemplo:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1298,14 +1298,14 @@ O uso de arquivos de swap requer que o módulo necessário pelo man:md[4] tenha
. Crie o arquivo de swap:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1m count=512
....
+
. Defina as permissões adequadas no novo arquivo:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1321,7 +1321,7 @@ O dispositivo [.filename]#md99# do man:md[4] é usado, deixando números de disp
+
. O espaço de swap será adicionado na inicialização do sistema. Para adicionar espaço de swap imediatamente, use o man:swapon[8]:
+
-[source,bash]
+[source,shell]
....
# swapon -aL
....
@@ -1377,7 +1377,7 @@ O ACPI tem três estados de suspensão para RAM (STR), `S1`-`S3`, e um de suspen
Use o `sysctl hw.acpi` para verificar os itens relacionados à suspensão. Estes resultados de exemplo são de um Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1389,7 +1389,7 @@ Ao testar as ações de suspend/resume, inicie com o `S1`, se suportado. É mais
Um problema comum com suspend/resume é que muitos drivers de dispositivo não salvam, restauram ou reinicializam seu firmware, registros ou memória do dispositivo adequadamente. Como primeira tentativa de depuração do problema, tente:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1429,7 +1429,7 @@ Primeiro, tente definir `hw.acpi.disable_on_poweroff="0"` no [.filename]#/boot/l
Alguns fornecedores de BIOS fornecem bytecode incorreto ou com bugs. Isso geralmente é manifestado por mensagens do console do kernel como esta:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1445,7 +1445,7 @@ O objetivo do FreeBSD é que todos trabalhem com ACPI sem qualquer intervenção
Para ajudar a identificar o comportamento de bugs e possivelmente corrigi-lo manualmente, uma cópia pode ser feita do ASL do sistema. Para copiar o ASL do sistema para um nome de arquivo especificado, use `acpidump` com `-t`, para mostrar o conteúdo das tabelas fixas e `-d`, para desmontar o AML:
-[source,bash]
+[source,shell]
....
# acpidump -td > my.asl
....
@@ -1454,7 +1454,7 @@ Algumas versões de AML assumem que o usuário está executando o Windows(TM). P
Outras soluções alternativas podem exigir que o [.filename]#my.asl# seja personalizado. Se este arquivo for editado, compile o novo ASL usando o seguinte comando. Os avisos geralmente podem ser ignorados, mas erros são bugs que geralmente impedem que o ACPI funcione corretamente.
-[source,bash]
+[source,shell]
....
# iasl -f my.asl
....
@@ -1478,7 +1478,7 @@ O driver ACPI possui um recurso de depuração flexível. Um conjunto de subsist
A saída de depuração não está ativada por padrão. Para ativá-la, adicione as opções `ACPI_DEBUG` ao arquivo de configuração do kernel personalizado se ACPI estiver compilado no kernel. Adicione `ACPI_DEBUG=1` ao [.filename]#/etc/make.conf# para ativá-lo globalmente. Se um módulo for usado em vez de um kernel personalizado, recompile apenas o módulo [.filename]#acpi.ko# como segue:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi && make clean && make ACPI_DEBUG=1
....
@@ -1508,7 +1508,7 @@ Ao enviar um relatório de problemas, inclua as seguintes informações:
* Saída do `sysctl hw.acpi`. Isso lista quais recursos o sistema oferece.
* A URL para uma versão do ASL do sistema hospedada na web. _Não_ envie o ASL diretamente para a lista, pois pode ser muito grande. Gere uma cópia do ASL executando este comando:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
diff --git a/documentation/content/pt-br/books/handbook/cutting-edge/_index.adoc b/documentation/content/pt-br/books/handbook/cutting-edge/_index.adoc
index 1c2dddd5f0..c4ca1444f4 100644
--- a/documentation/content/pt-br/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/cutting-edge/_index.adoc
@@ -151,7 +151,7 @@ O processo de aplicação de patches de segurança do FreeBSD foi simplificado,
Patches de segurança do FreeBSD podem ser baixados e instalados usando os seguintes comandos. O primeiro comando determinará se algum patch pendente está disponível e, em caso afirmativo, listará os arquivos que serão modificados se os patches forem aplicados. O segundo comando aplicará os patches.
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -175,7 +175,7 @@ Se houver patches, eles serão automaticamente baixados, mas não serão aplicad
Se algo der errado, o `freebsd-update` terá a capacidade de reverter o último conjunto de alterações com o seguinte comando:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -206,14 +206,14 @@ Se o sistema estiver executando um kernel personalizado, certifique-se de que um
O seguinte comando, quando executado em um sistema FreeBSD 9.0, irá atualizá-lo para o FreeBSD 9.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
Depois que o comando for recebido, o `freebsd-update` avaliará o arquivo de configuração e o sistema atual na tentativa de reunir as informações necessárias para executar a atualização. Uma listagem de tela exibirá quais componentes foram e quais não foram detectados. Por exemplo:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -237,7 +237,7 @@ Neste ponto, o `freebsd-update` tentará baixar todos os arquivos necessários p
Ao usar um kernel personalizado, a etapa acima produzirá um aviso semelhante ao seguinte:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -253,7 +253,7 @@ Depois que todos os patches tiverem sido baixados para o sistema local, eles ser
====
O sistema não está sendo alterado, já que todos os patches e merges estão acontecendo em outro diretório. Uma vez que todas as correções tenham sido aplicadas com sucesso, e todos os arquivos de configuração foram mesclados e tudo indicar que o processo ocorrerá sem problemas, as alterações poderão ser confirmadas pelo usuário usando o seguinte comando:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -262,7 +262,7 @@ O sistema não está sendo alterado, já que todos os patches e merges estão ac
O kernel e os módulos do kernel serão atualizados primeiro. Se o sistema estiver sendo executado com um kernel personalizado, use o man:nextboot[8] para definir que o kernel para a próxima inicialização será o [.filename]#/boot/GENERIC#:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -275,14 +275,14 @@ Antes de reinicializar com o kernel [.filename]#GENERIC#, verifique se ele cont
A máquina agora deve ser reiniciada com o kernel atualizado:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
Quando o sistema estiver on-line, reinicie o `freebsd-update` usando o comando a seguir. Como o estado do processo foi salvo, o `freebsd-update` não será iniciado desde o início, mas passará para a próxima fase e removerá todas as bibliotecas compartilhadas e os arquivos de objetos antigos.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -301,7 +301,7 @@ Antes de usar o `freebsd-update`, assegure-se de que uma cópia do kernel [.file
Se um kernel personalizado foi compilado mais de uma vez ou se é desconhecido quantas vezes o kernel personalizado foi compilado, obtenha uma cópia do kernel `GENERIC` que corresponda à versão atual do sistema operacional. Se o acesso físico ao sistema estiver disponível, uma cópia do kernel `GENERIC` pode ser instalada a partir da mídia de instalação:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -310,7 +310,7 @@ Se um kernel personalizado foi compilado mais de uma vez ou se é desconhecido q
Como alternativa, o kernel `GENERIC` pode ser recriado e instalado a partir da do código fonte:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -327,14 +327,14 @@ Geralmente, os aplicativos instalados continuarão funcionando sem problemas ap
Uma atualização forçada de todos os pacotes instalados substituirá os pacotes por novas versões a partir do repositório, mesmo que o número da versão não tenha aumentado. Isso é necessário por causa da alteração da versão do ABI que ocorre ao atualizar entre versões principais do FreeBSD. A atualização forçada pode ser realizada executando:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
Uma recompilação de todos os aplicativos instalados pode ser realizada com este comando:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -343,7 +343,7 @@ Este comando exibirá as telas de configuração de cada aplicativo que possui o
Quando as atualizações de software estiverem concluídas, conclua o processo de atualização com uma chamada final para o `freebsd-update` para amarrar todas as pontas soltas no processo de atualização:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -365,7 +365,7 @@ Este comando não é um substituto para um IDS real como o package:security/snor
Para começar a comparação, especifique um arquivo de saída para salvar os resultados:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -374,7 +374,7 @@ O sistema agora será inspecionado e uma longa lista de arquivos, junto com os v
As entradas na listagem são extremamente longas, mas o formato de saída pode ser facilmente analisado. Por exemplo, para obter uma lista de todos os arquivos que diferem daqueles na release, execute o seguinte comando:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -401,7 +401,7 @@ Recompilar a documentação do FreeBSD a partir do código-fonte requer uma cole
Uma vez instalado, use o svnlite para buscar uma cópia limpa dos fontes da documentação:
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -410,7 +410,7 @@ O download inicial dos fontes da documentação pode demorar um pouco. Deixe exe
Futuras atualizações dos fontes da documentação podem ser obtidas executando:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -419,7 +419,7 @@ Depois que um snapshot atualizado dos fontes da documentação for obtido e disp
Uma atualização completa de todos os idiomas disponíveis pode ser realizada digitando:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -427,7 +427,7 @@ Uma atualização completa de todos os idiomas disponíveis pode ser realizada d
Se uma atualização de apenas um idioma específico for desejada, o `make` pode ser executado em um subdiretório específico de idioma do [.filename]#/usr/doc#:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -435,14 +435,14 @@ Se uma atualização de apenas um idioma específico for desejada, o `make` pode
Uma maneira alternativa de atualizar a documentação é executar este comando a partir do [.filename]#/usr/doc# ou do subdiretório específico do idioma desejado:
-[source,bash]
+[source,shell]
....
# make update
....
Os formatos de saída que serão instalados podem ser especificados definindo o parâmetro `FORMATS`:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -481,7 +481,7 @@ A organização dos ports de documentação é a seguinte:
Quando pacotes binários são usados, a documentação do FreeBSD será instalada em todos os formatos disponíveis para o idioma especificado. Por exemplo, o comando a seguir instalará o pacote mais recente da documentação em húngaro:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -493,7 +493,7 @@ Os pacotes usam um formato que difere do nome do port correspondente: `_lang_-fr
Para especificar o formato da documentação, compile o port em vez de instalar o pacote. Por exemplo, para compilar e instalar a documentação em inglês:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -514,7 +514,7 @@ Especifica onde instalar a documentação. O padrão é [.filename]#/usr/local/s
Este exemplo usa variáveis para instalar a documentação húngara como um arquivo PDF no diretório especificado:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -522,7 +522,7 @@ Este exemplo usa variáveis para instalar a documentação húngara como um arqu
Pacotes ou ports de documentação podem ser atualizados usando as instruções em crossref:ports[ports, Instalando Aplicativos. Pacotes e Ports]. Por exemplo, o seguinte comando atualiza a documentação húngara instalada usando package:ports-mgmt/portmaster[] através do uso apenas de pacotes:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -598,7 +598,7 @@ Esta é uma referência rápida para as etapas típicas usadas para atualizar o
. Atualizar e Compilar
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -633,7 +633,7 @@ Leia o [.filename]#/usr/src/UPDATING#. Quaisquer etapas manuais que devem ser ex
O código fonte do FreeBSD está localizado em [.filename]#/usr/src/#. O método preferido para atualizar os fontes é através do sistema de controle de versão do Subversion. Verifique se o código-fonte está sob controle de versão:
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -643,7 +643,7 @@ Working Copy Root Path: /usr/src
Isto indica que o [.filename]#/usr/src/# está sob controle de versão e pode ser atualizado com o man:svnlite[1]:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -682,7 +682,7 @@ Os ramos STABLE ocasionalmente possuem bugs ou incompatibilidades que podem afet
Determine qual versão do FreeBSD está sendo usada com man:uname[1]:
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -690,7 +690,7 @@ Determine qual versão do FreeBSD está sendo usada com man:uname[1]:
Baseado em <<updating-src-obtaining-src-repopath>>, a fonte usada para atualizar `10.3-RELEASE` tem como caminho de repositório `base/releng/10.3`. Este caminho é usado ao verificar a fonte:
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -705,7 +705,7 @@ Baseado em <<updating-src-obtaining-src-repopath>>, a fonte usada para atualizar
O _world_, ou todo o sistema operacional, exceto o kernel, é compilado. Isso é feito primeiro para fornecer ferramentas atualizadas para construir o kernel. Então o próprio kernel é construído:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -721,7 +721,7 @@ Estes são os passos básicos. Opções adicionais para controlar a compilação
Algumas versões do sistema de compilação do FreeBSD deixam o código previamente compilado no diretório de objetos temporários, [.filename]#/usr/obj#. Isso pode acelerar as compilações posteriores, evitando recompilar o código que não foi alterado. Para forçar uma reconstrução limpa de tudo, use `cleanworld` antes de iniciar uma construção:
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -737,7 +737,7 @@ Aumentar o número de jobs de compilação em processadores com vários núcleos
====
Compilando o mundo e o kernel com quatro jobs:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -749,7 +749,7 @@ Compilando o mundo e o kernel com quatro jobs:
Um `buildworld` deve ser completado se o código-fonte for alterado. Depois disso, um `buildkernel` para compilar um kernel pode ser executado a qualquer momento. Para compilar apenas o kernel:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -772,7 +772,7 @@ O [.filename]#/usr/src# pode ser deletado ou recriado, então é preferível man
Um arquivo de configuração personalizado pode ser criado copiando o arquivo de configuração [.filename]#GENERIC#. Neste exemplo, o novo kernel personalizado é para um servidor de armazenamento, portanto, é denominado [.filename]#STORAGESERVER#:
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -783,7 +783,7 @@ O [.filename]#/root/STORAGESERVER# é então editado, adicionando ou removendo d
O kernel personalizado é compilado pela configuração `KERNCONF` no arquivo de configuração do kernel na linha de comando:
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -793,7 +793,7 @@ O kernel personalizado é compilado pela configuração `KERNCONF` no arquivo de
Depois que as etapas `buildworld` e `buildkernel` forem concluídas, o novo kernel e o restante do sistema base serão instalados:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -805,7 +805,7 @@ Depois que as etapas `buildworld` e `buildkernel` forem concluídas, o novo kern
Se um kernel customizado foi compilado, `KERNCONF` também deve ser configurado para usar o novo kernel customizado:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -827,7 +827,7 @@ O man:mergemaster[8] fornece uma maneira fácil de mesclar as alterações feita
Com a opção `-Ui`, o man:mergemaster[8] atualizará automaticamente os arquivos que não foram modificados pelo usuário e instalará os novos arquivos que ainda não estiverem presentes:
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -839,28 +839,28 @@ Se um arquivo precisar ser mesclado manualmente, uma exibição interativa permi
Alguns arquivos ou diretórios obsoletos podem permanecer após uma atualização. Esses arquivos podem ser localizados:
-[source,bash]
+[source,shell]
....
# make check-old
....
e excluído:
-[source,bash]
+[source,shell]
....
# make delete-old
....
Algumas bibliotecas obsoletas também podem permanecer. Estes podem ser detectados com:
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
e deletado com
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -872,7 +872,7 @@ Os programas que ainda estavam usando estas bibliotecas antigas deixarão de fun
Quando todos os arquivos ou diretórios antigos forem considerados seguros para serem excluídos, a ação de pressionar kbd:[y] e kbd:[Enter] para excluir cada arquivo poderá ser evitada configurando a variável `BATCH_DELETE_OLD_FILES` no comando. Por exemplo:
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -884,7 +884,7 @@ Quando todos os arquivos ou diretórios antigos forem considerados seguros para
A última etapa após a atualização é reiniciar o computador para que todas as alterações entrem em vigor:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/pt-br/books/handbook/desktop/_index.adoc b/documentation/content/pt-br/books/handbook/desktop/_index.adoc
index e710c7a405..5c293be3da 100644
--- a/documentation/content/pt-br/books/handbook/desktop/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/desktop/_index.adoc
@@ -103,21 +103,21 @@ O Firefox é um navegador de código-fonte aberto que apresenta um mecanismo de
Para instalar o pacote da versão mais recente do Firefox, digite:
-[source,bash]
+[source,shell]
....
# pkg install firefox
....
Para instalar a versão ESR (Extended Support Release) do Firefox, use:
-[source,bash]
+[source,shell]
....
# pkg install firefox-esr
....
A Coleção de Ports pode ser usada para compilar a versão desejada do Firefox a partir do código-fonte. Este exemplo compila o package:www/firefox[], onde o `firefox` pode ser substituído pelo ESR ou pela versão localizada para instalar.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -129,14 +129,14 @@ O Konqueror é mais do que um navegador Web, pois também é um gerenciador de a
O Konqueror pode ser instalado como um pacote digitando:
-[source,bash]
+[source,shell]
....
# pkg install konqueror
....
Para instalar a partir da Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fm/konqueror/
# make install clean
@@ -148,14 +148,14 @@ O Chromium é um projeto de navegador de código aberto que visa criar uma exper
O Chromium pode ser instalado como um pacote digitando:
-[source,bash]
+[source,shell]
....
# pkg install chromium
....
Alternativamente, o Chromium pode ser compilado a partir do código-fonte usando a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -213,14 +213,14 @@ O ambiente de área de trabalho do KDE inclui uma suíte de escritório que pode
No FreeBSD, o package:editors/calligra[] pode ser instalado como um pacote ou um port. Para instalar o pacote:
-[source,bash]
+[source,shell]
....
# pkg install calligra
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/calligra
# make install clean
@@ -234,14 +234,14 @@ O AbiWord pode importar ou exportar muitos formatos de arquivo, incluindo alguns
Para instalar o pacote do AbiWord:
-[source,bash]
+[source,shell]
....
# pkg install abiword
....
Se o pacote não estiver disponível, ele pode ser compilado a partir da Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -253,14 +253,14 @@ Para autoria ou retoque de imagens, o GIMP fornece um sofisticado programa de ma
Para instalar o pacote:
-[source,bash]
+[source,shell]
....
# pkg install gimp
....
Como alternativa, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -276,14 +276,14 @@ O processador de texto do Apache OpenOffice usa um formato de arquivo XML nativo
Para instalar o pacote Apache OpenOffice:
-[source,bash]
+[source,shell]
....
# pkg install apache-openoffice
....
Depois que o pacote for instalado, digite o seguinte comando para iniciar o Apache OpenOffice:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -292,7 +292,7 @@ onde _X.Y.Z_ é o número da versão instalada do Apache OpenOffice. Na primeira
Se o pacote do Apache OpenOffice desejado não estiver disponível, a compilação do port ainda será uma opção. No entanto, isso requer muito espaço em disco e um tempo bastante longo para compilar:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-4
# make install clean
@@ -302,7 +302,7 @@ Se o pacote do Apache OpenOffice desejado não estiver disponível, a compilaç
====
Para compilar uma versão localizada, substitua o comando anterior por:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -318,7 +318,7 @@ O processador de texto do LibreOffice usa um formato de arquivo XML nativo para
Para instalar a versão em inglês do pacote LibreOffice:
-[source,bash]
+[source,shell]
....
# pkg install libreoffice
....
@@ -327,7 +327,7 @@ A categoria de editores de texto (https://www.FreeBSD.org/ports/[freebsd.org/por
Quando o pacote estiver instalado, digite o seguinte comando para executar o LibreOffice:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -336,7 +336,7 @@ Durante a primeira execução, algumas perguntas serão feitas e uma pasta [.fil
Se o pacote LibreOffice desejado não estiver disponível, a compilação do port ainda será uma opção. No entanto, isso requer muito espaço em disco e um tempo bastante longo para compilar. Este exemplo compila a versão em inglês:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -392,14 +392,14 @@ Para os usuários que preferem um pequeno visualizador de PDF do FreeBSD, o Xpdf
Para instalar o pacote Xpdf:
-[source,bash]
+[source,shell]
....
# pkg install xpdf
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -413,14 +413,14 @@ O gv é um visualizador de arquivos PostScript(TM) e PDF. Ele é baseado no ghos
Para instalar o gv como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install gv
....
Se um pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -432,14 +432,14 @@ O Geeqie é um fork do projeto abandonado GQView, em um esforço para levar o
Para instalar o pacote Geeqie:
-[source,bash]
+[source,shell]
....
# pkg install geeqie
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/geeqie
# make install clean
@@ -451,14 +451,14 @@ O ePDFView é um visualizador de documentos PDF leve que usa somente as bibliote
Para instalar o ePDFView como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install epdfview
....
Se um pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/epdfview
# make install clean
@@ -470,14 +470,14 @@ O Okular é um visualizador de documentos universal baseado no KPDF para KDE. El
Para instalar o Okular como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install okular
....
Se um pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/okular
# make install clean
@@ -522,14 +522,14 @@ O GnuCash fornece um registro inteligente, um sistema hierárquico de contas e
Para instalar o pacote GnuCash:
-[source,bash]
+[source,shell]
....
# pkg install gnucash
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -541,14 +541,14 @@ O Gnumeric é um programa de planilha eletrônica desenvolvido pela comunidade G
Para instalar o Gnumeric como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install gnumeric
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -560,14 +560,14 @@ O KMyMoney é uma aplicação de finanças pessoais criada pela comunidade KDE.
Para instalar o KMyMoney como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install kmymoney-kde4
....
Se o pacote não estiver disponível, use a Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney-kde4
# make install clean
diff --git a/documentation/content/pt-br/books/handbook/disks/_index.adoc b/documentation/content/pt-br/books/handbook/disks/_index.adoc
index 891b614329..029b113d6d 100644
--- a/documentation/content/pt-br/books/handbook/disks/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/disks/_index.adoc
@@ -83,7 +83,7 @@ Se o disco a ser adicionado não estiver em branco, as informações antigas da
O esquema de partição é criado e, em seguida, uma única partição é adicionada. Para melhorar o desempenho em discos mais recentes com tamanhos maiores de blocos de hardware, a partição está alinhada a divisões de um megabyte:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
@@ -93,7 +93,7 @@ Dependendo do uso, várias partições menores podem ser desejadas. Veja man:gpa
As informações da partição de disco podem ser visualizadas com `gpart show`:
-[source,bash]
+[source,shell]
....
% gpart show ada1
=> 34 1465146988 ada1 GPT (699G)
@@ -104,14 +104,14 @@ As informações da partição de disco podem ser visualizadas com `gpart show`:
Um sistema de arquivos é criado em uma nova partição no novo disco:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
Um diretório vazio é criado como um _ponto de montagem_, um local para montar o novo disco no sistema de arquivos do disco original:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -125,7 +125,7 @@ Finalmente, uma entrada é adicionada ao arquivo [.filename]#/etc/fstab# para qu
O novo disco pode ser montado manualmente, sem reiniciar o sistema:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -139,7 +139,7 @@ Determine o nome do dispositivo do disco a ser redimensionado inspecionando o ar
Liste as partições no disco para ver a configuração atual:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 83886013 ada0 GPT (48G) [CORRUPT]
@@ -153,7 +153,7 @@ Liste as partições no disco para ver a configuração atual:
====
Se o disco foi formatado com o esquema de particionamento http://en.wikipedia.org/wiki/GUID_Partition_Table[GPT], ele pode ser exibido como "corrompido" porque a tabela de partições de backup GPT não está mais no final da unidade. Corrija a tabela de partições de backup com o `gpart`:
-[source,bash]
+[source,shell]
....
# gpart recover ada0
ada0 recovered
@@ -163,7 +163,7 @@ ada0 recovered
Agora, o espaço adicional no disco está disponível para uso por uma nova partição ou uma partição existente pode ser expandida:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 102399933 ada0 GPT (48G)
@@ -177,14 +177,14 @@ As partições só podem ser redimensionadas para um espaço livre contíguo. Aq
Desative a partição de swap:
-[source,bash]
+[source,shell]
....
# swapoff /dev/ada0p3
....
Exclua a terceira partição, especificada pela flag `-i`, do disco _ada0_.
-[source,bash]
+[source,shell]
....
# gpart delete -i 3 ada0
ada0p3 deleted
@@ -200,7 +200,7 @@ ada0p3 deleted
Existe o risco de perda de dados ao modificar a tabela de partições de um sistema de arquivos montado. É melhor executar as etapas a seguir em um sistema de arquivos desmontado durante a execução de um dispositivo CD-ROM ou USB live. No entanto, se for absolutamente necessário, um sistema de arquivos montado pode ser redimensionado depois de desativar os recursos de segurança do GEOM:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -209,7 +209,7 @@ Existe o risco de perda de dados ao modificar a tabela de partições de um sist
Redimensione a partição, deixando espaço para recriar uma partição swap do tamanho desejado. A partição a ser redimensionada é especificada com `-i` e o novo tamanho desejado com `-s`. Opcionalmente, o alinhamento da partição é controlado com `-a`. Isso só modifica o tamanho da partição. O sistema de arquivos na partição será expandido em uma etapa separada.
-[source,bash]
+[source,shell]
....
# gpart resize -i 2 -s 47G -a 4k ada0
ada0p2 resized
@@ -222,7 +222,7 @@ ada0p2 resized
Recrie a partição swap e ative-a. Se nenhum tamanho for especificado com `-s`, todo o espaço restante será usado:
-[source,bash]
+[source,shell]
....
# gpart add -t freebsd-swap -a 4k ada0
ada0p3 added
@@ -236,7 +236,7 @@ ada0p3 added
Aumente o sistema de arquivos UFS para usar a nova capacidade da partição redimensionada:
-[source,bash]
+[source,shell]
....
# growfs /dev/ada0p2
Device is mounted read-write; resizing will result in temporary write suspension for /.
@@ -249,7 +249,7 @@ super-block backups (for fsck -b #) at:
Se o sistema de arquivos for ZFS, o redimensionamento será acionado pela execução do subcomando `online` com `-e`:
-[source,bash]
+[source,shell]
....
# zpool online -e zroot /dev/ada0p2
....
@@ -290,7 +290,7 @@ O restante desta seção demonstra como verificar se um dispositivo de armazenam
Para testar a configuração USB, conecte o dispositivo USB. Use `dmesg` para confirmar que a unidade aparece no buffer de mensagens do sistema. Deve parecer algo como isto:
-[source,bash]
+[source,shell]
....
umass0: <STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x0100
@@ -307,7 +307,7 @@ A marca, o nó de dispositivo ([.filename]#da0#), a velocidade e o tamanho serã
Como o dispositivo USB é visto como um SCSI, o `camcontrol` pode ser usado para listar os dispositivos de armazenamento USB conectados ao sistema:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<STECH Simple Drive 1.04> at scbus4 target 0 lun 0 (pass3,da0)
@@ -315,7 +315,7 @@ Como o dispositivo USB é visto como um SCSI, o `camcontrol` pode ser usado para
Alternativamente, o `usbconfig` pode ser usado para listar o dispositivo. Consulte o man:usbconfig[8] para obter mais informações sobre este comando.
-[source,bash]
+[source,shell]
....
# usbconfig
ugen0.3: <Simple Drive STECH> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
@@ -365,7 +365,7 @@ vfs.usermount=1
Como isso só entra em vigor após a próxima reinicialização, use `sysctl` para definir essa variável agora:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -373,7 +373,7 @@ vfs.usermount: 0 -> 1
A etapa final é criar um diretório no qual o sistema de arquivos deve ser montado. Esse diretório precisa pertencer ao usuário que deve montar o sistema de arquivos. Uma maneira de fazer isso é para o `root` criar um subdiretório de propriedade daquele usuário como [.filename]#/mnt/username#. No exemplo a seguir, substitua _username_ pelo nome de login do usuário e _usergroup_ pelo grupo principal do usuário:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -381,21 +381,21 @@ A etapa final é criar um diretório no qual o sistema de arquivos deve ser mont
Suponha que um thumbdrive USB esteja conectado e um dispositivo [.filename]#/dev/da0s1# apareça. Se o dispositivo estiver formatado com um sistema de arquivos FAT, o usuário poderá montá-lo usando:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Antes que o dispositivo possa ser desconectado, ele _deve_ ser desmontado primeiro:
-[source,bash]
+[source,shell]
....
% umount /mnt/username
....
Após a remoção do dispositivo, o buffer de mensagens do sistema mostrará mensagens semelhantes às seguintes:
-[source,bash]
+[source,shell]
....
umass0: at uhub3, port 2, addr 3 (disconnected)
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
@@ -407,14 +407,14 @@ da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
Dispositivos USB podem ser montados automaticamente removendo o comentário desta linha no arquivo [.filename]#/etc/auto_master#:
-[source,bash]
+[source,shell]
....
/media -media -nosuid
....
Então adicione estas linhas ao arquivo [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "GEOM";
@@ -425,7 +425,7 @@ notify 100 {
Recarregue a configuração se man:autofs[5] e man:devd[8] já estiverem em execução:
-[source,bash]
+[source,shell]
....
# service automount restart
# service devd restart
@@ -442,7 +442,7 @@ man:autofs[5] requer que o man:devd[8] esteja ativado, como é por padrão.
Inicie os serviços imediatamente com:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -454,7 +454,7 @@ Cada sistema de arquivos que pode ser montado automaticamente aparece como um di
O sistema de arquivos é montado de forma transparente no primeiro acesso e desmontado após um período de inatividade. Unidades montadas automaticamente também podem ser desmontadas manualmente:
-[source,bash]
+[source,shell]
....
# automount -fu
....
@@ -530,7 +530,7 @@ Isso exigirá uma reinicialização do sistema, pois esse driver só pode ser ca
Para verificar se o FreeBSD reconhece o dispositivo, execute o `dmesg` e procure por uma entrada para o dispositivo. Nos sistemas anteriores a 10.x, o nome do dispositivo na primeira linha da saída será [.filename]#acd0# em vez de [.filename]#cd0#.
-[source,bash]
+[source,shell]
....
% dmesg | grep cd
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
@@ -547,14 +547,14 @@ No FreeBSD, `cdrecord` pode ser usado para gravar CDs. Este comando é instalado
Enquanto o `cdrecord` tem muitas opções, o uso básico é simples. Especifique o nome do arquivo ISO para gravar e, se o sistema tiver vários dispositivos de gravação, especifique o nome do dispositivo a ser usado:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
Para determinar o nome do dispositivo do gravador, use `-scanbus`, que pode produzir resultados como este:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 Jörg Schilling
@@ -583,7 +583,7 @@ Localize a entrada para o gravador de CD e use os três números separados por v
Como alternativa, execute o seguinte comando para obter o endereço do dispositivo do gravador:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (cd0,pass0)
@@ -596,7 +596,7 @@ Use os valores numéricos para `scbus`, `target` e `lun`. Para este exemplo, `1,
Para produzir um CD de dados, os arquivos de dados que compõem as faixas no CD devem ser preparados antes que possam ser gravados no CD. No FreeBSD, package:sysutils/cdrtools[] instala o `mkisofs`, que pode ser usado para produzir um sistema de arquivos ISO 9660 que é uma imagem de uma árvore de diretórios dentro um sistema de arquivos UNIX(TM). O uso mais simples é especificar o nome do arquivo ISO para criar e o caminho para os arquivos a serem colocados no sistema de arquivos ISO 9660:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -609,14 +609,14 @@ Para CDs que serão usados apenas em sistemas FreeBSD, `-U` pode ser usado para
A última opção de uso geral é `-b`. Isso é usado para especificar a localização de uma imagem de inicialização para uso na produção de um CD inicializável "El Torito". Essa opção usa um argumento que é o caminho para uma imagem de inicialização a partir do topo da árvore que está sendo gravada no CD. Por padrão, o `mkisofs` cria uma imagem ISO no modo de "emulação de disquete" e, portanto, espera que a imagem de inicialização tenha exatamente 1200, 1440 ou 2880 KB de tamanho. Alguns gerenciadores de inicialização, como o usado pela mídia de distribuição do FreeBSD, não utilizam o modo de emulação. Nesse caso, `-no-emul-boot` deve ser usado. Então, se [.filename]#/tmp/myboot# possuir um sistema FreeBSD inicializável com a imagem de inicialização em [.filename]#/tmp/myboot/boot/cdboot#, este comando produziria [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
A imagem ISO resultante pode ser montada como um disco de memória com:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -630,7 +630,7 @@ Existem muitas outras opções disponíveis para `mkisofs` para ajustar seu comp
====
É possível copiar um CD de dados para um arquivo de imagem que seja funcionalmente equivalente ao arquivo de imagem criado com `mkisofs`. Para fazer isso, use [.filename]#dd# com o nome do dispositivo como o arquivo de entrada e o nome do ISO para criar como o arquivo de saída:
-[source,bash]
+[source,shell]
....
# dd if=/dev/cd0 of=file.iso bs=2048
....
@@ -643,7 +643,7 @@ O arquivo de imagem resultante pode ser gravado em CD, conforme descrito em <<cd
Uma vez que uma ISO tenha sido gravada em um CD, ela pode ser montada especificando o tipo de sistema de arquivos, o nome do dispositivo que contém o CD e um ponto de montagem existente:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
@@ -681,7 +681,7 @@ Isso faz com que o barramento SCSI faça uma pausa de 15 segundos durante a inic
Este tipo de disco não pode ser montado como um CD de dados normal. Para recuperar os dados gravados em um CD, os dados devem ser lidos no nó do dispositivo bruto. Por exemplo, este comando irá extrair um arquivo tar compactado localizado no segundo dispositivo de CD para o diretório de trabalho atual:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/cd1
....
@@ -703,7 +703,7 @@ Para duplicar um CD de áudio, extraia os dados de áudio do CD para uma série
. O pacote ou port package:sysutils/cdrtools[] instala o `cdda2wav`. Este comando pode ser usado para extrair todas as faixas de áudio, com cada faixa gravada em um arquivo WAV separado no diretório de trabalho atual:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -B -Owav
....
@@ -711,7 +711,7 @@ Para duplicar um CD de áudio, extraia os dados de áudio do CD para uma série
Um nome de dispositivo não precisa ser especificado se houver apenas um dispositivo de CD no sistema. Consulte a página de manual `cdda2wav` para obter instruções sobre como especificar um dispositivo e aprender mais sobre as outras opções disponíveis para este comando.
. Use o `cdrecord` para escrever os arquivos [.filename]#.wav#:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -765,7 +765,7 @@ Já que man:growisofs[1] é um front-end para <<mkisofs,mkisofs>>, ele invocará
Para gravar em um DVD+R ou DVD-R os dados em [.filename]#/path/to/data#, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -776,7 +776,7 @@ Para a gravação inicial da sessão, `-Z` é usado para sessões únicas e múl
Para gravar uma imagem pré-masterizada, como _imagefile.iso_, use:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -789,14 +789,14 @@ Para suportar arquivos de trabalho maiores que 4.38GB, um sistema de arquivos h
Para criar este tipo de arquivo ISO:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
Para gravar arquivos diretamente em um disco:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -812,7 +812,7 @@ Um DVD-Video é um layout de arquivo específico baseado nas especificações IS
Se uma imagem do sistema de arquivos DVD-Video já existir, ela poderá ser gravada da mesma maneira que qualquer outra imagem. Se o `dvdauthor` foi usado para criar o DVD e o resultado está em [.filename]#/path/to/video#, o seguinte comando deve ser usado para gravar o DVD-Vídeo:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -823,7 +823,7 @@ Se uma imagem do sistema de arquivos DVD-Video já existir, ela poderá ser grav
Ao contrário do CD-RW, um DVD+RW virgem precisa ser formatado antes do primeiro uso. É _recomendado_ para permitir que man:growisofs[1] cuide disso automaticamente sempre que apropriado. No entanto, é possível usar `dvd+rw-format` para formatar o DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -832,7 +832,7 @@ Somente execute esta operação uma vez e tenha em mente que apenas mídias DVD+
Para gravar um sistema de arquivos totalmente novo e não apenas acrescentar alguns dados em um DVD+RW, a mídia não precisa ser apagada primeiro. Em vez disso, escreva sobre a gravação anterior assim:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -841,7 +841,7 @@ O formato DVD+RW suporta anexar dados a uma gravação anterior. Essa operação
Por exemplo, para anexar dados a um DVD+RW, use o seguinte:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -855,7 +855,7 @@ Use `-dvd-compat` para melhor compatibilidade de mídia com as unidades de DVD-R
Para apagar a mídia, use:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
@@ -869,7 +869,7 @@ Um DVD-RW virgem pode ser escrito diretamente sem ser formatado. No entanto, um
Para apagar um DVD-RW em modo sequencial:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -878,7 +878,7 @@ Para apagar um DVD-RW em modo sequencial:
====
Um preenchimento completo usando `-blank=full` levará cerca de uma hora em uma mídia 1x. Um limpeza rápida pode ser executada usando `-blank`, se o DVD-RW for gravado no modo Disk-At-Once (DAO). Para gravar o DVD-RW no modo DAO, use o comando:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -890,7 +890,7 @@ Em vez disso, deve-se usar o modo de sobrescrita restrita com qualquer DVD-RW, p
Para escrever dados em um DVD-RW seqüencial, use as mesmas instruções que para os outros formatos de DVD:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -901,14 +901,14 @@ Um DVD-RW no formato de sobrescrita restrita não precisa ser em apagado antes d
Para colocar um DVD-RW no formato de sobrescrita restrita, o seguinte comando deve ser usado:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Para voltar ao formato sequencial, use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -919,7 +919,7 @@ Poucas unidades de DVD-ROM suportam DVDs multi-sessão e na maioria das vezes ap
Usando o seguinte comando após uma sessão inicial não fechada em um DVD+R, DVD-R ou DVD-RW em formato sequencial, será adicionada uma nova sessão ao disco:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -954,7 +954,7 @@ hw.ata.atapi_dma="1"
Um DVD-RAM pode ser visto como um disco rígido removível. Como qualquer outro disco rígido, o DVD-RAM deve ser formatado antes de poder ser usado. Neste exemplo, todo o espaço em disco será formatado com um sistema de arquivos UFS2 padrão:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -965,7 +965,7 @@ O dispositivo DVD, [.filename]#acd0#, deve ser alterado de acordo com a configur
Uma vez que o DVD-RAM tenha sido formatado, ele pode ser montado como um disco rígido normal:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -985,7 +985,7 @@ Um disquete precisa ser formatado em baixo nível antes de poder ser usado. Isso
. Para formatar o disquete, insira um novo disquete de 3.5 polegadas na primeira unidade de disquete e digite:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -994,7 +994,7 @@ Um disquete precisa ser formatado em baixo nível antes de poder ser usado. Isso
+
Para escrever o rótulo do disco, use man:bsdlabel[8]:
+
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1003,7 +1003,7 @@ Para escrever o rótulo do disco, use man:bsdlabel[8]:
+
Para formatar o disquete com o FAT, digite:
+
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1048,7 +1048,7 @@ Em vez disso, pode-se usar `dump` e `restore` de uma maneira mais segura em uma
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1062,7 +1062,7 @@ Este exemplo configura `RSH` para gravar o backup em uma unidade de fita em um s
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1081,7 +1081,7 @@ Este exemplo cria um backup compactado do diretório atual e o salva no arquivo
[example]
====
-[source,bash]
+[source,shell]
....
# tar czvf /tmp/mybackup.tgz .
....
@@ -1094,7 +1094,7 @@ Para restaurar o backup inteiro, `cd` no diretório para restaurar e especificar
[example]
====
-[source,bash]
+[source,shell]
....
# tar xzvf /tmp/mybackup.tgz
....
@@ -1111,7 +1111,7 @@ Por exemplo, uma lista de arquivos pode ser criada usando `ls` ou `find`. Este e
[example]
====
-[source,bash]
+[source,shell]
....
# ls -R | cpio -ovF /tmp/mybackup.cpio
....
@@ -1126,7 +1126,7 @@ O `pax` equivalente aos exemplos anteriores seria:
[example]
====
-[source,bash]
+[source,shell]
....
# pax -wf /tmp/mybackup.pax .
....
@@ -1142,7 +1142,7 @@ Para dispositivos de fita SCSI, o FreeBSD usa o driver man:sa[4] e os dispositiv
No FreeBSD, o `mt` é usado para controlar as operações da unidade de fita, como procurar arquivos em uma fita ou gravar marcas de controle na fita. Por exemplo, os três primeiros arquivos em uma fita podem ser preservados, ignorando-os antes de gravar um novo arquivo:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1151,28 +1151,28 @@ Este utilitário suporta muitas operações. Consulte man:mt[1] para detalhes.
Para gravar um único arquivo em fita usando `tar`, especifique o nome do dispositivo de fita e o arquivo para backup:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
Para recuperar arquivos de um arquivo `tar` em fita no diretório atual:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
Para fazer backup de um sistema de arquivos UFS, use `dump`. Este exemplo faz o backup de [.filename]#/usr# sem rebobinar a fita quando terminar:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
Para restaurar arquivos interativamente de um arquivo `dump` em fita no diretório atual:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1222,7 +1222,7 @@ device md
Para montar uma imagem do sistema de arquivos existente, use o `mdconfig` para especificar o nome do arquivo ISO e um número de unidade livre. Em seguida, consulte esse número de unidade para montá-lo em um ponto de montagem existente. Uma vez montado, os arquivos na imagem ISO aparecerão no ponto de montagem. Este exemplo anexa o arquivo _diskimage.iso_ ao dispositivo de memória [.filename]#/dev/md0# e monta o dispositivo de memória em [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -1232,7 +1232,7 @@ Note que `-t cd9660` foi usado para montar uma imagem ISO. Se um número de unid
Quando um disco de memória não está mais em uso, seus recursos devem ser liberados de volta ao sistema. Primeiro, desmonte o sistema de arquivos e use o `mdconfig` para desanexar o disco do sistema e liberar seus recursos. Para continuar este exemplo:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 0
@@ -1247,7 +1247,7 @@ O FreeBSD também suporta discos virtuais onde o armazenamento a ser utilizado
Para criar um novo disco virtual baseado em memória, especifique um tipo de `swap` e o tamanho do disco de memória a ser criado. Em seguida, formate o disco de memória com um sistema de arquivos e monte como de costume. Este exemplo cria um disco de memória de 5M na unidade `1`. Esse disco de memória é formatado com o sistema de arquivos UFS antes de ser montado:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1264,7 +1264,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Para criar um novo disco virtual baseado em arquivo, primeiro aloque a área que será usada para o disco. Esse exemplo cria um arquivo vázio de 5MB chamado [.filename]#newimage#:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1273,7 +1273,7 @@ Para criar um novo disco virtual baseado em arquivo, primeiro aloque a área que
Em seguida, anexe esse arquivo a um disco de memória, rotule o disco de memória e formate-o com o sistema de arquivos UFS, monte o disco de memória e verifique o tamanho do disco com backup de arquivo:
-[source,bash]
+[source,shell]
....
# mdconfig -f newimage -u 0
# bsdlabel -w md0 auto
@@ -1290,14 +1290,14 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
São necessários vários comandos para criar um disco virtual baseado em arquivo ou memória usando `mdconfig`. O FreeBSD também vem com o `mdmfs` que configura automaticamente um disco de memória, formata-o com o sistema de arquivos UFS e o monta. Por exemplo, depois de criar _newimage_ com `dd`, esse comando é equivalente a executar os comandos `bsdlabel`, `newfs` e `mount` mostrados acima:
-[source,bash]
+[source,shell]
....
# mdmfs -F newimage -s 5m md0 /mnt
....
Para criar um novo disco virtual baseado em memória com o `mdmfs`, use este comando:
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md1 /mnt
....
@@ -1315,21 +1315,21 @@ A flag de arquivo `snapshot` não alterável é definida por man:mksnap_ffs[8] a
Os snapshots são criados usando man:mount[8]. Para colocar um snapshot de [.filename]#/var# no arquivo [.filename]#/var/snapshot/snap#, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Como alternativa, use man:mksnap_ffs[8] para criar o snapshot:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
É possível encontrar arquivos de snapshots em um sistema de arquivos, como [.filename]#/var#, usando man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1341,7 +1341,7 @@ Depois que um snapshot foi criado, ele tem vários usos:
* Executando man:dump[8] em um snapshot produzirá um arquivo de dump que seja consistente com o sistema de arquivos e o registro de data e hora do snapshot. man:dump[8] também pode criar um snapshot, criar uma imagem de dump e remover o snapshot em um comando usando `-L`.
* O snapshot pode ser montado como uma imagem congelada do sistema de arquivos. Para montar o snapshot use man:mount[8] passando o nome do snapshot [.filename]#/var/snapshot/snap#:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1349,7 +1349,7 @@ Depois que um snapshot foi criado, ele tem vários usos:
O [.filename]#/var# congelado agora está disponível através de [.filename]#/mnt#. Tudo estará inicialmente no mesmo estado que estava quando o snapshot foi criado. A única exceção é que os snapshots anteriores aparecerão como arquivos com comprimento zero. Para desmontar o snapshot, use:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1368,7 +1368,7 @@ Esta seção descreve como configurar cotas de disco para o sistema de arquivos
Para determinar se o kernel do FreeBSD fornece suporte para cotas de disco:
-[source,bash]
+[source,shell]
....
% sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
@@ -1419,7 +1419,7 @@ No curso normal das operações, não deve haver necessidade de executar manualm
Para verificar se as cotas estão ativadas, execute:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1436,7 +1436,7 @@ Os limites flexíveis podem ser excedidos por um período de tempo limitado, con
No exemplo a seguir, a cota da conta `test` está sendo editada. Quando `edquota` é invocado, o editor especificado por `EDITOR` é aberto para editar os limites de cota. O editor padrão é configurado para vi.
-[source,bash]
+[source,shell]
....
# edquota -u test
Quotas for user test:
@@ -1457,7 +1457,7 @@ Os novos limites de cotas entram em vigor ao sair do editor.
Às vezes, é desejável definir limites de cota em vários usuários. Isso pode ser feito primeiro atribuindo o limite de cota desejado a um usuário. Em seguida, use `-p` para duplicar essa cota para um intervalo especificado de IDs de usuário (UIDs). O comando a seguir duplicará esses limites de cota para UIDs de `10.000` até `19.999`:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1493,7 +1493,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Em seguida, reinicie o `inetd`:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1515,7 +1515,7 @@ Este recurso oferece várias barreiras para proteger os dados armazenados em cad
O FreeBSD fornece um módulo do kernel para gbde, que pode ser carregado com este comando:
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1534,7 +1534,7 @@ O exemplo a seguir demonstra a adição de um novo disco rígido a um sistema qu
+
Instale a nova unidade no sistema, conforme explicado em <<disks-adding>>. Para propósitos deste exemplo, uma nova partição de disco rígido foi adicionada como [.filename]#/dev/ad4s1c# e [.filename]#/dev/ad0s1*# representa o existente partições padrão do FreeBSD.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1544,7 +1544,7 @@ Instale a nova unidade no sistema, conforme explicado em <<disks-adding>>. Para
+
. Criar um diretório para conter os arquivos de lock do `gbde`
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1554,7 +1554,7 @@ O arquivo de lock gbde contém informações que o gbde requer para acessar part
+
Uma partição gbde deve ser inicializada antes de poder ser usada. Essa inicialização precisa ser executada apenas uma vez. Esse comando abrirá o editor padrão, para definir várias opções de configuração em um modelo. Para uso com o sistema de arquivos UFS, defina o sector_size como 2048:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
# $FreeBSD: head/pt_BR.ISO8859-1/books/handbook/book.xml 53984 2020-03-15 16:03:31Z dbaio $
@@ -1580,14 +1580,14 @@ Arquivos de lock _devem_ ter backups junto com o conteúdo de qualquer partiçã
+
. Anexando a Partição Criptografada ao Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Este comando solicitará a entrada da senha que foi selecionada durante a inicialização da partição criptografada. O novo dispositivo criptografado aparecerá em [.filename]#/dev# como [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1599,7 +1599,7 @@ Este comando solicitará a entrada da senha que foi selecionada durante a inicia
+
Uma vez que o dispositivo criptografado tenha sido anexado ao kernel, um sistema de arquivos pode ser criado no dispositivo. Este exemplo cria um sistema de arquivos UFS com atualizações soft ativadas. Certifique-se de especificar a partição que possui uma extensão [.filename]#*.bde#:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ad4s1c.bde
....
@@ -1608,7 +1608,7 @@ Uma vez que o dispositivo criptografado tenha sido anexado ao kernel, um sistema
+
Crie um ponto de montagem e monte o sistema de arquivos criptografados:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
# mount /dev/ad4s1c.bde /private
@@ -1618,7 +1618,7 @@ Crie um ponto de montagem e monte o sistema de arquivos criptografados:
+
O sistema de arquivos criptografados agora deve estar visível e disponível para uso:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1646,7 +1646,7 @@ Isso requer que a frase secreta seja inserida no console no momento da inicializ
====
O sysinstall é incompatível com os dispositivos criptografados com gbde. Todos os dispositivos [.filename]#*.bde# devem ser desanexado do kernel antes de iniciar o sysinstall ou ele irá travar durante a análise inicial dos dispositivos. Para desanexar o dispositivo criptografado usado no exemplo, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1685,7 +1685,7 @@ geom_eli_load="YES"
+
Para carregar o módulo do kernel agora:
+
-[source,bash]
+[source,shell]
....
# kldload geom_eli
....
@@ -1702,7 +1702,7 @@ device crypto
+
Os comandos a seguir geram uma chave mestra com a qual todos os dados serão criptografados. Esta chave nunca pode ser alterada. Em vez de usá-lo diretamente, ele é criptografado com uma ou mais chaves de usuário. As chaves do usuário são compostas por uma combinação opcional de bytes aleatórios de um arquivo, [.filename]#/root/da2.key# e/ou uma senha. Neste caso, a fonte de dados do arquivo de chave é [.filename]#/dev/random#. Este comando também configura o tamanho do setor do provedor ([.filename]#/dev/da2.eli#) como 4kB, para melhor desempenho:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -K /root/da2.key -s 4096 /dev/da2
@@ -1714,7 +1714,7 @@ Não é obrigatório o uso de uma frase secreta e de um arquivo de chave, pois c
+
Se o arquivo de chave é dado como "-", a entrada padrão será usada. Por exemplo, este comando gera três arquivos principais:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
@@ -1723,7 +1723,7 @@ Se o arquivo de chave é dado como "-", a entrada padrão será usada. Por exemp
+
Para anexar o provedor, especifique o arquivo de chave, o nome do disco e a frase secreta:
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1731,7 +1731,7 @@ Enter passphrase:
+
Isso cria um novo dispositivo com uma extensão [.filename]#.eli#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1741,7 +1741,7 @@ Isso cria um novo dispositivo com uma extensão [.filename]#.eli#:
+
Em seguida, formate o dispositivo com o sistema de arquivos UFS e monte-o em um ponto de montagem existente:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1750,7 +1750,7 @@ Em seguida, formate o dispositivo com o sistema de arquivos UFS e monte-o em um
+
O sistema de arquivos criptografado agora deve estar disponível para uso:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1765,7 +1765,7 @@ Filesystem Size Used Avail Capacity Mounted on
Uma vez que o trabalho na partição criptografada é feito, e a partição [.filename]#/private# não é mais necessária, é prudente colocar o dispositivo no armazenamento frio desmontando e desanexando a partição `geli` criptografada do kernel:
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1792,7 +1792,7 @@ Esta seção demonstra como configurar uma partição swap criptografada usando
As partições de swap não são criptografadas por padrão e devem ser limpas de quaisquer dados confidenciais antes de continuar. Para sobrescrever a partição swap atual com lixo aleatório, execute o seguinte comando:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ada0s1b bs=1m
....
@@ -1841,7 +1841,7 @@ Depois que o sistema for reinicializado, a operação adequada da swap criptogra
Se man:gbde[8] estiver sendo usado:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1850,7 +1850,7 @@ Device 1K-blocks Used Avail Capacity
Se man:geli[8] estiver sendo usado:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1947,7 +1947,7 @@ Também é possível usar nomes de host nas instruções `remote` se os hosts fo
Uma vez que a configuração exista em ambos os nós, o conjunto HAST pode ser criado. Execute esses comandos nos dois nós para colocar os metadados iniciais no disco local e para iniciar man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -1960,21 +1960,21 @@ _Não_ é possível usar os provedores GEOM com um sistema de arquivos existente
Um nó HAST `primário` ou `secundário` é selecionado por um administrador, ou software como Heartbeat, usando man:hastctl[8]. No nó primário, `hasta`, execute este comando:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Execute este comando no nó secundário, `hastb`:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
Verifique o resultado executando `hastctl` em cada nó:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -1983,7 +1983,7 @@ Verifique a linha `status` na saída. Se disser `degraded`, algo está errado co
O próximo passo é criar um sistema de arquivos no provedor GEOM e montá-lo. Isso deve ser feito no nó `primário`. A criação do sistema de arquivos pode levar alguns minutos, dependendo do tamanho do disco rígido. Este exemplo cria um sistema de arquivos UFS em [.filename]#/dev/hast/test#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2033,7 +2033,7 @@ Se os sistemas estiverem executando o FreeBSD 10 ou superior, substitua [.filena
Reinicie o man:devd[8] em ambos os nós para colocar a nova configuração em vigor:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2166,7 +2166,7 @@ _Split-brain_ ocorre quando os nós do cluster não conseguem se comunicar entre
O administrador deve decidir qual nó tem alterações mais importantes ou executar a mesclagem manualmente. Então, deixe o HAST executar a sincronização completa do nó que possui os dados quebrados. Para fazer isso, emita esses comandos no nó que precisa ser ressincronizado:
-[source,bash]
+[source,shell]
....
# hastctl role init test
# hastctl create test
diff --git a/documentation/content/pt-br/books/handbook/dtrace/_index.adoc b/documentation/content/pt-br/books/handbook/dtrace/_index.adoc
index f4663162f3..f6523be992 100644
--- a/documentation/content/pt-br/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/dtrace/_index.adoc
@@ -72,7 +72,7 @@ Antes de ler este capítulo, você deve:
Embora o DTrace no FreeBSD seja semelhante ao encontrado no Solaris(TM), existem diferenças. A principal diferença é que no FreeBSD, o DTrace é implementado como um conjunto de módulos do kernel e o DTrace não pode ser usado até que os módulos sejam carregados. Para carregar todos os módulos necessários:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
@@ -127,7 +127,7 @@ Os scripts do DTrace consistem em uma lista de um ou mais testes _probes_, ou po
Para ver todos os probes, o administrador pode executar o seguinte comando:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -138,7 +138,7 @@ Os exemplos nesta seção fornecem uma visão geral de como usar dois dos script
O script [.filename]#hotkernel# é projetado para identificar qual função está usando a maior parte do tempo do kernel. Ele produzirá uma saída semelhante à seguinte:
-[source,bash]
+[source,shell]
....
# cd /usr/local/share/dtrace-toolkit
# ./hotkernel
@@ -147,7 +147,7 @@ Sampling... Hit Ctrl-C to end.
Conforme instruído, use a combinação de teclas kbd:[Ctrl+C] para interromper o processo. Após o término, o script exibirá uma lista de funções do kernel e informações de tempo, classificando a saída em ordem crescente de tempo:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -179,7 +179,7 @@ kernel`sched_idletd 137 0.3%
Este script também funcionará com módulos do kernel. Para usar este recurso, execute o script com `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -201,7 +201,7 @@ kernel 874 0.4%
O script [.filename]#procsystime# captura e imprime o uso do tempo de chamada do sistema para um determinado processo ID (PID) ou nome do processo. No exemplo a seguir, uma nova instância de [.filename]#/bin/csh# foi gerada. Então, [.filename]#procsystime# foi executado e permaneceu aguardando enquanto alguns comandos foram digitados na outra instância do `csh`. Estes são os resultados deste teste:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/pt-br/books/handbook/filesystems/_index.adoc b/documentation/content/pt-br/books/handbook/filesystems/_index.adoc
index 5b44351f27..ea867121c4 100644
--- a/documentation/content/pt-br/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/filesystems/_index.adoc
@@ -85,14 +85,14 @@ Esse driver também pode ser usado para acessar os sistemas de arquivos ext3 e e
Para acessar um sistema de arquivos ext, primeiro carregue o módulo correspondente do kernel:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Em seguida, monte o volume ext especificando seu nome de partição no FreeBSD e um ponto de montagem existente. Este exemplo monta [.filename]#/dev/ad1s1# em [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/pt-br/books/handbook/firewalls/_index.adoc b/documentation/content/pt-br/books/handbook/firewalls/_index.adoc
index c4f8775930..f35d00e653 100644
--- a/documentation/content/pt-br/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/firewalls/_index.adoc
@@ -144,7 +144,7 @@ Para usar o PF, seu módulo do kernel deve ser carregado primeiro. Esta seção
Comece adicionando a seguinte linha `pf_enable=yes` ao arquivo [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pf_enable=yes
....
@@ -165,7 +165,7 @@ pf_rules="/path/to/pf.conf"
O suporte de log para o PF é fornecido pelo man:pflog[4]. Para ativar o suporte aos logs, adicione esta linha ao [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pflog_enable=yes
....
@@ -187,7 +187,7 @@ gateway_enable="YES" # Enable as LAN gateway
Depois de salvar as edições necessárias, o PF pode ser iniciado com o suporte de log, digitando:
-[source,bash]
+[source,shell]
....
# service pf start
# service pflog start
@@ -242,7 +242,7 @@ pass out all keep state
A primeira regra nega todo o tráfego de entrada por padrão. A segunda regra permite que as conexões originadas por este sistema sejam liberadas, mantendo as informações de estado nessas conexões. Essas informações de estado permitem que o tráfego de retorno para essas conexões seja liberado e só deve ser usado em máquinas confiáveis. O conjunto de regras pode ser carregado com:
-[source,bash]
+[source,shell]
....
# pfctl -e ; pfctl -f /etc/pf.conf
....
@@ -270,14 +270,14 @@ Embora o UDP seja considerado um protocolo sem estado, o PF é capaz de rastrear
Sempre que uma edição é feita em um conjunto de regras, as novas regras devem ser carregadas para que possam ser usadas:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
Se não houver erros de sintaxe, o `pfctl` não exibirá nenhuma mensagem durante o carregamento da regra. As regras também podem ser testadas antes de tentar carregá-las:
-[source,bash]
+[source,shell]
....
# pfctl -nf /etc/pf.conf
....
@@ -297,21 +297,21 @@ Esta seção demonstra como configurar um sistema FreeBSD executando PF para atu
Primeiro, ative o gateway para permitir que a máquina encaminhe o tráfego de rede que recebe em uma interface para outra interface. Esta configuração do sysctl encaminhará pacotes IPv4:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.ip.forwarding=1
....
Para encaminhar tráfego IPv6, use:
-[source,bash]
+[source,shell]
....
# sysctl net.inet6.ip6.forwarding=1
....
Para ativar essas configurações na inicialização do sistema, use o man:sysrc[8] para adicioná-las ao [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc gateway_enable=yes
# sysrc ipv6_gateway_enable=yes
@@ -452,7 +452,7 @@ onde `$proxy` se expande para o endereço ao qual o daemon proxy está vinculado
Salve o arquivo [.filename]#/etc/pf.conf#, carregue as novas regras e verifique a partir de um cliente se as conexões FTP estão funcionando:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
@@ -564,14 +564,14 @@ pass inet proto tcp from <clients> to any port $client_out flags S/SA keep state
O conteúdo de uma tabela pode ser manipulado ao vivo, usando `pfctl`. Este exemplo adiciona outra rede a tabela:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T add 192.168.1.0/16
....
Observe que quaisquer alterações feitas dessa maneira terão efeito imediato, tornando-as ideais para testes, mas não sobreviverão a uma falha de energia ou reinicialização. Para tornar as alterações permanentes, modifique a definição da tabela no conjunto de regras ou edite o arquivo a que a tabela se refere. É possível manter a cópia em disco da tabela usando uma tarefa man:cron[8] que copia o conteúdo da tabela para o disco em intervalos de tempo, usando um comando como `pfctl -t clients -T show >/etc/clients`. Alternativamente, o [.filename]#/etc/clients# pode ser atualizado com o conteúdo da tabela na memória:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T replace -f /etc/clients
....
@@ -650,7 +650,7 @@ Com o tempo, as tabelas serão preenchidas por regras de sobrecarga e seu tamanh
Para situações como essas, o pfctl fornece a capacidade de expirar as entradas da tabela. Por exemplo, este comando removerá entradas de tabela `<bruteforce>` que não foram referenciadas por `86400` segundos:
-[source,bash]
+[source,shell]
....
# pfctl -t bruteforce -T expire 86400
....
@@ -903,14 +903,14 @@ Para aqueles usuários que desejam compilar estaticamente o suporte ao IPFW em u
Para configurar o sistema para ativar o IPFW no momento da inicialização, adicione `firewall_enable="YES"` ao [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_enable="YES"
....
Para usar um dos tipos de firewall padrão fornecidos pelo FreeBSD, adicione outra linha que especifique o tipo:
-[source,bash]
+[source,shell]
....
# sysrc firewall_type="open"
....
@@ -931,14 +931,14 @@ Observe que o tipo `filename` é usado para carregar um conjunto de regras custo
Uma maneira alternativa de carregar um conjunto de regras personalizado é definir a variável `firewall_script` para o caminho absoluto de um _script executável_ que inclui comandos IPFW. Os exemplos usados nesta seção assumem que o `firewall_script` está definido como [.filename]#/etc/ipfw.rules#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_script="/etc/ipfw.rules"
....
Para habilitar o registro em log por meio do man:syslogd[8], inclua esta linha:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logging="YES"
....
@@ -951,21 +951,21 @@ Somente regras de firewall com opção de `log` vão ser registradas. As regras
Não existe uma variável em [.filename]#/etc/rc.conf# para definir os limites de log. Para limitar o número de vezes que uma regra é registrada por tentativa de conexão, especifique o número usando esta linha no [.filename]#/etc/sysctl.conf#:
-[source,bash]
+[source,shell]
....
# echo "net.inet.ip.fw.verbose_limit=5" >> /etc/sysctl.conf
....
Para habilitar o registro através de uma interface dedicada chamada `ipfw0`, adicione esta linha ao [.filename]#/etc/rc.conf# em vez disso:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logif="YES"
....
Em seguida, use o tcpdump para ver o que está sendo registrado:
-[source,bash]
+[source,shell]
....
# tcpdump -t -n -i ipfw0
....
@@ -978,7 +978,7 @@ Não há sobrecarga devido ao log, a menos que o tcpdump esteja anexado.
Depois de salvar as edições necessárias, inicie o firewall. Para ativar os limites de log agora, defina também o valor `sysctl` especificado acima:
-[source,bash]
+[source,shell]
....
# service ipfw start
# sysctl net.inet.ip.fw.verbose_limit=5
@@ -1399,49 +1399,49 @@ O `ipfw` é uma maneira útil para se exibir as regras de firewall em execução
Para listar todas as regras em execução em sequência:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Para listar todas as regras em execução com um registro de data e hora de quando a última vez em que a regra foi utilizada:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
O próximo exemplo lista as informações contábeis e a contagem de pacotes das regras correspondentes, junto com as próprias regras. A primeira coluna é o número da regra, seguido pelo número de pacotes e bytes correspondidos, seguidos pela própria regra.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Para listar regras dinâmicas além das regras estáticas:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
Para mostrar também as regras dinâmicas expiradas:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
Para zerar os contadores:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Para zerar os contadores apenas para a regra com o número _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1493,7 +1493,7 @@ As regras não são importantes, pois o foco deste exemplo é como os campos de
Se o exemplo acima estiver no arquivo [.filename]#/etc/ipfw.rules#, as regras podem ser recarregadas pelo seguinte comando:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1502,7 +1502,7 @@ Se o exemplo acima estiver no arquivo [.filename]#/etc/ipfw.rules#, as regras po
A mesma coisa pode ser realizada executando esses comandos manualmente:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
@@ -1598,7 +1598,7 @@ Então, inicie o IPF:
Para carregar as regras de firewall, especifique o nome do arquivo do conjunto de regras usando `ipf`. O comando a seguir pode ser usado para substituir as regras de firewall que está em execução:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -1922,28 +1922,28 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Sempre que o arquivo contendo as regras de NAT for editado, execute `ipnat` com `-CF` para excluir as regras atuais de NAT e liberar o conteúdo da tabela de tradução dinâmica. Inclua `-f` e especifique o nome do conjunto de regras NAT para carregar:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
Para exibir as estatísticas de NAT:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
Para listar os mapeamentos atuais da tabela NAT:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
Para ativar o modo verbose e exibir informações relacionadas ao processamento de regras, regras ativas e registros nas tabelas:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1954,7 +1954,7 @@ O IPF inclui o man:ipfstat[8] que pode ser usado para recuperar e exibir estatí
A saída padrão do `ipfstat` é semelhante a esta:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -1977,7 +1977,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Várias opções estão disponíveis. Quando executado com `-i` para entrada ou `-o` para saída, o comando recuperará e exibirá a lista apropriada de regras de filtro atualmente instaladas e em uso pelo kernel. Para também ver os números das regras, inclua `-n`. Por exemplo, `ipfstat -on` exibe a tabela de regras de saída com os números de regra:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -1986,7 +1986,7 @@ Várias opções estão disponíveis. Quando executado com `-i` para entrada ou
Inclua `-h` para prefixar cada regra com uma contagem de quantas vezes a regra foi utilizada. Por exemplo, `ipfstat -oh` exibe a tabela de regras internas de saída, prefixando cada regra com sua contagem de uso:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -2015,7 +2015,7 @@ Uma vez que o recurso de criação de log esteja ativado no arquivo [.filename]#
Por padrão, o modo `ipmon -Ds` usa `local0` como o recurso de log. Os níveis de registro a seguir podem ser usados para separar ainda mais os dados logados:
-[source,bash]
+[source,shell]
....
LOG_INFO - pacotes logados usando a palavra-chave "log" ao invés da ação pass ou block.
LOG_NOTICE - pacotes logados que também são liberados
@@ -2025,7 +2025,7 @@ LOG_ERR - pacotes que foram logados e que podem ser considerados insuficientes d
Para configurar o IPF para logar todos os dados em [.filename]#/var/log/ipfilter.log#, primeiro crie o arquivo vazio:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -2067,14 +2067,14 @@ Este capítulo descreve como instalar o blacklistd, configurá-lo e fornece exem
A configuração principal do blacklistd é armazenada em man:blacklistd.conf[5]. Várias opções de linha de comando também estão disponíveis para alterar o comportamento em tempo de execução do blacklistd. Para persistir as configurações em uma reinicialização do sistema, deve se armazenar as opções em [.filename]#/etc/blacklistd.conf#. Para ativar o daemon durante a inicialização do sistema, adicione a linha `blacklistd_enable` no [.filename]#/etc/rc.conf# assim:
-[source,bash]
+[source,shell]
....
# sysrc blacklistd_enable=yes
....
Para iniciar o serviço manualmente, execute este comando:
-[source,bash]
+[source,shell]
....
# service blacklistd start
....
@@ -2190,7 +2190,7 @@ Isso é tudo o que é necessário para que esses programas conversem com o black
O Blacklistd fornece ao usuário um utilitário de gerenciamento chamado man:blacklistctl[8]. Ele exibe endereços e redes bloqueados que estão na lista negra pelas regras definidas em man:blacklistd.conf[5]. Para ver a lista de hosts atualmente bloqueados, use `dump` combinado com `-b` assim.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -b
address/ma:port id nfail last access
@@ -2201,7 +2201,7 @@ Este exemplo mostra que houve 6 de três tentativas permitidas na porta 22 prove
Para ver o tempo restante em que esse host estará na lista negra, adicione `-r` ao comando anterior.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -br
address/ma:port id nfail remaining time
@@ -2214,7 +2214,7 @@ Neste exemplo, restam 36 segundos para que este host não seja mais bloqueado.
Às vezes, é necessário remover um host da lista de bloqueios antes que o tempo restante expire. Infelizmente, não há funcionalidade no blacklistd para fazer isso. No entanto, é possível remover o endereço da tabela PF usando pfctl. Para cada porta bloqueada, existe uma âncora filha dentro da âncora do blacklistd definida em [.filename]#/etc/pf.conf#. Por exemplo, se houver uma âncora filha para bloquear a porta 22, ela será chamada `blacklistd/22`. Há uma tabela dentro dessa âncora filha que contém os endereços bloqueados. Essa tabela é chamada de port seguida pelo número da porta. Neste exemplo, ele seria chamada de `port22`. Com essas informações em mãos, agora é possível usar o man:pfctl[8] para exibir todos os endereços listados desta maneira:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T show
...
@@ -2224,7 +2224,7 @@ Neste exemplo, restam 36 segundos para que este host não seja mais bloqueado.
Depois de identificar o endereço a ser desbloqueado da lista, o seguinte comando o remove da lista:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T delete 213.0.123.128/25
....
diff --git a/documentation/content/pt-br/books/handbook/geom/_index.adoc b/documentation/content/pt-br/books/handbook/geom/_index.adoc
index 32b368cd15..0e5161b197 100644
--- a/documentation/content/pt-br/books/handbook/geom/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/geom/_index.adoc
@@ -88,7 +88,7 @@ O processo para criar um RAID0 por software, baseado no GEOM, em um sistema Free
. Carregue o módulo [.filename]#geom_stripe.ko#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
@@ -96,7 +96,7 @@ O processo para criar um RAID0 por software, baseado no GEOM, em um sistema Free
. Assegure-se de que exista um ponto de montagem adequado. Se esse volume se tornar uma partição root, use temporariamente outro ponto de montagem, como [.filename]#/mnt#.
. Determine os nomes dos dispositivos para os discos que serão striped e crie o novo dispositivo de stripe. Por exemplo, para distribuir dois discos ATA não utilizados e não particionados com nomes de dispositivos [.filename]#/dev/ad2# e [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -106,14 +106,14 @@ Done.
+
. Escreva um label padrão, também conhecido como tabela de partição, no novo volume e instale o código do bootstrap padrão:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Este processo deve criar dois outros dispositivos em [.filename]#/dev/stripe# além de [.filename]#st0#. Esses incluem o [.filename]#st0a# e o [.filename]#st0c#. Neste ponto, um sistema de arquivos UFS pode ser criado no [.filename]#st0a# usando o `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -121,14 +121,14 @@ Done.
Muitos números irão deslizar pela tela e, após alguns segundos, o processo será concluído. O volume foi criado e está pronto para ser montado.
. Para montar manualmente o stripe de disco criado:
+
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
+
. Para montar este sistema de arquivos distribuído automaticamente durante o processo de inicialização, coloque as informações do volume no arquivo [.filename]#/etc/fstab#. Neste exemplo, um ponto de montagem permanente, chamado [.filename]#stripe#, é criado:
+
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -137,7 +137,7 @@ Muitos números irão deslizar pela tela e, após alguns segundos, o processo se
+
. O módulo [.filename]#geom_stripe.ko# também deve ser carregado automaticamente durante a inicialização do sistema, adicionando uma linha ao arquivo [.filename]#/boot/loader.conf#:
+
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -171,21 +171,21 @@ Muitos sistemas de disco armazenam metadados no final de cada disco. Metadados a
Os metadados GPT podem ser apagados com man:gpart[8]. Este exemplo apaga as tabelas de partições primárias e de backup do GPT do disco [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
Um disco pode ser removido de um espelhamento ativo e os metadados apagados em uma etapa usando man:gmirror[8]. Aqui, o disco de exemplo [.filename]#ada8# é removido do espelhamento ativo [.filename]#gm4#:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
Se o espelhamento não estiver em execução, mas os metadados do espelhamento antigo ainda estiverem no disco, use o comando `gmirror clear` para removê-lo:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -199,14 +199,14 @@ Neste exemplo, o FreeBSD já foi instalado em um único disco, [.filename]#ada0#
O módulo do kernel [.filename]#geom_mirror.ko# deve ser compilado no kernel ou carregado no boot ou em tempo de execução. Carregue manualmente o módulo do kernel agora:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Crie o espelho com as duas novas unidades:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -217,7 +217,7 @@ As tabelas de partição MBR e bsdlabel agora podem ser criadas no mirror com o
As partições no espelho não precisam ser do mesmo tamanho que as do disco existente, mas devem ser grandes o suficiente para conter todos os dados já presentes no disco [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -228,7 +228,7 @@ As partições no espelho não precisam ser do mesmo tamanho que as do disco exi
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -249,7 +249,7 @@ As partições no espelho não precisam ser do mesmo tamanho que as do disco exi
Torne o espelhamento inicializável instalando o bootcode no MBR e no bsdlabel e definindo a slice ativa:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -258,7 +258,7 @@ Torne o espelhamento inicializável instalando o bootcode no MBR e no bsdlabel e
Formate os sistemas de arquivos no novo espelhamento, habilitando as atualizações simples.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -268,7 +268,7 @@ Formate os sistemas de arquivos no novo espelhamento, habilitando as atualizaç
Os sistemas de arquivos do disco original [.filename]#ada0# agora podem ser copiados para o espelho com o man:dump[8] e o man:restore[8].
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -312,14 +312,14 @@ Neste exemplo, o FreeBSD já foi instalado em um único disco, [.filename]#ada0#
Carregue o módulo do kernel [.filename]#geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Verifique o tamanho da mídia do disco original com `diskinfo`:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -329,7 +329,7 @@ Verifique o tamanho da mídia do disco original com `diskinfo`:
Crie um espelhamento no novo disco. Para garantir que a capacidade do espelhamento não seja maior do que a unidade [.filename]#ada0# original, man:gnop[8] é usado para criar uma unidade falsa exatamente do mesmo tamanho. Esta unidade não armazena dados, mas é usada apenas para limitar o tamanho do espelhamento. Quando o man:gmirror[8] cria o espelhamento, ele irá restringir a capacidade ao tamanho de [.filename]#gzero.nop#, mesmo se a nova unidade [.filename]#ada1# tiver mais espaço. Note que o _1000204821504_ na segunda linha é igual ao tamanho de mídia do [.filename]#ada0# como mostrado pelo comando `diskinfo` acima.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -343,7 +343,7 @@ Depois de criar o [.filename]#gm0#, veja a tabela de partições em [.filename]#
No entanto, se a saída mostrar que todo o espaço no disco está alocado, como na listagem a seguir, não há espaço disponível para os 512-bytes de metadados de espelhamento no final do disco.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -354,7 +354,7 @@ Neste caso, a tabela de partição deve ser editada para reduzir a capacidade de
Em qualquer um dos casos, as tabelas de partição no disco principal devem ser primeiro copiadas usando `gpart backup` e `gpart restore`.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -362,14 +362,14 @@ Em qualquer um dos casos, as tabelas de partição no disco principal devem ser
Esses comandos criam dois arquivos, [.filename]#table.ada0# e [.filename]#table.ada0s1#. Este exemplo é de uma unidade de 1 TB:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -383,14 +383,14 @@ BSD 8
Se nenhum espaço livre for exibido no final do disco, o tamanho da slice e da última partição deve ser reduzido por um setor. Edite os dois arquivos, reduzindo o tamanho da fatia e da última partição em um. Estes são os últimos números em cada listagem.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -406,7 +406,7 @@ Se pelo menos um setor não foi alocado no final do disco, esses dois arquivos p
Agora restaure a tabela de partições em [.filename]#mirror/gm0#:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -414,7 +414,7 @@ Agora restaure a tabela de partições em [.filename]#mirror/gm0#:
Verifique a tabela de partições com o comando `gpart show`. Este exemplo tem [.filename]#gm0s1a# para [.filename]#/#, [.filename]#gm0s1d# para [.filename]#/var#, [.filename]#gm0s1e# para [.filename]#/usr#, [.filename]#gm0s1f# para [.filename]#/data1# e [.filename]#gm0s1g# para [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -436,7 +436,7 @@ Tanto a fatia quanto a última partição devem ter pelo menos um bloco livre no
Crie sistemas de arquivos nessas novas partições. O número de partições varia de acordo com o disco original, [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -447,7 +447,7 @@ Crie sistemas de arquivos nessas novas partições. O número de partições var
Torne o espelhamento inicializável instalando o bootcode no MBR e no bsdlabel e definindo a slice ativa:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -457,7 +457,7 @@ Torne o espelhamento inicializável instalando o bootcode no MBR e no bsdlabel e
Ajuste o arquivo [.filename]#/etc/fstab# para usar as novas partições no espelhamento.Primeiro faça o backup deste arquivo copiando ele para [.filename]#/etc/fstab.orig#.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -484,7 +484,7 @@ geom_mirror_load="YES"
Os sistemas de arquivos do disco original agora podem ser copiados para o espelhamento com o man:dump[8] e o man:restore[8]. Cada sistema de arquivos copiados com o `dump -L` irá primeiro criar um snapshot, o que pode levar algum tempo.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -509,7 +509,7 @@ Após inicializar a partir de [.filename]#mirror/gm0# com sucesso, a etapa final
Quando o [.filename]#ada0# for inserido no espelhamento, seu conteúdo anterior será substituído pelos dados do espelhamento. Certifique-se de que [.filename]#mirror/gm0# tenha o mesmo conteúdo do [.filename]#ada0# antes de adicionar o [.filename]#ada0# ao espelhamento. Se o conteúdo anteriormente copiado pelo man:dump[8] e man:restore[8] não forem idênticos ao que estava em [.filename]#ada0#, reverta o arquivo [.filename]#/etc/fstab# para montar os sistemas de arquivos em [.filename]#ada0#, e reinicie todo o procedimento novamente.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -517,7 +517,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
A sincronização entre os dois discos será iniciada imediatamente. Use `gmirror status` para visualizar o progresso.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -527,7 +527,7 @@ mirror/gm0 DEGRADED ada1 (ACTIVE)
Depois de um tempo, a sincronização será concluída.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -545,7 +545,7 @@ Se o sistema não inicializar mais, as configurações da BIOS podem ter que ser
Se a inicialização parar com esta mensagem, algo está errado com o dispositivo espelhado:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -572,7 +572,7 @@ mountroot>
Esquecer de carregar o módulo [.filename]#geom_mirror.ko# no arquivo [.filename]#/boot/loader.conf# pode causar este problema. Para consertá-lo, inicialize a partir de uma mídia de instalação do FreeBSD e escolha `Shell` no primeiro prompt. Em seguida, carregue o módulo de espelhamento e monte o dispositivo espelhado:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -589,7 +589,7 @@ Salve o arquivo e reinicie.
Outros problemas que causam o `error 19` requerem mais esforço para serem corrigidos. Embora o sistema deva inicializar a partir de [.filename]#ada0#, outro prompt para selecionar um shell aparecerá se o arquivo [.filename]#/etc/fstab# estiver incorreto. Digite `ufs:/dev/ada0s1a` no prompt do carregador de boot e pressione kbd:[Enter]. Desfaça as edições no arquivo [.filename]#/etc/fstab# e monte os sistemas de arquivos a partir do disco original ([.filename]#ada0#) em vez do espelhado. Reinicialize o sistema e tente o procedimento novamente.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -604,14 +604,14 @@ Para substituir a unidade com falha, desligue o sistema e substitua fisicamente
Depois que o computador for ligado novamente, o espelho será executado em um modo "degradado" com apenas uma unidade. O espelho é avisado para esquecer as unidades que não estão conectadas no momento:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Quaisquer metadados antigos devem ser apagados do disco de substituição usando as instruções em <<geom-mirror-metadata>>. Em seguida, o disco de substituição, [.filename]#ada4# para este exemplo, é inserido no espelho:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -643,28 +643,28 @@ No FreeBSD, o suporte para RAID3 é implementado pela classe GEOMman:graid3[8].
. Primeiro, carregue o módulo do kernel [.filename]#geom_raid3.ko# emitindo um dos seguintes comandos:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
ou:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3
....
+
. Assegure-se de que exista um ponto de montagem adequado. Este comando cria um novo diretório para usar como ponto de montagem:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
+
. Determine os nomes dos dispositivos para os discos que serão adicionados à matriz e crie o novo dispositivo RAID3. O dispositivo final listado atuará como o disco de paridade dedicado. Este exemplo usa três unidades ATA não-particionadas: [.filename]#ada1# e [.filename]#ada2# para dados e [.filename]#ada3# para paridade.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -675,7 +675,7 @@ Done.
+
. Particione o dispositivo [.filename]#gr0# recém-criado e coloque um sistema de arquivos UFS:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -684,7 +684,7 @@ Done.
+
Muitos números irão ser exibios na tela e, após algum tempo, o processo será concluído. O volume foi criado e está pronto para ser montado:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -733,7 +733,7 @@ O `graid label` é usado para criar um novo array. A placa-mãe usada neste exem
Algum espaço nas unidades será sobrescrito quando elas forem transformadas em um novo array. Faça o backup dos dados existentes primeiro!
====
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 ada1
GEOM_RAID: Intel-a29ea104: Array Intel-a29ea104 created.
@@ -749,7 +749,7 @@ GEOM_RAID: Intel-a29ea104: Provider raid/r0 for volume gm0 created.
Uma verificação de status mostra que o novo espelhamento está pronto para uso:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -761,7 +761,7 @@ O dispositivo de array aparece em [.filename]#/dev/raid/#. O primeiro array é c
O menu da BIOS em alguns desses dispositivos pode criar arrays com caracteres especiais em seus nomes. Para evitar problemas com esses caracteres especiais, os arrays recebem nomes numerados simples como [.filename]#r0#. Para mostrar os rótulos reais, como [.filename]#gm0# no exemplo acima, use o man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.raid.name_format=1
....
@@ -771,7 +771,7 @@ O menu da BIOS em alguns desses dispositivos pode criar arrays com caracteres es
Alguns dispositivos de RAID via software suportam mais de um _volume_ em um array. Os volumes funcionam como partições, permitindo que o espaço nas unidades físicas seja dividido e usado de diferentes maneiras. Por exemplo, os dispositivos RAID via software Intel suportam dois volumes. Este exemplo cria um espelho de 40 G para armazenar com segurança o sistema operacional, seguido por um volume de 20 G RAID0 (stripe) para armazenamento temporário rápido:
-[source,bash]
+[source,shell]
....
# graid label -S 40G Intel gm0 RAID1 ada0 ada1
# graid add -S 20G gm0 RAID0
@@ -791,14 +791,14 @@ Sob certas condições específicas, é possível converter uma única unidade e
Se a unidade atender a esses requisitos, comece fazendo um backup completo. Em seguida, crie um espelhamento de unidade única com essa unidade:
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 NONE
....
Os metadados do man:graid[8] foram gravados no final da unidade no espaço não utilizado. Uma segunda unidade pode agora ser inserida no espelhamento:
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
....
@@ -812,7 +812,7 @@ As unidades podem ser inseridas em uma matriz como substitutos de unidades que f
No array de espelho do exemplo, os dados começam a ser copiados imediatamente para a unidade recém-inserida. Qualquer informação existente na nova unidade será substituída.
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from NONE to ACTIVE.
@@ -826,7 +826,7 @@ GEOM_RAID: Intel-a29ea104: Subdisk gm0:1-ada1 rebuild start at 0.
Discos individuais podem ser permanentemente removidos de um array e seus metadados apagados:
-[source,bash]
+[source,shell]
....
# graid remove raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from ACTIVE to OFFLINE.
@@ -839,7 +839,7 @@ GEOM_RAID: Intel-a29ea104: Volume gm0 state changed from OPTIMAL to DEGRADED.
Um array pode ser interrompido sem remover os metadados das unidades. O array será reiniciado quando o sistema for inicializado.
-[source,bash]
+[source,shell]
....
# graid stop raid/r0
....
@@ -849,7 +849,7 @@ Um array pode ser interrompido sem remover os metadados das unidades. O array se
O status do array pode ser verificado a qualquer momento. Depois que um disco foi adicionado ao espelho no exemplo acima, os dados estarão sendo copiados do disco original para o novo disco:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -859,7 +859,7 @@ raid/r0 DEGRADED ada0 (ACTIVE (ACTIVE))
Alguns tipos de arrays, como `RAID0` ou `CONCAT`, podem não ser mostrados no relatório de status se os discos falharem. Para ver esses arrays com falhas parciais, adicione `-ga`:
-[source,bash]
+[source,shell]
....
# graid status -ga
Name Status Components
@@ -871,7 +871,7 @@ Intel-e2d07d9a BROKEN ada6 (ACTIVE (ACTIVE))
Arrays são destruídos, excluindo todos os volumes deles. Quando o último volume presente é excluído, o array é interrompido e os metadados são removidos dos discos:
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -886,7 +886,7 @@ Os discos podem conter metadados man:graid[8] inesperados, originados no seu uso
. Inicialize o sistema. No menu de inicialização, selecione `2` para o prompt do utilitário de boot. Entre:
+
-[source,bash]
+[source,shell]
....
OK set kern.geom.raid.enable=0
OK boot
@@ -905,7 +905,7 @@ no arquivo [.filename]#/boot/loader.conf#.
+
Para remover permanentemente os metadados man:graid[8] do disco afetado, inicialize uma instalação do FreeBSD usando um CD-ROM ou um memory stick e selecione a opção `Shell`. Use o comando `status` para encontrar o nome do array, normalmente `raid/r0`:
+
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -915,7 +915,7 @@ raid/r0 OPTIMAL ada0 (ACTIVE (ACTIVE))
+
Exclua o volume pelo nome:
+
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -939,7 +939,7 @@ Semelhante ao NFS, que é discutido em crossref:network-servers[network-nfs,Netw
Antes de exportar o dispositivo, verifique se ele não está montado no momento. Em seguida, inicie o ggated:
-[source,bash]
+[source,shell]
....
# ggated
....
@@ -948,7 +948,7 @@ Várias opções estão disponíveis para especificar uma porta de escuta altern
Para acessar o dispositivo exportado na máquina cliente, primeiro use o comando `ggatec` para especificar o endereço IP do servidor e o nome do dispositivo exportado. Se bem sucedido, este comando irá exibir um nome de dispositivo `ggate` para montar. Monte esse nome de dispositivo especificado em um ponto de montagem livre. Este exemplo conecta-se à partição [.filename]#/dev/da0s4d# no `192.168.1.1`, em seguida, monta o [.filename]#/dev/ggate0# em [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -986,7 +986,7 @@ Os rótulos temporários são destruídos na próxima reinicialização. Esses r
Para criar um rótulo permanente para um sistema de arquivos UFS2 sem destruir nenhum dado, emita o seguinte comando:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -1005,7 +1005,7 @@ O sistema de arquivos não deve ser montado durante a tentativa de executar o `t
Agora o sistema de arquivos pode ser montado:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -1016,7 +1016,7 @@ Os sistemas de arquivos também podem ser criados com um rótulo padrão usando
O seguinte comando pode ser usado para destruir o rótulo:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -1030,7 +1030,7 @@ Ao marcar permanentemente as partições no disco de inicialização, o sistema
Reinicialize o sistema e, no prompt do man:loader[8], pressione kbd:[4] para inicializar no modo de usuário único. Em seguida, insira os seguintes comandos:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -1059,7 +1059,7 @@ O sistema continuará com a inicialização multiusuário. Depois que a iniciali
O sistema agora pode ser reinicializado. Se tudo correr bem, ele aparecerá normalmente e o comando `mount` mostrará:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -1073,7 +1073,7 @@ devfs on /dev (devfs, local)
A classe man:glabel[8] suporta um tipo de rótulo para sistemas de arquivos UFS, com base no ID do sistema de arquivos exclusivo `ufsid`. Esses rótulos podem ser encontrados em [.filename]#/dev/ufsid# e são criados automaticamente durante a inicialização do sistema. É possível usar rótulos `ufsid` para montar partições usando o [.filename]#/etc/fstab#. Use o `glabel status` para receber uma lista de sistemas de arquivos e seus rótulos `ufsid` correspondentes:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -1116,7 +1116,7 @@ options GEOM_JOURNAL
Depois que o módulo é carregado, um journal pode ser criado em um novo sistema de arquivos usando as etapas a seguir. Neste exemplo, [.filename]#da4# é um novo disco SCSI:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -1126,7 +1126,7 @@ Isto irá carregar o módulo e criar um nó de dispositivo [.filename]#/dev/da4.
Um sistema de arquivos UFS pode agora ser criado no dispositivo journaled e depois montado em um ponto de montagem existente:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
# mount /dev/da4.journal /mnt
diff --git a/documentation/content/pt-br/books/handbook/jails/_index.adoc b/documentation/content/pt-br/books/handbook/jails/_index.adoc
index 98466f2bce..c7f0b844ea 100644
--- a/documentation/content/pt-br/books/handbook/jails/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/jails/_index.adoc
@@ -110,7 +110,7 @@ Alguns administradores dividem as jails nos dois seguintes tipos: jails "complet
A ferramenta man:bsdinstall[8] pode ser usada para baixar e instalar os binários necessários para uma Jail. Será apresentando a seleção de um mirror, quais distribuições serão instaladas no diretório de destino e algumas configurações básicas da Jail:
-[source,bash]
+[source,shell]
....
# bsdinstall jail /here/is/the/jail
....
@@ -124,7 +124,7 @@ Para instalar o userland da mídia de instalação, primeiro crie o diretório r
Inicie um shell e defina a variável `DESTDIR`:
-[source,bash]
+[source,shell]
....
# sh
# export DESTDIR=/here/is/the/jail
@@ -132,7 +132,7 @@ Inicie um shell e defina a variável `DESTDIR`:
Monte a mídia de instalação como abordado em man:mdconfig[8] ao usar a ISO de instalação:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
# cd /mnt/usr/freebsd-dist/
@@ -142,14 +142,14 @@ Extraia os binários dos tarballs na mídia de instalação dentro do destino de
Para instalar apenas o sistema básico:
-[source,bash]
+[source,shell]
....
# tar -xf /mnt/usr/freebsd-dist/base.txz -C $DESTDIR
....
Para instalar tudo, exceto o kernel:
-[source,bash]
+[source,shell]
....
# for set in base ports; do tar -xf /mnt/usr/freebsd-dist/$set.txz -C $DESTDIR ; done
....
@@ -159,7 +159,7 @@ Para instalar tudo, exceto o kernel:
A página de manual man:jail[8] explica o procedimento para compilar uma jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -221,7 +221,7 @@ Para obter uma lista completa das opções disponíveis, consulte a página de m
man:service[8] pode ser usado para iniciar ou parar uma jail manualmente, se uma entrada para ela existir no arquivo [.filename]#jail.conf#:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -229,7 +229,7 @@ man:service[8] pode ser usado para iniciar ou parar uma jail manualmente, se uma
As jails podem ser desligadas com o man:jexec[8]. Use man:jls[8] para identificar o `JID` da jail e, em seguida, use man:jexec[8] para executar o script de desligamento nessa jail.
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -267,7 +267,7 @@ O sistema base do FreeBSD contém um conjunto básico de ferramentas para visual
* Apresentar uma lista de jails ativas e seu identificador de jail correspondente (JID), endereço IP, hostname e path.
* Se conectar a uma jail em execução, a partir de seu sistema host, e executar um comando dentro da jaijl ou executar tarefas administrativas dentro da própria jail. Isso é especialmente útil quando o usuário `root` deseja desligar de maneira limpa uma jail. O utilitário man:jexec[8] também pode ser usado para iniciar um shell em uma jail para administração; por exemplo:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -284,7 +284,7 @@ As jails devem ser atualizadas a partir do sistema operacional do host, pois a t
Para atualizar a Jail para o último release patch da versão do FreeBSD que já está em execução, execute os seguintes comandos no host:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail fetch
# freebsd-update -b /here/is/the/jail install
@@ -292,7 +292,7 @@ Para atualizar a Jail para o último release patch da versão do FreeBSD que já
Para atualizar a jail para uma versão maior ou menor, primeiro atualize o sistema hospedeiro com descrito em crossref:cutting-edge[freebsdupdate-upgrade,Realizando Upgrades de Versão Principais e Menores]. Uma vez que o hospedeiro esteja atualizado e reiniciado, a jail pode então ser atualizada. Por exemplo, para atualizar de 12.0-RELEASE para 12.1-RELEASE, rode no hospedeiro:
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade
# freebsd-update -b /here/is/the/jail install
@@ -302,7 +302,7 @@ Para atualizar a jail para uma versão maior ou menor, primeiro atualize o siste
Então, se foi uma atualização de versão principal, reinstale todos os pacotes instalados e reinicie a jail novamente. Isso é necessário porque a versão ABI muda ao atualizar entre as versões principais do FreeBSD. Pelo host:
-[source,bash]
+[source,shell]
....
# pkg -j myjail upgrade -f
# service jail restart myjail
@@ -353,7 +353,7 @@ Esta seção descreve as etapas necessárias para criar o template master.
. Primeiro, crie uma estrutura de diretório para o sistema de arquivo read-only que conterá os binários do FreeBSD para as jails. Em seguida, altere para o diretório de código-fonte do FreeBSD e instale o sistema de arquivos read-only no template das jails:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -362,7 +362,7 @@ Esta seção descreve as etapas necessárias para criar o template master.
+
. Em seguida, prepare uma Coleção de Ports do FreeBSD para as jails, assim como uma árvore de código fonte do FreeBSD, que são necessários para o mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -372,7 +372,7 @@ Esta seção descreve as etapas necessárias para criar o template master.
+
. Crie um esqueleto para a parte de read-write do sistema:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -384,7 +384,7 @@ Esta seção descreve as etapas necessárias para criar o template master.
+
. Use o mergemaster para instalar os arquivos de configuração ausentes. Em seguida, remova os diretórios extras criados pelo mergemaster:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -393,7 +393,7 @@ Esta seção descreve as etapas necessárias para criar o template master.
+
. Agora, faça os links dos sistema de arquivos read-write ao sistema de arquivos read-only. Certifique-se de que os links simbólicos sejam criados nos locais corretos de [.filename]#s/#, pois a criação de diretórios nos locais errados fará com que a instalação falhe.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -462,14 +462,14 @@ jail_www_devfs_enable="YES"
A variável ``jail_name_rootdir`` é configurada como [.filename]#/usr/home# em vez de [.filename]#/home# porque o caminho físico de [.filename]#/home# em uma instalação padrão do FreeBSD é [.filename]#/usr/home#. A variável ``jail_name_rootdir`` __não__ deve ser configurada para um caminho que inclua um link simbólico, caso contrário as jails não serão iniciadas.
. Crie os pontos de montagem necessários para o sistema de arquivos read-only de cada jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Instale o template read-write em cada jail usando package:sysutils/cpdup[]:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -479,7 +479,7 @@ A variável ``jail_name_rootdir`` é configurada como [.filename]#/usr/home# em
+
. Nesta fase, as jails estão compiladas e preparadas para execução. Primeiro, monte os sistemas de arquivos necessários para cada jail e, em seguida, inicie-as:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -488,7 +488,7 @@ A variável ``jail_name_rootdir`` é configurada como [.filename]#/usr/home# em
As jails devem estar funcionando agora. Para verificar se eles foram iniciadas corretamente, use `jls`. Sua saída deve ser semelhante ao seguinte:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -499,7 +499,7 @@ As jails devem estar funcionando agora. Para verificar se eles foram iniciadas c
Neste ponto, deve ser possível entrar em cada jail, adicionar novos usuários ou configurar daemons. A coluna `JID` indica o número de identificação da jail de cada jail em execução. Use o seguinte comando para executar tarefas administrativas na jail cujo JID é `3`:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -514,7 +514,7 @@ O design dessa configuração fornece uma maneira fácil de atualizar as jails e
. O primeiro passo é atualizar o sistema host. Em seguida, crie um novo template temporário read-only em [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -526,7 +526,7 @@ O design dessa configuração fornece uma maneira fácil de atualizar as jails e
+
O `installworld` cria alguns diretórios desnecessários, que devem ser removidos:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -534,7 +534,7 @@ O `installworld` cria alguns diretórios desnecessários, que devem ser removido
+
. Recrie os links simbólicos read-write para o sistema de arquivos master:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -547,14 +547,14 @@ O `installworld` cria alguns diretórios desnecessários, que devem ser removido
+
. Em seguida, pare as jails:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
+
. Desmonte os sistemas de arquivos originais, pois os sistemas read-write estão conectados ao sistema read-only ([.filename]#/s#):
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -566,7 +566,7 @@ O `installworld` cria alguns diretórios desnecessários, que devem ser removido
+
. Mova o antigo sistema de arquivos read-only e substitua-o pelo novo. Isso servirá como backup e arquivamento do antigo sistema de arquivos read-only se algo der errado. A convenção de nomenclatura usada aqui corresponde a quando um novo sistema de arquivos read-only foi criado. Mova a Coleção de Ports do FreeBSD original para o novo sistema de arquivos para economizar espaço e inodes:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -576,7 +576,7 @@ O `installworld` cria alguns diretórios desnecessários, que devem ser removido
+
. Neste ponto, o novo template read-only está pronto, então a única tarefa restante é remontar os sistemas de arquivos e iniciar as jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -610,7 +610,7 @@ cloned_interfaces="lo1"
+
A segunda interface de loopback `lo1` será criada quando o sistema for iniciado. Também pode ser criado manualmente sem reiniciar:
+
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -623,7 +623,7 @@ Dentro de uma jail, o acesso ao endereço de loopback `127.0.0.1` é redireciona
Dê a cada jail um endereço de loopback exclusivo no bloco de rede `127.0.0.0/8`.
. Instale o package:sysutils/ezjail[]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/ezjail
# make install clean
@@ -638,7 +638,7 @@ ezjail_enable="YES"
+
. O serviço será iniciado automaticamente na inicialização do sistema. Ele pode ser iniciado imediatamente na sessão atual:
+
-[source,bash]
+[source,shell]
....
# service ezjail start
....
@@ -658,7 +658,7 @@ Em ambos os exemplos, `-p` faz com que a árvore de ports seja baixada com o man
+
Para uma basejail baseada na mesma versão FreeBSD RELEASE do computador host, use o comando `install`. Por exemplo, em um computador host executando o FreeBSD 10-STABLE, a versão mais recente do FreeBSD -10 será instalada na jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin install -p
....
@@ -669,7 +669,7 @@ A basejail pode ser instalada a partir de binários criados pelo `buildworld` no
+
Neste exemplo, o FreeBSD 10-STABLE foi compilado a partir do código fonte. Os diretórios da jail são criados. E então `installworld` é executado, instalando o [.filename]#/usr/obj# do host na basejail.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i -p
....
@@ -708,7 +708,7 @@ Novas jails são criadas com o comando `ezjail-admin create`. Nestes exemplos, a
. Crie a jail, especificando um nome e as interfaces de loopback e de rede a serem usadas, junto com seus endereços IP. Neste exemplo, a jail é denominada `dnsjail`.
+
-[source,bash]
+[source,shell]
....
ezjail-admin create dnsjail 'lo1|127.0.1.1,em0|192.168.1.50'
....
@@ -730,14 +730,14 @@ Não habilite raw network sockets, a menos que os serviços na jail realmente pr
+
. Inicie a jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin start dnsjail
....
+
. Use um console na jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
....
@@ -752,7 +752,7 @@ A jail está funcionando e configurações adicionais podem ser realizadas. Conf
+
Conecte-se à jail e configure a senha do usuário `root`:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
# passwd
@@ -793,14 +793,14 @@ Como a cópia do userland da basejail é compartilhada pelas outras jails, a atu
Para compilar o world a partir do código fonte no host, e depois instala-lo na basejail, use:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -b
....
Se o world já estiver sido compilado no host, instale-o no basejail com:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i
....
@@ -809,14 +809,14 @@ Atualizações binárias usam o man:freebsd-update[8]. Essas atualizações têm
Atualize a basejail para a última versão de patchs da versão do FreeBSD no host. Por exemplo, atualizando de RELEASE-p1 para RELEASE-p2.
-[source,bash]
+[source,shell]
....
# ezjail-admin update -u
....
Para atualizar a basejail para uma nova versão, primeiro atualize o sistema host como descrito em crossref:cutting-edge[freebsdupdate-upgrade,Realizando Upgrades de Versão Principais e Menores]. Depois que o host tiver sido atualizado e reinicializado, a basejail poderá ser atualizada. O man:freebsd-update[8] não tem como determinar qual versão está atualmente instalada na basejail, então a versão original deve ser especificada. Use o man:file[1] para determinar a versão original na basejail:
-[source,bash]
+[source,shell]
....
# file /usr/jails/basejail/bin/sh
/usr/jails/basejail/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.3, stripped
@@ -824,7 +824,7 @@ Para atualizar a basejail para uma nova versão, primeiro atualize o sistema hos
Agora use essas informações para executar a atualização de `9.3-RELEASE` para a versão atual do sistema host:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -U -s 9.3-RELEASE
....
@@ -839,7 +839,7 @@ Como usar o man:mergemaster[8] depende do propósito e da confiabilidade de uma
====
Exclua o link do [.filename]#/usr/src# da jail para a basejail e crie um novo [.filename]#/usr/src# na jail como um ponto de montagem. Monte o [.filename]#/usr/src# do computador host como read-only no novo ponto de montagem [.filename]#/usr/src# da jail:
-[source,bash]
+[source,shell]
....
# rm /usr/jails/jailname/usr/src
# mkdir /usr/jails/jailname/usr/src
@@ -848,14 +848,14 @@ Exclua o link do [.filename]#/usr/src# da jail para a basejail e crie um novo [.
Execute um console na jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin console jailname
....
Dentro da jail, execute `mergemaster`. Em seguida, saia do console da jail:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# mergemaster -U
@@ -864,7 +864,7 @@ Dentro da jail, execute `mergemaster`. Em seguida, saia do console da jail:
Finalmente, desmonte o [.filename]#/usr/src# da jail:
-[source,bash]
+[source,shell]
....
# umount /usr/jails/jailname/usr/src
....
@@ -877,7 +877,7 @@ Finalmente, desmonte o [.filename]#/usr/src# da jail:
====
Se os usuários e serviços em uma jail forem confiáveis, o man:mergemaster[8] pode ser executado a partir do host:
-[source,bash]
+[source,shell]
....
# mergemaster -U -D /usr/jails/jailname
....
@@ -889,7 +889,7 @@ Se os usuários e serviços em uma jail forem confiáveis, o man:mergemaster[8]
Após uma atualização de versão principal, é recomendado pelo package:sysutils/ezjail[] garantir que o `pkg` seja da versão correta. Portanto, digite:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f pkg
....
@@ -904,7 +904,7 @@ A árvore de ports na basejail é compartilhada pelas outras jails. A atualizaç
A árvore de ports da basejail é atualizada com o man:portsnap[8]:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -P
....
@@ -917,7 +917,7 @@ A árvore de ports da basejail é atualizada com o man:portsnap[8]:
O ezjail inicia automaticamente as jails quando o computador é iniciado. As jails podem ser manualmente paradas e reiniciadas com `stop` e `start`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop sambajail
Stopping jails: sambajail.
@@ -925,7 +925,7 @@ Stopping jails: sambajail.
Por padrão, as jails são iniciadas automaticamente quando o computador host é iniciado. A inicialização automática pode ser desativada com `config`:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r norun seldomjail
....
@@ -934,7 +934,7 @@ Isso entrará em vigor na próxima vez em que o computador host for iniciado. Um
A ativação do início automático é muito semelhante:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r run oftenjail
....
@@ -948,7 +948,7 @@ O archive pode ser copiado em outro lugar como um backup, ou uma jail existente
Pare e arquive uma jail chamada `wwwserver`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop wwwserver
Stopping jails: wwwserver.
@@ -959,7 +959,7 @@ wwwserver-201407271153.13.tar.gz
Crie uma nova jail chamada `wwwserver-clone` do archive criado na etapa anterior. Use a interface [.filename]#em1# e atribua um novo endereço IP para evitar conflito com a original:
-[source,bash]
+[source,shell]
....
# ezjail-admin create -a /usr/jails/ezjail_archives/wwwserver-201407271153.13.tar.gz wwwserver-clone 'lo1|127.0.3.1,em1|192.168.1.51'
....
@@ -987,7 +987,7 @@ cloned_interfaces="lo1"
Imediatamente crie a nova interface de loopback:
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -995,14 +995,14 @@ Created clone interfaces: lo1.
Crie a jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin create dns1 'lo1|127.0.2.1,re0|192.168.1.240'
....
Inicie a jail, conecte-se a ao seu console e realize algumas configurações básicas:
-[source,bash]
+[source,shell]
....
# ezjail-admin start dns1
# ezjail-admin console dns1
@@ -1025,7 +1025,7 @@ nameserver 10.0.0.61
Ainda usando o console da jail, instale o package:dns/bind99[].
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/dns/bind99 install clean
....
@@ -1090,7 +1090,7 @@ named_enable="YES"
Inicie e teste o servidor de nomes:
-[source,bash]
+[source,shell]
....
# service named start
wrote key file "/usr/local/etc/namedb/rndc.key"
@@ -1100,14 +1100,14 @@ Starting named.
Uma resposta que inclui
-[source,bash]
+[source,shell]
....
;; Got answer;
....
mostra que o novo servidor DNS está funcionando. Um longo delay seguido por uma resposta incluindo
-[source,bash]
+[source,shell]
....
;; connection timed out; no servers could be reached
....
diff --git a/documentation/content/pt-br/books/handbook/kernelconfig/_index.adoc b/documentation/content/pt-br/books/handbook/kernelconfig/_index.adoc
index 1fcf0aee28..1b2611953d 100644
--- a/documentation/content/pt-br/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/kernelconfig/_index.adoc
@@ -80,7 +80,7 @@ Antes de criar um kernel personalizado, considere a razão para isso. Se houver
Os módulos do kernel existem em [.filename]#/boot/kernel# e podem ser dinamicamente carregados no kernel em execução usando o man:kldload[8]. A maioria dos drivers do kernel tem um módulo carregável e uma página de manual. Por exemplo, o driver Ethernet sem fio man:ath[4] tem as seguintes informações em sua página de manual:
-[source,bash]
+[source,shell]
....
Como alternativa, para carregar o driver como um módulo no momento da inicialização, coloque o a seguinte linha no loader.conf(5):
@@ -103,7 +103,7 @@ Algumas versões do Microsoft (TM)Windows(TM) têm um ícone System que pode ser
Se o FreeBSD for o único sistema operacional instalado, use o man:dmesg[8] para determinar o hardware que foi encontrado e listado durante a verificação de inicialização. A maioria dos drivers de dispositivos no FreeBSD tem uma página de manual que lista o hardware suportado pelo driver. Por exemplo, as seguintes linhas indicam que o driver man:psm[4] encontrou um mouse:
-[source,bash]
+[source,shell]
....
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
@@ -117,7 +117,7 @@ Se a saída do `dmesg` não exibir os resultados da saída da verificação de i
Outra ferramenta para encontrar hardware é o man:pciconf[8], que fornece uma saída mais detalhada. Por exemplo:
-[source,bash]
+[source,shell]
....
% pciconf -lv
ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01 hdr=0x00
@@ -131,7 +131,7 @@ Esta saída mostra que o driver [.filename]#ath# localizou um dispositivo Ethern
O sinalizador `-k` do man:man[1] pode ser usado para fornecer informações úteis. Por exemplo, ele pode ser usado para exibir uma lista de páginas de manual que contêm uma marca ou um nome de dispositivo específico:
-[source,bash]
+[source,shell]
....
# man -k Atheros
ath(4) - Atheros IEEE 802.11 wireless network driver
@@ -151,7 +151,7 @@ Depois que o código-fonte for instalado, revise o conteúdo do [.filename]#/usr
Não faça edições no [.filename]#GENERIC#. Em vez disso, copie o arquivo para um nome diferente e faça edições na cópia. A convenção é usar um nome do host com todas as letras maiúsculas. Ao manter várias máquinas FreeBSD com hardware diferente, é uma boa idéia nomeá-lo com o nome do host da máquina. Este exemplo cria uma cópia, denominada [.filename]#MYKERNEL#, do arquivo de configuração [.filename]#GENERIC# para a arquitetura `amd64`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
@@ -176,7 +176,7 @@ Quando terminar de personalizar o arquivo de configuração do kernel, salve uma
Como alternativa, mantenha o arquivo de configuração do kernel em outro lugar e crie um link simbólico para o arquivo:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernels
@@ -205,7 +205,7 @@ Usando este método, o arquivo de configuração local expressa as diferenças l
====
Para compilar um arquivo que contém todas as opções disponíveis, execute o seguinte comando como `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/arch/conf && make LINT
....
@@ -223,21 +223,21 @@ Depois que as edições no arquivo de configuração personalizada forem salvas,
. Mude para este diretório:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compile o novo kernel especificando o nome do arquivo de configuração do kernel personalizado:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Instale o novo kernel associado ao arquivo de configuração do kernel especificado. Este comando irá copiar o novo kernel para [.filename]#/boot/kernel/kernel# e salvar o kernel antigo para [.filename]#/boot/kernel.old/kernel#:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -271,7 +271,7 @@ Existem quatro categorias de problemas que podem ocorrer ao criar um kernel pers
falhas na `config`::
Se o `config` falhar, ele imprimirá o número da linha que está incorreta. Como exemplo, para a seguinte mensagem, certifique-se de que a linha 17 seja digitada corretamente, comparando-a com [.filename]#GENERIC# ou [.filename]#NOTES#:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -289,7 +289,7 @@ Após inicializar com um kernel correto, verifique o arquivo de configuração e
====
Ao solucionar problemas de um kernel, certifique-se de manter uma cópia do [.filename]#GENERIC#, ou algum outro kernel que funcione, como um nome diferente que não será apagado na próxima compilação. Isto é importante porque toda vez que um novo kernel é instalado, o [.filename]#kernel.old# é sobrescrito com o último kernel instalado, que pode ou não ser inicializável. Assim que possível, mova o kernel funcional renomeando o diretório que contém o kernel correto:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/pt-br/books/handbook/l10n/_index.adoc b/documentation/content/pt-br/books/handbook/l10n/_index.adoc
index 15f470ee55..ba806b0686 100644
--- a/documentation/content/pt-br/books/handbook/l10n/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/l10n/_index.adoc
@@ -95,14 +95,14 @@ O _LanguageCode_ e o _CountryCode_ são usados para determinar o país e a varia
Uma lista completa de localidades disponíveis pode ser encontrada digitando:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
Para determinar a configuração atual de localidade:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -185,7 +185,7 @@ Veja o man:login.conf[5] para mais detalhes sobre estas variáveis. Observe que
Sempre que [.filename]#/etc/login.conf# for editado, lembre-se de executar o seguinte comando para atualizar o banco de dados de recursos:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -212,28 +212,28 @@ Se todos os novos usuários usarem o mesmo idioma, configure `defaultclass=_lang
Para substituir essa configuração ao criar um usuário, insira a localidade necessária neste prompt:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
ou especifique a localidade ao executar o `adduser`:
-[source,bash]
+[source,shell]
....
# adduser -class language
....
Se o `pw` for usado para adicionar novos usuários, especifique a localidade da seguinte forma:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
Para alterar a classe de login de um usuário existente, `chpass` pode ser usado. Execute-o como superusuário e forneça o nome do usuário para edição como argumento.
-[source,bash]
+[source,shell]
....
# chpass user_name
....
diff --git a/documentation/content/pt-br/books/handbook/linuxemu/_index.adoc b/documentation/content/pt-br/books/handbook/linuxemu/_index.adoc
index 707cb07dae..3a274c624d 100644
--- a/documentation/content/pt-br/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/linuxemu/_index.adoc
@@ -75,21 +75,21 @@ Por padrão, as bibliotecas do Linux(TM) não estão instaladas e a compatibilid
Antes de tentar compilar o port, carregue o módulo de kernel Linux(TM), caso contrário a compilação irá falhar:
-[source,bash]
+[source,shell]
....
# kldload linux
....
Para compatibilidade com 64 bits:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
Para verificar se o módulo está carregado:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -99,7 +99,7 @@ Para verificar se o módulo está carregado:
O pacote ou port package:emulators/linux_base-c7[] é a maneira mais fácil de instalar um conjunto básico de bibliotecas e binários do Linux(TM) em um sistema FreeBSD. Para instalar o port:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c7
....
@@ -122,7 +122,7 @@ Se um aplicativo Linux(TM) reclamar sobre a falta de bibliotecas compartilhadas
A partir de um sistema Linux(TM), o `ldd` pode ser usado para determinar quais bibliotecas compartilhadas o aplicativo precisa. Por exemplo, para verificar quais bibliotecas compartilhadas o `linuxdoom` precisa, execute este comando a partir de um sistema Linux(TM) que tenha o Doom instalado:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -132,7 +132,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Então, copie todos os arquivos listados na última coluna da saída do comando no sistema Linux(TM) para o diretório [.filename]#/compat/linux# no sistema FreeBSD. Depois de copiados, crie links simbólicos para os nomes na primeira coluna. Este exemplo irá resultar nos seguintes arquivos no sistema FreeBSD:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -146,7 +146,7 @@ Se uma biblioteca compartilhada Linux(TM) já existir com um número de revisão
Por exemplo, essas bibliotecas já existem no sistema FreeBSD:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -154,14 +154,14 @@ Por exemplo, essas bibliotecas já existem no sistema FreeBSD:
e o `ldd` indica que um binário requer uma versão posterior:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Como a biblioteca existente tem apenas uma ou duas versões desatualizadas no último dígito, o programa ainda deve funcionar com a versão um pouco mais antiga. No entanto, é seguro substituir o [.filename]#libc.so# existente pela versão mais nova:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -173,7 +173,7 @@ Geralmente, será necessário procurar as bibliotecas compartilhadas que os bin
Os binários ELF requerem por vezes um passo extra. Quando um binário ELF sem marca for executado, ele gerará uma mensagem de erro:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -182,7 +182,7 @@ Abort
Para ajudar o kernel do FreeBSD a distinguir entre um binário do FreeBSD ELF e um binário Linux(TM), use man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -193,7 +193,7 @@ Como o conjunto de ferramentas GNU coloca as informações de branding apropriad
Para instalar um aplicativo baseado em Linux(TM)RPM, primeiro instale o pacote ou o port package:archivers/rpm4[]. Uma vez instalado, o usuário `root` pode usar este comando para instalar um [.filename]#.rpm#:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -205,7 +205,7 @@ Se necessário, use o `brandelf` nos binários ELF instalados . Observe que isso
Se o DNS não funcionar ou este erro aparecer:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -240,7 +240,7 @@ Para o suporte ao Linux(TM)ABI, o FreeBSD vê o número mágico como um binário
Para que os binários Linux(TM) funcionem, eles devem ser _marcados_ como tipo `Linux` usando o comando man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/pt-br/books/handbook/mac/_index.adoc b/documentation/content/pt-br/books/handbook/mac/_index.adoc
index bc480f2f8b..c21dc60445 100644
--- a/documentation/content/pt-br/books/handbook/mac/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/mac/_index.adoc
@@ -113,7 +113,7 @@ Usar uma política de rótulos múltiplos em uma partição e estabelecer um mod
O comando a seguir definirá a flag `multilabel` no sistema de arquivos UFS especificado . Isso só pode ser feito no modo de usuário único e não é um requisito para o sistema de arquivos de swap:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -131,7 +131,7 @@ Praticamente todos os aspectos da configuração do módulo de política de rót
Toda a configuração pode ser feita usando `setfmac`, que é usado para definir rótulos MAC em objetos do sistema, e `setpmac`, que é usado para definir os rótulos em sujeitos do sistema. Por exemplo, para definir o rótulo MAC`biba` como `high` em [.filename]#test#:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
@@ -140,7 +140,7 @@ Se a configuração for bem sucedida, o prompt será retornado sem erro. Um erro
O administrador do sistema pode usar `setpmac` para substituir as configurações do módulo de política, atribuindo um rótulo diferente a chamada do processo:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -223,7 +223,7 @@ Os rótulos podem ser definidos em interfaces de rede para ajudar a controlar o
Ao definir o rótulo MAC em interfaces de rede, `maclabel` pode ser passado para o `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -302,7 +302,7 @@ A lista de regras pode ser inserida usando o man:ugidfw[8] que possui uma sintax
Depois que o módulo man:mac_bsdextended[4] tiver sido carregado, o seguinte comando poderá ser usado para listar a configuração atual da regra:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -310,14 +310,14 @@ Depois que o módulo man:mac_bsdextended[4] tiver sido carregado, o seguinte com
Por padrão, nenhuma regra é definida e tudo está completamente acessível. Para criar uma regra que bloqueia todo o acesso dos usuários, mas que não afeta o ` root `:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
Embora essa regra seja simples de implementar, é uma idéia muito ruim, pois impede que todos os usuários emitam comandos. Um exemplo mais realista bloqueia todo o acesso do `user1`, incluindo listagens de diretórios, ao diretório inicial do usuário `_user2_` :
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -369,7 +369,7 @@ Uma vez carregado, este módulo habilita a política MAC em todos os sockets. Os
Por padrão, as portas abaixo de 1024 só podem ser usadas por processos privilegiados que são executados como `root`. Para que o man:mac_portacl[4] permita que processos não privilegiados se vinculem a portas abaixo de 1024, defina os seguintes ajustes da seguinte forma:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0
@@ -378,21 +378,21 @@ Por padrão, as portas abaixo de 1024 só podem ser usadas por processos privile
Para evitar que o usuário `root` seja afetado por esta política, configure `security.mac.portacl.suser_exempt` para um valor diferente de zero.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
Para permitir que o usuário `www` com UID 80 seja vinculado à porta 80 sem precisar do privilégio `root`:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
Este próximo exemplo permite que o usuário com o UID de 1001 se vincule às portas TCP 110 (POP3) e 995 (POP3):
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -414,21 +414,21 @@ Quando essa política esta ativada, os usuários só poderão ver seus processos
Este exemplo adiciona o `top` ao conjunto de rótulos dos usuários na classe `insecure`. Todos os processos gerados por usuários na classe `insecure` permanecerão no rótulo `partition/13`.
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
Este comando exibe o rótulo da partição e a lista de processos:
-[source,bash]
+[source,shell]
....
# ps Zax
....
Esse comando exibe o rótulo da partição de processo de outro usuário e os processos atualmente em execução desse usuário:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -471,14 +471,14 @@ Os seguintes ajustes `sysctl` estão disponíveis:
Para manipular os rótulos MLS, use man:setfmac[8]. Para atribuir um rótulo a um objeto:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
Para obter o rótulo MLS para o arquivo [.filename]#test#:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -525,7 +525,7 @@ Os seguintes ajustes podem ser usados para manipular a política Biba:
Para acessar a configuração de política Biba em objetos do sistema, use `setfmac` e `getfmac`:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -555,7 +555,7 @@ Essa política se baseia na rotulagem onipresente de todos os objetos do sistema
Como as políticas Biba e MLS, `setfmac` e `setpmac` são usadas para colocar rótulos nos objetos do sistema:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -642,7 +642,7 @@ Em seguida, adicione a seguinte linha a seção de classe de usuário padrão:
Salve as edições e rode o seguinte comando para reconstruir o banco de dados:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -651,14 +651,14 @@ Salve as edições e rode o seguinte comando para reconstruir o banco de dados:
Configure o usuário `root` para a classe padrão usando:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
Todas as contas de usuário que não são `root` agora exigirão uma classe de login. A classe de login é necessária, caso contrário, os usuários terão acesso recusado aos comandos comuns. O seguinte script `sh` deve resolver:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -666,7 +666,7 @@ Todas as contas de usuário que não são `root` agora exigirão uma classe de l
Em seguida, altere as contas `nagios` e `www` para a classe insegura:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
# pw usermod www -L insecure
@@ -709,7 +709,7 @@ Essa política impõe segurança ao definir restrições no fluxo de informaçõ
Este arquivo será lido depois da execução do `setfsmac` em cada sistema de arquivos. Este exemplo define a política no sistema de arquivos raiz:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
....
@@ -748,7 +748,7 @@ Primeiro, certifique-se de que o servidor Web e o Nagios não iniciarão na inic
Se tudo parecer bem, o Nagios, o Apache e o Sendmail agora poderão ser iniciados:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -761,7 +761,7 @@ Verifique novamente para garantir que tudo esteja funcionando corretamente. Caso
====
O usuário `root` ainda pode alterar a aplicação de segurança e editar seus arquivos de configuração. O comando a seguir permitirá a degradação da política de segurança para um nível inferior para um shell recém executado:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/pt-br/books/handbook/mail/_index.adoc b/documentation/content/pt-br/books/handbook/mail/_index.adoc
index 1efcc62540..8d8db0f0ec 100644
--- a/documentation/content/pt-br/books/handbook/mail/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/mail/_index.adoc
@@ -102,7 +102,7 @@ Além de mapear nomes de hosts para endereços de IP, o DNS é responsável por
+
Para visualizar os registros MX de um domínio, especifique o tipo de registro. Consulte man:host[1], para mais detalhes sobre este comando:
+
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -146,7 +146,7 @@ Para configurar o arquivo de acesso, use o formato mostrado no exemplo para adic
+
Sempre que este arquivo for atualizado, atualize seu banco de dados e reinicie o Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -188,7 +188,7 @@ postmaster@example.com postmaster@noc.example.net
+
Este arquivo é processado pela primeira entrada que for correspondida. Quando um endereço de email corresponde ao endereço à esquerda, ele é mapeado para a caixa de correio local listada à direita. O formato da primeira entrada neste exemplo mapeia um endereço de email específico para uma caixa de correio local, enquanto o formato da segunda entrada mapeia um endereço de email específico para uma caixa de correio remota. Por fim, qualquer endereço de email de `example.com` que não correspondeu a nenhuma das entradas anteriores corresponderá ao último mapeamento e será enviado para a caixa de correio local `joe`. Ao criar entradas personalizadas, use este formato e adicione-as ao [.filename]#/etc/mail/virtusertable#. Sempre que este arquivo for editado, atualize seu banco de dados e reinicie o Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
# service sendmail restart
@@ -252,7 +252,7 @@ Mais informações sobre as opções de inicialização do Sendmail estão dispo
Quando um novo MTA é instalado usando a Coleção de Ports, seu script de inicialização também é instalado e as instruções de inicialização são mencionadas em sua mensagem de pacote. Antes de iniciar o novo MTA, pare os processos do Sendmail em execução. Este exemplo interrompe todos esses serviços e em seguida, inicia o serviço Postfix:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -432,7 +432,7 @@ Qualquer um dos itens acima permitirá que o correio seja recebido diretamente n
Tente isto:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -444,7 +444,7 @@ Neste exemplo, as mensagens enviadas diretamente para mailto:yourlogin@exemplo.F
Para este exemplo:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -516,7 +516,7 @@ Além disso, um acordo típico de serviço de acesso à Internet pode proibir a
A maneira mais fácil de atender a essas necessidades é instalar o port package:mail/ssmtp[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -622,7 +622,7 @@ saslauthd_enable="YES"
+
Finalmente, inicie o daemon saslauthd:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -639,7 +639,7 @@ SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
Essas linhas fornecem ao Sendmail as opções de configuração apropriadas para vincular ao package:cyrus-sasl2[] em tempo de compilação. Certifique-se de que o package:cyrus-sasl2[] tenha sido instalado antes de recompilar o Sendmail.
. Recompile o Sendmail executando os seguintes comandos:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -681,14 +681,14 @@ Embora o `mail` não suporte nativamente a interação com os servidores POP ou
Para enviar e receber email, execute `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
O conteúdo da caixa de correio do usuário em [.filename]#/var/mail# é lido automaticamente pelo `mail`. Se a caixa de correio estiver vazia, o utilitário sairá com uma mensagem indicando que nenhum email foi encontrado. Se o email existir, a interface do aplicativo será iniciada e uma lista de mensagens será exibida. As mensagens são numeradas automaticamente, como pode ser visto no exemplo a seguir:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -699,7 +699,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Agora as mensagens podem ser lidas digitando kbd:[t] seguido pelo número da mensagem. Este exemplo lê o primeiro email:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -718,7 +718,7 @@ Como visto neste exemplo, a mensagem será exibida com cabeçalhos completos. Pa
Se o email exigir uma resposta, pressione as teclas kbd:[R] ou kbd:[r] no `mail`. kbd:[R] instrui o `mail` a responder apenas ao remetente do email, enquanto kbd:[r] responde a todos os outros destinatários da mensagem. Esses comandos podem ser sufixados com o número do email. Depois de digitar a resposta, o final da mensagem deve ser marcado por um único kbd:[.] em sua própria linha. Um exemplo pode ser visto abaixo:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -731,7 +731,7 @@ EOT
Para enviar um novo email, pressione kbd:[m], seguido pelo endereço de email do destinatário. Vários destinatários podem ser especificados separando cada endereço com o delimitador kbd:[,]. O assunto da mensagem pode então ser inserido, seguido pelo conteúdo da mensagem. O final da mensagem deve ser especificado colocando um único kbd:[.] em sua própria linha.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -763,7 +763,7 @@ Consulte http://www.mutt.org[http://www.mutt.org] para mais informações sobre
O mutt pode ser instalado usando o port package:mail/mutt[]. Após o port ter sido instalado, o mutt pode ser iniciado com o seguinte comando:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -802,7 +802,7 @@ O alpine teve várias vulnerabilidades remotas descobertas no passado, que permi
A versão atual do alpine pode ser instalada usando o port package:mail/alpine[]. Após a instalação do port, o alpine pode ser iniciado executando o seguinte comando:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -843,7 +843,7 @@ O fetchmail é um cliente IMAP e POP completo. Ele permite que os usuários baix
Esta seção explica alguns dos recursos básicos do fetchmail. Este utilitário requer uma configuração [.filename]#.fetchmailrc# no diretório pessoal do usuário para que seja executado corretamente. Este arquivo inclui informações do servidor, bem como credenciais de login. Devido à natureza sensível do conteúdo deste arquivo, é aconselhável torná-lo legível apenas pelo usuário, com o seguinte comando:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -868,7 +868,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail pode ser executado no modo daemon executando-o com `-d`, seguido pelo intervalo (em segundos) que o fetchmail deve pesquisar servidores listados em [.filename]#.fetchmailrc#. O exemplo a seguir configura o fetchmail para pesquisar a cada 600 segundos:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/pt-br/books/handbook/mirrors/_index.adoc b/documentation/content/pt-br/books/handbook/mirrors/_index.adoc
index 07fd8f8c98..eeb20388c6 100644
--- a/documentation/content/pt-br/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/mirrors/_index.adoc
@@ -409,7 +409,7 @@ Esta seção demonstra como instalar o Subversion em um sistema FreeBSD e usá-l
A instalação do package:security/ca_root_nss[] permite que o Subversion verifique a identidade dos servidores de repositório HTTPS. Os certificados raiz SSL podem ser instalados a partir de um port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -417,7 +417,7 @@ A instalação do package:security/ca_root_nss[] permite que o Subversion verifi
ou como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -436,7 +436,7 @@ Se o `svnlite` não estiver disponível ou a versão completa do Subversion for
O Subversion pode ser instalado a partir da coleção de ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -444,7 +444,7 @@ O Subversion pode ser instalado a partir da coleção de ports:
O Subversion também pode ser instalado como um pacote:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -466,7 +466,7 @@ O Subversion usa URLs para designar um repositório, sob a forma de _protocol://
Um checkout de um determinado repositório é executado com um comando como este:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lwcdir
....
@@ -479,7 +479,7 @@ Onde:
Este exemplo obtém a coleção de ports do repositório do FreeBSD usando o protocolo HTTPS, colocando a cópia de trabalho local em [.filename]#/usr/ports#. Se o [.filename]#/usr/ports# já estiver presente, mas não tiver sido criado pelo `svn`, lembre-se de renomeá-lo ou excluí-lo antes do checkout.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -488,14 +488,14 @@ Como o checkout inicial deve fazer o download da ramificação completa do repos
Após o checkout inicial, a cópia de trabalho local pode ser atualizada executando:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
Para atualizar o [.filename]#/usr/ports# criado no exemplo acima, use:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -504,7 +504,7 @@ O update é muito mais rápido do que um checkout, transferindo apenas os arquiv
Uma maneira alternativa de atualizar a cópia de trabalho local após o checkout é fornecida pelo [.filename]#Makefile# existente em [.filename]#/usr/ports#, [.filename]#/usr/src#, e [.filename]#/usr/doc#. Configure o `SVN_UPDATE` e use o destino `atualizar`. Por exemplo, para atualizar [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/pt-br/books/handbook/multimedia/_index.adoc b/documentation/content/pt-br/books/handbook/multimedia/_index.adoc
index 7385b96456..53fb4a9535 100644
--- a/documentation/content/pt-br/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/multimedia/_index.adoc
@@ -78,7 +78,7 @@ Antes de iniciar a configuração, determine o modelo da placa de som e o chip u
Para usar um dispositivo de som, seu driver deve ser carregado. A maneira mais fácil é carregar o módulo do kernel para a placa de som com o man:kldload[8]. Este exemplo carrega o driver para um chipset de áudio integrado baseado na especificação Intel:
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -92,7 +92,7 @@ snd_hda_load="YES"
Outros módulos de som disponíveis estão listados no arquivo [.filename]#/boot/defaults/loader.conf#. Quando não tiver certeza de qual driver usar, carregue o módulo [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -149,7 +149,7 @@ As configurações mostradas acima são os padrões. Em alguns casos, a IRQ ou o
Depois de carregar o módulo necessário ou reinicializar no kernel personalizado, a placa de som deve ser detectada. Para confirmar, execute `dmesg | grep pcm`. Este exemplo é de um sistema com um chipset integrado Conexant CX20590:
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -158,7 +158,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
O status da placa de som também pode ser verificado usando este comando:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -172,7 +172,7 @@ A saída irá variar dependendo da placa de som. Se nenhum dispositivo [.filenam
Se tudo correr bem, a placa de som deverá funcionar no FreeBSD. Se a unidade de CD ou DVD estiver corretamente conectada à placa de som, é possível inserir um CD de áudio na unidade e reproduzi-lo com man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -187,7 +187,7 @@ Várias aplicações, como package:audio/workman[], fornecem uma interface mais
Outra maneira rápida de testar a placa é enviar dados para [.filename]#/dev/dsp#:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -206,28 +206,28 @@ Conectar a um dispositivo Bluetooth está fora do escopo deste capítulo. Consul
Para que o dispositivo Bluetooth funcione com o sistema de som do FreeBSD, os usuários precisam primeiramente instalar o package:audio/virtual_oss[]:
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] requer `cuse` para ser carregado no kernel:
-[source,bash]
+[source,shell]
....
# kldload cuse
....
Para carregar o `cuse` durante a inicialização do sistema, execute o comando:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
Para usar fones de ouvido como reprodutor de som com package:audio/virtual_oss[], os usuários precisam criar um dispositivo virtual depois de se conectarem a um dispositivo de áudio Bluetooth:
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -297,7 +297,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
Neste exemplo, a placa gráfica (`NVidia`) foi enumerada antes da placa de som (`Realtek ALC889`). Para usar a placa de som como o dispositivo de reprodução padrão, altere a variável `hw.snd.default_unit` para a unidade que deve ser usada para reprodução:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -316,7 +316,7 @@ Muitas vezes é desejável ter várias fontes de som capazes de tocar simultanea
Três variáveis no man:sysctl[8] estão disponíveis para configurar canais virtuais:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -356,7 +356,7 @@ Um popular reprodutor gráfico de MP3 é o Audacious. Ele suporta skins do Winam
O pacote ou Port package:audio/mpg123[] fornece um reprodutor de MP3 alternativo em linha de comando. Uma vez instalado, especifique o arquivo MP3 para reproduzir na linha de comando. Se o sistema tiver vários dispositivos de áudio, o dispositivo de som também pode ser especificado:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
@@ -378,7 +378,7 @@ A ferramenta `cdda2wav`, que é instalada com o suite de programas package:sysut
Com o CD de áudio na unidade, o seguinte comando pode ser executado como `root` para ripar um CD inteiro em arquivos WAV, por trilhas:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -387,21 +387,21 @@ Neste exemplo, o `-D _0,1,0_` indica o dispositivo SCSI [.filename]#0,1,0# conte
Para ripar trilhas individuais, use a opção `-t` para especificar a trilha:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Para extrair um intervalo de trilhas, como as trilhas de um a sete, especifique um intervalo:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
Para extrair de uma unidade ATAPI(IDE) CDROM, especifique o nome do dispositivo no lugar dos números da unidade SCSI. Por exemplo, para extrair a trilha 7 de uma unidade IDE:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -415,7 +415,7 @@ Lame é um codificador popular para MP3 que pode ser instalado a partir do port
O comando a seguir converterá o arquivo WAV [.filename]#audio01.wav# para [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "Foo Song Title" --ta "FooBar Artist" --tl "FooBar Album" \
--ty "2014" --tc "Ripped and encoded by Foo" --tg "Genre" audio01.wav audio01.mp3
@@ -427,7 +427,7 @@ Para gravar um CD de áudio usando arquivos MP3, primeiro estes devem ser conver
Para converter o arquivo [.filename]#audio01.mp3# usando mpg123, especifique o nome do arquivo PCM:
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -451,7 +451,7 @@ Para usar XMMS para converter um arquivo MP3 para WAV, use esses passos:
Os formatos WAV e PCM podem ser usados com cdrecord. Ao usar arquivos WAV, haverá um pequeno som no início de cada trilha. Este som é o cabeçalho do arquivo WAV. O pacote binário ou port package:audio/sox[] pode ser usado para remover o cabeçalho:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -465,7 +465,7 @@ Antes de configurar a reprodução de vídeo, determine o modelo e o chipset da
É interessante ter um arquivo de teste MPEG pequeno para avaliar vários players e opções. Como alguns aplicativos de DVD procuram por mídia DVD em [.filename]#/dev/dvd# por padrão, ou possuem esse nome de dispositivo codificado neles, pode ser útil fazer um link simbólico para o dispositivo adequado:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/cd0 /dev/dvd
....
@@ -505,14 +505,14 @@ Interfaces de vídeo comuns incluem:
Para verificar se esta extensão está em execução, use `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
O XVideo é suportado pela placa de vídeo se o resultado for semelhante a:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -588,7 +588,7 @@ Os formatos listados, como YUV2 e YUV12, não estão presentes em todas as imple
Se o resultado, ao invés disso, se parecer com:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen 0
@@ -619,27 +619,27 @@ Esta seção descreve apenas alguns usos comuns. Consulte o mplayer(1) para uma
Para reproduzir o arquivo [.filename]#testfile.avi#, especifique as interfaces de vídeo com `-vo`, conforme mostrado nos exemplos a seguir:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -648,7 +648,7 @@ Vale a pena tentar todas essas opções, pois seu relativo desempenho depende de
Para reproduzir um DVD, substitua [.filename]#testfile.avi# por `dvd://_N_ -dvd-device _DEVICE_`, em que _N_ é o número do título a ser reproduzido e _DEVICE_ é o nó do dispositivo para o DVD. Por exemplo, para reproduzir o filme 3 de [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -673,7 +673,7 @@ zoom=yes
O `mplayer` pode ser usado para copiar um filme de DVD para um arquivo [.filename]#.vob#. Para gravar o filme em um segundo DVD:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -686,7 +686,7 @@ Antes de usar o `mencoder`, é interessante familiarizar-se com as opções desc
Aqui está um exemplo de uma cópia simples:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -695,7 +695,7 @@ Para copiar para um arquivo, use `-dumpfile` com o `mplayer`.
Para converter [.filename]#input.avi# para o codec MPEG4 com codificação de áudio MPEG3, primeiro instale o port package:audio/lame[]. Devido a restrições de licenciamento, um pacote não está disponível. Uma vez instalado, digite:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -716,7 +716,7 @@ Por padrão, o player xine inicia uma interface gráfica com o usuário. Os menu
Alternativamente, o xine pode ser executado a partir da linha de comando, especificando o nome do arquivo a ser reproduzido:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -732,7 +732,7 @@ No FreeBSD, o Transcode pode ser instalado usando o pacote ou port package:multi
Este exemplo demonstra como converter um arquivo DivX em um arquivo PAL MPEG-1 (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -791,7 +791,7 @@ options OVERRIDE_TUNER=6
ou, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -833,14 +833,14 @@ A página https://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] contém uma lista
Para instalar o MythTV usando pacotes binários:
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
Como alternativa, para instalar a partir da Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -848,21 +848,21 @@ Como alternativa, para instalar a partir da Coleção de Ports:
Uma vez instalado, configure o banco de dados do MythTV:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Em seguida, configure o backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Finalmente, inicie o backend:
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -893,7 +893,7 @@ device xhci
Para verificar se o scanner USB foi detectado, conecte-o e execute o comando `dmesg`, sendo então possível ver se o scanner aparece no buffer de mensagens do sistema. Em caso afirmativo, deve ser exibida uma mensagem semelhante a esta:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -910,7 +910,7 @@ device pass
Verifique se o dispositivo é exibido no buffer de mensagens do sistema:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -919,7 +919,7 @@ pass2: 3.300MB/s transfers
Se o scanner não foi ligado na inicialização do sistema, ainda é possível forçar manualmente a detecção executando uma varredura de barramento SCSI com o comando `camcontrol`:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -930,7 +930,7 @@ Re-scan of bus 3 was successful
O scanner deve agora aparecer na lista de dispositivos SCSI:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -947,14 +947,14 @@ O sistma SANE provê o acesso ao scanner via backends (package:graphics/sane-bac
Para instalar os backends do pacote binário:
-[source,bash]
+[source,shell]
....
# pkg install sane-backends
....
Alternativamente, para instalar a partir da Coleção de Ports
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-backends
# make install clean
@@ -962,7 +962,7 @@ Alternativamente, para instalar a partir da Coleção de Ports
Depois de instalar o pacote ou port package:graphics/sane-backends[], use o comando `sane-find-scanner` para verificar a detecção do scanner pelo sistema SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -977,7 +977,7 @@ Alguns scanners USB exigem que o firmware seja carregado. Consulte sane-find-sca
Em seguida, verifique se o scanner será identificado por uma interface de digitalização. Os backends SANE incluem o comando `scanimage`, que pode ser usado para listar os dispositivos e realizar uma aquisição de imagens. Use a opção `-L` para listar os dispositivos do scanner. O primeiro exemplo é para um scanner SCSI e o segundo é para um scanner USB:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -989,7 +989,7 @@ Neste segundo exemplo,`epson2` é o nome do backend e `libusb:000:002` significa
Se o comando `scanimage` não conseguir identificar o scanner, esta mensagem será exibida:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1008,7 +1008,7 @@ usb /dev/ugen0.2
Salve as edições e verifique se o scanner está identificado com o nome do back-end correto e com o nó do dispositivo:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
@@ -1024,7 +1024,7 @@ Para ter acesso ao scanner, o usuário precisa ler e gravar as permissões no n
Este exemplo cria um grupo chamado `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1053,7 +1053,7 @@ add path 'usb/*' mode 0666 group usb
Finalmente, adicione os usuários a `_usb_` para permitir acesso ao scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/pt-br/books/handbook/network-servers/_index.adoc b/documentation/content/pt-br/books/handbook/network-servers/_index.adoc
index c62d17fb1c..cf6d2c734f 100644
--- a/documentation/content/pt-br/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/network-servers/_index.adoc
@@ -93,7 +93,7 @@ inetd_enable="YES"
Para iniciar o inetd agora, para que ele ouça o serviço que você configurou, digite:
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -105,7 +105,7 @@ Uma vez iniciado o inetd, ele precisa ser notificado sempre que uma modificaçã
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -332,14 +332,14 @@ mountd_enable="YES
O servidor pode ser iniciado agora executando este comando:
-[source,bash]
+[source,shell]
....
# service nfsd start
....
Sempre que o servidor NFS for iniciado, o mountd também é iniciado automaticamente. No entanto, mountd lê apenas [.filename]#/etc/exports# quando é iniciado. Para fazer as edições subsequentes de [.filename]#/etc/exports# entrarem em vigor imediatamente, force mountd para ler novamente:
-[source,bash]
+[source,shell]
....
# service mountd reload
....
@@ -355,14 +355,14 @@ nfs_client_enable="YES"
Em seguida, execute este comando em cada cliente NFS:
-[source,bash]
+[source,shell]
....
# service nfsclient start
....
O cliente agora tem tudo de que precisa para montar um sistema de arquivos remoto. Nestes exemplos, o nome do servidor é `server` e o nome do cliente é `client`. Para montar [.filename]#/home# no `server` para o ponto de montagem [.filename]#/mnt# no `client`:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -390,7 +390,7 @@ rpc_statd_enable="YES"
Então inicie as aplicações:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -421,7 +421,7 @@ Existe um mapeamento especial montado automaticamente em [.filename]#/net#. Quan
====
Neste exemplo, `showmount -e` mostra os sistemas de arquivos exportados que podem ser montados a partir do servidor NFS, `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -443,7 +443,7 @@ autofs_enable="YES"
Em seguida, man:autofs[5] pode ser iniciado executando:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -589,7 +589,7 @@ nis_client_flags="-S test-domain,server" <.>
Depois de salvar as edições, digite `/etc/netstart` para reiniciar a rede e aplicar os valores definidos no arquivo [.filename]#/etc/rc.conf#. Antes de inicializar os mapas de NIS, inicie man:ypserv[8]:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -598,7 +598,7 @@ Depois de salvar as edições, digite `/etc/netstart` para reiniciar a rede e ap
Os mapeamentos NIS são gerados a partir dos arquivos de configuração no diretório [.filename]#/etc# no NIS master, com uma exceção: [.filename]#/etc/master.passwd#. Isso evita a propagação de senhas para todos os servidores no domínio NIS. Portanto, antes de inicializar os mapas do NIS, configure os arquivos de senha primários:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -614,7 +614,7 @@ Assegure-se de que o arquivo [.filename]#/var/yp/master.passwd# não seja de gru
Depois de concluir esta tarefa, inicialize os mapas do NIS. O FreeBSD inclui o script man:ypinit[8] para fazer isso. Ao gerar mapas para o servidor master, inclua `-m` e especifique o nome de domínio NIS:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -652,7 +652,7 @@ NOPUSH = "True"
Toda vez que um novo usuário é criado, a conta de usuário deve ser adicionada ao servidor mestre NIS e aos mapeamentos do NIS reconstruídos. Até que isso ocorra, o novo usuário não poderá efetuar login em nenhum lugar, exceto no NIS master. Por exemplo, para adicionar o novo usuário `jsmith` ao domínio `test-domain`, execute estes comandos no servidor master:
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -665,7 +665,7 @@ O usuário também pode ser adicionado usando `adduser jsmith` em vez de `pw use
Para configurar um servidor NIS slave, faça o logon no servidor slave e edite o arquivo [.filename]#/etc/rc.conf# assim como para o servidor master. Não gere nenhum mapa de NIS, pois estes já existem no servidor master. Ao executar `ypinit` no servidor slave, use `-s` (para slave) ao invés de `-m` (para master). Esta opção requer o nome do NIS master, além do nome do domínio, como visto neste exemplo:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -773,7 +773,7 @@ Esta linha configura o cliente para fornecer qualquer pessoa com uma conta váli
Para iniciar imediatamente o cliente NIS, execute os seguintes comandos como superusuário:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -812,7 +812,7 @@ Neste exemplo, o sistema `basie` é uma estação de trabalho da dentro do domí
Para previnir usuários específicos de logar em um sistema, desde que eles estejam presentes no banco de dados do NIS, use `vipw` para adicionar `-_username_` com o numero correto de virgulas em direção ao fim do arquivo [.filename]#/etc/master.passwd# no cliente, onde _username_ é o nome de usuário a impedir de logar. A linha com o usuário bloqueado deve estar antes da linha `+` que permite usuários do NIS. Neste exemplo, `bill` está impedido de logar no `basie`:
-[source,bash]
+[source,shell]
....
basie# cat /etc/master.passwd
root:[password]:0:0::0:0:The super-user:/root:/bin/csh
@@ -922,7 +922,7 @@ Repita este processo se mais de 225 (15 vezes 15) usuários existirem dentro de
Para ativar e distribuir o novo mapa do NIS:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -930,7 +930,7 @@ ellington# make
Isso gerará os três mapas NIS, [.filename]#netgroup#, [.filename]#netgroup.byhost# e [.filename]#netgroup.byuser#. Use a opção de chave de mapa man:ypcat[1] para verificar se os novos mapas de NIS estão disponíveis:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1064,7 +1064,7 @@ Neste exemplo, o sistema está usando o formato DES. Outros valores possíveis s
Se o formato em um host precisar ser editado para corresponder ao que está sendo usado no domínio NIS, o banco de dados de recursos de login deve ser reconstruído após salvar a alteração:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1087,7 +1087,7 @@ O LDAP usa vários termos que devem ser entendidos antes de iniciar a configura
Um exemplo de entrada LDAP é semelhante ao seguinte. Este exemplo procura a entrada para a conta de usuário especificada (`uid`), unidade organizacional (`ou`) e organização (`o`):
-[source,bash]
+[source,shell]
....
% ldapsearch -xb "uid=trhodes,ou=users,o=example.com"
# extended LDIF
@@ -1122,7 +1122,7 @@ Maiores informações sobre o LDAP e sua terminologia podem ser encontradas em h
O FreeBSD não provê um servidor LDAP embutido. Comece a configuração instalando o pacote ou port package:net/openldap-server[]:
-[source,bash]
+[source,shell]
....
# pkg install openldap-server
....
@@ -1131,14 +1131,14 @@ Aqui está um largo conjunto de opções habilitadas no link:{linux-users}#softw
A instalação cria o diretório [.filename]#/var/db/openldap-data# para conter os dados. O diretório para armazenar os certificados deve ser criado:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/private
....
A próxima fase é configurar a autoridade de certificação. Os seguintes comandos devem ser executados em [.filename]#/usr/local/etc/openldap/private#. Isso é importante, pois as permissões de arquivo precisam ser restritivas e os usuários não devem ter acesso a esses arquivos. Informações mais detalhadas sobre certificados e seus parâmetros podem ser encontradas em crossref:security[openssl,OpenSSL]. Para criar a Autoridade de Certificação, comece com este comando e siga os prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt
....
@@ -1147,21 +1147,21 @@ As entradas para os prompts podem ser genéricas _exceto_ para o `Common Name`.
A próxima tarefa é criar uma solicitação de assinatura de certificado e uma chave privada. Insira este comando e siga os prompts:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout server.key -out server.csr
....
Durante o processo de geração de certificados, certifique-se de configurar corretamente o atributo `Common Name`. A Solicitação de Assinatura de Certificado deve ser assinada com a Autoridade de Certificação para ser usada como um certificado válido:
-[source,bash]
+[source,shell]
....
# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial
....
A parte final do processo de geração de certificados é gerar e assinar os certificados do cliente:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout client.key -out client.csr
# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CA ../ca.crt -CAkey ca.key
@@ -1314,28 +1314,28 @@ Esse http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=tree;f=tests/data
Quando a configuração estiver concluída, o [.filename]#slapd.ldif# deve ser colocado em um diretório vazio. Recomenda-se criá-lo como:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/slapd.d/
....
Importe o banco de dados de configuração:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif
....
Inicie o daemon [.filename]#slapd#:
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/
....
A opção `-d` pode ser usada para depuração, conforme especificado em slapd(8). Para verificar se o servidor está em execução e funcionando:
-[source,bash]
+[source,shell]
....
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
@@ -1360,21 +1360,21 @@ result: 0 Success
O servidor ainda deve ser confiável. Se isso nunca foi feito antes, siga estas instruções. Instale o pacote ou o port OpenSSL:
-[source,bash]
+[source,shell]
....
# pkg install openssl
....
No diretório onde o [.filename]#ca.crt# está armazenado (neste exemplo, [.filename]#/usr/local/etc/openldap#), execute:
-[source,bash]
+[source,shell]
....
# c_rehash .
....
Tanto a CA quanto o certificado do servidor agora são reconhecidos corretamente em suas respectivas funções. Para verificar isso, execute este comando no diretório [.filename]#server.crt#:
-[source,bash]
+[source,shell]
....
# openssl verify -verbose -CApath . server.crt
....
@@ -1394,7 +1394,7 @@ O [.filename]#slapd# não fornece depuração na inicialização. Verifique o [.
O exemplo a seguir adiciona o grupo `team` e o usuário `john` ao banco de dados LDAP de `domain.example`, que ainda está vazio. Primeiro, crie o arquivo [.filename]#domain.ldif#:
-[source,bash]
+[source,shell]
....
# cat domain.ldif
dn: dc=domain,dc=example
@@ -1435,14 +1435,14 @@ userPassword: secret
Veja a documentação do OpenLDAP para mais detalhes. Use [.filename]#slappasswd# para substituir a senha `secret` em texto puro com um hash no `userPassword`. O caminho especificado como `loginShell` deve existir em todos sistemas onde `john` pode se logar. Finalmente, use o administrador `mdb` para modificar o banco de dados:
-[source,bash]
+[source,shell]
....
# ldapadd -W -D "cn=mdbadmin,dc=domain,dc=example" -f domain.ldif
....
Modificações para a seção _configurações globais_ podem ser feitas apenas pelo super-usuário global. Por exemplo, assume que a opção `olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` foi inicialmente especificada e deve agora ser deletada. Primeiro, crie um arquivo que contenha o seguinte:
-[source,bash]
+[source,shell]
....
# cat global_mod
dn: cn=config
@@ -1452,7 +1452,7 @@ delete: olcTLSCipherSuite
Em seguida, aplique as modificações:
-[source,bash]
+[source,shell]
....
# ldapmodify -f global_mod -x -D "cn=config" -W
....
@@ -1461,7 +1461,7 @@ Quando solicitado, forneça a senha escolhida na seção _configuração backend
Se algo der errado ou se o superusuário global não puder acessar o backend de configuração, é possível excluir e reescrever toda a configuração:
-[source,bash]
+[source,shell]
....
# rm -rf /usr/local/etc/openldap/slapd.d/
....
@@ -1582,7 +1582,7 @@ Substitua o `dc0` pela interface (ou interfaces, separadas por espaço em branco
Inicie o servidor executando o seguinte comando:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1680,21 +1680,21 @@ Quaisquer servidores de nomes existentes em [.filename]#/etc/resolv.conf# serão
Se algum dos servidores de nomes listados não suportar o DNSSEC, a resolução local DNS falhará. Certifique-se de testar cada servidor de nomes e remover qualquer um que falhe no teste. O seguinte comando mostrará a árvore de confiança ou uma falha para um servidor de nomes em execução em `192.168.1.1`:
====
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org @192.168.1.1
....
Quando cada servidor de nomes for confirmado para suportar DNSSEC, inicie o Unbound:
-[source,bash]
+[source,shell]
....
# service local_unbound onestart
....
Isso cuidará da atualização do arquivo [.filename]#/etc/resolv.conf# para que as consultas para domínios seguros DNSSEC funcionem agora. Por exemplo, execute o seguinte DNSSEC para validar a árvore confiável do FreeBSD.org :
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org
;; Number of trusted keys: 1
@@ -1758,7 +1758,7 @@ apache24_flags=""
Se o apachectl não relatar erros de configuração, inicie o `httpd` agora:
-[source,bash]
+[source,shell]
....
# service apache24 start
....
@@ -1767,7 +1767,7 @@ O serviço `httpd` pode ser testado inserindo `http://_localhost_` em um navegad
A configuração do Apache pode ser testada quanto a erros depois de fazer alterações subsequentes de configuração enquanto o `httpd` está em execução usando o seguinte comando:
-[source,bash]
+[source,shell]
....
# service apache24 configtest
....
@@ -1861,14 +1861,14 @@ Suporte para PHP para o Apache e alguma outra parte escrita na linguagem, pode s
Para todas versões suportadas, procure os dados do pacote usando o comando `pkg`:
-[source,bash]
+[source,shell]
....
# pkg search php
....
Uma lista vai ser disponibilizada incluindo as versões e partes adicionais que elas proverem. Os componentes são completamente modulares, significando que as partes especificas são habilitadas instalando o port apropriado. Para instalar o PHP na versão 7.4 para o Apache, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# pkg install mod_php74
....
@@ -1891,7 +1891,7 @@ Em adição, a opção `DirectoryIndex` no arquivo de configuração irá precis
Suporte para muitas partes do PHP podem ser instalado também usando o comando `pkg`. Por exemplo, para instalar suporte para o XML ou para SSL, instale os seguintes ports:
-[source,bash]
+[source,shell]
....
# pkg install php74-xml php74-openssl
....
@@ -1900,19 +1900,19 @@ Como antes, a configuração do Apache irá precisar ser recarregada para as mud
Para realizar uma reinicialização normal para recarregar a configuração, digite o seguinte comando:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
Uma vez que a instalação esteja completa, há dois métodos para obter o suporte para os modulos do PHP e a informação do ambiente dessa instalação. A primeira é instalar o binário completo do PHP e rodar o seguinte comando para obter a informação:
-[source,bash]
+[source,shell]
....
# pkg install php74
....
-[source,bash]
+[source,shell]
....
# php -i |less
....
@@ -1965,7 +1965,7 @@ Para habilitar HTTP2 para VirtualHosts individuais, adicione a mesma linha com a
Recarregue a configuração usando o comando `apachectl` reload e teste a configuração seguindo um dos métodos após visitar uma das paginas hosteadas:
-[source,bash]
+[source,shell]
....
# grep "HTTP/2.0" /var/log/httpd-access.log
....
@@ -2044,14 +2044,14 @@ ftpd_enable="YES"
Para iniciar o serviço agora:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
Teste a conexão com o servidor FTP digitando:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2138,7 +2138,7 @@ O Samba possui vários modelos de autenticação de backend diferentes. Os clien
As contas de usuário do FreeBSD devem ser mapeadas para o banco de dados `SambaSAMAccount` para que os clientes Windows(TM) acessem o compartilhamento. Mapear contas de usuários existentes do FreeBSD usando man:pdbedit[8]:
-[source,bash]
+[source,shell]
....
# pdbedit -a username
....
@@ -2156,7 +2156,7 @@ samba_server_enable="YES"
Para iniciar o Samba agora:
-[source,bash]
+[source,shell]
....
# service samba_server start
Performing sanity check on Samba configuration: OK
@@ -2173,7 +2173,7 @@ winbindd_enable="YES"
O Samba pode ser interrompido a qualquer momento digitando:
-[source,bash]
+[source,shell]
....
# service samba_server stop
....
@@ -2241,7 +2241,7 @@ A palavra-chave `leapfile` especifica o local de um arquivo que contém informa
Defina `ntpd_enable=YES` para iniciar o ntpd no momento do boot do sistema. Depois que o `ntpd_enable=YES` for adicionado ao [.filename]#/etc/rc.conf#, o ntpd poderá ser iniciado imediatamente sem reiniciar o sistema, digitando:
-[source,bash]
+[source,shell]
....
# service ntpd start
....
@@ -2364,14 +2364,14 @@ ctld_enable="YES"
Para iniciar o man:ctld[8] agora, execute este comando:
-[source,bash]
+[source,shell]
....
# service ctld start
....
Quando o daemon man:ctld[8] é iniciado, ele lê o arquivo [.filename]#/etc/ctl.conf#. Se este arquivo for editado depois que o daemon iniciar, use este comando para que as mudanças entrem em vigor imediatamente:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
@@ -2437,7 +2437,7 @@ iscsid_enable="YES"
Para iniciar man:iscsid[8] agora, execute este comando:
-[source,bash]
+[source,shell]
....
# service iscsid start
....
@@ -2448,7 +2448,7 @@ Conectar-se a um alvo pode ser feito com ou sem um arquivo [.filename]#/etc/iscs
Para conectar um inicializador a um único alvo, especifique o endereço IP do portal e o nome do alvo:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0
....
@@ -2463,7 +2463,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Connected: da0
Neste exemplo, a sessão iSCSI foi estabelecida com sucesso, com [.filename]#/dev/da0# representando o LUN anexado. Se o destino `iqn.2012-06.com.example:target0` exportar mais de um LUN, vários nós de dispositivos serão mostrados nessa seção da saída:
-[source,bash]
+[source,shell]
....
Connected: da0 da1 da2.
....
@@ -2502,7 +2502,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Authentication f
Para especificar um nome de usuário e uma senha de CHAP, use esta sintaxe:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret
....
@@ -2526,14 +2526,14 @@ O `t0` especifica um nickname para a seção do arquivo de configuração. Ele s
Para se conectar ao alvo definido, especifique o apelido:
-[source,bash]
+[source,shell]
....
# iscsictl -An t0
....
Como alternativa, para conectar-se a todos os alvos definidos no arquivo de configuração, use:
-[source,bash]
+[source,shell]
....
# iscsictl -Aa
....
diff --git a/documentation/content/pt-br/books/handbook/ports/_index.adoc b/documentation/content/pt-br/books/handbook/ports/_index.adoc
index 2e8ce6a3e7..03466133d6 100644
--- a/documentation/content/pt-br/books/handbook/ports/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/ports/_index.adoc
@@ -121,7 +121,7 @@ A lista de aplicativos disponíveis do FreeBSD está crescendo o tempo todo. Exi
* Se encontrar um aplicativo específico se tornar desafiador, tente pesquisar um site como http://www.sourceforge.net/[SourceForge.net] ou http://www.github.com/[GitHub.com] então volte no https://www.FreeBSD.org/ports/[site do FreeBSD] para ver se o aplicativo foi portado.
* Para pesquisar o repositório de pacotes binários por um aplicativo:
+
-[source,bash]
+[source,shell]
....
# pkg search subversion
git-subversion-1.9.2
@@ -139,7 +139,7 @@ subversion17-1.7.16_2
+
Os nomes dos pacotes incluem o número da versão e, no caso de ports baseados em python, o número da versão do pacote python sobre o qual o pacote foi compilado. Alguns ports também possuem várias versões disponíveis. No caso do Subversion, existem diferentes versões disponíveis, bem como diferentes opções de compilação. Neste caso, a versão estaticamente vinculada do Subversion. Ao indicar qual pacote instalar, é melhor especificar o aplicativo pela origem do port, que é o caminho na árvore de ports. Repita o `pkg search` com `-o` para listar a origem de cada pacote:
+
-[source,bash]
+[source,shell]
....
# pkg search -o subversion
devel/git-subversion
@@ -158,7 +158,7 @@ devel/subversion-static
Pesquisar por shell globs, expressões regulares, correspondência exata, por descrição ou qualquer outro campo no banco de dados do repositório também é suportado pelo `pkg search`. Depois de instalar o package:ports-mgmt/pkg[] ou o package:ports-mgmt/pkg-devel[], veja man:pkg-search[8] para maiores detalhes.
* Se a Coleção de Ports já estiver instalada, existem vários métodos para consultar a versão local da árvore de ports. Para descobrir em qual categoria um port está, digite `whereis__file__`, onde __file__ é o programa a ser instalado:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -166,7 +166,7 @@ lsof: /usr/ports/sysutils/lsof
+
Como alternativa, uma declaração man:echo[1] pode ser usada:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -175,7 +175,7 @@ Como alternativa, uma declaração man:echo[1] pode ser usada:
Observe que isso também retornará todos os arquivos correspondentes baixados no diretório [.filename]#/usr/ports/distfiles#.
* Outra maneira de encontrar software é usando o mecanismo de pesquisa integrado da Coleção de Ports. Para usar o recurso de pesquisa, cd para [.filename]#/usr/ports#, execute `make search name=program-name` onde _program-name_ é o nome do software. Por exemplo, para procurar por `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -198,7 +198,7 @@ A linha "Path:" indica onde encontrar o port.
+
Para receber menos informações, use o recurso `quicksearch`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -234,7 +234,7 @@ Nem todas as versões e arquiteturas do FreeBSD suportam este processo de bootst
Para inicializar o sistema, execute:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -243,7 +243,7 @@ Você deve ter uma conexão com a Internet para que o processo de inicializaçã
Caso contrário, para instalar o port, execute:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -252,7 +252,7 @@ Caso contrário, para instalar o port, execute:
Ao atualizar um sistema existente que usava originalmente as ferramentas pkg_* mais antigas, o banco de dados deve ser convertido para o novo formato, para que as novas ferramentas estejam cientes dos pacotes já instalados. Uma vez que o pkg tenha sido instalado, o banco de dados de pacotes deve ser convertido do formato tradicional para o novo formato, executando este comando:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -287,12 +287,12 @@ As informações de uso do pkg estão disponíveis na página de manual man:pkg[
Cada argumento do comando pkg é documentado em uma página de manual específica do comando. Para ler a página de manual do `pkg install`, por exemplo, execute um destes comandos:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -306,7 +306,7 @@ As branches `Quarterly`(trimestrais) provê aos usuários uma experiência mais
Para alternar de trimestral para latest execute os seguintes comandos:
-[source,bash]
+[source,shell]
....
# cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
....
@@ -328,7 +328,7 @@ FreeBSD: {
E finalmente rode este comando para atualizar do novo (ultimo) meta dado do repositório.
-[source,bash]
+[source,shell]
....
# pkg update -f
....
@@ -340,7 +340,7 @@ Informações sobre os pacotes instalados em um sistema podem ser visualizadas e
Por exemplo, para ver qual versão do pkg está instalada, execute:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.1.4_1
@@ -351,14 +351,14 @@ pkg-1.1.4_1
Para instalar um pacote binário, use o seguinte comando, em que _packagename_ é o nome do pacote a ser instalado:
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
Esse comando usa os dados do repositório para determinar qual versão do software instalar e se ele possui alguma dependência faltando. Por exemplo, para instalar o curl:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -385,7 +385,7 @@ Cleaning up cache files...Done
O novo pacote e quaisquer pacotes adicionais que foram instalados como dependências podem ser vistos na lista de pacotes instalados:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.15.1_1 The root certificate bundle from the Mozilla Project
@@ -395,7 +395,7 @@ pkg-1.1.4_6 New generation package manager
Pacotes que não são mais necessários podem ser removidos com `pkg delete`. Por exemplo:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -413,7 +413,7 @@ Proceed with deleting packages [y/N]: y
Os pacotes instalados podem ser atualizados para as versões mais recentes executando:
-[source,bash]
+[source,shell]
....
# pkg upgrade
....
@@ -425,7 +425,7 @@ Este comando irá comparar as versões instaladas com as disponíveis no catálo
Vulnerabilidades de software são regularmente descobertas em aplicativos de terceiros. Para resolver isso, o pkg inclui um mecanismo de auditoria integrado. Para determinar se há alguma vulnerabilidade conhecida para o software instalado no sistema, execute:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -435,7 +435,7 @@ Vulnerabilidades de software são regularmente descobertas em aplicativos de ter
Remover um pacote pode deixar dependências que não são mais necessárias. Pacotes desnecessários que foram instalados como dependências podem ser automaticamente detectados e removidos usando:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -449,7 +449,7 @@ Deinstalling ca_root_nss-3.15.1_1... done
Os pacotes instalados como dependências são chamados de pacotes _automáticos_. Pacotes não automáticos, ou seja, os pacotes que não foram instalados como uma dependência para outro pacote, podem ser listados usando:
-[source,bash]
+[source,shell]
....
# pkg prime-list
nginx
@@ -459,7 +459,7 @@ sudo
O `pkg prime-list` é um alias de comando declarado no [.filename]#/usr/local/etc/pkg.conf#. Existem muitos outros que podem ser usados para consultar o banco de dados de pacotes do sistema. Por exemplo, o comando `pkg prime-origins` pode ser usado para obter o diretório de origem dos ports da lista mencionada acima:
-[source,bash]
+[source,shell]
....
# pkg prime-origins
www/nginx
@@ -471,7 +471,7 @@ Esta lista pode ser usada para recompilar todos os pacotes instalados em um sist
Marcar um pacote instalado como automático pode ser feito usando:
-[source,bash]
+[source,shell]
....
# pkg set -A 1 devel/cmake
....
@@ -480,7 +480,7 @@ Uma vez que um pacote é um pacote orfão e está marcado como automático, ele
Marcar um pacote instalado como _não_ automático pode ser feito usando:
-[source,bash]
+[source,shell]
....
# pkg set -A 0 devel/cmake
....
@@ -498,7 +498,7 @@ Para desabilitar o script que faz o backup periódico do banco de dados de pacot
Para restaurar o conteúdo de um backup anterior do banco de dados de pacotes, execute o seguinte comando substituindo _/path/to/pkg.sql_ pelo local do backup:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkg.sql
....
@@ -510,7 +510,7 @@ Se estiver restaurando um backup feito pelo script periódico, ele deve ser desc
Para executar um backup manual do banco de dados pkg, execute o seguinte comando, substituindo _/path/to/pkg.sql_ por um nome de arquivo e local adequados:
-[source,bash]
+[source,shell]
....
# pkg backup -d /path/to/pkg.sql
....
@@ -520,14 +520,14 @@ Para executar um backup manual do banco de dados pkg, execute o seguinte comando
Por padrão, o pkg armazena pacotes binários em um diretório de cache definido por `PKG_CACHEDIR` no man:pkg.conf[5]. Somente cópias dos últimos pacotes instalados são mantidas. Versões mais antigas do pkg mantinham todos os pacotes anteriores. Para remover esses pacotes binários desatualizados, execute:
-[source,bash]
+[source,shell]
....
# pkg clean
....
O cache inteiro pode ser limpo executando:
-[source,bash]
+[source,shell]
....
# pkg clean -a
....
@@ -539,21 +539,21 @@ Os softwares dentro da Coleção de Ports do FreeBSD podem passar por grandes mu
Para alterar a origem do pacote para o exemplo acima, execute:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
Como outro exemplo, para atualizar package:lang/ruby18[] para package:lang/ruby19[], execute:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
Como um exemplo final, para alterar a origem das bibliotecas compartilhadas [.filename]#libglut# de package:graphics/libglut[] para package:graphics/freeglut[], execute:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -562,7 +562,7 @@ Como um exemplo final, para alterar a origem das bibliotecas compartilhadas [.fi
====
Ao alterar as origens do pacote, é importante reinstalar os pacotes que dependem do pacote com a origem modificada. Para forçar uma reinstalação dos pacotes dependentes, execute:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -592,21 +592,21 @@ O sistema base do FreeBSD inclui o Portsnap. Esta é uma ferramenta rápida e de
. Para baixar um snapshot compactado da coleção de ports em [.filename]#/var/db/portsnap#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Ao executar o Portsnap pela primeira vez, extraia o snapshot em [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. Após o primeiro uso do Portsnap ter sido concluído, como mostrado acima, o [.filename]#/usr/ports# pode ser atualizado conforme necessário executando:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -614,7 +614,7 @@ O sistema base do FreeBSD inclui o Portsnap. Esta é uma ferramenta rápida e de
+
Ao usar `fetch`, a operação `extract` ou `update` pode ser executada consecutivamente, da seguinte forma:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -629,7 +629,7 @@ Se for necessário mais controle sobre a árvore de ports ou se as mudanças loc
. O Subversion deve ser instalado antes de poder ser usado para fazer o check-out da árvore de ports. Se uma cópia da árvore de ports já estiver presente, instale o Subversion desta forma:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -637,35 +637,35 @@ Se for necessário mais controle sobre a árvore de ports ou se as mudanças loc
+
Se a árvore de ports não estiver disponível, ou o pkg estiver sendo usado para gerenciar pacotes, o Subversion poderá ser instalado como um pacote:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Check out a copy of the HEAD branch of the ports tree:
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
+
. Or, check out a copy of a quarterly branch:
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/branches/2020Q3 /usr/ports
....
+
. Conforme necessário, atualize o [.filename]#/usr/ports# após o check out inicial do Subversion:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
+
. As needed, switch [.filename]#/usr/ports# to a different quarterly branch:
+
-[source,bash]
+[source,shell]
....
# svn switch http://svn.freebsd.org/ports/branches/2020Q4/ /usr/ports
....
@@ -699,7 +699,7 @@ O uso da coleção de ports pressupõe uma conexão de Internet ativa. Também r
Para compilar e instalar o port, mude para o diretório do port a ser instalado e, em seguida, digite `make install` no prompt. Mensagens indicarão o progresso:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make install
@@ -741,7 +741,7 @@ Algumas shells mantêm um cache dos comandos que estão disponíveis nos diretó
Durante a instalação, é criado um subdiretório de trabalho que contém todos os arquivos temporários usados durante a compilação. A remoção desse diretório economiza espaço em disco e minimiza a possibilidade de problemas mais tarde ao atualizar para a versão mais recente do port:
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-88.d,8
@@ -771,7 +771,7 @@ Para usuários que não podem estar conectados à Internet o tempo todo, o `make
Em casos raros, como quando uma organização tem um repositório local de distfiles, a variável `MASTER_SITES` pode ser usada para substituir os locais de download especificados no [.filename]#Makefile#. Ao usar, especifique o local alternativo:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -780,21 +780,21 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
As variáveis `WRKDIRPREFIX` e `PREFIX` podem substituir os diretórios de trabalho e de destino padrão. Por exemplo:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
irá compilar o port em [.filename]#/usr/home/example/ports# e instalar tudo sob [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
irá compilar o port em [.filename]#/usr/ports# e instalá-lo em [.filename]#/usr/home/example/local#. E:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -810,7 +810,7 @@ Ports instalados podem ser desinstalados usando `pkg delete`. Exemplos para usar
Alternativamente, o `make deinstall` pode ser executado no diretório do port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make deinstall
@@ -833,14 +833,14 @@ Com o tempo, novas versões de software ficam disponíveis na coleção de ports
Para determinar se versões mais recentes dos ports instalados estão disponíveis, verifique se a versão mais recente da árvore de ports está instalada, usando o comando de atualização descrito em <<ports-using-portsnap-method,Método Portsnap>> ou <<ports-using-subversion-method,Método Subversion>>. No FreeBSD 10 e posterior, ou se o sistema foi convertido para pkg, o seguinte comando listará os ports instalados que estão desatualizadas:
-[source,bash]
+[source,shell]
....
# pkg version -l "<"
....
Para o FreeBSD 9._X_ e menor, o seguinte comando listará os ports instalados que estão desatualizados:
-[source,bash]
+[source,shell]
....
# pkg_version -l "<"
....
@@ -867,7 +867,7 @@ A escolha da melhor ferramenta para um determinado sistema depende do administra
O package:ports-mgmt/portmaster[] é um utilitário muito pequeno para atualizar os ports instalados. Ele é projetado para usar as ferramentas instaladas com o sistema base do FreeBSD sem depender de outros ports ou bancos de dados. Para instalar este utilitário como um port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -882,7 +882,7 @@ O Portmaster define quatro categorias de ports:
Para listar essas categorias e procurar atualizações:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -909,7 +909,7 @@ Para listar essas categorias e procurar atualizações:
Este comando é usado para atualizar todos os ports desatualizados:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -921,14 +921,14 @@ Por padrão, o Portmaster faz um backup do pacote antes de excluir o port existe
Se forem encontrados erros durante o processo de atualização, adicione `-f` para atualizar e recompilar todos os ports:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
O Portmaster também pode ser usado para instalar novos ports no sistema, atualizando todas as dependências antes de compilar e instalar o novo port. Para usar essa função, especifique o local do port na coleção de ports:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -940,7 +940,7 @@ Maiores informações sobre package:ports-mgmt/portmaster[] podem ser encontrada
O package:ports-mgmt/portupgrade[] é outro utilitário que pode ser usado para atualizar ports. Ele instala um conjunto de aplicativos que podem ser usados para gerenciar ports. No entanto, ele depende do Ruby. Para instalar o port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -950,21 +950,21 @@ Antes de executar uma atualização usando esse utilitário, é recomendável ve
Para atualizar todos os ports desatualizados instalados no sistema, use o `portupgrade -a`. Como alternativa, inclua `-i` para ser solicitado da confirmação de cada atualização individual:
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Para atualizar apenas um aplicativo especifico em vez de todos os ports disponíveis, use `portupgrade _pkgname_`. É muito importante incluir `-R` para primeiro atualizar todos os ports requeridos pelo aplicativo fornecido:
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Se `-P` estiver incluído, o Portupgrade procura pacotes disponíveis nos diretórios locais listados em `PKG_PATH`. Se nenhum estiver disponível localmente, ele buscará pacotes de um site remoto. Se os pacotes não puderem ser encontrados localmente ou buscados remotamente, o Portupgrade utilizará os ports. Para evitar completamente o uso do ports, especifique `-PP`. Este último conjunto de opções diz ao Portupgrade para cancelar se nenhum pacote estiver disponível:
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome3
....
@@ -978,28 +978,28 @@ Maiores informações sobre o package:ports-mgmt/portupgrade[] podem ser encontr
A utilização da coleção de ports irá ocupar espaço em disco ao longo do tempo. Depois de compilar e instalar um port, executar `make clean` dentro do diretório de um port limpará o diretório temporário de [.filename]#trabalho#. Se o Portmaster for usado para instalar um port, ele removerá automaticamente esse diretório, a menos que `-K` seja especificado. Se o Portupgrade estiver instalado, este comando removerá todos os diretórios de [.filename]#trabalho# encontrados na cópia local da coleção de ports:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
Além disso, arquivos de distribuição de código-fonte desatualizados se acumulam no [.filename]#/usr/ports/distfiles# ao longo do tempo. Para usar Portupgrade para excluir todos os distfiles que não são mais referenciados por nenhum port:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
O Portupgrade pode remover todos os distfiles não referenciados por qualquer port atualmente instalado no sistema:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
Se o Portmaster estiver instalado, use:
-[source,bash]
+[source,shell]
....
# portmaster --clean-distfiles
....
@@ -1024,7 +1024,7 @@ O número de núcleos do processador detectados é usado para definir quantas co
Após a configuração, inicialize o poudriere para que ele instale um jail com a árvore do FreeBSD requerida e uma árvore de ports. Especifique um nome para o jail usando `-j` e a versão do FreeBSD com `-v`. Em sistemas que executam o FreeBSD/amd64, a arquitetura pode ser definida com `-a` para `i386` ou `amd64`. O padrão é a arquitetura mostrada pelo `uname`.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11amd64 -v 11.4-RELEASE
[00:00:00] Creating 11amd64 fs at /poudriere/jails/11amd64... done
@@ -1072,7 +1072,7 @@ Scanning //usr/share/certs/trusted for certificates...
[00:04:07] Jail 11amd64 11.4-RELEASE-p1 amd64 is ready to be used
....
-[source,bash]
+[source,shell]
....
# poudriere ports -c -p local -m svn+https
[00:00:00] Creating local fs at /poudriere/ports/local... done
@@ -1095,14 +1095,14 @@ ports-mgmt/pkg
Opções e dependências para os ports especificados são configuradas:
-[source,bash]
+[source,shell]
....
# poudriere options -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
Finalmente, os pacotes são compilados e um repositório de pacotes é criado:
-[source,bash]
+[source,shell]
....
# poudriere bulk -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
....
diff --git a/documentation/content/pt-br/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/pt-br/books/handbook/ppp-and-slip/_index.adoc
index d2651942ac..9c08de8686 100644
--- a/documentation/content/pt-br/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/ppp-and-slip/_index.adoc
@@ -361,14 +361,14 @@ Uma alternativa é configurar um "dfilter" para bloquear o tráfego SMTP. Consul
Tudo o que resta é reiniciar a máquina. Após a reinicialização, digite:
-[source,bash]
+[source,shell]
....
# ppp
....
e, em seguida, o `dial provider` para iniciar a sessão PPP ou para configurar o `ppp` para estabelecer sessões automaticamente quando houver tráfego de saída e o [.filename]#start_if .tun0# não existir, digite:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -453,7 +453,7 @@ device uart
O dispositivo [.filename]#uart# já está incluído no kernel `GENERIC`, portanto, nenhuma etapa adicional é necessária neste caso. Basta verificar a saída do `dmesg` para o dispositivo do modem com:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -464,33 +464,33 @@ Isso deve exibir alguma saída pertinente sobre os dispositivos [.filename]#uart
Conectar-se à Internet controlando manualmente o `ppp` é rápido, fácil e uma ótima maneira de depurar uma conexão ou simplesmente obter informações sobre como o ISP trata as conexões `ppp` do cliente. Vamos iniciar o PPP na linha de comando. Note que em todos os nossos exemplos nós usaremos _example_ como o nome do host da máquina rodando o PPP. Para iniciar o `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
Este segundo comando define o dispositivo do modem como [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
Isso define a velocidade de conexão para 115.200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Isto diz ao `ppp` para configurar o resolver e adicionar as linhas do servidor de nomes ao [.filename]#/etc/resolv.conf#. Se o `ppp` não puder determinar o nome do host, ele poderá ser configurado manualmente mais tarde.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -503,7 +503,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -512,56 +512,56 @@ OK
Use o comando `at` para inicializar o modem, então use o comando `atdt` e o número o ISP para iniciar o processo de discagem.
-[source,bash]
+[source,shell]
....
CONNECT
....
Confirmação da conexão, se tivermos problemas de conexão, não relacionados ao hardware, aqui é onde tentaremos resolvê-los.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
Nesse prompt, responda com o nome de usuário fornecido pelo ISP.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
Nesse prompt, responda com a senha fornecida pelo ISP. Assim como ocorre ao se logar no FreeBSD, a senha não será exibida quando você a digitar.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Dependendo do ISP, este aviso pode não aparecer. Em caso afirmativo, ele está perguntando se deve usar um shell no provedor ou iniciar o `ppp`. Neste exemplo, o `ppp` foi selecionado para estabelecer uma conexão com a Internet.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Observe que neste exemplo o primeiro `p` foi capitalizado. Isso mostra que nós nos conectamos com sucesso ao ISP.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
Nós nos autenticamos com sucesso com nosso ISP e estamos aguardando que o endereço IP seja atribuído.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
Fizemos a negociação de um endereço IP e concluímos nossa conexão com êxito.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -580,14 +580,14 @@ O PPP pode não retornar ao modo de comando, que geralmente é um erro de negoci
Se um prompt de login nunca aparecer, a autenticação PAP ou CHAP provavelmente será necessária. Para usar PAP ou CHAP, adicione as seguintes opções ao PPP antes de entrar no modo terminal:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Onde _myusername_ deve ser substituído pelo nome de usuário que foi atribuído pelo ISP.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -637,7 +637,7 @@ name_of_service_provider:
Como `root`, execute:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -687,7 +687,7 @@ net.graph.nonstandard_pppoe=1
ou pode ser feito imediatamente com o comando:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -759,14 +759,14 @@ adsl:
É possível inicializar a conexão facilmente, emitindo o seguinte comando como `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Para ver o status da conexão:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -802,7 +802,7 @@ adsl:
Como a senha da conta é adicionada ao [.filename]#ppp.conf# em forma de texto simples, certifique-se de que ninguém possa ler o conteúdo deste arquivo:
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -812,7 +812,7 @@ Como a senha da conta é adicionada ao [.filename]#ppp.conf# em forma de texto s
Isso abrirá um túnel para uma sessão PPP para o roteador DSL. Os modems Ethernet DSL têm um endereço IP LAN pré-configurado para conexão. No caso do Alcatel SpeedTouch(TM) Home, este endereço é `10.0.0.138`. A documentação do roteador deve listar o endereço que o dispositivo usa. Para abrir o túnel e iniciar uma sessão PPP:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -825,7 +825,7 @@ Se um E comercial ("&") for adicionado ao final desse comando, o pptp retornará
Um dispositivo de túnel virtual [.filename]#tun# será criado para interação entre os processos do pptp e do ppp. Quando o prompt for retornado ou o processo do pptp confirmar uma conexão, examine o túnel:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
diff --git a/documentation/content/pt-br/books/handbook/preface/_index.adoc b/documentation/content/pt-br/books/handbook/preface/_index.adoc
index 756d305bf7..30cff90dc4 100644
--- a/documentation/content/pt-br/books/handbook/preface/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/preface/_index.adoc
@@ -223,21 +223,21 @@ Significaria que o usuário deve digitar as teclas kbd:[Ctrl] e kbd:[X] simultan
Exemplos começando com [.filename]#C:\># indicam um comando MS-DOS(TM). Salvo indicação em contrário, estes comandos podem ser executados a partir de uma janela de "Prompt de Comando" em um ambiente Microsoft(TM)Windows(TM).
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
Exemplos começando com `#` indicam um comando que deve ser executado como superusuário no FreeBSD. Você pode logar como `root` para digitar o comando, ou logar como sua conta normal e usar o comando man:su[1] para obter privilégios de superusuário.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Exemplos começando com `%` indicam um comando que deve ser chamado a partir de uma conta de usuário normal. Salvo indicação em contrário, a sintaxe C-shell é usada para definir variáveis de ambiente e outros comandos do shell.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/pt-br/books/handbook/printing/_index.adoc b/documentation/content/pt-br/books/handbook/printing/_index.adoc
index 4b1de03ae3..9fe885e1a7 100644
--- a/documentation/content/pt-br/books/handbook/printing/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/printing/_index.adoc
@@ -57,7 +57,7 @@ A impressão básica pode ser configurada rapidamente. A impressora deve ser cap
. Crie um diretório para armazenar arquivos enquanto eles estão sendo impressos:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -86,7 +86,7 @@ lpd_enable="YES"
+
Inicie o serviço:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -94,7 +94,7 @@ Starting lpd.
+
. Imprima um teste:
+
-[source,bash]
+[source,shell]
....
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
....
@@ -107,7 +107,7 @@ Se ambas as linhas não iniciarem na borda esquerda, mas em "degrau", consulte <
+
Arquivos de texto agora podem ser impressos com `lpr`. Dê o nome do arquivo na linha de comando ou canalize a saída diretamente no `lpr`.
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -222,14 +222,14 @@ Descrições de muitos PDLs podem ser encontradas em http://www.undocprint.org/f
Para impressão ocasional, os arquivos podem ser enviados diretamente para um dispositivo de impressora sem qualquer configuração. Por exemplo, um arquivo chamado [.filename]#exemplo.txt# pode ser enviado para uma impressora USB:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
A impressão direta para impressoras de rede depende das capacidades da impressora, mas a maioria aceita trabalhos de impressão na porta 9100, e o man:nc[1] pode ser usado com eles. Para imprimir o mesmo arquivo em uma impressora com o nome de host DNS de _netlaser_:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -246,7 +246,7 @@ O FreeBSD inclui um spooler chamado man:lpd[8]. Os trabalhos de impressão são
Um diretório para armazenar trabalhos de impressão é criado, a propriedade é definida e as permissões são definidas para impedir que outros usuários visualizem o conteúdo desses arquivos:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -279,7 +279,7 @@ lp:\ <.>
Depois de criar o [.filename]#/etc/printcap#, use man:chkprintcap[8] para testar se há erros:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -295,7 +295,7 @@ lpd_enable="YES"
Inicie o serviço:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -305,7 +305,7 @@ Inicie o serviço:
Os documentos são enviados para a impressora com o `lpr`. Um arquivo a ser impresso pode ser nomeado na linha de comando ou canalizado para o `lpr`. Esses dois comandos são equivalentes, enviando o conteúdo de [.filename]#doc.txt# para a impressora padrão:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -313,7 +313,7 @@ Os documentos são enviados para a impressora com o `lpr`. Um arquivo a ser impr
Impressoras podem ser selecionadas com `-P`. Para imprimir em uma impressora chamada _laser_:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -379,7 +379,7 @@ CR=$'\r'
Defina as permissões e torne-o executável:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -408,7 +408,7 @@ Crie o [.filename]#/usr/local/libexec/enscript# com este conteúdo:
Defina as permissões e torne-o executável:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -439,7 +439,7 @@ Crie o [.filename]#/usr/local/libexec/ps2pcl# com este conteúdo:
Defina as permissões e torne-o executável:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -455,7 +455,7 @@ Modifique o [.filename]#/etc/printcap# para usar este novo filtro de entrada:
Teste o filtro enviando um pequeno programa PostScript(TM) para ele:
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -491,7 +491,7 @@ esac
Defina as permissões e torne-o executável:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -551,7 +551,7 @@ O man:lpq[1] mostra o status das tarefas de impressão de um usuário. Trabalhos
Mostra os trabalhos pendentes do usuário atual em uma única impressora:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -560,7 +560,7 @@ Rank Owner Job Files Total Size
Mostra os trabalhos pendentes do usuário atual em todas as impressoras:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -579,7 +579,7 @@ O man:lprm[1] é usado para remover trabalhos de impressão. Usuários normais s
Remova todos os trabalhos pendentes de uma impressora:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -592,7 +592,7 @@ cfA004smithy dequeued
Remova um único trabalho de uma impressora. O man:lpq[1] é usado para encontrar o número do trabalho.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -609,7 +609,7 @@ O man:lpc[8] é usado para verificar e modificar o status da impressora. O `lpc`
Mostrar o status de todas as impressoras:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -626,7 +626,7 @@ laser:
Impedindo que uma impressora aceite novos trabalhos e fazendo com que ela comece a aceitar novos trabalhos novamente:
-[source,bash]
+[source,shell]
....
# lpc disable lp
lp:
@@ -638,7 +638,7 @@ lp:
Pare de imprimir, mas continue aceitando novos trabalhos. Em seguida, comece a imprimir novamente:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -651,7 +651,7 @@ lp:
Reinicie uma impressora após alguma condição de erro:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -662,7 +662,7 @@ lp:
Desative a fila de impressão e desative a impressão, com uma mensagem para explicar o problema aos usuários:
-[source,bash]
+[source,shell]
....
# lpc down lp Repair parts will arrive on Monday
lp:
@@ -672,7 +672,7 @@ lp:
Reative uma impressora que esteja inativa:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -699,14 +699,14 @@ lp|repairsprinter|salesprinter:\
Os aliases podem ser usados no lugar do nome da impressora. Por exemplo, os usuários do departamento de vendas imprimem em sua impressora com
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Usuários do departamento de Reparos podem imprimir na _sua_ impressora com
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....
diff --git a/documentation/content/pt-br/books/handbook/security/_index.adoc b/documentation/content/pt-br/books/handbook/security/_index.adoc
index 628fb89fc8..de9c73b3a8 100644
--- a/documentation/content/pt-br/books/handbook/security/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/security/_index.adoc
@@ -97,14 +97,14 @@ Ao garantir a segurança de um sistema, um bom ponto de partida é uma auditoria
Para negar acesso de login a contas, existem dois métodos. O primeiro é bloquear a conta. Este exemplo bloqueia a conta `toor`:
-[source,bash]
+[source,shell]
....
# pw lock toor
....
O segundo método é impedir o acesso ao login alterando o shell para [.filename]#/usr/sbin/nologin#. Apenas o superusuário pode alterar o shell para outros usuários:
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -120,7 +120,7 @@ O segundo e recomendado método para permitir o escalonamento de privilégios é
Após a instalação, use o `visudo` para editar o [.filename]#/usr/local/etc/sudoers#. Este exemplo cria um novo grupo `webadmin`, adiciona a conta `trhodes` a esse grupo e configura esse acesso de grupo para reiniciar o package:apache24[]:
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
# visudo
@@ -139,7 +139,7 @@ O Blowfish não faz parte do AES e não é considerado compatível com nenhum Fe
Para determinar qual algoritmo de hash é usado para criptografar a senha de um usuário, o superusuário pode visualizar o hash do usuário no banco de dados de senhas do FreeBSD. Cada hash começa com um símbolo que indica o tipo de mecanismo de hash usado para criptografar a senha. Se DES for usado, não haverá símbolo de início. Para MD5, o símbolo é `$`. Para SHA256 e SHA512, o símbolo é `$6$`. Para o Blowfish, o símbolo é `$2a$`. Neste exemplo, a senha para `dru` é criptografada usando o algoritmo SHA512 padrão quando o hash começa com `$6$`. Observe que o hash criptografado, não a senha em si, é armazenado no banco de dados de senhas:
-[source,bash]
+[source,shell]
....
# grep dru /etc/master.passwd
dru:$6$pzIjSvCAn.PBYQBA$PXpSeWPx3g5kscj3IMiM7tUEUSPmGexxta.8Lt9TGSi2lNQqYGKszsBPuGME0:1001:1001::0:0:dru:/usr/home/dru:/bin/csh
@@ -183,7 +183,7 @@ A configuração `similar` nega senhas semelhantes à senha anterior do usuário
Depois que este arquivo for salvo, um usuário que alterar sua senha verá uma mensagem semelhante a seguinte:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -214,7 +214,7 @@ Portanto, para definir uma expiração de 90 dias para esta classe de login, rem
Para definir a expiração em usuários individuais, passe uma data de expiração ou o número de dias para expirar e um nome de usuário para o comando `pw`:
-[source,bash]
+[source,shell]
....
# pw usermod -p 30-apr-2015 -n trhodes
....
@@ -230,7 +230,7 @@ Um rootkit faz uma coisa útil para administradores: uma vez detectado, é um si
Após a instalação deste pacote ou port, o sistema pode ser verificado usando o seguinte comando. Ele produzirá muitas informações e exigirá uma entrada manual da tecla kbd:[ENTER]:
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -248,7 +248,7 @@ O FreeBSD fornece suporte nativo para um sistema de IDS básico. Embora os email
O utilitário `mtree` embutido pode ser usado para gerar uma especificação do conteúdo de um diretório. Um seed, ou uma constante numérica, é usada para gerar a especificação e é necessária para verificar se a especificação não foi alterada. Isso possibilita determinar se um arquivo ou binário foi modificado. Como o valor inicial do seed é desconhecido por um invasor, disfarçar ou impossibilitar a verificação dos valores de checksum dos arquivos será difícil ou impossível. O exemplo a seguir gera um conjunto de hashes SHA256, um para cada sistema binário no diretório [.filename]#/bin# e salva esses valores em um arquivo oculto no diretório inicial do `root`, [.filename]#/root/.bin_chksum_mtree#:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
# mtree: /bin checksum: 3427012225
@@ -286,7 +286,7 @@ O nome do host da máquina, a data e a hora em que a especificação foi criada
Para verificar se as assinaturas binárias não foram alteradas, compare o conteúdo atual do diretório com a especificação gerada anteriormente e salve os resultados em um arquivo. Este comando requer o seed que foi usado para gerar a especificação original:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
# mtree: /bin checksum: 3427012225
@@ -294,7 +294,7 @@ Para verificar se as assinaturas binárias não foram alteradas, compare o conte
Isso deve produzir o mesmo checksum para [.filename]#/bin# que foi produzido quando a especificação foi criada. Se nenhuma alteração tiver ocorrido nos binários nesse diretório, o arquivo de saída [.filename]#/root/.bin_chksum_output# estará vazio. Para simular uma alteração, altere a data no arquivo [.filename]#/bin/cat# usando o `touch` e execute o comando de verificação novamente:
-[source,bash]
+[source,shell]
....
# touch /bin/cat
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
@@ -352,7 +352,7 @@ Esta seção descreve quatro tipos diferentes de operações. A primeira é como
Para inicializar o OPIE pela primeira vez, execute este comando a partir de um local seguro:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
Adding unfurl:
@@ -377,7 +377,7 @@ A linha `ID` lista o nome de login (`unfurl`), a contagem de iterações padrão
Para inicializar ou alterar a senha secreta em um sistema inseguro, é necessária uma conexão segura em algum lugar onde o `opiekey` possa ser executado. Isso pode ser um prompt de shell em uma máquina confiável. Uma contagem de iteração é necessária, em que 100 é provavelmente um bom valor, e o seed pode ser especificado ou a gerado aleatoriamente. Na conexão insegura, a máquina sendo inicializada, use man:opiepasswd[1]:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -396,7 +396,7 @@ LINE PAP MILK NELL BUOY TROY
Para aceitar o seed padrão, pressione kbd:[Return]. Antes de inserir uma senha de acesso, passe para a conexão segura e forneça os mesmos parâmetros:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -411,7 +411,7 @@ Volte para a conexão insegura e copie a senha única gerada para o programa rel
Depois de inicializar o OPIE e efetuar login, um prompt como este será exibido:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -431,7 +431,7 @@ Neste ponto, gere a senha de uso único para responder a este aviso de login. Is
No sistema confiável:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -446,7 +446,7 @@ Depois que a senha descartável for gerada, continue a logar.
Às vezes, não há acesso a uma máquina confiável ou conexão segura. Neste caso, é possível usar o man:opiekey[1] para gerar algumas de senhas de uso único antecipadamente. Por exemplo:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -514,7 +514,7 @@ qpopper : ALL : allow
Sempre que este arquivo for editado, reinicie o inetd:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -606,14 +606,14 @@ Embora a execução de um KDC exija poucos recursos de computação, uma máquin
Para começar, instale o pacote package:security/heimdal[] assim:
-[source,bash]
+[source,shell]
....
# pkg install heimdal
....
Em seguida, edite o [.filename]#/etc/rc.conf# como a seguir:
-[source,bash]
+[source,shell]
....
# sysrc kdc_enable=yes
# sysrc kadmind_enable=yes
@@ -664,7 +664,7 @@ Para que os clientes possam encontrar os serviços Kerberos, eles _devem_ ter um
Em seguida, crie o banco de dados do Kerberos que contém as chaves de todos os principals (usuários e hosts) criptografados com uma senha master. Não é necessário lembrar essa senha, pois ela será armazenada no arquivo [.filename]#/var/heimdal/m-key#; Seria razoável usar uma senha aleatória de 45 caracteres para essa finalidade. Para criar a chave master, execute `kstash` e digite uma senha:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxxxxxxxxxxxxxxxxx
@@ -673,7 +673,7 @@ Verifying password - Master key: xxxxxxxxxxxxxxxxxxxxxxx
Depois que a chave master é criada, o banco de dados deve ser inicializado. A ferramenta administrativa do Kerberosman:kadmin[8] pode ser usada no KDC em um modo que opera diretamente no banco de dados, sem usar o serviço de rede man:kadmind[8], como `kadmin -l`. Isso resolve o problema do ovo e da galinha de tentar se conectar ao banco de dados antes de criá-lo. No prompt do `kadmin`, use o `init` para criar o banco de dados inicial do realm:
-[source,bash]
+[source,shell]
....
# kadmin -l
kadmin> init EXAMPLE.ORG
@@ -682,7 +682,7 @@ Realm max ticket life [unlimited]:
Por fim, enquanto ainda estiver no `kadmin`, crie o primeiro principal usando `add`. Atenha-se às opções padrão para o principal por enquanto, pois elas podem ser alteradas posteriormente com `modify`. Digite `?` no prompt para ver as opções disponíveis.
-[source,bash]
+[source,shell]
....
kadmin> add tillman
Max ticket life [unlimited]:
@@ -696,7 +696,7 @@ Verifying password - Password: xxxxxxxx
Em seguida, inicie o serviço KDC executando:
-[source,bash]
+[source,shell]
....
# service kdc start
# service kadmind start
@@ -704,7 +704,7 @@ Em seguida, inicie o serviço KDC executando:
Embora não tenha nenhum daemon do kerberos em execução neste ponto, é possível confirmar que o KDC está funcionando obtendo um ticket para o principal que acabou de ser criado:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -712,7 +712,7 @@ tillman@EXAMPLE.ORG's Password:
Confirme se um ticket foi obtido com sucesso usando `klist`:
-[source,bash]
+[source,shell]
....
% klist
Credentials cache: FILE:/tmp/krb5cc_1001
@@ -724,7 +724,7 @@ Aug 27 15:37:58 2013 Aug 28 01:37:58 2013 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
O ticket temporário pode ser destruído quando o teste terminar:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -739,7 +739,7 @@ Naturalmente, o `kadmin` é um serviço kerberizado; um tíquete Kerberos é nec
Depois de instalar o arquivo [.filename]#/etc/krb5.conf#, use o `add --random-key` no `kadmin`. Isso adiciona o principal do host do servidor ao banco de dados, mas não extrai uma cópia da chave principal do host para um keytab. Para gerar o keytab, use `ext` para extrair a chave principal do host do servidor para seu próprio keytab:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -754,7 +754,7 @@ kadmin> exit
Note que o `ext_keytab` por padrão armazena a chave extraída no arquivo [.filename]#/etc/krb5.keytab#. Isso é bom quando executado no servidor que está sendo kerberizado, mas o argumento `--keytab _path/to/file_` deve ser usado quando o keytab estiver sendo extraído em outro lugar:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext_keytab --keytab=/tmp/example.keytab host/myserver.example.org
@@ -869,7 +869,7 @@ Para obter maiores informações sobre o SSL, leia o https://www.feistyduck.com/
Para gerar um certificado que será assinado por uma CA externa, emita o seguinte comando e insira as informações solicitadas nos prompts. Esta informação de entrada será gravada no certificado. No prompt `Common Name`, insira o nome completo para o sistema que usará o certificado. Se esse nome não corresponder ao servidor, a aplicação que estiver verificando o certificado emitirá um aviso para o usuário, tornando a verificação provida pelo certificado inútil.
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.key -sha256 -newkey rsa:2048
Generating a 2048 bit RSA private key
@@ -904,7 +904,7 @@ Este comando irá criar dois arquivos no diretório atual. A solicitação de ce
Como alternativa, se uma assinatura de uma CA não for necessária, um certificado auto-assinado poderá ser criado. Primeiro, gere a chave RSA:
-[source,bash]
+[source,shell]
....
# openssl genrsa -rand -genkey -out cert.key 2048
0 semi-random bytes loaded
@@ -916,7 +916,7 @@ e is 65537 (0x10001)
Use essa chave para criar um certificado auto-assinado. Siga os prompts usuais para criar um certificado:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key cert.key -out cert.crt -sha256
You are about to be asked to enter information that will be incorporated
@@ -957,7 +957,7 @@ sendmail_cert_cn="localhost.example.org"
Isso criará automaticamente um certificado auto-assinado, [.filename]#/etc/mail/certs/host.cert#, uma chave de assinatura, [.filename]#/etc/mail/certs/host.key#, e um certificado CA, [.filename]#/etc/mail/certs/cacert.pem#. O certificado usará o `Common Name` especificado em `sendmail_cert_cn`. Depois de salvar as edições, reinicie o Sendmail:
-[source,bash]
+[source,shell]
....
# service sendmail restart
@@ -965,7 +965,7 @@ Isso criará automaticamente um certificado auto-assinado, [.filename]#/etc/mail
Se tudo correr bem, não haverá mensagens de erro no arquivo [.filename]#/var/log/maillog#. Para um teste simples, conecte-se à porta de escuta do servidor de correio usando o `telnet`:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1008,7 +1008,7 @@ O IPsec suporta dois modos de operação. O primeiro modo, _Modo de Transporte_,
O suporte a IPsec é ativado por padrão no FreeBSD 11 e posteriores. Para versões anteriores do FreeBSD, adicione estas opções a um arquivo de configuração de kernel personalizado e recompile o kernel usando as instruções em crossref:kernelconfig[kernelconfig, Configurando o kernel do FreeBSD]:
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -1016,7 +1016,7 @@ device crypto
Se o suporte a depuração do IPsec for desejado, a seguinte opção de kernel também deve ser adicionada:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1033,7 +1033,7 @@ Para começar, o package:security/ipsec-tools[] deve ser instalado a partir da C
O próximo requisito é criar dois pseudo-dispositivos man:gif[4] que serão usados para encapsular pacotes e permitir que ambas as redes se comuniquem adequadamente. Como `root`, execute os seguintes comandos, substituindo _internal_ e _external_ pelos endereços IP reais das interfaces internas e externas dos dois gateways:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 internal1 internal2
@@ -1062,7 +1062,7 @@ inet6 fe80::250:bfff:fe3a:c1f%gif0 prefixlen 64 scopeid 0x4
Depois de concluídos, os dois endereços de IP internos devem ser acessados usando man:ping[8]:
-[source,bash]
+[source,shell]
....
priv-net# ping 10.0.0.5
PING 10.0.0.5 (10.0.0.5): 56 data bytes
@@ -1075,7 +1075,7 @@ PING 10.0.0.5 (10.0.0.5): 56 data bytes
round-trip min/avg/max/stddev = 19.255/25.879/42.786/9.782 ms
....
-[source,bash]
+[source,shell]
....
corp-net# ping 10.246.38.1
PING 10.246.38.1 (10.246.38.1): 56 data bytes
@@ -1091,7 +1091,7 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
Como esperado, ambos os lados têm a capacidade de enviar e receber pacotes ICMP dos endereços configurados de forma privada. Em seguida, os dois gateways devem ser informados sobre como rotear pacotes para enviar corretamente o tráfego de qualquer rede. Os seguintes comandos atingirão esse objetivo:
-[source,bash]
+[source,shell]
....
corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
corp-net# route add net 10.0.0.0: gateway 10.0.0.5
@@ -1206,14 +1206,14 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Uma vez que o arquivo estiver no seu lugar, o racoon pode ser iniciado em ambos os gateways usando o seguinte comando:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
A saída deve ser semelhante à seguinte:
-[source,bash]
+[source,shell]
....
corp-net# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf
Foreground mode.
@@ -1231,7 +1231,7 @@ Foreground mode.
Para garantir que o túnel esteja funcionando corretamente, mude para outro console e use o man:tcpdump[1] para exibir o tráfego de rede usando o comando a seguir. Substitua `em0` pela placa de interface de rede conforme necessário:
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1301,7 +1301,7 @@ Esta seção fornece uma visão geral dos utilitários embutidos de cliente para
Para logar em um servidor SSH, use `ssh` e especifique um nome de usuário que exista naquele servidor e o endereço IP ou nome de host do servidor. Se esta for a primeira vez que uma conexão foi feita ao servidor especificado, o usuário será solicitado a primeiro verificar a impressão digital do servidor:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
The authenticity of host 'example.com (10.0.0.1)' can't be established.
@@ -1317,7 +1317,7 @@ Por padrão, versões recentes do OpenSSH aceitam apenas conexões SSH v2. Por p
Use o man:scp[1] para copiar com segurança um arquivo para ou de uma máquina remota. Este exemplo copia o arquivo [.filename]#COPYRIGHT# do sistema remoto para um arquivo com o mesmo nome no diretório atual do sistema local:
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
Password for user@example.com: *******
@@ -1337,7 +1337,7 @@ Para abrir uma sessão interativa para copiar arquivos, use o `sftp`. Consulte m
Em vez de usar senhas, um cliente pode ser configurado para se conectar à máquina remota usando chaves. Para gerar chaves de autenticação RSA, use o `ssh-keygen`. Para gerar um par de chaves pública e privada, especifique o tipo de chave e siga os prompts. Recomenda-se proteger as chaves com uma senha memorável, mas difícil de se adivinhar.
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa
Generating public/private rsa key pair.
@@ -1381,7 +1381,7 @@ A autenticação é feita pelo `ssh-agent`, usando as chaves privadas que estão
Para usar o `ssh-agent` em um shell, inicie-o com um shell como um argumento. Adicione a identidade executando `ssh-add` e inserindo a senha para a chave privada. O usuário então poderá executar o `ssh` para se conectar em qualquer host que tenha a chave pública correspondente instalada. Por exemplo:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1408,7 +1408,7 @@ O OpenSSH tem a capacidade de criar um tunel para encapsular outro protocolo em
O comando a seguir informa ao `ssh` para criar um túnel para o telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1439,7 +1439,7 @@ Esse método pode ser usado para agrupar qualquer número de protocolos TCP inse
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1457,7 +1457,7 @@ Isso pode ser usado em conjunto com `ssh-keygen` e contas de usuário adicionais
====
Neste exemplo, há um servidor SSH que aceita conexões de fora. Na mesma rede, existe um servidor de email que executa um servidor POP3. Para verificar o e-mail de maneira segura, crie uma conexão SSH com o servidor SSH e encaminhe para o servidor de e-mail:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1473,7 +1473,7 @@ Alguns firewalls filtram as conexões de entrada e saída. Por exemplo, um firew
A solução é criar uma conexão SSH com uma máquina fora do firewall da rede e usá-la para encapsular o serviço desejado:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1488,7 +1488,7 @@ Além de fornecer utilitários de cliente SSH embutidos, um sistema FreeBSD pode
Para ver se o sshd está operando, use o comando man:service[8]:
-[source,bash]
+[source,shell]
....
# service sshd status
....
@@ -1502,7 +1502,7 @@ sshd_enable="YES"
Isso iniciará o sshd, o programa daemon para o OpenSSH, na próxima vez que o sistema for inicializado. Para iniciá-lo agora:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1540,7 +1540,7 @@ AllowUsers root@192.168.1.32 admin
Depois de fazer alterações no arquivo [.filename]#/etc/ssh/sshd_config#, informe o sshd para recarregar seu arquivo de configuração executando:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1608,7 +1608,7 @@ Neste exemplo, o [.filename]#directory1#, [.filename]#directory2# e [.filename]#
As ACLs de um sistema de arquivos podem ser visualizadas usando `getfacl`. Por exemplo, para visualizar as configurações de ACL no arquivo [.filename]#test#:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1621,14 +1621,14 @@ As ACLs de um sistema de arquivos podem ser visualizadas usando `getfacl`. Por e
Para alterar as configurações de ACL neste arquivo, use `setfacl`. Para remover todos os ACLs atualmente definidos de um arquivo ou sistema de arquivos, inclua `-k`. No entanto, o método preferido é usar `-b`, pois ela deixa os campos básicos necessários para que as ACLs funcionem.
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
Para modificar as entradas padrões das ACLs, use `-m`:
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1652,7 +1652,7 @@ A instalação fornece arquivos de configuração do man:periodic[8] para manter
Após a instalação e para auditar utilitários de terceiros como parte da Coleção de Ports a qualquer momento, um administrador pode optar por atualizar o banco de dados e visualizar as vulnerabilidades conhecidas dos pacotes instalados, invocando:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -1868,7 +1868,7 @@ Se uma auditoria mais detalhada for necessária, consulte crossref:audit[audit,
Antes de usar a auditoria de processos, ela deve ser ativada usando os seguintes comandos:
-[source,bash]
+[source,shell]
....
# sysrc accounting_enable=yes
# service accounting start
@@ -1880,7 +1880,7 @@ Uma vez ativada, a auditoria começará a rastrear informações, como estatíst
Para exibir os comandos emitidos pelos usuários, use o `lastcomm`. Por exemplo, este comando imprime todo o uso do comando `ls` pelo usuário `trhodes` no terminal `ttyp1`:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1907,7 +1907,7 @@ No método tradicional, as classes de login e os limites de recursos a serem apl
====
Sempre que o arquivo [.filename]#/etc/login.conf# for editado, o [.filename]#/etc/login.conf.db# deve ser atualizado executando o seguinte comando:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1984,7 +1984,7 @@ Nesta regra, o subject é `user`, o subject-id é `trhodes`, o resource, `maxpro
Algum cuidado deve ser tomado ao adicionar regras. Como esse usuário está restrito a `10` processos, este exemplo impedirá que o usuário execute outras tarefas depois de efetuar login e executar uma sessão `screen`. Quando um limite de recurso for atingido, um erro será impresso, como neste exemplo:
-[source,bash]
+[source,shell]
....
% man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1993,7 +1993,7 @@ eval: Cannot fork: Resource temporarily unavailable
Como outro exemplo, uma jail pode ser impedida de exceder um limite de memória. Esta regra pode ser escrita como:
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -2008,14 +2008,14 @@ jail:httpd:memoryuse:deny=2G/jail
Para remover uma regra, use o `rctl` para removê-la da lista:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
Um método para remover todas as regras é documentado em man:rctl[8]. No entanto, se for necessário remover todas as regras para um único usuário, esse comando poderá ser emitido:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
@@ -2031,7 +2031,7 @@ Até este ponto, o capítulo de segurança cobriu o acesso a usuários autorizad
O Sudo permite que os administradores configurem um acesso mais rígido aos comandos do sistema e forneçam alguns recursos avançados de log. Como uma ferramenta, ele está disponível na coleção de ports como package:security/sudo[] ou usando o utilitário man:pkg[8]. Para usar a ferramenta man:pkg[8]:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -2047,21 +2047,21 @@ user1 ALL=(ALL) /usr/sbin/service webservice *
O usuário pode agora iniciar o _webservice_ usando este comando:
-[source,bash]
+[source,shell]
....
% sudo /usr/sbin/service webservice start
....
Embora essa configuração permita que um único usuário acesse o serviço webservice; No entanto, na maioria das organizações, existe uma equipe inteira da Web encarregada de gerenciar o serviço. Uma única linha também pode dar acesso a um grupo inteiro. Essas etapas criarão um grupo da Web, adicionarão um usuário a esse grupo e permitirão que todos os membros do grupo gerenciem o serviço:
-[source,bash]
+[source,shell]
....
# pw groupadd -g 6001 -n webteam
....
Usando o mesmo comando man:pw[8], o usuário é adicionado ao grupo webteam:
-[source,bash]
+[source,shell]
....
# pw groupmod -m user1 -n webteam
....
@@ -2114,14 +2114,14 @@ Uma vez que esta diretiva tenha sido adicionada ao arquivo [.filename]#sudoers#,
Deste ponto em diante, todos os membros do grupo _webteam_ que alteram o status do aplicativo _webservice_ serão registrados. A lista de sessões anteriores e atuais pode ser exibida com:
-[source,bash]
+[source,shell]
....
# sudoreplay -l
....
Na saída, para reproduzir uma sessão específica, procure a entrada `TSID=` e passe-a para o sudoreplay sem outras opções para reproduzir a sessão na velocidade normal. Por exemplo:
-[source,bash]
+[source,shell]
....
# sudoreplay user1/00/00/02
....
diff --git a/documentation/content/pt-br/books/handbook/serialcomms/_index.adoc b/documentation/content/pt-br/books/handbook/serialcomms/_index.adoc
index fefe43a4a5..e0819d0bb0 100644
--- a/documentation/content/pt-br/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/serialcomms/_index.adoc
@@ -345,7 +345,7 @@ Por padrão, o FreeBSD suporta quatro portas seriais que são comumente conhecid
Para ver se o sistema reconhece as portas seriais, procure por mensagens de inicialização do sistema que começam com `uart`:
-[source,bash]
+[source,shell]
....
# grep uart /var/run/dmesg.boot
....
@@ -354,21 +354,21 @@ Se o sistema não reconhecer todas as portas seriais necessárias, entradas adic
Para determinar o conjunto padrão de configurações de terminal E/S usadas pela porta, especifique o nome do dispositivo. Este exemplo determina as configurações para a porta de chamada em [.filename]#COM2#:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
A inicialização de dispositivos seriais em todo o sistema é controlada por [.filename]#/etc/rc.d/serial#. Este arquivo afeta as configurações padrão dos dispositivos seriais. Para alterar as configurações de um dispositivo, use `stty`. Por padrão, as configurações alteradas estão em vigor até que o dispositivo seja fechado e, quando o dispositivo for reaberto, volte para o conjunto padrão. Para alterar permanentemente o conjunto padrão, abra e ajuste as configurações do dispositivo de inicialização. Por exemplo, para ativar o modo `CLOCAL`, comunicação de 8 bits e controle de fluxo `XON/XOFF` para [.filename]#ttyu5#, digite:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
Para impedir que determinadas configurações sejam alteradas por um aplicativo, faça ajustes no dispositivo de bloqueio. Por exemplo, para bloquear a velocidade de [.filename]#ttyu5# para 57600 bps, digite:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -404,7 +404,7 @@ Existem pelo menos dois utilitários no sistema base do FreeBSD que podem ser us
+
Por exemplo, para conectar-se de um sistema cliente que executa o FreeBSD para a conexão serial de outro sistema:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuauN
....
@@ -458,7 +458,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
Depois de fazer qualquer alteração em [.filename]#/etc/ttys#, envie um sinal SIGHUP (hangup) para o processo `init` para forçá-lo a reler seu arquivo de configuração:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -480,7 +480,7 @@ Certifique-se de que o terminal e o FreeBSD concordem com as configurações de
Use `ps` para certificar-se de que um processo `getty` esteja em execução e atendendo ao terminal. Por exemplo, a listagem a seguir mostra que um `getty` está sendo executado na segunda porta serial, [.filename]#ttyu1#, e está usando a entrada `std.38400` em [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
# ps -axww|grep ttyu
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
@@ -588,14 +588,14 @@ ttyu0 "/usr/libexec/getty V19200" dialup on
Depois de editar o [.filename]#/etc/ttys#, espere até que o modem esteja devidamente configurado e conectado antes de sinalizar o `init`:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
Modems de alta velocidade, como os modems V.32, V.32bis e V.34, usam hardware (`RTS/CTS`) para controle de fluxo. Use o `stty` para definir a flag de controle de fluxo de hardware para a porta do modem. Este exemplo define a flag `crtscts` na inicialização dos dispositivos [.filename]#COM2# de dial-in e de dial-out:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu1.init crtscts
# stty -f /dev/cuau1.init crtscts
@@ -609,7 +609,7 @@ Conecte o modem ao sistema FreeBSD e inicialize o sistema. Se o modem tiver luze
Se o indicador DTR não acender, faça o login no sistema FreeBSD através do console e digite `ps ax` para ver se o FreeBSD está executando um processo `getty` na porta correta:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200`ttyu0`
....
@@ -660,7 +660,7 @@ Use a taxa mais alta de bps que o modem suporta no recurso `br`. Em seguida, dig
Ou use `cu` como `root` com o seguinte comando:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -692,7 +692,7 @@ tip57600|Dial any phone number at 57600 bps:\
Isto deve funcionar agora:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -707,7 +707,7 @@ cu115200|Use cu to dial any number at 115200bps:\
e digite:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -827,7 +827,7 @@ Esta seção fornece uma visão geral rápida da configuração do console seria
. Conecte o cabo serial ao [.filename]#COM1# e ao terminal de controle.
. Para configurar mensagens de inicialização para exibição no console serial, emita o seguinte comando como o superusuário:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -898,7 +898,7 @@ As opções, exceto para `-P`, são passadas para o carregador de boot. O gerenc
+
Quando o FreeBSD inicia, os blocos de inicialização mostram o conteúdo do [.filename]#/boot.config# para o console. Por exemplo:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -935,7 +935,7 @@ Após a mensagem, haverá uma pequena pausa antes que os blocos de inicializaç
+
Pressione qualquer tecla, exceto kbd:[Enter], no console para interromper o processo de inicialização. Os blocos de inicialização então solicitarão mais ações:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -977,7 +977,7 @@ Por padrão, as configurações da porta serial são 9600 baud, 8 bits, sem pari
* Edite o [.filename]#/etc/make.conf# e configure o `BOOT_COMCONSOLE_SPEED` para a nova velocidade do console. Em seguida, recompile e instale os blocos de inicialização e o carregador de boot:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/pt-br/books/handbook/usb-device-mode/_index.adoc b/documentation/content/pt-br/books/handbook/usb-device-mode/_index.adoc
index 2e679aee2f..8120c760ca 100644
--- a/documentation/content/pt-br/books/handbook/usb-device-mode/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/usb-device-mode/_index.adoc
@@ -96,14 +96,14 @@ notify 100 {
Recarregue a configuração se o man:devd[8] já estiver em execução:
-[source,bash]
+[source,shell]
....
# service devd restart
....
Certifique-se de que os módulos necessários estejam carregados e que o template correto esteja configurado na inicialização, adicionando estas linhas ao [.filename]#/boot/loader.conf#, criando-o se ele ainda não existir:
-[source,bash]
+[source,shell]
....
umodem_load="YES"
hw.usb.template=3
@@ -111,7 +111,7 @@ hw.usb.template=3
Para carregar o módulo e definir o modelo sem reiniciar, use:
-[source,bash]
+[source,shell]
....
# kldload umodem
# sysctl hw.usb.template=3
@@ -121,7 +121,7 @@ Para carregar o módulo e definir o modelo sem reiniciar, use:
Para conectar-se a uma placa configurada para fornecer portas seriais de um dispositivo USB, conecte o host USB, como um laptop, às placas USB OTG ou porta de cliente USB. Use `pstat -t` no host para listar as linhas de terminal. Perto do final da lista, você deve ver uma porta serial USB, por exemplo, "ttyU0". Para abrir a conexão, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/ttyU0
....
@@ -132,7 +132,7 @@ Depois de pressionar a tecla kbd:[Enter] algumas vezes, você verá um prompt de
Para conectar-se a uma placa configurada para fornecer portas seriais de modo de dispositivo USB, conecte o host USB, como um laptop, às placas USB OTG ou porta de cliente USB. Para abrir a conexão, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/cu.usbmodemFreeBSD1
....
@@ -141,7 +141,7 @@ Para conectar-se a uma placa configurada para fornecer portas seriais de modo de
Para conectar-se a uma placa configurada para fornecer portas seriais de modo de dispositivo USB, conecte o host USB, como um laptop, às placas USB OTG ou porta de cliente USB. Para abrir a conexão, use:
-[source,bash]
+[source,shell]
....
# minicom -D /dev/ttyACM0
....
@@ -165,7 +165,7 @@ hw.usb.template=1
Para carregar o módulo e definir o modelo sem reiniciar, use:
-[source,bash]
+[source,shell]
....
# kldload if_cdce
# sysctl hw.usb.template=1
@@ -192,7 +192,7 @@ cfumass_enable="YES"
Para fazer valer a configuração sem reiniciar, execute este comando:
-[source,bash]
+[source,shell]
....
# service cfumass start
....
@@ -205,7 +205,7 @@ O restante deste capítulo fornece uma descrição detalhada da configuração d
O armazenamento em massaUSB não exige que o daemon man:ctld[8] esteja em execução, embora ele possa ser usado se desejado. Isso é diferente do iSCSI. Portanto, existem duas maneiras de configurar o target: o man:ctladm[8] ou o man:ctld[8]. Ambos exigem que o módulo do kernel [.filename]#cfumass.ko# seja carregado. O módulo pode ser carregado manualmente:
-[source,bash]
+[source,shell]
....
# kldload cfumass
....
@@ -219,7 +219,7 @@ cfumass_load="YES"
Um LUN pode ser criado sem o daemon man:ctld[8]:
-[source,bash]
+[source,shell]
....
# ctladm create -b block -o file=/data/target0
....
@@ -251,14 +251,14 @@ ctld_enable="YES"
Para iniciar o man:ctld[8] agora, execute este comando:
-[source,bash]
+[source,shell]
....
# service ctld start
....
Quando o daemon man:ctld[8] é iniciado, ele lê o [.filename]#/etc/ctl.conf#. Se esse arquivo for editado depois que o daemon iniciar, recarregue as alterações para que elas entrem em vigor imediatamente:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
diff --git a/documentation/content/pt-br/books/handbook/virtualization/_index.adoc b/documentation/content/pt-br/books/handbook/virtualization/_index.adoc
index b2b904fb54..9226b1f85b 100644
--- a/documentation/content/pt-br/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/virtualization/_index.adoc
@@ -328,7 +328,7 @@ Estes comandos são executados na instancia virtualizada do FreeBSD.
Primeiro, instale o pacote ou o port package:emulators/virtualbox-ose-additions[] na instancia virtualizada do FreeBSD. Isso irá instalar o port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -410,14 +410,14 @@ Usuários do HAL devem criar o arquivo [.filename]#/usr/local/etc/hal/fdi/policy
Pastas compartilhadas para transferências de arquivos entre o host e a VM são acessíveis montando-as usando `mount_vboxvfs`. Uma pasta compartilhada pode ser criada no host usando a GUI do VirtualBox ou via `vboxmanage`. Por exemplo, para criar uma pasta compartilhada chamada _myshare_ em [.filename]#/mnt/bsdboxshare# para a VM denominada _BSDBox_, execute :
-[source,bash]
+[source,shell]
....
# vboxmanage sharedfolder add 'BSDBox' --name myshare --hostpath /mnt/bsdboxshare
....
Observe que o nome da pasta compartilhada não deve conter espaços. Monte a pasta compartilhada de dentro do sistema convidado desta forma:
-[source,bash]
+[source,shell]
....
# mount_vboxvfs -w myshare /mnt
....
@@ -432,7 +432,7 @@ O VirtualBox(TM) é um pacote de virtualização completo e ativamente desenvolv
O VirtualBox(TM) está disponível como um pacote ou port do FreeBSD em package:emulators/virtualbox-ose[]. O port pode ser instalado usando estes comandos:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -442,7 +442,7 @@ Uma opção útil no menu de configuração do port é o conjunto de programas `
Algumas alterações de configuração são necessárias antes do VirtualBox(TM) ser iniciado pela primeira vez. O port instala um módulo de kernel em [.filename]#/boot/modules# o qual deve ser carregado no kernel em execução:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -463,14 +463,14 @@ vboxnet_enable="YES"
O grupo `vboxusers` é criado durante a instalação do VirtualBox(TM). Todos os usuários que precisam acessar o VirtualBox(TM) deverão ser adicionados como membros desse grupo. O comando `pw` pode ser usado para adicionar novos membros:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
As permissões padrão para o [.filename]#/dev/vboxnetctl# são restritivas e precisam ser alteradas para redes em modo Bridged:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -486,7 +486,7 @@ perm vboxnetctl 0660
Para iniciar o VirtualBox(TM), digite a partir de uma sessão Xorg:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -500,7 +500,7 @@ O VirtualBox(TM) pode ser configurado para passar dispositivos USB para o sistem
Para que o VirtualBox(TM) esteja ciente dos dispositivos USB conectados à máquina, o usuário precisa ser um membro do grupo `operator`.
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m yourusername
....
@@ -522,7 +522,7 @@ devfs_system_ruleset="system"
Então reinicie o devfs:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -541,7 +541,7 @@ O HAL precisa ser executado para que as funções de DVD/CD do VirtualBox(TM) fu
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -555,7 +555,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -572,14 +572,14 @@ O design do bhyve requer um processador que suporte tabelas de páginas estendid
O primeiro passo para criar uma máquina virtual no bhyve é configurar o sistema host. Primeiro, carregue o módulo do kernel bhyve:
-[source,bash]
+[source,shell]
....
# kldload vmm
....
Em seguida, crie uma interface [.filename]#tap# para o dispositivo de rede na máquina virtual para anexar. Para que o dispositivo de rede participe da rede, crie também uma interface de bridge contendo a interface [.filename]#tap# e a interface física como membros. Neste exemplo, a interface física é _igb0_:
-[source,bash]
+[source,shell]
....
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
@@ -594,14 +594,14 @@ net.link.tap.up_on_open: 0 -> 1
Crie um arquivo para usar como o disco virtual da máquina convidada. Especifique o tamanho e o nome do disco virtual:
-[source,bash]
+[source,shell]
....
# truncate -s 16G guest.img
....
Baixe uma imagem de instalação do FreeBSD para instalar:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-bootonly.iso
FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
@@ -609,7 +609,7 @@ FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
O FreeBSD vem com um script de exemplo para executar uma máquina virtual com o bhyve. O script iniciará a máquina virtual e a executará em um loop, para que ela seja reiniciada automaticamente se houver falha. O script usa várias opções para controlar a configuração da máquina: `-c` controla o número de CPUs virtuais, `-m` limita a quantidade de memória disponível para o sistema operacional convidado, `-t` define qual dispositivo [.filename]#tap# usar, `-d` indica qual imagem de disco usar, `-i` indica ao bhyve para inicializar a partir da imagem CD em vez do disco, e `-I` define qual imagem de CD deve ser usada. O último parâmetro é o nome da máquina virtual, usada para rastrear as máquinas em execução. Este exemplo inicia a máquina virtual no modo de instalação:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso guestname
....
@@ -618,7 +618,7 @@ A máquina virtual inicializará e iniciará o instalador. Depois de instalar um
Reinicialize a máquina virtual. Enquanto a reinicialização da máquina virtual fará o bhyve finalizar, o script [.filename]#vmrun.sh# executa o `bhyve` em um loop e o reiniciará automaticamente. Quando isso acontecer, escolha a opção de reinicialização no menu do carregador de inicialização para escapar do loop. Agora o convidado pode ser iniciado a partir do disco virtual:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
....
@@ -630,7 +630,7 @@ Para inicializar sistemas operacionais diferentes do FreeBSD, o port package:sys
Em seguida, crie um arquivo para usar como o disco virtual da máquina convidada:
-[source,bash]
+[source,shell]
....
# truncate -s 16G linux.img
....
@@ -645,14 +645,14 @@ Iniciar uma máquina virtual com o bhyve é um processo de duas etapas. Primeiro
Use o package:sysutils/grub2-bhyve[] para carregar o kernel Linux(TM) de uma imagem ISO:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
....
Isto irá iniciar o grub. Se o CD de instalação contiver um [.filename]#grub.cfg#, um menu será exibido. Caso contrário, os arquivos `vmlinuz` e `initrd` devem ser localizados e carregados manualmente:
-[source,bash]
+[source,shell]
....
grub> ls
(hd0) (cd0) (cd0,msdos1) (host)
@@ -666,7 +666,7 @@ grub> boot
Agora que o kernel Linux(TM) está carregado, o sistema convidado pode ser iniciado:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024M linuxguest
@@ -674,14 +674,14 @@ Agora que o kernel Linux(TM) está carregado, o sistema convidado pode ser inici
O sistema inicializará e iniciará o instalador. Depois de instalar um sistema na máquina virtual, reinicialize a máquina virtual. Isso fará com que o bhyve seja encerrado. A instância da máquina virtual precisa ser destruída antes de poder ser iniciada novamente:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
Agora, o sistema convidado pode ser iniciado diretamente do disco virtual. Carregue o kernel:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r hd0,msdos1 -M 1024M linuxguest
grub> ls
@@ -698,7 +698,7 @@ grub> boot
Inicialize a máquina virtual:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024M linuxguest
@@ -706,7 +706,7 @@ Inicialize a máquina virtual:
O Linux(TM) iniciará agora na máquina virtual e, eventualmente, apresentará o prompt de login. Faça o login e use a máquina virtual. Quando terminar, reinicialize a máquina virtual para sair do bhyve. Destrua a instância da máquina virtual:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
@@ -720,7 +720,7 @@ Para utilizar o suporte ao UEFI no bhyve, primeiro obtenha as imagens de firmwar
Com o firmware no lugar, adicione os sinalizadores `-l bootrom,_/path/to/firmware_` à linha de comando do bhyve. A sintaxe real do bhyve pode se parecer com a seguinte:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -731,7 +731,7 @@ guest
O package:sysutils/bhyve-firmware[] também contém um firmware habilitado para CSM, para inicializar sistemas operacionais hóspedes sem suporte à UEFI no modo de BIOS legado:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -749,7 +749,7 @@ O suporte para o framebuffer UEFI-GOP também pode ser ativado com os sinalizado
O comando bhyve resultante ficaria assim:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -767,14 +767,14 @@ Observe que, no modo de emulação do BIOS, o framebuffer deixará de receber at
Se o ZFS estiver disponível na máquina host, o uso de volumes ZFS em vez de arquivos de imagem de disco pode fornecer benefícios significativos de desempenho para as VMs convidadas. Um volume ZFS pode ser criado por:
-[source,bash]
+[source,shell]
....
# zfs create -V16G -o volmode=dev zroot/linuxdisk0
....
Ao iniciar a VM, especifique o volume ZFS como a unidade de disco:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest
@@ -785,7 +785,7 @@ Ao iniciar a VM, especifique o volume ZFS como a unidade de disco:
É vantajoso executar o console do bhyve em uma ferramenta de gerenciamento de sessão, como o package:sysutils/tmux[] ou package:sysutils/screen[], para que possa desanexar e reanexar o console. Também é possível ter o console do bhyve como um dispositivo de modem nulo o qual pode ser acessado com o comando `cu`. Para fazer isso, carregue o módulo do kernel [.filename]#nmdm# e substitua `-l com1,stdio` with `-l com1,/dev/nmdm0A`. Os dispositivos [.filename]#/dev/nmdm# são criados automaticamente conforme necessário, onde cada um é um par, correspondente às duas extremidades do cabo de modem nulo ([.filename]#/dev/nmdm0A# e [.filename]#/dev/nmdm0B#). Veja man:nmdm[4] para maiores informações.
-[source,bash]
+[source,shell]
....
# kldload nmdm
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
@@ -803,7 +803,7 @@ handbook login:
Um nó de dispositivo é criado em [.filename]#/dev/vmm# para cada máquina virtual. Isso permite que o administrador veja facilmente uma lista das máquinas virtuais em execução:
-[source,bash]
+[source,shell]
....
# ls -al /dev/vmm
total 1
@@ -816,7 +816,7 @@ crw------- 1 root wheel 0x1a1 Mar 17 12:19 otherguest
Uma máquina virtual especificada pode ser destruída usando `bhyvectl`:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=guestname
....
@@ -871,14 +871,14 @@ Os usuários do FreeBSD 11 devem instalar os pacotes package:emulators/xen-kerne
Os arquivos de configuração devem ser editados para preparar o host para a integração do Dom0 após a instalação dos pacotes do Xen. Uma entrada para [.filename]#/etc/sysctl.conf# desabilita o limite de quantas páginas de memória podem ser conectadas. Caso contrário, as VMs do DomU com requisitos de memória mais altos não serão executadas.
-[source,bash]
+[source,shell]
....
# echo 'vm.max_wired=-1' >> /etc/sysctl.conf
....
Outra configuração relacionada à memória envolve a alteração do [.filename]#/etc/login.conf#, configurando a opção `memorylocked` para `unlimited`. Caso contrário, a criação de domínios DomU poderá falhar com erros `Cannot allocate memory`. Depois de fazer a mudança no [.filename]#/etc/login.conf#, execute o comando `cap_mkdb` para atualizar o banco de dados de recursos. Veja crossref:security[security-resourcelimits,Limites de Recursos] para detalhes.
-[source,bash]
+[source,shell]
....
# sed -i '' -e 's/memorylocked=64K/memorylocked=unlimited/' /etc/login.conf
# cap_mkdb /etc/login.conf
@@ -886,7 +886,7 @@ Outra configuração relacionada à memória envolve a alteração do [.filename
Adicione uma entrada para o console do Xen(TM) ao [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
# echo 'xc0 "/usr/libexec/getty Pc" xterm onifconsole secure' >> /etc/ttys
....
@@ -895,7 +895,7 @@ A seleção de um kernel Xen(TM) no [.filename]#/boot/loader.conf# ativa o Dom0.
O seguinte comando é usado para pacotes Xen 4.7:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf hw.pci.mcfg=0
# sysrc -f /boot/loader.conf if_tap_load="YES"
@@ -905,7 +905,7 @@ O seguinte comando é usado para pacotes Xen 4.7:
Para as versões Xen 4.11 e superiores, o seguinte comando deve ser usado:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf if_tap_load="YES"
# sysrc -f /boot/loader.conf xen_kernel="/boot/xen"
@@ -920,14 +920,14 @@ Os arquivos de log criados pelo Xen(TM) para as VMs do DomU são armazenados em
Ative o serviço xencommons durante a inicialização do sistema:
-[source,bash]
+[source,shell]
....
# sysrc xencommons_enable=yes
....
Essas configurações são suficientes para iniciar um sistema habilitado para Dom0. No entanto, falta a funcionalidade de rede para as máquinas DomU. Para corrigir isso, defina uma interface em bridge com a NIC principal do sistema que as VMs DomU poderão usar para se conectar à rede. Substitua _em0_ pelo nome da interface de rede do host.
-[source,bash]
+[source,shell]
....
# sysrc cloned_interfaces="bridge0"
# sysrc ifconfig_bridge0="addm em0 SYNCDHCP"
@@ -936,14 +936,14 @@ Essas configurações são suficientes para iniciar um sistema habilitado para D
Reinicie o host para carregar o kernel Xen(TM) e inicie o Dom0.
-[source,bash]
+[source,shell]
....
# reboot
....
Após inicializar com sucesso o kernel Xen(TM) e efetuar login no sistema novamente, a ferramenta de gerenciamento do Xen(TM), `xl` é usada para mostrar informações sobre os domínios.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -957,21 +957,21 @@ A saída confirma que o Dom0 (chamado `Domain-0`) tem o ID `0` e está em execu
Domínios desprivilegiados consistem em um arquivo de configuração e discos rígidos virtuais ou físicos. Os discos virtuais para armazenamento do DomU podem ser arquivos criados pelo man:truncate[1] ou volumes ZFS, conforme descrito em crossref:zfs[zfs-zfs-volume,Criando e Destruindo Volumes]. Neste exemplo, um volume de 20 GB é usado. Uma VM é criada com o volume ZFS, uma imagem ISO do FreeBSD, 1 GB de RAM e duas CPUs virtuais. O arquivo ISO de instalação é obtido com o man:fetch[1] e salvo localmente em um arquivo chamado [.filename]#freebsd.iso#.
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-bootonly.iso -o freebsd.iso
....
Um volume de 20 GB do ZFS chamado [.filename]#xendisk0# é criado para servir como espaço em disco para a VM.
-[source,bash]
+[source,shell]
....
# zfs create -V20G -o volmode=dev zroot/xendisk0
....
A nova VM DomU convidada é definida em um arquivo. Algumas definições específicas, como nome, mapa de teclado e detalhes da conexão VNC, também são definidas. O seguinte [.filename]#freebsd.cfg# contém uma configuração mínima de DomU para este exemplo:
-[source,bash]
+[source,shell]
....
# cat freebsd.cfg
builder = "hvm" <.>
@@ -1009,7 +1009,7 @@ Estas linhas são explicadas com mais detalhes:
Após o arquivo ter sido criado com todas as opções necessárias, o DomU é criado passando-o como um parâmetro para o comando `xl create`.
-[source,bash]
+[source,shell]
....
# xl create freebsd.cfg
....
@@ -1021,7 +1021,7 @@ Cada vez que o Dom0 é reiniciado, o arquivo de configuração deve ser passado
A saída de `xl list` confirma que o DomU foi criado.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -1031,7 +1031,7 @@ freebsd 1 1024 1 -b---- 663.9
Para iniciar a instalação do sistema operacional base, inicie o cliente VNC, direcionando-o para o endereço de rede principal do host ou para o endereço IP definido na linha `vnclisten` do [.filename]#freebsd.cfg#. Depois que o sistema operacional tiver sido instalado, desligue o DomU e desconecte o visualizador VNC. Edite o [.filename]#freebsd.cfg#, removendo a linha com a definição `cdrom` ou comentando-a inserindo um caractere `#` no início da linha. Para carregar esta nova configuração, é necessário remover o DomU antigo com `xl destroy`, passando o nome ou o id como parâmetro. Depois, recrie-o usando o [.filename]##freebsd.cfg## modificado.
-[source,bash]
+[source,shell]
....
# xl destroy freebsd
# xl create freebsd.cfg
@@ -1057,7 +1057,7 @@ Para solucionar problemas de inicialização do host, você provavelmente precis
O FreeBSD também deve ser inicializado no modo verbose para identificar quaisquer problemas. Para ativar a inicialização detalhada, execute este comando:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf boot_verbose="YES"
....
@@ -1071,7 +1071,7 @@ Problemas também podem surgir ao criar convidados, as informações a seguir te
A causa mais comum de falhas na criação de convidados é o comando `xl` cuspindo algum erro e saindo com um código de retorno diferente de 0. Se o erro fornecido não for suficiente para ajudar a identificar o problema, uma saída mais detalhada pode ser obtida do comando `xl` usando-se a opção `v` repetidamente.
-[source,bash]
+[source,shell]
....
# xl -vvv create freebsd.cfg
Parsing config from freebsd.cfg
diff --git a/documentation/content/pt-br/books/handbook/x11/_index.adoc b/documentation/content/pt-br/books/handbook/x11/_index.adoc
index 76ee1d1355..da059d5b02 100644
--- a/documentation/content/pt-br/books/handbook/x11/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/x11/_index.adoc
@@ -107,14 +107,14 @@ No FreeBSD, o Xorg pode ser instalado como um pacote ou port.
O pacote binário pode ser instalado rapidamente, mas com menos opções de personalização:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
Para compilar e instalar a partir da Coleção de Ports:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -142,7 +142,7 @@ Placas de vídeo, monitores e dispositivos de entrada são detectados automatica
====
. Se o Xorg tiver sido usado neste computador antes, mova ou remova qualquer arquivo de configuração existente:
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -150,14 +150,14 @@ Placas de vídeo, monitores e dispositivos de entrada são detectados automatica
+
. Adicione o usuário que executará o Xorg ao grupo `video` ou `wheel` para ativar a aceleração 3D quando disponível. Para adicionar o usuário _jru_ ao grupo que estiver disponível:
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
+
. O gerenciador de janelas twm é incluído por padrão. Ele é chamado quando o Xorg se inicia:
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -170,7 +170,7 @@ Placas de vídeo, monitores e dispositivos de entrada são detectados automatica
O acesso ao [.filename]#/dev/dri# é necessário para permitir a aceleração 3D nas placas de vídeo. Geralmente é mais simples adicionar o usuário que estará executando o X no grupo `video` ou no `wheel`. Aqui, o man:pw[8] é usado para adicionar o usuário _slurms_ ao grupo `video`, ou ao grupo `wheel` se não houver nenhum grupo `video`:
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -354,7 +354,7 @@ Outras resoluções suportadas pelo monitor podem ser escolhidas definindo a res
Usando man:xrandr[1]::
Execute o man:xrandr[1] sem nenhum parâmetro para ver uma lista de saídas de vídeo e modos de monitor detectados:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -377,7 +377,7 @@ Isso mostra que a saída `DVI-0` está sendo usada para exibir uma resolução d
+
Qualquer um dos outros modos de exibição pode ser selecionado com man:xrandr[1]. Por exemplo, para mudar para 1280x1024 a 60 Hz:
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -386,7 +386,7 @@ Uma tarefa comum é usar a saída de vídeo externa em um notebook para um proje
+
O tipo e a quantidade de conectores de saída variam entre os dispositivos, e o nome dado a cada saída varia de driver para driver. O que um driver chama de `HDMI-1`, outro pode chamar de `HDMI1`. Portanto, o primeiro passo é executar man:xrandr[1] para listar todas as saídas disponíveis:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -412,7 +412,7 @@ Quatro saídas foram encontradas: os conectores `LVDS1` e `VGA1`, `HDMI1` e `DP1
+
O projetor foi conectado à saída `VGA1`. O man:xrandr[1] agora é usado para definir essa saída para a resolução nativa do projetor e adicionar o espaço adicional à direita da área de trabalho:
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -571,14 +571,14 @@ Um arquivo de configuração pode ser gerado pelo Xorg baseado no hardware detec
Gerando um arquivo [.filename]#xorg.conf#:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
O arquivo de configuração é salvo em [.filename]#/root/xorg.conf.new#. Faça as alterações desejadas e teste esse arquivo(usando `-retro` assim será exibido um fundo visível) com:
-[source,bash]
+[source,shell]
....
# Xorg -retro -config /root/xorg.conf.new
....
@@ -595,14 +595,14 @@ As fontes padrões que vem com o Xorg não são adequadas para muitas aplicaçõ
Para instalar as coleções de fontes Type1 usando pacotes binários, execute os seguintes comandos:
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
Como alternativa, para compilar a partir da coleção de Ports, execute os seguintes comandos:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -617,7 +617,7 @@ FontPath "/usr/local/shared/fonts/urwfonts/"
Alternativamente, na linha de comando de execução da sessão X:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/urwfonts
% xset fp rehash
@@ -637,14 +637,14 @@ Load "freetype"
Agora crie um diretório para as fontes TrueType(TM) (por exemplo, [.filename]#/usr/local/shared/fonts/TrueType#) e copie todas as fontes TrueType(TM) para este diretório. Tenha em mente que as fontes TrueType(TM) não podem ser obtidas diretamente de um Apple(TM)Mac(TM); elas devem estar no formato UNIX(TM)/MS-DOS(TM)/Windows(TM) para uso pelo Xorg. Uma vez que os arquivos foram copiados para este diretório, use mkfontdir para criar um [.filename]#fonts.dir#, para que o renderizador de fontes do X saiba que esses novos arquivos foram instalados. O `mkfontdir` pode ser instalado como um pacote binário com o comando:
-[source,bash]
+[source,shell]
....
# pkg install mkfontdir
....
Em seguida, crie um índice de arquivos de fontes X em um diretório:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/fonts/TrueType
# mkfontdir
@@ -652,7 +652,7 @@ Em seguida, crie um índice de arquivos de fontes X em um diretório:
Agora adicione o diretório TrueType(TM) ao caminho da fonte. Isso é exatamente o mesmo descrito em <<type1>>:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/TrueType
% xset fp rehash
@@ -687,7 +687,7 @@ Como dito anteriormente, todas as fontes em [.filename]#/usr/local/shared/fonts/
Depois de adicionar novas fontes e especialmente novos diretórios de fontes, reconstrua os caches de fontes:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -798,7 +798,7 @@ Esta seção demonstra como configurar o X Display Manager no FreeBSD. Alguns am
Para instalar o XDM, use o pacote ou ports package:x11/xdm[]. Uma vez instalado, o XDM pode ser configurado para ser executado quando a máquina for inicializada editando esta entrada em [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -844,7 +844,7 @@ Por padrão, somente usuários no mesmo sistema podem efetuar login usando o XDM
Para configurar o XDM para escutar qualquer conexão remota, comente a linha `DisplayManager.requestPort` em [.filename]#/usr/local/etc/X11/xdm/xdm-config# colocando um `!` na frente dele:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -865,14 +865,14 @@ O GNOME é um ambiente de área de trabalho amigável. Ele inclui um painel para
Este ambiente de desktop pode ser instalado a partir de um pacote binario:
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
Para instalar o GNOME a partir do ports, use o seguinte comando. O GNOME é um aplicativo grande e levará algum tempo para compilar, mesmo em um computador rápido.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -911,14 +911,14 @@ O GDM será iniciado automaticamente quando o sistema for inicializado.
Um segundo método para iniciar o GNOME é digitar `startx` na linha de comando depois de configurar o [.filename]#~/.xinitrc#. Se este arquivo já existir, substitua a linha que inicia o gerenciador de janelas atual por uma que inicie o [.filename]#/usr/local/bin/gnome-session#. Se este arquivo não existir, crie-o com este comando:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
Um terceiro método é usar o XDM como o gerenciador de Display. Neste caso, crie um executável [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -930,14 +930,14 @@ O KDE é outro ambiente de trabalho fácil de usar. Essa área de trabalho forne
Para instalar o pacote KDE, digite:
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
Para instalar o KDE via ports, use o seguinte comando. A instalação do ports fornecerá um menu para selecionar quais componentes instalar. O KDE é um aplicativo grande e levará algum tempo para compilar, mesmo em um computador rápido.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -960,7 +960,7 @@ hald_enable="YES"
Desde o KDE Plasma 5, o Gerenciador de Display do KDE, KDM, não é mais desenvolvido. Uma possível substituição é o SDDM. Para instalá-lo, digite:
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -981,7 +981,7 @@ exec ck-launch-session startplasma-x11
Um terceiro método para iniciar o KDE Plasma é através do XDM. Para fazer isso, crie um arquivo executável [.filename]#~/.xsession# da seguinte maneira:
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startplasma-x11" > ~/.xsession
....
@@ -995,14 +995,14 @@ O Xfce é um ambiente de desktop baseado no kit de ferramentas GTK+ usado pelo G
Para instalar o pacote Xfce:
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
Alternativamente , para compilar o port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1017,14 +1017,14 @@ dbus_enable="YES"
Ao contrário do GNOME ou KDE, o Xfce não disponibiliza seu próprio gerenciador de login. Para iniciar o Xfce à partir da linha de comando digitando `startx`, mas primeiro adicione sua entrada ao [.filename]#~/.xinitrc#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
Um método alternativo é usar o XDM. Para configurar este método, crie um executável [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1047,7 +1047,7 @@ Tendo determinado o driver correto para usar em sua placa gráfica, a instalaç
Por exemplo, para instalar o driver mais recente:
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1148,7 +1148,7 @@ Section "Module"
A configuração acima pode ser feita automaticamente com o package:x11/nvidia-xconfig[] (executando como `root`):
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1160,14 +1160,14 @@ A configuração acima pode ser feita automaticamente com o package:x11/nvidia-x
Instalar o Compiz Fusion é tão simples quanto qualquer outro pacote:
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
Quando a instalação estiver concluída, inicie o Desktop Gráfico e, em um terminal, digite os seguintes comandos (como usuário normal):
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp &
% emerald --replace &
@@ -1186,7 +1186,7 @@ emerald --replace &
Salve isso no seu diretório home como, por exemplo, [.filename]#start-compiz# e torne-o executável:
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1195,7 +1195,7 @@ Em seguida, utilize a GUI para adicioná-lo a [.guimenuitem]#Startup Programs# (
Para selecionar realmente todos os efeitos desejados e suas configurações, execute (novamente como um usuário normal) o Compiz Config Settings Manager:
-[source,bash]
+[source,shell]
....
% ccsm
....
@@ -1244,7 +1244,7 @@ Você terá que reinicializar sua máquina para forçar o hald a ler este arquiv
É possível fazer a mesma configuração a partir de um terminal X ou um script com esta linha de comando:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -1302,7 +1302,7 @@ Uma das ferramentas disponíveis para ajudá-lo durante o processo de solução
Se tudo estiver bem, o arquivo de configuração precisa ser instalado em um local comum onde o man:Xorg[1] possa encontrá-lo. Isto é tipicamente [.filename]#/etc/X11/xorg.conf# ou [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -1390,7 +1390,7 @@ Provavelmente está faltando alguma configuração em [.filename]#/etc/X11/xorg.
Se você verificar o [.filename]#/var/log/Xorg.0.log#, você provavelmente encontrará mensagens de erro durante a inicialização do X. As mais comuns seriam:
-[source,bash]
+[source,shell]
....
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
diff --git a/documentation/content/pt-br/books/handbook/zfs/_index.adoc b/documentation/content/pt-br/books/handbook/zfs/_index.adoc
index 96951fcc26..9bcbade6a1 100644
--- a/documentation/content/pt-br/books/handbook/zfs/_index.adoc
+++ b/documentation/content/pt-br/books/handbook/zfs/_index.adoc
@@ -74,7 +74,7 @@ zfs_enable="YES"
Então inicie o serviço:
-[source,bash]
+[source,shell]
....
# service zfs start
....
@@ -86,14 +86,14 @@ Os exemplos nesta seção assumem três discos SCSI com os seguintes nomes de di
Para criar um pool simples e não-redundante usando um único disco:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Para visualizar o novo pool, verifique a saída do comando `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -105,7 +105,7 @@ example 17547136 0 17547136 0% /example
Esta saída mostra que o pool `example` foi criado e montado e agora está acessível como um sistema de arquivos. Arquivos podem ser criados nele e os usuários podem navegar nele:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -119,7 +119,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
No entanto, esse pool não está aproveitando nenhuma feature do ZFS. Para criar um dataset neste pool com a compressão ativada:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -129,14 +129,14 @@ O dataset `example/compressed` é agora um sistema de arquivos ZFS compactado. T
A compactação pode ser desativada com:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Para desmontar um sistema de arquivos, use `zfs umount` e, em seguida, verifique com `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -149,7 +149,7 @@ example 17547008 0 17547008 0% /example
Para remontar o sistema de arquivos para torná-lo acessível novamente, use `zfs mount` e verifique com o `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -163,7 +163,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
O pool e o sistema de arquivos também podem ser observados visualizando a saída do comando `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -175,7 +175,7 @@ example/compressed on /example/compressed (zfs, local)
Após a criação, os datasets do ZFS podem ser usados como qualquer sistema de arquivos. No entanto, muitos outros recursos estão disponíveis, e podem ser definidos por conjunto de dados. No exemplo abaixo, um novo sistema de arquivos chamado `data` é criado. Arquivos importantes serão armazenados nele, portanto, ele é configurado para manter duas cópias de cada bloco de dados:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -183,7 +183,7 @@ Após a criação, os datasets do ZFS podem ser usados como qualquer sistema de
Agora é possível ver o sistema de arquivos `data` e o espaço utilizado através do comando `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -199,7 +199,7 @@ Observe que cada sistema de arquivos no pool tem a mesma quantidade de espaço d
Para destruir os sistemas de arquivos e, em seguida, destruir o pool, se ele não for mais necessário:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -213,7 +213,7 @@ Discos falham. Um método para evitar perda de dados devido a falhas no disco é
Este exemplo cria um pool RAID-Z, especificando os discos a serem adicionados ao pool:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -225,14 +225,14 @@ A Sun(TM) recomenda que o número de dispositivos usados em uma configuração R
O exemplo anterior criou o zpool `storage`. Este exemplo cria um novo sistema de arquivos chamado `home` neste pool:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
A compressão e a criação de cópias extras de diretórios e arquivos podem ser ativadas:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -240,7 +240,7 @@ A compressão e a criação de cópias extras de diretórios e arquivos podem se
Para tornar este o novo diretório home para usuários, copie os dados de usuários para este diretório e crie os links simbólicos apropriados:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -252,7 +252,7 @@ Os dados dos usuários agora são armazenados no recém-criado diretório [.file
Tente criar um snapshot do sistema de arquivos que possa ser revertido posteriormente:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
@@ -261,35 +261,35 @@ Os snapshots só podem ser realizados de um sistema de arquivos completo, não d
O caractere `@` é um delimitador entre o nome do sistema de arquivos ou o nome do volume. Se um diretório importante tiver sido excluído acidentalmente, o backup do sistema de arquivos poderá ser feito e, em seguida, revertido para um snapshot anterior, quando o diretório ainda existia:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Para listar todos os snapshots disponíveis, execute `ls` no diretório [.filename]#.zfs/snapshot# no sistema de arquivos. Por exemplo, para ver o snapshot obtido anteriormente:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
É possível escrever um script para criar snapshots frequentes dos dados do usuário. No entanto, com o tempo, os snapshots podem consumir muito espaço em disco. O snapshot anterior pode ser removido usando o comando:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Após o teste, [.filename]#/storage/home# pode ser o verdadeiro [.filename]#/home# usando este comando:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Execute o `df` e o `mount` para confirmar que o sistema agora trata o sistema de arquivos como o real [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -318,21 +318,21 @@ daily_status_zfs_enable="YES"
Todo software RAID tem um método de monitorar seu `status`. O status dos dispositivos RAID-Z pode ser visualizado com este comando:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Se todos os pools estiverem <<zfs-term-online,Online>> e tudo estiver normal, a mensagem mostrará:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
Se houver um problema, talvez um disco que esteja no estado <<zfs-term-offline,Offline>>, o status do pool será semelhante a:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -356,21 +356,21 @@ errors: No known data errors
Isso indica que o dispositivo foi colocado off-line anteriormente pelo administrador com este comando:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Agora o sistema pode ser desligado para substituir o [.filename]#da1#. Quando o sistema estiver novamente online, o disco com falha poderá ser substituído no pool:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
Agora, o status pode ser verificado novamente, desta vez sem `-x`, para que todos os pools sejam mostrados:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -403,14 +403,14 @@ Os checksums podem ser desabilitados, mas isto _não_ é recomendado! Os checksu
A verificação de checksum é conhecida como _scrubbing_. Verifique a integridade dos dados do pool `storage` com este comando:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
A duração de um scrub depende da quantidade de dados armazenados. Quantidades maiores de dados levarão proporcionalmente mais tempo para serem verificadas. Scrubs utilizam muito I/O, e apenas um scrub tem permissão para ser executado por vez. Após a conclusão do scrub, o status pode ser visualizado com `status`:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -444,7 +444,7 @@ A criação de um pool de armazenamento do ZFS (_zpool_) envolve a tomada de vá
Crie um pool do tipo mirror simples:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2
# zpool status
@@ -464,7 +464,7 @@ errors: No known data errors
Vários vdevs podem ser criados de uma só vez. Especifique vários grupos de discos separados pela palavra-chave do tipo vdev, `mirror` neste exemplo:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2 mirror /dev/ada3 /dev/ada4
# zpool status
@@ -489,7 +489,7 @@ Os pools também podem ser construídos usando partições em vez de discos inte
Crie um pool <<zfs-term-vdev-raidz,RAID-Z2>> usando partições:
-[source,bash]
+[source,shell]
....
# zpool create mypool raidz2 /dev/ada0p3 /dev/ada1p3 /dev/ada2p3 /dev/ada3p3 /dev/ada4p3 /dev/ada5p3
# zpool status
@@ -522,7 +522,7 @@ Um pool criado com um único disco não tem redundância. Dados corrompidos pode
Atualize o disco único (stripe) vdev _ada0p3_ para um mirror anexando _ada1p3_:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -588,7 +588,7 @@ Ao anexar dispositivos adicionais a um pool de inicialização, lembre-se de atu
Anexe um segundo grupo de mirror's ([.filename]#ada2p3# and [.filename]#ada3p3#) ao mirror existente:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -630,7 +630,7 @@ Atualmente, os vdevs não podem ser removidos de um pool e os discos só podem s
Remova um disco de um grupo de mirror's triplo:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -667,7 +667,7 @@ errors: No known data errors
O status do pool é importante. Se uma unidade ficar off-line ou for detectado um erro de leitura, gravação ou de checksum, a contagem de erros correspondente aumentará. A saída `status` mostra a configuração e o status de cada dispositivo no pool e o status de todo o pool. Ações que precisam ser tomadas e detalhes sobre o último <<zfs-zpool-scrub,`scrub`>> também são mostrados.
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -700,7 +700,7 @@ Há várias situações em que pode ser desejável substituir um disco por um di
Substitua um dispositivo em funcionamento no pool:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -772,7 +772,7 @@ Ao substituir um disco com falha, o nome do disco com falha é substituído pelo
Substitua um disco com falha usando o `zpool replace`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -832,7 +832,7 @@ errors: No known data errors
Recomenda-se que os pools sejam regularmente <<zfs-term-scrub,scrubbed>>, idealmente pelo menos uma vez por mês. A operação `scrub` requer muito disco e reduzirá o desempenho durante a execução. Evite períodos de alta demanda ao agendar o `scrub` ou use <<zfs-advanced-tuning-scrub_delay,`vfs.zfs.scrub_delay`>> para ajustar a prioridade relativa do `scrub` para evitar que ele interfira com outras cargas de trabalho.
-[source,bash]
+[source,shell]
....
# zpool scrub mypool
# zpool status
@@ -865,7 +865,7 @@ Os checksums armazenados com os blocos de dados habilitam o sistema de arquivos
O próximo exemplo demonstra esse comportamento de autocura. Um conjunto espelhado de discos [.filename]#/dev/ada0# e [.filename]#/dev/ada1# é criado.
-[source,bash]
+[source,shell]
....
# zpool create healer mirror /dev/ada0 /dev/ada1
# zpool status healer
@@ -888,7 +888,7 @@ healer 960M 92.5K 960M - - 0% 0% 1.00x ONLINE -
Alguns dados importantes que devem ser protegidos de erros de dados usando o recurso de correção automática são copiados para o pool. É criado um checksum do pool para comparação posterior.
-[source,bash]
+[source,shell]
....
# cp /some/important/data /healer
# zfs list
@@ -907,7 +907,7 @@ A corrupção de dados é simulada escrevendo dados aleatórios no início de um
Esta é uma operação perigosa que pode destruir dados vitais. Ele é mostrado aqui apenas para fins demonstrativos e não deve ser tentado durante a operação normal de um pool de armazenamento. Nem este exemplo de corrupção intencional deve ser executado em qualquer disco com um sistema de arquivos diferente. Não use outros nomes de dispositivos de disco diferentes daqueles que fazem parte do pool. Certifique-se de que os backups apropriados do pool sejam criados antes de executar o comando!
====
-[source,bash]
+[source,shell]
....
# zpool export healer
# dd if=/dev/random of=/dev/ada1 bs=1m count=200
@@ -919,7 +919,7 @@ Esta é uma operação perigosa que pode destruir dados vitais. Ele é mostrado
O status do pool mostra que um dispositivo teve um erro. Observe que os aplicativos que leem dados do pool não receberam dados incorretos. O ZFS forneceu dados do dispositivo [.filename]#ada0# com os checksums corretos. O dispositivo com o checksum incorreto pode ser encontrado facilmente, pois a coluna `CKSUM` contém um valor diferente de zero.
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -943,7 +943,7 @@ errors: No known data errors
O erro foi detectado e tratado usando a redundância presente no disco de espelhamento [.filename]#ada0# não afetado. Uma comparação de checksum com o original irá revelar se o pool está consistente novamente.
-[source,bash]
+[source,shell]
....
# sha1 /healer >> checksum.txt
# cat checksum.txt
@@ -953,7 +953,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
Os dois checksums que foram gerados antes e depois da adulteração intencional dos dados do conjunto ainda correspondem. Isso mostra como o ZFS é capaz de detectar e corrigir erros automaticamente quando os checksums são diferentes. Observe que isso só é possível quando há redundância suficiente presente no pool. Um pool que consiste em um único dispositivo não possui recursos de autocorreção. Essa também é a razão pela qual os cheksuma são tão importantes no ZFS e não devem ser desabilitados por nenhum motivo. Nenhum man:fsck[8] ou programa semelhante de verificação de consistência do sistema de arquivos é necessário para detectar e corrigir isso e o pool ainda estava disponível durante o problema. Uma operação de scrub agora é necessária para sobrescrever os dados corrompidos em [.filename]#ada1#.
-[source,bash]
+[source,shell]
....
# zpool scrub healer
# zpool status healer
@@ -980,7 +980,7 @@ errors: No known data errors
A operação scrub lê os dados do [.filename]#ada0# e reescreve todos os dados com um checksum incorreto no [.filename]#ada1#. Isso é indicado pela saída `(repairing)` do `zpool status`. Após a conclusão da operação, o status do conjunto é alterado para:
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -1004,7 +1004,7 @@ errors: No known data errors
Após a conclusão da operação scrub e todos os dados terem sido sincronizados de [.filename]#ada0# para [.filename]#ada1#, as mensagens de erro podem ser <<zfs-zpool-clear>> do status do pool executando `zpool clear`.
-[source,bash]
+[source,shell]
....
# zpool clear healer
# zpool status healer
@@ -1038,7 +1038,7 @@ Os pools são _exportados_ antes de serem movidos para outro sistema. Todos os c
Exportar um pool que não está em uso:
-[source,bash]
+[source,shell]
....
# zpool export mypool
....
@@ -1047,7 +1047,7 @@ Importar um pool automaticamente monta os conjuntos de dados. Este pode não ser
Listar todos os pools disponíveis para importação:
-[source,bash]
+[source,shell]
....
# zpool import
pool: mypool
@@ -1062,7 +1062,7 @@ Listar todos os pools disponíveis para importação:
Importe o pool com um diretório raiz alternativo:
-[source,bash]
+[source,shell]
....
# zpool import -o altroot=/mnt mypool
# zfs list
@@ -1078,7 +1078,7 @@ Após a atualização do FreeBSD, ou se um pool foi importado de um sistema usan
Atualize um pool v28 para suportar `Feature Flags`:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1127,7 +1127,7 @@ Os recursos mais recentes do ZFS não estarão disponíveis até que o `zpool up
Atualize um pool para suportar feature flags adicionais:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1185,14 +1185,14 @@ O boot code em sistemas que inicializam a partir de um pool deve ser atualizado
Para inicialização legada usando o GPT, use o seguinte comando:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
....
Para sistemas que usam o EFI para inicializar, execute o seguinte comando:
-[source,bash]
+[source,shell]
....
# gpart bootcode -p /boot/boot1.efifat -i 1 ada1
....
@@ -1205,7 +1205,7 @@ Aplique o bootcode a todos os discos inicializáveis no pool. Veja man:gpart[8]
Comandos que modificam o pool são registrados. As ações registradas incluem a criação de conjuntos de dados, a alteração de propriedades ou a substituição de um disco. Esse histórico é útil para revisar como um pool foi criado e qual usuário executou uma ação específica e quando. O histórico não é mantido em um arquivo de log, mas faz parte do próprio pool. O comando para revisar este histórico é apropriadamente chamado de `zpool history`:
-[source,bash]
+[source,shell]
....
# zpool history
History for 'tank':
@@ -1219,7 +1219,7 @@ A saída mostra os comandos `zpool` e `zfs` que foram executados no pool juntame
O `zpool history` pode mostrar ainda mais informações quando as opções `-i` ou `-l` são fornecidas. A opção `-i` exibe eventos iniciados pelo usuário, bem como eventos do ZFS registrados internamente.
-[source,bash]
+[source,shell]
....
# zpool history -i
History for 'tank':
@@ -1234,7 +1234,7 @@ History for 'tank':
Mais detalhes podem ser mostrados adicionando a opção `-l`. Os registros de histórico são mostrados em um formato longo, incluindo informações como o nome do usuário que emitiu o comando e o nome do host no qual a alteração foi feita.
-[source,bash]
+[source,shell]
....
# zpool history -l
History for 'tank':
@@ -1253,7 +1253,7 @@ Ambas as opções para o `zpool history` podem ser combinadas para fornecer as i
Um sistema de monitoramento integrado pode exibir estatísticas de I/O do pool em tempo real. Ele mostra a quantidade de espaço livre e usado no pool, quantas operações de leitura e gravação estão sendo executadas por segundo e quanto de largura de banda de I/O está sendo utilizada no momento. Por padrão, todos os pools no sistema são monitorados e exibidos. Um nome de pool pode ser fornecido para limitar o monitoramento apenas a esse pool. Um exemplo básico:
-[source,bash]
+[source,shell]
....
# zpool iostat
capacity operations bandwidth
@@ -1266,7 +1266,7 @@ Para monitorar continuamente a atividade de I/O, um número pode ser especificad
Estatísticas mais detalhadas de I/O podem ser exibidas com a opção `-v`. Cada dispositivo no pool é mostrado com uma linha de estatísticas. Isso é útil para ver quantas operações de leitura e gravação estão sendo executadas em cada dispositivo e pode ajudar a determinar se algum dispositivo individual está reduzindo a velocidade do pool. Este exemplo mostra um pool espelhado com dois dispositivos:
-[source,bash]
+[source,shell]
....
# zpool iostat -v
capacity operations bandwidth
@@ -1296,7 +1296,7 @@ Ao contrário dos discos tradicionais e gerenciadores de volume, o espaço no ZF
Crie um novo conjunto de dados e ative a <<zfs-term-compression-lz4,compactação LZ4>> nele:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1336,7 +1336,7 @@ A destruição de um conjunto de dados é muito mais rápida que a exclusão de
Destrua o conjunto de dados criado anteriormente:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1381,7 +1381,7 @@ Um volume é um tipo especial de conjunto de dados. Em vez de ser montado como u
Um volume pode ser formatado com qualquer sistema de arquivos ou usado sem um sistema de arquivos para armazenar dados brutos. Para o usuário, um volume parece ser um disco normal. Colocar sistemas de arquivos comuns nesses _zvols_ fornece recursos que os discos comuns ou sistemas de arquivos normalmente não possuem. Por exemplo, o uso da propriedade de compactação em um volume de 250 MB permite a criação de um sistema de arquivos FAT compactado.
-[source,bash]
+[source,shell]
....
# zfs create -V 250m -o compression=on tank/fat32
# zfs list tank
@@ -1405,7 +1405,7 @@ O nome de um conjunto de dados pode ser alterado com `zfs rename`. O pai de um c
Renomeie um conjunto de dados e mova-o para um conjunto de dados pai diferente:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1444,7 +1444,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
Os snapshots também podem ser renomeados dessa maneira. Devido à natureza dos snapshots, eles não podem ser renomeados para um conjunto de dados pai diferente. Para renomear um snapshot recursivo, especifique `-r` e todos os snapshots com o mesmo nome nos conjuntos de dados filho também serão renomeados.
-[source,bash]
+[source,shell]
....
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
@@ -1462,7 +1462,7 @@ Cada conjunto de dados do ZFS possui várias propriedades que controlam seu comp
Propriedades definidas pelo usuário também podem ser definidas. Eles se tornam parte da configuração do conjunto de dados e podem ser usados para fornecer informações adicionais sobre o conjunto de dados ou seu conteúdo. Para distinguir essas propriedades personalizadas daquelas fornecidas como parte do ZFS, dois pontos (`:`) são usados para criar um namespace personalizado para a propriedade.
-[source,bash]
+[source,shell]
....
# zfs set custom:costcenter=1234 tank
# zfs get custom:costcenter tank
@@ -1472,7 +1472,7 @@ tank custom:costcenter 1234 local
Para remover uma propriedade customizada, use o `zfs inherit` com `-r`. Se a propriedade personalizada não estiver definida em nenhum dos conjuntos de dados pai, ela será removida completamente (embora as alterações ainda sejam registradas no histórico do pool).
-[source,bash]
+[source,shell]
....
# zfs inherit -r customizado : costcenter tanque
# zfs customizado : costcenter tank
@@ -1487,7 +1487,7 @@ tanque personalizado: costcenter - -
Duas propriedades de conjunto de dados comumente usadas e úteis são as opções de compartilhamento NFS e SMB. Configurar estas define se e como os conjuntos de dados do ZFS podem ser compartilhados na rede. Atualmente, apenas o compartilhamento de configurações via NFS é suportado no FreeBSD. Para obter o status atual de um compartilhamento, insira:
-[source,bash]
+[source,shell]
....
# zfs get sharenfs mypool/usr/home
NAME PROPERTY VALUE SOURCE
@@ -1499,14 +1499,14 @@ mypool/usr/home sharesmb off local
Para ativar o compartilhamento de um conjunto de dados, insira:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs=on mypool/usr/home
....
Também é possível definir opções adicionais para compartilhar conjuntos de dados por meio do NFS, como `-alldirs`, `-maproot` e `-network`. Para definir opções adicionais para um conjunto de dados compartilhado por meio do NFS, insira:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs="-alldirs,-maproot=root,-network=192.168.1.0/24" mypool/usr/home
....
@@ -1525,7 +1525,7 @@ Os snapshots são criados com `zfs snapshot _dataset_@_snapshotname_`. Adicionar
Crie um Snapshot recursivo de todo o pool:
-[source,bash]
+[source,shell]
....
# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
@@ -1568,7 +1568,7 @@ Os snapshots não são mostrados por uma operação normal do `zfs list`. Para l
Os snapshots não são montados diretamente, portanto, nenhum caminho é mostrado na coluna `MOUNTPOINT`. Não há menção ao espaço disponível em disco na coluna `AVAIL`, já que os snapshots não podem ser gravados após serem criados. Compare o snapshot com o conjunto de dados original a partir do qual foi criado:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/usr/home
NAME USED AVAIL REFER MOUNTPOINT
@@ -1578,7 +1578,7 @@ mypool/usr/home@my_recursive_snapshot 0 - 184K -
A exibição do conjunto de dados e dos snapshots juntos revela como os snapshots funcionam no modo <<zfs-term-cow,COW>>. Eles salvam apenas as alterações (_deltas_) que foram feitas e não o conteúdo completo do sistema de arquivos novamente. Isso significa que os snapshots ocupam pouco espaço quando poucas alterações são feitas. O uso do espaço pode se tornar ainda mais aparente copiando um arquivo para o conjunto de dados e fazendo um segundo snapshots:
-[source,bash]
+[source,shell]
....
# cp /etc/passwd /var/tmp
# zfs snapshot mypool/var/tmp@after_cp
@@ -1596,7 +1596,7 @@ O segundo snapshot contém apenas as alterações feitas no conjunto de dados ap
O ZFS fornece um comando interno para comparar as diferenças de conteúdo entre dois snapshots. Isso é útil quando muitos snapshots foram gerados com o passar do tempo e o usuário deseja ver como o sistema de arquivos mudou ao longo do tempo. Por exemplo, o `zfs diff` permite que um usuário localize o ultimo snapshot que ainda contém um arquivo que foi acidentalmente excluído. Fazer isso para os dois snapshots criados na seção anterior produz essa saída:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1633,7 +1633,7 @@ A comparação de dois snapshots é útil ao usar o recurso de replicação do Z
Compare dois snapshots fornecendo o nome completo do conjunto de dados e o nome do snapshot de ambos os conjuntos de dados:
-[source,bash]
+[source,shell]
....
# cp /var/tmp/passwd /var/tmp/passwd.copy
# zfs snapshot mypool/var/tmp@diff_snapshot
@@ -1655,7 +1655,7 @@ Quando pelo menos um snapshot estiver disponível, ele poderá ser revertido a q
No primeiro exemplo, um snapshot é revertido por causa de uma operação descuidada com o comando `rm` que removeu muito mais dados do que o pretendido.
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1672,7 +1672,7 @@ vi.recover
Neste ponto, o usuário percebeu que muitos arquivos foram excluídos e os quer de volta. O ZFS fornece uma maneira fácil de recuperá-los usando reversões, mas somente quando os snapshots de dados importantes são executados regularmente. Para recuperar os arquivos e recomeçar a partir do último snapshot, emita o comando:
-[source,bash]
+[source,shell]
....
# zfs rollback mypool/var/tmp@diff_snapshot
# ls /var/tmp
@@ -1681,7 +1681,7 @@ passwd passwd.copy vi.recover
A operação de reversão restaurou o conjunto de dados para o estado do último snapshot. Também é possível reverter para um snapshot que foi gerado muito antes e que possui outros snapshots criados após ele. Ao tentar fazer isso, o ZFS irá emitir este aviso:
-[source,bash]
+[source,shell]
....
# zfs list -rt snapshot mypool/var/tmp
AME USED AVAIL REFER MOUNTPOINT
@@ -1697,7 +1697,7 @@ mypool/var/tmp@diff_snapshot
Esse aviso significa que existem snapshots entre o estado atual do conjunto de dados e o snapshot para o qual o usuário deseja retroceder. Para concluir a reversão, esses snapshots devem ser excluídos. O ZFS não pode rastrear todas as alterações entre estados diferentes do conjunto de dados, porque os snapshots são somente de leitura. O ZFS não excluirá os snapshots afetados, a menos que o usuário especifique a opção `-r` para indicar que essa é a ação desejada. Se essa for a intenção e as consequências da perda de todos os snapshots intermediários forem compreendidas, o comando poderá ser emitido:
-[source,bash]
+[source,shell]
....
# zfs rollback -r mypool/var/tmp@my_recursive_snapshot
# zfs list -rt snapshot mypool/var/tmp
@@ -1714,7 +1714,7 @@ A saída de `zfs list -t snapshot` confirma que os snapshots intermediários for
Os snapshots são montados em um diretório oculto no conjunto de dados pai: [.filename]#.zfs/snapshots/snapshotname#. Por padrão, esses diretórios não serão exibidos mesmo quando um `ls -a` padrão for executado. Embora o diretório não seja exibido, ele está lá e pode ser acessado como qualquer diretório normal. A propriedade denominada `snapdir` controla se esses diretórios ocultos aparecem em uma listagem de diretórios. Definir a propriedade como `visible` permite que eles apareçam na saída do `ls` e de outros comandos que lidam com o conteúdo do diretório.
-[source,bash]
+[source,shell]
....
# zfs get snapdir mypool/var/tmp
NAME PROPERTY VALUE SOURCE
@@ -1728,7 +1728,7 @@ mypool/var/tmp snapdir hidden default
Arquivos individuais podem ser facilmente restaurados para um estado anterior, copiando-os do snapshot de volta para o conjunto de dados pai. A estrutura de diretórios abaixo de [.filename]#.zfs/snapshot# tem um diretório nomeado exatamente como os instantâneos criados anteriormente para facilitar sua identificação. No próximo exemplo, presume-se que um arquivo deve ser restaurado a partir do diretório [.filename]#.zfs# oculto, copiando-o do snapshot que continha a versão mais recente do arquivo:
-[source,bash]
+[source,shell]
....
# rm /var/tmp/passwd
# ls -a /var/tmp
@@ -1742,7 +1742,7 @@ passwd vi.recover
Quando o comando `ls .zfs/snapshot` foi emitido, a propriedade `snapdir` pode ter sido definida como oculta, mas ainda seria possível listar o conteúdo desse diretório. Cabe ao administrador decidir se esses diretórios serão exibidos. É possível exibi-los para determinados conjuntos de dados e impedi-los para outros. Copiar arquivos ou diretórios deste diretório [.filename]#.zfs/snapshot# oculto é bastante simples. Tentar o contrário, resulta neste erro:
-[source,bash]
+[source,shell]
....
# cp /etc/rc.conf /var/tmp/.zfs/snapshot/after_cp/
cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
@@ -1761,7 +1761,7 @@ Um clone é uma cópia de um snapshot que é tratado mais como um conjunto de da
Para demonstrar o recurso de clonagem, este conjunto de dados de exemplo é usado:
-[source,bash]
+[source,shell]
....
# zfs list -rt all camino/home/joe
NAME USED AVAIL REFER MOUNTPOINT
@@ -1772,7 +1772,7 @@ camino/home/joe@backup 0K - 87K -
Um uso típico de clones é experimentar um conjunto de dados específico, mantendo o snapshot em volta, para o caso de algo dar errado. Como os snapshots não podem ser alterados, um clone de leitura/gravação de um snapshot é criado. Depois que o resultado desejado é alcançado no clone, o clone pode ser promovido para se tornar um conjunto de dados e o sistema de arquivos antigo é removido. Isso não é estritamente necessário, pois o clone e o conjunto de dados podem coexistir sem problemas.
-[source,bash]
+[source,shell]
....
# zfs clone camino/home/joe@backup camino/home/joenew
# ls /usr/home/joe*
@@ -1789,7 +1789,7 @@ usr/home/joenew 1.3G 31k 1.3G 0% /usr/home/joenew
Depois que um clone é criado, ele é uma cópia exata do estado em que o conjunto de dados estava quando o snapshot foi criado. O clone agora pode ser alterado independentemente de seu conjunto de dados de origem. A única conexão entre os dois é o snapshot. O ZFS registra essa conexão na propriedade `origin`. Uma vez que a dependência entre o snapshot e o clone foi removida promovendo-se o clone usando `zfs promote`, a `origem` do clone é removida, pois agora ele é um conjunto de dados independente. Este exemplo demonstra isso:
-[source,bash]
+[source,shell]
....
# zfs get origin camino/home/joenew
NAME PROPERTY VALUE SOURCE
@@ -1802,7 +1802,7 @@ camino/home/joenew origin - -
Depois de fazer algumas alterações, como copiar o [.filename]#loader.conf# para o clone promovido, por exemplo, o diretório antigo torna-se obsoleto nesse caso. Em vez disso, o clone promovido pode substituí-lo. Isso pode ser conseguido por dois comandos consecutivos: `zfs destroy` no dataset antigo e `zfs rename` no clone para nomeá-lo como o conjunto de dados antigo (ele também poderia ter um nome totalmente diferente).
-[source,bash]
+[source,shell]
....
# cp /boot/defaults/loader.conf /usr/home/joenew
# zfs destroy -f camino/home/joe
@@ -1823,7 +1823,7 @@ Manter os dados em um único pool e em um único local o expõe a riscos como ro
Estes exemplos demonstram a replicação do ZFS com estes dois pools:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -1833,7 +1833,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
O pool chamado _mypool_ é o pool principal no qual os dados são gravados e lidos regularmente. Um segundo pool, _backup_ é usado como standby, caso o pool principal fique indisponível. Observe que esse failover não é feito automaticamente pelo ZFS, mas deve ser feito manualmente por um administrador do sistema, quando necessário. Um snapshot é usado para fornecer uma versão consistente do sistema de arquivos a ser replicado. Depois que um snapshot de _mypool_ tiver sido criado, ele poderá ser copiado para o pool _backup_. Apenas snapshots podem ser replicados. As alterações feitas desde o snapshot mais recente não serão incluídas.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@backup1
# zfs list -t snapshot
@@ -1843,7 +1843,7 @@ mypool@backup1 0 - 43.6M -
Agora que existe um snapshot, o `zfs send` pode ser usado para criar um fluxo representando o conteúdo do snapshot. Esse fluxo pode ser armazenado como um arquivo ou recebido por outro pool. O fluxo é gravado na saída padrão, mas deve ser redirecionado para um arquivo ou canal ou um erro será produzido:
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1
Error: Stream can not be written to a terminal.
@@ -1852,7 +1852,7 @@ You must redirect standard output.
Para fazer backup de um conjunto de dados com o `zfs send`, redirecione para um arquivo localizado no pool de backup montado. Assegure-se de que o pool tenha espaço livre suficiente para acomodar o tamanho do snapshot que está sendo enviado, o que significa todos os dados contidos no snapshot, não apenas as mudanças do snapshot anterior.
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1 > /backup/backup1
# zpool list
@@ -1865,7 +1865,7 @@ O `zfs send` transferiu todos os dados do snapshot chamado _backup1_ para o pool
Em vez de armazenar os backups como arquivos compactados, o ZFS pode recebê-los como um sistema de arquivos ativo, permitindo que os dados de backup sejam acessados diretamente. Para obter os dados reais contidos nesses fluxos, o `zfs receive` é usado para transformar os fluxos novamente em arquivos e diretórios. O exemplo a seguir combina o `zfs send` e o `zfs receive` usando um canal para copiar os dados de um pool para outro. Os dados podem ser usados diretamente no pool de recebimento após a conclusão da transferência. Um conjunto de dados só pode ser replicado para um conjunto de dados vazio.
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica1
# zfs send -v mypool@replica1 | zfs receive backup/mypool
@@ -1884,7 +1884,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
O `zfs send` também pode determinar a diferença entre dois snapshots e enviar apenas as diferenças entre os dois. Isso economiza espaço em disco e tempo de transferência. Por exemplo:
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica2
# zfs list -t snapshot
@@ -1899,7 +1899,7 @@ mypool 960M 50.2M 910M - - 0% 5% 1.00x ONLINE -
Um segundo snapshot chamado _replica2_ foi criado. Este segundo snapshot contém apenas as alterações feitas no sistema de arquivos entre o snapshot atual e o anterior, _replica1_. O uso do `zfs send -i` e a indicação do par de snapshots gera um fluxo de réplica incremental contendo apenas os dados que foram alterados. Isso só será bem-sucedido se o snapshot inicial já existir no lado do recebimento.
-[source,bash]
+[source,shell]
....
# zfs send -v -i mypool@replica1 mypool@replica2 | zfs receive /backup/mypool
send from @replica1 to mypool@replica2 estimated size is 5.02M
@@ -1942,14 +1942,14 @@ Essa configuração é necessária:
* Normalmente, os privilégios do usuário `root` são necessários para enviar e receber fluxos. Isso requer o login no sistema de recebimento como `root`. No entanto, o login como `root` vem desabilitado por padrão por motivos de segurança. O sistema <<zfs-zfs-allow,ZFS Delegation>> pode ser usado para permitir que um usuário não `root` em cada sistema execute as respectivas operações de envio e recebimento.
* No sistema de envio:
+
-[source,bash]
+[source,shell]
....
# zfs allow -u someuser send,snapshot mypool
....
* Para montar o pool, o usuário não privilegiado deve ser o dono do diretório e os usuários regulares devem poder montar sistemas de arquivos. No sistema de recebimento:
+
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -1961,7 +1961,7 @@ vfs.usermount: 0 -> 1
O usuário sem privilégios agora tem a capacidade de receber e montar conjuntos de dados, e o conjunto de dados _home_ pode ser replicado para o sistema remoto:
-[source,bash]
+[source,shell]
....
% zfs snapshot -r mypool/home@monday
% zfs send -R mypool/home@monday | ssh someuser@backuphost zfs recv -dvu recvpool/backup
@@ -1978,21 +1978,21 @@ Os exemplos a seguir pressupõem que os usuários já existam no sistema. Antes
Para impor uma cota de dataser de 10 GB para o [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
Para impor uma cota de referência de 10 GB para [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set refquota=10G storage/home/bob
....
Para remover uma cota de 10 GB do [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs set quota=none storage/home/bob
....
@@ -2006,14 +2006,14 @@ O formato geral é `userquota@_user_=_size_` e o nome do usuário deve estar em
Por exemplo, para impor uma cota de usuário de 50 GB para o usuário chamado _joe_:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
Para remover qualquer cota:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -2027,14 +2027,14 @@ O formato geral para definir uma cota de grupo é: `groupquota@_group_=_size_`.
Para definir a cota do grupo _firstgroup_ para 50 GB, use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
Para remover a cota do grupo _firstgroup_ ou para certificar-se de que uma não está definida, use:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -2045,7 +2045,7 @@ Para exibir a quantidade de espaço utilizada por cada usuário em um sistema de
Usuários com privilégios suficientes, e o `root`, podem listar a cota para [.filename]#storage/home/bob# usando:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -2057,14 +2057,14 @@ As <<zfs-term-reservation,reservas>> garantem uma quantidade mínima de espaço
O formato geral da propriedade `reservation` é `reservation=_size_`, portanto, para definir uma reserva de 10 GB em [.filename]#storage/home/bob#, use:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
Para cancelar qualquer reserva:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -2073,7 +2073,7 @@ O mesmo princípio pode ser aplicado à propriedade `refreservation` para defini
Este comando mostra todas as reservas ou atualizações existentes no [.filename]#storage/home/bob#:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -2088,7 +2088,7 @@ O ZFS oferece vários algoritmos de compactação diferentes, cada um com difere
O administrador pode monitorar a eficácia da compactação usando várias propriedades do conjunto de dados.
-[source,bash]
+[source,shell]
....
# zfs get used,compressratio,compression,logicalused mypool/compressed_dataset
NAME PROPERTY VALUE SOURCE
@@ -2111,14 +2111,14 @@ Quando ativado, a <<zfs-term-deduplication,deduplicação>> usa o checksum de ca
Para ativar a deduplicação, defina a propriedade `dedup` no pool de destino:
-[source,bash]
+[source,shell]
....
# zfs set dedup=on pool
....
Somente novos dados sendo gravados no pool serão desduplicados. Os dados que já foram gravados no pool não serão desduplicados simplesmente ativando essa opção. Um pool com uma propriedade de desduplicação ativada recentemente será semelhante a este exemplo:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2127,7 +2127,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
A coluna `DEDUP` mostra a taxa real de deduplicação para o pool. Um valor de `1.00x` mostra que os dados ainda não foram desduplicados. No próximo exemplo, a árvore de ports é copiada três vezes em diretórios diferentes no pool desduplicado criado acima.
-[source,bash]
+[source,shell]
....
# for d in dir1 dir2 dir3; do
> mkdir $d && cp -R /usr/ports $d &
@@ -2136,7 +2136,7 @@ A coluna `DEDUP` mostra a taxa real de deduplicação para o pool. Um valor de `
Dados redundantes são detectados e desduplicados:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2147,7 +2147,7 @@ A coluna `DEDUP` mostra um fator de `3.00x`. Várias cópias dos dados da árvor
A desduplicação nem sempre é benéfica, especialmente quando os dados em um pool não são redundantes. O ZFS pode mostrar uma possível economia de espaço ao simular a desduplicação em um pool existente:
-[source,bash]
+[source,shell]
....
# zdb -S pool
Simulated DDT histogram:
diff --git a/documentation/content/pt-br/books/porters-handbook/makefiles/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/makefiles/chapter.adoc
index 56fc585872..58ff21596d 100644
--- a/documentation/content/pt-br/books/porters-handbook/makefiles/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/makefiles/chapter.adoc
@@ -85,7 +85,7 @@ Ao atualizar um port, é possível usar o man:pkg-version[8]`-t` para verificar
====
`pkg version -t` recebe duas versões como argumentos, responderá com `<`, `=` ou `>` se a primeira versão for menor, igual ou maior que a segunda versão, respectivamente.
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.3
< <.>
@@ -217,7 +217,7 @@ DISTVERSION= 1.2p4
Ambos irão gerar um `PORTVERSION` com valor `1.2.p4` que é menor do que 1.2. man:pkg-version[8] pode ser usado para verificar esse fato:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2.p4 1.2
<
@@ -239,7 +239,7 @@ PORTVERSION= 1.2p4
Neste caso, usar `DISTVERSION` não é possível porque geraria uma versão `1.2.p4` o que seria menor que `1.2` e não maior.man:pkg-version[8] irá constatar isso:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.2.p4
> <.>
@@ -295,7 +295,7 @@ De tempos em tempos, um fornecedor de software ou um mantenedor de port do FreeB
Os resultados das comparações de números de versão nem sempre são óbvios. `pkg version` (veja man:pkg-version[8]) pode ser usado para testar a comparação de duas sequências de números de versão. Por exemplo:
-[source,bash]
+[source,shell]
....
% pkg version -t 0.031 0.29
>
@@ -1021,7 +1021,7 @@ BIND9 usa um esquema de versão que não é compatível com as versões de ports
A ordem na qual o framework do ports e o pkg ordenará as versões, é verificada usando o argumento `-t` do man:pkg-version[8]:
-[source,bash]
+[source,shell]
....
% pkg version -t 9.9.9 9.9.9.p1
> <.>
@@ -1438,7 +1438,7 @@ GH_TAGNAME= c472d66b
Isso cria um esquema de controle de versão que é incrementado com o tempo e que ainda é menor do que a versão `0` (veja <<makefile-versions-ex-pkg-version>> para mais informações do man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t g20140411 0
<
@@ -1453,7 +1453,7 @@ Isso significa que não será necessário usar o `PORTEPOCH` caso o upstream dec
====
Se a versão atual do software usa uma tag Git, e o port precisa ser atualizado para uma versão mais recente e intermediária, sem uma tag, use man:git-describe[1] para descobrir a versão a ser utilizada:
-[source,bash]
+[source,shell]
....
% git describe --tags f0038b1
v0.7.3-14-gf0038b1
@@ -1482,7 +1482,7 @@ USE_GITHUB= yes
Isso cria um esquema de versionamento que é incrementado com o tempo (bem, em cima de commits), e não entra em conflito com a criação de uma versão `0.7.4`. (Veja <<makefile-versions-ex-pkg-version>> para detalhes do man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t 0.7.3 0.7.3.14
<
@@ -1494,7 +1494,7 @@ Isso cria um esquema de versionamento que é incrementado com o tempo (bem, em c
======
Se o commit solicitado é o mesmo que uma tag, uma descrição mais curta é mostrada por padrão. A versão mais longa é equivalente:
-[source,bash]
+[source,shell]
....
% git describe --tags c66c71d
v0.7.3
@@ -1630,7 +1630,7 @@ Usando package:finances/moneymanagerex[] como exemplo, seu repositório GitHub
A única informação que falta nesse arquivo é a hash ou tag de commit para usar na versão. Esta informação é encontrada após a clonagem do repositório:
-[source,bash]
+[source,shell]
....
% git clone --recurse-submodules https://github.com/moneymanagerex/moneymanagerex.git
Cloning into 'moneymanagerex'...
@@ -4549,7 +4549,7 @@ O conteúdo mais comum de uma dessas variáveis ​​é o pacote base de outro
====
package:dns/bind99[] não pode ser instalado se package:dns/bind910[] está presente porque eles instalam os mesmos arquivos. Primeiro, reúna o pacote base para usar:
-[source,bash]
+[source,shell]
....
% make -C dns/bind99 -V PKGBASE
bind99
diff --git a/documentation/content/pt-br/books/porters-handbook/quick-porting/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/quick-porting/chapter.adoc
index fbecc74195..dfa9772b1b 100644
--- a/documentation/content/pt-br/books/porters-handbook/quick-porting/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/quick-porting/chapter.adoc
@@ -45,7 +45,7 @@ Estas etapas assumem que o software foi compilado de forma simples (out-of-the-b
====
Recomenda-se definir a variável `DEVELOPER` do man:make[1] em [.filename]#/etc/make.conf# antes de começar o trabalho com os ports.
-[source,bash]
+[source,shell]
....
# echo DEVELOPER=yes >> /etc/make.conf
....
@@ -248,7 +248,7 @@ Em seguida, crie um man:patch[1]. Assumindo que o port é chamado `oneko` e est
====
Adicione todos os arquivos com `svn add`. Utilize o `cd` e vá para a base da árvore de ports, para que os caminhos completos dos arquivos alterados sejam incluídos no diff, então gere o diff com `svn diff`. Por exemplo:
-[source,bash]
+[source,shell]
....
% svn add .
% cd ../..
@@ -283,7 +283,7 @@ Também é possível enviar ports usando um arquivo man:shar[1]. Usando o exempl
====
vá para o diretório acima, onde o diretório do port está localizado, e use `tar` para criar o arquivo shar:
-[source,bash]
+[source,shell]
....
% cd ..
% tar cf oneko.shar --format shar oneko
diff --git a/documentation/content/pt-br/books/porters-handbook/security/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/security/chapter.adoc
index f9415d48e7..28b6c991db 100644
--- a/documentation/content/pt-br/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/security/chapter.adoc
@@ -158,14 +158,14 @@ Como pré-requisito, instale uma nova versão do port package:security/vuxml[].
Primeiro, verifique se já existe uma entrada para esta vulnerabilidade. Se houvesse essa entrada, ela deveria corresponder com a versão anterior do pacote, `2013.58`:
-[source,bash]
+[source,shell]
....
% pkg audit dropbear-2013.58
....
Se não houver nenhuma, adicione uma nova entrada para esta vulnerabilidade.
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml
% make newentry
@@ -173,7 +173,7 @@ Se não houver nenhuma, adicione uma nova entrada para esta vulnerabilidade.
Verifique sua sintaxe e formatação:
-[source,bash]
+[source,shell]
....
% make validate
....
@@ -185,7 +185,7 @@ Pelo menos um desses pacotes precisa ser instalado:package:textproc/libxml2[], p
Verifique se a seção `<affected>` da entrada irá coincidir com os pacotes corretos:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln.xml dropbear-2013.58
....
@@ -194,7 +194,7 @@ Certifique-se de que a entrada não produza correspondências incorretas.
Agora, verifique se as versões corretas do pacote são correspondidas pela entrada:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln.xml dropbear-2013.58 dropbear-2013.59
dropbear-2012.58 is vulnerable:
diff --git a/documentation/content/pt-br/books/porters-handbook/slow-porting/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/slow-porting/chapter.adoc
index 50241e59f8..04164f8c10 100644
--- a/documentation/content/pt-br/books/porters-handbook/slow-porting/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/slow-porting/chapter.adoc
@@ -100,7 +100,7 @@ A menos que explicitamente declarado, os arquivos de patch, scripts e outros arq
Na preparação do port, arquivos que forem adicionados ou alterados podem ser gravados com man:diff[1] para posterior inclusão em um man:patch[1]. Fazer isso com um arquivo típico envolve salvar uma cópia do arquivo original antes de fazer qualquer alteração usando um sufixo [.filename]#.orig#.
-[source,bash]
+[source,shell]
....
% cp file file.orig
....
@@ -139,14 +139,14 @@ Patches são salvos em arquivos nomeados como [.filename]#patch-*# onde _*_ indi
Depois que o arquivo foi modificado, man:diff[1] é usado para registrar as diferenças entre a versão original e a modificada. `-u` faz com que o man:diff[1] produza diffs "unificados", a forma preferida.
-[source,bash]
+[source,shell]
....
% diff -u file.orig file > patch-pathname-file
....
Ao gerar patches para novos arquivos adicionados, `-N` é usado para dizer ao man:diff[1] para tratar o arquivo original inexistente como se existisse, mas estava vazio:
-[source,bash]
+[source,shell]
....
% diff -u -N newfile.orig newfile > patch-pathname-newfile
....
@@ -257,7 +257,7 @@ As vezes, existem muitos patches que são necessários para um recurso, neste ca
Crie um subdiretório em [.filename]#${PATCHDIR}#, e mova os patches para ele. Por exemplo:
-[source,bash]
+[source,shell]
....
% ls -l files/foo-patches
-rw-r--r-- 1 root wheel 350 Jan 16 01:27 patch-Makefile.in
diff --git a/documentation/content/pt-br/books/porters-handbook/special/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/special/chapter.adoc
index 0707e5594e..665f0fc4ca 100644
--- a/documentation/content/pt-br/books/porters-handbook/special/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/special/chapter.adoc
@@ -83,7 +83,7 @@ ${RLN} ${STAGEDIR}/var/cache/foo ${STAGEDIR}${PREFIX}/share/foo
Irá gerar:
-[source,bash]
+[source,shell]
....
% ls -lF ${STAGEDIR}${PREFIX}/lib
lrwxr-xr-x 1 nobody nobody 181 Aug 3 11:27 libfoo.so@ -> libfoo.so.42
@@ -529,7 +529,7 @@ GH_ACCOUNT= Aaronepower
Gerar uma [.filename]#distinfo# inicial:
-[source,bash]
+[source,shell]
....
% make makesum
=> Aaronepower-tokei-v7.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -540,7 +540,7 @@ Aaronepower-tokei-v7.0.2_GH0.tar.gz 45 kB 239 kBps 00m00s
Agora o arquivo de distribuição está pronto para uso e podemos ir em frente e extrair as dependências crate do pacote [.filename]#Cargo.lock#:
-[source,bash]
+[source,shell]
....
% make cargo-crates
CARGO_CRATES= aho-corasick-0.6.4 \
@@ -581,7 +581,7 @@ CARGO_CRATES= aho-corasick-0.6.4 \
O [.filename]#distinfo# precisa ser regenerado para conter todos os arquivos de distribuição dos crates:
-[source,bash]
+[source,shell]
....
% make makesum
=> rust/crates/aho-corasick-0.6.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -654,7 +654,7 @@ PULSEAUDIO_VARS= CARGO_FEATURES+=pulseaudio_backend
====
Os crates têm suas próprias licenças. É importante saber o que elas são ao adicionar o bloco `LICENSE` para o port (ver<<licenses>>). O target auxiliar `cargo-crates-licenses` tentará listar todas as licenças de todos os crates definidos no `CARGO_CRATES`.
-[source,bash]
+[source,shell]
....
% make cargo-crates-licenses
aho-corasick-0.6.4 Unlicense/MIT
@@ -736,7 +736,7 @@ GH_ACCOUNT= motemen
Gerar uma [.filename]#distinfo# inicial:
-[source,bash]
+[source,shell]
....
% make makesum
===> License MIT accepted by the user
@@ -748,7 +748,7 @@ motemen-ghq-v0.12.5_GH0.tar.gz 32 kB 177 kBps 00s
Agora o arquivo de distribuição está pronto para uso e podemos extrair as dependências necessárias de módulos Go. Esta etapa requer a instalação do package:ports-mgmt/modules2tuple[]:
-[source,bash]
+[source,shell]
....
% make gomod-vendor
[...]
@@ -792,7 +792,7 @@ GH_TUPLE= Songmu:gitconfig:v0.0.2:songmu_gitconfig/vendor/github.com/Songmu/gitc
O [.filename]#distinfo# precisa ser gerado novamente para conter todos os arquivos de distribuição:
-[source,bash]
+[source,shell]
....
% make makesum
=> Songmu-gitconfig-v0.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -859,7 +859,7 @@ USES= cabal
Esse Makefile mínimo nos permite baixar o arquivo de distribuição:
-[source,bash]
+[source,shell]
....
% make cabal-extract
[...]
@@ -872,7 +872,7 @@ Unpacking to ShellCheck-0.6.0/
Agora, temos o arquivo de descrição do pacote ShellCheck.cabal, que permite baixar todas as dependências do pacote, incluindo as transitivas:
-[source,bash]
+[source,shell]
....
% make cabal-extract-deps
[...]
@@ -889,7 +889,7 @@ Downloading dlist-0.8.0.7
Como efeito colateral, as dependências do pacote também são compiladas, portanto, o comando pode levar algum tempo. Uma vez feito, uma lista de dependências necessárias pode ser gerada:
-[source,bash]
+[source,shell]
....
% make make-use-cabal
USE_CABAL=QuickCheck-2.12.6.1 \
@@ -900,7 +900,7 @@ integer-logarithms-1.0.3 \
Pacotes Haskell podem conter revisões, assim como nos ports do FreeBSD. As revisões podem afetar apenas os arquivos [.filename]#.cabal#, mas ainda é importante extraí-los. Para verificar os itens `USE_CABAL` quanto a atualizações de revisão disponíveis, execute o seguinte comando:
-[source,bash]
+[source,shell]
....
% make make-use-cabal-revs
USE_CABAL=QuickCheck-2.12.6.1_1 \
@@ -913,7 +913,7 @@ Observe os números de versão adicionais após o símbolo `_`. Coloque a lista
Finalmente, o [.filename]#distinfo# precisa ser gerado novamente para conter todos os arquivos de distribuição:
-[source,bash]
+[source,shell]
....
% make makesum
=> ShellCheck-0.6.0.tar.gz doesn't seem to exist in /usr/local/poudriere/ports/git/distfiles/cabal.
@@ -4219,7 +4219,7 @@ O port package:devel/rclint[] pode verificar a maioria destes itens, mas não su
. Certifique-se de que não há um `KEYWORD: FreeBSD` presente. Isto não foi necessário nem desejável durante anos. Isto também é uma indicação de que o novo script foi copiado/colado de um script antigo, portanto, um cuidado extra deve ser dado à revisão.
. Se o script usa uma linguagem interpretada como o `perl`, o `python` ou o `ruby`, certifique-se de que o `command_interpreter` está definido adequadamente, por exemplo, para o Perl, adicione `PERL=${PERL}` para a `SUB_LIST` e utilize `%%PERL%%`. De outra forma,
+
-[source,bash]
+[source,shell]
....
# service name stop
....
diff --git a/documentation/content/pt-br/books/porters-handbook/testing/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/testing/chapter.adoc
index c8855d05d5..6278151654 100644
--- a/documentation/content/pt-br/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/testing/chapter.adoc
@@ -60,7 +60,7 @@ O programa package:ports-mgmt/porttools[] faz parte da Coleção de Ports.
O `port` é o script front-end, que pode ajudar a simplificar o trabalho de teste. Sempre que um novo port ou uma atualização de um já existente precisar de teste, use `port test` para testar o port, incluindo a verificação <<testing-portlint,`portlint`>>. Este comando também detecta e lista todos os arquivos que não estão listados no [.filename]#pkg-plist#. Por exemplo:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -78,7 +78,7 @@ Evitar o uso do caminho [.filename]#/usr/local# codificado no fonte tornam o por
Verifique se o aplicativo não está instalando arquivos em [.filename]#/usr/local# ao invés de `PREFIX`. Um teste rápido para esses caminhos codificados é:
-[source,bash]
+[source,shell]
....
% make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
@@ -87,7 +87,7 @@ Se alguma coisa for instalada fora do `PREFIX`, o processo de criação de pacot
Além disso, vale a pena verificar o mesmo em relação ao suporte a diretórios stage (veja <<staging>>):
-[source,bash]
+[source,shell]
....
% make stage && make check-plist && make stage-qa && make package
....
@@ -141,14 +141,14 @@ Os exemplos nesta seção mostram um layout de arquivo padrão, como padrão no
O Poudriere está disponível na árvore de ports em package:ports-mgmt/poudriere[]. Ele pode ser instalado usando o man:pkg[8] ou a partir do ports:
-[source,bash]
+[source,shell]
....
# pkg install poudriere
....
ou
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/ports-mgmt/poudriere install clean
....
@@ -197,14 +197,14 @@ O servidor de onde as jails são instaladas e atualizadas ao usar o Subversion.
Crie as jails de base que serão usadas pelo Poudriere para as compilações:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 113Ramd64 -v 11.3-RELEASE -a amd64
....
Baixe a versão `11.3-RELEASE` para `amd64` do servidor FTP dado por `FREEBSD_HOST` dentro do [.filename]#poudriere.conf#, crie o sistema de arquivos com zfs em `tank/poudriere/jails/113Ramd64`, monte-o em [.filename]#/poudriere/jails/113Ramd64# e extrai os tarballs `11.3-RELEASE` neste sistema de arquivos.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11 -a i386 -m svn+https
....
@@ -216,7 +216,7 @@ Criado o `tank/poudriere/jaulas/11i386` monte-o em [.filename]#/poudriere/jails/
Se uma determinada revisão do Subversion é necessária, anexe ela à string de versão. Por exemplo:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11@123456 -a i386 -m svn+https
....
@@ -232,7 +232,7 @@ Embora seja possível compilar uma versão mais nova do FreeBSD em uma versão m
====
Para criar uma jail Poudriere para o `13.0-CURRENT`:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 13amd64 -v head -a amd64 -m svn+https
....
@@ -248,7 +248,7 @@ O protocolo padrão `svn` funciona normalmente, mas não é muito seguro. Usar `
Uma lista de jails atualmente conhecidas pelo Poudriere podem ser mostradas com `poudriere jail -l`:
-[source,bash]
+[source,shell]
....
# poudriere jail -l
JAILNAME VERSION ARCH METHOD
@@ -261,7 +261,7 @@ JAILNAME VERSION ARCH METHOD
Gerenciar atualizações é muito simples. O comando:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -j JAILNAME
....
@@ -272,7 +272,7 @@ atualiza a jail especificada para a versão mais recente disponível. Para relea
====
Para jails que empregam um método `svn+_*_`, é útil adicionar `-J _NumberOfParallelBuildJobs_` para acelerar a compilação aumentando o número de trabalhos de compilação paralelos utilizados. Por exemplo, se a máquina de compilação tiver 6 CPUs, use:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -J 6 -j JAILNAME
....
@@ -284,21 +284,21 @@ Para jails que empregam um método `svn+_*_`, é útil adicionar `-J _NumberOfPa
Existem várias maneiras de usar árvores de ports no Poudriere. A maneira mais direta é o Poudriere criar uma árvore de ports padrão para si mesmo usando man:portsnap[8] (se estiver executando FreeBSD 12.1 ou 11.4) ou Subversion (se estiver executando FreeBSD-CURRENT):
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m portsnap
....
ou
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m svn+https
....
Estes comandos criam `tank/poudriere/ports/default`, monta-o em [.filename]#/poudriere/ports/default# e o povoa usando o man:portsnap[8] ou Subversion. Depois disso, ele é incluído na lista de árvores de ports conhecidas:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -329,21 +329,21 @@ Dependendo do fluxo de trabalho, pode ser extremamente útil usar árvores de po
* Para o Poudriere anterior à versão 3.1.20:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -F -f none -M /work/ports -p development
....
* Para o Poudriere versão 3.1.20 e posterior:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m null -M /work/ports -p development
....
Isto será listado na tabela de árvores conhecidas:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -360,7 +360,7 @@ O traço ou `null` na coluna `METHOD` significa que o Poudriere nunca irá atual
Tão simples quanto com as jails descritas anteriormente:
-[source,bash]
+[source,shell]
....
# poudriere ports -u -p PORTSTREE
....
@@ -379,7 +379,7 @@ Depois que as jails e as árvores de ports foram configuradas, o resultado das m
Por exemplo, modificações locais no port package:www/firefox[] localizado em [.filename]#/work/ports/www/firefox# pode ser testado na jail 11.3-RELEASE criada anteriormente:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -o www/firefox
....
@@ -392,14 +392,14 @@ O nome do diretório `113Ri386-development` é derivado dos argumentos para `-j`
Por padrão, o Poudriere limpa as jails e deixa os arquivos de log nos diretórios mencionados acima. Para facilitar a investigação, as jails podem ser mantidas em execução após a compilação, adicionando a opção `-i` ao `testport`:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -i -o www/firefox
....
Depois que a compilação é concluída, e independentemente de ter sido bem-sucedida, um shell é fornecido dentro da jail. O shell é usado para investigações adicionais. O Poudriere pode ser dito para deixar a jail em execução após a conclusão da compilação com `-i`. O Poudriere mostrará o comando para ser executado quando a jail não for mais necessária. E então é possível fazer um man:jexec[8] para dentro dele:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -I -o www/firefox
[...]
@@ -416,7 +416,7 @@ Depois que a compilação é concluída, e independentemente de ter sido bem-suc
Uma parte integral da infraestrutura de compilação de ports do FreeBSD é a capacidade de ajustar os ports as preferências pessoais por meio de opções. Elas podem ser testadas com o Poudriere também. Adicionando a opção `-c`:
-[source,bash]
+[source,shell]
....
# poudriere testport -c -o www/firefox
....
@@ -435,7 +435,7 @@ Para todas as ações envolvendo builds, um então chamado _conjunto_ pode ser e
Para usar sets, o Poudriere espera uma estrutura de diretórios existente semelhante a `PORT_DBDIR`, o padrão é [.filename]#/var/db/ports# no seu diretório de configuração. Este diretório é então man:nullfs[5]-montado nas jails onde os ports e suas dependências são compilados. Normalmente, um ponto de partida adequado pode ser obtido copiando de forma recursiva o `PORT_DBDIR` para [.filename]#/usr/local/etc/poudriere.d/jailname-portname-setname-options#. Isso é descrito em detalhes em man:poudriere[8]. Por exemplo, para testar o package:www/firefox[] em um conjunto específico chamado `devset`, adicione o parâmetro `-z devset` ao comando testport:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -454,7 +454,7 @@ Desta lista, o Poudriereman:nullfs[5]-monta a _primeira árvore existente_ de di
Depois que a estrutura de diretório para um conjunto é fornecida, as opções para um port específico podem ser alteradas. Por exemplo:
-[source,bash]
+[source,shell]
....
# poudriere options -c www/firefox -z devset
....
@@ -471,7 +471,7 @@ Poudriere é muito flexível na configuração das opções. Elas podem ser conf
Semelhante ao uso de conjuntos (sets), o Poudriere também usará um [.filename]#make.conf# personalizado se for fornecido. Nenhum argumento de linha de comando especial é necessário. Em vez disso, o Poudriere procura por arquivos existentes que correspondam a um esquema de nomes derivado da linha de comando. Por exemplo:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -511,14 +511,14 @@ Observe o uso de `+=` de modo que, se a variável já estiver definida no [.file
Poudriere vem com um mecanismo embutido para remover distfiles desatualizados que não são mais usados ​​por qualquer port de uma determinada árvore. O comando
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree
....
irá escanear a pasta distfiles, `DISTFILES_CACHE` dentro do [.filename]#poudriere.conf#, contra a árvore de ports dada pelo argumento `-p _portstree_` e solicitar a remoção desses distfiles. Para pular o prompt e remover incondicionalmente todos os arquivos não utilizados, o argumento `-y` pode ser adicionado:
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree -y
....
diff --git a/documentation/content/pt-br/books/porters-handbook/upgrading/chapter.adoc b/documentation/content/pt-br/books/porters-handbook/upgrading/chapter.adoc
index eed6848802..009af6ed4a 100644
--- a/documentation/content/pt-br/books/porters-handbook/upgrading/chapter.adoc
+++ b/documentation/content/pt-br/books/porters-handbook/upgrading/chapter.adoc
@@ -46,7 +46,7 @@ Se o mantenedor lhe pedir para fazer a atualização ou não houver mantenedor,
Para criar um `diff` adequado para um único patch, copie o arquivo que precisa de patching para [.filename]#something.orig#, salve as alterações em [.filename]#something# e depois crie o patch:
-[source,bash]
+[source,shell]
....
% diff -u something.orig something > something.diff
....
@@ -83,7 +83,7 @@ Agora que tudo isso foi feito, leia sobre como manter-se atualizado <<keeping-up
Quando possível, envie por favor um man:svn[1]diff. Eles são mais fáceis de manusear do que os diffs entre diretórios "novos e antigos". Nele é mais fácil de ver o que mudou e também é mais fácil de atualizar o diff no caso de algo ter sido modificado na Coleção de Ports desde que o diff foi gerado, ou no caso do committer pedir que algo seja corrigido. Além disso, um patch gerado com `svn diff` pode ser facilmente aplicado com `svn patch` e irá economizar algum tempo para o committer.
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% svn co https://svn.FreeBSD.org/ports/head/dns/pdnsd <.>
@@ -95,7 +95,7 @@ Quando possível, envie por favor um man:svn[1]diff. Eles são mais fáceis de m
Enquanto estiver no diretório de ports, faça as alterações necessárias. Se você adicionar, copiar, mover ou remover um arquivo, use o `svn` para registrar essas alterações:
-[source,bash]
+[source,shell]
....
% svn add new_file
% svn copy some_file file_copy
@@ -105,7 +105,7 @@ Enquanto estiver no diretório de ports, faça as alterações necessárias. Se
Certifique-se de verificar o port usando a lista de verificação <<porting-testing>> e <<porting-portlint>>.
-[source,bash]
+[source,shell]
....
% svn status
% svn update <.>
@@ -134,7 +134,7 @@ E se o status `C` for exibido como resultado de um `svn update`, isso significa
O último passo é fazer um man:diff[1] unificado das mudanças:
-[source,bash]
+[source,shell]
....
% svn diff > ../`make -VPKGNAME`.diff
....
@@ -168,14 +168,14 @@ YYYYMMDD:
Quando incluir instruções exatas para o portmaster, portupgrade e/ou instruções ao pkg, por favor, certifique-se de escapar o shell escaping corretamente. Por exemplo, _não_ use:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml* docbook-sk* docbook[2345]??-* docbook-4*
....
Como mostrado, o comando só irá funcionar com bourne shells. Em vez disso, use o formato abaixo, que funcionará com ambos bourne shell e c-shell:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml\* docbook-sk\* docbook\[2345\]\?\?-\* docbook-4\*
....
@@ -209,7 +209,7 @@ Quaisquer alterações devem ser validadas com `Tools/scripts/MOVEDlint.awk`.
Se estiver usando um diretório de ports diferente de [.filename]#/usr/ports#, use:
-[source,bash]
+[source,shell]
....
% cd /home/user/ports
% env PORTSDIR=$PWD Tools/scripts/MOVEDlint.awk
diff --git a/documentation/content/ru/articles/committers-guide/_index.adoc b/documentation/content/ru/articles/committers-guide/_index.adoc
index 482bb63234..18dd58d8fe 100644
--- a/documentation/content/ru/articles/committers-guide/_index.adoc
+++ b/documentation/content/ru/articles/committers-guide/_index.adoc
@@ -184,7 +184,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
. Извлечение нужного модуля из репозитория: команда `co` или `checkout`.
+
-[source,bash]
+[source,shell]
....
% cvs checkout shazam
....
@@ -210,7 +210,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
** Извлечь модуль [.filename]#miscfs#, расположенный в каталоге репозитория [.filename]#src/sys/miscfs#:
+
-[source,bash]
+[source,shell]
....
% cvs co miscfs
....
@@ -218,7 +218,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
После выполнения вы получите каталог [.filename]#miscfs#, содержащий подкаталоги [.filename]#CVS#, [.filename]#deadfs#, [.filename]#devfs# и т.д. Один из них ([.filename]#linprocfs#) будет пустым.
** Извлечь те же файлы, но с полным путем:
+
-[source,bash]
+[source,shell]
....
% cvs co src/sys/miscfs
....
@@ -226,7 +226,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Теперь у вас есть каталог [.filename]#src#, содержащий подкаталоги [.filename]#CVS# и [.filename]#sys#. Каталог [.filename]#src/sys# содержит подкаталоги [.filename]#CVS# и [.filename]#miscfs# и т.д.
** Извлечь те же файлы, удалив при этом пустые подкаталоги:
+
-[source,bash]
+[source,shell]
....
% cvs co -P miscfs
....
@@ -234,7 +234,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Вы получите каталог [.filename]#miscfs# с подкаталогами [.filename]#CVS#, [.filename]#deadfs#, [.filename]#devfs#... однако без подкаталога [.filename]#linprocfs#, поскольку он не содержит файлов.
** Извлечь каталог [.filename]#miscfs# без подкаталогов:
+
-[source,bash]
+[source,shell]
....
% cvs co -l miscfs
....
@@ -242,7 +242,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Теперь в каталоге [.filename]#miscfs# будет только один подкаталог [.filename]#CVS#.
** Извлечь модуль [.filename]#miscfs# из ветви 6.X:
+
-[source,bash]
+[source,shell]
....
% cvs co -rRELENG_6 miscfs
....
@@ -250,7 +250,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Теперь вы можете изменить исходные тексты и произвести коммит в эту ветвь.
** Извлечь модуль [.filename]#miscfs# по состоянию на момент выхода 6.0-RELEASE:
+
-[source,bash]
+[source,shell]
....
% cvs co -rRELENG_6_0_0_RELEASE miscfs
....
@@ -258,7 +258,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
В этом случае вы не сможете внести изменения в репозиторий, поскольку `RELENG_6_0_0_RELEASE` описывает момент времени, а не ветвь разработки.
** Извлечь модуль [.filename]#miscfs# по состоянию на 15 января 2000 г:
+
-[source,bash]
+[source,shell]
....
% cvs co -D'01/15/2000' miscfs
....
@@ -266,7 +266,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Как и в предыдущем случае, изменения не могут быть записаны.
** Извлечь модуль [.filename]#miscfs#, каким он был неделю назад:
+
-[source,bash]
+[source,shell]
....
% cvs co -D'last week' miscfs
....
@@ -278,7 +278,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Аргументы опций `-D` and `-r` сохраняются (являются "клейкими", sticky), например, при последующем использовании команды `cvs update`.
. Проверка состояния извлеченных файлов: команда `status`.
+
-[source,bash]
+[source,shell]
....
% cvs status shazam
....
@@ -308,7 +308,7 @@ alias scvs cvs -d user@ncvs.FreeBSD.org:/home/ncvs
Кроме того, будут показаны локальная версия и дата модификации, версия и дата последней из доступных (если вы применяли "клейкие" дату, тег или ветвь, последняя доступная версия может отличаться от вашей), а также клейкие теги, временные метки и опции.
. Обновление извлеченного модуля: команда `update`.
+
-[source,bash]
+[source,shell]
....
% cvs update shazam
....
@@ -372,14 +372,14 @@ CVS выводит букву `M` перед именем всех локаль
** Извлеките текущую версию модуля [.filename]#shazam# для ветви FreeBSD-STABLE:
+
-[source,bash]
+[source,shell]
....
% cvs co -rRELENG_6 shazam
....
** Приложите изменения между версиями 1.14 и 1.15:
+
-[source,bash]
+[source,shell]
....
% cvs update -j1.14 -j1.15 shazam/shazam.c
....
@@ -387,7 +387,7 @@ CVS выводит букву `M` перед именем всех локаль
Почти наверняка вы получите конфликт в строках, содержащих идентификатор файла (`$Id: article.xml,v 1.19 2007-05-09 06:08:50 bvs Exp $` или, в случае FreeBSD, `$FreeBSD: head/ru_RU.KOI8-R/articles/committers-guide/article.xml 45050 2014-06-13 14:53:24Z taras $`). Вам потребуется отредактировать файл для устранения конфликта (в данном случае достаточно убрать строки-разделители и вторую строку `$Id: article.xml,v 1.19 2007-05-09 06:08:50 bvs Exp $`, оставив лишь строку с `$Id: article.xml,v 1.19 2007-05-09 06:08:50 bvs Exp $` для FreeBSD-STABLE).
. Просмотр изменение между локальной версией и версией из репозитория: команда `diff`.
+
-[source,bash]
+[source,shell]
....
% cvs diff shazam
....
@@ -411,7 +411,7 @@ CVS выводит букву `M` перед именем всех локаль
Вы можете сравнивать текущее состояние с версией, отличающейся от той, с которой вы извлекали файл, указав опцию `-r` или `-D` подобно командам `checkout` и `update`, или даже получить список изменений между любыми двумя версиями (вне зависимости от того, что лежит в вашей локальной копии), указав _две_ версии при помощи опций `-r` или `-D`.
. Просмотр журнала изменений: команда `log`.
+
-[source,bash]
+[source,shell]
....
% cvs log shazam
....
@@ -422,7 +422,7 @@ CVS выводит букву `M` перед именем всех локаль
+
Команда `log` используется для просмотра истории одного или нескольких файлов в том виде, как она сохранена в репозитории CVS. Используя опцию `-r__rev__`, вы можете посмотреть журнальное сообщение к одной определенной версии:
+
-[source,bash]
+[source,shell]
....
% cvs log -r1.2 shazam
....
@@ -430,7 +430,7 @@ CVS выводит букву `M` перед именем всех локаль
Эта команда покажет журнальное сообщение для версии `1.2` файла [.filename]#shazam# (или для версий `1.2` каждого из файлов в каталоге [.filename]#shazam#).
. Кто что делал: команда `annotate`. Эта команда показывает перед каждой строкой указанного файла (файлов) имя пользователя, вносившего последние изменения в эту строку.
+
-[source,bash]
+[source,shell]
....
% cvs annotate shazam
....
@@ -501,14 +501,14 @@ package:textproc/cdiff[]
+
Просто используйте его вместо man:more[1] или man:less[1]:
+
-[source,bash]
+[source,shell]
....
% cvs diff -Nu shazam | cdiff
....
+
Помимо этого, некоторые текстовые редакторы, такие как man:vim[1] (package:editors/vim[]) поддерживают цветовую синтаксическую разметку многих типов файлов, в том числе файлов изменений и журналов CVS/RCS.
+
-[source,bash]
+[source,shell]
....
% echo "syn on" >> ~/.vimrc
% cvs diff -Nu shazam | vim -
@@ -518,7 +518,7 @@ package:textproc/cdiff[]
. CVS - старая, загадочная и порой слабо предсказуемая в своем поведении программа. Ни один человек не способен удержать в голове все тонкости ее работы, так что не бойтесь спрашивать совета у Искусственного Интеллекта (а именно `{cvsadm}`).
. Не оставляйте компьютер в процессе работы команды `cvs commit` (в редакторе при написании журнального сообщения) слишком надолго (более чем на 2-3 минуты). Эта команда блокирует каталог репозитория, в котором она запущена, и не позволяет другим разработчикам изменять его содержимое. Если вам нужно написать длинное журнальное сообщение, подготовьте его заранее и вставьте в редакторе во время выполнения команды `cvs commit`, либо запишите его в файл и используйте опцию CVS `-F`:
+
-[source,bash]
+[source,shell]
....
% vi logmsg
% cvs ci -F logmsg shazam
@@ -541,7 +541,7 @@ Host pcvs.FreeBSD.org
+
Затем откройте постоянное соединение с машиной repoman:
+
-[source,bash]
+[source,shell]
....
% ssh -fNM ncvs.FreeBSD.org
....
@@ -674,7 +674,7 @@ gnats/[a-ce-z]*
. Установите порт GNATS из [.filename]#ports/databases/gnats#. После установки вы обнаружите различные служебные каталоги в дереве [.filename]#$PREFIX/shared/gnats#.
. Создайте символьные ссылки на синхронизированные каталоги GNATS в служебный каталог GNATS:
+
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/gnats/gnats-db
# ln -s /usr/gnats/docs
@@ -695,7 +695,7 @@ docs:Documentation Bug:freebsd-doc:
....
. Запустите [.filename]#$PREFIX/libexec/gnats/gen-index# для создания индекса. Вывод этой команды должен быть перенаправлен в файл [.filename]#$PREFIX/shared/gnats/gnats-db/gnats-adm/index#. Эту операцию можно выполнять периодически при помощи man:cron[8] или запускать man:cvsup[1] из скрипта, который затем сгенерирует новый индекс:
+
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/gnats/gen-index \
> /usr/local/shared/gnats/gnats-db/gnats-adm/index
@@ -703,7 +703,7 @@ docs:Documentation Bug:freebsd-doc:
. Протестируйте созданную конфигурацию запросом к базе данных GNATS. Следующая команда выведет список открытых сообщений об ошибках в категории `docs`:
+
-[source,bash]
+[source,shell]
....
# query-pr -c docs -s open
....
@@ -935,7 +935,7 @@ FreeBSD является хорошо портируемой операцион
Проверьте его. Желательно убедиться в том, что порт и соответствующий пакет корректно собираются. Рекомендуемая последовательность действий такова:
-[source,bash]
+[source,shell]
....
# make install
# make package
@@ -983,7 +983,7 @@ FreeBSD является хорошо портируемой операцион
[example]
====
-[source,bash]
+[source,shell]
....
% cd sys/alpha/include
% cvs update -rRELENG_6
diff --git a/documentation/content/ru/articles/contributing/_index.adoc b/documentation/content/ru/articles/contributing/_index.adoc
index 2f45bfa963..0e13620842 100644
--- a/documentation/content/ru/articles/contributing/_index.adoc
+++ b/documentation/content/ru/articles/contributing/_index.adoc
@@ -117,14 +117,14 @@ http://wiki.freebsd.org/IdeasPage[Список проектов и идей дл
К примеру:
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
или
-[source,bash]
+[source,shell]
....
% diff -u -r -N olddir newdir
....
diff --git a/documentation/content/ru/articles/cups/_index.adoc b/documentation/content/ru/articles/cups/_index.adoc
index 411ebe522f..92abbf9785 100644
--- a/documentation/content/ru/articles/cups/_index.adoc
+++ b/documentation/content/ru/articles/cups/_index.adoc
@@ -47,7 +47,7 @@ toc::[]
Для установки CUPS используя пакет, запустите на выполнение такую команду:
-[source,bash]
+[source,shell]
....
# pkg install cups
....
@@ -92,7 +92,7 @@ application/octet-stream
По окончанию внесения изменений службы man:devfs[8] и CUPS необходимо перезапустить, для чего перезагрузите операционную систему или выполните от пользователя `root` следующие две команды:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devfs restart
# /usr/local/etc/rc.d/cupsd restart
diff --git a/documentation/content/ru/articles/fonts/_index.adoc b/documentation/content/ru/articles/fonts/_index.adoc
index 487fa9910d..068a415ed4 100644
--- a/documentation/content/ru/articles/fonts/_index.adoc
+++ b/documentation/content/ru/articles/fonts/_index.adoc
@@ -105,7 +105,7 @@ font8x8="iso-8x8" # font 8x8 from /usr/shared/syscons/fonts/* (or NO).
Команда для переключения режимов называется man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
% vidcontrol VGA_80x60
....
@@ -129,7 +129,7 @@ X11 может использовать файлы шрифтов в форма
Существует каталог по имени [.filename]#Type1#. Самым простым способом добавить новый шрифт заключается в помещении его в этот каталог. Но лучше хранить все новые шрифты в отдельном каталоге и использовать символические ссылки для добавляемых шрифтов. Это позволяет легко управлять отдельными добавляемыми шрифтами, не путая их с изначально поставляемыми. Например:
-[source,bash]
+[source,shell]
....
Создаем каталог для файлов шрифтов
@@ -150,7 +150,7 @@ X11 может использовать файлы шрифтов в форма
Теперь, чтобы использовать новый шрифт с X11, нужно дать доступ к файлу шрифтов и обновить файлы и именами шрифтов. Имена шрифтов в X11 выглядят следующим образом:
-[source,bash]
+[source,shell]
....
-bitstream-charter-medium-r-normal-xxx-0-0-0-0-p-0-iso8859-1
| | | | | | | | | | | | \ \
@@ -167,7 +167,7 @@ X11 может использовать файлы шрифтов в форма
Для каждого нового файла шрифтов необходимо создать новое имя. Если у вас есть какая-либо информация из сопроводительной документации к шрифту, то она может служить основой для создания имени. Если информации нет, то можно получить некоторую информацию от использования программы man:strings[1] над файлом шрифта. Например:
-[source,bash]
+[source,shell]
....
% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
@@ -198,7 +198,7 @@ end readonly def
Пользуясь этой информацией, можно составить возможное имя:
-[source,bash]
+[source,shell]
....
-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
....
@@ -228,7 +228,7 @@ proportional или monospaced. Используется __proportional__, по
Все эти имена произвольны, но нужно стараться следовать существующим соглашениям. В программе для X11 на шрифт ссылаются по имени с применением шаблонов, так что в выбираемом имени это должно учитываться. Можно начать с простого использования
-[source,bash]
+[source,shell]
....
...-normal-r-normal-...-p-...
....
@@ -237,7 +237,7 @@ proportional или monospaced. Используется __proportional__, по
Итак, завершая наш пример:
-[source,bash]
+[source,shell]
....
Делаем шрифт доступным для X11
% cd /usr/X11R6/lib/X11/fonts/Type1
@@ -274,7 +274,7 @@ fonts.dir...
Ghostscript ссылается на шрифт через свой файл [.filename]#Fontmap#. Он должен быть подправлен так же, как и файл [.filename]#fonts.dir# в случае X11. Ghostscript может использовать файлы шрифтов в форматах [.filename]#.pfa# или [.filename]#.pfb#. Взяв шрифт из предыдущего примера, его можно использовать с Ghostscript вот так:
-[source,bash]
+[source,shell]
....
Помещаем файл со шрифтом в каталог со шрифтами Ghostscript
% cd /usr/local/shared/ghostscript/fonts
@@ -314,7 +314,7 @@ GS>quit
Первой утилитой является `afmtodit`. Обычно она не устанавливается, так что она должна быть получена из дистрибутива с исходными текстами. Я обнаружил, что нужно изменить первую строку файла, что я делал так:
-[source,bash]
+[source,shell]
....
% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
@@ -326,7 +326,7 @@ GS>quit
Эта утилита создаст файл шрифтов для Groff из файла метрик (с окончанием [.filename]#.afm#). Продолжая с нашим примером:
-[source,bash]
+[source,shell]
....
Многие файлы .afm в формате Mac
... строки разделены символом ^M. Нам нужно преобразовать их в
@@ -344,7 +344,7 @@ GS>quit
Если в системе для управления принтерами используется программа Ghostscript, то больше ничего делать не нужно. Однако, если используются настоящие PostScript(R)-принтеры, то для использования шрифта его нужно загрузить в принтер (если только в принтере шрифт showboat не встроен или не имеется на диске со шрифтами). Последний шаг заключается в создании загружаемого шрифта. Утилита `pfbtops` используется для создания шрифта в формате [.filename]#.pfa#, а файл для [.filename]#загрузки# изменяется для указания нового шрифта. Файл для [.filename]#загрузки# должен ссылаться на внутреннее имя шрифта. Оно может быть легко определено из файла шрифтов groff, как это показывается здесь:
-[source,bash]
+[source,shell]
....
Создание файла шрифта .pfa
% pfbtops /usr/local/shared/fonts/type1/showboat.pfb >showboat.pfa
@@ -352,7 +352,7 @@ GS>quit
Конечно, если файл [.filename]#.pfa# уже имеется, для его использования создаем символическую ссылку на него.
-[source,bash]
+[source,shell]
....
Получение внутреннего имени шрифта
% fgrep internalname SHOWBOAT
@@ -367,7 +367,7 @@ Showboat showboat.pfa
Для тестирования шрифта:
-[source,bash]
+[source,shell]
....
% cd /tmp
% cat >example.t <<EOF
@@ -435,7 +435,7 @@ EOF
+
Во рабочем каталоге вам нужно построить утилиту. Просто введите такую команду:
+
-[source,bash]
+[source,shell]
....
# make -f Makefile.sub afmtodit
....
@@ -446,7 +446,7 @@ EOF
. Создайте файл [.filename]#.afm# по такой команде:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -q -- ttf2pf.ps TTF_name PS_font_name AFM_name
....
@@ -457,7 +457,7 @@ EOF
+
Например, для преобразования шрифта 30f9 Barcode с именами файлов по умолчанию, воспользуйтесь следующей командой:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -468,7 +468,7 @@ Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
+
Если вы хотите, чтобы преобразованные шрифты сохранялись в файлы [.filename]#A.pfa# and [.filename]#B.afm#, то выдайте такую команду:
+
-[source,bash]
+[source,shell]
....
% gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
Aladdin Ghostscript 5.10 (1997-11-23)
@@ -481,7 +481,7 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
Смените текущий каталог на [.filename]#/usr/shared/groff_font/devps# для облегчения запуска упоминаемых далее программ. Для этого вам может понадобиться иметь привилегии администратора системы. (Или, если вы избегаете здесь работать, обязательно посмотрите файлы [.filename]#DESC#, [.filename]#text.enc# и [.filename]#generate/textmap# в этом каталоге.)
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc file.afm \
generate/textmap PS_font_name
@@ -489,7 +489,7 @@ Converting 3of9.ttf to A.pfa and B.afm.
+
Здесь [.filename]#file.afm# является файлом _AFM_name_, созданным программой `ttf2pf.ps` выше, а _PS_font_name_ является именем шрифта, используемым в той команде, так же, как и имя, которое будет использовать утилита man:groff[1] для ссылки на этот шрифт. Например, полагая, что вы использовали первую команду `tiff2pf.ps` выше, то шрифт 3of9 Barcode может быть создан при помощи такой команды:
+
-[source,bash]
+[source,shell]
....
% afmtodit -d DESC -e text.enc 3of9.afm \
generate/textmap 3of9
diff --git a/documentation/content/ru/articles/freebsd-questions/_index.adoc b/documentation/content/ru/articles/freebsd-questions/_index.adoc
index aeaa8107e0..c12131d23d 100644
--- a/documentation/content/ru/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/ru/articles/freebsd-questions/_index.adoc
@@ -167,7 +167,7 @@ your options page that will email your current password to you.
* Основной объем информации, который вы должны дать, представляет собой вывод программ, таких, как man:dmesg[8], или консольные сообщения, которые обычно появляются в файле [.filename]#/var/log/messages#. Не пытайтесь скопировать эту информацию, набрав ее снова; это действительно трудно, и здесь легко сделать ошибку. Чтобы послать содержимое файлов протоколов, сделайте копию файла и воспользуйтесь редактором для того, чтобы обрезать информацию, оставив только относящуюся к делу, либо скопируйте и вставьте текст в ваше сообщение. В случае вывода программ, таких, как man:dmesg[8], перенаправьте вывод в файл и включите его в письмо. Например,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
diff --git a/documentation/content/ru/articles/gjournal-desktop/_index.adoc b/documentation/content/ru/articles/gjournal-desktop/_index.adoc
index 53b483cb6e..cdff660fdf 100644
--- a/documentation/content/ru/articles/gjournal-desktop/_index.adoc
+++ b/documentation/content/ru/articles/gjournal-desktop/_index.adoc
@@ -165,28 +165,28 @@ image::disklabel2.png[]
Подготовив необходимые разделы, перейдем к конфигурированию журналирования. Нам будет необходимо загрузиться в однопользовательском режиме, для этого залогинимся пользователем `root` и напечатаем:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Нажмите kbd:[Enter] для получения приглашения командного интерпретатора. Нам необходимо будет размонтировать разделы, которые подлежат журналированию, в нашем примере это [.filename]#/usr# и [.filename]#/var#.
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Загрузите модуль ядра, необходимый для журналирования:
-[source,bash]
+[source,shell]
....
# gjournal load
....
На данном этапе сверьтесь со своими записями и определите, какие разделы будут использоваться под какой журнал. В нашем примере [.filename]#/usr# располагается на [.filename]#ad0s1f#, а его журнал будет располагаться на [.filename]#ad0s1g#, и, по аналогии, для [.filename]#/var#: файловая система располагается на [.filename]#ad0s1d#, а ее журнал - на [.filename]#ad0s1h#. Наберите следующие команды:
-[source,bash]
+[source,shell]
....
# gjournal label ad0s1f ad0s1g
GEOM_JOURNAL: Journal 2948326772: ad0s1f contains data.
@@ -201,7 +201,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
====
Если последний сектор любого из двух разделов (поставщиков данных) используется, команда `gjournal` возвратит ошибку. Вам необходимо будет использовать флаг `-F` для принудительной перезаписи, например:
-[source,bash]
+[source,shell]
....
# gjournal label -f ad0s1d ad0s1h
....
@@ -211,7 +211,7 @@ GEOM_JOURNAL: Journal 3193218002: ad0s1h contains journal.
На данном этапе созданы два устройства: [.filename]#ad0s1d.journal# и [.filename]#ad0s1f.journal#. Они представляют [.filename]#/var# и [.filename]#/usr# соответственно. Перед монтированием, нам необходимо установить флаг журналирования и снять флаг механизма Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J enable -n disable ad0s1d.journal
tunefs: gjournal set
@@ -224,7 +224,7 @@ tunefs: soft updates cleared
Теперь, смонтируйте новые устройства в соответствующие места файловой системы (обратите внимание на то, что мы можем использовать опцию монтирования `async`):
-[source,bash]
+[source,shell]
....
# mount -o async /dev/ad0s1d.journal /var
# mount -o async /dev/ad0s1f.journal /usr
@@ -253,7 +253,7 @@ geom_journal_load="YES"
Поздравляем! Журналирование успешно сконфигурировано. Вам необходимо лишь набрать `exit` для возвращения в многопользовательский режим или перезагрузить систему, чтобы полностью проверить вашу конфигурацию (рекомендуется). Во время загрузки вы увидите сообщения, подобные следующим:
-[source,bash]
+[source,shell]
....
ad0: 76293MB XEC XE800JD-00HBC0 08.02D08 at ata0-master SATA150
GEOM_JOURNAL: Journal 2948326772: ad0s1g contains journal.
@@ -266,7 +266,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
После непредвиденного останова работы системы сообщения будут немного отличаться, например:
-[source,bash]
+[source,shell]
....
GEOM_JOURNAL: Journal ad0s1d consistent.
....
@@ -278,7 +278,7 @@ GEOM_JOURNAL: Journal ad0s1d consistent.
Процедура, описанная выше, необходима для подключения журналирования разделов, содержащих данные. Журналирование пустых разделов немного проще, ввиду того, что поставщик данных и поставщик журнала могут быть размещены на одном и том же разделе. Например, предположим, что был установлен новый жесткий диск и был создан новый раздел [.filename]#/dev/ad1s1d#. Создание журнала не сложнее набора:
-[source,bash]
+[source,shell]
....
# gjournal label ad1s1d
....
@@ -287,14 +287,14 @@ GEOM_JOURNAL: Journal ad0s1d consistent.
К примеру, чтобы создать журнал размером в 2Гб, можно использовать следующую команду:
-[source,bash]
+[source,shell]
....
# gjournal label -s 2G ad1s1d
....
Далее, вы можете создать файловую систему на новом разделе, а также разрешить журналирование ключом `-J`:
-[source,bash]
+[source,shell]
....
# newfs -J /dev/ad1s1d.journal
....
@@ -328,14 +328,14 @@ options GEOM_JOURNAL # А эту строку необходимо добави
Вы либо забыли внести запись (опечатались) в [.filename]#/boot/loader.conf#, либо есть ошибки в файле [.filename]#/etc/fstab#. Это легко исправить. Нажмите kbd:[Enter], чтобы получить приглашение командного интерпретатора в однопользовательском режиме. Потом, проверьте возможные варианты:
-[source,bash]
+[source,shell]
....
# cat /boot/loader.conf
....
Если отсутствует запись `geom_journal_load`, или она содержит ошибки, журналируемые устройства не создадутся. Загрузите модуль вручную, примонтируйте все разделы и переходите в многопользовательский режим (продолжайте загрузку).
-[source,bash]
+[source,shell]
....
# gjournal load
@@ -359,28 +359,28 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Залогиньтесь `root` и переведите систему в однопользовательский режим:
-[source,bash]
+[source,shell]
....
# shutdown now
....
Размонтируйте журналируемые разделы:
-[source,bash]
+[source,shell]
....
# umount /usr /var
....
Синхронизируйте журналы:
-[source,bash]
+[source,shell]
....
# gjournal sync
....
Остановите поставщиков журналов:
-[source,bash]
+[source,shell]
....
# gjournal stop ad0s1d.journal
# gjournal stop ad0s1f.journal
@@ -388,7 +388,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Удалите метаданные журналирования со всех задействованных устройств:
-[source,bash]
+[source,shell]
....
# gjournal clear ad0s1d
# gjournal clear ad0s1f
@@ -398,7 +398,7 @@ GEOM_JOURNAL: Journal ad0s1f clean.
Снимите флаг журналирования и установите флаг механизма Soft Updates:
-[source,bash]
+[source,shell]
....
# tunefs -J disable -n enable ad0s1d
tunefs: gjournal cleared
@@ -411,7 +411,7 @@ tunefs: soft updates set
Смонтируйте вручную старые (первоначальные) устройства:
-[source,bash]
+[source,shell]
....
# mount -o rw /dev/ad0s1d /var
# mount -o rw /dev/ad0s1f /usr
diff --git a/documentation/content/ru/articles/hubs/_index.adoc b/documentation/content/ru/articles/hubs/_index.adoc
index 5130f1782b..93bd14b127 100644
--- a/documentation/content/ru/articles/hubs/_index.adoc
+++ b/documentation/content/ru/articles/hubs/_index.adoc
@@ -146,7 +146,7 @@ rsync часто используется для предоставления д
Строка для синхронизации FreeBSD по rsync выглядит примерно так:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://ftp4.de.FreeBSD.org/FreeBSD/ /pub/FreeBSD/
....
@@ -160,7 +160,7 @@ rsync часто используется для предоставления д
Командная строка для синхронизации веб-сайта FreeBSD выглядит примерно так:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/local/www/
....
diff --git a/documentation/content/ru/articles/ipsec-must/_index.adoc b/documentation/content/ru/articles/ipsec-must/_index.adoc
index dcef69d999..43d6ebe49b 100644
--- a/documentation/content/ru/articles/ipsec-must/_index.adoc
+++ b/documentation/content/ru/articles/ipsec-must/_index.adoc
@@ -62,7 +62,7 @@ toc::[]
Команда
-[source,bash]
+[source,shell]
....
tcpdump -c 4000 -s 10000 -w dumpfile.bin
....
@@ -80,7 +80,7 @@ toc::[]
. В "шифрованном" окне запустите команду UNIX(R) man:yes[1], которая будет выдавать бесконечный поток символов `y`. Немножко подождите и завершите её. Затем переключитесь в обычное окно (не использующее канал IPsec) и сделайте то же самое.
. Заключительный этап: запустите <<code>>, передав ему для обработки только что сохранённые пакеты через командную строку. Вы должны увидеть что-то вроде изображённого чуть ниже. Заметьте, что безопасное соединение имеет 93% (6,7) от ожидаемого значения (7,18), а обычное соединение - всего лишь 29% (2,1).
+
-[source,bash]
+[source,shell]
....
% tcpdump -c 4000 -s 10000 -w ipsecdemo.bin
% uliscan ipsecdemo.bin
diff --git a/documentation/content/ru/articles/mailing-list-faq/_index.adoc b/documentation/content/ru/articles/mailing-list-faq/_index.adoc
index e6154b6a70..bd093c1fe4 100644
--- a/documentation/content/ru/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/ru/articles/mailing-list-faq/_index.adoc
@@ -113,7 +113,7 @@ toc::[]
* Проверьте правильность настроек времени и временной зоны. Это может выглядеть немножко глупо, потому что ваши сообщения все равно будут доставляться, однако многие люди получают несколько сотен сообщений в день. Зачастую они сортируют входящие сообщения по теме и дате, и если ваше сообщение не будет предшествовать первому ответу, то они могут предположить, что оно потерялось и даже не взглянут на него.
* Основной объем информации, который вы должны предоставить, представляет собой вывод программ, таких, как man:dmesg[8], или консольные сообщения, которые обычно появляются в файле [.filename]#/var/log/messages#. Не пытайтесь скопировать эту информацию, набрав ее снова; это действительно трудно, и здесь легко сделать ошибку. Чтобы послать содержимое файлов протоколов, сделайте копию файла и воспользуйтесь редактором для того, чтобы обрезать информацию, оставив только относящуюся к делу, либо скопируйте и вставьте текст в ваше сообщение. В случае вывода программ, таких, как `dmesg`, перенаправьте вывод в файл и включите его в письмо. Например,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/ru/articles/new-users/_index.adoc b/documentation/content/ru/articles/new-users/_index.adoc
index 32e4d23aeb..99f6cd4977 100644
--- a/documentation/content/ru/articles/new-users/_index.adoc
+++ b/documentation/content/ru/articles/new-users/_index.adoc
@@ -40,7 +40,7 @@ toc::[]
Чтобы выйти из системы (и получить новое приглашение `login:`) наберите
-[source,bash]
+[source,shell]
....
# exit
....
@@ -49,21 +49,21 @@ toc::[]
Для завершения работы машины наберите
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -h now
....
Или, для перезагрузки нужно набрать
-[source,bash]
+[source,shell]
....
# /sbin/shutdown -r now
....
или
-[source,bash]
+[source,shell]
....
# /sbin/reboot
....
@@ -75,7 +75,7 @@ toc::[]
Если при установке системы вы не создали ни одного пользователя, и поэтому вошли в систему как `root`, то теперь вы должны создать пользователя по команде
-[source,bash]
+[source,shell]
....
# adduser
....
@@ -84,7 +84,7 @@ toc::[]
Предположим, что вы создали пользователя `jack` с полным именем __Jack Benimble__. Назначьте пользователю `jack` пароль, если информационная безопасность имеет значение (даже если это дети, которые могут стучать по клавиатуре). Когда вам будет задан вопрос по включению пользователя `jack` в другие группы, наберите `wheel`
-[source,bash]
+[source,shell]
....
Login group is "jack". Invite jack into other groups: wheel
....
@@ -162,7 +162,7 @@ Login group is "jack". Invite jack into other groups: wheel
Некоторые из этих команд работают не очень хорошо? Обе команды man:locate[1] и man:whatis[1] зависят от базы данных, которая перестраивается еженедельно. Если ваша машина будет оставаться включенной на выходные (и она работает под FreeBSD), то вы можете пожелать запускать определённые команды раз в день, неделю, месяц. Запускайте их как `root` и дайте каждой отработать, прежде чем запускать следующую.
-[source,bash]
+[source,shell]
....
# periodic daily
выдача опущена
@@ -183,14 +183,14 @@ Login group is "jack". Invite jack into other groups: wheel
Перед тем, как редактировать файл, наверное, вы должны сохранить резервную копию. Предположим, что вы собираетесь отредактировать файл [.filename]#/etc/rc.conf#. Вы можете воспользоваться командой `cd /etc` для перехода в каталог [.filename]#/etc# и выполнить следующее:
-[source,bash]
+[source,shell]
....
# cp rc.conf rc.conf.orig
....
При этом файл [.filename]#rc.conf# скопируется в [.filename]#rc.conf.orig#, и в последующем вы сможете скопировать [.filename]#rc.conf.orig# в файл [.filename]#rc.conf# для восстановления оригинала. Но ещё лучше его переместить (переименовать), после чего скопировать обратно:
-[source,bash]
+[source,shell]
....
# mv rc.conf rc.conf.orig
# cp rc.conf.orig rc.conf
@@ -198,7 +198,7 @@ Login group is "jack". Invite jack into other groups: wheel
потому что команда `mv` сохраняет исходную информацию о дате и владельце файла. Теперь вы можете редактировать [.filename]#rc.conf#. Если вы захотите восстановить исходное состояние, то выполните `mv rc.conf rc.conf.myedit` (полагаем, что вы хотите сохранить отредактированную версию), а затем
-[source,bash]
+[source,shell]
....
# mv rc.conf.orig rc.conf
....
@@ -207,7 +207,7 @@ Login group is "jack". Invite jack into other groups: wheel
Для редактирования файла наберите
-[source,bash]
+[source,shell]
....
# vi filename
....
@@ -282,7 +282,7 @@ kbd:[Ctrl+b] и kbd:[Ctrl+f]::
Используйте `find` для поиска [.filename]#filename# в [.filename]#/usr# или в любом из её подкаталогов при помощи команды
-[source,bash]
+[source,shell]
....
% find /usr -name "filename"
....
@@ -300,7 +300,7 @@ kbd:[Ctrl+b] и kbd:[Ctrl+f]::
Найдите нужный вам порт, скажем, `kermit`. На CDROM для него должен существовать каталог. Скопируйте этот подкаталог в каталог [.filename]#/usr/local# (хорошее место для программного обеспечения, которое вы добавляете, и которое должно быть доступно всем пользователям) такой командой:
-[source,bash]
+[source,shell]
....
# cp -R /cdrom/ports/comm/kermit /usr/local
....
@@ -311,7 +311,7 @@ kbd:[Ctrl+b] и kbd:[Ctrl+f]::
После этого по команде `cd` перейдите в подкаталог [.filename]#/usr/local/kermit#, в котором есть файл [.filename]#Makefile#. Наберите
-[source,bash]
+[source,shell]
....
# make all install
....
diff --git a/documentation/content/ru/articles/pam/_index.adoc b/documentation/content/ru/articles/pam/_index.adoc
index be563e753c..38aced4fe4 100644
--- a/documentation/content/ru/articles/pam/_index.adoc
+++ b/documentation/content/ru/articles/pam/_index.adoc
@@ -98,7 +98,7 @@ PAM описали и разработали Vipin Samar и Charlie Lai из Sun
В этом простом примере показывается пользователь `alice`, выполняющий команду man:su[1] для того, чтобы стать пользователем `root`.
-[source,bash]
+[source,shell]
....
% whoami
alice
@@ -122,7 +122,7 @@ root
В примере ниже рассматривается пользователь `eve`, пытающийся установить man:ssh[1]-соединение с `login.example.com`, и успешно входя как пользователь `bob`. Боб должен был выбрать пароль получше!
-[source,bash]
+[source,shell]
....
% whoami
eve
@@ -294,7 +294,7 @@ auth required pam_nologin.so no_warn
Как следствие такого упрощённого синтаксиса, возможно использование одних и тех же политик для нескольких сервисов, связывая каждое имя сервиса с тем же самым файлом политик. К примеру, для использования той же самой политики для сервисов `su` и `sudo`, можно сделать следующее:
-[source,bash]
+[source,shell]
....
# cd /etc/pam.d
# ln -s su sudo
diff --git a/documentation/content/ru/articles/pr-guidelines/_index.adoc b/documentation/content/ru/articles/pr-guidelines/_index.adoc
index 54ba8550ea..060b607e10 100644
--- a/documentation/content/ru/articles/pr-guidelines/_index.adoc
+++ b/documentation/content/ru/articles/pr-guidelines/_index.adoc
@@ -471,7 +471,7 @@ GNATS требовательно подходит к формату присыл
Если система GNATS не может понять, что делать с сообщением об ошибке, которое достигло базы данных, она определяет `gnats-admin` в качестве ответственного за PR и помещает сообщение в категорию `pending`. Теперь это PR в состоянии "misfiled" и оно не будет появляться в списках сообщений об ошибках, если только кто-то специально не запросит перечень всех незаполненных PR. Если у вас есть доступ к машинам в кластере FreeBSD, можете воспользоваться командой `query-pr` для просмотра списка PR, которые были некорректно сформированы:
-[source,bash]
+[source,shell]
....
% query-pr -x -q -r gnats-admin
52458 gnats-ad open serious medium Re: declaration clash f
@@ -512,14 +512,14 @@ from the body of this PR to kern/12345
Поиск по команде `query-pr` оригинального PR, на которое отвечает неправильно оформленный отклик, легко выполняется следующим образом:
-[source,bash]
+[source,shell]
....
% query-pr -q -y "some text"
....
После того, как вы обнаружили оригинальное PR и неправильно оформленный отклик на него, воспользуйтесь параметром `-F` команды `query-pr` для сохранения полного текста всех относящихся к делу PR в файле формата почтового ящика UNIX(R), то есть:
-[source,bash]
+[source,shell]
....
% query-pr -F 52458 52474 > mbox
....
diff --git a/documentation/content/ru/articles/problem-reports/_index.adoc b/documentation/content/ru/articles/problem-reports/_index.adoc
index 80bdb09ab3..1f5001b51d 100644
--- a/documentation/content/ru/articles/problem-reports/_index.adoc
+++ b/documentation/content/ru/articles/problem-reports/_index.adoc
@@ -150,7 +150,7 @@ toc::[]
Программа man:send-pr[1] предусматривает присоединение файлов к сообщению о проблеме. Вы можете вложить сколько угодно файлов, но каждый с уникальным именем (имеется в виду имя файла без маршрута). Просто используйте параметр командной строки `-a` для задания имен файлов, которые вы хотите присоединить:
-[source,bash]
+[source,shell]
....
% send-pr -a /var/run/dmesg -a /tmp/errors
....
@@ -297,7 +297,7 @@ toc::[]
Как только вы заполните шаблон, сохраните его и выйдете из редактора, man:send-pr[1] запросит вас `s)end, e)dit or a)bort?`. Вы можете нажать `s` для продолжения и отправки сообщения о проблеме, `e` для повторного запуска редактора и выполнения дальнейших изменений, или `a` для отказа от вашего сообщения. Если вы выберете последнее, то ваше сообщение о проблеме останется на диске (man:send-pr[1] укажет вам имя файла перед завершением работы), так что вы сможете отредактировать его на свой вкус или передать в систему с лучшим подключением к сети, перед тем, как послать его при помощи параметра `-F` программы man:send-pr[1]:
-[source,bash]
+[source,shell]
....
% send-pr -f ~/my-problem-report
....
diff --git a/documentation/content/ru/articles/releng/_index.adoc b/documentation/content/ru/articles/releng/_index.adoc
index fba781c691..513eac6829 100644
--- a/documentation/content/ru/articles/releng/_index.adoc
+++ b/documentation/content/ru/articles/releng/_index.adoc
@@ -113,21 +113,21 @@ toc::[]
Как сказано во вводной части, ветка `RELENG_X_Y` является сравнительно новым добавлением в нашей методологии подготовки релизов. Первым шагом в создании этой ветки является проверка того, что вы работаете с самой последней версией исходных текстов `RELENG_X`, из _которой_ вы хотите создать новую ветку.
-[source,bash]
+[source,shell]
....
/usr/src# cvs update -rRELENG_4 -P -d
....
Следующим шагом является создание _тэга_ точки ответвления, чтобы диффы облегчили работу с началом ветки в CVS:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4 RELENG_4_8_BP src
....
После этого создаётся тэг новой ветки по команде:
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -b -rRELENG_4_8_BP RELENG_4_8 src
....
@@ -208,7 +208,7 @@ image::branches-releng9.png[Ветка FreeBSD 9.x STABLE]
При готовности окончательного релиза следующая команда создаст тэг `RELENG_4_8_0_RELEASE`.
-[source,bash]
+[source,shell]
....
/usr/src# cvs rtag -rRELENG_4_8 RELENG_4_8_0_RELEASE src
....
@@ -237,7 +237,7 @@ image::branches-releng9.png[Ветка FreeBSD 9.x STABLE]
Для настройки построения релиза существует много других переменных Большинство из этих переменных описаны в начале файла [.filename]#src/release/Makefile#. Точная команда, служащая для построения официального релиза FreeBSD 4.7 (x86) такова:
-[source,bash]
+[source,shell]
....
make release CHROOTDIR=/local3/release \
BUILDNAME=4.7-RELEASE \
@@ -280,7 +280,7 @@ http://www.FreeBSD.org/ports[Коллекция портов FreeBSD] содер
Начиная с FreeBSD 4.4, Проект FreeBSD принял решение распространять все четыре образа ISO, ранее продаваемые через _BSDi/Wind River Systems/FreeBSD Mall_ как "официальные" дистрибутивы на CDROM. Каждый из четырёх дисков должен содержать файл [.filename]#README.TXT#, описывающий содержимое диска, файл [.filename]#CDROM.INF#, в котором находятся мета-данные о диске для того, чтобы man:sysinstall[8] мог проверять и использовать содержимое, а также файл [.filename]#filename.txt#, содержащий перечень содержимого на диске. Этот _перечень_ может быть создан простой командой:
-[source,bash]
+[source,shell]
....
/stage/cdrom# find . -type f | sed -e 's/^\.\///' | sort > filename.txt
....
diff --git a/documentation/content/ru/articles/solid-state/_index.adoc b/documentation/content/ru/articles/solid-state/_index.adoc
index 3800c0978f..b581f24f16 100644
--- a/documentation/content/ru/articles/solid-state/_index.adoc
+++ b/documentation/content/ru/articles/solid-state/_index.adoc
@@ -89,14 +89,14 @@ varsize=8192
Важно помнить, что файловая система, которая была смонтирована только для чтения при помощи файла [.filename]#/etc/fstab#, в любой момент может быть сделана доступной по чтению и записи выдачей команды:
-[source,bash]
+[source,shell]
....
# /sbin/mount -uw partition
....
и может быть возвращена к режиму доступа только для чтения по такой команде:
-[source,bash]
+[source,shell]
....
# /sbin/mount -ur partition
....
@@ -118,7 +118,7 @@ varsize=8192
Выйдите из меню установки custom, и из главного меню установки выберите пункт `fixit`. После входа в режим работы fixit, введите следующую команду:
+
-[source,bash]
+[source,shell]
....
# disklabel -e /dev/ad0c
....
@@ -135,7 +135,7 @@ a: 123456 0 4.2BSD 0 0
Здесь _123456_ является числом, в точности совпадающим с тем, что характеризует размер имеющейся записи для `c:`. В общем, вы копируете существующую строку для `c:` для строки `a:`, не забывая определить fstype как `4.2BSD`. Сохраните файл и завершите редактирование.
+
-[source,bash]
+[source,shell]
....
# disklabel -B -r /dev/ad0c
# newfs /dev/ad0a
@@ -146,7 +146,7 @@ a: 123456 0 4.2BSD 0 0
Смонтируйте только что подготовленный флэш-носитель:
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad0a /flash
....
@@ -155,7 +155,7 @@ a: 123456 0 4.2BSD 0 0
Подключите эту машину к сети, чтобы можно было перенести наш tar-файл и распаковать его в файловую систему на флэш-носителе. Вот пример того, как это можно сделать:
+
-[source,bash]
+[source,shell]
....
# ifconfig xl0 192.168.0.10 netmask 255.255.255.0
# route add default 192.168.0.1
@@ -165,7 +165,7 @@ a: 123456 0 4.2BSD 0 0
Теперь, когда машина находится в сети, перепишите ваш tar-файл. Здесь вы можете столкнуться с некоторой проблемой - если объем вашей флэш-памяти равен, к примеру, 128 мегабайтам, а ваш tar-файл превышает 64 мегабайта, то вы не можете одновременно разместить tar-файл на флэш-носителе и распаковать его - вам не хватит места. Одним из решений этой проблемы, если вы используете FTP, является распаковка файла во время его передачи по FTP. Если вы передаете файл именно так, то вы никогда не получите на диске одновременно архивный файл и его содержимое:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| tar xvf -"
@@ -175,7 +175,7 @@ ftp> get tarfile.tar "| tar xvf -"
Если ваш файл обработан утилитой gzip, вы также можете этого добиться:
+
-[source,bash]
+[source,shell]
....
ftp> get tarfile.tar "| zcat | tar xvf -"
@@ -185,7 +185,7 @@ ftp> get tarfile.tar "| zcat | tar xvf -"
После того, как вы получили содержимое вашей заархивированной файловой системы на файловой системе флэш-памяти, вы можете размонтировать флэш-память и выполнить перезагрузку:
+
-[source,bash]
+[source,shell]
....
# cd /
# umount /flash
@@ -210,7 +210,7 @@ ftp> get tarfile.tar "| zcat | tar xvf -"
В файле [.filename]#syslog.conf# задано местоположение некоторых файлов протоколов, которые имеются в каталоге [.filename]#/var/log#. Эти файлы не создаются скриптом [.filename]#/etc/rc.d/var# во время инициализации системы. Поэтому где-нибудь в скрипте [.filename]#/etc/rc.d/var#, после секции, создающей каталоги в [.filename]#/var#, вам нужно добавить нечто вроде следующего:
-[source,bash]
+[source,shell]
....
# touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages
# chmod 0644 /var/log/*
@@ -224,14 +224,14 @@ ftp> get tarfile.tar "| zcat | tar xvf -"
Прежде всего создайте каталог с базой данных о пакаджах. Обычно это каталог [.filename]#/var/db/pkg#, но мы не можем разместить базу именно здесь, так как она исчезнет после перезагрузки системы.
-[source,bash]
+[source,shell]
....
# mkdir /etc/pkg
....
Теперь в скрипт [.filename]#/etc/rc.d/var# добавьте строку, которая связывает каталог [.filename]#/etc/pkg# с [.filename]#/var/db/pkg#. Например:
-[source,bash]
+[source,shell]
....
# ln -s /etc/pkg /var/db/pkg
....
@@ -251,7 +251,7 @@ ftp> get tarfile.tar "| zcat | tar xvf -"
Затем добавьте в скрипт [.filename]#/etc/rc.d/var# после секции создания каталогов такие команды:
-[source,bash]
+[source,shell]
....
# chmod 0774 /var/log/apache
# chown nobody:nobody /var/log/apache
@@ -259,7 +259,7 @@ ftp> get tarfile.tar "| zcat | tar xvf -"
И наконец, удалите существующий каталог [.filename]#apache_install/logs# и замените его ссылкой:
-[source,bash]
+[source,shell]
....
# rm -rf apache_log_dir
# ln -s apache_log_dir
diff --git a/documentation/content/ru/books/arch-handbook/driverbasics/chapter.adoc b/documentation/content/ru/books/arch-handbook/driverbasics/chapter.adoc
index 0e6788c93f..5a94438d17 100644
--- a/documentation/content/ru/books/arch-handbook/driverbasics/chapter.adoc
+++ b/documentation/content/ru/books/arch-handbook/driverbasics/chapter.adoc
@@ -107,7 +107,7 @@ KMOD=skeleton
Простой запуск команды `make` с этим make-файлом приведет к созданию файла [.filename]#skeleton.ko#, который можно загрузить в вашу систему, набрав:
-[source,bash]
+[source,shell]
....
# kldload -v ./skeleton.ko
....
@@ -459,14 +459,14 @@ DEV_MODULE(echo,echo_loader,NULL);
Для установки этого драйвера во FreeBSD 4.X сначала вам нужно создать файл устройства в вашей файловой системе по команде типа следующей:
-[source,bash]
+[source,shell]
....
# mknod /dev/echo c 33 0
....
Когда этот драйвер загружен, вы можете выполнять следующие действия:
-[source,bash]
+[source,shell]
....
# echo -n "Test Data" > /dev/echo
# cat /dev/echo
diff --git a/documentation/content/ru/books/developers-handbook/kerneldebug/chapter.adoc b/documentation/content/ru/books/developers-handbook/kerneldebug/chapter.adoc
index cc8a098360..88e5a643c5 100644
--- a/documentation/content/ru/books/developers-handbook/kerneldebug/chapter.adoc
+++ b/documentation/content/ru/books/developers-handbook/kerneldebug/chapter.adoc
@@ -55,7 +55,7 @@ authors:
====
Удостоверьтесь, что каталог `dumpdir`, указанный в man:rc.conf[5], существует до аварийного останова ядра!
-[source,bash]
+[source,shell]
....
# mkdir /var/crash
# chmod 700 /var/crash
@@ -76,7 +76,7 @@ authors:
Если вы тестируете новое ядро, но вам нужно загрузить и работать с другим ядром, чтобы получить нормально функционирующую систему, то загрузите его в однопользовательском режиме при помощи флага `-s`, указываемого при загрузке, а затем выполните такие шаги:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -a -t ufs
@@ -102,7 +102,7 @@ authors:
Чтобы войти в отладчик и начать получать информацию из дампа, как минимум необходимо сделать следующие шаги:
-[source,bash]
+[source,shell]
....
# cd /usr/obj/usr/src/sys/KERNCONF
# kgdb kernel.debug /var/crash/vmcore.0
@@ -112,7 +112,7 @@ authors:
Этот первый дамп взят из ядра 5.2-BETA, а сбой произошёл где-то глубоко внутри ядра. Нижеследующая выдача была модифицирована, в неё слева добавлены номера строк. При первой трассировке проверяется указатель команд и выдаётся обратная трассировка. Адрес, используемый в строке 41 для команды `list`, является указателем команд и он может быть найден в строке 17. Большинство разработчиков будут требовать предоставления им по крайней мере этой информации, если вы не можете отследить проблему самостоятельно. Если, однако, вы решите проблему, то обязательно добейтесь включения вашего патча в дерево исходных текстов, прислав его через сообщение об ошибке, списки рассылки или даже его непосредственным коммитом!
-[source,bash]
+[source,shell]
....
1:# cd /usr/obj/usr/src/sys/KERNCONF
2:# kgdb kernel.debug /var/crash/vmcore.0
@@ -208,7 +208,7 @@ authors:
Во второй трассировке используется более старый дамп из времён FreeBSD 2, но он более сложный и показывает больше возможностей `gdb`. Длинные строки были усечены ради повышения читабельности, а также пронумерованы для того, чтобы ссылаться на них. Кроме этих отличий, это реальная трассировка ошибки, выполненная в процессе разработки консольного драйвера pcvt.
-[source,bash]
+[source,shell]
....
1:Script started on Fri Dec 30 23:15:22 1994
2:# cd /sys/compile/URIAH
@@ -317,7 +317,7 @@ authors:
Возможно также и исследование аварийного дампа ядра при помощи такого графического отладчика, как `ddd` (вам потребуется установить порт [.filename]#devel/ddd#, чтобы использовать отладчик `ddd`). Добавьте флаг `-k` к командной строке `ddd`, которую вы обычно используете для его вызова. Например;
-[source,bash]
+[source,shell]
....
# ddd -k /var/crash/kernel.0 /var/crash/vmcore.0
....
@@ -369,7 +369,7 @@ options DDB
Вторым способом является переход в режим отладчика сразу после загрузки системы. Есть два простых способа этого добиться. Если вы хотите перейти в отладчик из командной строки, просто наберите команду:
-[source,bash]
+[source,shell]
....
# sysctl debug.enter_debugger=ddb
....
@@ -380,7 +380,7 @@ options DDB
Команды DDB примерно повторяют некоторые команды `gdb`. Первым делом вам, наверное, нужно задать точку останова:
-[source,bash]
+[source,shell]
....
b function-name
b address
@@ -390,14 +390,14 @@ options DDB
Чтобы продолжить работу прерванного ядра, просто наберите:
-[source,bash]
+[source,shell]
....
c
....
Чтобы получить трассировку стека, задайте:
-[source,bash]
+[source,shell]
....
trace
....
@@ -409,7 +409,7 @@ options DDB
Если вы хотите убрать точку останова, введите
-[source,bash]
+[source,shell]
....
del
del address-expression
@@ -417,21 +417,21 @@ options DDB
В первом варианте команда будет исполнена сразу же по достижении точки останова, а текущая точка останова будет удалена. Во второй форме можно удалить любую точку останова, однако вам нужно будет указать ее точный адрес; его можно получить из:
-[source,bash]
+[source,shell]
....
show b
....
Чтобы выполнить один шаг ядра, попробуйте:
-[source,bash]
+[source,shell]
....
s
....
При этом будет осуществляться пошаговое выполнение функций, однако вы можете трассировать их с помощью DDB, пока не будет достигнуто соответствие возвращаемому значению:
-[source,bash]
+[source,shell]
....
n
....
@@ -443,7 +443,7 @@ options DDB
Чтобы выводить значения в памяти, используйте, (к примеру):
-[source,bash]
+[source,shell]
....
x/wx 0xf0133fe0,40
x/hd db_symtab_space
@@ -453,14 +453,14 @@ options DDB
для доступа к данным типа слово/полуслово/байт и вывода в шестнадцатеричном/десятичном/символьном виде. Число после запятой означает счетчик объектов. Чтобы вывести следующие 0x10 объектов, просто укажите:
-[source,bash]
+[source,shell]
....
x ,10
....
Подобным же образом используйте
-[source,bash]
+[source,shell]
....
x/ia foofunc,10
....
@@ -469,7 +469,7 @@ options DDB
Чтобы изменить значения в памяти, используйте команду write:
-[source,bash]
+[source,shell]
....
w/b termbuf 0xa 0xb 0
w/w 0xf0010030 0 0
@@ -479,28 +479,28 @@ options DDB
Если вам нужно узнать текущее содержимое регистров, используйте:
-[source,bash]
+[source,shell]
....
show reg
....
Альтернативно вы можете вывести содержимое одного регистра по команде, скажем,
-[source,bash]
+[source,shell]
....
p $eax
....
и изменить его по:
-[source,bash]
+[source,shell]
....
set $eax new-value
....
Если вам нужно вызвать некоторую функцию ядра из DDB, просто укажите:
-[source,bash]
+[source,shell]
....
call func(arg1, arg2, ...)
....
@@ -509,28 +509,28 @@ options DDB
Для вывода суммарной статистики по всем работающим процессам в стиле команды man:ps[1] воспользуйтесь такой командой:
-[source,bash]
+[source,shell]
....
ps
....
Теперь вы узнали, почему ядро работает с ошибками и хотите выполнить перезагрузку. Запомните, что в зависимости от влияния предыдущих ошибок, не все части ядра могут работать так, как ожидается. Выполните одно из следующих действий для закрытия и перезагрузки вашей системы:
-[source,bash]
+[source,shell]
....
panic
....
Это приведет к созданию дампа ядра и перезагрузке, так что позже вы можете проанализировать дамп на более высоком уровне при помощи `gdb`. Как правило, эта команда должна следовать за другой командой `continue`.
-[source,bash]
+[source,shell]
....
call boot(0)
....
Это может оказаться хорошим способом для корректного закрытия работающей системы, `sync()` для всех дисков и напоследок перезагрузка. Пока интерфейсы диска и файловой системы в ядре не повреждены, это может быть самым правильным способом закрытия системы.
-[source,bash]
+[source,shell]
....
call cpu_reset()
....
@@ -539,7 +539,7 @@ options DDB
Если вам нужен краткий справочник по командам, просто наберите:
-[source,bash]
+[source,shell]
....
help
....
@@ -555,7 +555,7 @@ options DDB
Вы должны настроить исследуемое ядро при помощи команды `config -g`, включить `DDB` в конфигурацию и откомпилировать его обычным образом. Это даст большой бинарный файл из-за отладочной информации. Скопируйте это ядро на целевую машину, усеките отладочную информацию командой `strip -x` и загрузите это ядро с использованием параметра загрузки `-d`. Подключите последовательный канал целевой машины, имеющий установленные флаги "flags 080" на соответствующем устройстве sio к любому последовательному каналу отладочного хоста. А теперь на отладочной машине перейдите в каталог компиляции целевого ядра и запустите `gdb`:
-[source,bash]
+[source,shell]
....
% gdb -k kernel
GDB is free software and you are welcome to distribute copies of it
@@ -568,14 +568,14 @@ Copyright 1996 Free Software Foundation, Inc...
Проинициализируйте сеанс удаленной отладки (предполагается, что используется первый последовательный порт) такой командой:
-[source,bash]
+[source,shell]
....
(kgdb) target remote /dev/cuaa0
....
Теперь на целевом хосте (тот, который перешел в DDB даже до начала процесса обнаружения устройств) наберите:
-[source,bash]
+[source,shell]
....
Debugger("Boot flags requested debugger")
Stopped at Debugger+0x35: movb $0, edata+0x51bc
@@ -585,14 +585,14 @@ db> gdb
DDB ответит следующим:
-[source,bash]
+[source,shell]
....
Next trap will enter GDB remote protocol mode
....
Каждый раз, когда вы будете набирать `gdb`, режим будет меняться между удаленным GDB и локальным DDB. Чтобы немедленно вызвать следующее прерывание, просто наберите `s` (step). Ваш хостирующий GDB получит управление над целевым ядром:
-[source,bash]
+[source,shell]
....
Remote debugging using /dev/cuaa0
Debugger (msg=0xf01b0383 "Boot flags requested debugger")
@@ -609,7 +609,7 @@ Debugger (msg=0xf01b0383 "Boot flags requested debugger")
Первым делом вам нужно построить модуль (или модули) с включением отладочной информации:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/linux
# make clean; make COPTS=-g
@@ -617,7 +617,7 @@ Debugger (msg=0xf01b0383 "Boot flags requested debugger")
Если вы используете GDB в режиме удаленного доступа, то для определения того, куда был загружен модуль, можете запустить команду `kldstat` на целевой машине:
-[source,bash]
+[source,shell]
....
# kldstat
Id Refs Address Size Name
@@ -631,7 +631,7 @@ Id Refs Address Size Name
Затем вам нужно определить смещение текстового сегмента модуля:
-[source,bash]
+[source,shell]
....
# objdump --section-headers /sys/modules/linux/linux.ko | grep text
3 .rel.text 000016e0 000038e0 000038e0 000038e0 2**2
@@ -640,7 +640,7 @@ Id Refs Address Size Name
То, что вы ищете, является секцией `.text`, в примере выше это секция 10. Четвертое числовое поле (всего шестое по счёту) является смещением текстовой секции внутри файла. Добавьте это смещение к адресу загрузки, чтобы получить адрес, на который был перемещён код модуля. В нашем примере мы получим 0xc0adc000 + 0x62d0 = c0ae22d0. Воспользуйтесь командой `add-symbol-file` в GDB для указания отладчику на модуль:
-[source,bash]
+[source,shell]
....
(kgdb) add-symbol-file /sys/modules/linux/linux.ko 0xc0ae22d0
add symbol table from file "/sys/modules/linux/linux.ko" at text_addr = 0xc0ae22d0?
diff --git a/documentation/content/ru/books/faq/_index.adoc b/documentation/content/ru/books/faq/_index.adoc
index a976363626..8f644a518e 100644
--- a/documentation/content/ru/books/faq/_index.adoc
+++ b/documentation/content/ru/books/faq/_index.adoc
@@ -342,7 +342,7 @@ link:{handbook}#current[ FreeBSD-CURRENT] - это версия операцио
Например, версия FAQ в виде отдельных HTML-файлов, упакованная при помощи man:bzip2[1], находится в файле [.filename]#doc/ru_RU.KOI8-R/books/faq/book.html-split.tar.bz2#. Для сгрузки и распаковки этого файла наберите:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -444,14 +444,14 @@ amd64 - это термин, применяемый во FreeBSD для обоз
Способ восстановления зависит от используемого загрузчика. Меню выбора загрузки, используемое во FreeBSD, можно переустановить с помощью man:boot0cfg[8]. Пример для восстановления меню загрузки на диске _ada0_:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
Неинтерактивный загрузчик MBR можно установить с помощью man:gpart[8]:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -590,7 +590,7 @@ FreeBSD поддерживает также все SCSI-приводы CD-R и C
Стандартный драйвер консоли man:syscons[4] предоставляет возможность использования указателя мыши в текстовых консолях для выделения и переноса текста. Запустите демон мыши man:moused[8] и включите отображение указателя мыши в виртуальной консоли:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -641,7 +641,7 @@ bindkey ^[[3~ delete-char # для xterm
Некоторые звуковые адаптеры при каждой загрузке сбрасывают уровень громкости в 0. Выполняйте следующую команду при каждой загрузке машины:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -743,7 +743,7 @@ FreeBSD поддерживает функции ACPI, реализованные
Запустите man:dmesg[8] и посмотрите строки, содержащие слово `Timecounter`. FreeBSD выбирает таймер с наибольшим значением качества.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -754,7 +754,7 @@ Timecounters tick every 1.000 msec
Удостоверьтесь в этом, проверив man:sysctl[3]-переменную `kern.timecounter.hardware`.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -771,7 +771,7 @@ debug.acpi.disabled="timer"
В этом примере имеется также и таймер `i8254`, и он может быть выбран записью его имени в man:sysctl[3]-переменную `kern.timecounter.hardware`.
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -877,7 +877,7 @@ FreeBSD умеет работать со сжатыми двоичными па
Для создания аудио-CD из MIDI-файлов сначала установите из портов программу package:audio/timidity[], затем установите набор патчей GUS от Эрика Уэлша (Eric A. Welsh), доступный по адресу http://alleg.sourceforge.net/digmid.html[http://alleg.sourceforge.net/digmid.html]. После корректной установки TiMidity++ MIDI-файлы могут быть преобразованы в WAV-файлы следующей командой:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -951,7 +951,7 @@ MODULES_OVERRIDE= accf_http ipfw
Название используемого планировщика доступно напрямую в виде значения sysctl-параметра `kern.sched.name`:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: ULE
@@ -987,7 +987,7 @@ kern.sched.name: ULE
Например, чтобы перенести корневую файловую систему на устройство [.filename]#/dev/ada1s1a# с использованием каталога [.filename]#/mnt# в качестве временной точки монтирования, наберите:
-[source,bash]
+[source,shell]
....
# newfs /dev/ad1as1a
# mount /dev/ad1as1a /mnt
@@ -997,7 +997,7 @@ kern.sched.name: ULE
Переразбиение разделов с использованием `dump` требует несколько больше усилий. Для объединения раздела типа [.filename]#/var# с его вышестоящим разделом, создайте новый раздел, достаточно большой для размещения их обоих, переместите вышестоящий раздел так, как это описано выше, а затем переместите нижестоящий раздел в пустой каталог, созданный при первом перемещении:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ad1as1a /mnt
@@ -1009,7 +1009,7 @@ kern.sched.name: ULE
Для отделения каталога от вышестоящего, скажем, для размещения [.filename]#/var# в собственном разделе, которого не было, создайте оба раздела, затем смонтируйте нижестоящий раздел в подходящий каталог во временную точку монтирования, а затем переместите старый единый раздел:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -1065,7 +1065,7 @@ FreeBSD включает сетевую файловую систему NFS. В
Вторичные разделы DOS находятся после _всех_ первичных разделов. Например, если "E" является вторым разделом DOS на втором диске SCSI, то здесь будет файл устройства для пятого "слайса" в каталоге [.filename]#/dev#. Чтобы смонтировать:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1101,14 +1101,14 @@ kernel /boot/loader
Если у вас уже есть файловая система на устройстве, то используйте такую команду:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
Если это устройство будет использоваться только на системах FreeBSD, то разбейте его на разделы UFS или ZFS. Это обеспечит поддержку длинных имён файлов, увеличение производительности и надёжность. Если устройство будет использоваться с другими операционными системами, то лучше сделать более совместимый выбор, например, msdosfs.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1117,14 +1117,14 @@ kernel /boot/loader
Наконец, остаётся создать новую файловую систему:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
и смонтировать её:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1168,7 +1168,7 @@ kernel /boot/loader
Как пользователь `root`, установите системную переменную `vfs.usermount` в значение `1`.
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1188,7 +1188,7 @@ kernel /boot/loader
Теперь все пользователи могут монтировать устройства с правами доступа на чтение в собственные каталоги:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1196,7 +1196,7 @@ kernel /boot/loader
Размонтирование устройства осуществляется просто:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1272,7 +1272,7 @@ L2ARC - это кеш на чтение, хранимый на быстром у
Такое может произойти при 100% заполненности пула. ZFS требуется свободное место на диске для записи метаданных транзакций. Для восстановления работоспособного состояния пула обрежьте файл перед его удалением.
-[source,bash]
+[source,shell]
....
% truncate -s 0 unimportant-file
....
@@ -1308,7 +1308,7 @@ ZFS TRIM может не работать на всех конфигурация
Пример запуска man:named[8], поставляемого с системой сервера DNS:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1329,7 +1329,7 @@ ZFS TRIM может не работать на всех конфигурация
Чтобы удалить лишний неправильный crontab:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1340,7 +1340,7 @@ ZFS TRIM может не работать на всех конфигурация
Чтобы разрешить кому-либо менять привилегии на `root`, включите его в группу `wheel` с помощью `pw`.
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1435,7 +1435,7 @@ options SC_DISABLE_REBOOT
Этого также можно достичь установкой следующего man:sysctl[8], что не требует перезагрузки или пересборки ядра:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -1449,7 +1449,7 @@ options SC_DISABLE_REBOOT
Воспользуйтесь следующей командой man:perl[1]:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1458,7 +1458,7 @@ options SC_DISABLE_REBOOT
Либо используйте man:tr[1]:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1471,7 +1471,7 @@ options SC_DISABLE_REBOOT
Перейдите в однопользовательский режим, а затем возвратитесь обратно в многопользовательский.
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1494,7 +1494,7 @@ options SC_DISABLE_REBOOT
Подробный ответ: FreeBSD запрещает менять системные флаги при работе на уровнях безопасности, превышающих 0. Чтобы проверить текущий уровень безопасности:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1507,7 +1507,7 @@ options SC_DISABLE_REBOOT
Подробный ответ: FreeBSD запрещает менять системное время больше чем на одну секунду на уровне безопасности выше 1. Чтобы определить уровень безопасности:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1552,7 +1552,7 @@ man:rpc.statd[8] отображает свой статусный файл (на
Чтобы посмотреть, что будет делать man:newsyslog[8], используйте следующую команду:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1579,7 +1579,7 @@ X Window System (обычно `X11`) является наиболее обще
Установите Xorg из пакетов FreeBSD.
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1624,7 +1624,7 @@ link sysmouse mouse
Ссылка может быть создана путем перезапуска man:devfs[5] с использованием следующей команды (из под пользователя `root`):
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1692,7 +1692,7 @@ InputDevice "Touchpad0" "SendCoreEvents"
Для включения этой возможности запустите X с аргументом `-listen_tcp`:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1812,7 +1812,7 @@ psmintr: out of sync (xxxx != yyyy)
Чтобы заставить левую клавишу kbd:[Windows] набирать запятую, попробуйте выполнить такую команду:
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1892,14 +1892,14 @@ nVidia предоставляет подробную информацию о т
Если алиас находится в той же самой сети, что и уже настроенный на интерфейсе адрес, допишите к этой команде `netmask 0xffffffff`:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
В противном случае укажите сетевой адрес и маску обычным образом:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1910,7 +1910,7 @@ nVidia предоставляет подробную информацию о т
Некоторые версии NFS для Linux(R) поддерживают запросы на монтирование только с привилегированного порта; попробуйте выполнить следующую команду:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1933,7 +1933,7 @@ nVidia предоставляет подробную информацию о т
Если межсетевой экран был случайно сконфигурирован неверным образом, то для восстановления работоспособности сети наберите такую команду из-под пользователя `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1946,7 +1946,7 @@ nVidia предоставляет подробную информацию о т
Возможно, потому, что вместо простого перенаправления пакетов нужна трансляция сетевых адресов (NAT). Правило "fwd" только перенаправляет пакеты и данные внутри него не меняет. Рассмотрим такое правило:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -1992,14 +1992,14 @@ device bpf # Berkeley Packet Filter
Первое число в сообщении показывает количество пакетов, которое ядро посылало бы при отсутствии ограничений, а второе число указывает лимит. Этот лимит меняется при помощи `net.inet.icmp.icmplim`. В этом примере устанавливается лимит на `300` пакетов в секунду:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
Для выключения подобных сообщений без отключения самого ограничения используйте `net.inet.icmp.icmplim_output`, чтобы подавить вывода:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -2052,7 +2052,7 @@ device bpf # Berkeley Packet Filter
Для выяснения состояния уровня защиты в работающей системе:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -2233,7 +2233,7 @@ deny pred1 deflate deflate24 protocomp acfcomp shortseq vj
В этом случае перекомпилируйте man:ppp[8] с отладочной информацией, и затем используйте man:gdb[1] для получения стека вызовов для зависшего процесса ppp. Чтобы откомпилировать программу ppp с отладочной информацией, наберите такие команды:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/ppp
# env DEBUG_FLAGS='-g' make clean
@@ -2242,7 +2242,7 @@ deny pred1 deflate deflate24 protocomp acfcomp shortseq vj
Затем перезапустите ppp и дождитесь следующего зависания. Когда отладочная сборка man:ppp[8] зависнет, запустите gdb для зависшего процесса:
-[source,bash]
+[source,shell]
....
# gdb ppp `pgrep ppp`
....
@@ -2484,7 +2484,7 @@ FCS является сокращением от Frame Check Sequence (конт
В процессе своей загрузки ядро FreeBSD будет пытаться найти последовательные порты, с поддержкой которых ядро сконфигурировано. Внимательно просмотрите сообщения загрузки либо выполните такую команду после того, как система запустилась и работает:
-[source,bash]
+[source,shell]
....
% dmesg | grep -E "^sio[0-9]"
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2551,7 +2551,7 @@ hint.sio.7.irq="12"
Либо же можно разрешить всем запускать man:tip[1] и man:cu[1]:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2573,7 +2573,7 @@ FreeBSD активно перемещает неиспользуемые стр
Символические ссылки не имеют атрибутов доступа, и по умолчанию утилита man:chmod[1] следует по символической ссылке, чтобы по возможности изменить права доступа на исходный файл. Для файла [.filename]#foo# с символической ссылкой [.filename]#bar# на этот файл эта команда всегда будет выполняться успешно.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2587,7 +2587,7 @@ FreeBSD активно перемещает неиспользуемые стр
Опция `-R` выполняет man:chmod[1] _рекурсивно_. Будьте внимательны, задавая каталоги или символические ссылки на каталоги в параметрах man:chmod[1]. Чтобы изменить права на каталог, на который указывает символическая ссылка, используйте man:chmod[1] без опций и следуйте символической ссылке с помощью лидирующего слэша ([.filename]#/#). Например, если [.filename]#foo# является символической ссылкой на каталог [.filename]#bar#, то чтобы изменить права на [.filename]#foo# (на самом деле на [.filename]#bar#), выполните такую команду:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2831,14 +2831,14 @@ panic: page fault
. Запишите значение указателя инструкций. Заметьте, что часть `0x8:` в этом случае не важна: нам нужна часть `0xf0xxxxxx`.
. Когда система перезагрузится, сделайте следующее:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxxx
....
+
где `f0xxxxxx` - это значение указателя инструкций. Однако неприятность заключается в том, что вы не получите точного соответствия, так как в таблице имен ядра для точек входа в функции даны адреса на начало функций, а указатель инструкций будет указывать куда-то внутрь её тела. Если вы не получили точного соответствия, опустите последнюю цифру в значении указателя инструкций и попробуйте снова:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -2861,21 +2861,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
. Перейдите в каталог [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Скомпилируйте ядро:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Дождитесь завершения компиляции.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2899,7 +2899,7 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
Как только аварийный дамп получен, трассировку вызовов можно получить таким образом:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/ru/books/handbook/advanced-networking/_index.adoc b/documentation/content/ru/books/handbook/advanced-networking/_index.adoc
index 6845057dba..6e718c4bd5 100644
--- a/documentation/content/ru/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/ru/books/handbook/advanced-networking/_index.adoc
@@ -77,7 +77,7 @@ toc::[]
Для иллюстрации различных аспектов маршрутизации мы будем использовать следующий пример использования команды `netstat`:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -200,7 +200,7 @@ defaultrouter="10.20.30.1"
Это также возможно сделать и непосредственно из командной строки при помощи команды man:route[8]:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -243,7 +243,7 @@ image::static-routes.png[]
Если мы посмотрим на таблицу маршрутизации `RouterA`, то увидим примерно следующее:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -258,7 +258,7 @@ default 10.0.0.1 UGS 0 49378 xl0
С текущей таблицей маршрутизации `RouterA` не сможет достичь внутренней сети 2 (Internal Net 2). Один из способов обхода этой проблемы - добавление маршрута вручную. Следующая команда добавляет внутреннюю сеть 2 к таблице маршрутизации `RouterA` с `192.168.1.2` в качестве следующего узла:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -278,7 +278,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
В переменной `static_routes` находятся строки, разделенные пробелами. Каждая строка означает имя маршрута. В примере выше в `static_routes` есть только одна строка, это _internalnet2_. Затем мы добавили переменную `route__internalnet2_`, куда помещены все параметры, которые необходимо передать команде man:route[8]. В примере выше была использована команда:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -368,7 +368,7 @@ options MROUTING
Первым делом убедитесь, что ваша система распознаёт адаптер беспроводной связи:
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -387,7 +387,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Теперь вам нужно загрузить модуль для подготовки той части FreeBSD, что отвечает за организацию сетевых мостов, для работы с точкой доступа. Для загрузки модуля man:bridge[4] просто выполните следующую команду:
-[source,bash]
+[source,shell]
....
# kldload bridge
....
@@ -396,7 +396,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Теперь, когда вы завершили с той частью, что касается организации сетевого моста, нам нужно указать ядру FreeBSD, какие интерфейсы должны объединяться в сетевом мосте. Это мы делаем при помощи man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge.enable=1
# sysctl net.link.ether.bridge.config="wi0 xl0"
@@ -405,7 +405,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
В версиях FreeBSD, предшествующих 5.2, вместо указанных нужно использовать следующие параметры:
-[source,bash]
+[source,shell]
....
# sysctl net.link.ether.bridge=1
# sysctl net.link.ether.bridge_cfg="wi0,xl0"
@@ -414,7 +414,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Теперь необходимо настроить адаптер беспроводной сети. Следующая команда заставит адаптер работать в режиме точки доступа:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 ssid my_net channel 11 media DS/11Mbps mediaopt hostap up stationname "FreeBSD AP"
@@ -430,7 +430,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
После того, как точка доступа сконфигурирована и начала свою работу, операторам может понадобиться видеть клиентов, связанных с этой точкой. В любой момент оператор может набрать:
-[source,bash]
+[source,shell]
....
# wicontrol -l
1 station:
@@ -462,7 +462,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Удостоверьтесь, что ваш адаптер распознаётся во FreeBSD:
-[source,bash]
+[source,shell]
....
# ifconfig -a
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -479,7 +479,7 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Теперь мы можем изменить настройки адаптера на те, что соответствуют нашей сети:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net
....
@@ -490,14 +490,14 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Если вы столкнулись с проблемами при работе в беспроводной сети, удостоверьтесь, что вы ассоциированы (подключены) с точкой доступа:
-[source,bash]
+[source,shell]
....
# ifconfig wi0
....
должна выдать некоторую информацию, и вы должны увидеть:
-[source,bash]
+[source,shell]
....
status: associated
....
@@ -516,14 +516,14 @@ WEP является сокращением от Wired Equivalency Protocol (П
Он лучше, чем ничего, так что используйте следующую команду для включения WEP в вашей новой точке доступа FreeBSD:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet up ssid my_net wepmode on wepkey 0x1234567890 media DS/11Mbps mediaopt hostap
....
Вы можете включить WEP на клиенте следующей командой:
-[source,bash]
+[source,shell]
....
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net wepmode on wepkey 0x1234567890
....
@@ -582,7 +582,7 @@ man:ipsec[4] является гораздо более надёжным и мо
Вам может потребоваться компиляция драйвера оболочки мини порта man:ndis[4]. Под `root`:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/modules/ndis
# make && make install
@@ -592,7 +592,7 @@ man:ipsec[4] является гораздо более надёжным и мо
Следующий шаг это компиляция бинарного драйвера в загружаемый модуль ядра. Чтобы сделать это, сначала зайдите в каталог модуля [.filename]#if_ndis# и с правами `root` скопируйте туда драйверы Windows(R):
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/modules/if_ndis
# cp /path/to/driver/W32DRIVER.SYS ./
@@ -601,7 +601,7 @@ man:ipsec[4] является гораздо более надёжным и мо
Теперь используйте утилиту `ndiscvt` для создания заголовка определения драйвера [.filename]#ndis_driver_data.h# перед сборкой модуля:
-[source,bash]
+[source,shell]
....
# ndiscvt -i W32DRIVER.INF -s W32DRIVER.SYS -o ndis_driver_data.h
....
@@ -615,14 +615,14 @@ man:ipsec[4] является гораздо более надёжным и мо
Наконец, соберите и установите модуль драйвера:
-[source,bash]
+[source,shell]
....
# make && make install
....
Для использования драйвера необходимо загрузить соответствующие модули:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -630,7 +630,7 @@ man:ipsec[4] является гораздо более надёжным и мо
Первая команда загружает оболочку драйвера мини-порта NDIS, вторая загружает собственно сетевой интерфейс. Проверьте man:dmesg[8] на предмет ошибок загрузки. Если все прошло хорошо, вывод должен быть примерно таким:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -654,7 +654,7 @@ Bluetooth является беспроводной технологией дл
По умолчанию драйверы устройств Bluetooth поставляются в виде модулей ядра. Перед подключением устройства вам необходимо подгрузить драйвер в ядро:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -668,7 +668,7 @@ ng_ubt_load="YES"
Подключите ваше USB-устройство. На консоли (или в журнале syslog) появится примерно такое сообщение:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -682,7 +682,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
Скопируйте файл [.filename]#/usr/shared/examples/netgraph/bluetooth/rc.bluetooth# в какое-нибудь подходящее место, например, в файл [.filename]#/etc/rc.bluetooth#. Этот скрипт используется для запуска и остановки работы Bluetooth-стека. Перед отключением устройства рекомендуется остановить его работы, хотя (обычно) это не фатально. При запуске стека вы получите сообщения, подобные следующим:
-[source,bash]
+[source,shell]
....
# /etc/rc.bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -708,7 +708,7 @@ Host Controller Interface (HCI) предоставляет интерфейс д
Одной из самой часто выполняемой задач является обнаружение Bluetooth-устройств в радиусе RF-доступности. Эта операция называется _опросом_ (inquiry). Опрос и другие операции, связанные с HCI, выполняются при помощи утилиты man:hccontrol[8]. Пример ниже показывает, как найти доступные устройства Bluetooth. Список таких устройств должен быть получен в течение нескольких секунд. Заметьте, что удалённые устройства будут отвечать на опрос, если только они находятся в режиме _обнаруживаемости_ (discoverable).
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -724,7 +724,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` является уникальным адресом устройства Bluetooth, вроде MAC-адресов сетевых адаптеров. Этот адрес необходим для дальнейшей работы с устройством. Адресу BD_ADDR можно присвоить удобное для чтения имя. Файл [.filename]#/etc/bluetooth/hosts# содержит информацию об известных хостах Bluetooth. В следующем примере показано, как получить имя, назначенное удалённому устройству:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -735,7 +735,7 @@ Name: Pav's T39
Система Bluetooth предоставляет услуги по соединениям типа точка-точка (при этом задействованы только два устройства Bluetooth) или точка-ко-многим-точкам. В последнем случае соединение используется совместно несколькими устройствам Bluetooth. В следующем примере показывается, как получить список активных для локального устройства соединений:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -744,7 +744,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
Идентификатор соединения (_connection handle_) полезен, когда необходимо прекратить соединение. Заметьте, что обычно нет нужды делать это вручную. Стек будет автоматически разрывать неактивные соединения.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -763,7 +763,7 @@ L2CAP основан на концепции _каналов_. Каналом я
Полезной является программа man:l2ping[8], которая может использоваться для проверки связи с другими устройствами. Некоторые реализации Bluetooth могут не возвращать все данные, посылаемые им, так что `0 bytes` в следующем примере - это нормально.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -774,7 +774,7 @@ L2CAP основан на концепции _каналов_. Каналом я
Утилита man:l2control[8] используется для выполнения различных операций с узлами L2CAP. В этом примере показано, как получить список логических соединений (каналов) и перечень радиосоединений локального устройства:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -788,7 +788,7 @@ Remote BD_ADDR Handle Flags Pending State
Ещё одним диагностическим инструментом является man:btsockstat[1]. Она выполняет действия, подобные тем, что обычно выполняет man:netstat[1], но со структурами данных, связанных с работой в сети Bluetooth. В примере ниже описывается то же самое логическое соединение, что и с man:l2control[8] выше.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -859,7 +859,7 @@ SDP подразумевает коммуникации между SDP-серв
Bluetooth SDP сервер man:sdpd[8] и клиент с интерфейсом командной строки man:sdpcontrol[8] включены в стандартную поставку FreeBSD. В следующем примере показано, как выполнять запрос на SDP-обзор.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -887,7 +887,7 @@ Bluetooth Profile Descriptor List:
... и так далее. Заметьте, что каждый сервис имеет перечень атрибутов (например, канал RFCOMM). В зависимости от сервиса вам может потребоваться где-то сохранить эти атрибуты. Некоторые реализации Bluetooth не поддерживают просмотр сервисов и могут возвращать пустой список. В этом случае возможен поиск конкретной услуги. В примере ниже показано, как выполнить поиск службы OBEX Object Push (OPUSH):
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -901,14 +901,14 @@ sdpd_enable="YES"
После этого sdpd даемон может быть запущен с помощью:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sdpd start
....
Во FreeBSD 6.0, и во FreeBSD 5.X перед 5.5, sdpd не интегрирован в скрипты загрузки системы. Он должен запускаться автоматически командой:
-[source,bash]
+[source,shell]
....
# sdpd
....
@@ -917,7 +917,7 @@ sdpd_enable="YES"
Список сервисов, зарегистрированных через локальный SDP сервер, может быть получен путем выдачи запроса на просмотр SDP через локальный контрольный канал:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -939,14 +939,14 @@ sdpd_enable="YES"
В следующем примере man:rfcomm_pppd[8] будет использоваться для открытия RFCOMM-соединения к удалённому устройству с BD_ADDR 00:80:37:29:19:a4 на DUN RFCOMM-канале. Реальный номер RFCOMM-канала будет получаться с удалённого устройства через SDP. Возможно указать RFCOMM-канал вручную, и в этом случае man:rfcomm_pppd[8] не будет выполнять SDP-запрос. Для нахождения RFCOMM-канала на удалённом устройстве используйте утилиту man:sdpcontrol[8].
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
Для того, чтобы организовать сервис Network Access with PPP (LAN), необходимо запустить сервер man:sdpd[8]. В файле [.filename]#/etc/ppp/ppp.conf# должна быть создана новая запись для клиентов LAN. Примеры можно найти в справке по man:rfcomm_pppd[8]. Наконец, запустите RFCOMM PPP сервер на существующем номере канала RFCOMM. Сервер RFCOMM PPP автоматически зарегистрирует Bluetooth LAN сервис через локальный SDP даемон. В примере ниже показано, как запустить сервер RFCOMM PPP.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -959,7 +959,7 @@ OBEX является широко используемым протоколом
Клиент OBEX используется для посылки или приёма объектов с сервера OBEX. Объектом, к примеру, может быть визитная карточка или указание. Клиент OBEX может получить номер RFCOMM-канала, указав вместо него имя сервиса. Поддерживаются следующие имена сервиса: IrMC, FTRN и OPUSH. Канал RFCOMM можно задать его номером. Ниже даётся пример сеанса OBEX, где с сотового телефона забирается объект с информацией об устройстве, а новый объект (визитная карточка) передаётся в каталог сотового телефона.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -972,7 +972,7 @@ Success, response: OK, Success (0x20)
Для того, чтобы предоставить сервис OBEX Push, должен быть запущен сервер man:sdpd[8]. Должен быть создан корневой каталог, в котором будут сохраняться все поступающие объекты. По умолчанию корневым каталогом является [.filename]#/var/spool/obex#. Наконец, запустите OBEX сервер на существующем номере канала RFCOMM. OBEX сервер автоматически зарегистрирует сервис OBEX Object Push через локального даемона SDP. В примере ниже показано, как запустить OBEX-сервер.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -983,7 +983,7 @@ Success, response: OK, Success (0x20)
Утилита man:rfcomm_sppd[1] реализует профиль последовательного порта. В качестве виртуального последовательного порта используется псевдо-терминал. В примере ниже показано, как подключиться к сервису Serial Port удалённого устройства. Заметьте, что вы не указываете RFCOMM-канал - man:rfcomm_sppd[1] может получить его с удалённого устройства через SDP. Если вы хотите переопределить это, укажите RFCOMM-канал явно в командной строке.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -991,7 +991,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
После подключения псевдо-терминал можно использовать как последовательный порт:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1002,7 +1002,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
Некоторые старые Bluetooth-устройства не поддерживают переключение ролей. По умолчанию, когда FreeBSD подтверждает новое соединение, она пытается выполнить переключение роли и стать ведущим устройством. Устройства, которые это не поддерживают, не смогут подключиться. Заметьте, что переключение ролей выполняется при установлении нового соединения, поэтому невозможно выяснить, поддерживает ли удалённое устройство переключение ролей. На локальной машине имеется возможность отключить переключение ролей при помощи HCI-параметра:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1255,7 +1255,7 @@ http://etherboot.sourceforge.net[Сайт Etherboot] содержит http://eth
Для создания загрузочной дискеты, вставьте дискету в дисковод на машине, где установлен Etherboot, затем перейдите в каталог [.filename]#src# в дереве Etherboot и наберите:
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
@@ -1293,7 +1293,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
+
. Сообщите inetd о необходимости перечитать свой файл конфигурации. Файл [.filename]#/etc/rc.conf# должен содержать строку `inetd_enable="YES"` для корректного исполнения команды
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1322,7 +1322,7 @@ nfs_server_enable="YES"
+
. Заставьте mountd перечитать настроечный файл. На самом деле если вам потребовалось на первом шаге включить NFS в [.filename]#/etc/rc.conf#, то вам нужно будет выполнить перезагрузку.
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd restart
....
@@ -1388,7 +1388,7 @@ cd /usr/src/etc; make distribution
На стадии загрузки ядро не поддерживает подкачку через NFS. Подкачка должна быть разрешена при помощи загрузочных скриптов, монтирующих файловую систему, пригодную для записи и создающих на ней файл подкачки. Для создания файла подкачки подходящего размера вы можете выполнить следующие команды:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/path/to/swapfile bs=1k count=1 oseek=100000
....
@@ -1846,7 +1846,7 @@ BUSY
Прежде всего вы должны найти laplink-кабель. Затем удостоверьтесь, что на обоих компьютерах в ядро включена поддержка драйвера man:lpt[4]:
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
@@ -1863,7 +1863,7 @@ hint.ppc.0.irq="7"
Затем проверьте, что файл конфигурации ядра имеет строку `device plip`, или загружен ли модуль ядра [.filename]#plip.ko#. В обоих случаях интерфейс работы с сетью по параллельному порту должен присутствовать на момент использования команды man:ifconfig[8].
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -1881,14 +1881,14 @@ IP Address 10.0.0.1 10.0.0.2
Настройте интерфейс на машине `host1`, выполнив:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.1 10.0.0.2
....
Настройте интерфейс на машине `host2`, выполнив:
-[source,bash]
+[source,shell]
....
# ifconfig lp0 10.0.0.2 10.0.0.1
....
@@ -1906,7 +1906,7 @@ IP Address 10.0.0.1 10.0.0.2
Чтобы проверить работу соединения, перейдите к каждому хосту и выполните тестирование соединения с другой машиной посредством команды ping. К примеру, на машине `host1`:
-[source,bash]
+[source,shell]
....
# ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -2034,7 +2034,7 @@ IPv6 решает эти и многие другие вопросы:
Теперь читатель должен понять следующую запись:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2068,7 +2068,7 @@ rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
Вот типичный пример настройки туннеля man:gif[4]:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0
@@ -2088,13 +2088,13 @@ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
Теперь настройка маршрута к вашей вышестоящей точке подключения 6bone должна быть весьма проста:
-[source,bash]
+[source,shell]
....
# route add -inet6 default -interface gif0
# ping6 -n MY_UPLINK
....
-[source,bash]
+[source,shell]
....
# traceroute6 www.jp.FreeBSD.org
(3ffe:505:2008:1:2a0:24ff:fe57:e561) from 3ffe:8060:100::40:2, 30 hops max, 12 byte packets
@@ -2278,7 +2278,7 @@ fxp0:\
Значения VPI и VCI на каждом конце соединения конечно могут отличаться, но для упрощения мы предполагаем, что они одинаковы. Затем нам потребуется настроить ATM интерфейсы на каждом хосте:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -2288,7 +2288,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
предполагая, что ATM интерфейс называется [.filename]#hatm0# на всех хостах. Теперь PVC необходимо настроить на `hostA` (мы предполагаем, что ATM коммутаторы уже настроены, вам необходимо свериться с руководством на коммутатор за информацией по настройке).
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -2309,7 +2309,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
Конечно, вместо UBR может быть использован другой тип, если ATM адаптер поддерживает это. В этом случае имя типа дополняется параметрами трафика. Помощь по man:atmconfig[8] может быть получена командой:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -2330,7 +2330,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
Текущий статус всех маршрутов CLIP может быть получен командой:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
diff --git a/documentation/content/ru/books/handbook/audit/_index.adoc b/documentation/content/ru/books/handbook/audit/_index.adoc
index 43c69ec804..5e07d56c80 100644
--- a/documentation/content/ru/books/handbook/audit/_index.adoc
+++ b/documentation/content/ru/books/handbook/audit/_index.adoc
@@ -97,7 +97,7 @@ auditd_enable="YES"
Затем нужно запустить демон аудита:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -312,7 +312,7 @@ www:fc,+ex:no
Например, для отображения всего содержимого журнала аудита в текстовом формате выполните:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -338,7 +338,7 @@ trailer,133
Поскольку логи системы аудита могут иметь огромный размер, возможно выделить только часть записей при помощи `auditreduce`. В следующем примере из [.filename]#AUDITFILE# выбираются все записи, касающиеся пользователя `trhodes`:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -349,7 +349,7 @@ trailer,133
Потоки системы аудита - клонирующиеся псевдоустройства, позволяющие приложениям просматривать в реальном времени поток событий аудита. В первую очередь, это должно заинтересовать авторов программ определения вторжений и мониторинга системы. Тем не менее, для администратора поток системы аудита предоставляет возможность организовать наблюдение за системой, избежав проблем с правами доступа на журнал аудита или с прерыванием потока событий из-за ротации журнала. Для отслеживания потока событий аудита в реальном времени, выполните:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -373,7 +373,7 @@ add path 'auditpipe*' mode 0440 group audit
Журнал аудита пишется ядром и управляется демоном аудита man:auditd[8]. Администраторам не следует пытаться использовать man:newsyslog.conf[5] или другие инструменты для прямой ротации логов. Вместо этого, для прекращения аудита, реконфигурации и ротации журнальных файлов должна использоваться команда `audit`. Следующая команда приведет к созданию нового журнального файла и даст указание ядру переключиться на запись в этот файл. Протоколирование в старый файл будет прекращено, а сам файл - переименован, в результате чего с ним можно будет работать администратору:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/ru/books/handbook/basics/_index.adoc b/documentation/content/ru/books/handbook/basics/_index.adoc
index ac5041a83a..d484276b1d 100644
--- a/documentation/content/ru/books/handbook/basics/_index.adoc
+++ b/documentation/content/ru/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ FreeBSD можно использовать разными способами.
Если во время установки вы не настроили FreeBSD для автоматического запуска графической среды при загрузке, система запросит ввод логина сразу после завершения стартовых скриптов. Вы увидите примерно следующее:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ FreeBSD это многопользовательская, многопроце
Сразу после загрузки FreeBSD и завершения работы стартовых скриптов, система предложит вам ввести имя пользователя:
-[source,bash]
+[source,shell]
....
login:
....
В этом примере, предположим что ваше имя пользователя `john`. Введите `john` в этом приглашении и нажмите kbd:[Enter]. Далее должно появиться приглашение ввести "пароль":
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -203,14 +203,14 @@ options SC_PIXEL_MODE
После пересборки и установки ядра воспользуйтесь утилитой man:vidcontrol[1] для определения видеорежимов, поддерживаемых вашим оборудованием. Чтобы получить перечень видеорежимов, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
Команда отобразит список поддерживаемых видеорежимов. Теперь вы можете выбрать один из них и установить его на консоли при помощи man:vidcontrol[1]:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -308,7 +308,7 @@ ID пользователя (User ID, UID)::
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -362,7 +362,7 @@ FreeBSD располагает набором различных команд д
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -428,7 +428,7 @@ man:rmuser[8] не может использоваться для удалени
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -460,7 +460,7 @@ Removing user (jru): mailspool home passwd.
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -486,7 +486,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -513,7 +513,7 @@ man:chfn[1] и man:chsh[1] это ссылки на man:chpass[1], как и man
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -532,7 +532,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -569,7 +569,7 @@ FreeBSD предоставляет администратору нескольк
====
FreeBSD, как правило, не читает настройки в [.filename]#/etc/login.conf# непосредственно, вместо этого она обращается к файлу базы данных [.filename]#/etc/login.conf.db# для ускорения доступа к данным. Всякий раз после редактирования [.filename]#/etc/login.conf# необходимо обновить [.filename]#/etc/login.conf.db# при помощи следующей команды:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -635,7 +635,7 @@ FreeBSD, как правило, не читает настройки в [.filena
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -650,7 +650,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -665,7 +665,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -680,7 +680,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
@@ -741,7 +741,7 @@ FreeBSD является прямым потомком BSD UNIX(R) и основ
Вы можете использовать опцию `-l` команды man:ls[1] для получения подробного листинга каталога, включающего колонку с информацией о правах на файл для владельца, группы и всех остальных. Например, команда `ls -l` в произвольном каталоге может вывести следующее:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -753,7 +753,7 @@ total 530
Вот как выглядит первая колонка вывода `ls -l`:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -830,14 +830,14 @@ total 530
Эти значения используются командой man:chmod[1] так же как и раньше, но с буквами. Например, вы можете использовать следующую команду для запрета доступа других пользователей к _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
Для изменения более чем одного набора прав можно применить список, разделенный запятыми. Например, следующая команда удалит права группы и "всех остальных" на запись в _FILE_, а затем добавит права на выполнение для всех:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -850,21 +850,21 @@ total 530
Файловые флаги изменяются при помощи утилиты man:chflags[1] посредством простого интерфейса. К примеру, чтобы установить системный признак неудаляемости на файл [.filename]#file1#, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
Чтобы отключить флаг неудаляемости, просто выполните предыдущую команду с ключом "no" перед параметром `sunlink`. Вот так:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
Чтобы просмотреть флаги этого файла, воспользуйтесь командой man:ls[1] с параметрами `-lo`:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -893,7 +893,7 @@ total 530
Бит setuid устанавливается добавлением цифры четыре (4) перед численным представлением прав доступа, например:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -911,7 +911,7 @@ total 530
В терминале А:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -919,12 +919,12 @@ Old Password:
В терминале Б:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -936,14 +936,14 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
Чтобы установить на файл бит `setgid`, выполните команду `chmod`, добавив цифру два (2) перед численным представлением прав доступа, например:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
Новый бит отображается подобно предыдущему случаю: обратите внимание на наличие `s` в перечне прав доступа для группы:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -957,19 +957,19 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
Бит `sticky`, будучи установленным на каталог, позволяет производить удаление файла только владельцу файла. Этот бит применяется для предотвращения удаления файлов в публичных каталогах, таких как [.filename]#/tmp#, пользователями, не владеющими файлом. Чтобы задействовать этот бит, добавьте единицу (1) перед численным представлением прав доступа. Например:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
Проверить результат можно при помощи команды `ls`:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -1306,7 +1306,7 @@ image::disk-layout.png[]
[example]
====
-[source,bash]
+[source,shell]
....
# mount устройство точка-монтирования
....
@@ -1370,7 +1370,7 @@ FreeBSD является многозадачной операционной с
По умолчанию, `ps` показывает только принадлежащие вам процессы. Например:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -1398,7 +1398,7 @@ FreeBSD является многозадачной операционной с
Вывод man:top[1] похож на только что описанный. Обычно он выглядит так:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -1455,7 +1455,7 @@ man:top[1] автоматически обновляет экран каждые
. Нужно определить PID процесса, которому вы хотите отправить сигнал. Сделайте это с помощью man:ps[1] и man:grep[1]. Команда man:grep[1] используется для поиска по заданной строке в выходном потоке. Эта команда запускается под обычным пользователем, а man:inetd[8] под `root`, поэтому man:ps[1] должна быть запущена с параметром `ax`.
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -1464,7 +1464,7 @@ man:top[1] автоматически обновляет экран каждые
Итак, PID man:inetd[8] 198. В некоторых случаях в выводе команды может также появиться `grep inetd`. Это из-за способа, которым man:ps[1] получает список запущенных процессов.
. Используйте man:kill[1] для отправки сигнала. Поскольку man:inetd[8] запускается из под `root`, нужно сначала использовать man:su[1] для получения прав `root`.
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1544,14 +1544,14 @@ Password:
Установка значений переменных окружения различна для разных оболочек. Например, в интерпретаторах C-стиля, таких как `tcsh` и `csh`, это `setenv`. В интерпретаторах Bourne, таких как `sh` и `bash`, это `export`. Например, чтобы установить или изменить значение переменной `EDITOR` к значению [.filename]#/usr/local/bin/emacs# в `csh` или `tcsh`, выполните команду:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
В оболочках Bourne:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1569,7 +1569,7 @@ Password:
Можно также воспользоваться опцией `-s` команды `chsh`. Например, если вы хотите изменить интерпретатор на `bash`, выполните:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1580,7 +1580,7 @@ Password:
Например, если вы установили `bash` вручную и поместили его в каталог [.filename]#/usr/local/bin#, нужно набрать:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1657,14 +1657,14 @@ ELF более выразителен, чем [.filename]#a.out#, позволя
Пожалуй, самым полным руководством по FreeBSD является системный справочник (man). Практически каждое приложение или утилита имеют соответствующую страницу (часто не одну), описывающую тот или иной аспект работы программы, всевозможные опции и настройки. Для просмотра этих страниц существует команда `man`:
-[source,bash]
+[source,shell]
....
% man command
....
Здесь `command` - это команда, о которой вы хотите получить информацию. Например, чтобы узнать побольше о команде `ls`, наберите:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1683,7 +1683,7 @@ ELF более выразителен, чем [.filename]#a.out#, позволя
В некоторых случаях (не так уж редко), страницы, относящиеся к одной и той же команде, находятся в различных разделах справочника. Например, есть команда `chmod` и системный вызов `chmod()`. В этом случае, необходимо явно указать раздел `man`, в котором нужно искать соответствующую страницу:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1692,7 +1692,7 @@ ELF более выразителен, чем [.filename]#a.out#, позволя
Часто бывает так, что вы не знаете название команды, но имеете представление о том, что она должна делать. В этом случае можно попытаться найти нужную команду по ключевым словам, встречающимся в ее описании, используя опцию `-k` программы `man`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1701,7 +1701,7 @@ ELF более выразителен, чем [.filename]#a.out#, позволя
Или например, вы видите список файлов в каталоге [.filename]#/usr/bin#, при этом не имея ни малейшего представления о том, какие функции выполняет каждый их них? Просто наберите:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1709,7 +1709,7 @@ ELF более выразителен, чем [.filename]#a.out#, позволя
или
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1724,7 +1724,7 @@ FreeBSD поставляется с многочисленными прилож
Чтобы воспользоваться командой man:info[1], просто наберите в командной строке:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/ru/books/handbook/boot/_index.adoc b/documentation/content/ru/books/handbook/boot/_index.adoc
index c97208cb69..bd26d1a2d9 100644
--- a/documentation/content/ru/books/handbook/boot/_index.adoc
+++ b/documentation/content/ru/books/handbook/boot/_index.adoc
@@ -102,7 +102,7 @@ MBR для FreeBSD находится в [.filename]#/boot/boot0#. Это _ко
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -117,7 +117,7 @@ Default: F2
Известно, что другие операционные системы, в частности, Windows(R) 95, записывают поверх существующей MBR свою собственную. Если так случилось в вашем случае, или же вы хотите заменить существующую MBR на MBR от FreeBSD, то воспользуйтесь следующей командой:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -154,7 +154,7 @@ label=FreeBSD
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -165,7 +165,7 @@ boot:
Если вам когда-либо понадобится заменить установленные [.filename]#boot1# и [.filename]#boot2#, то используйте утилиту man:bsdlabel[8]:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -245,14 +245,14 @@ unload::
* Чтобы просто загрузить ваше ядро обычным образом, но в однопользовательском режиме:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* Для выгрузки обычных ядра и модулей, а потом просто загрузить ваше старое (или другое) ядро:
+
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -264,7 +264,7 @@ load kernel.old
====
Для загрузки ваших обычных модулей с другим ядром используйте такие команды:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -275,7 +275,7 @@ boot-conf
* Для загрузки скрипта конфигурации ядра (автоматизированный скрипт, который выполняет то, что вы обычно делаете в конфигураторе ядра во время загрузки):
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -392,14 +392,14 @@ bitmap_name="/boot/splash.pcx"
Синтаксически в файле [.filename]#/boot/device.hints# в каждой строке определяется по одной переменной, в качестве метки начала комментария используется стандартный символ "#". Строки строятся следующим образом:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
Синтаксис для начального загрузчика Стадии 3 таков:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/ru/books/handbook/bsdinstall/_index.adoc b/documentation/content/ru/books/handbook/bsdinstall/_index.adoc
index 433f92f82f..c9792dffef 100644
--- a/documentation/content/ru/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/ru/books/handbook/bsdinstall/_index.adoc
@@ -247,7 +247,7 @@ CD- и DVD-образы FreeBSD являются загрузочными. Дл
+
Файл [.filename]#.img# не является обычным файлом. Это _образ_ всего содержимого флеш-накопителя. Этот файл _не может_ быть просто скопированным подобно обычному файлу, он должен быть записан непосредственно на целевое устройство при помощи man:dd[1]:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -315,7 +315,7 @@ commit your changes?
+
. FreeBSD начнет загружаться. Если вы загружаетесь с CDROM, вы увидите поток сообщений, подобный следующему (информация о версиях опущена):
+
-[source,bash]
+[source,shell]
....
Booting from CD-ROM...
645MB medium detected
@@ -353,7 +353,7 @@ image::bsdinstall-boot-loader-menu.png[]
На большинстве машин удерживание клавиши kbd:[C] на клавиатуре во время начальной загрузки активирует загрузку с CD. Иначе, удерживайте kbd:[Command+Option+O+F], или kbd:[Windows+Alt+O+F] на не-Apple(R) клавиатурах. На приглашение `0 >` введите
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -366,7 +366,7 @@ image::bsdinstall-boot-loader-menu.png[]
Для того, чтобы получить доступ к PROM, перегрузите систему и дождитесь появления загрузочных сообщений. Вид сообщений зависит от модели машины, но должен выглядеть подобно следующему:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -376,7 +376,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Если ваша система продолжает загружаться с жесткого диска, то чтобы получить приглашение PROM вам необходимо нажать на клавиатуре kbd:[L1+A] или kbd:[Stop+A], или же послать сигнал `BREAK` через последовательную консоль (используя, например, `~#` в man:tip[1] или man:cu[1]). Приглашение выглядит подобно следующему:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -399,7 +399,7 @@ ok {0} <.>
[[bsdinstall-dev-probe]]
.Типичный вывод сообщений определения устройств
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1138,7 +1138,7 @@ image::bsdinstall-mainexit.png[]
Типичные сообщения загрузки (информация о версиях опущена):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1341,7 +1341,7 @@ login:
Касательно платформ i386, amd64 и ia64: если во время загрузки была обнаружена система ACPI, то FreeBSD повсеместно использует её для конфигурирования оборудования. К сожалению, до сих пор существуют неполадки как в драйвере ACPI, так и среди материнских плат и их BIOS. ACPI может быть отключена путём установки значения переменной `hint.acpi.0.disabled` на третьем этапе загрузки:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/ru/books/handbook/config/_index.adoc b/documentation/content/ru/books/handbook/config/_index.adoc
index b0d3f7143a..c407a483f1 100644
--- a/documentation/content/ru/books/handbook/config/_index.adoc
+++ b/documentation/content/ru/books/handbook/config/_index.adoc
@@ -198,7 +198,7 @@ exit 0
А можно запускать его и вручную, с помощью команды:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/utility.sh start
....
@@ -309,7 +309,7 @@ HOME=/var/log
Для установки готового [.filename]#crontab# пользователя, сначала создайте в вашем любимом редакторе файл соответствующего формата, а затем воспользуйтесь утилитой `crontab`. Обычно она запускается так:
-[source,bash]
+[source,shell]
....
% crontab crontab-file
....
@@ -327,7 +327,7 @@ HOME=/var/log
Во FreeBSD недавно была интегрирована из NetBSD система [.filename]#rc.d#, используемая для старта системы. Многие из файлов в каталоге [.filename]#/etc/rc.d# предназначены для основных сервисов, они могут управляться параметрами `start`, `stop`, и `restart`. Например, man:sshd[8] может быть перезапущен следующей командой:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -343,14 +343,14 @@ natd_enable="YES"
Поскольку система [.filename]#rc.d# в основном предназначена для запуска/отключения сервисов во время запуска/отключения системы, стандартные параметры `start`, `stop` и `restart` будут работать только если установлена соответствующая переменная в [.filename]#/etc/rc.conf#. Например, команда выше `sshd restart` будет работать только если переменная `sshd_enable` в файле [.filename]#/etc/rc.conf# установлена в `YES`. Для выполнения скриптов независимо от установок в [.filename]#/etc/rc.conf#, параметры `start`, `stop` или `restart` необходимо задавать с префиксом "force". Например, для перезапуска `sshd` независимо от установок в [.filename]#/etc/rc.conf#, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd forcerestart
....
Проверить состояние переменной в файле [.filename]#/etc/rc.conf# легко: запустите соответствующий скрипт из [.filename]#rc.d# с параметром `rcvar`. Проверка переменной для `sshd` выполняется следующей командой:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -364,7 +364,7 @@ $sshd_enable=YES
Чтобы определить, запущен ли сервис, существует параметр `status`. Например для проверки того, запущен ли `sshd`, выполните:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -374,7 +374,7 @@ sshd is running as pid 433.
Система [.filename]#rc.d# используется не только для сетевых серверов, она отвечает также за большую часть инициализации системы. Рассмотрим, к примеру, файл [.filename]#bgfsck#. Во время выполнения этот скрипт выводит следующее сообщение:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -404,7 +404,7 @@ Starting background file system checks in 60 seconds.
Если ваша карта широко распространена, вам скорее всего не потребуется долго искать драйвер. Драйверы для широко распространенных карт представлены в ядре [.filename]#GENERIC#, так что ваша карта должна определиться при загрузке, примерно так:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -433,7 +433,7 @@ ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Для вывода информации о настройке сетевых интерфейсов системы, введите следующую команду:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -479,7 +479,7 @@ tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
Если man:ifconfig[8] показывает примерно следующее:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:a0:cc:da:da:da
@@ -515,7 +515,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
Сначала проверьте локальный интерфейс:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -532,7 +532,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
Затем проверьте другую машину в локальной сети:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -826,14 +826,14 @@ man:sysctl[8] - это интерфейс, позволяющий вам вно
Для просмотра всех доступных для чтения переменных:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
Чтобы прочитать определённую переменную, например, `kern.maxproc`, введите:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -841,7 +841,7 @@ kern.maxproc: 1044
Для присвоения значения переменной, используйте выражение вида _переменная_=_значение_:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -858,7 +858,7 @@ kern.maxfiles: 2088 -> 5000
Например, на некоторых моделях лэптопов диапазон памяти устройства man:cardbus[4] не определяется и выдается приблизительно такая ошибка:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -906,7 +906,7 @@ device_probe_and_attach: cbb0 attach returned 12
Программа man:tunefs[8] используется для настройки файловой системы. Эта программа может принимать большое количество параметров, но мы рассмотрим лишь один из них - включение и выключение Soft Updates, что может быть достигнуто следующим образом:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1040,14 +1040,14 @@ device md # Memory "disks"
. Создайте файл подкачки ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
. Установите подходящие права на ([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1061,7 +1061,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
. Перегрузите компьютер или для включения подкачки прямо сейчас введите:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 swapon /dev/md0
....
@@ -1103,7 +1103,7 @@ ACPI и APM не могут сосуществовать и должны исп
В простейшей форме, ACPI может использоваться для перевода системы в спящий режим с помощью man:acpiconf[8], с флагом `-s` и параметром `1-5`. Большинству пользователей нужен только параметр `1`. Параметр `5` сделает "мягкое" завершение работы, так же как и:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1133,7 +1133,7 @@ ACPI это фундаментально новый способ обнаруж
* Вывод `sysctl hw.acpi`. Это также хороший способ получения списка возможностей системы.
* URL где можно найти ваш _ACPI Source Language_ (ASL). _Не_ отправляйте ASL непосредственно в список рассылки, поскольку он может быть очень большим. Копия ASL может быть создана командой:
+
-[source,bash]
+[source,shell]
....
# acpidump -t -d name-system.asl
....
@@ -1166,7 +1166,7 @@ ACPI поддерживает три состояния приостановки
Начните с проверки переменных `sysctl hw.acpi`, относящихся к приостановке (suspend). Вот результат для Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1209,7 +1209,7 @@ hw.acpi.s4bios: 0
Наиболее часто встречается проблема, связанная с предоставлением поставщиками BIOS некорректного (или полностью ошибочного!) байткода. Это обычно проявляется появлением консольных сообщений ядра, подобных этому:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1219,7 +1219,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
Простейшая первая проверка, которую вы можете провести, это перекомпиляция ASL для поиска ошибок. Предупреждения обычно могут быть проигнорированы, но ошибки обычно не позволяют ACPI работать правильно. Для перекомпиляции ASL, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1243,7 +1243,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
После настройки [.filename]#your.asl# для компиляции запустите:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1267,7 +1267,7 @@ acpi_dsdt_name="/boot/DSDT.aml"
Вывод отладочной информации по умолчанию не включен. Для его включения добавьте параметр `options ACPI_DEBUG` к файлу настройки ядра, если ACPI встроен в ядро. Вы можете добавить параметр `ACPI_DEBUG=1` в файл [.filename]#/etc/make.conf# для глобального включения этого параметра. Если вы используете модуль [.filename]#acpi.ko# , его можно пересобрать индивидуально:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
make clean make
diff --git a/documentation/content/ru/books/handbook/cutting-edge/_index.adoc b/documentation/content/ru/books/handbook/cutting-edge/_index.adoc
index 8df1a18272..db62cec8c6 100644
--- a/documentation/content/ru/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/ru/books/handbook/cutting-edge/_index.adoc
@@ -152,7 +152,7 @@ MergeChanges /etc/ /var/named/etc/ /boot/device.hints
Обновления безопасности можно загрузить и установить с использованием следующих команд. Первая команда определяет наличие незагруженных обновлений и показывает файлы, которые будут изменены в процессе обновления. Вторая команда выполняет обновление.
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -171,7 +171,7 @@ MergeChanges /etc/ /var/named/etc/ /boot/device.hints
На случай, если что-то пошло не так, в `freebsd-update` предусмотрен механизм возврата последнего набора изменений с использованием следующей команды:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -202,14 +202,14 @@ Uninstalling updates... done.
Следующая команда, будучи запущенной на FreeBSD 9.0, выполнит обновление до версии FreeBSD 9.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
После своего запуска `freebsd-update` анализирует содержимое конфигурационного файла и собирает необходимую для проведения обновления информацию о текущей установленной системе. На экран будет выдан перечень компонентов, которые удалось и не удалось обнаружить установленными. Например:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -233,7 +233,7 @@ Does this look reasonable (y/n)? y
Если используется ядро с собственной конфигурацией, то в этом случае появится предупреждение следующего вида:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -249,7 +249,7 @@ before running "/usr/sbin/freebsd-update install"
====
На данном этапе система еще не модифицирована, и все изменения и слияния происходят в отдельном каталоге. Теперь, когда все изменения успешно применены, все конфигурационные файлы объединены и кажется, что процесс должен пройти плавно, изменения могут быть установлены на диск с помощью следующей команды:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -258,7 +258,7 @@ before running "/usr/sbin/freebsd-update install"
В первую очередь изменения будут применены к ядру и его модулям. При использовании ядра с собственной конфигурацией укажите для следующей загрузки обновлённое ядро [.filename]#/boot/GENERIC# с помощью man:nextboot[8]:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -271,14 +271,14 @@ before running "/usr/sbin/freebsd-update install"
Теперь компьютер должен быть перезагружен с новым ядром:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
После перезагрузки нужно повторно запустить команду `freebsd-update`. Команда прочитает, на каком этапе она находится, и перейдёт к удалению старых объектных файлов и совместно используемых библиотек.
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -297,7 +297,7 @@ before running "/usr/sbin/freebsd-update install"
Если ядро с собственной конфигурацией было собрано более одного раза, получите копию ядра `GENERIC`, соответствующую текущей версии операционной системы. При наличии физического доступа копию ядра `GENERIC` можно установить с установочного носителя:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -306,7 +306,7 @@ before running "/usr/sbin/freebsd-update install"
Иначе, ядро `GENERIC` можно собрать и установить из исходных текстов:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -323,14 +323,14 @@ before running "/usr/sbin/freebsd-update install"
Принудительное обновление все установленных пакетов приведёт к их замене на последние версии из репозитория, даже если номер версии при этом не увеличивался. Это требуется из-за смены версии ABI при обновлении на другую старшую версию FreeBSD. Принудительное обновление можно выполнить так:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
Перестроение всех установленных приложений можно выполнить этой командой:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -339,7 +339,7 @@ before running "/usr/sbin/freebsd-update install"
После завершения процесса обновления программного обеспечения закончите процесс обновления последним запуском `freebsd-update`, для того чтобы убедиться, что ничто не было пропущено в процессе обновления:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -361,7 +361,7 @@ before running "/usr/sbin/freebsd-update install"
Для того, чтобы начать сравнение, укажите файл для сохранения результатов:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -370,7 +370,7 @@ before running "/usr/sbin/freebsd-update install"
Строки в списке чрезмерно длинные, но зато такой формат вывода удобен для разбора. Так, для получения списка всех отличающихся от релиза файлов достаточно выполнить такую команду:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -397,7 +397,7 @@ before running "/usr/sbin/freebsd-update install"
После установки используйте svn для получения копии исходных текстов документации:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -406,7 +406,7 @@ before running "/usr/sbin/freebsd-update install"
Последующие обновления можно получить, выполнив:
-[source,bash]
+[source,shell]
....
# svn update /usr/doc
....
@@ -415,7 +415,7 @@ before running "/usr/sbin/freebsd-update install"
Полное обновление всех доступных языковых версий можно выполнить, набрав команду:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -423,7 +423,7 @@ before running "/usr/sbin/freebsd-update install"
Для обновления только указанной языковой версии команду `make` можно запустить в соответствующем подкаталоге [.filename]#/usr/doc#:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -431,14 +431,14 @@ before running "/usr/sbin/freebsd-update install"
Альтернативный способ обновления документации заключается в запуске следующей команды из из [.filename]#/usr/doc# или подкаталога с желаемой языковой версией:
-[source,bash]
+[source,shell]
....
# make update
....
Используемый при установке формат можно указать через `FORMATS`:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -477,7 +477,7 @@ before running "/usr/sbin/freebsd-update install"
При использовании двоичных пакетов документация FreeBSD будет установлена во всех доступных форматах для данного языка. Например, следующая команда установит последнюю версию пакета венгерской документации:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -489,7 +489,7 @@ before running "/usr/sbin/freebsd-update install"
Чтобы указать используемый формат документации, для этого вместо установки готового пакета нужно собрать порт самостоятельно. Ниже приводится пример построения и установки английской документации:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -510,7 +510,7 @@ before running "/usr/sbin/freebsd-update install"
В примере ниже демонстрируется использование переменных для установки венгерской документации в PDF в указанный каталог:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -518,7 +518,7 @@ before running "/usr/sbin/freebsd-update install"
Пакеты или порты документации обновляются согласно инструкциям в crossref:ports[ports, Установка приложений. порты и пакеты]. Например, следующая команда выполняет обновление установленной документации на венгерском языке с помощью package:ports-mgmt/portmaster[] в режиме использования только готовых пакетов:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -641,7 +641,7 @@ _Перед_ перестроением мира убедитесь в выпо
Проще всего использовать для этого `script` с параметром, задающим имя файла для сохранения всего вывода. Не сохраняйте вывод в [.filename]#/tmp#, так как этот каталог может быть очищен при следующей перезагрузке. Более подходящим местом является [.filename]#/var/tmp#. Запустите команду непосредственно перед перестроением мира, а после завершения процесса наберите `exit`:
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -657,7 +657,7 @@ Script started, output file is /var/tmp/mw.out
. Если процесс построения мира уже запускался ранее на этой системе, то в [.filename]#/usr/obj# могла остаться копия предыдущей сборки. Удалите этот каталог для ускорения процесса построения нового мира и возможного сокращений работы по разрешению зависимостей.
+
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/*
# rm -rf /usr/obj
@@ -665,7 +665,7 @@ Script started, output file is /var/tmp/mw.out
+
. Скомпилируйте новый компилятор и несколько сопутствующих инструментов и используйте их для компиляции остальной части мира. Результаты сохраняются в [.filename]#/usr/obj#.
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -673,28 +673,28 @@ Script started, output file is /var/tmp/mw.out
+
. Для построения нового ядра используйте компилятор, расположенный в [.filename]#/usr/obj#, чтобы защититься от ошибок несоответствия между компилятором и ядром. Это необходимо, так как определённые структуры данных могут поменяться, и при использовании различных версий ядра и исходных текстов перестанут работать `ps` и `top`.
+
-[source,bash]
+[source,shell]
....
# make buildkernel
....
+
. Установите новое ядро и модули, чтобы их можно было использовать для загрузки. Если используется `kern.securelevel` со значением выше `1` _и_ на файле ядра установлен `noschg` или подобный флаг, то для этого сперва придётся дополнительно перейти в однопользовательский режим. В противном случае эту команду можно без проблем запустить в многопользовательском режиме. Смотрите страницу Справочника man:init[8] для получения информации о `kern.securelevel`, а также man:chflags[1] для информации об использовании различных файловых флагов.
+
-[source,bash]
+[source,shell]
....
# make installkernel
....
+
. Переведите систему в однопользовательский режим для минимизации проблем при обновлении уже работающих исполняемых файлов. Это также уменьшит вероятность возникновения проблем при работе старого мира на новом ядре.
+
-[source,bash]
+[source,shell]
....
# shutdown now
....
+
После перехода в однопользовательский режим, запустите эти команды, если в системе используется UFS:
+
-[source,bash]
+[source,shell]
....
# mount -u /
# mount -a -t ufs
@@ -703,7 +703,7 @@ Script started, output file is /var/tmp/mw.out
+
Если используется ZFS, запустите другие две команды. В данном примере zpool называется `zroot`:
+
-[source,bash]
+[source,shell]
....
# zfs set readonly=off zroot
# zfs mount -a
@@ -711,28 +711,28 @@ Script started, output file is /var/tmp/mw.out
+
. Дополнительно: Если желаемая картография клавиатуры отличается от используемой по умолчанию US English, её можно изменить с помощью man:kbdmap[1]:
+
-[source,bash]
+[source,shell]
....
# kbdmap
....
+
. Затем, если часы CMOS установлены на местное время (это так, если вывод man:date[1] не содержит правильное время и часовой пояс), выполните:
+
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
+
. Пересборка мира не включает в себя добавление или обновление конфигурационных файлов в [.filename]#/etc#, [.filename]#/var#, [.filename]#/usr# и некоторых других каталогах. Следующим шагом является выполнение первоначального обновления файлов конфигурации в [.filename]#/etc# для подготовки к новому миру. Следующая команда ограничивается сравнением файлов, необходимых для успешного выполнения цели `installworld`. В частности, на этом шаге могут быть добавлены новые пользовательские группы, служебные учётные записи и сценарии автозапуска, которые были добавлены во FreeBSD со времени последнего обновления. Это необходимо для их использования при выполнении шага `installworld`. Смотрите <<mergemaster>> для получения более подробных инструкций по этой команде:
+
-[source,bash]
+[source,shell]
....
# mergemaster -p
....
+
. Установите новый мир и служебные исполняемые файлы, находящиеся в [.filename]#/usr/obj#.
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -740,28 +740,28 @@ Script started, output file is /var/tmp/mw.out
+
. Обновите остальные файлы конфигурации.
+
-[source,bash]
+[source,shell]
....
# mergemaster -iF
....
+
. Удалите устаревшие файлы. Это важно, так как в противном случае они могут вызвать проблемы.
+
-[source,bash]
+[source,shell]
....
# make delete-old
....
+
. Теперь нужна полная перезагрузка системы для того, чтобы загрузить новое ядро и мир с использованием новых конфигурационных файлов.
+
-[source,bash]
+[source,shell]
....
# reboot
....
+
. Убедитесь, что перед удалением старых версий библиотек все установленные порты были пересобраны согласно инструкциям в crossref:ports[ports-upgrading,Обновление портов]. По завершению удалите все старые библиотеки во избежание конфликтов с их новыми версиями. За подробным описанием этого шага обратитесь к <<make-delete-old>>.
+
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -785,7 +785,7 @@ Script started, output file is /var/tmp/mw.out
Общий формат использования `make`:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABLE target
....
@@ -794,7 +794,7 @@ Script started, output file is /var/tmp/mw.out
Чтобы передать переменную, укажите её имя с использованием `-D_VARIABLE_`. Поведение [.filename]#Makefile# зависит от переменных. Они могут быть заданы в [.filename]#/etc/make.conf# или указаны при использовании `make`. Например, эта переменная указывает, что библиотеки для профилирования собирать не нужно:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE target
....
@@ -816,7 +816,7 @@ _target_ указывает программе `make` на то, что нужн
Используйте следующую команду на машине с одним CPU, чтобы иметь до 4 одновременно работающих процессов. Опубликованные в списке рассылки практические замеры показывают, что в среднем это даёт наибольший выигрыш в производительности.
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -829,14 +829,14 @@ _target_ указывает программе `make` на то, что нужн
Например, если выполнялась эта команда:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
то результат её выполнения должен устанавливаться командой:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -851,7 +851,7 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Перед использованием `mergemaster` рекомендуется скопировать имеющийся каталог [.filename]#/etc# в какое-нибудь безопасное место. `-R` задает выполнение рекурсивного копирования, а `-p` сохраняет даты и владельца файлов:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -877,7 +877,7 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
После выполнения `make installworld` и последующего `mergemaster` проверьте наличие устаревших файлов и библиотек:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make check-old
@@ -885,21 +885,21 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Если были найдены какие-либо устаревшие файлы, их можно удалить с помощью следующей команды:
-[source,bash]
+[source,shell]
....
# make delete-old
....
Перед удалением каждого устаревшего файла запрашивается подтверждение. Используйте `BATCH_DELETE_OLD_FILES`, чтобы сократить этот процесс и позволить системе удалить эти файлы автоматически:
-[source,bash]
+[source,shell]
....
# make -DBATCH_DELETE_OLD_FILES delete-old
....
Аналогичного эффекта можно достичь, пропустив эти команды через `yes`:
-[source,bash]
+[source,shell]
....
# yes|make delete-old
....
@@ -915,7 +915,7 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Устаревшие совместно используемые библиотеки могут конфликтовать с более новыми библиотеками, что приводит к сообщениям следующего вида:
-[source,bash]
+[source,shell]
....
/usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5
/usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so, may conflict with librpcsvc.so.5
@@ -923,7 +923,7 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Для решения этих проблем выясните, какой именно порт установил данную библиотеку:
-[source,bash]
+[source,shell]
....
# pkg which /usr/local/lib/libtiff.so
/usr/local/lib/libtiff.so was installed by package tiff-3.9.4
@@ -933,14 +933,14 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Затем данный порт нужно удалить, пересобрать и переустановить. Для автоматизации этого процесса можно использовать package:ports-mgmt/portmaster[]. После того как все порты пересобраны и более не используют старые библиотеки, удалите эти старые библиотеки с помощью следующей команды:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
Если что-то работает неправильно, можно с лёгкостью перестроить конкретную часть системы. Например, если файл [.filename]#/etc/magic# был случайно удалён в процессе обновления или переноса [.filename]#/etc#, то команда `file` перестанет работать. В таком случае это можно исправить вот так:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -952,7 +952,7 @@ FreeBSD предоставляет утилиту man:mergemaster[8], котор
Нужно ли полностью перестраивать систему при каждом изменении?::
Это зависит от характера изменения. Например, если svn показывает, что с момента последнего запуска были изменены только следующие файлы:
+
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -978,7 +978,7 @@ src/shared/mk/bsd.port.mk
+
На последней стадии выполнение этих команд является достаточно безопасным, поскольку они не отменяют работу предыдущего `make buildworld`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make -DNO_CLEAN all
@@ -986,7 +986,7 @@ src/shared/mk/bsd.port.mk
+
Если в выводе `make buildworld` появляется такое сообщение:
+
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1021,7 +1021,7 @@ Building everything..
Что делать, если что-то пошло не так?::
Скрупулезно проверьте, чтобы в вашем окружении не было мешающих остатков от предыдущих построений:
+
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
diff --git a/documentation/content/ru/books/handbook/desktop/_index.adoc b/documentation/content/ru/books/handbook/desktop/_index.adoc
index e7a9f27c41..944f7d8a09 100644
--- a/documentation/content/ru/books/handbook/desktop/_index.adoc
+++ b/documentation/content/ru/books/handbook/desktop/_index.adoc
@@ -116,14 +116,14 @@ Mozilla это наиболее современный и стабильный
Если вы не можете или не хотите компилировать Mozilla по какой-то причине, команда FreeBSD GNOME уже сделала это для вас. Просто установите пакет из сети с помощью:
-[source,bash]
+[source,shell]
....
# pkg_add -r mozilla
....
Если пакет недоступен, но у вас достаточно времени и места на диске, вы можете скачать исходные тексты для Mozilla, скомпилировать их и установить в вашу систему. Это делается так:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/mozilla
# make install clean
@@ -133,14 +133,14 @@ Mozilla это наиболее современный и стабильный
После завершения установки Mozilla, больше не требуется работать под `root`. Вы можете запустить Mozilla в качестве браузера, набрав:
-[source,bash]
+[source,shell]
....
% mozilla
....
Вы можете также запустить непосредственно программу чтения почты и новостей, как показано ниже:
-[source,bash]
+[source,shell]
....
% mozilla -mail
....
@@ -165,7 +165,7 @@ Mozilla это наиболее современный и стабильный
Теперь просто запустите Mozilla:
-[source,bash]
+[source,shell]
....
% mozilla &
....
@@ -183,14 +183,14 @@ Opera это очень быстрый, полноценный и совмест
Для работы в сети с помощью FreeBSD версии Opera установите пакет:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
На некоторых серверах FTP нет всех пакетов, но те же результаты можно получить с помощью коллекции портов, набрав:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -204,14 +204,14 @@ Firefox это браузер следующего поколения, осно
Установите пакет, выполнив:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
Вы можете также использовать коллекцию портов, если предпочитаете сборку из исходных текстов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -269,14 +269,14 @@ Konqueror поддерживает также Flash(TM), документаци
Для установки KOffice из пакета, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
Если пакет недоступен, используйте коллекцию портов. Например, для установки KOffice для KDE3, выполните:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -290,14 +290,14 @@ AbiWord может импортировать и экспортировать м
AbiWord доступен в виде пакета. Вы можете установить его так:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
Если пакет недоступен, он может быть собран из коллекции портов, которая должна быть свежей. Это можно сделать командой:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -309,14 +309,14 @@ AbiWord доступен в виде пакета. Вы можете устан
Вы можете установить пакет, выполнив эту команду:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
Если на вашем сервере FTP нет этого пакета, вы можете использовать коллекцию портов. Категория http://www.FreeBSD.org/ru/ports/[graphics] коллекции портов содержит также раздел Руководство Gimp. Здесь показано, как его установить:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -337,7 +337,7 @@ OpenOffice.org включает все обязательные компонен
Для установки OpenOffice.org, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice
....
@@ -349,7 +349,7 @@ OpenOffice.org включает все обязательные компонен
После установки пакета просто наберите следующую команду для запуска OpenOffice.org:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -361,7 +361,7 @@ OpenOffice.org включает все обязательные компонен
Если пакеты OpenOffice.org недоступны, можно выбрать компиляцию порта. Однако, вы должны помнить, что это потребует много места на диске и компиляция будет довольно долгой.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-2.0
# make install clean
@@ -371,7 +371,7 @@ OpenOffice.org включает все обязательные компонен
====
Если вы хотите собрать локализованную версию, то вместо предыдущей командной строки используйте следующее:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -381,7 +381,7 @@ OpenOffice.org включает все обязательные компонен
После того, как это было сделано OpenOffice.org может быть запущен командой:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -428,7 +428,7 @@ OpenOffice.org включает все обязательные компонен
Для установки Acrobat Reader(R) 7 из Коллекции портов выполните:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread7
# make install clean
@@ -442,14 +442,14 @@ gv это программа просмотра PostScript(R) и PDF. Она р
Для установки gv из пакета, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
Если вы не можете получить пакет, используйте коллекцию портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -461,14 +461,14 @@ gv это программа просмотра PostScript(R) и PDF. Она р
Для установки пакета Xpdf, выполните эту команду:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
Если пакет недоступен, или вы предпочитаете коллекцию портов, выполните:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -482,14 +482,14 @@ GQview это программа для работы с изображениям
Если вы хотите установить пакет GQview, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
Если пакет недоступен, или вы предпочитаете использовать коллекцию портов, выполните:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -534,14 +534,14 @@ GnuCash предоставляет интеллектуальный журнал
Для установки GnuCash в вашу систему, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
Если пакет недоступен, вы можете использовать коллекцию портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -553,14 +553,14 @@ Gnumeric это электронная таблица, часть графиче
Для установки Gnumeric из пакета, введите:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
Если пакет недоступен, вы можете использовать коллекцию портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -572,14 +572,14 @@ Abacus это небольшая и простая в использовании
Для установки Abacus из пакета, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
Если пакет недоступен, вы можете использовать коллекцию портов, выполнив:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
diff --git a/documentation/content/ru/books/handbook/disks/_index.adoc b/documentation/content/ru/books/handbook/disks/_index.adoc
index 59b799a894..08a870808e 100644
--- a/documentation/content/ru/books/handbook/disks/_index.adoc
+++ b/documentation/content/ru/books/handbook/disks/_index.adoc
@@ -152,7 +152,7 @@ FreeBSD работает на IBM-PC совместимых компьютера
Следующая настройка позволит вашему диску корректно работать с другими операционными системами, которые могут быть установлены на вашем компьютере, и не вызовет конфликта с утилитами `fdisk` других операционных систем. Этот способ рекомендуется использовать для установок новых дисков. Используйте `эксклюзивный` режим, только если у вас есть реальные причины делать это!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 # Инициализируем новый диск.
@@ -170,7 +170,7 @@ FreeBSD работает на IBM-PC совместимых компьютера
Если вы не будете использовать новый диск совместно с другой операционной системой, то вы можете использовать режим `эксклюзивного` использования. Отметьте, что этот режим может ввести в заблуждение операционные системы от Microsoft; однако информацию они не разрушат. А вот OS/2(R) компании IBM будет "забирать себе" любой раздел, который она найдет и не сможет распознать.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -183,7 +183,7 @@ FreeBSD работает на IBM-PC совместимых компьютера
Альтернативный метод заключается в следующем:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -360,7 +360,7 @@ ar0: WARNING - mirror lost
При помощи man:atacontrol[8] получите дополнительную информацию:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -388,7 +388,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Сначала вам нужно отключить канал контроллера ATA, содержащий отказавший диск, чтобы его можно было без последствий извлечь:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -396,7 +396,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. Замените диск.
. Повторно подключите канал дискового контроллера:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -405,21 +405,21 @@ Slave: no device present
+
. Добавьте новый диск к массиву в качестве резервного:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. Перестройте массив:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. Проверить состояние дел можно при помощи следующей команды:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[выдача удалена]
@@ -473,7 +473,7 @@ device cd
Конфигурация готова к тестированию, подключите устройство USB, и в буфере системных сообщений (man:dmesg[8]), диск должен отобразиться примерно так:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -487,7 +487,7 @@ da0: 126MB (258048 512 byte sectors: 64H 32S/T 126C)
Поскольку устройство USB видится как SCSI, команда `camcontrol` может быть использована для вывода списка устройств хранения USB, подключенных к системе:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -539,7 +539,7 @@ vfs.usermount=1
Последний шаг - создание каталога, куда будет монтироваться файловая система. Каталог должен принадлежать пользователю, монтирующему файловую систему. Один из способов сделать это под пользователем `root` - создать каталог [.filename]#/mnt/username# (замените _username_ именем пользователя, а _usergroup_ - именем главной группы пользователя):
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -547,14 +547,14 @@ vfs.usermount=1
Предположим, что USB брелок подключен, и появилось устройство [.filename]#/dev/da0s1#. Поскольку эти устройства обычно поставляются форматированными с файловой системой FAT, их можно смонтировать так:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
Если вы отключите устройство (диск должен быть сначала размонтирован), вы должны увидеть в буфере системных сообщений что-то подобное:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -589,7 +589,7 @@ umass0: detached
Программа man:mkisofs[8], поставляемая с портом package:sysutils/cdrtools[] создаёт файловую систему ISO 9660, которая является образом дерева каталогов в пространстве имён файловой системы UNIX(R). В самом простом случае она используется так:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -602,14 +602,14 @@ umass0: detached
Последней часто используемой опцией является `-b`. Она используется для указания загрузочного образа для использования при создании загрузочного CD в стандарте "El Torito". Этой опции указывается аргумент, который является маршрутом к загрузочному образу из корня дерева, записываемого на CD. По умолчанию, man:mkisofs[8] создает образ ISO в так называемом режиме "эмуляции флоппи-диска", и потому ожидает загрузочный образ размера строго 1200, 1440 или 2880 KB. Некоторые загрузчики, в том числе и тот, что используется на дистрибутивных дисках FreeBSD, не используют режим эмуляции; в этом случае должна использоваться опция `-no-emul-boot`. Так что, если [.filename]#/tmp/myboot# содержит загрузочную систему FreeBSD с загрузочным образом в [.filename]#/tmp/myboot/boot/cdboot#, вы можете создать образ файловой системы ISO 9660 в [.filename]#/tmp/bootable.iso# следующим образом:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
Сделав это, и имея в ядре отконфигурированное устройство [.filename]#md#, вы можете смонтировать файловую систему, выполнив:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -624,7 +624,7 @@ umass0: detached
Если ваше устройство для записи CD соответствует стандарту ATAPI, то для записи ISO-образа на компакт-диск вы можете воспользоваться командой `burncd`. `burncd` входит в базовый комплект операционной системы и установлена как [.filename]#/usr/sbin/burncd#. Использовать её очень просто, так как параметров у ней немного:
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data imagefile.iso fixate
....
@@ -638,14 +638,14 @@ umass0: detached
Хотя `cdrecord` имеет много опций, в основном использовать её ещё проще, чем `burncd`. Запись образа ISO 9660 делается такой командой:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
Тонким моментом при использовании `cdrecord` является определение правильного устройства `dev`. Чтобы задать параметр правильно, воспользуйтесь флагом `-scanbus` команды `cdrecord`, в результате чего может получиться примерно такой результат:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 J"org Schilling
@@ -683,14 +683,14 @@ scsibus1:
. Используйте `cdda2wav` для извлечения данных аудио.
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
+
. Воспользуйтесь `cdrecord` для записи файлов [.filename]#.wav#.
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -711,14 +711,14 @@ scsibus1:
+
Удостоверьтесь, что соответствующий файл имеется в каталоге [.filename]#/dev#. При его отсутствии следует принудительно перечитать оглавление диска:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. Извлеките каждую дорожку при помощи команды man:dd[1]. При извлечении файлов вы должны также использовать специфическое значение для размера блока.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -727,7 +727,7 @@ scsibus1:
+
. Запишите извлечённые файлы на диск при помощи утилиты `burncd`. Вы должны указать, что это файлы с аудио, и что `burncd` должна зафиксировать диск по окончании работы.
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -738,7 +738,7 @@ scsibus1:
Вы можете скопировать CD с данными в файл образа, который функционально эквивалентен файлу образа, созданному командой man:mkisofs[8], и вы можете использовать его для копирования любого CD с данными. В приводимом здесь примере предполагается, что ваш привод CDROM называется [.filename]#acd0#. Подставьте название вашего привода CDROM.
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=file.iso bs=2048
....
@@ -750,21 +750,21 @@ scsibus1:
Теперь, после того, как вы создали стандартный CDROM с данными, вы, наверное, захотите смонтировать его и считать с него данные. По умолчанию man:mount[8] предполагает, что файловая система имеет тип `ufs`. Если вы попытаетесь выполнить что-то вроде:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
вы получите сообщение `Incorrect super block`, и диск не смонтируется. CDROM не является файловой системой `UFS`, поэтому попытки смонтировать его таким образом будут терпеть неудачу. Вам просто нужно указать команде man:mount[8], что файловая система имеет тип `ISO9660`, и всё должно заработать. Сделайте это, задав параметр `-t cd9660` при вызове man:mount[8]. К примеру, если вы хотите смонтировать устройство CDROM, [.filename]#/dev/cd0#, в каталог [.filename]#/mnt#, вы должны выполнить:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Заметьте, что имя вашего устройства ([.filename]#/dev/cd0# в этом примере) может быть другим, в зависимости от интерфейса, используемого в CDROM. Кроме того, параметр `-t cd9660` всего лишь задаёт выполнение утилиты man:mount_cd9660[8]. Пример выше может быть упрощён до:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0c /mnt
....
@@ -799,14 +799,14 @@ options SCSI_DELAY=15000
Вы можете предпочесть запись файла непосредственно на CD без создания файловой системы ISO 9660. Некоторые поступают так при создании резервных копий. Это выполняется гораздо быстрее. чем запись стандартного компакт-диска:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
Для извлечения данных, записанных так на компакт-диск, вы должны считывать данные из файла непосредственного доступа к устройству:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -851,7 +851,7 @@ device pass
В процессе загрузки ваш пишущий привод должен появиться примерно следующим образом:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -862,14 +862,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
Теперь с ним можно работать через устройство [.filename]#/dev/cd0#, например, чтобы смонтировать CD-ROM в каталог [.filename]#/mnt#, просто наберите следующую команду:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
Для получения SCSI-адреса пишущего привода, вы можете, работая как пользователь `root`, запустить такую команду:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -927,7 +927,7 @@ hw.ata.atapi_dma="1"
Для записи данных из каталога [.filename]#/path/to/data# на DVD+R или DVD-R, используйте следующую команду:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -938,7 +938,7 @@ hw.ata.atapi_dma="1"
Возможна также запись предварительного (pre-mastered) образа, например, для записи _imagefile.iso_ запустим:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -951,14 +951,14 @@ hw.ata.atapi_dma="1"
Для того, чтобы создать такой образ, выполните:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
Для того, чтобы записать файлы прямо на диск, наберите:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -974,7 +974,7 @@ DVD-Video это особая файловая система, базирующ
Если у вас уже есть образ файловой системы DVD-Video, просто запишите его как любой другой образ, примеры находятся в предыдущем разделе. Если вы создали DVD и результат находится в каталоге [.filename]#/path/to/video#, для записи DVD-Video должна быть использована следующая команда:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -985,7 +985,7 @@ DVD-Video это особая файловая система, базирующ
В отличие от CD-RW, новый DVD+RW необходимо отформатировать перед первым использованием. Программа man:growisofs[1] позаботится об этом сама при необходимости, и это _рекомендованный_ способ. Тем не менее, для форматирования DVD+RW вы можете использовать команду `dvd+rw-format`:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -994,7 +994,7 @@ DVD-Video это особая файловая система, базирующ
Если вы хотите записать новые данные (полностью новую файловую систему, а не дописать данные) на DVD+RW, его не нужно очищать, просто запишите поверх предыдущей записи (создав новую начальную сессию) примерно так :
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -1003,7 +1003,7 @@ DVD-Video это особая файловая система, базирующ
Например, для дозаписи данных к предыдущей сессии на DVD+RW, используется следующая команда:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1017,7 +1017,7 @@ DVD-Video это особая файловая система, базирующ
Если по какой-либо причине вам потребуется очистить носитель, используйте следующую команду:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1030,7 +1030,7 @@ DVD-Video это особая файловая система, базирующ
Для очистки DVD-RW в последовательном формате, запустите:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1039,7 +1039,7 @@ DVD-Video это особая файловая система, базирующ
====
Полная очистка (`-blank=full`) займет около одного часа на скорости 1x. Быструю очистку можно выполнить с параметром `-blank`, если DVD-RW будет записан в режиме Disk-At-Once (DAO). Для записи DVD-RW в режиме DAO, используйте команду:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -1051,7 +1051,7 @@ DVD-Video это особая файловая система, базирующ
Для записи данных на последовательный DVD-RW, используйте ту же команду, что и для других форматов DVD:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -1062,14 +1062,14 @@ DVD-Video это особая файловая система, базирующ
Для перевода DVD-RW в формат с ограниченной перезаписью, необходимо использовать следующую команду:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
Для перевода обратно в последовательный формат, выполните:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1080,7 +1080,7 @@ DVD-Video это особая файловая система, базирующ
Использование следующей команды после первой (не закрытой) сессии для DVD+R, DVD-R, или DVD-RW в последовательном формате, добавит на диск новую сессию:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1119,7 +1119,7 @@ hw.ata.atapi_dma="1"
Как указывалось ранее, DVD-RAM представляется съемным жестким диском. Как и другие дисковые устройства, DVD-RAM должен быть "подготовлен" к первому использованию. В нашем примере мы займём все пространство диска одной файловой системой UFS2:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -1132,7 +1132,7 @@ hw.ata.atapi_dma="1"
После выполнения указанных выше команд, DVD-RAM может быть смонтирован как обычный жесткий диск:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1164,7 +1164,7 @@ hw.ata.atapi_dma="1"
Для форматирования гибких дисков используйте устройства [.filename]#/dev/fdN#. Вставьте новую 3.5-дюймовую дискету в дисковод и введите команду:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1177,7 +1177,7 @@ hw.ata.atapi_dma="1"
Теперь вы можете запустить man:bsdlabel[8] примерно так:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1190,7 +1190,7 @@ hw.ata.atapi_dma="1"
Для размещения на дискете новой файловой системы, выполните:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1262,7 +1262,7 @@ AIT - это новый формат фирмы Sony, который позво
Если вы попытаетесь прочитать или записать новую, абсолютно чистую ленту, в первый раз, то вам это не удастся. Выводимые на консоль сообщения будут выглядеть примерно так:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1304,14 +1304,14 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready
Для копирования всех файлов в текущем каталоге и подкаталогах выполните следующее (работая как пользователь `root`):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
Когда первая дискета окажется полностью заполненной, программа man:tar[1] выдаст запрос на следующий том (так как работа утилиты man:tar[1] не зависит от носителя, она имеет дело с томами; здесь это означает дискету).
-[source,bash]
+[source,shell]
....
Prepare volume 2 for /dev/fd0 and hit return:
....
@@ -1328,14 +1328,14 @@ Prepare volume 2 for /dev/fd0 and hit return:
Для полного восстановления архива воспользуйтесь такой командой:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
Есть два подхода к восстановлению только нужных вам файлов. В первом вы можете начать с первой дискеты и выдать такую команду:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 filename
....
@@ -1384,7 +1384,7 @@ Prepare volume 2 for /dev/fd0 and hit return:
При помощи `rdump` и `rrestore` возможно резервное копирование данных по сети на накопитель, подключенный к другому компьютеру. Обе программы используют в работе man:rcmd[3] и man:ruserok[3] для доступа к накопителю на магнитной ленте на удалённом компьютере. Поэтому пользователь, выполняющий резервное копирование, должен быть указан в файле [.filename]#.rhosts# на удалённом компьютере. Аргументы для `rdump` и `rrestore` должны подходить для использования на другом компьютере. При выполнении копирования по команде `rdump` на компьютере с FreeBSD на накопитель Exabyte, подключенный к машине Sun по имени `komodo`, используйте такую команду:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1397,7 +1397,7 @@ Prepare volume 2 for /dev/fd0 and hit return:
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1411,7 +1411,7 @@ targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1424,7 +1424,7 @@ targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
Чтобы скопировать данные на накопитель Exabyte, подключенный к машине Sun по имени `komodo`, используйте такую команду:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh komodo dd of=tape-device obs=20b
....
@@ -1437,7 +1437,7 @@ man:cpio[1] является оригинальной программой UNIX(
`cpio` не поддерживает создание резервных копий по сети. Вы можете воспользоваться перенаправлением вывода и программой `rsh` для посылки данных на удалённый накопитель.
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
find $f >> backup.list
@@ -1532,7 +1532,7 @@ pseudo-device vn
[example]
====
-[source,bash]
+[source,shell]
....
# vnconfig vn0 diskimage
# mount /dev/vn0c /mnt
@@ -1546,7 +1546,7 @@ pseudo-device vn
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1585,7 +1585,7 @@ device md
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0 /mnt
@@ -1599,7 +1599,7 @@ device md
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1627,7 +1627,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1653,7 +1653,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=newimage of=/dev/md0
5120+0 records in
@@ -1677,7 +1677,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1698,7 +1698,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1714,7 +1714,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
К примеру, чтобы отключить и освободить все ресурсы, используемые [.filename]#/dev/md4#:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1723,7 +1723,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Во FreeBSD 4.X для отключения устройства используется команда man:vnconfig[8]. Например, для отключения и освобождения всех ресурсов, используемых [.filename]#/dev/vn4#:
-[source,bash]
+[source,shell]
....
# vnconfig -u vn4
....
@@ -1739,21 +1739,21 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Мгновенные копии создаются при помощи утилиты man:mount[8]. Чтобы создать мгновенную копию [.filename]#/var# в файле [.filename]#/var/snapshot/snap#, воспользуйтесь такой командой:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
В качестве альтернативного средства создания мгновенных копий вы можете использовать утилиту man:mksnap_ffs[8]:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
Файлы мгновенных копий файловых систем (к примеру, [.filename]#/var#) можно найти при помощи команды man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1766,7 +1766,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
* Смонтировать командой man:mount[8] мгновенную копию как замороженный образ файловой системы. Чтобы смонтировать командой man:mount[8] мгновенную копию [.filename]#/var/snapshot/snap#, запустите:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1774,7 +1774,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
Теперь вы можете пройтись по иерархии вашей зафиксированной файловой системы [.filename]#/var#, смонтированной в каталог [.filename]#/mnt#. Первоначально всё будет в том же самом состоянии, в каком это было во время создания мгновенной копии. Единственным исключением будет то, что любые ранее сделанные мгновенные копии будут видны как файлы нулевой длины. Когда использование мгновенной копии закончено, она может быть удалена командой:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1838,7 +1838,7 @@ check_quotas="NO"
Как только вы настроили вашу систему на использование квот, проверьте, что они действительно были задействованы. Простым способом сделать это является запуск такой команды:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1855,7 +1855,7 @@ check_quotas="NO"
Далее приводится пример того, что вы можете наблюдать при запуске команды man:edquota[8]. Когда вызывается команда man:edquota[8], вы оказываетесь в редакторе, заданном переменной переменной окружения `EDITOR`, или в редакторе vi, если переменная `EDITOR` не задана, и можете редактировать квоты.
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1887,7 +1887,7 @@ Quotas for user test:
Иногда желательно установить ограничения квот на некоторый диапазон UID (идентификаторов пользователей). Это можно сделать при помощи параметра `-p` в команде man:edquota[8]. Во-первых, установите желаемое ограничение для пользователя, а затем запустите команду `edquota -p protouser startuid-enduid`. Например, если пользователь `test` имеет желаемые ограничения, то для дублирования этих ограничений на пользователей с UID от 10000 до 19999 может быть использована такая команда:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1925,7 +1925,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
Теперь перезапустите `inetd`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1946,7 +1946,7 @@ FreeBSD предоставляет прекрасную возможность
+
Настройка gbde требует права доступа администратора системы.
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1963,7 +1963,7 @@ Password:
Перезагрузитесь, запустив новое ядро.
. Альтернативой пересборке ядра является использование `kldload` для загрузки модуля man:gbde[4]:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1980,7 +1980,7 @@ Password:
+
Установите новый диск в систему, как это описано в <<disks-adding>>. В рамках этого примера раздел, соответствующий новому жёсткому диску, будет называться [.filename]#/dev/ad4s1c#. Устройства [.filename]#/dev/ad0s1*# представляют существующие стандартные разделы FreeBSD нашей тестовой системы.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1990,7 +1990,7 @@ Password:
+
. Создайте каталог для размещения файлов блокировок GBDE
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -2000,7 +2000,7 @@ Password:
+
Перед началом работы с разделом gbde его необходимо проинициализировать. Эта инициализация производится только один раз:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -2032,14 +2032,14 @@ man:gbde[8] дважды запросит ввод пароля, который
+
. Подключите зашифрованный раздел к системе
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
Будет выдан запрос на ввод ключевой фразы, которую вы выбирали во время инициализации зашифрованного раздела. Новое защищённое устройство будет видно в каталоге [.filename]#/dev# под названием [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -2051,7 +2051,7 @@ man:gbde[8] дважды запросит ввод пароля, который
+
Как только защищённое устройство будет подключено к системе, вы сможете создать на нём файловую систему. Для этого используется утилита man:newfs[8]. Так как инициализация новой файловой системы UFS2 происходит быстрее, чем инициализация файловой системы старого формата UFS1, то рекомендуется использовать man:newfs[8] с параметром `-O2`.
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -2065,14 +2065,14 @@ man:gbde[8] дважды запросит ввод пароля, который
+
Создайте точку монтирования для зашифрованной файловой системы.
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
Смонтируйте защищённую файловую систему.
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2081,7 +2081,7 @@ man:gbde[8] дважды запросит ввод пароля, который
+
Защищённая файловая система теперь должна быть доступна утилите man:df[1] и доступной для использования.
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2103,7 +2103,7 @@ Filesystem Size Used Avail Capacity Mounted on
. Подключение gbde-раздела к системе
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -2113,14 +2113,14 @@ Filesystem Size Used Avail Capacity Mounted on
+
Так как защищаемая файловая система не может пока быть указана в файле [.filename]#/etc/fstab# для автоматического монтирования, то она должны проверяться на наличие ошибок посредством ручного запуска man:fsck[8] до её монтирования.
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. Монтирование зашифрованной файловой системы
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2151,7 +2151,7 @@ man:gbde[8] шифрует содержимое секторов при помо
man:sysinstall[8] несовместим с устройствами, зашифрованными gbde. Все устройства [.filename]#*.bde# перед запуском man:sysinstall[8] должны быть отключены от системы, или эта утилита аварийно завершит работу на этапе обнаружения устройств. Для отключения защищённого устройства, используемого в нашем примере, воспользуйтесь такой командой:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2207,7 +2207,7 @@ geom_eli_load="YES"
+
Главный ключ будет защищен кодовой фразой; данные для ключевого файла берутся из [.filename]#/dev/random#. Размер сектора создаваемого нами шифрованного провайдера [.filename]#/dev/da2.eli# - 4кБ.
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2219,14 +2219,14 @@ Reenter new passphrase:
+
Если в качестве имени ключевого файла указан "-", используется стандартный ввод. Это позволяет использовать более одного ключевого файла:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
+
. Свяжите сгенерированный ключ с провайдером
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2234,7 +2234,7 @@ Enter passphrase:
+
Созданный при этом файл дискового устройства будет называться [.filename]#/dev/da2.eli#.
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2242,7 +2242,7 @@ Enter passphrase:
+
. Создайте новую файловую систему
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2251,7 +2251,7 @@ Enter passphrase:
+
Зашифрованная файловая система будет видна в выводе утилиты man:df[1] и готова к использованию:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2267,7 +2267,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
После завершения работы с шифрованным разделом, когда содержимое каталога [.filename]#/private# больше не нужно, будет разумным отключить раздел от системы.
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -2310,7 +2310,7 @@ geli_da2_flags="-p -k /root/da2.key"
До настоящего момента раздел подкачки не был зашифрован. Таким образом, на нем могут содержаться пароли или какая-либо иная важная информация в открытом виде. Чтобы избавиться от этого, заполним раздел подкачки случайными данными:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2352,7 +2352,7 @@ geli_swap_flags="-e blowfish -l 128 -s 4096 -d"
В случае использования man:gbde[8]:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2361,7 +2361,7 @@ Device 1K-blocks Used Avail Capacity
При использовании man:geli[8]:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
diff --git a/documentation/content/ru/books/handbook/filesystems/_index.adoc b/documentation/content/ru/books/handbook/filesystems/_index.adoc
index 4df8107be9..a4dbb0283e 100644
--- a/documentation/content/ru/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/ru/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ vfs.zfs.vdev.cache.size="5M"
Существует стартовый механизм, позволяющий монтировать ZFS пулы во время инициализации системы. Чтобы его задействовать, выполните следующие команды:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# /etc/rc.d/zfs start
@@ -125,14 +125,14 @@ vfs.zfs.vdev.cache.size="5M"
Для создания простого пула ZFS без избыточности, задействовав при этом один жесткий диск, воспользуйтесь командой `zpool`:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
Чтобы увидеть новый пул, просмотрите вывод команды `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ example 17547136 0 17547136 0% /example
Этот вывод четко показывает, что пул `example` был не только создан, но также и _примонтирован_. Он также доступен, как и обычная файловая система, в нем можно создавать файлы, а пользователи могут просматривать его содержимое, например:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
Однако в этом примере простого пула не задействованы никакие функциональные возможности ZFS. Создайте файловую систему в этом пуле и активируйте сжатие данных на ней:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -168,14 +168,14 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
А вот как можно отключить сжатие данных:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
Для того чтобы размонтировать файловую систему, выполните следующую команду и проверьте результат утилитой `df`:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -188,7 +188,7 @@ example 17547008 0 17547008 0% /example
Снова смонтируйте файловую систему и проверьте результат при помощи `df`:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -202,7 +202,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
Пул и файловая система также отображается в выводе команды `mount`:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -215,7 +215,7 @@ example/compressed on /example/compressed (zfs, local)
Как вы уже убедились, файловые системы ZFS после создания могут использоваться как и обычные файловые системы; однако доступно множество других возможностей. В следующем примере мы создадим новую файловую систему `data`. На ней мы будем содержать важные данные, поэтому файловая система сконфигурирована хранить две копии каждого блока:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -223,7 +223,7 @@ example/compressed on /example/compressed (zfs, local)
Снова проверьте свободное и использованное место выполнив команду `df`:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -237,7 +237,7 @@ example/data 17547008 0 17547008 0% /example/data
Заметьте, что каждая файловая система в пуле имеет тот же объем свободного места. Мы использовали команду `df` на протяжении этих примеров, чтобы показать, что файловые системы занимают только необходимое им пространство, используя ресурс одного и того же пула. ZFS уходит от привычных понятий "том (volume)" и "раздел (partition)", позволяя файловым системам занимать один и тот же пул. Уничтожьте файловые системы, потом уничтожьте пул, так как в них уже нет нужды:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -250,7 +250,7 @@ example/data 17547008 0 17547008 0% /example/data
Как уже было сказано выше, в этой статье подразумевается, что в нашей системе в распоряжении есть три SCSI диска: [.filename]#da0#, [.filename]#da1# и [.filename]#da2# (или [.filename]#ad0# и далее в случае IDE дисков). Для того, чтобы создать RAID-Z пул, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -262,14 +262,14 @@ Sun(TM) рекомендует использовать от трех до де
По завершении команды должен создаться пул `storage`. Как и прежде, это может быть проверено при помощи команд man:mount[8] и man:df[1]. Больше дисковых устройств может быть задействовано путем добавления их в конец списка параметров команды, приведенной выше. Создайте в пуле новую файловую систему, называемую `home`, в которой будут размещаться пользовательские файлы:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
На данном этапе возможно активировать сжатие данных и организовать автоматическое создание копий пользовательских домашних каталогов и файлов. Это может быть достигнуто так же, как и ранее, при помощи следующих команд:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -277,7 +277,7 @@ Sun(TM) рекомендует использовать от трех до де
Чтобы организовать в этой файловой системе хранение домашних каталогов пользователей, скопируйте сюда их содержимое и создайте соответствующие символические ссылки:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -289,42 +289,42 @@ Sun(TM) рекомендует использовать от трех до де
Попробуйте создать снимок (snapshot), к которому можно будет откатиться при необходимости:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
Заметьте, что снимок (snapshot) захватит реальную файловую систему, а не домашний каталог или файл. Символ `@` отделяет имя файловой системы или имя тома от имени снимка. Когда возникнет необходимость восстановить пользовательские домашние каталоги, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
Чтобы получить список имеющихся в наличии снимков, выполните команду `ls` в каталоге [.filename]#.zfs/snapshot#. Например, чтобы увидеть сделанный ранее снимок, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
Можно написать скрипт, выполняющий снимки пользовательских данных ежемесячно; однако, со временем, они могут занять значительную часть дискового пространства. Предыдущий снимок может быть удален используя следующую команду:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
Нет причины после наших экспериментов далее держать в текущем состоянии [.filename]#/storage/home#. Сделаем ее реальной файловой системой [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
Выполнение команд `df` и `mount` покажет, что с этого момента операционная система воспринимает нашу файловую систему как обычную [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -343,7 +343,7 @@ storage/home 26320512 0 26320512 0% /home
На этом завершим конфигурацию RAID-Z. Чтобы во время ночных запусков man:periodic[8] получать информацию о статусе созданных файловых систем, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -352,21 +352,21 @@ storage/home 26320512 0 26320512 0% /home
Каждая система программных RAID массивов предоставляет возможность отображать информацию о своем `состоянии`. ZFS - не исключение. Статус устройств RAID-Z может быть просмотрен при помощи следующей команды:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
Если пулы исправны и всё нормально, возвратится следующее сообщение:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
А если есть какие-то неполадки, например диск выведен из массива, возвращенное состояние пула будет подобным следующему:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -390,21 +390,21 @@ errors: No known data errors
Вывод показывает, что устройство было переведено в автономный режим администратором. Это верно для данного отдельного примера. Чтобы перевести диск в автономный режим, была выполнена команда:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
Теперь после останова системы возможно заменить [.filename]#da1#. Когда система загрузится снова, выполните следующую команду чтобы заменить диск в массиве:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
С этого момента статус может быть проверен опять и на этот раз без флага `-x`:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -428,21 +428,21 @@ errors: No known data errors
Как уже было сказано ранее, ZFS использует `контрольные суммы` для проверки целостности сохраненных данных. Подсчет и сохранение контрольных сумм включается автоматически во время создания файловых систем и может быть отключен при помощи команды:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off storage/home
....
Отключение подсчета контрольных сумм - не очень хорошая идея; особенно ввиду того, что они занимают мало места, а также при их использовании нет существенных расходов ресурсов системы. Пока подсчет включен, возможно выполнять проверки целостности данных ZFS, используя контрольные суммы. Этот процесс известен как "очистка (scrubbing)". Чтобы проверить целостность данных пула `storage`, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
Этот процесс может занять значительное время в зависимости от количества сохранённых данных. Очистка (scrubbing) порождает интенсивный ввод/вывод, поэтому только один экземпляр этой операции может выполняться в один момент времени. После завершения очистки (scrubbing) статус обновится, его можно просмотреть выполнив следующий запрос:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
diff --git a/documentation/content/ru/books/handbook/firewalls/_index.adoc b/documentation/content/ru/books/handbook/firewalls/_index.adoc
index cd3ac7bfae..a1807e4eb2 100644
--- a/documentation/content/ru/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/ru/books/handbook/firewalls/_index.adoc
@@ -113,7 +113,7 @@ pf_enable="YES"
Далее, выполните стартовый скрипт:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pf start
....
@@ -129,7 +129,7 @@ pf_rules="/path/to/pf.conf"
Модуль PF можно также загрузить вручную:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -143,7 +143,7 @@ pflog_enable="YES"
и запустите на выполнение скрипт:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pflog start
....
@@ -340,7 +340,7 @@ ipnat_rules="/etc/ipnat.rules" # Определение файла прави
Команда man:ipf[8] используется для загрузки файла с правилами. Обычно создается файл, содержащий подготовленный набор правил, который полностью замещает набор, используемый на данный момент:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -365,7 +365,7 @@ ipnat_rules="/etc/ipnat.rules" # Определение файла прави
Вывод команды man:ipfstat[8] по умолчанию выглядит примерно так:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -394,7 +394,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Вывод команды будет выглядеть примерно так:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -407,7 +407,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Вывод команды будет выглядеть примерно так:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -440,7 +440,7 @@ ipmon_flags="-Ds" # D = start as daemon
Для разделения собираемых данных syslogd использует свой собственный специальный метод. Он использует группировку по категории ("facility") и уровню ("level"). IPMON в режиме `-Ds` использует `local0` в качестве имени "категории". Для дальнейшего разделения протоколируемых данных, если такое необходимо, могут быть использованы следующие уровни:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -450,7 +450,7 @@ LOG_ERR - packets which have been logged and which can be considered short
Для указания IPFILTER протоколировать все данные в [.filename]#/var/log/ipfilter.log#, создайте этот файл заранее, выполнив следующую команду:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -541,7 +541,7 @@ EOF
Это все, что требовалось сделать. В данном примере сами правила не важны; важно то, как используется символьная подстановка. Если вышеприведенный пример помещен в файл [.filename]#/etc/ipf.rules.script#, то набор правил можно перезагрузить, введя следующую команду:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -565,7 +565,7 @@ sh /etc/ipf.rules.script
Права, установленные на этот файл, должны разрешать чтение, запись и выполнение владельцу `root`.
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -604,7 +604,7 @@ IPFW включён в базовую установку FreeBSD в виде о
После перезагрузки системы с `firewall_enable="YES"` в [.filename]#rc.conf# на экране в процессе загрузки отобразится выделенное белым сообщение:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -743,49 +743,49 @@ net.inet.ip.fw.verbose_limit=5
Вывод полного списка правил:
-[source,bash]
+[source,shell]
....
# ipfw list
....
Вывод полного списка правил с маркером времени последнего срабатывания правила:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
Следующий пример выводит учетную информацию, количество совпавших пакетов и сами правила. Первым столбцом идет номер правила, за ним следует число совпавших исходящих пакетов, третий столбец - число соответствующих входящих пакетов, и затем само правило.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
Вывод динамических правил вместе со статическими:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
Отобразить статические и динамические правила, в т.ч. с истекшим временем действия:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
Обнуление счетчиков:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
Обнулить счетчики для правила под номером _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -949,7 +949,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Если бы этот скрипт находился в файле [.filename]#/etc/ipfw.rules#, то правила можно было бы перезагрузить следующей командой.
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -958,7 +958,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
Такой же результат можно получить, выполнив вручную следующие команды:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
diff --git a/documentation/content/ru/books/handbook/geom/_index.adoc b/documentation/content/ru/books/handbook/geom/_index.adoc
index 625bc6490f..632cc9b3ea 100644
--- a/documentation/content/ru/books/handbook/geom/_index.adoc
+++ b/documentation/content/ru/books/handbook/geom/_index.adoc
@@ -84,21 +84,21 @@ image::striping.png[Иллюстрация дисковой последоват
. Загрузите модуль [.filename]#geom_stripe.ko#:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. Убедитесь, что существует подходящая точка монтирования. Если вы планируете сделать логический диск корневым разделом, используйте временную точку монтирования, например [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. Определите имена устройств, которые будут объединены в последовательность, и создайте новое устройство для последовательности. Например, чтобы создать дисковую последовательность из двух неиспользуемых и неразмеченных ATA дисков, например [.filename]#/dev/ad2# и [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -108,14 +108,14 @@ Done.
+
. Запишите стандартную метку, также известную как таблица разделов, в новый том, и установите стандартный загрузчик:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. Теперь в [.filename]#/dev/stripe# кроме [.filename]#st0# появились ещё два устройства - [.filename]#st0a# и [.filename]#st0c#. Теперь создайте файловую систему на устройстве [.filename]#st0a#, используя утилиту `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -125,14 +125,14 @@ Done.
Смонтируйте его вручную:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
Чтобы монтировать созданную дисковую последовательность автоматически во время загрузки, добавьте информацию о ней в файл [.filename]#/etc/fstab#. Создайте постоянную точку монтирования и назовите её, к примеру, [.filename]#stripe#:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -141,7 +141,7 @@ Done.
Чтобы модуль [.filename]#geom_stripe.ko# автоматически загружался во время инициализации системы, добавьте строку в [.filename]#/boot/loader.conf#:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -159,7 +159,7 @@ Done.
Перед построением зеркала включите дополнительную отладочную информацию и откройте доступ к устройству. Это достигается установкой следующего значения переменной man:sysctl[8] `kern.geom.debugflags`:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=17
....
@@ -172,14 +172,14 @@ Done.
Создание зеркала на диске, с которого произведена загрузка, может повлечь за собой потерю данных в том случае, если данными занят последний сектор диска. Риск повреждения данных меньше, если создание зеркала немедленно следует за свежей установкой FreeBSD.
====
-[source,bash]
+[source,shell]
....
# gmirror label -vb round-robin gm0 /dev/da0
....
Система должна выдать следующее сообщение:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da0.
Done.
@@ -187,7 +187,7 @@ Done.
Инициализируйте GEOM, это повлечет за собой загрузку модуля ядра [.filename]#/boot/kernel/geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -199,7 +199,7 @@ Done.
Включите автоматическую загрузку модуля [.filename]#geom_mirror.ko# во время старта операционной системы:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf
....
@@ -210,7 +210,7 @@ Done.
====
Если man:vi[1] - ваш любимый текстовый редактор, то эта задача решается просто:
-[source,bash]
+[source,shell]
....
# vi /etc/fstab
....
@@ -234,14 +234,14 @@ Done.
Перезагрузите систему:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
С этого момента во время каждой загрузки система должна использовать устройство [.filename]#gm0# вместо устройства [.filename]#da0#. Удостовериться в этом можно так: дождитесь загрузки системы, наберите команду `mount` и просмотрите её вывод:
-[source,bash]
+[source,shell]
....
# mount
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -255,21 +255,21 @@ devfs 1 1 0 100% /var/named/dev
Как и ожидалось, вывод выглядит корректно. И в заключение, чтобы начать синхронизацию данных, включите в зеркало диск [.filename]#da1# при помощи следующей команды:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
Во время построения зеркала статус процесса построения может быть проверен следующей командой:
-[source,bash]
+[source,shell]
....
# gmirror status
....
Вывод вышеприведённой команды для построенного и синхронизированного зеркала выглядит подобно следующему:
-[source,bash]
+[source,shell]
....
Name Status Components
mirror/gm0 COMPLETE da0
@@ -293,7 +293,7 @@ mountroot>
Перезагрузите компьютер кнопкой питания или кнопкой "Reset". В загрузочном меню выберите опцию (6). Это приведет к тому, что система выдаст приглашение man:loader[8]. Загрузите модуль ядра вручную:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror
OK? boot
@@ -314,12 +314,12 @@ options GEOM_MIRROR
Принимая во внимание предыдущую конфигурацию RAID1, предположим, что устройство [.filename]#da1# вышло из строя, и ему требуется замена. Перед заменой определите, какой именно диск вышел из строя, а потом выключите систему. Теперь дефектный диск может быть заменён новым, после чего необходимо снова загрузить систему. После загрузки системы для замещения диска в зеркале могут быть использованы следующие команды:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
@@ -342,14 +342,14 @@ GEOM включает в себя поддержку работы с удале
Чтобы экспортировать устройство, убедитесь, что оно не смонтировано, и запустите сервер man:ggated[8]:
-[source,bash]
+[source,shell]
....
# ggated
....
Теперь, чтобы смонтировать устройство на клиентском компьютере выполните следующие команды:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -387,7 +387,7 @@ ggate0
Чтобы создать постоянную метку для файловой системы UFS2 не нарушая самих данных, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -412,7 +412,7 @@ ggate0
Теперь файловую систему можно смонтировать как обычно:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -423,7 +423,7 @@ ggate0
Для удаления метки можно использовать следующую команду:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -437,7 +437,7 @@ ggate0
Перезагрузите систему, дождитесь меню загрузчика. Нажатием клавиши kbd:[4] выберите однопользовательский режим. Далее, введите следующие команды:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -466,7 +466,7 @@ GEOM_LABEL: Label for provider /dev/ad0s1b is label/swap
Перезагрузите еще раз систему. Если всё прошло успешно, система загрузится как обычно, а вывод команды `mount` отобразит следующее:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -480,7 +480,7 @@ devfs on /dev (devfs, local)
Начиная с FreeBSD 7.2, GEOM класс man:glabel[8] поддерживает новый тип меток для файловых систем UFS. Новый тип меток базируется на уникальных идентификаторах файловых систем, называемых `ufsid`. Во время загрузки системы они автоматически создаются и помещаются в каталог [.filename]#/dev/ufsid#. Перечисление меток должным образом в файле [.filename]#/etc/fstab# делает возможным монтирование разделов по значениям `ufsid`. Чтобы получить перечень файловых систем и соответствующих им меток `ufsid`, выполните команду `glabel status`:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -532,7 +532,7 @@ options GEOM_JOURNAL
Для создания журнала на новой файловой системе выполните следующие шаги (здесь и далее подразумевается, что [.filename]#da4# есть новый SCSI диск):
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -540,7 +540,7 @@ options GEOM_JOURNAL
На этом этапе в каталоге [.filename]#/dev# должны присутствовать файлы устройств [.filename]#/dev/da4# и [.filename]#/dev/da4.journal#. Теперь необходимо создать файловую систему:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -549,7 +549,7 @@ options GEOM_JOURNAL
Смонтируйте устройство в требуемый каталог файловой системы:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/ru/books/handbook/install/_index.adoc b/documentation/content/ru/books/handbook/install/_index.adoc
index 867ef59a35..4ef12b4b14 100644
--- a/documentation/content/ru/books/handbook/install/_index.adoc
+++ b/documentation/content/ru/books/handbook/install/_index.adoc
@@ -316,7 +316,7 @@ FreeBSD для установки нужен диск не менее 100 MB. О
+
Файл [.filename]#.img#_не_ является обыкновенным файлом, копируемым на накопитель. Это образ содержимого диска. Это значит, что вы _не можете_ просто скопировать файлы с диска на диск. Вместо копирования вы должны использовать man:dd[1] для записи образа непосредственно на накопитель:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# dd if=FreeBSD-{rel112-current}-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -374,7 +374,7 @@ FTP клиент должен использовать _бинарный реж
+
Если вы используете образы с CDROM, и буква вашего CDROM [.filename]#E:#, запустите ее так:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
....
@@ -383,7 +383,7 @@ E:\> tools\fdimage floppies\boot.flp A:
+
Если вы записываете дискеты на UNIX(R) (например, на другой системе FreeBSD), используйте утилиту man:dd[1] для записи образов непосредственно на дискеты. Находясь в FreeBSD, запустите:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -446,7 +446,7 @@ We can take no responsibility for lost disk contents!
. FreeBSD начнет загрузку. Если загрузка происходит с CDROM, вы увидите что-то вроде этого (информация о версии удалена):
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
645MB medium detected
@@ -473,7 +473,7 @@ Loading /boot/defaults/loader.conf
+
Если происходит загрузка с дискеты, вы увидите что-то вроде этого (информация о версии удалена):
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -508,7 +508,7 @@ image::boot-loader-menu.png[]
Чтобы получить доступ к PROM, перезагрузите систему и дождитесь появления сообщений загрузчика. Последние зависят от модели оборудования, но, в общем, выглядят подобно следующим:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -518,7 +518,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
Если на данном этапе ваша система продолжает загружаться с диска, то для доступа к PROM вам потребуется нажать на клавиатуре сочетания клавиш kbd:[L1+A] или kbd:[Stop+A], или же - послать `BREAK` на последовательной консоли (например, набрав `~#` в man:tip[1] или man:cu[1]). Приглашение PROM выглядит подобно следующему:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -540,7 +540,7 @@ ok {0} <.>
[[install-dev-probe]]
.Типичный вывод Device Probe
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -752,7 +752,7 @@ image::main-std.png[]
После начала стандартной установки в sysinstall будет показано это сообщение:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -917,7 +917,7 @@ image::fdisk-drive2.png[]
Теперь, выбрав разметку разделов, можете приступить к их созданию в sysinstall. Вы увидите это сообщение:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -1017,7 +1017,7 @@ image::dist-set.png[]
Программа установки не проверяет, есть ли достаточно места. Выберите эту опцию только в том случае, если его достаточно. В FreeBSD {rel120-current}, Коллекция Портов занимает около {ports-size}. В более современных релизах это значение всегда больше.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD ports collection?
@@ -1086,7 +1086,7 @@ FTP через HTTP прокси: [.guimenuitem]#Install from an FTP server thro
Теперь можно начинать установку. Это последний шанс отменить установку, и таким образом избежать изменений на жестком диске.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1105,7 +1105,7 @@ FTP через HTTP прокси: [.guimenuitem]#Install from an FTP server thro
Установка будет завершена, когда отобразится следующее сообщение:
-[source,bash]
+[source,shell]
....
Message
@@ -1126,7 +1126,7 @@ do so by typing: /usr/sbin/sysinstall.
Выбор btn:[no] и нажатие kbd:[Enter] прервет процесс установки, изменения в систему внесены не будут. Появится следующее сообщение:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1151,7 +1151,7 @@ installation menus to retry whichever operations have failed.
Чтобы лучше узнать о локальных сетях и настройке FreeBSD в качестве шлюза/маршрутизатора, обратитесь к главе crossref:advanced-networking[advanced-networking,Сложные вопросы работы в сети].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1167,7 +1167,7 @@ image::ed0-conf.png[]
Выберите интерфейс для настройки с помощью клавиш навигации и нажмите kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1179,7 +1179,7 @@ image::ed0-conf.png[]
Если вы хотите подсоединиться к существующей сети IPv6 через сервер RA, выберите btn:[yes] и нажмите kbd:[Enter]. Поиск RA серверов займет несколько секунд.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1222,7 +1222,7 @@ Netmask::
Используйте kbd:[Tab] для выбора btn:[OK] после окончания настройки и нажмите kbd:[Enter].
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to bring the ed0 interface up right now?
@@ -1235,7 +1235,7 @@ Netmask::
[[gateway]]
=== Настройка шлюза (Configure Gateway)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1248,7 +1248,7 @@ Netmask::
[[inetd-services]]
=== Настройка сервисов интернет (Configure Internet Services)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1262,7 +1262,7 @@ Do you want to configure inetd and the network services that it provides?
Выберите btn:[yes] если хотите настроить эти сервисы во время установки. Появится дополнительный запрос подтверждения:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1277,7 +1277,7 @@ With this in mind, do you wish to enable inetd?
Нажмите btn:[yes], чтобы продолжить.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1304,7 +1304,7 @@ image::edit-inetd-conf.png[]
[[ssh-login]]
=== Настройка входа по SSH
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1316,7 +1316,7 @@ image::edit-inetd-conf.png[]
[[ftpanon]]
=== Анонимный (Anonymous) FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1336,7 +1336,7 @@ image::edit-inetd-conf.png[]
Чтобы разрешить анонимный FTP, выберите btn:[yes], используя клавиши навигации, и нажмите kbd:[Enter]. От вас потребуется дополнительное подтверждение:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1384,7 +1384,7 @@ Upload Subdirectory::
Когда будут выбраны подходящие значения, нажмите kbd:[Enter], чтобы продолжить.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1410,7 +1410,7 @@ image::ftp-anon2.png[]
[[nsf-server-options]]
==== Сервер NFS (NFS Server)
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1422,7 +1422,7 @@ image::ftp-anon2.png[]
Если выбран пункт btn:[yes], появится сообщение, говорящее о том, что должен быть создан файл [.filename]#exports#.
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1447,7 +1447,7 @@ image::nfs-server-edit.png[]
NFS клиент позволяет организовать доступ к серверам NFS.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1462,7 +1462,7 @@ NFS клиент позволяет организовать доступ к с
Есть несколько параметров для настройки системной консоли.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1505,7 +1505,7 @@ image::console-saver4.png[]
Пример приведен для компьютера, расположенного в восточном часовом поясе Соединенных Штатов. Ваш выбор будет зависеть от вашего географического положения.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1515,7 +1515,7 @@ image::console-saver4.png[]
Выберите btn:[yes] и нажмите kbd:[Enter] для установки часового пояса.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1544,7 +1544,7 @@ image::timezone3.png[]
Выбран соответствующий часовой пояс с помощью клавиш навигации и нажат kbd:[Enter].
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1559,7 +1559,7 @@ image::timezone3.png[]
Эти настройки позволят вырезать и вставлять текст в консоли и пользовательских программах с помощью трехкнопочной мыши. Если используется двухкнопочная мышь, обратитесь к странице справочника man:moused[8] после установки, чтобы узнать подробности об эмуляции трехкнопочной мыши. Этот пример приведен для настройки не-USB мыши (например мыши для порта PS/2 или COM):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1614,7 +1614,7 @@ image::mouse6.png[]
В качестве примера показана установка одного пакета. Если потребуется, можно установить дополнительные пакеты. После установки для добавления пакетов может быть использована команда `sysinstall`.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1667,7 +1667,7 @@ image::pkg-confirm.png[]
В процессе установки нужно добавить хотя бы одного пользователя, чтобы использовать систему без входа под `root`. Корневой каталог обычно мал и запуск приложений под `root` быстро заполнит его. Ниже показано предупреждение:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1733,7 +1733,7 @@ image::adduser3.png[]
[[rootpass]]
=== Установка пароля `root`
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1748,7 +1748,7 @@ image::adduser3.png[]
Необходимо два раза правильно ввести пароль. Излишне упоминать, что должна быть возможность восстановления пароля, если вы его забудете. Обратите внимание, что ни набираемый пароль, ни звездочки на экран не выдаются.
-[source,bash]
+[source,shell]
....
New password:
Retype new password :
@@ -1761,7 +1761,7 @@ Retype new password :
Если нужно настроить <<network-services,дополнительные сетевые устройства>>, или произвести другие настройки, вы можете сделать это сейчас или после установки с помощью `sysinstall`.
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1778,7 +1778,7 @@ image::mainexit.png[]
Выберите btn:[X Exit Install] с помощью клавиш навигации и нажмите kbd:[Enter]. Будет задан вопрос о подтверждении выхода из установки:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -1788,7 +1788,7 @@ image::mainexit.png[]
Выберите btn:[yes]. Если вы загружались с привода CDROM, следующее сообщение напомнит вам о необходимости извлечь диск:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -1820,7 +1820,7 @@ image::net-config-menu1.png[]
Следующая линия это опция флаги [.guimenuitem]#AMD# (flags). Когда эта опция выбрана, появится меню для ввода специфичных флагов AMD. Меню уже содержит набор различных опций:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1891,7 +1891,7 @@ image::net-config-menu2.png[]
Типичные сообщения при загрузке (информация о версии удалена):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2030,7 +2030,7 @@ Password:
Важно правильно завершать работу операционной системы. Нельзя просто выключать питание. Сначала нужно стать суперпользователем, введя в командной строке `su` и пароль `root`. Это сработает только если пользователь является членом группы `wheel`. Или зайдите под `root` и используйте команду `shutdown -h now`.
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2082,7 +2082,7 @@ FreeBSD поддерживает файловые системы MS-DOS(R) (ин
Также приведем пример монтирования файловой системы MS-DOS(R) посредством man:mount[8]:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2102,7 +2102,7 @@ FreeBSD поддерживает файловые системы MS-DOS(R) (ин
На архитектурах i386, amd64 и ia64 при конфигурировании оборудования, обнаруженного во время загрузки, FreeBSD повсеместно использует систему ACPI. К сожалению, до сих пор находятся неполадки как в драйвере ACPI, так и в материнских платах, так и в их BIOS. Использование ACPI можно отключить установив переменную `hint.acpi.0.disabled` на третьем этапе загрузки:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2119,7 +2119,7 @@ FreeBSD поддерживает файловые системы MS-DOS(R) (ин
FreeBSD находится на `disk 1` (BIOS-нумерация), его тип - `ad` и номер - 2 (по данным FreeBSD), следовательно, необходимо указать:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2128,7 +2128,7 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
Второй случай подразумевает загрузку с диска SCSI при существующих в системе дисках IDE. В этом случае, согласно определениям FreeBSD номер диска меньше, чем номер по представлениям BIOS. Если у вас есть два диска IDE и диск SCSI, то, согласно BIOS, номер SCSI диска - 2, а согласно FreeBSD, тип - `da` и номер - 0, следовательно, вам необходимо указать следующее:
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2178,7 +2178,7 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
+
Если вы произведете загрузку с только что созданного USB-накопителя, FreeBSD загрузится в нормальный режим установки. Мы хотим, чтобы FreeBSD загрузилась на последовательную консоль для нашей установки. Чтобы сделать это, смонтируйте USB-накопитель на вашу систему FreeBSD используя команду man:mount[8].
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2190,14 +2190,14 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
+
Теперь необходимо настроить USB-накопитель для загрузки на последовательную консоль. В файл [.filename]#loader.conf#, находящийся на файловой системе USB-накопителя, добавьте запись, устанавливающую в качестве системной консоли последовательную консоль.
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /mnt/boot/loader.conf
....
+
Далее, когда ваш USB-накопитель правильно настроен, размонтируйте его с помощью команды man:umount[8]:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2209,7 +2209,7 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
+
В приведённом далее примере подразумевается, что подготовку образа вы выполняете на вашем втором компьютере, работающем под управлением FreeBSD. Также подразумевается, что на нём есть файл загрузочного ISO образа, например [.filename]#FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso#. Извлеките из образа все файлы утилитой man:tar[1]:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# mkdir /path/to/headless-iso
# tar -C /path/to/headless-iso -pxvf FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso
@@ -2217,14 +2217,14 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
+
Теперь необходимо внести некоторые изменения в набор файлов и каталогов, полученных из образа. Добавьте в файл [.filename]#loader.conf# запись, устанавливающую в качестве системной консоли последовательную консоль.
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /path/to/headless-iso/boot/loader.conf
....
+
Далее необходимо создать новый образ ISO из извлеченного и исправленного старого образа. Для этого воспользуйтесь утилитой man:mkisofs[8] (порт package:sysutils/cdrtools[]):
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "Headless_install" \
-o Headless-FreeBSD-{rel120-current}-RELEASE-i386-disc1.iso /path/to/headless-iso
@@ -2241,7 +2241,7 @@ FreeBSD находится на `disk 1` (BIOS-нумерация), его ти
+
Теперь вы можете подключиться к этому компьютеру с помощью man:cu[1]:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
@@ -2337,7 +2337,7 @@ ISO образы для каждого релиза могут быть загр
. Убедитесь, что на компьютере FreeBSD, на котором будет установлен сервер FTP, CDROM находится в приводе и смонтируйте [.filename]#/cdrom#.
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2375,7 +2375,7 @@ _Не_ доверяйте заводскому форматированию ди
Если вы создаете образы на другом компьютере FreeBSD, форматирование все еще не лишне, хотя вам не потребуется создавать файловую систему MS-DOS(R) на каждой дискете. Вы можете использовать `bsdlabel` и `newfs` для создания на них файловых систем UFS, в следующей последовательности (для 3.5" 1.44 MB дискет):
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w fd0.1440 floppy3
@@ -2398,7 +2398,7 @@ _Не_ доверяйте заводскому форматированию ди
Чтобы подготовиться к установке с раздела MS-DOS(R), скопируйте файлы с дистрибутива в каталог [.filename]#freebsd# корневого каталога раздела. Например, [.filename]#c:\freebsd#. Структура каталога CDROM или сервера FTP должна быть в точности воспроизведена в этом каталоге, мы предлагаем использовать команду MS-DOS(R) `xcopy` если вы копируете дистрибутив с CD. Например, чтобы подготовить минимальную установку FreeBSD:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2415,7 +2415,7 @@ C:\> xcopy e:\manpages c:\freebsd\manpages\ /s
Установка с ленты это возможно самый простой метод, уступающий только установке с FTP или CDROM. Программа установки может найти на ленте файлы, которые записаны на нее с помощью tar. После получения всех файлов дистрибутива, которые вам нужны, запишите их на ленту с помощью tar:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/ru/books/handbook/kernelconfig/_index.adoc b/documentation/content/ru/books/handbook/kernelconfig/_index.adoc
index de35065902..1fbf8a622d 100644
--- a/documentation/content/ru/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/ru/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01
Также, для извлечения необходимой информации, можно воспользоваться ключом `-k` к команде man:man[1]. В вышеприведенном случае можно набрать:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -170,7 +170,7 @@ following line in man:loader.conf[5]:
====
Если каталог [.filename]#/usr/src/# отсутствует в вашей системе (или этот каталог пуст), то это значит, что исходные тексты не были установлены. Наиболее простой способ установить их - воспользоваться man:csup[1], как описано в crossref:cutting-edge[synching,Синхронизация исходных текстов]. Далее, создайте символическую ссылку на [.filename]#/usr/src/sys/#:
-[source,bash]
+[source,shell]
....
# ln -s /usr/src/sys /sys
....
@@ -179,7 +179,7 @@ following line in man:loader.conf[5]:
Затем, перейдите в каталог [.filename]#arch/conf# и скопируйте файл конфигурации [.filename]#GENERIC# в файл с выбранным вами именем. Например:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -196,7 +196,7 @@ following line in man:loader.conf[5]:
Например:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -228,21 +228,21 @@ following line in man:loader.conf[5]:
. Перейдите в каталог [.filename]#/usr/src#:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Соберите ядро:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Установите новое ядро:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -299,7 +299,7 @@ options IPDIVERT
====
Для сборки ядра со всеми возможными опциями (обычно используется для тестирования), выполните от имени суперпользователя (`root`) следующую команду:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1143,7 +1143,7 @@ options PAE
Не удаётся отработать команде `config`:::
Если команда man:config[8] не может отработать, то, скорее всего, вы допустили где-нибудь маленькую ошибку. К счастью, man:config[8] выведет номер проблемной строки, поэтому вы можете быстро найти строку, содержащую ошибку. Например, если вы видите:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1162,7 +1162,7 @@ config: line 17: syntax error
====
Если у вас возникли проблемы со сборкой ядра, убедитесь, что вы сохранили ядро [.filename]#GENERIC# или другое рабочее ядро под другим именем, чтобы оно не было удалено при следующей сборке. Вы не можете использовать [.filename]#kernel.old#, потому что при установке нового ядра [.filename]#kernel.old# перезаписывается последним установленным ядром, которое может оказаться нерабочим. Также, как можно скорее переместите рабочее ядро в [.filename]#/boot/kernel#, так как некоторые команды, такие как man:ps[1] будут работать некорректно. Для этого просто переместите каталог, содержащий работоспособное ядро:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/ru/books/handbook/l10n/_index.adoc b/documentation/content/ru/books/handbook/l10n/_index.adoc
index d7ae32e5a0..342a19e653 100644
--- a/documentation/content/ru/books/handbook/l10n/_index.adoc
+++ b/documentation/content/ru/books/handbook/l10n/_index.adoc
@@ -96,14 +96,14 @@ _КодЯзыка_ и _КодСтраны_ используются для оп
Полный список локалей доступен по команде:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
Чтобы определить текущую локаль:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -186,7 +186,7 @@ german|German Users Accounts:\
После каждого изменения [.filename]#/etc/login.conf# не забывайте выполнить команду для обновления базы данных:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -208,28 +208,28 @@ user:password:1111:11:язык:0:0:User Name:/home/user:/bin/sh
Чтобы переопределить эту настройку при создании пользователя, введите требуемую локаль в запросе командной строки:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
или укажите её в команде man:adduser[8]:
-[source,bash]
+[source,shell]
....
# adduser -class язык
....
Если для добавления новых пользователей используется `pw`, укажите локаль так:
-[source,bash]
+[source,shell]
....
# pw useradd имя_пользователя -L язык
....
Изменить класс логина у существующего пользователя можно с помощью `chpass`, передав имя пользователя через параметр:
-[source,bash]
+[source,shell]
....
# chpass имя_пользователя
....
diff --git a/documentation/content/ru/books/handbook/linuxemu/_index.adoc b/documentation/content/ru/books/handbook/linuxemu/_index.adoc
index 1affed1071..be1c1717f3 100644
--- a/documentation/content/ru/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/ru/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ FreeBSD предоставляет двоичную совместимость
Двоичная совместимость с Linux не включена по умолчанию. Простейший способ включения этой функциональности заключается в загрузке KLD-объекта `linux` ("Kernel LoaDable object"). Вы можете загрузить этот модуль, набрав следующее, как пользователь `root`:
-[source,bash]
+[source,shell]
....
# kldload linux
....
@@ -84,7 +84,7 @@ linux_enable="YES"
Для проверки того, загружен ли модуль, может быть использована команда man:kldstat[8]:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -103,7 +103,7 @@ Id Refs Address Size Name
Этот метод является самым простым, и мы рекомендуем воспользоваться именно им. Процесс аналогичен установке любого другого порта из link:file://localhost/usr/ports/[Коллекции Портов]. Просто выполните следующие команды:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-fc4
# make install distclean
@@ -131,7 +131,7 @@ Id Refs Address Size Name
Допустим, вы скачали по FTP Linux-версию Doom и установили ее на Linux-машине. Вы можете узнать, какие совместно используемые библиотеки нужны Doom, с помощью команды `ldd linuxdoom`:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -141,7 +141,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
Вам потребуются все файлы, перечисленные в последнем столбце. Скопируйте их в дерево [.filename]#/compat/linux# на вашей системе, а также создайте символические ссылки на эти файлы с именами из первого столбца, соответственно. В итоге, у вас в системе FreeBSD должны быть следующие файлы:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -155,7 +155,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
====
Учтите, что если у вас уже есть совместно используемая библиотека Linux с соответствующим первому столбцу результатов `ldd` основным номером версии, вам не обязательно копировать файл, указанный в последнем столбце, в вашу систему. Уже существующий файл должен подойти. Рекомендуется, однако, все равно скопировать совместно используемую библиотеку, если ее версия новее. Предыдущую версию библиотеки можно удалить, если вы создали символическую ссылку на новую. Итак, если у вас в системе есть следующие библиотеки:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -163,14 +163,14 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
и какое-либо приложение требует библиотеку более поздней версии, судя по результатам команды `ldd`:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
Если версии немного отличаются в последней цифре, копировать [.filename]#/lib/libc.so.4.6.29# необязательно, так как программа, скорее всего, будет нормально работать и с немного устаревшей версией. Тем не менее, вы можете заменить [.filename]#libc.so#:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -186,7 +186,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
Для ELF-файлов иногда требуется сделать так называемый "branding" (маркировать его). Если попытаться запустить не маркированный ELF-файл, вы получите следующее сообщение об ошибке:
-[source,bash]
+[source,shell]
....
% ./моя-linux-elf-программа
ELF binary type not known
@@ -195,7 +195,7 @@ Abort
Чтобы помочь ядру FreeBSD отличить ELF-файл FreeBSD от двоичного файла Linux, используется утилита man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux моя-linux-elf-программа
....
@@ -206,7 +206,7 @@ Abort
Если DNS не работает или вы получаете это сообщение:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -233,7 +233,7 @@ Linux версия Mathematica(R) или Mathematica(R) for Students можно
Сначала вы должны указать FreeBSD, что Linux бинарники от Mathematica(R) используют Linux ABI. Самый простой путь сделать это-установить марку ELF Linux по умолчанию для всех немаркированных двоичных файлов с помощью команды:
-[source,bash]
+[source,shell]
....
# sysctl kern.fallback_elf_brand=3
....
@@ -242,7 +242,7 @@ FreeBSD будет считать, что все немаркированные
Теперь, скопируйте файл [.filename]#MathInstaller# на ваш жёсткий диск:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/
@@ -280,7 +280,7 @@ Mathematica(R) использует специальные шрифты для
Есть альтернативный способ: скопировать каталоги в [.filename]#/usr/X11R6/lib/X11/fonts#:
-[source,bash]
+[source,shell]
....
# cd /usr/X11R6/lib/X11/fonts
# mkdir X
@@ -296,7 +296,7 @@ Mathematica(R) использует специальные шрифты для
Теперь добавьте каталоги с новыми шрифтами в путь к шрифтам:
-[source,bash]
+[source,shell]
....
# xset fp+ /usr/X11R6/lib/X11/fonts/X
# xset fp+ /usr/X11R6/lib/X11/fonts/MathType1
@@ -382,7 +382,7 @@ exit 0
+
. Выполните тестовый запуск Maple(TM):
+
-[source,bash]
+[source,shell]
....
% cd /usr/local/maple/bin
% ./xmaple
@@ -434,7 +434,7 @@ Linux-версию MATLAB(R) можно приобрести непосредс
. Вставьте инсталляционный CD и смонтируйте его. Станьте пользователем `root`, как рекомендует скрипт установки. Для запуска скрипта установки наберите:
+
-[source,bash]
+[source,shell]
....
# /compat/linux/bin/sh /cdrom/install
....
@@ -473,7 +473,7 @@ Linux-версию MATLAB(R) можно приобрести непосредс
. Создайте символические ссылки для скриптов диспетчера лицензий:
+
-[source,bash]
+[source,shell]
....
# ln -s $MATLAB/etc/lmboot /usr/local/etc/lmboot_TMW
# ln -s $MATLAB/etc/lmdown /usr/local/etc/lmdown_TMW
@@ -508,7 +508,7 @@ exit 0
======
Этот файл надо сделать выполняемым:
-[source,bash]
+[source,shell]
....
# chmod +x /usr/local/etc/rc.d/flexlm.sh
....
@@ -518,7 +518,7 @@ exit 0
+
. Запустите диспетчер лицензий с помощью команды:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/flexlm.sh start
....
@@ -529,7 +529,7 @@ exit 0
Измените ссылку Java(TM) Runtime Environment (JRE) так, чтобы он ссылалась на версию, работающую в FreeBSD:
-[source,bash]
+[source,shell]
....
# cd $MATLAB/sys/java/jre/glnx86/
# unlink jre; ln -s ./jre1.1.8 ./jre
@@ -606,7 +606,7 @@ exit 0
+
. Сделайте этот файл выполняемым:
+
-[source,bash]
+[source,shell]
....
# chmod +x $MATLAB/bin/finish.sh
....
@@ -630,7 +630,7 @@ exit 0
Если вы хотите использовать интеллектуальный агент (intelligent agent), придется также установить пакет TCL от Red Hat: [.filename]#tcl-8.0.3-20.i386.rpm#. Универсальная команда для установки пакетов с помощью официального порта RPM (package:archivers/rpm[]):
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --root /compat/linux --dbpath /var/lib/rpm пакет
....
@@ -717,7 +717,7 @@ export PATH
Одна из часто возникающих проблем - неправильно установленный адаптер TCP-протокола. В результате, невозможно запустить процессы прослушивания TCP. Вот решение проблемы:
-[source,bash]
+[source,shell]
....
# cd $ORACLE_HOME/network/lib
# make -f ins_network.mk ntcontab.o
@@ -1079,7 +1079,7 @@ export PATH
Сначала необходимо установить порт <<linuxemu-libs-port,linux_base>> (от имени пользователя `root`):
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base
# make install distclean
@@ -1090,7 +1090,7 @@ export PATH
Среда разработки Linux необходима, если вы хотите установить Oracle(R) в ОС FreeBSD, как описано в <<linuxemu-oracle>>:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/linux_devtools
# make install distclean
@@ -1103,7 +1103,7 @@ export PATH
Для запуска программы `R3SETUP` необходима поддержка модулей PAM. В ходе первой установки SAP(R) на ОС FreeBSD 4.3-STABLE мы попытались установить PAM со всеми необходимыми пакетами и, в конце концов, принудительно установили пакет PAM, что и сработало. Для SAP(R) R/3(R) 4.6C SR2 мы сразу принудительно установили PAM RPM, что тоже сработало, так что похоже, что пакеты, от которых декларирована зависимость, не нужны:
-[source,bash]
+[source,shell]
....
# rpm -i --ignoreos --nodeps --root /compat/linux --dbpath /var/lib/rpm \
pam-0.68-7.i386.rpm
@@ -1142,7 +1142,7 @@ pam-0.68-7.i386.rpm
Также необходимо создать несколько ссылок. В противном случае, инсталлятор SAP(R) будет выдавать сообщения об ошибках, поскольку он проверяет созданные ссылки:
-[source,bash]
+[source,shell]
....
# ln -s /compat/linux/oracle /oracle
# ln -s /compat/linux/sapmnt /sapmnt
@@ -1151,7 +1151,7 @@ pam-0.68-7.i386.rpm
Возможные сообщения об ошибках в ходе установки (в данном случае, для установки System _PRD_ и SAP(R) R/3(R) 4.6C SR2):
-[source,bash]
+[source,shell]
....
INFO 2002-03-19 16:45:36 R3LINKS_IND_IND SyLinkCreate:200
Checking existence of symbolic link /usr/sap/PRD/SYS/exe/dbg to
@@ -1261,7 +1261,7 @@ Shell: bash (/compat/linux/bin/bash)
Сначала мы установим владельцев и права для ряда каталогов (от имени пользователя `root`):
-[source,bash]
+[source,shell]
....
# chmod 775 /oracle
# chmod 777 /sapmnt
@@ -1272,7 +1272,7 @@ Shell: bash (/compat/linux/bin/bash)
Затем, мы создадим каталоги от имени пользователя `ora_sid_`. Все они будут размещены в каталоге [.filename]#/oracle/SID#:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle/SID
@@ -1284,7 +1284,7 @@ Shell: bash (/compat/linux/bin/bash)
Для установки Oracle(R) 8.1.7 потребуется несколько дополнительных каталогов:
-[source,bash]
+[source,shell]
....
# su - orasid
# cd /oracle
@@ -1303,7 +1303,7 @@ Shell: bash (/compat/linux/bin/bash)
На третьем шаге мы создаем каталоги от имени пользователя `_sid_adm`:
-[source,bash]
+[source,shell]
....
# su - sidadm
# cd /usr/sap
@@ -1343,7 +1343,7 @@ en_US.ISO-8859-1
Создайте ссылки следующим образом:
-[source,bash]
+[source,shell]
....
# cd /compat/linux/usr/shared/locale
# ln -s de_DE de_DE.ISO-8859-1
@@ -1402,7 +1402,7 @@ options SEMUME=100 #количество ключей UNDO
где _имя_cd_ - одно из следующих [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#EXPORT1#, [.filename]#EXPORT2#, [.filename]#EXPORT3#, [.filename]#EXPORT4#, [.filename]#EXPORT5# и [.filename]#EXPORT6# для установки 4.6B/IDES, и [.filename]#KERNEL#, [.filename]#RDBMS#, [.filename]#DISK1#, [.filename]#DISK2#, [.filename]#DISK3#, [.filename]#DISK4# и [.filename]#LANG# для установки 4.6C SR2. Все имена файлов на смонтированных дисках должны быть в верхнем регистре, в противном случае, используйте при монтировании опцию `-g`. Поэтому используйте следующие команды:
-[source,bash]
+[source,shell]
....
# mount_cd9660 -g /dev/cd0a /mnt
# cp -R /mnt/* /oracle/SID/sapreorg/имя_cd
@@ -1414,7 +1414,7 @@ options SEMUME=100 #количество ключей UNDO
Сначала надо подготовить каталог [.filename]#install#:
-[source,bash]
+[source,shell]
....
# cd /oracle/SID/sapreorg
# mkdir install
@@ -1423,7 +1423,7 @@ options SEMUME=100 #количество ключей UNDO
Затем запускается скрипт установки, который скопирует почти все необходимые файлы в каталог [.filename]#install#:
-[source,bash]
+[source,shell]
....
# /oracle/SID/sapreorg/KERNEL/UNIX/INSTTOOL.SH
....
@@ -1439,14 +1439,14 @@ options SEMUME=100 #количество ключей UNDO
Проверьте, что переменная среды `LD_LIBRARY_PATH` установлена правильно:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/oracle/IDS/lib:/sapmnt/IDS/exe:/oracle/805_32/lib
....
Выполните команду `R3SETUP` от имени пользователя `root` из каталога установки:
-[source,bash]
+[source,shell]
....
# cd /oracle/IDS/sapreorg/install
# ./R3SETUP -f CENTRDB.R3S
@@ -1593,14 +1593,14 @@ options SEMUME=100 #количество ключей UNDO
Проверьте, что переменная среды `LD_LIBRARY_PATH` установлена правильно. Это значение отличается от использованного при установке версии 4.6B с Oracle(R) 8.0.5:
-[source,bash]
+[source,shell]
....
# export LD_LIBRARY_PATH=/sapmnt/PRD/exe:/oracle/PRD/817_32/lib
....
Выполните команду `R3SETUP` от имени пользователя `root` из каталога установки:
-[source,bash]
+[source,shell]
....
# cd /oracle/PRD/sapreorg/install
# ./R3SETUP -f CENTRAL.R3S
@@ -1728,7 +1728,7 @@ options SEMUME=100 #количество ключей UNDO
За исключением перекомпоновки, установка выполняется просто:
-[source,bash]
+[source,shell]
....
# su - oraids
# export TERM=xterm
@@ -1798,7 +1798,7 @@ options SEMUME=100 #количество ключей UNDO
Запустите процесс прослушивания (Oracle(R) Listener) от имени пользователя `ora_sid_` следующим образом:
-[source,bash]
+[source,shell]
....
% umask 0; lsnrctl start
....
@@ -1823,14 +1823,14 @@ options SEMUME=100 #количество ключей UNDO
Вы должны запросить ваш лицензионный ключ SAP(R) R/3(R). Это необходимо, поскольку временная лицензия, использованная в ходе установки, действительна только четыре недели. Сначала получите ключ оборудования. Зарегистрируйтесь как пользователь `idsadm` и вызовите команду `saplicense`:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -get
....
При вызове команды `saplicense` без параметров будет выдан список опций. После получения лицензионного ключа, его можно установить с помощью команды:
-[source,bash]
+[source,shell]
....
# /sapmnt/IDS/exe/saplicense -install
....
@@ -1983,14 +1983,14 @@ Mem: 547M Active, 305M Inact, 109M Wired, 40M Cache, 112M Buf, 3492K Free
Для перезапуска команды `R3SETUP` просто запустите её с соответствующим файлом [.filename]#R3S#:
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRDB.R3S
....
для 4.6B или с файлом
-[source,bash]
+[source,shell]
....
# ./R3SETUP -f CENTRAL.R3S
....
@@ -2076,7 +2076,7 @@ rscp/TCP0B = TCP0B
Возможный способ обхода - запускать сервер базы данных от имени пользователя `oraprd` с помощью `svrmgrl`:
-[source,bash]
+[source,shell]
....
% svrmgrl
SVRMGR> connect internal;
@@ -2089,7 +2089,7 @@ SVRMGR> exit
Запускайте процесс прослушивания Oracle(R) от имени пользователя `oraids` следующими командами:
-[source,bash]
+[source,shell]
....
# umask 0; lsnrctl start
....
@@ -2122,7 +2122,7 @@ SVRMGR> exit
Чтобы продолжить установку мы создали ссылку и дополнительный каталог:
-[source,bash]
+[source,shell]
....
# pwd
/compat/linux/usr/sap
@@ -2200,7 +2200,7 @@ FreeBSD сейчас ведет себя по-другому: пробегает
Соответственно, Linux программы должны быть "маркированы" для `Linux` (например, с помощью утилиты man:brandelf[1]):
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/ru/books/handbook/mac/_index.adoc b/documentation/content/ru/books/handbook/mac/_index.adoc
index 714a5272e4..e871bb056e 100644
--- a/documentation/content/ru/books/handbook/mac/_index.adoc
+++ b/documentation/content/ru/books/handbook/mac/_index.adoc
@@ -154,14 +154,14 @@ _Постойте, но это же похоже на DAC! Я думал, что
Все настройки могут быть выполнены с использованием утилит man:setfmac[8] и man:setpmac[8]. Команда `setfmac` используется для установки меток MAC на системные объекты, а команда `setpmac` используется для установки меток на системные субъекты. Выполните:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
Если не произойдет ошибок, будет возвращено приглашение командной строки, как и после команд man:chmod[1] и man:chown[8]. В некоторых случаях может появиться ошибка `Permission denied`, и она обычно появляется при установке или изменении метки на объект с ограничениями. Системный администратор для обхода этой проблемы может использовать следующие команды:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -224,7 +224,7 @@ default:\
Для установки MAC меток на сетевых интерфейсах параметр `maclabel` может быть передан `ifconfig`. Например:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -253,7 +253,7 @@ default:\
Следующая команда установит параметр `multilabel` на файловых системах. Это может быть сделано только в однопользовательском режиме:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -282,7 +282,7 @@ default:\
====
Каждая политика MAC поддерживает переменные `sysctl`. Они обычно попадают в дерево `security.mac.<policyname>`. Для просмотра всех переменных MAC, используйте следующую команду:
-[source,bash]
+[source,shell]
....
# sysctl -da | grep mac
....
@@ -338,7 +338,7 @@ default:\
После загрузки модуля man:mac_bsdextended[4] для просмотра текущей настройки правил может быть использована следующая команда:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -346,7 +346,7 @@ default:\
Как и можно было ожидать, правила не определены. Это означает, что доступ полностью открыт. Для создания правила, которое заблокирует доступ всех пользователей, но не повлияет на `root`, просто запустите следующую команду:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
@@ -358,7 +358,7 @@ default:\
Это очень плохая идея, поскольку такое правило запретит пользователям использовать даже самые простые команды, такие как `ls`. Более патриотический список правил может быть таким:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -427,7 +427,7 @@ default:\
Следующие примеры должны осветить обсуждение выше чуть лучше:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -435,21 +435,21 @@ default:\
Сначала мы настраиваем man:mac_portacl[4] для работы со стандартными привилегированными портами и отмены обычных ограничений UNIX(R) на привязку.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
Пользователь `root` должен быть исключен из этой политики, для этого переменная `security.mac.portacl.suser_exempt` установлена в ненулевое значение. Модуль man:mac_portacl[4] теперь настроен на то поведение UNIX(R)-подобных систем по умолчанию.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
Разрешает пользователю с UID 80 (обычно это пользователь `www`) привязку к порту 80. Теперь пользователь `www` сможет запустить веб сервер даже без привилегии `root`.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -534,7 +534,7 @@ insecure:\
Для присвоения утилитам меток partition используйте утилиту `setpmac`:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -545,14 +545,14 @@ insecure:\
Следующая команда покажет вашу метку раздела и список процессов:
-[source,bash]
+[source,shell]
....
# ps Zax
....
Следующей командой можно просмотреть метку раздела процессов других пользователей и их запущенные процессы:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -604,14 +604,14 @@ MLS представляет собой:
Для управления метками MLS существует команда man:setfmac[8]. Для присвоения метки объекту, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
Для получения метки MLS файла [.filename]#test#, выполните следующую команду:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -654,7 +654,7 @@ Biba представляет собой:
Для выполнения настроек политики Biba на системных объектах, применяются команды `setfmac` и `getfmac`:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -682,7 +682,7 @@ MAC версия политики целостности Low-watermark, чтоб
Как и для политик Biba и MLS, для установки меток на системные объекты и субъекты могут быть использованы утилиты `setfmac` и `setpmac`:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -737,7 +737,7 @@ insecure:\
После завершения этих действий, для пересборки базы данных должна быть выполнена следующая команда:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -758,7 +758,7 @@ mac_partition_load="YES"
Всем учетным записям, кроме `root` или системных пользователей теперь потребуется присвоить класс (login class). При отсутствии класса пользователи не смогут получить доступа к обычным командам, таким как man:vi[1]. Следующий скрипт `sh` сделает все необходимое:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L insecure; done;
@@ -803,7 +803,7 @@ mac_partition_load="YES"
Он может быть внесен в систему следующими командами:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /usr
@@ -832,7 +832,7 @@ default_labels socket ?biba,?mls
==== Основное тестирование меток
-[source,bash]
+[source,shell]
....
% getpmac
biba/15(15-15),mls/15(15-15),partition/15
@@ -846,7 +846,7 @@ biba/15(15-15),mls/15(15-15),partition/15
==== Тестирование MAC seeotheruids
-[source,bash]
+[source,shell]
....
% ps Zax
biba/15(15-15),mls/15(15-15),partition/15 1096 #C: S 0:00.03 -su (bash)
@@ -859,7 +859,7 @@ biba/15(15-15),mls/15(15-15),partition/15 1101 #C: R+ 0:00.01 ps Zax
Отключите политику MAC `seeotheruids` для остальных тестов:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.seeotheruids.enabled=0
% ps Zax
@@ -873,7 +873,7 @@ LABEL PID TT STAT TIME
==== Тестирование меток Biba и MLS
-[source,bash]
+[source,shell]
....
# setpmac partition/15,mls/equal,biba/high\(high-high\) top
% ps Zax
@@ -885,7 +885,7 @@ LABEL PID TT STAT TIME
Политика Biba позволяет чтение объектов с более высокими метками.
-[source,bash]
+[source,shell]
....
# setpmac partition/15,mls/equal,biba/low top
% ps Zax
@@ -896,7 +896,7 @@ LABEL PID TT STAT TIME COMMAND
Политика Biba не позволяет чтение объектов с более низкими метками; тем не менее, MLS разрешает это.
-[source,bash]
+[source,shell]
....
% ifconfig bge0 | grep maclabel
maclabel biba/low(low-low),mls/low(low-low)
@@ -909,14 +909,14 @@ ping: sendto: Permission denied
Для устранения этой ошибки, запустите следующую команду:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.biba.trust_all_interfaces=1
....
Она устанавливает метку интерфейса по умолчанию в незащищенный режим, так что политика Biba по умолчанию не будет применена.
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal\(low-high\),mls/equal\(low-high\)
% ping -c 1 192.0.34.166
@@ -931,7 +931,7 @@ round-trip min/avg/max/stddev = 204.455/204.455/204.455/0.000 ms
Теперь создадим файлы для процедуры тестирования чтения и записи:
-[source,bash]
+[source,shell]
....
# touch test1 test2 test3 test4 test5
# getfmac test1
@@ -949,7 +949,7 @@ test5: biba/high,mls/equal
Все эти файлы должны принадлежать пользователю `testuser`. Тесты на чтение:
-[source,bash]
+[source,shell]
....
% ls
test1 test2 test3 test4 test5
@@ -962,7 +962,7 @@ test3 test5
Доступ на чтение не должен быть разрешен для пар: `(biba/low,mls/low)`, `(biba/low,mls/high)` и `(biba/high,mls/high)`. Теперь несколько тестов на запись:
-[source,bash]
+[source,shell]
....
% for i in `echo test*`; do echo 1 > $i; done
-su: test1: Permission denied
@@ -972,7 +972,7 @@ test3 test5
Подобно тестам на чтение, доступ на запись должен быть запрещен для пар: `(biba/low,mls/high)` и `(biba/equal,mls/equal)`.
-[source,bash]
+[source,shell]
....
% cat test?
cat: test1: Permission denied
@@ -983,7 +983,7 @@ cat: test4: Permission denied
А теперь от `root`:
-[source,bash]
+[source,shell]
....
# cat test2
1
@@ -996,14 +996,14 @@ cat: test4: Permission denied
Начните с создания каталога для хранения веб данных:
-[source,bash]
+[source,shell]
....
# mkdir /usr/home/cvs
....
Теперь инициализируйте его командой `cvs`:
-[source,bash]
+[source,shell]
....
# cvs -d /usr/home/cvs init
....
@@ -1023,7 +1023,7 @@ cat: test4: Permission denied
Каждого пользователя необходимо поместить в класс по умолчанию; такая команда:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
diff --git a/documentation/content/ru/books/handbook/mail/_index.adoc b/documentation/content/ru/books/handbook/mail/_index.adoc
index 224398adf1..46d6b069c2 100644
--- a/documentation/content/ru/books/handbook/mail/_index.adoc
+++ b/documentation/content/ru/books/handbook/mail/_index.adoc
@@ -107,7 +107,7 @@ DNS отвечает за сопоставления имен хостов IP а
Вы можете просмотреть MX записи для любого домена с помощью команды man:host[1], как показано в примере ниже:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -324,7 +324,7 @@ sendmail_enable="NO"
Новый МТА можно запускать автоматически при загрузке системы добавив соответствующую строку в [.filename]#/etc/rc.conf#. Ниже приведен пример для postfix:
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable=<<YES>>' >> /etc/rc.conf
....
@@ -494,7 +494,7 @@ customer.com и hostname.customer.com. Просто
Есть несколько путей разрешения этой ситуации. Самый прямой путь это использование адреса вашего провайдера в файле relay-domains, расположенном в [.filename]#/etc/mail/relay-domains#. Быстрый способ сделать это:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -533,7 +533,7 @@ www.example.org
Попробуйте это:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -545,7 +545,7 @@ example.FreeBSD.org has address 204.216.27.XX
Однако, если вы видите это:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -622,7 +622,7 @@ customer1.org MX 10 mail.myhost.com
Простейшим способом удовлетворить имеющиеся потребности может быть установка порта package:mail/ssmtp[]. Выполните под `root` следующие команды:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -728,7 +728,7 @@ saslauthd_enable="YES"
+
а затем запустите saslauthd:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -746,7 +746,7 @@ SENDMAIL_LDADD=-lsasl2
Эти параметры необходимы sendmail для подключения package:cyrus-sasl2[] во время компиляции. Убедитесь, что package:cyrus-sasl2[] был установлен до перекомпиляции sendmail.
. Перекомпилируйте sendmail, выполнив следующие команды:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -788,14 +788,14 @@ define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
Для отправки и получения почты выполните `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
Содержимое почтового ящика в каталоге [.filename]#/var/mail# будет автоматически прочитано утилитой `mail`. Если почтовый ящик пуст, утилита завершит работу с сообщением о том, что почта не была обнаружена. После чтения почтового ящика запустится интерфейс программы и будет отображен список сообщений. Сообщения нумеруются автоматически и будут выглядеть как в этом примере:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -806,7 +806,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Теперь сообщения могут быть прочитаны с помощью команды kbd:[t], завершаемой номером сообщения, которое должно быть отображено. В этом примере мы прочтем первое сообщение:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -825,7 +825,7 @@ This is a test message, please reply if you receive it.
Если требуется ответить на сообщение, используйте для ответа `mail`, нажав клавишу kbd:[R] или kbd:[r]. Клавиша kbd:[R] используется в `mail` для ответа только отправителю, а kbd:[r] для ответа и отправителю, и другим получателям сообщения. Вы можете также завершить эти команды номером письма, на которое хотите составить ответ. После этого необходимо ввести ответ, конец сообщения должен быть завершен символом kbd:[.] на новой строке. Пример можно увидеть ниже:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -838,7 +838,7 @@ EOT
Для отправки нового сообщения используйте клавишу kbd:[m] и введите адрес получателя. Несколько получателей могут быть указаны через запятую. Введите тему сообщения и его содержимое. Конец сообщения отмечается помещением символа kbd:[.] на новой строке.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -870,7 +870,7 @@ mutt это небольшая но очень мощная почтовая п
Стабильная версия mutt может быть установлена из порта package:mail/mutt[]. После установки порта, mutt может быть запущен следующей командой:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -909,7 +909,7 @@ alpine предназначен для начинающих пользовате
Текущая версия alpine может быть установлена из порта package:mail/alpine[]. Как только порт установлен, alpine можно запустить командой:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -950,7 +950,7 @@ fetchmail это полноценный IMAP и POP клиент, позволя
Описание всех возможностей fetchmail выходит за пределы этой главы, за дополнительной информацией обратитесь к документации по fetchmail. Утилита fetchmail требует наличия файла настройки [.filename]#.fetchmailrc#. Этот файл включает информацию о сервере, а также информацию для аутентификации. Поскольку этот файл содержит важную информацию, правильно будет сделать его доступным для чтения только владельцем с помощью следующей команды:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -975,7 +975,7 @@ user "john", with password "XXXXX", is "myth" here;
Утилита fetchmail может работать в режиме даемона с флагом `-d`, заданным с интервалом (в секундах), через который fetchmail должен опрашивать серверы, перечисленные в [.filename]#.fetchmailrc#. В следующем примере fetchmail будет забирать почту каждые 600 секунд:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/ru/books/handbook/mirrors/_index.adoc b/documentation/content/ru/books/handbook/mirrors/_index.adoc
index f4a8f366b3..e3288f24e4 100644
--- a/documentation/content/ru/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/ru/books/handbook/mirrors/_index.adoc
@@ -442,7 +442,7 @@ Cуществует немного документации по процесс
Когда основной дельта-файл создан, примените все дельта-файлы с последующими номерами. Чтобы применить дельта-файлы:
-[source,bash]
+[source,shell]
....
# cd /directory/to/store/the/stuff
# ctm -v -v /directory/which/stores/the/deltas/src-xxx.*
@@ -475,7 +475,7 @@ Cуществует немного документации по процесс
+
Пример извлечения свежей копии [.filename]#lib/libc/Makefile# из коллекции сохраненных дельт CTM:
+
-[source,bash]
+[source,shell]
....
# cd /directory/to/extract/to/
# ctm -e '^lib/libc/Makefile' /directory/which/stores/the/deltas/src-xxx.*
@@ -503,7 +503,7 @@ Subversion в основном является инструментом раз
Subversion должен быть установлен до его использования для получения содержимого любого из репозиториев. Если уже имеется копия дерева портов, Subversion можно установить следующим образом:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -511,14 +511,14 @@ Subversion должен быть установлен до его использ
Если дерево портов недоступно, Subversion можно установить из пакета:
-[source,bash]
+[source,shell]
....
# pkg_add -r subversion
....
Если для управления пакетов используется pkgng, то Subversion можно установить с его помощью:
-[source,bash]
+[source,shell]
....
# pkg install devel/subversion
....
@@ -538,7 +538,7 @@ Subversion для обозначения репозитория использу
Загрузка из данного репозитория выполняется следующей командой:
-[source,bash]
+[source,shell]
....
# svn checkout svn-mirror/repository/branch lwcdir
....
@@ -552,7 +552,7 @@ Subversion для обозначения репозитория использу
В этом примере загружается Коллекция Портов с западного репозитория США с использованием протокола HTTPS и размещением локальной рабочей копии в [.filename]#/usr/ports#. Если [.filename]#/usr/ports# уже присутствует, но не был создан с помощью `svn`, не забудьте его переименовать или удалить перед загрузкой.
-[source,bash]
+[source,shell]
....
# svn checkout https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
....
@@ -561,14 +561,14 @@ Subversion для обозначения репозитория использу
После первоначальной загрузки локальную рабочую копию можно обновить:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
Для обновления [.filename]#/usr/ports#, созданного в вышеприведённом примере, используйте:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -577,7 +577,7 @@ Subversion для обозначения репозитория использу
Альтернативный способ обновления локальной рабочей копии после загрузки обеспечивается в [.filename]#Makefile# в каталогах [.filename]#/usr/ports#, [.filename]#/usr/src# и [.filename]#/usr/doc#. Используйте цель `update` с заданной переменной `SVN_UPDATE`. Пример для обновления [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
@@ -628,7 +628,7 @@ Subversion для обозначения репозитория использу
При первом соединении с зеркалом по HTTPS пользователю будет предложено проверить _fingerprint_ (отпечаток) сервера:
-[source,bash]
+[source,shell]
....
Error validating server certificate for 'https://svn0.us-west.freebsd.org:443':
- The certificate is not issued by a trusted authority. Use the
diff --git a/documentation/content/ru/books/handbook/multimedia/_index.adoc b/documentation/content/ru/books/handbook/multimedia/_index.adoc
index 0ed466b63f..acde2e23d4 100644
--- a/documentation/content/ru/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/ru/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ FreeBSD может поддерживать воспроизведение ви
Для того, чтобы использовать звуковую карту, вы должный загрузить соответствующий драйвер устройства. Этого можно достигнуть двумя путями. Простейший способ - это просто загрузить соответствующий вашей карте модуль ядра используя man:kldload[8], что можно сделать или из командной строки:
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
Эти примеры приведены для звуковой карты Creative SoundBlaster(R) Live!. Другие имеющиеся модули драйверов звуковых карты приведены в [.filename]#/boot/defaults/loader.conf# Если вы не уверены, какой драйвер использовать, попробуйте загрузить [.filename]#snd_driver#:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ hint.sbc.0.flags="0x15"
После перезагрузки модифицированного ядра, или после загрузки необходимого модуля, звуковая карта должна появиться в буфере системных сообщений (man:dmesg[8]) примерно так:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
Статус звуковой карты может быт проверен через файл [.filename]#/dev/sndstat#:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,14 +182,14 @@ kld snd_ich (1p/2r/0v channels duplex default)
Если всё пройдет удачно, звуковая карта заработает. Если CD-ROM или DVD-ROM привод правильно подключён к звуковой карте, вы можете вставить CD в привод и воспроизвести его при помощи man:cdcontrol[1].
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
Различные приложения, например package:audio/workman[] могут предоставить более дружественный пользователю интерфейс. Вы можете также установить приложения для прослушивания звуковых файлов MP3, как например package:audio/mpg123[]. Быстрым способом тестирования звуковой карты является отправка данных в файл [.filename]#/dev/dsp#, как показано здесь:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -242,7 +242,7 @@ FreeBSD позволяет делать это при помощи _виртуа
Для установки количества виртуальных каналов вы можете использовать две переменные sysctl, которые, если вы пользователь `root`, могут быть установлены таким образом:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4
@@ -286,7 +286,7 @@ XMMS может быть установлен из порта или пакет
mpg123 может быть запущен с указанием звукового устройства и файла MP3 в командной строке как показано ниже:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -309,14 +309,14 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Когда музыкальный CD находится в приводе, следующая команда может быть выполнена под `root` для того, чтобы скопировать весь CD в отдельные (один на каждую дорожку) WAV файлы:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav поддерживает ATAPI (IDE) приводы CDROM. Для копирования с IDE привода, укажите имя устройства вместо номеров SCSI. Например, для того, чтобы скопировать 7-ую аудио дорожку с IDE-привода:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -325,14 +325,14 @@ cdda2wav поддерживает ATAPI (IDE) приводы CDROM. Для ко
Для того, чтобы копировать отдельные дорожки, используйте параметр `-t` как показано ниже:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
Этот пример показывает как скопировать 7-ю дорожку музыкального CD. Для того чтобы скопировать набор дорожек, например, с первой по седьмую, укажите диапазон:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -346,7 +346,7 @@ cdda2wav поддерживает ATAPI (IDE) приводы CDROM. Для ко
Используя скопированные файлы WAV, следующая команда преобразует [.filename]#audio01.wav# в [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Foo Song Title" \
@@ -389,7 +389,7 @@ audio01.wav audio01.mp3
XMMS записывает файл в формате WAV, в то время как mpg123 преобразовывает MP3 в простые аудио данные PCM. Оба формата могут быть использованы cdrecord для создания музыкальных CD. Для использования man:burncd[8] вам потребуются простые аудио данные PCM. Если же вы будете использовать файлы в формате WAV, то заметите небольшой щелчок в начале каждой аудио дорожки, этот щелчок - заголовок файла в формате WAV. Вы очень просто можете избавиться от него путём удаления заголовка WAV при помощи утилиты SoX (она может быть установлена из порта package:audio/sox[] или соответствующего пакета:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -405,7 +405,7 @@ XMMS записывает файл в формате WAV, в то время к
Неплохо также иметь небольшой файл MPEG, который бы использовался как тестовый файл для проверки различных проигрывателей и настроек. Так как некоторые проигрыватели DVD будут искать носитель DVD как [.filename]#/dev/dvd# по умолчанию или быть жёстко настроены на него, возможно будет полезно сделать символические ссылки на правильные устройства:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -449,14 +449,14 @@ Xorg и XFree86(TM) 4.X включают в себя расширение, на
Для того чтобы проверить, работает ли это расширение, используйте команду `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo поддерживается вашей видеокартой, если результат выглядит приблизительно так:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -532,7 +532,7 @@ screen #0
Если результат выглядит так:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -589,7 +589,7 @@ MPlayer это недавно разработанный и быстро раз
MPlayer находится в package:multimedia/mplayer[]. MPlayer производит различные тесты аппаратного обеспечения во время процесса компиляции, в результате чего полученные исполняемые модули не могут быть перенесены с одной системы на другую. Поэтому важно собирать его из портов, а не использовать бинарный пакет. Также, при сборке вы можете указать различные установки при помощи параметров командной строки `make`, как описывается в [.filename]#Makefile# в начале сборки:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -617,7 +617,7 @@ http://www.mplayerhq.hu/homepage/dload.html
Каждый пользователь MPlayer должен создать подкаталог [.filename]#.mplayer# в своем домашнем каталоге. Для того, чтобы его создать, выполните следующие действия:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -627,27 +627,27 @@ http://www.mplayerhq.hu/homepage/dload.html
Для того, чтобы воспроизвести файл, например [.filename]#testfile.avi# через один из многих видеоинтерфейсов, используйте параметр `-vo`:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -656,7 +656,7 @@ http://www.mplayerhq.hu/homepage/dload.html
Для того, чтобы воспроизвести DVD, замените [.filename]#testfile.avi# на `dvd://_N_ -dvd-device _DEVICE_`, где _N_ является номером дорожки, с которой следует начать воспроизведение и [.filename]#DEVICE# файл устройства привода DVD. Например, для того, чтобы воспроизвести дорожку 3 с [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -681,7 +681,7 @@ zoom=yes
Также `mplayer` может быть использован для копирования дорожек DVD в [.filename]#.vob# файлы. Для того, чтобы скопировать вторую дорожку DVD необходимо выполнить следующую команду:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -693,7 +693,7 @@ zoom=yes
Перед использованием `mencoder`, было бы неплохо ближе ознакомится с его параметрами, используя документацию в формате HTML. Также существует страничка справочника mplayer, но она не очень полезна без HTML документации. Существует бесчисленное множество способов улучшения качества, снижения битрейта и изменения формата; и некоторые из этих приёмов могут влиять на производительность. Ниже приведено несколько примеров использования `mencoder`. Во-первых, простое копирование:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -702,7 +702,7 @@ zoom=yes
Для того, чтобы преобразовать [.filename]#input.avi# в MPEG4 со звуком в формате MPEG Audio Layer 3 (MP3) (требуется package:audio/lame[]):
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -725,14 +725,14 @@ xine все еще несовершенен, но все-таки это хор
По умолчанию, xine запускается с графическим интерфейсом. Для открытия файлов используются меню.
-[source,bash]
+[source,shell]
....
% xine
....
В качестве альтернативы можно использовать его для запуска файла непосредственно, без GUI, следующей командой:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -744,7 +744,7 @@ xine все еще несовершенен, но все-таки это хор
Большое количество опций может быть указано во время сборки порта package:multimedia/transcode[]. Для сборки transcode мы рекомендуем использовать следующую командную строку:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -754,7 +754,7 @@ WITH_MJPEG=yes -DWITH_XVID=yes
Для иллюстрации возможностей `transcode` приводится пример, показывающий как сконвертировать файл DivX формата в PAL MPEG-1 файл (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -831,7 +831,7 @@ options OVERRIDE_TUNER=6
или прямо задайте переменную man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -884,7 +884,7 @@ device uscanner
Если вы не хотите перестраивать ядро, и при этом ваше ядро не является стандартным ([.filename]#GENERIC#), вы можете загрузить модуль драйвера поддержки сканеров man:uscanner[4] при помощи команды man:kldload[8]:
-[source,bash]
+[source,shell]
....
# kldload uscanner
....
@@ -898,7 +898,7 @@ uscanner_load="YES"
После перезагрузки с новым ядром или загрузки модуля подключите ваш USB сканер. В буфере системных сообщений (man:dmesg[8]) должна появиться строка об обнаружении сканера:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -917,7 +917,7 @@ device pass
После установки и загрузки нового ядра, в буфере системных сообщений должны появиться строки о вашем сканере, например:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -926,7 +926,7 @@ pass2: 3.300MB/s transfers
Если сканер не был включен в момент загрузки, его можно принудительно опознать, выполнив сканирование SCSI шины при помощи команды man:camcontrol[8]:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -937,7 +937,7 @@ Re-scan of bus 3 was successful
После этого сканер должен появиться в списке устройств:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -954,7 +954,7 @@ Re-scan of bus 3 was successful
В первую очередь следует установить порт или пакет package:graphics/sane-backends[], после чего при помощи команды `sane-find-scanner` проверить поддержку сканера системой SANE:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -969,7 +969,7 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
Теперь необходимо убедиться, что сканер опознан программой графического интерфейса. В состав системы SANE входит утилита man:sane[1], позволяющая работать со сканером из командной строки. Опция `-L` используется для показа информации о сканере:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -979,7 +979,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
Например, в случае USB сканера, описанного в <<scanners-kernel-usb>>, утилита `sane-find-scanner` выдаст следующую информацию:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -987,7 +987,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
Сканер обнаружен корректно, он использует интерфейс USB и доступен через устройство [.filename]#/dev/uscanner0#. Теперь попробуем идентифицировать его:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1006,7 +1006,7 @@ usb /dev/uscanner0
Пожалуйста, прочтите комментарии в файле конфигурации, а также страницы справочника для более полной информации. Теперь мы можем проверить, что наш сканер опознан:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1024,7 +1024,7 @@ device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
Все описанные операции выполнялись нами с привилегиями суперпользователя (`root`). Вам может потребоваться дать доступ к сканеру другим пользователям. Для этого необходимо разрешить доступ на чтение и запись к файлу устройства, обслуживающему сканер. В нашем примере USB сканер использует устройство [.filename]#/dev/uscanner0#, принадлежащее группе `operator`. Добавление пользователя `joe` в группу `operator` разрешит ему использовать сканер:
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m joe
....
diff --git a/documentation/content/ru/books/handbook/network-servers/_index.adoc b/documentation/content/ru/books/handbook/network-servers/_index.adoc
index a64705f278..eed8b3510d 100644
--- a/documentation/content/ru/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/ru/books/handbook/network-servers/_index.adoc
@@ -143,7 +143,7 @@ inetd_enable="NO"
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -375,14 +375,14 @@ nfs_client_enable="YES"
Даемон mountd должен быть проинформирован об изменении файла [.filename]#/etc/exports#, чтобы изменения вступили в силу. Это может быть достигнуто посылкой сигнала HUP процессу `mountd`:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
или вызовом скрипта `mountd` подсистемы man:rc[8] с соответствующим параметром:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -393,7 +393,7 @@ nfs_client_enable="YES"
На сервере NFS:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -402,14 +402,14 @@ nfs_client_enable="YES"
На клиенте NFS:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
Теперь всё должно быть готово к реальному монтированию удалённой файловой системы. В приводимых примерах сервер будет носить имя `server`, а клиент будет носить имя `client`. Если вы только хотите временно смонтировать удалённую файловую систему, или всего лишь протестировать ваши настройки, то просто запустите команды, подобные приводимым здесь, работая как пользователь `root` на клиентской машине:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -437,7 +437,7 @@ rpc_statd_enable="YES"
Запустите демоны, выполнив следующие команды:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/lockd start
# /etc/rc.d/statd start
@@ -467,7 +467,7 @@ amd работает, сам выступая как сервер NFS для к
====
Вы можете посмотреть доступные для монтирования ресурсы отдалённого хоста командой `showmount`. К примеру, чтобы посмотреть ресурсы хоста с именем `foobar`, вы можете использовать:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -520,7 +520,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
Команда, выдаваемая вручную на машине `freebox`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -534,7 +534,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
Команда, выдаваемая вручную на машине `fastws`:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -694,7 +694,7 @@ nis_yppasswdd_enable="YES"
После добавления вышеприведенных строк, запустите команду `/etc/netstart`, работая как администратор. По ней произойдет настройка всего, при этом будут использоваться значения, заданные в файле [.filename]#/etc/rc.conf#. И наконец, перед инициализацией карт NIS, запустите вручную демон ypserv:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ypserv start
....
@@ -703,7 +703,7 @@ nis_yppasswdd_enable="YES"
_Карты NIS_ являются файлами баз данных, которые хранятся в каталоге [.filename]#/var/yp#. Они генерируются из конфигурационных файлов, находящихся в каталоге [.filename]#/etc# основного сервера NIS, за одним исключением: файл [.filename]#/etc/master.passwd#. На это есть весомая причина, вам не нужно распространять пароли пользователя `root` и других административных пользователей на все серверы в домене NIS. По этой причине, прежде чем инициализировать карты NIS, вы должны сделать вот что:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -719,7 +719,7 @@ _Карты NIS_ являются файлами баз данных, котор
Когда с этим будет покончено, самое время инициализировать карты NIS! В поставку FreeBSD включен скрипт с именем `ypinit`, который делает это (обратитесь к его справочной странице за дополнительной информацией). Отметьте, что этот скрипт имеется в большинстве операционных систем UNIX(R), но не во всех. В системе Digital Unix/Compaq Tru64 UNIX он называется `ypsetup`. Так как мы генерируем карты для главного сервера NIS, то при вызове программы `ypinit` мы передаем ей параметр `-m`. Для генерации карт NIS в предположении, что вы уже сделали шаги, описанные выше, выполните следующее:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -748,7 +748,7 @@ ellington has been setup as an YP master server without any errors.
Программа `ypinit` должна была создать файл [.filename]#/var/yp/Makefile# из [.filename]#/var/yp/Makefile.dist#. При создании этого файла предполагается, что вы работаете в окружении с единственным сервером NIS и только с машинами FreeBSD. Так как в домене `test-domain` имеется также и вторичный сервер, то вы должны отредактировать файл [.filename]#/var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -766,7 +766,7 @@ NOPUSH = "True"
Настройка вторичного сервера NIS осуществляется ещё проще, чем настройка главного сервера. Войдите на вторичный сервер и отредактируйте файл [.filename]#/etc/rc.conf# точно также, как вы делали это ранее. Единственным отличием является то, что при запуске программы `ypinit` мы теперь должны использовать опцию `-s`. Применение опции `-s` требует также указание имени главного сервера NIS, так что наша команда должна выглядеть так:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -884,7 +884,7 @@ nis_client_enable="YES"
Для немедленного запуска клиента NIS выполните следующую команду с правами пользователя `root`:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# /etc/rc.d/ypbind start
@@ -935,7 +935,7 @@ nis_client_enable="YES"
Есть способ ограничить вход некоторых пользователей на этой машине, даже если они присутствуют в базе данных NIS. Чтобы это сделать, вам достаточно добавить `-_username_` в конец файла [.filename]#/etc/master.passwd# на клиентской машине, где _username_ является именем пользователя, которому вы хотите запретить вход. Рекомендуется сделать это с помощью утилиты `vipw`, так как `vipw` проверит ваши изменения в [.filename]#/etc/master.passwd#, а также автоматически перестроит базу данных паролей по окончании редактирования. Например, если мы хотим запретить пользователю `bill` осуществлять вход на машине `basie`, то мы сделаем следующее:
-[source,bash]
+[source,shell]
....
basie# vipw
[add -bill to the end, exit]
@@ -1020,7 +1020,7 @@ basie#
Первым шагом является инициализация карты NIS по имени netgroup. Программа man:ypinit[8] во FreeBSD по умолчанию этой карты не создаёт, хотя реализация NIS будет её поддерживает, как только она будет создана. Чтобы создать пустую карту, просто наберите
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1063,7 +1063,7 @@ BIGGROUP BIGGRP1 BIGGRP2 BIGGRP3
Активация и распространение вашей карты NIS проста:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1071,7 +1071,7 @@ ellington# make
Это приведет к созданию трех карт NIS [.filename]#netgroup#, [.filename]#netgroup.byhost# и [.filename]#netgroup.byuser#. Воспользуйтесь утилитой man:ypcat[1] для проверки доступности ваших новых карт NIS:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1199,7 +1199,7 @@ TWO (,hotel,test-domain)
* Каждый раз, когда вы собираетесь добавить пользователя в лаборатории, вы должны добавить его _только_ на главном сервере NIS и _обязательно перестроить карты NIS_. Если вы забудете сделать это, то новый пользователь не сможет нигде войти, кроме как на главном сервере NIS. Например, если в лаборатории нам нужно добавить нового пользователя `jsmith`, мы делаем вот что:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1250,7 +1250,7 @@ default:\
Если вы внесли изменения в файл [.filename]#/etc/login.conf#, то вам также нужно перестроить базу данных параметров входа в систему, что достигается запуском следующей команды пользователем `root`:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1437,7 +1437,7 @@ dhcpd_ifaces="dc0"
Затем вы можете стартовать сервер DHCP при помощи команды
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd start
....
@@ -1563,7 +1563,7 @@ FreeBSD в настоящее время поставляется с серве
Стандартная конфигурация named запускает простой кэширующий сервер в ограниченной среде man:chroot[8], который прослушивает запросы на интерфейсе обратной связи (loopback) с адресом (127.0.0.1). Для одноразового запуска даемона в этой конфигурации используйте команду
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named onestart
....
@@ -2147,28 +2147,28 @@ FreeBSD используется в качестве платформы для
Apache не запускается из inetd, как это делают многие другие сетевые серверы. Он настроен для автономного запуска, чтобы обеспечивать большую производительность при обработке HTTP запросов от браузеров клиентов. Для упрощения запуска, остановки и перезапуска сервера существует shell скрипт. Для запуска Apache в первый раз просто выполните:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
Вы можете остановить сервер в любой момент, выполнив:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
После внесения любых изменений в файл настроек, вам потребуется перезапустить сервер:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
Для перезапуска Apache без прерывания имеющихся соединений, выполните:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2211,7 +2211,7 @@ NameVirtualHost *
Если веб сервер назывался `www.domain.tld` и вы хотите настроить виртуальный домен для `www.someotherdomain.tld`, необходимо добавить в [.filename]#httpd.conf# следующие записи:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2257,7 +2257,7 @@ Django - это распространяемая под лицензией BSD
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/py-django; make all install clean -DWITH_MOD_PYTHON3 -DWITH_POSTGRESQL
....
@@ -2272,7 +2272,7 @@ Django - это распространяемая под лицензией BSD
====
Чтобы настроить Apache отправлять запросы для определенных URL адресов вашему веб-приложению, вам потребуется внести несколько строк в конфигурационный файл [.filename]#httpd.conf#:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -2290,7 +2290,7 @@ Django - это распространяемая под лицензией BSD
Ruby on Rails это еще одна веб инфраструктура с открытым исходным кодом, которая предоставляет полный стек разработки и которая оптимизированa для продуктивного и быстрого создания мощных веб-приложений. Ruby on Rails может быть легко установлена из коллекции портов.
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/rubygem-rails; make all install clean
....
@@ -2309,7 +2309,7 @@ PHP, также известный как "Препроцессор гиперт
Если порт package:lang/php5[] устанавливается впервые, то автоматически отобразятся все доступные опции (`OPTIONS`). Если меню не отображается, так как порт package:lang/php5[] устанавливался ранее, всегда можно повторно вызвать диалог меню выполнив следующую команду в каталоге порта:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2342,7 +2342,7 @@ AddModule mod_php5.c
Для загрузки модуля PHP после этого просто вызовите команду `apachectl` с параметром graceful:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2355,7 +2355,7 @@ AddModule mod_php5.c
После установки новых расширений сервер Apache должен быть рестартован, чтобы изменения в конфигурации вступили в силу:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2417,7 +2417,7 @@ Samba поддерживает несколько различных подси
Предполагая, что используется подсистема по умолчанию `smbpasswd`, необходимо создать файл [.filename]#/usr/local/etc/samba/smbpasswd#, чтобы Samba могла аутентифицировать клиентов. Если вы хотите разрешить к учетным записям UNIX(R) доступ с Windows(R) клиентов, используйте следующую команду:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2426,7 +2426,7 @@ Samba поддерживает несколько различных подси
====
Ныне рекомендуемой подсистемой аутентификации является `tdbsam`, поэтому для добавления пользователей используйте следующую команду:
-[source,bash]
+[source,shell]
....
# pdbedit -a -u username
....
@@ -2463,7 +2463,7 @@ smbd_enable="YES"
Теперь становится возможным запустить сервер Samba, для чего наберите следующую команду:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2477,7 +2477,7 @@ Samba состоит из трех отдельных даемонов. Вы м
Вы можете остановить Samba в любой момент, набрав:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba stop
....
@@ -2519,14 +2519,14 @@ ftpd_enable="YES"
Демон будет запущен автоматически при следующей загрузке системы. Также демон можно запустить вручную, для чего выполните следующую команду как пользователь `root`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ftpd start
....
Теперь вы можете войти на FTP сервер, введя:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2621,7 +2621,7 @@ restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Для запуска сервера без перезагрузки вашей машины, выполните команду `ntpd`, не забыв задать дополнительные параметры из переменной `ntpd_flags` в файле [.filename]#/etc/rc.conf#. К примеру:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
diff --git a/documentation/content/ru/books/handbook/ports/_index.adoc b/documentation/content/ru/books/handbook/ports/_index.adoc
index d74169877b..a201ecc246 100644
--- a/documentation/content/ru/books/handbook/ports/_index.adoc
+++ b/documentation/content/ru/books/handbook/ports/_index.adoc
@@ -121,7 +121,7 @@ FreeBSD предоставляет две технологии, которые
* Если вы не знаете названия нужного вам приложения, попытайтесь воспользоваться сайтом типа Freecode (http://www.freecode.com/[http://www.freecode.com/]) для поиска приложения, а затем возвратитесь на сайт FreeBSD, чтобы проверить, есть ли порт для этого приложения.
* Если вам необходимо определить, в какой категории находится порт, наберите `whereis _file_`, где _file_ - программа, которую вы хотите установить:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -129,7 +129,7 @@ lsof: /usr/ports/sysutils/lsof
+
Как вариант, можно воспользоваться man:echo[1]:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -138,7 +138,7 @@ lsof: /usr/ports/sysutils/lsof
Учтите, что в выводе также будут присутствовать совпадающие с шаблоном имена файлов, сохраненные в [.filename]#/usr/ports/distfiles#.
* Ещё одним способом поиска программного обеспечения является использование встроенной возможности поиска в Коллекции Портов. Чтобы ею воспользоваться, зайдите в [.filename]#/usr/ports# и выполните команду `make search name=_program-name_`, где _program-name_ - это название программы, которую вы хотите найти. Например, если вы ищете `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -161,7 +161,7 @@ R-deps:
+
Чтобы получить лаконичный вывод, задайте цель `quicksearch`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -190,7 +190,7 @@ Info: Lists information about open files (similar to fstat(1))
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -221,7 +221,7 @@ ftp> exit
Если у вас нет источника пакетов, например, такого как набор CD-ROM дисков с FreeBSD, то добавьте опцию `-r` для man:pkg_add[1]. Утилита автоматически определит правильный формат объектных файлов и релиз, а затем загрузит и установит пакет с сервера FTP без какого-либо дополнительного взаимодействия с пользователем.
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -239,7 +239,7 @@ ftp> exit
Для вывода перечня установленных пакетов и их описаний может быть задействована man:pkg_info[1].
-[source,bash]
+[source,shell]
....
# pkg_info
colordiff-1.0.13 A tool to colorize diff output
@@ -249,7 +249,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
Утилита man:pkg_version[1] выводит отчёт о версиях всех установленных пакетов и сравнивает их версии с текущими версиями соответствующих приложений, доступных из локального дерева портов.
-[source,bash]
+[source,shell]
....
# pkg_version
colordiff =
@@ -288,14 +288,14 @@ docbook =
Для удаления ранее установленных пакетов с программным обеспечением используйте утилиту man:pkg_delete[1].
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
Следует отметить, что для man:pkg_delete[1] требуется полное имя пакета и номер версии; вышеприведенная команда не сработала бы, если б ей было указано _xchat_ вместо _xchat-1.7.1_. Для нахождения версии установленного пакета задействуйте утилиту man:pkg_version[1]. Или же, напечатайте групповой символ (wildcard) вместо номера версии:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -320,7 +320,7 @@ pkgng не является заменой для утилит управлен
Для запуска самонастройки, выполните:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -329,7 +329,7 @@ pkgng не является заменой для утилит управлен
Для установки pkgng из порта, запустите следующее:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -338,14 +338,14 @@ pkgng не является заменой для утилит управлен
Для установки из бинарного пакета, выполните:
-[source,bash]
+[source,shell]
....
# pkg_add -r pkg
....
Действующие инсталляции FreeBSD требуют преобразования базы данных установленных пакетов утилиты pkg_install к новому формату. Для выполнения конвертирования, запустите:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -383,12 +383,12 @@ WITH_PKGNG= yes
Каждый аргумент команды pkgng описан на соответствующей странице справочника. Например, чтобы ознакомиться со страницей справочника для `pkg install`, запустите любую из двух нижеследующих команд:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -400,14 +400,14 @@ WITH_PKGNG= yes
Если необходима информация о конкретном пакете, выполните:
-[source,bash]
+[source,shell]
....
# pkg info packagename
....
Например, для получения версии pkgng, который установлен в системе, запустите:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.0.2 New generation package manager
@@ -418,7 +418,7 @@ pkg-1.0.2 New generation package manager
В общем, бинарные пакеты устанавливаются при помощи:
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
@@ -427,7 +427,7 @@ pkg-1.0.2 New generation package manager
Утилита `pkg install` может устанавливать дополнительные бинарные пакеты. Например, для установки curl, выполните:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -451,7 +451,7 @@ Installing curl-7.24.0... done
Новый пакет, как и любые дополнительные пакеты, которые были установлены как зависимости, перечисляются в списке установленных пакетов:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.13.5 The root certificate bundle from the Mozilla Project
@@ -461,7 +461,7 @@ pkg-1.0.2 New generation package manager
Пакеты, в которых более нет необходимости, могут быть удалены при помощи `pkg delete`. Например, если выяснится, что curl не нужен:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -481,7 +481,7 @@ Deleting curl-7.24.0_1... done
При помощи pkgng можно обновлять пакеты до новых версий. Предположим, вышла новая версия curl. Установленный пакет можно обновить к новой версии, выполнив:
-[source,bash]
+[source,shell]
....
# pkg upgrade
Updating repository catalogue
@@ -503,7 +503,7 @@ Upgrading curl from 7.24.0 to 7.24.0_1... done
Изредка в приложениях из Коллекции Портов обнаруживаются уязвимости. В pkgng встроена возможность выполнять аудит безопасности, действующая подобно приложению из package:ports-mgmt/portaudit[]. Для выполнения аудита установленных в систему программ, выполните:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -516,7 +516,7 @@ Upgrading curl from 7.24.0 to 7.24.0_1... done
После удаления пакета в системе могут остаться неиспользуемые зависимости, наподобие package:security/ca_root_nss[] из примера выше. Такие пакеты остаются установленными, несмотря на то, что они более не требуются другим пакетам. Определить и удалить неиспользуемые пакеты, которые были установлены как зависимости, можно при помощи:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -533,7 +533,7 @@ Deinstalling ca_root_nss-3.13.5... done
В отличие от традиционной системы управления пакетами, pkgng располагает своим собственным механизмом резервного копирования базы данных. Для ручного создания резервной копии базы данных установленных пакетов, выполните:
-[source,bash]
+[source,shell]
....
# pkg backup -d pkgng.db
....
@@ -553,7 +553,7 @@ Deinstalling ca_root_nss-3.13.5... done
Для восстановления содержимого базы данных установленных пакетов из резервной копии, выполните:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkgng.db
....
@@ -565,7 +565,7 @@ Deinstalling ca_root_nss-3.13.5... done
Для удаления устаревших версий бинарных пакетов из кеш-каталога, выполните:
-[source,bash]
+[source,shell]
....
# pkg clean
....
@@ -577,28 +577,28 @@ Deinstalling ca_root_nss-3.13.5... done
В отличие от package:ports-mgmt/portmaster[] и package:ports-mgmt/portupgrade[] для портов, порядок перечисления новой и старой версий отличаются. Для pkgng необходим следующий порядок:
-[source,bash]
+[source,shell]
....
# pkg set -o category/oldport:category/newport
....
Например, в вышеприведенном случае для замены информации о происхождении пакета, выполните:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
Еще один пример: для изменения информации о происхождении пакета с package:lang/ruby18[] на package:lang/ruby19[], выполните:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
И последний пример: для замены информации о происхождении пакета разделяемой библиотеки [.filename]#libglut# с package:graphics/libglut[] на package:graphics/freeglut[], запустите:
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -607,7 +607,7 @@ Deinstalling ca_root_nss-3.13.5... done
====
Выполняя замену информации о происхождении пакетов, в большинстве случаев также требуется переустановить пакеты, которые зависят от изменившегося пакета. Для принудительной переустановки зависящих пакетов, выполните:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -638,21 +638,21 @@ Portsnap это быстрый и удобный инструмент для п
. Скачайте сжатый снэпшот Коллекции Портов в [.filename]#/var/db/portsnap#.
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. Если вы запускаете Portsnap впервые, извлеките снэпшот в [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. По завершении первого запуска Portsnap, как было показано выше, [.filename]#/usr/ports# может быть обновлен при помощи:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -667,7 +667,7 @@ Portsnap это быстрый и удобный инструмент для п
. Для создания рабочей копии дерева портов необходимо иметь установленный Subversion. Если порты есть в наличии, то установите Subversion выполнив следующее:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -675,28 +675,28 @@ Portsnap это быстрый и удобный инструмент для п
+
Если портов нет, то Subversion может быть установлен при помощи системы пакетов:
+
-[source,bash]
+[source,shell]
....
# pkg_add -r subversion
....
+
Если же для управления пакетами используется pkgng, то Subversion устанавливается при помощи следующей команды:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. Создайте рабочую копию дерева портов. Для ускорения процесса вместо _svn0.us-east.FreeBSD.org_ укажите ближайшее к вам crossref:mirrors[svn-mirrors,зеркало Subversion]. Коммиттерам необходимо сначала прочитать link:{committers-guide}#subversion-primer/[Subversion Primer], чтобы удостовериться, что выбран корректный протокол.
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn0.us-east.FreeBSD.org/ports/head /usr/ports
....
+
. При наличии рабочей копии [.filename]#/usr/ports# все последующие обновления выполняются просто:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -710,7 +710,7 @@ Portsnap это быстрый и удобный инструмент для п
. Работая как пользователь `root`, запустите `sysinstall` так, как это показано ниже:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -742,21 +742,21 @@ Portsnap это быстрый и удобный инструмент для п
. Если у вас настроено автоматическое обновление портов, например при помощи задания man:cron[8], запускающего CVSup или csup, то его необходимо будет отключить.
. Переместите существующее дерево портов во временный каталог:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports /usr/ports.old
....
+
. При помощи Portsnap скачайте новое дерево портов и извлеките его в [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch extract
....
+
. Переместите дистрибутивные файлы (distfiles) и сохраненные пакеты в новое дерево портов:
+
-[source,bash]
+[source,shell]
....
# mv /usr/ports.old/distfiles /usr/ports
# mv /usr/ports.old/packages /usr/ports
@@ -764,21 +764,21 @@ Portsnap это быстрый и удобный инструмент для п
+
. Удалите старое дерево портов:
+
-[source,bash]
+[source,shell]
....
# rm -rf /usr/ports.old
....
+
. Если ранее использовался CVSup, то сейчас его можно удалить:
+
-[source,bash]
+[source,shell]
....
# pkg_delete -r -v cvsup-without-gui-\*
....
+
Пользователям pkgng необходимо запустить следующую команду:
+
-[source,bash]
+[source,shell]
....
# pkg delete cvsup-without-gui
....
@@ -814,14 +814,14 @@ Portsnap это быстрый и удобный инструмент для п
Первым делом переместитесь в каталог устанавливаемого порта:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
Для компиляции (или построения - "build") порта наберите команду `make`. Вы должны увидеть вывод команды, подобный следующему:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -846,7 +846,7 @@ Portsnap это быстрый и удобный инструмент для п
По завершении компиляции вы снова вернетесь к приглашению командного процессора. Следующим шагом является установка порта при помощи `make install`:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -866,7 +866,7 @@ Portsnap это быстрый и удобный инструмент для п
Хорошей идеей является удаление рабочего подкаталога, содержащего временные файлы, использовавшиеся во время компиляции. Такое действие помогает беречь дисковое пространство и минимизирует вероятность возникновения проблем в дальнейшем, при обновлении до более новой версии порта.
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -912,7 +912,7 @@ Portsnap это быстрый и удобный инструмент для п
В некоторых редких случаях пользователям необходимо получить tar-архивы с сайтов, отличающихся от указанных по умолчанию в `MASTER_SITES`. Вы можете переопределить значение `MASTER_SITES` посредством следующей команды:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -930,14 +930,14 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
При помощи переменных `WRKDIRPREFIX` и `PREFIX` можно переопределить назначаемые по умолчанию рабочий и целевой каталоги. Например:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
будет компилировать порт в каталоге [.filename]#/usr/home/example/ports#, а установит всё в [.filename]#/usr/local#.
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -946,7 +946,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
И, конечно же,
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -964,7 +964,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Установленные порты и пакеты удаляются при помощи команды man:pkg_delete[1]:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -974,7 +974,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Прежде всего, при помощи man:pkg_version[1] просмотрите, нет ли в Коллекции Портов более новых версий установленных приложений:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -991,7 +991,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Утилита portupgrade создана для простого обновления установленных портов. Она доступна из порта package:ports-mgmt/portupgrade[]. Установите её как и любой иной порт при помощи команды `make install clean`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -1001,21 +1001,21 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Используйте `portupgrade -a` для обновления всех устаревших портов, установленных в вашей системе. Добавьте флаг `-i` если вы желаете получать запрос на каждый обновляемый порт.
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
Для обновления конкретного приложения, а не всех установленных портов, запустите `portupgrade _pkgname_`. Включите флаг `-R` при необходимости обновить все порты, требуемые данным приложением.
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
Для использования при установке пакетов, а не портов, укажите флаг `-P`. С этим параметром portupgrade будет искать пакеты в локальных каталогах, указанных в переменной окружения `PKG_PATH`, а если не найдет их, то загрузит с удаленного сайта. Если пакеты не могут быть найдены локально или загружены удаленно, portupgrade использует порты. Чтобы запретить использование портов, укажите `-PP`.
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -1027,7 +1027,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
Утилита package:ports-mgmt/portmaster[] - это еще один инструмент для обновления установленных портов. Утилита portmaster опирается на возможности "базовой" системы и не зависит от других портов. Она использует информацию из [.filename]#/var/db/pkg/# для определения портов, подлежащих обновлению. Для установки утилиты выполните следующее:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -1042,7 +1042,7 @@ Portmaster делит порты на четыре категории:
Чтобы проверить наличие обновлений для всех установленных портов, задайте утилите флаг `-L`:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -1069,7 +1069,7 @@ Portmaster делит порты на четыре категории:
Все установленные порты могут быть обновлены при помощи одной команды:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -1081,14 +1081,14 @@ Portmaster делит порты на четыре категории:
Если во время процесса обновления возникнут ошибки, задействуйте опцию `-f` для обновления/перестройки всех портов:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Также, portmaster может быть задействован для установки новых портов в систему, автоматически обновляя другие зависимые порты перед построением и установкой нового порта:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -1100,21 +1100,21 @@ Portmaster делит порты на четыре категории:
Работа с Коллекцией Портов со временем приводит к увеличению занимаемого дискового пространства. После построения и установки программы из порта удалите временный каталог [.filename]#work# при помощи команды `make clean`. Для очистки всей Коллекции Портов наберите:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
По прошествии некоторого времени у вас соберется множество дистрибутивных файлов в каталоге [.filename]#distfiles#. Следующая команда удалит все дистрибутивные файлы, которые более не связаны ни с какими портами:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Для удаления всех дистрибутивных файлов, не связанных ни с одним установленным в вашу систему портом, наберите:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -1135,7 +1135,7 @@ Portmaster делит порты на четыре категории:
* Воспользуйтесь командой man:pkg_info[1] для определения того, куда и какие файлы были установлены. К примеру, если вы только что установили FooPackage версии 1.0.0, то по команде
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -1144,7 +1144,7 @@ Portmaster делит порты на четыре категории:
+
Чтобы определить, какая версия приложения была установлена, выполните:
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -1153,7 +1153,7 @@ Portmaster делит порты на четыре категории:
* Как только вы определите, куда были установлены справочные страницы приложения, просмотрите их при помощи команды man:man[1]. Просмотрите примеры конфигурационных файлов, а также любую дополнительную документацию, если она была установлена.
* Если у приложения имеется веб-сайт, поищите там дополнительную документацию, ответы на часто задаваемые вопросы и так далее. Если вы не уверены, каков адрес веб-сайта, он может быть указан в выводе команды
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/ru/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/ru/books/handbook/ppp-and-slip/_index.adoc
index c9a96b01b0..514273ab34 100644
--- a/documentation/content/ru/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/ru/books/handbook/ppp-and-slip/_index.adoc
@@ -108,7 +108,7 @@ toc::[]
Простейший способ убедиться, что устройство [.filename]#tun0# настроено правильно, это пересоздать устройство. Для пересоздания устройства выполните следующее:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV tun0
@@ -116,7 +116,7 @@ toc::[]
Если вам необходимы 16 туннельных устройств, потребуется их создать. Это можно сделать, выполнив следующие команды:
-[source,bash]
+[source,shell]
....
# cd /dev
# sh MAKEDEV tun15
@@ -212,7 +212,7 @@ set log phase tun
+
Строка для входа записана в том же chat-подобном синтаксисе, что и строка для дозвона. В этом примере строка работает для сервиса, сессия входа которого выглядит примерно так:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -325,7 +325,7 @@ exec /usr/sbin/ppp -direct $IDENT
Этот скрипт должен быть исполняемым. Теперь создайте на этот скрипт символическую ссылку с именем [.filename]#ppp-dialup# с помощью следующей команды:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -339,7 +339,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Создайте каталог [.filename]#/home/ppp#, который доступен для чтения и содержит следующие файлы нулевой длины:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -353,7 +353,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
Например, если у вас три пользователя удаленного доступа, `fred`, `sam` и `mary`, которые подключаются к вашей сети класса C, выполните следующее:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -622,7 +622,7 @@ sendmail_flags="-bd"
Обратная сторона этого решения в том, что необходим запуск очереди `sendmail` после поднятия соединения ppp:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -641,14 +641,14 @@ sendmail_flags="-bd"
Все, что осталось, это перегрузить компьютер. После перезагрузки вы можете либо выполнить:
-[source,bash]
+[source,shell]
....
# ppp
....
и затем набрать `dial provider` для запуска сессии PPP, либо, если вы хотите, чтобы программа `ppp` начинала соединение автоматически при появлении исходящего трафика (и файл [.filename]#start_if.tun0# не создан), выполните:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -729,7 +729,7 @@ defaultroute # put this if you want that PPP server will be your
. Выйдите из kermit (без обрыва соединения).
. Введите следующее:
+
-[source,bash]
+[source,shell]
....
# /usr/src/usr.sbin/pppd.new/pppd /dev/tty01 19200
....
@@ -874,7 +874,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDT<phone.number>
Как только эти файлы будут созданы и отредактированы, необходимо только запустить `pppd`, вот так:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1108,14 +1108,14 @@ exit 1
Если вы пересобирали ядро, проверьте устройство [.filename]#sio#. Если вы не перенастраивали ядро, нет причин для беспокойства. Просто проверьте вывод `dmesg` для модемного устройства следующей командой:
-[source,bash]
+[source,shell]
....
# dmesg | grep sio
....
Вы должны получить информацию о устройствах [.filename]#sio#. Это COM порты, которые нам необходимы. Если ваш модем работает как стандартный последовательный порт, вы увидите его на [.filename]#sio1#, или [.filename]#COM2#. Если это так, вам не требуется пересобирать ядро, необходимо лишь создать последовательное устройство. Вы можете сделать это, зайдя в [.filename]#/dev# и запустив скрипт [.filename]#MAKEDEV#. Создайте последовательные устройства:
-[source,bash]
+[source,shell]
....
# sh MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3
....
@@ -1126,35 +1126,35 @@ exit 1
Подключение к интернет с контролированием `ppp` вручную это быстрый, легкий и действенный способ отладки соединения или получения информации о обслуживании провайдером клиентского соединения `ppp`. Запустите PPP из командной строки. В примерах в качестве имени хоста мы будем использовать _example_. Запустите `ppp`, введя команду `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
Теперь программа `ppp` запущена.
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuaa1
....
Мы указали модемное устройство, в данном случае [.filename]#cuaa1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
Мы установили скорость подключения к модему, в данном случае 115,200 кбит/с.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
Сообщает `ppp` настроить разрешение имен, добавив строки в [.filename]#/etc/resolv.conf#. Если `ppp` не может определить имя хоста, его можно настроить позже вручную.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -1167,7 +1167,7 @@ deflink: Entering terminal mode on /dev/cuaa1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1176,56 +1176,56 @@ atdt123456789
Использование команды `at` для инициализации модема, а затем `atdt` и номера провайдера для начала дозвона.
-[source,bash]
+[source,shell]
....
CONNECT
....
Подтверждение соединения, если есть проблемы с соединением, не вызванные проблемами в оборудовании, здесь мы попытаемся решить их.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
Здесь вам предлагается ввести имя пользователя в приглашение, выводимое сервером провайдера.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
Здесь предлагается ввести пароль, предоставленный провайдером. Как и при входе в FreeBSD, пароль не отображается.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
В зависимости от вашего провайдера, это приглашение может не появиться. Здесь задается вопрос, хотите ли вы использовать оболочку на компьютере провайдера или запустить `ppp`. В этом примере мы выбрали `ppp`, поскольку хотим соединиться с интернет.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Обратите внимание, что в этом примере первая буква `p` появилась в верхнем регистре. Это означает, что мы успешно подключились к провайдеру.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
Мы успешно аутентифицировались у провайдера и ожидаем присвоения IP адреса.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
Мы завершили согласование IP адресов, соединение успешно установлено.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -1244,14 +1244,14 @@ PPP может не вернуться в командный режим, что
Если вы не получаете приглашения на вход, скорее всего вам требуется использование аутентификации PAP или CHAP вместо UNIX(R) стиля как в примерах выше. Для использования PAP или CHAP просто добавьте следующие параметры PPP перед переходом в терминальный режим:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Необходимо заменить _myusername_ на имя пользователя, выданное провайдером.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -1311,7 +1311,7 @@ name_of_service_provider:
Под пользователем `root` вы можете запустить:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1462,14 +1462,14 @@ adsl:
Инициализация соединения возможно простым выполнением следующей команды под `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
Вы можете просмотреть статус соединения с помощью следующей команды:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1505,7 +1505,7 @@ adsl:
Поскольку вам необходимо поместить пароль в незашифрованном виде в файл [.filename]#ppp.conf#, убедитесь что никто другой не сможет прочесть содержимое этого файла. Следующая последовательность команд сделает этот файл доступным для чтения только пользователю `root`. Обратитесь к страницам справочника man:chmod[1] и man:chown[8] за дальнейшей информацией.
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1515,7 +1515,7 @@ adsl:
Следующая команда откроет туннель для PPP сессии к вашему DSL маршрутизатору. Модемы Ethernet DSL поставляются с настроенным IP адресом локальной сети, к которому вы подключаетесь. У Alcatel SpeedTouch(TM) Home этот адрес `10.0.0.138`. В документации на ваш маршрутизатор должно быть указано, какой адрес используется. Для открытия туннеля и начала PPP сессии выполните:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -1528,7 +1528,7 @@ adsl:
Устройство виртуального туннеля [.filename]#tun# будет создано для взаимодействия между процессами pptp и ppp. Как только вы вернетесь в приглашение, или процесс pptp выполнит соединение, вы можете проверить туннель примерно такой командой:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1676,7 +1676,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
+
. Выйдите из kermit (вы можете приостановить его, нажав kbd:[Ctrl+z]) и введите под `root`:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1688,7 +1688,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
Сделайте следующее:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1707,7 +1707,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
* Используется `s10` вместо `sl0` (с некоторыми шрифтами сложно увидеть разницу).
* Попробуйте использовать `ifconfig sl0` для просмотра статуса интерфейса. Например, вы можете получить такую информацию:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1716,7 +1716,7 @@ sl0: flags=10<POINTOPOINT>
* Если вы получите сообщение `no route to host` от команды ping, возможно это проблема с таблицей маршрутизации. Используйте команду `netstat -r` для отображения существующих маршрутов:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1785,7 +1785,7 @@ Shelmerg dc-slip sl-helmer 0xfffffc00 autocomp
Пример вывода `netstat -i`:
-[source,bash]
+[source,shell]
....
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ed0 1500 <Link>0.0.c0.2c.5f.4a 291311 0 174209 0 133
@@ -1894,7 +1894,7 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp
При использовании примера выше убедитесь, что заменили Ethernet MAC адрес (`00:11:22:33:44:55`) на MAC адрес Ethernet карты вашей системы, или ваш "ARP прокси" точно не будет работать! Вы можете определить Ethernet MAC адрес SLIP сервера, просмотрев вывод команды `netstat -i` выше; информация об адресе находится второй строке:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/ru/books/handbook/preface/_index.adoc b/documentation/content/ru/books/handbook/preface/_index.adoc
index ab9a901262..a85343fe94 100644
--- a/documentation/content/ru/books/handbook/preface/_index.adoc
+++ b/documentation/content/ru/books/handbook/preface/_index.adoc
@@ -205,21 +205,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
Примеры, которые начинаются с [.filename]#E:\># обозначают команды MS-DOS(R). Если не указано обратного, эти команды могут вводиться из окна "Сеанс MS-DOS(R)" в современных системах Microsoft(R) Windows(R).
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
Примеры, которые начинаются с # обозначают команды, которые должны быть запущены с правами суперпользователя в FreeBSD. Вы можете войти в систему как пользователь `root` для того, чтобы ввести эти команды или войти в систему обычным пользователем и использовать man:su[1] для того, чтобы получить привилегии суперпользователя.
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
Примеры, начинающиеся с %, указывают, что команда должна быть исполнена с правами обычного пользователя. Если не указано обратного, используется синтаксис C-shell для установки переменных окружения и других команд.
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/ru/books/handbook/printing/_index.adoc b/documentation/content/ru/books/handbook/printing/_index.adoc
index 0f703f2c82..05ebe2ceda 100644
--- a/documentation/content/ru/books/handbook/printing/_index.adoc
+++ b/documentation/content/ru/books/handbook/printing/_index.adoc
@@ -184,14 +184,14 @@ _Нуль-модемный_ кабель соединяет часть штыр
Чтобы узнать, поддерживает ли используемое в настоящий момент ядро последовательный интерфейс, наберите:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
Где _N_ - номер последовательного порта, начиная с нуля. Если вы получаете результат, подобный следующему:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -201,14 +201,14 @@ sio2: type 16550A
Чтобы узнать, поддерживает ли ядро параллельный интерфейс, наберите:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
Где _N_ номер параллельного порта, начиная с нуля. Если вы получаете результат, подобный следующему:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -249,7 +249,7 @@ hint.ppc.0.irq="N"
+
в файле [.filename]#/boot/device.hints#, заменив _N_ соответствующим номером IRQ. Файл конфигурации ядра также должен содержать драйвер man:ppc[4]:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -273,7 +273,7 @@ _Для настройки режима взаимодействия с помо
. Введите команду:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -281,7 +281,7 @@ _Для настройки режима взаимодействия с помо
для установки режима взаимодействия на основе прерываний для `lpt__N__`.
. Введите команду:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -330,7 +330,7 @@ _Для тестирования принтера на параллельном
** Если принтер может печатать обычный текст, используйте утилиту man:lptest[1]. Введите команду:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -338,7 +338,7 @@ _Для тестирования принтера на параллельном
Где _N_ - номер параллельного порта, начиная с нуля.
** Если принтер понимает PostScript(R) или другой язык принтера, пошлите на принтер небольшую программу. Введите команду:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -347,7 +347,7 @@ _Для тестирования принтера на параллельном
+
Можно также поместить программу в файл и выполнить команду:
+
-[source,bash]
+[source,shell]
....
# cat file > /dev/lptN
....
@@ -386,7 +386,7 @@ printer:dv=/dev/ttyd2:br#19200:pa=none
+
. Подключитесь к принтеру с помощью man:tip[1]. Введите команду:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -396,7 +396,7 @@ printer:dv=/dev/ttyd2:br#19200:pa=none
+
** Если принтер может печатать обычный текст, используйте утилиту man:lptest[1]. Введите команду:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -405,7 +405,7 @@ printer:dv=/dev/ttyd2:br#19200:pa=none
+
Можно также поместить программу в файл и ввести команду:
+
-[source,bash]
+[source,shell]
....
% >file
....
@@ -498,14 +498,14 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Принято также задавать для каталога имя, совпадающее с именем принтера, как показано ниже:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/имя-принтера
....
Однако при наличии большого количества принтеров в сети может иметь смысл поместить все каталоги спулинга в один каталог, который просто резервируется для печати с помощью LPD. Мы сделаем это для наших двух принтеров, `rattan` и `bamboo`:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -516,7 +516,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
====
Если вас интересует конфиденциальность заданий, отправляемых пользователями на печать, можно защитить каталог спулинга, чтобы он не был общедоступным. Каталоги спулинга должны принадлежать и быть доступны на чтение, запись и просмотр содержимого пользователю daemon и группе daemon, и никому больше. Мы установим это для каталогов спулинга принтеров из нашего примера:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -622,7 +622,7 @@ exit 2
Сделайте этот файл выполняемым:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -660,7 +660,7 @@ lpd_enable="YES"
в файл [.filename]#/etc/rc.conf#, а затем либо перезапустите машину, либо просто выполните команду man:lpd[8].
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -676,7 +676,7 @@ _Для тестирования простой настройки LPD:_
Введите команду:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinter-name
....
@@ -901,7 +901,7 @@ exit 2
Фильтры преобразования упрощают печать различного рода файлов. В качестве примера, предположим, что активно используется издательская система TeX и имеется PostScript(R)-принтер. При каждой генерации DVI-файла из TeX, мы не можем печатать его непосредственно, пока не преобразуем в PostScript(R). Для этого используется такая последовательность команд:
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -909,7 +909,7 @@ exit 2
Установив фильтр преобразования для файлов DVI, мы можем не конвертировать файл каждый раз вручную, возложив эту задачу на систему LPD. Теперь при каждом получении DVI-файла нас от его распечатки отделяет только один шаг:
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1545,7 +1545,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Затем достаточно только создать каталоги спулинга на `orchid`:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1554,7 +1554,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Теперь пользователи хоста `orchid` могут печатать на принтеры `rattan` и `bamboo`. Если, например, пользователь на `orchid` выполнит команду
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1621,7 +1621,7 @@ exec /usr/libexec/lpr/lpf "$@" | /usr/local/libexec/netprint scrivener 5100
Если вы считаете, что многочисленные копии только изнашивают ваши принтеры, можете отключить опцию `-#` команды man:lpr[1], добавив характеристику `sc` в файл [.filename]##/etc/printcap##. Когда пользователи пошлют задания с опцией `-##`, они увидят:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1669,7 +1669,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
С помощью характеристики `sc` мы предотвращаем использование команды `lpr -#`, но это не мешает пользователям просто выполнить команду man:lpr[1] несколько раз или просто послать один и тот же файл несколько раз в одном задании следующим образом:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1794,7 +1794,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
Каталог спулинга задается характеристикой `sd`. Укажем, что в файловой системе должно быть три мегабайта (что составляет 6144 блоков диска) свободного места, чтобы система LPD принимала удаленные задания:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1841,7 +1841,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
Когда вы будете готовы выставить пользователям счет за распечатки, запустите программу man:pac[8]. Просто перейдите в каталог спулинга принтера, учетную информацию которого вы хотите обработать, и введите команду `pac`. Вы получите итоговые суммы в долларах, как показано ниже:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1880,7 +1880,7 @@ _имя..._::
В стандартном отчете, который создает команда man:pac[8], выдается количество страниц, напечатанное каждым из пользователей с различных хостов. Если для вас хосты не имеют значения (поскольку пользователи могут работать на любом хосте), выполните команду `pac -m` для получения следующих итогов:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1894,7 +1894,7 @@ total 337.00 154 $ 6.74
Для получения сумм в долларах программа man:pac[8] использует значение характеристики `pc` в файле [.filename]#/etc/printcap# (по умолчанию - 200, или 2 цента за страницу). Укажите в качестве значения этой характеристики, в сотых долях цента, стоимость страницы или фута, исходя из которой вы хотите брать деньги за распечатки. Это значение можно переопределить при вызове команды man:pac[8] с помощью опции `-p`. Но при использовании опции `-p` стоимость надо указывать в долларах, а не в сотых долях цента. Например, команда
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1948,28 +1948,28 @@ man:lprm[1]::
Для печати файлов, выполните команду:
-[source,bash]
+[source,shell]
....
% lpr имя-файла ...
....
Эта команда печатает каждый из перечисленных файлов на стандартный принтер. Если файлы не указаны, команда man:lpr[1] читает данные для печати со стандартного входного потока. Например, следующая команда печатает некоторые важные системные файлы:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
Для выбора конкретного принтера, введите:
-[source,bash]
+[source,shell]
....
% lpr -P имя-принтера имя-файла ...
....
Следующая команда печатает подробный листинг текущего каталога на принтере `rattan`:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -1985,14 +1985,14 @@ man:lprm[1]::
Для получения очереди стандартного принтера, введите команду man:lpq[1]. Чтобы указать конкретный принтер, используйте опцию `-P`. Например, команда
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
показывает очередь для принтера по имени `bamboo`. Вот пример результатов выполнения команды `lpq`:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2009,7 +2009,7 @@ active kelly 9 /etc/host.conf, /etc/hosts.equiv 88 bytes
Команда man:lpq[1] также поддерживает опцию `-l` для генерации подробного длинного листинга. Вот пример результатов выполнения команды `lpq -l`:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2030,14 +2030,14 @@ mary: 3rd [job 011rose]
Для удаления задания со стандартного принтера сначала используйте команду man:lpq[1] для поиска номера задания. Затем введите команду:
-[source,bash]
+[source,shell]
....
% lprm номер-задания
....
Для удаления задания с указанного принтера, задайте опцию `-P` option. Следующая команда удаляет задание номер 10 из очереди заданий принтера `bamboo`:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2055,7 +2055,7 @@ lprm::
Добавьте опцию `-P` для любого из перечисленных выше сокращений, чтобы работать с любым необходимым принтером вместо стандартного. Например, следующая команда удаляет все задания текущего пользователя из очереди принтера по имени `rattan`:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2064,7 +2064,7 @@ lprm::
====
Если вы работаете в сетевой среде, команда man:lprm[1] позволит вам удалять задания только с хоста, с которого они были посланы, даже если тот же принтер доступен и с других хостов. Следующая последовательность команд демонстрирует это:
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2094,7 +2094,7 @@ cfA013rose dequeued
Например, следующая команда печатает файл DVI (из системы верстки TeX) по имени [.filename]#fish-report.dvi# на принтере `bamboo`:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d fish-report.dvi
....
@@ -2146,7 +2146,7 @@ cfA013rose dequeued
Вот пример: следующая команда печатает красиво сформатированную версию справочного руководства по команде man:ls[1] на стандартный принтер:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2163,7 +2163,7 @@ cfA013rose dequeued
+
В следующем примере на стандартный принтер печатается три копии файла [.filename]#parser.c#, а затем - три копии [.filename]#parser.h#:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
diff --git a/documentation/content/ru/books/handbook/security/_index.adoc b/documentation/content/ru/books/handbook/security/_index.adoc
index 8ffa5f89f0..fdb9bfb954 100644
--- a/documentation/content/ru/books/handbook/security/_index.adoc
+++ b/documentation/content/ru/books/handbook/security/_index.adoc
@@ -269,7 +269,7 @@ FreeBSD использует для одноразовых паролей OPIE (
Для первоначальной настройки OPIE используется команда `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -290,7 +290,7 @@ MOS MALL GOAT ARM AVID COED
Для инициализации или изменения защищенного пароля через незащищенное соединение, вам потребуется существующее защищенное соединение куда-то, где вы сможете запустить `opiekey`; это может быть shell на компьютере, которому вы доверяете. Вам потребуется также установить значение счетчика цикла (100 возможно подойдет), и задать ключ или использовать сгенерированный. Через незащищенное соединение (к компьютеру, на котором производится настройка), используйте команду `opiepasswd`:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -309,7 +309,7 @@ LINE PAP MILK NELL BUOY TROY
Чтобы принять ключ по умолчанию нажмите kbd:[Enter]. Затем, перед вводом пароля доступа введите те же параметры в вашем защищенном соединении или средстве доступа OPIE:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -324,7 +324,7 @@ GAME GAG WELT OUT DOWN CHAT
Как только вы настроите OPIE, во время входа появится приглашение вроде этого:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -344,7 +344,7 @@ Password:
В защищенной системе:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -359,7 +359,7 @@ GAME GAG WELT OUT DOWN CHAT
Иногда вы отправляетесь туда, где нет доступа к защищенному компьютеру или защищенному соединению. В этом случае, можно использовать команду `opiekey` для создания нескольких одноразовых паролей, которые вы сможете распечатать и забрать с собой. Например:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -506,7 +506,7 @@ Kerberos это опциональный компонент FreeBSD. Прост
Это необходимо сделать только на сервере Kerberos. Во-первых, убедитесь что не осталось старой базы данных Kerberos. Войдите в каталог [.filename]#/etc/kerberosIV# и убедитесь, что в нем находятся только эти файлы:
-[source,bash]
+[source,shell]
....
# cd /etc/kerberosIV
# ls
@@ -517,7 +517,7 @@ README krb.conf krb.realms
Затем отредактируйте файлы [.filename]#krb.conf# и [.filename]#krb.realms#, введя ваши данные. В этом примере уникальный идентификатор `EXAMPLE.COM`, сервер `grunt.example.com`. Отредактируем или создадим файл [.filename]#krb.conf#:
-[source,bash]
+[source,shell]
....
# cat krb.conf
EXAMPLE.COM
@@ -538,7 +538,7 @@ ARC.NASA.GOV trident.arc.nasa.gov
Мы добавили `grunt.example.com` к идентификатору `EXAMPLE.COM` и кроме того сопоставили всем хостам в домене `.example.com` идентификатор `EXAMPLE.COM`. Файл [.filename]#krb.realms# будет выглядеть так:
-[source,bash]
+[source,shell]
....
# cat krb.realms
grunt.example.com EXAMPLE.COM
@@ -554,7 +554,7 @@ grunt.example.com EXAMPLE.COM
Теперь мы готовы к созданию базы данных. Потребуется всего лишь запустить сервер Kerberos (или центр распространения ключей). Используйте для этого `kdb_init`:
-[source,bash]
+[source,shell]
....
# kdb_init
Realm name [default ATHENA.MIT.EDU ]: EXAMPLE.COM
@@ -566,7 +566,7 @@ It is important that you NOT FORGET this password.
Теперь мы должны сохранить ключ, чтобы сервера на локальных компьютерах могли его взять. Используйте для этого команду `kstash`:
-[source,bash]
+[source,shell]
....
# kstash
@@ -587,7 +587,7 @@ Master key entered. BEWARE!
Теперь добавим эти записи:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -643,7 +643,7 @@ Principal name: <---- null entry here will cause an exit
Теперь необходимо создать все записи сервисов, которые были определены для каждого компьютера. Используем для этого команду `ext_srvtab`. Будет создан файл, который должен быть скопирован или перемещен _безопасным способом_ в каталог [.filename]#/etc/kerberosIV# каждого Kerberos клиента. Этот файл должен присутствовать на каждом сервере и клиенте, он необходим для работы Kerberos.
-[source,bash]
+[source,shell]
....
# ext_srvtab grunt
Enter Kerberos master key:
@@ -656,14 +656,14 @@ Generating 'grunt-new-srvtab'....
Эта команда создаст временный файл, который должен быть переименован в [.filename]#srvtab#, чтобы серверы смогли обратиться к нему. Используйте команду man:mv[1] для перемещения его в исходной системе:
-[source,bash]
+[source,shell]
....
# mv grunt-new-srvtab srvtab
....
Если файл предназначен для клиентской системы, и сеть не безопасна, скопируйте [.filename]#client-new-srvtab# на съемный носитель и перенесите файл с его помощью. Убедитесь, что переименовали его в [.filename]#srvtab# в каталоге [.filename]#/etc/kerberosIV# клиента, и что режим доступа к нему 600:
-[source,bash]
+[source,shell]
....
# mv grumble-new-srvtab srvtab
# chmod 600 srvtab
@@ -673,7 +673,7 @@ Generating 'grunt-new-srvtab'....
Теперь необходимо добавить в базу данных пользователей. Во-первых, создадим запись для пользователя `jane`. Используйте команду `kdb_edit`:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -708,7 +708,7 @@ Principal name: <---- null entry here will cause an exit
Во-первых, запустите даемоны Kerberos. При правильном редактировании файла [.filename]#/etc/rc.conf# они запустятся автоматически при перезагрузке. Это необходимо только на сервере Kerberos. Клиенты Kerberos получат все необходимые данные из каталога [.filename]#/etc/kerberosIV#.
-[source,bash]
+[source,shell]
....
# kerberos &
Kerberos server starting
@@ -732,7 +732,7 @@ Master key entered. BEWARE!
Теперь для получения доступа через созданного пользователя `jane` используйте `kinit`:
-[source,bash]
+[source,shell]
....
% kinit jane
MIT Project Athena (grunt.example.com)
@@ -742,7 +742,7 @@ Password:
Попробуйте просмотреть имеющиеся данные с помощью `klist`:
-[source,bash]
+[source,shell]
....
% klist
Ticket file: /tmp/tkt245
@@ -754,7 +754,7 @@ Apr 30 11:23:22 Apr 30 19:23:22 krbtgt.EXAMPLE.COM@EXAMPLE.COM
Теперь попробуйте изменить пароль с помощью man:passwd[1], чтобы убедиться, что даемон kpasswd может получить информацию из базы данных Kerberos:
-[source,bash]
+[source,shell]
....
% passwd
realm EXAMPLE.COM
@@ -769,7 +769,7 @@ Password changed.
Kerberos позволяет назначить _каждому_ пользователю, который нуждается в привилегиях `root`, свой _собственный_ пароль man:su[1]. Необходимо добавить учётную запись, которой разрешено получать `root` доступ через man:su[1]. Это делается путем связывания учётной записи `root` с пользовательской учётной записью. Создадим в базе данных Kerberos запись `jane.root` с помощью `kdb_edit`:
-[source,bash]
+[source,shell]
....
# kdb_edit
Opening database...
@@ -803,7 +803,7 @@ Principal name: <---- null entry here will cause an exit
Теперь проверим работоспособность этой записи:
-[source,bash]
+[source,shell]
....
# kinit jane.root
MIT Project Athena (grunt.example.com)
@@ -813,7 +813,7 @@ Password:
Необходимо добавить пользователя к `root` файлу [.filename]#.klogin#:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -821,7 +821,7 @@ jane.root@EXAMPLE.COM
Теперь попробуйте выполнить man:su[1]:
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -829,7 +829,7 @@ Password:
и посмотрите на имеющиеся данные:
-[source,bash]
+[source,shell]
....
# klist
Ticket file: /tmp/tkt_root_245
@@ -843,7 +843,7 @@ May 2 20:43:12 May 3 04:43:12 krbtgt.EXAMPLE.COM@EXAMPLE.COM
В примере выше мы создали запись (principal) `jane` с доступом к `root` (instance). Она основана на пользователе с таким же именем, как и идентификатор, что принято Kerberos по умолчанию; `<principal>.<instance>` в форме `<username>.``root` позволяет использовать man:su[1] для доступа к `root`, если соответствующие записи находятся в файле [.filename]#.klogin# домашнего каталога `root`:
-[source,bash]
+[source,shell]
....
# cat /root/.klogin
jane.root@EXAMPLE.COM
@@ -851,7 +851,7 @@ jane.root@EXAMPLE.COM
Подобно этому, если в файле [.filename]#.klogin# из домашнего каталога пользователя есть строки в форме:
-[source,bash]
+[source,shell]
....
% cat ~/.klogin
jane@EXAMPLE.COM
@@ -862,7 +862,7 @@ jack@EXAMPLE.COM
Например, `jane` может входить в другую систему используя Kerberos:
-[source,bash]
+[source,shell]
....
% kinit
MIT Project Athena (grunt.example.com)
@@ -877,7 +877,7 @@ FreeBSD BUILT-19950429 (GR386) #0: Sat Apr 29 17:50:09 SAT 1995
Или `jack` входит в учётную запись `jane`'s на этом же компьютере (файл [.filename]#.klogin#`jane` настроен как показано выше, и в Kerberos настроена учётная запись _jack_):
-[source,bash]
+[source,shell]
....
% kinit
% rlogin grunt -l jane
@@ -989,7 +989,7 @@ _kerberos IN TXT EXAMPLE.ORG
Пример создания базы данных показан ниже:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -1008,7 +1008,7 @@ Verifying password - Password: xxxxxxxx
Теперь пришло время запустить сервисы KDC. Выполните команды `/etc/rc.d/kerberos start` и `/etc/rc.d/kadmind start` для запуска сервисов. Заметьте, что ни один из поддерживающих Kerberos даемонов на этот момент запущен не будет, но у вас должна быть возможность убедиться в том, что KDC функционирует путем получения списка доступа для пользователя, которого вы только что самостоятельно создали из командной строки самого KDC:
-[source,bash]
+[source,shell]
....
% k5init tillman
tillman@EXAMPLE.ORG's Password:
@@ -1033,7 +1033,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
После добавления файла [.filename]#/etc/krb5.conf#, вы можете использовать `kadmin` с сервера Kerberos. Команда `add --random-key` позволит вам добавить запись для сервера, а команда `ext` позволит перенести эту запись в собственный keytab файл сервера. Например:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -1048,7 +1048,7 @@ kadmin> exit
Если на KDC не запущен `kadmind` (возможно по соображениям безопасности) и вы не можете получить доступ к `kadmin` удаленно, возможно добавление записи хоста (`host/myserver.EXAMPLE.ORG`) непосредственно на KDC с последующим извлечением ее во временный файл (и перезаписью [.filename]#/etc/krb5.keytab# на KDC) примерно так:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -1088,7 +1088,7 @@ telnet stream tcp nowait root /usr/libexec/telnetd telnetd -a user
Файлы [.filename]#.k5login# и [.filename]#.k5users#, помещенные в домашний каталог пользователя, могут быть использованы подобно действенной комбинации [.filename]#.hosts# и [.filename]#.rhosts# для решения этой проблемы. Например, файл [.filename]#.k5login# со следующим содержанием:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -1185,7 +1185,7 @@ OpenSSL может использоваться для шифрования со
Для генерирования сертификатов доступна следующая команда:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -1220,21 +1220,21 @@ An optional company name []:Another Name
Когда подпись CA не требуется, может быть создан самоподписанный сертификат. Сначала создайте ключ RSA:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
Теперь создайте ключ CA:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
Используйте этот ключ при создании сертификата:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -1268,7 +1268,7 @@ define(`confTLS_SRV_OPTIONS', `V')dnl
Для проведения простого теста подключитесь к почтовому серверу программой man:telnet[1]:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -1309,7 +1309,7 @@ _IPsec_ это протокол, расположенный поверх сло
====
FreeBSD содержит "аппаратно поддерживаемый" стек IPsec, известный как "Fast IPsec", заимствованный из OpenBSD. Для оптимизации производительности IPsec он задействует криптографическое оборудование (когда оно доступно) через подсистему man:crypto[4]. Это новая подсистема и она не поддерживает всех возможностей, доступных в KAME версии IPsec. Для включения IPsec с аппаратной поддержкой необходимо добавить в файл настройки ядра следующий параметр:
-[source,bash]
+[source,shell]
....
options FAST_IPSEC # new IPsec (cannot define w/ IPSEC)
....
@@ -1321,7 +1321,7 @@ options FAST_IPSEC # new IPsec (cannot define w/ IPSEC)
====
Для того, чтобы применять к туннелям man:gif[4] межсетевые экраны, вам потребуется включить в ядро опцию `IPSEC_FILTERGIF`:
-[source,bash]
+[source,shell]
....
options IPSEC_FILTERGIF #filter ipsec packets from a tunnel
....
@@ -1339,7 +1339,7 @@ IPsec может быть использован или для непосред
Для включения поддержки IPsec в ядре, добавьте следующие параметры к файлу настройки ядра:
-[source,bash]
+[source,shell]
....
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
@@ -1347,7 +1347,7 @@ options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
Если желательна поддержка отладки IPsec, должна быть также добавлена следующая строка:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1442,7 +1442,7 @@ ifconfig gif0
для просмотра настройки. Например, на шлюзе сети #1 вы увидите:
-[source,bash]
+[source,shell]
....
# ifconfig gif0
gif0: flags=8011<UP,POINTTOPOINT,MULTICAST> mtu 1280
@@ -1454,7 +1454,7 @@ physical address inet A.B.C.D --> W.X.Y.Z
Это также добавляет запись к таблице маршрутизации на обеих машинах, вы можете проверить запись командой `netstat -rn`. Вот вывод этой команды на шлюзе сети #1.
-[source,bash]
+[source,shell]
....
# netstat -rn
Routing tables
@@ -1669,7 +1669,7 @@ spdadd A.B.C.D/32 W.X.Y.Z/32 ipencap -P out ipsec esp/tunnel/A.B.C.D-W.X.Y.Z/req
Поместите эти команды в файл (например, [.filename]#/etc/ipsec.conf#) и запустите
-[source,bash]
+[source,shell]
....
# setkey -f /etc/ipsec.conf
....
@@ -1809,7 +1809,7 @@ OpenSSH поддерживается проектом OpenBSD, он основа
В FreeBSD даемон sshd должен быть разрешен в процессе инсталляции. За запуск ответственна следующая строка в файле [.filename]#rc.conf#:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1825,7 +1825,7 @@ sshd_enable="YES"
Утилита man:ssh[1] работает подобно man:rlogin[1].
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1842,7 +1842,7 @@ user@example.com's password: *******
Команда man:scp[1] работает подобно man:rcp[1]; она копирует файл с удаленного компьютера, но делает это безопасным способом.
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1867,7 +1867,7 @@ COPYRIGHT 100% |*****************************| 4735 00:00
Вместо использования паролей, с помощью man:ssh-keygen[1] можно создать ключи DSA или RSA, которыми пользователи могут аутентифицироваться:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1902,7 +1902,7 @@ man:ssh-keygen[1] создаст пару публичного и приватн
Для использования man:ssh-agent[1] совместно с шеллом, man:ssh-agent[1] должен быть запущен с именем этого шелла в качестве аргумента. После этого в его память при помощи утилиты man:ssh-add[1] могут быть добавлены необходимые ключи; при этом будут запрошены соответствующие кодовые фразы. Добавленные ключи могут затем использоваться для man:ssh[1] на машины, на которых установлены соответствующие публичные ключи:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1927,7 +1927,7 @@ OpenSSH поддерживает возможность создания тун
Следующая команда указывает man:ssh[1] создать туннель для telnet:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1960,7 +1960,7 @@ OpenSSH поддерживает возможность создания тун
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1979,7 +1979,7 @@ Escape character is '^]'.
На работе находится SSH сервер, принимающий соединения снаружи. В этой же офисной сети находится почтовый сервер, поддерживающий протокол POP3. Сеть или сетевое соединение между вашим домом и офисом могут быть или не быть полностью доверяемыми. По этой причине вам потребуется проверять почту через защищенное соединение. Решение состоит в создании SSH соединения к офисному серверу SSH и туннелирование через него к почтовому серверу.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1995,7 +1995,7 @@ user@ssh-server.example.com's password: ******
Решение состоит в создании SSH соединения с компьютером вне брандмауэра и использование его для туннелирования сервера Ogg Vorbis.
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -2033,7 +2033,7 @@ AllowUsers root@192.168.1.32 admin
После внесения изменений в [.filename]#/etc/ssh/sshd_config# вы должны указать man:sshd[8] на повторную загрузку конфигурационных файлов, выполнив следующую команду:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -2094,7 +2094,7 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
ACL файловой системы можно просмотреть с помощью утилиты man:getfacl[1]. Например, для просмотра настроек ACL файла [.filename]#test#, может использоваться команда:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -2107,14 +2107,14 @@ ACL файловой системы можно просмотреть с пом
Для изменения ACL этого файла, вызовите утилиту man:setfacl[1]. Выполните:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
Параметр `-k` удалит все установленные на данный момент ACL из файла или файловой системы. Более предпочтительный метод это использование параметра `-b`, который оставит необходимые для работы ACL поля.
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -2132,7 +2132,7 @@ ACL файловой системы можно просмотреть с пом
Для того, чтобы приступить к использованию Portaudit, необходимо установить его из Коллекции Портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/portaudit && make install clean
....
@@ -2141,7 +2141,7 @@ ACL файловой системы можно просмотреть с пом
После установки администратор может обновить базу данных и посмотреть список известных уязвимостей в установленных пакетах при помощи команды
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -2153,7 +2153,7 @@ ACL файловой системы можно просмотреть с пом
Для аудита утилит сторонних разработчиков, установленных как часть Коллекции Портов, администратору достаточно запускать только следующую команду:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -2256,7 +2256,7 @@ VII. References<.>
Прежде чем использовать систему учёта ресурсов, её необходимо активировать. Для этого выполните следующие команды:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -2269,7 +2269,7 @@ VII. References<.>
Для просмотра информации о запущенных командах, необходимо воспользоваться утилитой man:lastcomm[1]. Команду `lastcomm` можно использовать, например, для выдачи списка директив, выданных пользователями определённого терминала man:ttys[5]:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
diff --git a/documentation/content/ru/books/handbook/serialcomms/_index.adoc b/documentation/content/ru/books/handbook/serialcomms/_index.adoc
index dbcbf0bcf1..6d411132e8 100644
--- a/documentation/content/ru/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/ru/books/handbook/serialcomms/_index.adoc
@@ -346,7 +346,7 @@ FreeBSD c настройками по умолчанию поддерживае
Для просмотра только тех сообщений, которые содержат слово `sio`, используйте команду:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -355,7 +355,7 @@ FreeBSD c настройками по умолчанию поддерживае
Например, в системе с четырьмя последовательными портами, появятся такие специфичные для последовательных портов сообщения:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -385,14 +385,14 @@ sio3: type 16550A
Устройство [.filename]#ttydN# (или [.filename]#cuadN#) это обычное устройство, которое потребуется открыть для приложений. Когда процесс открывает устройство применяются настройки ввода/вывода терминала по умолчанию. Вы можете посмотреть эти настройки с помощью команды
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyd1
....
Если вы измените настройки устройства, они будут действовать до его закрытия. После повторного открытия, оно вернется к настройкам по умолчанию. Для изменения настроек по умолчанию, вы можете открыть и изменить установки "начального состояния" устройства. Например, для включения по умолчанию режима `CLOCAL`, 8-битного соединения и контроля передачи `XON/XOFF` для [.filename]#ttyd5#, выполните:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.init clocal cs8 ixon ixoff
....
@@ -401,7 +401,7 @@ sio3: type 16550A
Для предотвращения изменения программами отдельных установок, настройте "состояние блокировки" устройства. Например, для установки значения скорости [.filename]#ttyd5# в 57600 bps, выполните:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyd5.lock 57600
....
@@ -507,7 +507,7 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
После выполнения необходимых изменений в файле [.filename]#/etc/ttys#, вам потребуется отправить сигнал SIGHUP (hangup) процессу `init`, чтобы заставить его перечитать его файл настройки. Например:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -534,14 +534,14 @@ ttyd5 "/usr/libexec/getty std.19200" vt100 on insecure
Убедитесь, что процесс `getty` запущен и обслуживает терминал. Например, для получения списка запущенных процессов `getty` с помощью `ps`, выполните:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
Вы должны увидеть строку для соответствующего терминала. Например, если `getty` запущена на втором последовательном порту `ttyd1` и использует запись `std.38400` из файла [.filename]#/etc/gettytab#, отобразится следующее:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyd1
....
@@ -625,7 +625,7 @@ FreeBSD поддерживает интерфейсы, основанные на
Как и с терминалами, `init` запускает процесс `getty` на каждом настроенном для входящих звонков последовательном порту. Например, если модем подключен к [.filename]#/dev/ttyd0#, команда `ps ax` может вывести следующее:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyd0
....
@@ -730,7 +730,7 @@ ttyd0 "/usr/libexec/getty xxx" dialup on
После внесения изменений в [.filename]#/etc/ttys#, вы можете отправить процессу `init` сигнал HUP перечитать файл. Используйте команду
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -843,7 +843,7 @@ AT&B2&W
Если индикатор DTR не загорелся, войдите на консоль системы FreeBSD и выполните команду `ps ax`, чтобы увидеть, пытается ли FreeBSD запустить процесс `getty` на соответствующем порту. Вы должны увидеть строки вроде этих среди показанных процессов:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyd1
@@ -851,7 +851,7 @@ AT&B2&W
Если вы видите что-то другое, вроде этого:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyd0
....
@@ -912,7 +912,7 @@ cuad0:dv=/dev/cuad0:br#19200:pa=none
Или используйте `cu` под `root` так:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -942,7 +942,7 @@ tip57600|Dial any phone number at 57600 bps:\
Затем вы можете сделать следующее:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -957,7 +957,7 @@ cu115200|Use cu to dial any number at 115200bps:\
и выполните:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1073,7 +1073,7 @@ FreeBSD может загружаться при использовании в
. Соедините кабелем последовательный порт COM1 и управляющий терминал.
. Для того, чтобы сообщения в процессе загрузки выводились в последовательную консоль, выполните от имени суперпользователя команду
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1165,7 +1165,7 @@ device sio0 at isa? port IO_COM1 flags 0x10 irq 4
+
Когда вы включите компьютер FreeBSD, загрузочный блок выведет содержимое [.filename]#/boot.config# на консоль. Например:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1202,7 +1202,7 @@ Keyboard: no
+
Нажмите на консоли любую клавишу кроме Enter для прерывания процесса загрузки. Загрузочный блок выдаст приглашение к дальнейшим действиям. Оно выглядит примерно так:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1361,7 +1361,7 @@ device sio1 at isa? port IO_COM2 flags 0x30 irq 3
Флаги для других последовательных устройств не устанавливайте.
. Соберите и установите загрузочный блок и загрузчик:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/ru/books/handbook/x11/_index.adoc b/documentation/content/ru/books/handbook/x11/_index.adoc
index 0288128e18..69b5ed898c 100644
--- a/documentation/content/ru/books/handbook/x11/_index.adoc
+++ b/documentation/content/ru/books/handbook/x11/_index.adoc
@@ -147,7 +147,7 @@ Microsoft(R) Windows(R) и Mac OS(R) от Apple имеют очень жёстк
Для сборки и установки Xorg из Коллекции портов, выполните:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -162,7 +162,7 @@ Microsoft(R) Windows(R) и Mac OS(R) от Apple имеют очень жёстк
Таким образом, для загрузки и установки пакета Xorg, просто наберите:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -195,7 +195,7 @@ Microsoft(R) Windows(R) и Mac OS(R) от Apple имеют очень жёстк
Начиная с версии 7.3, Xorg зачастую может работать без какого-либо файла настройки, для его запуска достаточно просто набрать:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -219,7 +219,7 @@ dbus_enable="YES"
Процесс настройки X11 является многошаговым. Первый шаг заключается в построении начального конфигурационного файла. Работая с правами суперпользователя, просто запустите:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -228,14 +228,14 @@ dbus_enable="YES"
Следующим шагом является тестирование существующей конфигурации для проверки того, что Xorg может работать с графическим оборудованием в настраиваемой системе. Для этого выполните:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
Начиная с Xorg 7.4 и выше, это тестирование покажет лишь черный экран, что делает диагностику не совсем полноценным. Старое поведение будет доступно при использовании опции `retro`
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -246,7 +246,7 @@ dbus_enable="YES"
====
Данная комбинация включена по-умолчанию до Xorg версии 7.3. Для включения этого в версии 7.4 и выше, вы должны ввести следующую команду в любом эмуляторе X терминала:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -302,7 +302,7 @@ Option "AutoAddDevices" "false"
Есть возможность проделать ту же конфигурацию из X терминала или скрипт следующей командой:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -360,7 +360,7 @@ EndSection
Если все в порядке, то конфигурационный файл нужно установить в общедоступное место, где его сможет найти man:Xorg[1]. Обычно это [.filename]#/etc/X11/xorg.conf# или [.filename]#/usr/local/etc/X11/xorg.conf#.
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -449,7 +449,7 @@ EndSection
Для установки вышеупомянутых коллекций шрифтов Type1 из коллекции портов выполните следующие команды:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -464,7 +464,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
Либо из командной строки при работе с X выполните:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -484,7 +484,7 @@ Load "freetype"
Теперь создайте каталог для шрифтов TrueType(R) (к примеру, [.filename]#/usr/local/lib/X11/fonts/TrueType#) и скопируйте все шрифты TrueType(R) в этот каталог. Имейте в виду, что напрямую использовать шрифты TrueType(R) с Macintosh(R) нельзя; для использования с X11 они должны быть в формате UNIX(R)/MS-DOS(R)/Windows(R). После того, как файлы будут скопированы в этот каталог, воспользуйтесь утилитой ttmkfdir для создания файла [.filename]#fonts.dir#, который укажет подсистеме вывода шрифтов X на местоположение этих новых файлов. `ttmkfdir` имеется в Коллекции Портов FreeBSD: package:x11-fonts/ttmkfdir[].
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -492,7 +492,7 @@ Load "freetype"
После этого добавьте каталог со шрифтами TrueType(R) к маршруту поиска шрифтов. Это делается точно также, как описано выше для шрифтов <<type1,Type1>>, то есть выполните
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -528,7 +528,7 @@ Load "freetype"
После добавления новых шрифтов, и особенно новых каталогов со шрифтами, вы должны выполнить следующую команду для перестроения кэшей шрифтов:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -646,7 +646,7 @@ XDM можно рассматривать как аналог программы
Программой даемона XDM является [.filename]#/usr/local/bin/xdm#. Эта программа может быть запущена от пользователя `root` в любой момент, и она начнёт управлять дисплеем X на локальной машине. Если XDM нужно запускать в фоновом режиме каждый раз при запуске компьютера, то наиболее правильный способ - это добавить новую запись в [.filename]#/etc/ttys#. Для более подробной информации о формате и использовании этого файла смотрите crossref:serialcomms[term-etcttys,Добавление строки в /etc/ttys]. Вот строка, которую необходимо добавить в файл [.filename]#/etc/ttys# для того, чтобы запустить даемон XDM на виртуальном терминале:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -724,7 +724,7 @@ ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
Для того, чтобы позволить другим клиентам подключаться к серверу дисплеев, необходимо отредактировать правила контроля доступа и включить обслуживание сетевых соединений. По умолчанию они выключены, что является хорошим решением с точки зрения обеспечения безопасности. Для того, чтобы позволить XDM принимать сетевые соединения, в первую очередь закомментируйте строку в файле [.filename]#xdm-config#:
-[source,bash]
+[source,shell]
....
! БЕЗОПАСНОСТЬ: do not listen for XDMCP or Chooser requests
! Закомментируйте эти линии, если вы хотите управлять X терминалами с xdm
@@ -757,14 +757,14 @@ GNOME является дружественной к пользователю г
Для установки пакета GNOME из сети, просто наберите:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
Для построения GNOME из исходных текстов используйте дерево портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -776,7 +776,7 @@ GNOME является дружественной к пользователю г
GNOME может также быть запущен из командной строки с помощью конфигурирования файла [.filename]#.xinitrc#. Если файл [.filename]#.xinitrc# уже откорректирован, то просто замените строку, в которой запускается используемый менеджер окон, на ту, что вызовет /usr/local/bin/gnome-session. Если в конфигурационном файле нет ничего особенного, то будет достаточно просто набрать:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -788,7 +788,7 @@ GNOME может также быть запущен из командной ст
Если используется более старый менеджер дисплеев типа XDM, то это не сработает. Вместо этого создайте выполнимый файл [.filename]#.xsession# с той же самой командой в нём. Для этого отредактируйте файл, заменив существующую команду запуска оконного менеджера на /usr/local/bin/gnome-session:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -830,14 +830,14 @@ KDE является простой в использовании совреме
Для установки пакета KDE3 из сети, просто наберите:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
Для установки пакета KDE4 из сети, просто наберите:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -846,7 +846,7 @@ man:pkg_add[1] автоматически загрузит самую после
Для построения KDE3 из исходных текстов, воспользуйтесь деревом портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -854,7 +854,7 @@ man:pkg_add[1] автоматически загрузит самую после
Для построения KDE4 из исходных текстов, воспользуйтесь деревом портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -864,14 +864,14 @@ man:pkg_add[1] автоматически загрузит самую после
Для KDE3:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
Для KDE4:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -930,14 +930,14 @@ XFce является графической оболочкой, построе
Для XFce имеется (на момент написания этого текста) бинарный пакет. Для его установки просто наберите:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
Либо, в случае построения из исходных текстов, используйте Коллекцию Портов:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -945,7 +945,7 @@ XFce является графической оболочкой, построе
Теперь укажите X-серверу на запуск XFce при следующем запуске X. Просто наберите:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc b/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc
index 1fd47a6fe4..546ce1a2fb 100644
--- a/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/makefiles/chapter.adoc
@@ -88,7 +88,7 @@ toc::[]
Результат сравнения номера версии не всегда очевиден. Для выполнения сравнения двух строк с номером версии можно использовать `pkg version` (см. man:pkg-version[8]). Например:
-[source,bash]
+[source,shell]
....
% pkg version -t 0.031 0.29
>
diff --git a/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc b/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc
index a74168da4d..820f5cc187 100644
--- a/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/quick-porting/chapter.adoc
@@ -45,7 +45,7 @@ toc::[]
====
Перед началом портирования рекомендуется установить переменную man:make[1] `DEVELOPER` в [.filename]#/etc/make.conf#.
-[source,bash]
+[source,shell]
....
# echo DEVELOPER=yes >> /etc/make.conf
....
diff --git a/documentation/content/ru/books/porters-handbook/security/chapter.adoc b/documentation/content/ru/books/porters-handbook/security/chapter.adoc
index dd1684151a..bb78f84cf1 100644
--- a/documentation/content/ru/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/security/chapter.adoc
@@ -184,7 +184,7 @@ toc::[]
Во-первых, проверьте, нет ли уже записи об этой уязвимости. Если такая запись есть, она совпадёт с предыдущей версией пакета `0.65_6`:
-[source,bash]
+[source,shell]
....
% packaudit
% portaudit clamav-0.65_6
@@ -192,7 +192,7 @@ toc::[]
Если ничего не найдено, значит вы получили зеленый свет для добавления новой записи для этой уязвимости.
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml
% make newentry
@@ -200,7 +200,7 @@ toc::[]
Когда вы закончите, проверьте синтаксис и форматирование.
-[source,bash]
+[source,shell]
....
% make validate
....
@@ -212,14 +212,14 @@ toc::[]
Теперь выполните перепостроение базы данных `portaudit` из файла VuXML:
-[source,bash]
+[source,shell]
....
% packaudit
....
Чтобы убедиться, что раздел `<affected>` в вашей записи совпадает с правильными пакетами, выполните следующую команду:
-[source,bash]
+[source,shell]
....
% portaudit -f /usr/ports/INDEX -r uuid
....
@@ -233,7 +233,7 @@ toc::[]
Теперь проверьте, совпадает ли ваша запись с нужными версиями пакета:
-[source,bash]
+[source,shell]
....
% portaudit clamav-0.65_6 clamav-0.65_7
Affected package: clamav-0.65_6 (matched by clamav<0.65_7)
@@ -247,7 +247,7 @@ Reference: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-0020e
В заключение проверьте, что веб-страница, сформированная из базы данных VuXML, выглядит как положено:
-[source,bash]
+[source,shell]
....
% mkdir -p ~/public_html/portaudit
% packaudit
diff --git a/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc b/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc
index 05cf00fba6..d0baaf0906 100644
--- a/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/slow-porting/chapter.adoc
@@ -100,7 +100,7 @@ toc::[]
Файлы, которые добавлялись или изменялись в процессе создания порта, могут быть выявлены программой man:diff[1], а результат работы этой программы может быть в дальнейшем передан программе man:patch[1]. Такое действие с обычным файлом подразумевает сохранение копии файла с первоначальным содержимым перед внесением каких-либо изменений.
-[source,bash]
+[source,shell]
....
% cp file file.orig
....
@@ -109,14 +109,14 @@ toc::[]
После того как файл был изменён, используется man:diff[1] для получения разницы между первоначальной и изменённой версиями. Параметр `-u` указывает man:diff[1] выводить разницу в "унифицированном" формате, который также является предпочтительным.
-[source,bash]
+[source,shell]
....
% diff -u file.orig file > patch-pathname-file
....
Для порождении патчей для новых добавляемых файлов используется параметр `-N`, который заставляет man:diff[1] трактовать несуществующие прежде файлы как если бы они существовали, но имели пустое содержимое:
-[source,bash]
+[source,shell]
....
% diff -u -N newfile.orig newfile > patch-pathname-newfile
....
diff --git a/documentation/content/ru/books/porters-handbook/special/chapter.adoc b/documentation/content/ru/books/porters-handbook/special/chapter.adoc
index b81e054c41..88ea8112df 100644
--- a/documentation/content/ru/books/porters-handbook/special/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/special/chapter.adoc
@@ -2473,7 +2473,7 @@ doormand_flags=""
. Убедитесь в том, что в сценарии отсутствует `KEYWORD: FreeBSD`. Это перестало быть нужным и нежелательно уже много лет. Это также служит индикатором того, что новый сценарий был скопирован со старого, поэтому особое внимание должно быть уделено при проверке.
. Если сценарий использует интерпретируемый язык, такой как `perl`, `python` или `ruby`, то убедитесь, что значение `command_interpreter` установлено должным образом. В противном случае
+
-[source,bash]
+[source,shell]
....
# service name stop
....
diff --git a/documentation/content/ru/books/porters-handbook/testing/chapter.adoc b/documentation/content/ru/books/porters-handbook/testing/chapter.adoc
index a897ee6c73..76a490ef8c 100644
--- a/documentation/content/ru/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/testing/chapter.adoc
@@ -60,7 +60,7 @@ toc::[]
`port` является сценарием переднего плана, который может упростить вам задачу тестирования. Если вы хотите проверить новый порт или обновить существующий, то вы можете использовать `port test` для проверки вашего порта, включая проверку <<testing-portlint,`portlint`>>. Эта команда также находит и отображает любые файлы, которые невключенные в [.filename]#pkg-plist#. Смотрите следующий пример:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -78,7 +78,7 @@ toc::[]
Проверьте, что ваше приложение не устанавливает чего-либо в каталог [.filename]#/usr/local# вместо `PREFIX`. Наличие явно указанных путей можно быстро проверить следующим образом:
-[source,bash]
+[source,shell]
....
# make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
@@ -87,7 +87,7 @@ toc::[]
Это также стоит проверить с использованием поддержки каталога сборки (смотрите <<staging>>):
-[source,bash]
+[source,shell]
....
# make stage && make check-orphans && make package
....
diff --git a/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc b/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc
index 0162b17503..4efbe63a5a 100644
--- a/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc
+++ b/documentation/content/ru/books/porters-handbook/upgrading/chapter.adoc
@@ -44,7 +44,7 @@ toc::[]
Чтобы создать подходящий `diff` для одного патча, скопируйте файл, который нужно пропатчить, в _something.orig_, сохраните ваши изменения в _something_, а затем создайте ваше патч:
-[source,bash]
+[source,shell]
....
% diff -u something.orig something > something.diff
....
@@ -76,7 +76,7 @@ toc::[]
По возможности присылайте исправления в формате man:svn[1] diff. В таком виде их проще использовать по сравнению с разницей между "старым и новым" каталогами. Так проще увидеть изменения и обновить их в случае, если что-нибудь изменилось в Коллекции Портов с тех пор, как вы начали работу, либо если коммиттер просит что-то исправить.
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% svn co https://svn0.us-west.FreeBSD.org/ports/head/dns/pdnsd <.>
@@ -89,7 +89,7 @@ toc::[]
Находясь в рабочем каталоге, вносите любые изменения, которые обычно делают для порта. При добавлении или удалении файла используйте `svn` для отслеживания этих изменений:
-[source,bash]
+[source,shell]
....
% svn add new_file
% svn remove deleted_file
@@ -97,7 +97,7 @@ toc::[]
Убедитесь, что вы проверяете порт в соответствии с рекомендуемым порядком проверки, описанным в <<porting-testing>> и <<porting-portlint>>.
-[source,bash]
+[source,shell]
....
% svn status
% svn update <.>
@@ -126,7 +126,7 @@ toc::[]
Последним шагом является создание унифицированного man:diff[1] для полученных изменений:
-[source,bash]
+[source,shell]
....
% svn diff > ../`basename ${PWD}`.diff
....
diff --git a/documentation/content/zh-cn/articles/contributing/_index.adoc b/documentation/content/zh-cn/articles/contributing/_index.adoc
index a750850b93..f87cdeb7e2 100644
--- a/documentation/content/zh-cn/articles/contributing/_index.adoc
+++ b/documentation/content/zh-cn/articles/contributing/_index.adoc
@@ -116,14 +116,14 @@ link:https://www.FreeBSD.org/projects/ideas/[FreeBSD 志愿者项目和点子清
例如:
-[source,bash]
+[source,shell]
....
% diff -c oldfile newfile
....
或者
-[source,bash]
+[source,shell]
....
% diff -c -r olddir newdir
....
@@ -132,14 +132,14 @@ link:https://www.FreeBSD.org/projects/ideas/[FreeBSD 志愿者项目和点子清
类似地,
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
-[source,bash]
+[source,shell]
....
% diff -u -r olddir newdir
....
diff --git a/documentation/content/zh-cn/articles/leap-seconds/_index.adoc b/documentation/content/zh-cn/articles/leap-seconds/_index.adoc
index 7588f57bd1..2903bc3496 100644
--- a/documentation/content/zh-cn/articles/leap-seconds/_index.adoc
+++ b/documentation/content/zh-cn/articles/leap-seconds/_index.adoc
@@ -65,7 +65,7 @@ https://tools.ietf.org/html/rfc7164#section-3[RFC 7164] 描述了闰秒的标准
测试是否将使用闰秒是可行的。由于 NTP 的性质,测试可能要运行到闰秒前24小时。有些主要的参考时钟来源只在闰秒事件前一小时公告。查询 NTP 守护进程:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/zh-cn/articles/linux-users/_index.adoc b/documentation/content/zh-cn/articles/linux-users/_index.adoc
index 220e08c4dd..faa013d6e3 100644
--- a/documentation/content/zh-cn/articles/linux-users/_index.adoc
+++ b/documentation/content/zh-cn/articles/linux-users/_index.adoc
@@ -58,14 +58,14 @@ toc::[]
Packages 是预编译好的应用程序,在 FreeBSD 中等价于基于 Debian/Ubuntu 的系统中的 [.filename]#.deb# 软件包以及基于 Red Hat/Fedora 的系统中的 [.filename]#.rpm# 软件包。 Packages使用 man:pkg_add[1] 来进行安装。 例如,下面的命令将用来安装 Apache 2.2:
-[source,bash]
+[source,shell]
....
# pkg_add /tmp/apache-2.2.6_2.tbz
....
使用 `-r` 操作将告诉 man:pkg_add[1] 来自动获取并安装一个软件包,以及解决所有的依赖关系:
-[source,bash]
+[source,shell]
....
# pkg_add -r apache22
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/apache22.tbz... Done.
@@ -93,7 +93,7 @@ Ports 套件,常被称作 ports 树,可以在 [.filename]#/usr/ports# 下找
安装一个 port 就像进入 port 的目录并开始构建过程一样简单(通常情况下), 下面是从 Ports 套件安装 Apache 2.2 的例子:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make install clean
@@ -101,7 +101,7 @@ Ports 套件,常被称作 ports 树,可以在 [.filename]#/usr/ports# 下找
使用 ports 安装软件的最大好处就是能够自定义安装选项。 例如,从 ports 安装 Apache 2.2 时你可以通过设置 `WITH_LDAP` man:make[1] 变量来启用 mod_ldap:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/apache22
# make WITH_LDAP="YES" install clean
@@ -151,14 +151,14 @@ apache22_flags="-DSSL"
一旦服务已经在 [.filename]#/etc/rc.conf# 中启用,服务将能够从命令行启动(不需要重新启动系统):
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd start
....
如果服务还没有被启用,可以使用 `forcestart` 来从命令行启动:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd forcestart
....
@@ -171,7 +171,7 @@ apache22_flags="-DSSL"
代替 Linux(R) 中所使用的标识网络接口所常用的 _ethX_ 格式的是,FreeBSD 使用驱动名字后跟一个数字来标识。下面 man:ifconfig[8] 的输出显示了两个 Intel(R) Pro 1000 的网络接口([.filename]#em0# 和 [.filename]#em1#):
-[source,bash]
+[source,shell]
....
% ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -273,7 +273,7 @@ Linux(R) 中,你可能会通过看一看 [.filename]#/proc/sys/net/ipv4/ip_for
在 IP 转发样例中,你应该使用下列内容来确定 FreeBSD 系统中是否已经开启了 IP 转发:
-[source,bash]
+[source,shell]
....
% sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 0
@@ -281,7 +281,7 @@ net.inet.ip.forwarding: 0
`-a` 标志用来列出所有的系统设置:
-[source,bash]
+[source,shell]
....
% sysctl -a
kern.ostype: FreeBSD
@@ -309,7 +309,7 @@ kern.posix1version: 200112
需要 procfs 的情况是,运行一些较老的软件,使用 man:truss[1] 来跟踪系统信号,以及 link:{handbook}#linuxemu[Linux® 二进制兼容]. (尽管,Linux(R) 二进制兼容性使用其本身的 procfs,man:linprocfs[5]。) 如果你需要挂载 procfs 你可以在 [.filename]#/etc/fstab# 中加入如下内容:
-[source,bash]
+[source,shell]
....
proc /proc procfs rw,noauto 0 0
....
@@ -321,7 +321,7 @@ proc /proc procfs rw,noauto 0 0
然后使用如下命令挂载 procfs:
-[source,bash]
+[source,shell]
....
# mount /proc
....
diff --git a/documentation/content/zh-cn/articles/nanobsd/_index.adoc b/documentation/content/zh-cn/articles/nanobsd/_index.adoc
index e10c4722e5..e58690019b 100644
--- a/documentation/content/zh-cn/articles/nanobsd/_index.adoc
+++ b/documentation/content/zh-cn/articles/nanobsd/_index.adoc
@@ -69,7 +69,7 @@ NanoBSD 提供的功能包括:
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -93,7 +93,7 @@ NanoBSD 映像是通过使用非常简单的 [.filename]#nanobsd.sh# shell 脚
构建 NanoBSD 映像所需的命令是:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -115,7 +115,7 @@ NanoBSD 映像是通过使用非常简单的 [.filename]#nanobsd.sh# shell 脚
执行下面的命令将使 [.filename]#nanobsd.sh# 从当前目录中的 [.filename]#myconf.nano# 文件读取配置:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -263,7 +263,7 @@ customize_cmd cust_nobeastie
如果传输速度是第一要务, 采用下面的例子:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -273,7 +273,7 @@ get _.disk.image "| sh updatep1"
如果更倾向于安全传输, 应参考下面的例子:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -285,7 +285,7 @@ get _.disk.image "| sh updatep1"
[.procedure]
. 开始时, 在提供映像的主机上开启 TCP 监听, 并令其将映像文件发给客户机:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -296,7 +296,7 @@ myhost# nc -l 2222 < _.disk.image
====
. 连接到提供新映像服务的主机, 并执行 [.filename]#updatep1# 脚本:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/zh-cn/articles/rc-scripting/_index.adoc b/documentation/content/zh-cn/articles/rc-scripting/_index.adoc
index 9e50a51c37..0ad14c6126 100644
--- a/documentation/content/zh-cn/articles/rc-scripting/_index.adoc
+++ b/documentation/content/zh-cn/articles/rc-scripting/_index.adoc
@@ -93,7 +93,7 @@ run_rc_command "$1" <.>
&#10122; 一个解释性的脚本应该以一行魔幻的 "shebang" 行开头。 该行指定了脚本的解析程序。由于 shebang 行的作用, 假如再有可执行位的设置, 脚本就能象一个二进制程序一样被精确地调用执行。 (请参考 man:chmod[1]。) 例如, 一个系统管理员可以从命令行手动运行我们的脚本:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
....
@@ -192,7 +192,7 @@ run_rc_command "$1"
====
你可以通过将开关变量设置为 ON 来使 man:rc.subr[8] 有效, 使用 `one` 或 `force` 为脚本的参数加前缀,如 `onestart` 或 `forcestop` 这样,会忽略其当前的设置。 切记 `force` 在我们下面要提到的情况下有额外的危险后果,那就是当用 `one` 改写了 ON/OFF 开关变量。例如, 假定 `dummy_enable` 是 `OFF` 的,而下面的命令将忽略系统设置而强行运行 `start` 方法:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy onestart
....
@@ -374,7 +374,7 @@ _永远不要_ 在 `command_args` 包含破折号选项, 类似 `-X` 或 `--fo
全部可用命令的列表,当脚本不加参数地调用时,在 man:rc.subr[8] 打印出的使用方法中能够找到。例如, 这就是供学习的脚本用法的内容:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mumbled
Usage: /etc/rc.d/mumbled [fast|force|one](start|stop|restart|rcvar|reload|plugh|xyzzy|status|poll)
@@ -559,7 +559,7 @@ run_rc_command "$@" <.>
&#10122; 你输入的所有在 `start` 之后的参数可以被当作各自方法的定位参数一样被终结。 我们可以根据我们的任务、技巧和想法来以任何方式使用他们。 在当前的例子中,我们只是以下行中字符串的形式传递参数给 man:echo[1] 程序 - 注意 `$*` 是有双引号的。这里是脚本如何被调用的:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy start
Nothing started.
@@ -570,7 +570,7 @@ Greeting message: Hello world!
&#10123; 同样用于我们脚本提供的任何方法,并不仅限于标准的方法。 我们已经添加了一个自定义的叫做 `kiss` 的方法, 并且它给附加参数带来的戏耍决不亚于 `start`。 例如:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/dummy kiss
A ghost gives you a kiss.
diff --git a/documentation/content/zh-cn/articles/remote-install/_index.adoc b/documentation/content/zh-cn/articles/remote-install/_index.adoc
index 64778b1042..b14208aefa 100644
--- a/documentation/content/zh-cn/articles/remote-install/_index.adoc
+++ b/documentation/content/zh-cn/articles/remote-install/_index.adoc
@@ -77,7 +77,7 @@ mfsBSD 设置工具能够被用来构建一个微小的 FreeBSD 映像。如 mfs
下载并解压出最新的 mfsBSD 版本,并改变自己的当前工作目录到存在 mfsBSD 脚本文件的目录:
-[source,bash]
+[source,shell]
....
# fetch http://people.freebsd.org/~mm/mfsbsd/mfsbsd-latest.tar.gz
# tar xvzf mfsbsd-1.0-beta1.tar.gz
@@ -129,7 +129,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
第一步是挂载 FreeBSD 的安装 CD, 或者挂载安装 ISO 文件到 [.filename]#/cdrom#。 因为例子的缘故,在文章中我们将假定你下载的是 FreeBSD 7.0-RELEASE ISO 文件。使用 man:mdconfig[8] 实用程序挂载 ISO 映像文件到 [.filename]#/cdrom# 目录非常简单:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -u 10 -f 7.0-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /cdrom
@@ -137,7 +137,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
紧接着,构建可启动的 mfsBSD 映像:
-[source,bash]
+[source,shell]
....
# make BASE=/cdrom/7.0-RELEASE
....
@@ -151,14 +151,14 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
现在 mfsBSD 映像已经准备好了, 必须把它上传到远程的一个正在运行的急救系统上或者一个预安装了 Linux(R) 发行版的系统上。最适合做这个工作的工具是 scp:
-[source,bash]
+[source,shell]
....
# scp disk.img root@192.168.0.2:.
....
想要正确的引导 mfsBSD 映像, 必须把它安放在机器的第一块(可启动)设备上。 这可能会和使用的例子我们假定的一样,第一块可启动磁盘设备是 [.filename]#sda#:
-[source,bash]
+[source,shell]
....
# dd if=/root/disk.img of=/dev/sda bs=1m
....
@@ -176,7 +176,7 @@ mfsBSD 成功被引导后它就应该能够通过 man:ssh[1] 登入了。这一
在开始时,将所有磁盘都标记成空的, 在每个磁盘上重复如下命令:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/ad0 count=2
....
@@ -185,7 +185,7 @@ mfsBSD 成功被引导后它就应该能够通过 man:ssh[1] 登入了。这一
下面的例子会描述如何去创建 slices 和 labels, 在每个 partition 上初始化 man:gmirror[8] 并如何在每个被镜像过的 partition 上创建 UFS2 文件系统:
-[source,bash]
+[source,shell]
....
# fdisk -BI /dev/ad0 <.>
# fdisk -BI /dev/ad1
@@ -220,7 +220,7 @@ mfsBSD 成功被引导后它就应该能够通过 man:ssh[1] 登入了。这一
这是最重要的一部分。 此节将描述如何在我们上一小节已经准备好的磁盘上安装一个最小的 FreeBSD 版本。要达成这个目的,所有的文件安系统需要被挂载乃至于 Sysinstall 可以把 FreeBSD 系统的内容写到磁盘上:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/root /mnt
# mkdir /mnt/var /mnt/usr
@@ -252,7 +252,7 @@ FreeBSD 操作系统现在应该安装完毕了;通常情况下, 安装过
你现在必须 man:chroot[8] 到刚安装的全新的系统中来完成安装。 使用如下命令:
-[source,bash]
+[source,shell]
....
# chroot /mnt
....
@@ -261,7 +261,7 @@ FreeBSD 操作系统现在应该安装完毕了;通常情况下, 安装过
* 拷贝 `GENERIC`(通用)内核到 [.filename]#/boot/kernel# 目录:
+
-[source,bash]
+[source,shell]
....
# cp -Rp /boot/GENERIC/* /boot/kernel
....
@@ -286,7 +286,7 @@ zfs_load="YES"
....
* 执行下面的命令,使得 ZFS 在下次启动后可用:
+
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
....
@@ -303,14 +303,14 @@ zfs_load="YES"
最后还剩下的步骤是配置 man:zpool[8] 并创建一些 man:zfs[8] 文件系统。建立并管理 ZFS 非常简单。 首先,创建一个镜像的pool:
-[source,bash]
+[source,shell]
....
# zpool create tank mirror /dev/ad[01]s1f
....
再接着,创建一些文件系统:
-[source,bash]
+[source,shell]
....
# zfs create tank/ports
# zfs create tank/src
diff --git a/documentation/content/zh-cn/books/arch-handbook/boot/chapter.adoc b/documentation/content/zh-cn/books/arch-handbook/boot/chapter.adoc
index d03f8d2e6c..dd04c67c9f 100644
--- a/documentation/content/zh-cn/books/arch-handbook/boot/chapter.adoc
+++ b/documentation/content/zh-cn/books/arch-handbook/boot/chapter.adoc
@@ -60,7 +60,7 @@ toc::[]
|BIOS(固件)消息
a|
-[source,bash]
+[source,shell]
....
F1 FreeBSD
F2 BSD
@@ -70,7 +70,7 @@ F5 Disk 2
|`boot0`
a|
-[source,bash]
+[source,shell]
....
>>FreeBSD/i386 BOOT
Default: 1:ad(1,a)/boot/loader
@@ -80,7 +80,7 @@ boot:
|`boot2`
a|
-[source,bash]
+[source,shell]
....
BTX loader 1.0 BTX version is 1.01
BIOS drive A: is disk0
@@ -97,7 +97,7 @@ Booting [kernel] in 9 seconds..._
|loader
a|
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -641,7 +641,7 @@ __asm(".previous");
用objdump察看一个内核二进制文件, 也许你会注意到里面有这么几个小的节:
-[source,bash]
+[source,shell]
....
% objdump -h /kernel
7 .set.cons_set 00000014 c03164c0 c03164c0 002154c0 2**2
diff --git a/documentation/content/zh-cn/books/arch-handbook/driverbasics/chapter.adoc b/documentation/content/zh-cn/books/arch-handbook/driverbasics/chapter.adoc
index 7fd0a183f3..8175cbfb6d 100644
--- a/documentation/content/zh-cn/books/arch-handbook/driverbasics/chapter.adoc
+++ b/documentation/content/zh-cn/books/arch-handbook/driverbasics/chapter.adoc
@@ -118,7 +118,7 @@ KMOD=skeleton
简单地用这个makefile运行``make``就能够创建文件 [.filename]#skeleton.ko#,键入如下命令可以把它加载到内核:
-[source,bash]
+[source,shell]
....
# kldload -v ./skeleton.ko
....
@@ -467,14 +467,14 @@ DEV_MODULE(echo,echo_loader,NULL);
在FreeBSD 4.X上安装此驱动程序,你将首先需要用如下命令在 你的文件系统上创建一个节点:
-[source,bash]
+[source,shell]
....
# mknod /dev/echo c 33 0
....
驱动程序被加载后,你应该能够键入一些东西,如:
-[source,bash]
+[source,shell]
....
# echo -n "Test Data" > /dev/echo
# cat /dev/echo
diff --git a/documentation/content/zh-cn/books/arch-handbook/pccard/chapter.adoc b/documentation/content/zh-cn/books/arch-handbook/pccard/chapter.adoc
index 2067ae782c..490f28334b 100644
--- a/documentation/content/zh-cn/books/arch-handbook/pccard/chapter.adoc
+++ b/documentation/content/zh-cn/books/arch-handbook/pccard/chapter.adoc
@@ -173,7 +173,7 @@ product BUFFALO WLI2_CF_S11G 0x030c BUFFALO AirStation ultra 802.11b CF
目前,需要一个手动步骤来 重新产生[.filename]##pccarddevs.h##,用来将这些标识符转换 到客户驱动程序。你在驱动程序中使用它们之前必须完成下面步骤:
-[source,bash]
+[source,shell]
....
# cd src/sys/dev/pccard
# make -f Makefile.pccarddevs
diff --git a/documentation/content/zh-cn/books/handbook/advanced-networking/_index.adoc b/documentation/content/zh-cn/books/handbook/advanced-networking/_index.adoc
index 3b35e7cc97..6ac14ab388 100644
--- a/documentation/content/zh-cn/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/advanced-networking/_index.adoc
@@ -79,7 +79,7 @@ toc::[]
为了说明路由选择的各个部分, 首先来看看下面的例子。 这是 `netstat` 命令的输出:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -202,7 +202,7 @@ defaultrouter="10.20.30.1"
也可以直接在命令行使用 man:route[8] 命令:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -247,7 +247,7 @@ image::static-routes.png[]
如果我们查看一下``RouterA``的路由表, 我们就会看到如下一些内容:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -262,7 +262,7 @@ default 10.0.0.1 UGS 0 49378 xl0
使用当前的路由表,`RouterA` 是不能到达我们的内网――Internal Net 2 的。它没有到 `192.168.2.0/24` 的路由。 一种可以接受的方法是手工增加这条路由。以下的命令会把 Internal Net 2 网络加入到 `RouterA` 的路由表中,使用``192.168.1.2`` 做为下一个跳跃:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -282,7 +282,7 @@ route_internalnet2="-net 192.168.2.0/24 192.168.1.2"
配置变量 `static_routes` 是一串以空格隔开的字符串。每一串表示一个路由名字。 在上面的例子中我们中有一个串在 `static_routes` 里。这个字符串中 _internalnet2_。 然后我们新增一个配置变量 `route_internalnet2`, 这里我们把所有传给 man:route[8]命令的参数拿了过来。 在上面的实例中的我使用的命令是:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
....
@@ -433,7 +433,7 @@ device wlan_scan_sta # 802.11 STA mode scanning
在系统启动之后, 您会在引导时给出的信息中, 找到类似下面这样的关于无线设备的信息:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -450,7 +450,7 @@ ath0: AR2413 mac 7.9 RF2413 phy 4.5
您可以通过使用 `ifconfig` 命令来扫描网络。 由于系统需要在操作过程中切换不同的无线频率并探测可用的无线访问点, 这种请求可能需要数分钟才能完成。 只有超级用户才能启动这种扫描:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -468,7 +468,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -83:96 100 EPS WPA
====
在 FreeBSD 7.X 中, 会直接适配器设备, 例如 [.filename]#ath0#, 而不是 [.filename]#wlan0# 设备。 因此您需要把前面的命令行改为:
-[source,bash]
+[source,shell]
....
# ifconfig ath0 up scan
....
@@ -502,7 +502,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -83:96 100 EPS WPA
要显示目前已知的网络, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -591,14 +591,14 @@ ifconfig_wlan0="DHCP"
现在您已经完成了启用无线网络接口的全部准备工作了, 下面的操作将启用它:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
....
一旦网络接口开始运行, 就可以使用 `ifconfig` 来查看网络接口 [.filename]#ath0# 的状态了:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -664,7 +664,7 @@ ifconfig_wlan0="WPA DHCP"
下面启用无线网络接口:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -688,7 +688,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
除此之外, 您也可以手动地使用 <<network-wireless-wpa-wpa-psk,above>> 中那份 [.filename]#/etc/wpa_supplicant.conf# 来配置, 方法是执行:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -699,7 +699,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
接下来的操作, 是运行 `dhclient` 命令来从 DHCP 服务器获取 IP:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -725,7 +725,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
如果不打算使用 DHCP 或者 DHCP 不可用, 您可以在 `wpa_supplicant` 为通讯站完成了身份认证之后, 指定静态 IP 地址:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -743,7 +743,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
如果没有使用 DHCP, 还需要手工配置默认网关, 以及域名服务器:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -803,7 +803,7 @@ ifconfig_wlan0="WPA DHCP"
下一步是使用 [.filename]#rc.d# 机制来启用网络接口:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -866,7 +866,7 @@ ifconfig_wlan0="WPA DHCP"
下一步是启用网络接口:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -938,7 +938,7 @@ ifconfig_wlan0="WPA DHCP"
下一步是启用网络接口:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif start
Starting wpa_supplicant.
@@ -966,7 +966,7 @@ WEP (有线等效协议) 是最初 802.11 标准的一部分。 其中没有提
WEP 可以通过 `ifconfig` 配置:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -997,7 +997,7 @@ network={
接着:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -1010,7 +1010,7 @@ IBSS 模式, 也称为 ad-hoc 模式, 是为点对点连接设计的。 例
在计算机 `A` 上:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -1029,7 +1029,7 @@ IBSS 模式, 也称为 ad-hoc 模式, 是为点对点连接设计的。 例
此时, 在 `B` 上应该能够检测到 `A` 的存在了:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -1039,7 +1039,7 @@ IBSS 模式, 也称为 ad-hoc 模式, 是为点对点连接设计的。 例
在输出中的 `I` 再次确认了 `A` 机是以 ad-hoc 模式运行的。 我们只需给 `B` 配置一不同的 IP 地址:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1072,7 +1072,7 @@ FreeBSD 可以作为一个(无线)访问接入点(AP), 这样可以不
一旦装载了无线网络的支持, 你就可以检查一下看看你的无线设备是否支持基于主机的无线访问接入模式 (通常也被称为 hostap 模式):
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1084,14 +1084,14 @@ cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
只有创建网络伪设备时能够配置无线设备是否以 hostap 模式运行, 如果之前已经存在了相应的设备, 则需要首先将其销毁:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
接着, 在配置其它参数前, 以正确的选项重新生成设备:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1099,7 +1099,7 @@ cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
再次使用 `ifconfig` 检查 [.filename]#wlan0# 网络接口的状态:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1129,7 +1129,7 @@ ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g c
一旦 AP 被配置成了我们前面所展示的那样, 就可以在另外一台无线机器上初始化一次扫描来找到这个 AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1139,7 +1139,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
在客户机上能看到已经连接上了(无线)访问接入点:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1208,12 +1208,12 @@ wpa_pairwise=CCMP TKIP <.>
接下来的一步就是运行 hostapd:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290
@@ -1234,7 +1234,7 @@ wpa_pairwise=CCMP TKIP <.>
在设置了正确的 SSID 和 IP 地址后,无线设备就可以进入 hostap 模式了:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1246,7 +1246,7 @@ wpa_pairwise=CCMP TKIP <.>
再使用一次 `ifconfig` 命令查看 [.filename]#wlan0# 接口的状态:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1261,7 +1261,7 @@ wpa_pairwise=CCMP TKIP <.>
现在可以从另外一台无线机器上初始化一次扫描来找到这个 AP 了:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1290,7 +1290,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS
`wpa_supplicant` 提供了许多调试支持; 尝试手工运行它, 在启动时指定 `-dd` 选项, 并察看输出结果。
* 除此之外还有许多其它的底层调试工具。 您可以使用 [.filename]#/usr/src/tools/tools/net80211# 中的 `wlandebug` 命令来启用 802.11 协议支持层的调试功能。 例如:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i ath0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1315,7 +1315,7 @@ Bluetooth (蓝牙) 是一项无线技术, 用于建立带宽为 2.4GHZ,波
默认的 Bluetooth 设备驱动程序已存在于内核模块里。 接入设备前,您需要将驱动程序加载入内核:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1329,7 +1329,7 @@ ng_ubt_load="YES"
插入USB dongle。控制台(console)(或syslog中)会出现类似如下的信息:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1339,7 +1339,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
脚本 [.filename]#/etc/rc.d/bluetooth# 是用来启动和停止 Bluetooth stack (蓝牙栈)的。 最好在拔出设备前停止 stack(stack),当然也不是非做不可。 启动 stack (栈) 时,会得到如下的输出:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1363,7 +1363,7 @@ Number of SCO packets: 8
最常见的任务是发现在 RF proximity 中的蓝牙 (Bluetooth) 设备。这个就叫做 _质询(inquiry)_。质询及 HCI 相关的操作可以由 man:hccontrol[8] 工具来完成。 以下的例子展示如何找出范围内的蓝牙设备。 在几秒钟内您应该得到一张设备列表。 注意远程主机只有被置于 _discoverable(可发现)_ 模式才能答应质询。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1379,7 +1379,7 @@ Inquiry complete. Status: No error [00]
`BD_ADDR` 是蓝牙设备的特定地址, 类似于网卡的 MAC 地址。需要用此地址与某个设备进一步地通信。 可以为 BD_ADDR 分配由人可读的名字 (human readable name)。 文件 [.filename]#/etc/bluetooth/hosts# 包含已知蓝牙主机的信息。 下面的例子展示如何获得分配给远程设备的可读名。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1390,7 +1390,7 @@ Name: Pav's T39
蓝牙系统提供点对点连接 (只有两个蓝牙设备参与) 和点对多点连接。在点对多点连接中,连接由多个蓝牙设备共享。 以下的例子展示如何取得本地设备的活动基带 (baseband) 连接列表。
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1399,7 +1399,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
_connection handle(连接柄)_ 在需要终止基带连接时有用。注意:一般不需要手动完成。 栈 (stack) 会自动终止不活动的基带连接。
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1418,7 +1418,7 @@ L2CAP 基于 _通道(channel)_ 的概念。 通道 (Channel) 是位于基带 (ba
一个有用的命令是 man:l2ping[8], 它可以用来 ping 其它设备。 一些蓝牙实现可能不会返回所有发送给它们的数据, 所以下例中的 `0 bytes` 是正常的。
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1429,7 +1429,7 @@ L2CAP 基于 _通道(channel)_ 的概念。 通道 (Channel) 是位于基带 (ba
man:l2control[8] 工具用于在 L2CAP 上进行多种操作。 以下这个例子展示如何取得本地设备的逻辑连接 (通道) 和基带连接的列表:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1443,7 +1443,7 @@ Remote BD_ADDR Handle Flags Pending State
另一个诊断工具是 man:btsockstat[1]。 它完成与 man:netstat[1] 类似的操作, 只是用了蓝牙网络相关的数据结构。 以下这个例子显示与 man:l2control[8] 相同的逻辑连接。
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1514,7 +1514,7 @@ SDP 包括 SDP 服务器和 SDP 客户端之间的通信。 服务器维护一
蓝牙 SDP 服务端 man:sdpd[8] 和命令行客户端 man:sdpcontrol[8] 都包括在了标准的 FreeBSD 安装里。 下面的例子展示如何进行 SDP 浏览查询。
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1543,7 +1543,7 @@ Bluetooth Profile Descriptor List:
等等。注意每个服务有一个属性 (比如 RFCOMM 通道)列表。 根据服务您可能需要为一些属性做个注释。 有些"蓝牙实现 (Bluetooth implementation)"不支持服务浏览, 可能会返回一个空列表。这种情况,可以搜索指定的服务。 下面的例子展示如何搜索 OBEX Object Push (OPUSH) 服务:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1557,7 +1557,7 @@ sdpd_enable="YES"
然后用下面的命令来启动 sdpd 服务:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sdpd start
....
@@ -1566,7 +1566,7 @@ sdpd_enable="YES"
使用本地 SDP 进程注册的服务列表,可以通过本地控制通道发出 SDP 浏览查询获得:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1588,14 +1588,14 @@ sdpd_enable="YES"
在下面的例子中,man:rfcomm_pppd[8] 用来在 NUN RFCOMM 通道上打开一个到 BD_ADDR 为 00:80:37:29:19:a4 的设备的 RFCOMM 连接。具体的 RFCOMM 通道号要通过 SDP 从远端设备获得。也可以手动指定通 RFCOMM,这种情况下 man:rfcomm_pppd[8] 将不能执行 SDP 查询。使用 man:sdpcontrol[8] 来查找远端设备上的 RFCOMM 通道。
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
为了提供 PPP(LAN) 网络接入服务,必须运行 man:sdpd[8] 服务。一个新的 LAN 客户端条目必须在 [.filename]#/etc/ppp/ppp.conf# 文件中建立。 想要实例请参考 man:rfcomm_pppd[8]。 最后,在有效地通道号上开始 RFCOMM PPP 服务。 RFCOMM PPP 服务会使用本地 SDP 进程自动注册蓝牙 LAN 服务。下面的例子展示如何启动 RFCOMM PPP 服务。
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1608,7 +1608,7 @@ OBEX 服务器和客户端由第三方软件包 obexapp实现,它可以从 pac
OBEX 客户端用于向 OBEX 服务器推入或接出对象。 一个对像可以是(举个例子)商业卡片或约会。 OBEX 客户能通过 SDP 从远程设备取得 RFCOMM 通道号。这可以通过指定服务名代替 RFCOMM 通道号来完成。支持的服务名是有:IrMC、FTRN 和 OPUSH。 也可以用数字来指定 RFCOMM 通道号。下面是一个 OBEX 会话的例子,一个设备信息对像从手机中被拉出, 一个新的对像被推入手机的目录。
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1621,7 +1621,7 @@ Success, response: OK, Success (0x20)
为了提供 OBEX 推入服务,man:sdpd[8] 必须处于运行状态。必须创建一个根目录用于存放所有进入的对象。 根文件夹的默认路径是 [.filename]#/var/spool/obex#。 最后,在有效的 RFCOMM 通道号上开始 OBEX 服务。OBEX 服务会使用 SDP 进程自动注册 OBEX 对象推送 (OBEX Object Push) 服务。 下面的例子展示如何启动 OBEX 服务。
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1632,7 +1632,7 @@ Success, response: OK, Success (0x20)
工具 man:rfcomm_sppd[1] 来实现串口层。 "Pseudo tty" 用来作为虚拟的串口。 下面的例子展示如何连接远程设备的串口服务。 注意您不必指定 RFCOMM 通道――man:rfcomm_sppd[1] 能够通过 SDP 从远端设备那里获得。 如果您想代替它的话,可以在命令行里指定 RFCOMM 通道来实现:
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t /dev/ttyp6
rfcomm_sppd[94692]: Starting on /dev/ttyp6...
@@ -1640,7 +1640,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
一旦连接上,"pseudo tty"就可以充当串口了:
-[source,bash]
+[source,shell]
....
# cu -l ttyp6
....
@@ -1651,7 +1651,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
一些较老的蓝牙设备并不支持角色转换 (role switching)。默认情况下,FreeBSD 接受一个新的连接时, 它会尝试进行角色转换并成为主控端 (master)。 不支持角色转换的设备将无法连接。 注意角色转换是在新连接建立时运行的, 因此如果远程设备不支持角色转换,就不可能向它发出请求。 一个 HCI 选项用来在本地端禁用角色转换。
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1713,7 +1713,7 @@ rfcomm_sppd[94692]: Starting on /dev/ttyp6...
网桥是通过接口复制来创建的。 您可以使用 man:ifconfig[8] 来创建网桥接口, 如果内核不包括网桥驱动, 则它会自动将其载入。
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1729,7 +1729,7 @@ bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
将成员网络接口加入网桥。 为了让网桥能够为所有网桥成员接口转发包, 网桥接口和所有成员接口都需要处于启用状态:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1748,7 +1748,7 @@ ifconfig_fxp1="up"
如果网桥主机需要 IP 地址, 则应将其绑在网桥设备本身, 而不是某个成员设备上。 这可以通过静态设置或 DHCP 来完成:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1767,7 +1767,7 @@ ifconfig_fxp1="up"
使用 `stp` 命令可以在成员接口上启用生成树。 对包含 [.filename]#fxp0# 和 [.filename]#fxp1# 的网桥, 可以用下列命令启用 STP:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1787,7 +1787,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
另一个网桥也启用了生成树:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1812,7 +1812,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
如果希望将四个网络接口上的输入转成一个流:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1824,7 +1824,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
如果希望将所有帧发到名为 [.filename]#fxp4# 的接口上:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1839,7 +1839,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
另一种用法是将网桥与 VLAN 功能连用, 这样客户网络会被隔离在一边, 而不会浪费 IP 地址空间。 考虑 `CustomerA` 在 `vlan100` 上, 而 `CustomerB` 则在 `vlan101` 上。 网桥地址为 `192.168.0.1`, 同时作为 internet 路由器使用。
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1849,7 +1849,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
在 VLAN 之间的通讯可以通过专用接口 (或防火墙) 来阻断:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1862,7 +1862,7 @@ bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
下面的例子是设置 `CustomerA` 在 `vlan100` 上可连接的以太网设备最大值为 10。
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
@@ -1883,7 +1883,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
通过 IETF BRIDGE-MIB(RFC4188) 监测一个单独的网桥
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1907,7 +1907,7 @@ RSTP-MIB::dot1dStpVersion.0 = INTEGER: rstp(2)
监测多个网桥接口可以使用 private BEGEMOT-BRIDGE-MIB:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1928,7 +1928,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
通过 `mib-2.dot1dBridge` 子树改变正在被监测的网桥接口:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1972,7 +1972,7 @@ Round-robin (轮转)::
在 Cisco(R) 交换机上将 _FastEthernet0/1_ 和 _FastEthernet0/2_ 这两个网口添加到 channel-group _1_:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1985,7 +1985,7 @@ interface FastEthernet0/2
使用 _fxp0_ 和 _fxp1_ 创建 man:lagg[4] 接口, 启用这个接口并配置 IP 地址 _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1995,14 +1995,14 @@ interface FastEthernet0/2
用下面的命令查看接口状态:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
....
标记为 _ACTIVE_ 的接口是激活据合组的部分, 这表示它们已经完成了与远程交换机的协商, 同时, 流量将通过这些接口来收发。 在 man:ifconfig[8] 的详细输出中会给出 LAG 的标识。
-[source,bash]
+[source,shell]
....
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
@@ -2016,7 +2016,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
如果需要查看交换机上的端口状态, 则应使用 `show lacp neighbor` 命令:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2053,7 +2053,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
====
故障转移模式中, 当首选链路发生问题时, 会自动切换到备用端口。 首先启用成员接口, 接着是配置 man:lagg[4] 接口, 其中, 使用 _fxp0_ 作为首选接口, _fxp1_ 作为备用接口, 并在整个接口上配置 IP 地址 _10.0.0.15/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2063,7 +2063,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
创建成功之后, 接口状态会是类似下面这样, 主要的区别是 MAC 地址和设备名:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2101,7 +2101,7 @@ ifconfig_lagg0="laggproto failover laggport fxp0 laggport fxp1 10.0.0.15/24"
在这个配置中, 我们将优先使用有线网络接口 _bge0_ 作为主网络接口, 而将无线网络接口 _wlan0_ 作为备用网络接口。 这里的 _wlan0_ 使用的物理设备是 _iwn0_, 我们需要将它的 MAC 地址修改为与有线网络接口一致。 为了达到这个目的首先要得到有线网络接口上的 MAC 地址:
-[source,bash]
+[source,shell]
....
# ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2115,21 +2115,21 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
您可能需要将 _bge0_ 改为您系统上实际使用的接口, 并从输出结果中的 `ether` 这行找出有线网络的 MAC 地址。 接着是修改物理的无线网络接口, _iwn0_:
-[source,bash]
+[source,shell]
....
# ifconfig iwn0 ether 00:21:70:da:ae:37
....
启用无线网络接口, 但不在其上配置 IP 地址:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 ssid my_router up
....
启用 _bge0_ 接口。 创建 man:lagg[4] 接口, 其中 _bge0_ 作为主网络接口, 而以 _wlan0_ 作为备选接口:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 up
# ifconfig lagg0 create
@@ -2138,7 +2138,7 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
新创建的接口的状态如下, 您系统上的 MAC 地址和设备名等可能会有所不同:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2153,7 +2153,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
接着用 DHCP 客户端来获取 IP 地址:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2316,7 +2316,7 @@ http://etherboot.sourceforge.net[Etherboot 的网站] 包含有link:http://ether
想要使用启动软盘,先插入一张软盘到安装有 Etherboot 的机器的驱动器里, 然后把当前路径改到 [.filename]#src# 目录――在 Etherboot 树下, 接着输入:
-[source,bash]
+[source,shell]
....
# gmake bin32/devicetype.fd0
@@ -2353,7 +2353,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
+
. 让 inetd 重读其配置文件。 要正确执行这个命令, 在 [.filename]#/etc/rc.conf# 文件中必须加入 `inetd_enable="YES"`:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -2381,7 +2381,7 @@ nfs_server_enable="YES"
+
. 让 mountd 重读它的配置文件。如果您真的需要启用第一步的 [.filename]#/etc/rc.conf# 里 NFS, 您可能就要重启系统了。
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd restart
....
@@ -2449,7 +2449,7 @@ cd /usr/src/etc; make distribution
内核并不支持在引导时启用 NFS 交换区。 交换区必须通过启动脚本启用, 其过程是挂接一个可写的文件系统, 并在其上创建并启用交换文件。 要建立尺寸合适的交换文件, 可以这样做:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/path/to/swapfile bs=1k count=1 oseek=100000
....
@@ -2489,7 +2489,7 @@ Intel(R) 预启动执行环境 (PXE) 能让操作系统从网络启动。
+
选择一个可被用户 NFS 挂载并安装有 FreeBSD 的目录。 比如可以使用像 [.filename]#/b/tftpboot/FreeBSD/install# 这样的一个目录。
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2505,7 +2505,7 @@ Intel(R) 预启动执行环境 (PXE) 能让操作系统从网络启动。
+
. 重起 NFS 服务:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/nfsd restart
....
@@ -2520,14 +2520,14 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. 重启 inetd:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
+
. crossref:cutting-edge[makeworld,重新编译 FreeBSD 内核和用户态]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -2536,7 +2536,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. 把 FreeBSD 安装到 NFS 挂载目录:
+
-[source,bash]
+[source,shell]
....
# make installworld DESTDIR=${NFSROOTDIR}
# make installkernel DESTDIR=${NFSROOTDIR}
@@ -2545,7 +2545,7 @@ tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /b/tftpboot
+
. 测试 TFTP 服务是否能下载将从 PXE 获取的引导加载器:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2564,7 +2564,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
用你的 NFS 服务器主机名或者 IP 地址替换 _myhost.example.com_。 在此例中, 根文件系统是以"``只读``"的方式挂载用来防止 NFS 客户端可能意外删除根文件系统上的文件。
. 设置 man:chroot[8] 环境中的 root 密码。
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2574,7 +2574,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
. 允许 ssh root 登录从 PXE 启动的客户机, 编辑 [.filename]#${NFSROOTDIR}/etc/ssh/sshd_config# 并开启 `PermitRootLogin` 选项。 关于此选项的说明请参阅 man:sshd_config[5]。
. 对 ${NFSROOTDIR} 的 man:chroot[8] 环境做些其他的定制。 这可以是像使用 man:pkg_add[1] 安装二进制包, 使用 man:vipw[8] 修改密码, 或者编辑 man:amd.conf[8] 映射自动挂载等。例如:
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# pkg_add -r bash
@@ -2585,7 +2585,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
如果你从一个 NFS 根卷启动, [.filename]#/etc/rc# 如果检测到是从 NFS 启动便会运行 [.filename]#/etc/rc.initdiskless# 脚本。 请阅读此脚本中的注释部分以便了解到底发生了什么。 我们需要把 [.filename]#/etc# 和 [.filename]#/var# 做成内存文件系统的原因是这些目录需要能被写入, 但 NFS 根文件系统是只读的。
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2638,7 +2638,7 @@ subnet 192.168.0.0 netmask 255.255.255.0 {
. 使用 package:net/wireshark[] port 查看 DHCP 和 TFTP 的网络流量来调试各种问题。
. 确保 [.filename]#pxeboot# 能从 TFTP 获取。 在你的 TFTP 服务器上检查 [.filename]#/var/log/xferlog# 日志确保 [.filename]#pxeboot# 被从正确的位置获取。 可以这样测试上面例子 [.filename]#dhcpd.conf# 中所设置的:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2648,7 +2648,7 @@ Received 264951 bytes in 0.1 seconds
请阅读 man:tftpd[8] 和 man:tftp[1]。 其中的 `BUGS` 列出了 TFTP 的一些限制。
. 确保根文件系统能够从 NFS 挂载。 可以这样测试上面例子 [.filename]#dhcpd.conf# 中所设置的:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -3094,7 +3094,7 @@ DATA4 BUSY
首先,您需要一根 laplink 线。然后, 确认两台计算机的内核都有对 man:lpt[4] 驱动程序的支持:
-[source,bash]
+[source,shell]
....
# grep lp /var/run/dmesg.boot
lpt0: Printer on ppbus0
@@ -3111,7 +3111,7 @@ hint.ppc.0.irq="7"
然后检查内核配置文件中是否有一行 `device plip` 或加载了 [.filename]#plip.ko# 内核模块。 这两种情况下, 在使用 man:ifconfig[8] 命令时都会显示并口对应的网络接口, 类似这样:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
@@ -3129,14 +3129,14 @@ IP Address 10.0.0.1 10.0.0.2
配置 `host1` 上的网络接口,照此做:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.1 10.0.0.2
....
配置 `host2` 上的网络接口,照此做:
-[source,bash]
+[source,shell]
....
# ifconfig plip0 10.0.0.2 10.0.0.1
....
@@ -3154,7 +3154,7 @@ IP Address 10.0.0.1 10.0.0.2
要确认连接是否工作,可以到每一台机子上,然后 ping 另外一台。例如,在 `host1` 上:
-[source,bash]
+[source,shell]
....
# ifconfig plip0
plip0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -3281,7 +3281,7 @@ IPv4 广播地址 (通常为 `xxx.xxx.xxx.255`) 由 IPv6 的 multicast 地址来
到现在,读者应该能理解下面的内容了:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -3479,7 +3479,7 @@ Classical IP over ATM (CLIP) 是一种最简单的使用带 IP 的 ATM 的方法
在每一个连接端 VPI 和 VCI 的值都可能会不同, 只是为了简单起见,我们假定它们是一样的。 下一步我们需要配置每一个主机上的 ATM 接口:
-[source,bash]
+[source,shell]
....
hostA# ifconfig hatm0 192.168.173.1 up
hostB# ifconfig hatm0 192.168.173.2 up
@@ -3489,7 +3489,7 @@ hostD# ifconfig hatm0 192.168.173.4 up
假定所有主机上的 ATM 接口都是 [.filename]#hatm0#。 现在 PVC 需要配置到 `hostA` 上 (我们假定它们都已经配置在了 ATM 交换机上,至于怎么做的, 您就需要参考一下该交换机的手册了)。
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm add 192.168.173.2 hatm0 0 100 llc/snap ubr
hostA# atmconfig natm add 192.168.173.3 hatm0 0 101 llc/snap ubr
@@ -3510,7 +3510,7 @@ hostD# atmconfig natm add 192.168.173.3 hatm0 0 105 llc/snap ubr
当然,除 UBR 外其它的通信协定也可让 ATM 适配器支持这些。 此种情况下,通信协定的名字要跟人通信参数后边。工具 man:atmconfig[8] 的帮助可以这样得到:
-[source,bash]
+[source,shell]
....
# atmconfig help natm add
....
@@ -3531,7 +3531,7 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"
所有 CLIP 路由的当前状态可以使用如下命令获得:
-[source,bash]
+[source,shell]
....
hostA# atmconfig natm show
....
@@ -3581,7 +3581,7 @@ if_carp_load="YES"
CARP 设备可以通过 `ifconfig` 命令来创建。
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -3634,7 +3634,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
默认的 FreeBSD 内核 _可能_ 启用了主机间抢占。 如果是这样的话, `provider.example.org` 可能在正式的内容服务器恢复时不释放 IP 地址。 此时, 管理员必须手工强制 IP 回到原来内容服务器。 具体做法是在 `provider.example.org` 上使用下面的命令:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down ifconfig carp0 up
....
diff --git a/documentation/content/zh-cn/books/handbook/audit/_index.adoc b/documentation/content/zh-cn/books/handbook/audit/_index.adoc
index e862bc6bf9..cef5f5e8f0 100644
--- a/documentation/content/zh-cn/books/handbook/audit/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/audit/_index.adoc
@@ -229,7 +229,7 @@ www:fc,+ex:no
例如, `praudit` 工具会将指定的审计记帐转存为简单文本格式的审计日志:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -257,7 +257,7 @@ trailer,133
由于审计日志可能会很大, 管理员可能会希望选择记录的一个子集来使用, 例如与特定用户相关的记录:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -272,7 +272,7 @@ trailer,133
审计管道是位于设备文件系统中的自动复制 (cloning) 的虚拟设备, 用于让应用程序控制正在运行的审计记录流, 这主要是为了满足入侵检测和系统监控软件作者的需要。 不过, 对管理员而言, 审计管道设备也提供了一种无需冒审计记帐文件属主出现问题的麻烦, 或由于日志翻转而打断事件流的麻烦, 而实现实时监控的方便途径。 要跟踪实时事件流, 使用下面的命令行:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -296,7 +296,7 @@ add path 'auditpipe*' mode 0440 group audit
审计计账只由内核写入, 且只能由 auditd 管理。 管理员不应尝试使用 man:newsyslog.conf[5] 或其它工具来完成审计日志的轮转工作。 您可以使用 `audit` 管理工具来关闭审计、 重新配置审计系统, 并完成日志轮转。 下面的命令将让审计服务创建新的审计日志, 并发信号给内核要求其使用新的日志。 旧日志将终止并被改名, 此时, 管理员就可以操作它了。
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/zh-cn/books/handbook/basics/_index.adoc b/documentation/content/zh-cn/books/handbook/basics/_index.adoc
index 51dc02974f..4d36561a57 100644
--- a/documentation/content/zh-cn/books/handbook/basics/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/basics/_index.adoc
@@ -74,7 +74,7 @@ toc::[]
假如您没有设置 FreeBSD 在启动期间开启图形登录界面, 那么系统将在引导和启动脚本正确运行完成后,给您一个登录的提示。 您会看到类似这样的界面:
-[source,bash]
+[source,shell]
....
Additional ABI support:.
Local package initialization:.
@@ -114,14 +114,14 @@ FreeBSD是一个多用户多任务的系统, 换句话来说就是一个系统
当 FreeBSD 引导并运行完启动脚本之后, , 它会给出一个提示, 并要求输入有效的用户名:
-[source,bash]
+[source,shell]
....
login:
....
举个例子更容易理解,我们假设您的用户名叫 `john`。 在提示符下输入 `john` 并按 kbd:[Enter], 此时您应该看到这个提示 "password":
-[source,bash]
+[source,shell]
....
login: john
Password:
@@ -203,14 +203,14 @@ options SC_PIXEL_MODE
在内核用这2个选项编译完成后,你就可以使用 man:vidcontrol[1] 工具来测定你的硬件支持何种显示模式了。 以 root 身份在控制台键入以下命令来获得一份所支持的显示模式列表。
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
这个命令的输出是一份你的硬件所支持的显示模式列表。 你可以在以 root 身份在控制台上键入 man:vidcontrol[1] 命令来改变显示模式:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -271,7 +271,7 @@ FreeBSD,是 BSD UNIX(R) 的延续, 并基于几个关键的 UNIX(R) 观念
使用命令的 `-l` (man:ls[1]) 参数可以显示出文件的所属者、 所属组和其他人等属性。 请看以下的例子:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -283,7 +283,7 @@ total 530
使用 `ls -l` 在每行的开始出现了:
-[source,bash]
+[source,shell]
....
-rw-r--r--
....
@@ -360,14 +360,14 @@ total 530
这些数值 man:chmod[1] 以习惯标定的。 举个例子,用以下命令阻止其他人访问 __FILE__文件:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
如果需要对文件一次进行多项变动, 则可用逗号分开, 在下面的例子中, 将去掉 _FILE_ 文件的群体和 "全体其他用户" 可写权限, 并为所有人增加可执行权限:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -380,21 +380,21 @@ total 530
文件标志可以通过使用 man:chflags[1] 工具来修改, 其用户界面很简单。 例如, 要在文件 [.filename]#file1# 上应用系统禁删标志, 应使用下述命令:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
要禁用系统禁删标志, 只需在前述命令中的 `sunlink` 标志前加 "no"。 例如:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
要显示文件上的标志, 应使用命令 man:ls[1] 的 `-lo` 参数:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -423,7 +423,7 @@ man:mount[8] 的 `nosuid` 选项可以令系统在不给出任何错误提示的
setuid 权限可以通过在普通权限前面加上一个数字四 (4) 来设置, 如下面的例子所示:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -441,7 +441,7 @@ setuid 权限可以通过在普通权限前面加上一个数字四 (4) 来设
在终端 A 中:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -449,12 +449,12 @@ Old Password:
在终端 B 中:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -466,14 +466,14 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
如果需要在文件上配置 `setgid` 权限, 可以在权限数值前面增加数字二 (2) 来运行 `chmod` 命令, 如下面的例子所示:
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
可以用与前面类似的方法来检视新设定的生效情况, 在组权限的地方的 `s` 表示这一配置已经生效:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -487,19 +487,19 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
当在目录上设置了 `sticky bit` 之后, 其下的文件就只能由文件的所有者删除了。 这个权限设置能够防止用户删除类似 [.filename]#/tmp# 这样的公共目录中不属于他们的文件。 要应用这种权限, 可以在权限设置前面加上数字一 (1)。 例如:
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
现在, 可以用 `ls` 命令来查看效果:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -837,7 +837,7 @@ man:dump[8] 使用这项去决定那个文件系统必须移贮。 假如缺少
[example]
====
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -901,7 +901,7 @@ FreeBSD 是一个多任务操作系统。 这就意味着好像一次可以运
默认情况下, ``ps``仅显示出您自己所运行的命令。 例如:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -929,7 +929,7 @@ man:ps[1]支持使用各种选项去改变显示出来的内容, 最有用的
下面和从man:top[1]输出是类似的,一个示例式对话就象这样子:
-[source,bash]
+[source,shell]
....
% top
last pid: 72257; load averages: 0.13, 0.09, 0.03 up 0+13:38:33 22:39:10
@@ -986,7 +986,7 @@ man:top[1] 每两秒自动刷新一次,您可以用``s``改变刷新的秒数
. 寻找您要发送信号的进程ID,可以用man:ps[1] 加 man:grep[1]来完成。 man:grep[1]命令被用在搜索输出方面,搜索您指定的字符串。 这命令是由普通用户来执行的,而man:inetd[8]是``root``用户运行的, 所以必须给man:ps[1]带上``ax``选项。
+
-[source,bash]
+[source,shell]
....
% ps -ax | grep inetd
198 ?? IWs 0:00.00 inetd -wW
@@ -995,7 +995,7 @@ man:top[1] 每两秒自动刷新一次,您可以用``s``改变刷新的秒数
得出 man:inetd[8] PID号是198。 有时 `grep inetd` 命令也出现在输出中, 这是因为在这方面 man:ps[1] 也是寻找列表中运行进程。
. 使用 man:kill[1] 去发送信号。 因为 man:inetd[8] 是由 ``root``启动的, 您必须使用 man:su[1] 去 变为 `root` 用户。
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1075,14 +1075,14 @@ Password:
不同的shell设置环境变量也不相同。举个例子, 在如``tcsh`` 和 ``csh``这样的C-Style shell, 您必须使用``setenv``去设置环境变量。 而在如``sh``和``bash``这样的Bourne shell, 您必须使用``export``去设置当前环境变量。 再举个例子,要去设置或改变``EDITOR``环境变量, 在``csh``或``tcsh``下将``EDITOR``设为 [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
而在Bourne shell下,则是:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1100,7 +1100,7 @@ shell里有许多特别的字符代表着特别的资料,我们把叫做meta-c
您可使用``chsh`` 的``-s``选项, 这样就能设置您的shell却又不用编辑器。假如您想把shell改为``bash`` 可用下面的技巧。
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1111,7 +1111,7 @@ shell里有许多特别的字符代表着特别的资料,我们把叫做meta-c
举个例了子,假如您手工把 ``bash``装到 [.filename]##/usr/local/bin##里,您还要进行这一步:
-[source,bash]
+[source,shell]
....
# echo "/usr/local/bin/bash" >> /etc/shells
....
@@ -1188,14 +1188,14 @@ ELF格式比[.filename]##a.out##格式开销要大些,同时也 允许基础
最详细的使用说明文档莫过于 FreeBSD 里的联机手册了。 几乎每一个程序都会附上一份简短说明, 以介绍这个程序的的基本功能以及参数的用法。 我们能通过 `man` 命令来阅读这些说明, 而使用 `man` 命令却是简单的事情:
-[source,bash]
+[source,shell]
....
% man command
....
`command` 就是您要了解的命令命称。 举个例子,想了解 `ls` 命令就输入:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1214,7 +1214,7 @@ ELF格式比[.filename]##a.out##格式开销要大些,同时也 允许基础
在某些情况下,同样的主题也会出现在在线手册的不同章节。 举个例子,系统里有``chmod``这个用户命令,而又有个 `chmod()` 系统调用。 在这种情形下,您应当向 `man` 命令指定需要的内容:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1223,7 +1223,7 @@ ELF格式比[.filename]##a.out##格式开销要大些,同时也 允许基础
如果您已经知道命令的名字,只是不知道要怎样使用的话,那就比较好办。 但您连名字都不知道呢?这个时候您就可以利用 `man` 的搜寻功能, 它会在手册的介绍部份找寻您要搜寻的关键字,它的选项是 `-k`:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1232,7 +1232,7 @@ ELF格式比[.filename]##a.out##格式开销要大些,同时也 允许基础
有时您会看到[.filename]##/usr/bin## 下有许多命令但不知他们的用途, 您只需这样做:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f *
@@ -1240,7 +1240,7 @@ ELF格式比[.filename]##a.out##格式开销要大些,同时也 允许基础
或者这样做
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis *
@@ -1255,7 +1255,7 @@ FreeBSD许多应用软件以及实用工具来自Free软件基金会(FSF)。 作
使用 man:info[1] 这个命令只需简单地输入:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/zh-cn/books/handbook/boot/_index.adoc b/documentation/content/zh-cn/books/handbook/boot/_index.adoc
index 3e8dff1864..109dbeebd3 100644
--- a/documentation/content/zh-cn/books/handbook/boot/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/boot/_index.adoc
@@ -98,7 +98,7 @@ toc::[]
[example]
====
-[source,bash]
+[source,shell]
....
F1 DOS
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
目前已经知道一些其它操作系统,特别是 Windows(R) , 会以自己的 MBR 覆盖现有 MBR。 如果发生了这种事情, 或者您想用 FreeBSD 的 MBR 覆盖现有的 MBR,您可以使用以下的命令:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -150,7 +150,7 @@ label=FreeBSD
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -161,7 +161,7 @@ boot:
如果您要更改已安装的 [.filename]#boot1# 和 [.filename]#boot2#,请使用命令 man:bsdlabel[8]。
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -241,14 +241,14 @@ unload::
* 只是简单的引导默认内核,不同的是进入单用户模式:
+
-[source,bash]
+[source,shell]
....
boot -s
....
* 卸载默认内核和模块,然后加载旧的 (或者其它) 的内核:
+
-[source,bash]
+[source,shell]
....
unload
@@ -261,7 +261,7 @@ unload::
====
使用以下命令加载常用的模块和另一个内核:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -272,7 +272,7 @@ boot-conf
* 加载内核配置脚本:
+
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -389,14 +389,14 @@ Device hints 也可以在 <<boot-loader, 第三阶段的boot loader>> 的命令
文件 [.filename]#/boot/device.hints# 的语法是一行一个变量, 使用"#"作为注释标记。 每行是按照如下方式组织的:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
第三阶段 boot loader 的语法是:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/zh-cn/books/handbook/bsdinstall/_index.adoc b/documentation/content/zh-cn/books/handbook/bsdinstall/_index.adoc
index d5ba85a9f0..ca5a3f7f9f 100644
--- a/documentation/content/zh-cn/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/bsdinstall/_index.adoc
@@ -246,7 +246,7 @@ FreeBSD 9.0-RELEASE 和更高版本的记忆棒映像文件可以在 `ftp://ftp.
+
扩展名为 [.filename]#.img# 的映像文件 _不是_ 一种普通的文件。 它是对记忆棒上完整内容所做的 _映像_, 因此 _不能_ 只是像普通文件一样简单的复制, 而应使用 man:dd[1] 将其直接写入目标设备:
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -312,7 +312,7 @@ commit your changes?
. FreeBSD 将开始启动。 如果使用的是CDROM, 则会看到类似这样的显示(版本信息可以忽略):
+
-[source,bash]
+[source,shell]
....
Booting from CD-ROM...
645MB medium detected
@@ -350,7 +350,7 @@ image::bsdinstall-boot-loader-menu.png[]
在大多数机器上, 开机时按住 kbd:[C] 键可以从 CD 启动。 除此之外, 按住 kbd:[Command+Option+O+F], 在非 Apple(R) 键盘上是 kbd:[Windows+Alt+O+F], 然后在出现的提示符 `0 >` 下输入
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -363,7 +363,7 @@ image::bsdinstall-boot-loader-menu.png[]
重启系统后等待引导信息出现, 虽然其具体内容取决于机器型号, 但应该会类似:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -373,7 +373,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
如果此时系统已经开始从硬盘启动, 那么请按下 kbd:[L1+A] 或 kbd:[Stop+A] 或在串口控制台发送 `BREAK`(在 man:tip[1] 或 man:cu[1] 中是 `~#`)以进入 PROM 提示符, 它应该如下所示:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -395,7 +395,7 @@ ok {0} <.>
[[bsdinstall-dev-probe]]
.典型的设备探测结果
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1134,7 +1134,7 @@ FreeBSD 启动时会显示许多相关信息, 正常情况下屏幕会不断
典型的启动信息(此处略去了版本信息):
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -1337,7 +1337,7 @@ FreeBSD 默认情况下并不会安装图形环境, 但提供了多种不同
在 i386、 amd64 和 ia64 平台的启动过程中, FreeBSD 广泛使用了 ACPI 服务来检测系统配置, 不幸的是 ACPI 驱动和主板 BIOS 中仍存在一些 bug。 在第三阶段引导加载器中, 可以通过设置 `hint.acpi.0.disabled` 来禁用 ACPI:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/zh-cn/books/handbook/config/_index.adoc b/documentation/content/zh-cn/books/handbook/config/_index.adoc
index efc26ed1bc..c5d53bf63f 100644
--- a/documentation/content/zh-cn/books/handbook/config/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/config/_index.adoc
@@ -274,7 +274,7 @@ HOME=/var/log
要安装刚写好的用户 [.filename]#crontab#, 首先使用最习惯的编辑器来创建一个符合要求格式的文件,然后用 `crontab` 程序来完成。最常见的用法是:
-[source,bash]
+[source,shell]
....
% crontab crontab-file
....
@@ -292,7 +292,7 @@ HOME=/var/log
在 2002 年, FreeBSD 整合了来自 NetBSD 的 [.filename]#rc.d# 系统, 并通过它来完成系统的初始化工作。 用户要注意在 [.filename]#/etc/rc.d# 目录下的文件。 这里面的许多文件是用来管理基础服务的, 它们可以通过 `start`、 `stop`, 以及 `restart` 选项来控制。 举例来说, man:sshd[8] 可以通过下面的命令来重启:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd restart
....
@@ -308,14 +308,14 @@ natd_enable="YES"
由于 [.filename]#rc.d# 系统在系统启动/关闭时首先启动/停止服务,如果设置了适当的 [.filename]#/etc/rc.conf# 变量,标准的 `start`、`stop` 和 `restart` 选项将会执行他们的动作。例如 `sshd restart` 命令只在 [.filename]#/etc/rc.conf# 中的 `sshd_enable` 设置成 `YES` 的时候工作。不管是否在 [.filename]#/etc/rc.conf# 中设置了,要 `start`、`stop` 或者 `restart` 一个服务,命令前可以加上一个"one"前缀。例如要不顾当前 [.filename]#/etc/rc.conf# 的设置重新启动 `sshd`,执行下面的命令:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd onerestart
....
用选项 `rcvar` 可以简单来的检查 [.filename]#/etc/rc.conf# 中用适当的 [.filename]#rc.d# 脚本启动的服务是否被启用。从而管理员可以运行这样的程序来检查 `sshd` 是否真的在 [.filename]#/etc/rc.conf# 中被启动了:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd rcvar
# sshd
@@ -329,7 +329,7 @@ $sshd_enable=YES
为了确定一个服务是否真的在运行,可以用 `status` 选项。例如验证 `sshd` 是否真的启动了:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd status
sshd is running as pid 433.
@@ -339,7 +339,7 @@ sshd is running as pid 433.
[.filename]#rc.d# 系统不仅用于网络服务, 它也为系统初始化中的多数过程提供支持。 比如 [.filename]#bgfsck# 文件, 当它被执行时, 将会给出下述信息:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -374,7 +374,7 @@ Starting background file system checks in 60 seconds.
如果您的网卡很常见的话, 大多数时候您不需要为驱动浪费精力。 常用的网卡在 [.filename]#GENERIC# 内核中已经支持了, 所以您的网卡在启动时就会显示出来,像是:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -426,21 +426,21 @@ man:ndis[4] 驱动在设计时主要提供了 PCI、 CardBus 和 PCMCIA 设备
接下来的步骤是将二进制形式的驱动程序组装成内核模块。 要完成这一任务, 需要以 `root` 用户的身份执行 man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
man:ndisgen[8] 是一个交互式的程序, 它会提示您输入所需的一些其他的额外信息; 这些工作完成之后, 它会在当前目录生成一个内核模块文件, 这个文件可以通过下述命令来加载:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
除了刚刚生成的内核模块之外, 还必须加载 [.filename]#ndis.ko# 和 [.filename]#if_ndis.ko# 这两个内核模块, 在您加载需要 man:ndis[4] 的模块时, 通常系统会自动完成这一操作。 如果希望手工加载它们, 则可以使用下列命令:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -450,7 +450,7 @@ man:ndisgen[8] 是一个交互式的程序, 它会提示您输入所需的一
现在请查看 man:dmesg[8] 来了解是否发生了错误。 如果一切正常, 您会看到类似下面的输出:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -474,7 +474,7 @@ W32DRIVER_SYS_load="YES"
要显示您系统上的网络接口的配置,输入下列命令:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -519,7 +519,7 @@ FreeBSD 使用内核引导时检测到的网卡驱动顺序来命名网卡。例
如果 man:ifconfig[8] 的输出显示了类似于:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -550,7 +550,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
如果计划通过这台机器访问 Internet, 您还需要手工配置默认网关和域名解析服务器:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -562,7 +562,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
对 [.filename]#/etc/rc.conf# 做了必要的修改之后应该重启系统以应用对接口的修改, 并且确认系统重启后没有任何配置错误。 另外您也可以重启网络系统:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/netif restart
....
@@ -571,7 +571,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
如果在 [.filename]#/etc/rc.conf# 中配置了默认网关, 还需要运行下面的命令:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing restart
....
@@ -586,7 +586,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
首先测试本地接口:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -603,7 +603,7 @@ round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
现在我们应该 ping 局域网内的其他机器:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -901,14 +901,14 @@ man:sysctl[8] 是一个允许您改变正在运行中的 FreeBSD 系统的接口
查看所有可读变量:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
读一个指定的变量,例如 `kern.maxproc`:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -916,7 +916,7 @@ kern.maxproc: 1044
要设置一个指定的变量,直接用 _variable_=_value_ 这样的语法:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -933,7 +933,7 @@ sysctl 变量的设置通常是字符串、数字或者布尔型。 (布尔型
例如一些膝上型电脑的 man:cardbus[4] 设备不会探测内存范围,并且产生看似于这样的错误:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -981,7 +981,7 @@ FreeBSD 4.3 中默认将 IDE 的写缓存关掉了。 这会降低到 IDE 磁盘
man:tunefs[8] 程序能够用来很好的调整文件系统。 这个程序有很多不同的选项,但是现在只介绍 Soft Updates 的打开和关闭,这样做:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1067,7 +1067,7 @@ vnode 是对文件或目录的一种内部表达。 因此, 增加可以被操
要查看当前在用的 vnode 数量:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1075,7 +1075,7 @@ vfs.numvnodes: 91349
要查看最大可用的 vnode 数量:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1117,14 +1117,14 @@ device md # Memory "disks"
+
. 创建一个交换文件([.filename]#/usr/swap0#):
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
....
+
. 赋予它([.filename]#/usr/swap0#)一个适当的权限:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1138,7 +1138,7 @@ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.
+
. 通过重新启动机器或下面的命令使交换文件立刻生效:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1182,7 +1182,7 @@ ACPI 和 APM 不能共存, 相反, 它们应分开使用。 后加载的驱
ACPI 可以用来让系统进入休眠模式, 方法是使用 man:acpiconf[8] 的 `-s` 参数, 加上一个 `1-5` 的数字。 多数用户会希望使用 `1` 或 `3` (挂起到 RAM)。 而 `5` 则会让系统执行与下列命令效果类似的软关机:
-[source,bash]
+[source,shell]
....
# halt -p
....
@@ -1212,7 +1212,7 @@ ACPI 是一种全新的发现设备、 管理电源使用、 以及提供过去
* 来自 ``fsysctl hw.acpi``的输出。 这也是找到您的系统所提供的功能的一种好办法。
* 能够得到您的 _ACPI Source Language_ (ASL) 的 URL。 _不要_ 把 ASL 直接发到邮件列表中, 因为它们可能非常大。 为了得到 ASL 您可以运行这个命令:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
@@ -1245,7 +1245,7 @@ ACPI 提供了三种休眠到 RAM (STR) 的状态, `S1`-`S3`, 以及一个
可以使用 `sysctl hw.acpi` 来查看与休眠有关的项目。 这里是我的 Thinkpad 上得到的结果。
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1257,7 +1257,7 @@ hw.acpi.s4bios: 0
休眠和唤醒操作最常见的问题是某些设备驱动程序不会保存、 恢复或正确地重新初始化其固件、 寄存器或设备内存。 尝试调试这些问题时, 首先可以尝试:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1301,7 +1301,7 @@ hw.acpi.s4bios: 0
最常见的问题是 BIOS 制造商提供的不正确 (甚至完全错误的!) 字节代码。 这通常会以类似下面这样的内核消息显示在控制台上:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1311,7 +1311,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
最方便的初步检查是尝试重新编译 ASL 来看看是否有错误。 通常可以忽略这一过程中产生的警告, 但错误一般就都是 bug, 它们通常就是导致 ACPI 无法正常工作的原因。 要重新编译您的 ASL, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1335,7 +1335,7 @@ ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
在定制 [.filename]#your.asl# 之后, 您可以通过下面的命令编译它:
-[source,bash]
+[source,shell]
....
# iasl your.asl
....
@@ -1359,7 +1359,7 @@ ACPI 驱动程序提供了非常灵活的调试机制。 这允许您指定一
调试输出默认并不开启。 要起用它, 您需要在内核设置中添加 `options ACPI_DEBUG`, 如果您的内核中编入了 ACPI 的话。 您还可以在 [.filename]#/etc/make.conf# 中加入 `ACPI_DEBUG=1` 来在全局起用它。 如果它只是模块, 您可以用下面的方法来重新编译 [.filename]#acpi.ko#:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi
&& make clean &&
diff --git a/documentation/content/zh-cn/books/handbook/cutting-edge/_index.adoc b/documentation/content/zh-cn/books/handbook/cutting-edge/_index.adoc
index e8c28a4ad9..1d5090f28f 100644
--- a/documentation/content/zh-cn/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/cutting-edge/_index.adoc
@@ -151,7 +151,7 @@ MergeChanges /etc/ /var/named/etc/
安全补丁存储在远程的机器上, 可以使用如下的命令下载并安装:
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -168,7 +168,7 @@ MergeChanges /etc/ /var/named/etc/
如果出现了错误,可以使用下面的 `freebsd-update` 命令回退到上一次的修改:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
....
@@ -194,7 +194,7 @@ MergeChanges /etc/ /var/named/etc/
这个过程会删除旧的目标文件和库, 这将使大部分的第三方应用程序无法删除。 建议将所有安装的 ports 先删除然后重新安装,或者稍后使用 package:ports-mgmt/portupgrade[] 工具升级。 大多数用户将会使用如下命令尝试编译:
-[source,bash]
+[source,shell]
....
# portupgrade -af
....
@@ -206,7 +206,7 @@ MergeChanges /etc/ /var/named/etc/
* 如果只联编过一次内核, 则位于 [.filename]#/boot/kernel.old# 中的内核, 就是 [.filename]#GENERIC# 的那一个。 只需将这个目录改名为 [.filename]#/boot/GENERIC# 即可。
* 假如能够直接接触机器, 则可以通过 CD-ROM 介质来安装 [.filename]#GENERIC# 内核。 将安装盘插入光驱, 并执行下列命令:
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/X.Y-RELEASE/kernels
@@ -216,7 +216,7 @@ MergeChanges /etc/ /var/named/etc/
您需要将 [.filename]#X.Y-RELEASE# 替换为您正在使用的版本。 [.filename]#GENERIC# 内核默认情况下会安装到 [.filename]#/boot/GENERIC#。
* 如果前面的方法都不可用, 还可以使用源代码来重新联编和安装 [.filename]#GENERIC# 内核:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
@@ -230,14 +230,14 @@ MergeChanges /etc/ /var/named/etc/
重大和次要的更新可以由 `freebsd-update` 命令后指定一个发行版本来执行, 举例来说,下面的命令将帮助你升级到 FreeBSD 8.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 8.1-RELEASE upgrade
....
在执行这个命令之后,`freebsd-update` 将会先解析配置文件和评估当前的系统以获得更新系统所需的必要信息。 然后便会显示出一个包含了已检测到与未检测到的组件列表。 例如:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
@@ -261,7 +261,7 @@ Does this look reasonable (y/n)? y
当使用定制内核时, 前面的步骤会产生类似下面的警告:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@@ -280,14 +280,14 @@ before running "/usr/sbin/freebsd-update install"
一旦这个步骤完成后,使用如下的命令将升级后的文件安装到磁盘上。
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
内核和内核模块会首先被打上补丁。 此时必须重新启动计算机。 如果您使用的是定制的内核, 请使用 man:nextboot[8] 命令来将下一次用于引导系统的内核 [.filename]#/boot/GENERIC# (它会被更新):
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -300,14 +300,14 @@ before running "/usr/sbin/freebsd-update install"
现在可以用更新后的内核引导系统了:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
在系统重新上线后,需要再次运行 `freebsd-update`。 升级的状态被保存着,这样 `freebsd-update` 就无需重头开始,但是会删除所有旧的共享库和目标文件。 执行如下命令继续这个阶段的升级:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -319,7 +319,7 @@ before running "/usr/sbin/freebsd-update install"
现在需要重新编译和安装第三方软件。 这么做的原因是某些已安装的软件可能依赖于在升级过程中已删除的库。 可使用 package:ports-mgmt/portupgrade[] 自动化这个步骤,以如下的命令开始:
-[source,bash]
+[source,shell]
....
# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
@@ -330,7 +330,7 @@ before running "/usr/sbin/freebsd-update install"
一旦这个完成了以后,再最后一次运行 `freebsd-update` 来结束升级过程。 执行如下命令处理升级中的所有细节:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -344,7 +344,7 @@ before running "/usr/sbin/freebsd-update install"
`freebsd-update` 工具也可被用来对着一个已知完好的 FreeBSD 拷贝测试当前的版本。 这个选项评估当前的系统工具,库和配置文件。 使用以下的命令开始对照:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -359,7 +359,7 @@ before running "/usr/sbin/freebsd-update install"
这个文件中有非常长的行,但输出的格式很容易分析。 举例来说,要获得一份与发行版中不同哈希值的文件列表, 已可使用如下的命令:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -377,7 +377,7 @@ before running "/usr/sbin/freebsd-update install"
FreeBSD 基本系统也包括了一个更新 Ports Collection 的工具: man:portsnap[8]。在运行之后,它会连上一个远程网站, 校验安全密钥,然后下载一份 Ports Collection 的拷贝。 密钥是用来校验所有下载文件的完整性,确保它们在传输是未被修改。 使用以下的命令下载最新的 Ports Collection:
-[source,bash]
+[source,shell]
....
# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
@@ -396,7 +396,7 @@ Fetching 133 new ports or files... done.
在 man:portsnap[8] 成功地完成一次 `fetch` 操作之后, 会将校验过的 Ports 套件和后续的补丁保存在本地。 首次执行 `portsnap` 之后, 你必须使用 `extract` 安装下载的文件:
-[source,bash]
+[source,shell]
....
# portsnap extract
/usr/ports/.cvsignore
@@ -415,7 +415,7 @@ Fetching 133 new ports or files... done.
使用 `portsnap update` 命令更新已安装的 Ports:
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -424,7 +424,7 @@ Fetching 133 new ports or files... done.
`fetch` 和 `extract` 或 `update` 可以作为连续的动作执行, 如下例所示:
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -465,7 +465,7 @@ FreeBSD 文档的源代码和安装版本都可以通过 CVSup 来以与基本
CVSup 工具能够下载文档源代码的原始副本, 您可使用 [.filename]#/usr/shared/examples/cvsup/doc-supfile# 文件作为配置模板来修改。 在 [.filename]#doc-supfile# 中的默认主机名是一个无效的占位主机名, 但 man:cvsup[1] 能够通过命令行来指定主机名, 因此文档源代码可以使用下面的命令从 CVSup 服务器获得:
-[source,bash]
+[source,shell]
....
# cvsup -h cvsup.FreeBSD.org -g -L 2 /usr/shared/examples/cvsup/doc-supfile
....
@@ -478,7 +478,7 @@ CVSup 工具能够下载文档源代码的原始副本, 您可使用 [.filenam
在签出源代码之后, 还可以使用另一种由 [.filename]#/usr/doc# 目录中的 [.filename]#Makefile# 支持的方法来更新它。 通过在 [.filename]#/etc/make.conf# 中配置 `SUP_UPDATE`、 `SUPHOST` 和 `DOCSUPFILE`, 可以通过运行:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update
@@ -528,7 +528,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
要更新全部 `DOC_LANG` 中定义的语言的文档, 需要执行下面的命令:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -536,7 +536,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
如果在 [.filename]#make.conf# 中配置了正确的 `DOCSUPFILE`、 `SUPHOST` 和 `SUP_UPDATE` 选项, 则可以将更新源代码和安装一步完成:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make update install clean
@@ -544,7 +544,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
如果只需要更新某个特定语言的文档, 可以在 [.filename]#/usr/doc# 中与之对应的目录中运行 man:make[1]:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make update install clean
@@ -552,7 +552,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
此外, 还可以透过 make 变量 `FORMATS` 来控制输出格式, 例如:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -586,7 +586,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
以 `root` 用户身份运行如下的命令安装文档:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -616,7 +616,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
这是一份简短的关于如何使用以上提到变量来安装 PDF 格式的匈牙利文档:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -636,7 +636,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
举例来说, 以下的命令将安装最新预编译的匈牙利语文档:
-[source,bash]
+[source,shell]
....
# pkg_add -r hu-freebsd-doc
....
@@ -651,7 +651,7 @@ FreeBSD 文档的更新和联编系统支持一些方便只更新一部分文档
任何用于更新 ports 的工具都可以被用来更新已安装的文档 port。 举例来说, 下面的命令通过 package:ports-mgmt/portupgrade[] 工具来更新已安装的匈牙利语文档二进制包。
-[source,bash]
+[source,shell]
....
# portupgrade -PP hu-freebsd-doc
....
@@ -870,7 +870,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
总结一下, 目前推荐的从源代码升级 FreeBSD 的方法是:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -886,7 +886,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
在 `installkernel` 成功完成之后, 您需要引导到单用户模式 (举例而言, 可以在加载器提示后输入 `boot -s`)。 接下来执行:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
# mount -a -t ufs
@@ -936,7 +936,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
解决办法是通过使用 `-p` 选项以构建前 (pre-buildworld) 模式运行 man:mergemaster[8]。 这表示只对比那些对于成功执行 `buildworld` 或 `installworld` 起关键作用的文件。 在第一次这样做时, 如果使用的是早期的不支持 `-p` 的 `mergemaster` 版本的话, 使用源码中的新版本即可。
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/mergemaster
# ./mergemaster.sh -p
@@ -947,7 +947,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
如果您是个偏执狂 (paranoid), 您可以检查您的系统看看哪个文件属于您已更名或删除了的那个组。
-[source,bash]
+[source,shell]
....
# find / -group GID -print
....
@@ -964,7 +964,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
从运行的系统里,以超级用户方式执行:
-[source,bash]
+[source,shell]
....
# shutdown now
....
@@ -973,7 +973,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
除此之外, 也可以重启系统, 并在启动菜单处选择 "single user"(单用户) 选项。 这样系统将以单用户模式启动。 接着, 在 shell 提示符处执行:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -u /
@@ -987,7 +987,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
====
如果您的 CMOS 时钟是设置为本地时间,而不是 GMT (如果 man:date[1] 命令输出不能显示正确的时间和地区也确有其事), 您可能也需要执行下边的命令:
-[source,bash]
+[source,shell]
....
# adjkerntz -i
....
@@ -1004,7 +1004,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
[.filename]#/usr/obj# 中的某些文件可能设置了不可改标记 (详情参见 man:chflags[1]), 需要首先去掉这些标志。
-[source,bash]
+[source,shell]
....
# cd /usr/obj
# chflags -R noschg *
@@ -1020,7 +1020,7 @@ FreeBSD-STABLE 和 FreeBSD-CURRENT 分支自然是 _发展中的_。为 FreeBSD
这样做最简单的办法是使用 man:script[1] 命令,同是带上参数指定存放输出的文件名。 您应在重建系统之前立即这样做,然后在过程完成时输入 `exit`。
-[source,bash]
+[source,shell]
....
# script /var/tmp/mw.out
Script started, output file is /var/tmp/mw.out
@@ -1037,7 +1037,7 @@ Script done, …
您必须在[.filename]##/usr/src##目录里边:
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
@@ -1048,7 +1048,7 @@ Script done, …
输入的一般命令格式如下:
-[source,bash]
+[source,shell]
....
# make -x -DVARIABLE target
....
@@ -1057,7 +1057,7 @@ Script done, …
`-D_VARIABLE_` 传递一个变量给 [.filename]#Makefile#。这些变量控制了 [.filename]#Makefile# 的行为。这些同 [.filename]#/etc/make.conf# 设置的变量一样, 只是提供了另一种设置它们的方法。
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE target
....
@@ -1077,7 +1077,7 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
大部分的时间不需要向 man:make[1] 传递参数,因此您的命令看起来可能象这样:
-[source,bash]
+[source,shell]
....
# make target
....
@@ -1094,7 +1094,7 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
运行
-[source,bash]
+[source,shell]
....
# make buildworld
....
@@ -1103,7 +1103,7 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
对典型的单 CPU 机器, 可以使用:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld
....
@@ -1129,7 +1129,7 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
====
如果您想建立一个定制内核,而且已经有了配置文件, 只需象这样使用 `KERNCONF=MYKERNEL:`
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
@@ -1152,7 +1152,7 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
执行
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installworld
@@ -1164,14 +1164,14 @@ _目标 (target)_ 告诉 man:make[1] 什么该做。每个 [.filename]#Makefile#
举例,您执行了:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE buildworld
....
您就必须使用:
-[source,bash]
+[source,shell]
....
# make -DNO_PROFILE installworld
....
@@ -1218,7 +1218,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
====
虽然,理论上,没有什么会自动访问这个目录, 事情还是做稳操胜当一点。复制已有 [.filename]#/etc# 到一个安全的地方,如:
-[source,bash]
+[source,shell]
....
# cp -Rp /etc /etc.old
....
@@ -1228,7 +1228,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
您需要建立一个虚目录 (a dummy set of directories) 来安装新的 [.filename]#/etc# 和其它文件。 [.filename]#/var/tmp/root# 是个不错的选择, 除此之外,还有一些子目录是需要的。
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root
# cd /usr/src/etc
@@ -1237,7 +1237,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
这样就建好了需要的目录结构,然后安装文件。在 [.filename]#/var/tmp/root# 下建立的大部分子目录是空的, 而且要删除掉。最简单的方式是:
-[source,bash]
+[source,shell]
....
# cd /var/tmp/root
# find -d . -type d | xargs rmdir 2>/dev/null
@@ -1251,7 +1251,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
最简单的方式是使用 man:diff[1] 去比较两个文件:
-[source,bash]
+[source,shell]
....
# diff /etc/shells /var/tmp/root/etc/shells
....
@@ -1270,7 +1270,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
. 像平常一样建立系统 (Make the world)。当您想更新 [.filename]#/etc# 和其它目录里, 给目标目录一个含有当前日期的名字。假如您是 1998 年 2 月 14 日做的,您可以执行下边的:
+
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-19980214
# cd /usr/src/etc
@@ -1284,7 +1284,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
. 在您下载了最新版的源码并改过后,执行第一步。 这样将得到一个新的目录,可能叫做 [.filename]#/var/tmp/root-19980221# (如果等了一周做的升级)。
. 您现在能看到两个目录间的不同了---在隔周的时间里使用 man:diff[1] 建立递归 diff 产生的不同:
+
-[source,bash]
+[source,shell]
....
# cd /var/tmp
# diff -r root-19980214 root-19980221
@@ -1293,7 +1293,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
一般情况下,这两种间的不同处比 [.filename]#/var/tmp/root-19980221/etc# 和 [.filename]#/etc# 之间的不同要小很多。 因为不同点更小,也就更容易把这些变化移到您的 [.filename]#/etc# 目录里边。
. 您现在可以删除早先的两个 [.filename]#/var/tmp/root-*# 目录:
+
-[source,bash]
+[source,shell]
....
# rm -rf /var/tmp/root-19980214
....
@@ -1303,7 +1303,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
您可以使用 man:date[1] 自动产生目录的名称:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/root-`date "+%Y%m%d"`
....
@@ -1315,7 +1315,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
现在完成了。在您检查所有内容都放置正确后, 您可以重启系统了。只是简单的 man:shutdown[8] 可以这样做:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
@@ -1326,7 +1326,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
如果还有轻微的错误,可以轻易地重建系统的选定部分。 例如,在部分升级或合并 [.filename]#/etc# 时,您不小心删除了 [.filename]#/etc/magic#,man:file[1] 命令就会停止工作。这种情况下,执行下边进行修复:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.bin/file
# make all install
@@ -1339,7 +1339,7 @@ man:mergemaster[8] 会给您显示每个文件的不同处, 这样您就可以
这个不好说,因为要看变化的情况。如,如果您刚运行了 CVSup,并得到下边更新的文件:
-[source,bash]
+[source,shell]
....
src/games/cribbage/instr.c
src/games/sail/pl_main.c
@@ -1378,7 +1378,7 @@ _一般而言_ (当然这并不是硬性规定), `make buildworld` 的过程
如果您正处于最后一个阶段, 并且了解它 (因为您已经看过了所保存的输出) 则可以 (相当安全地) 做:
-[source,bash]
+[source,shell]
....
… 问题修复 …
# cd /usr/src
@@ -1389,7 +1389,7 @@ _一般而言_ (当然这并不是硬性规定), `make buildworld` 的过程
在"make buildworld"的输出中如果看到如下信息:
-[source,bash]
+[source,shell]
....
--------------------------------------------------------------
Building everything..
@@ -1410,7 +1410,7 @@ Building everything..
* 传递 `-j__n__` 选项给 man:make[1] 以便并发运行多个进程。 这样就不会考虑您的是否是单个或多个处理器机器。
* 存放 [.filename]#/usr/src# 的文件系统可以使用 `noatime` 选项来挂接 (或重新挂接)。 这样会防止文件系统记录文件的存取时间。 您可能并不需要这些信息。
+
-[source,bash]
+[source,shell]
....
# mount -u -o noatime /usr/src
....
@@ -1431,7 +1431,7 @@ Building everything..
如果在这个文件系统里 [.filename]#/usr/obj# 是很关键的,这不是问题。如果您有其它有价值的数据在同一个文件系统, 那么在您使用这个选项这前,确认备份一下。
====
+
-[source,bash]
+[source,shell]
....
# mount -u -o async /usr/obj
....
@@ -1446,7 +1446,7 @@ Building everything..
绝对确信您的环境没有先前 build 留下的残余。这点够简单。
-[source,bash]
+[source,shell]
....
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
@@ -1468,7 +1468,7 @@ Building everything..
我们假定您已经按照 <<canonical-build>> 介绍的步骤完成了更新操作。 在 `make installworld` 和 `mergemaster` 命令完成之后, 您应使用下面的命令检查系统中是否存在过时的文件或库:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make check-old
@@ -1476,7 +1476,7 @@ Building everything..
如果有过时的文件, 则可以用下面的命令来删除:
-[source,bash]
+[source,shell]
....
# make delete-old
....
@@ -1489,14 +1489,14 @@ Building everything..
在删除文件时, 系统会针对每个文件都给出提示。 您可以跳过这些提示, 并让系统自动完成删除操作, 方法是使用 make 变量 `BATCH_DELETE_OLD_FILES`, 具体做法如下:
-[source,bash]
+[source,shell]
....
# make -DBATCH_DELETE_OLD_FILES delete-old
....
您也可以用 `yes` 命令和管道来达到类似的目的:
-[source,bash]
+[source,shell]
....
# yes|make delete-old
....
@@ -1510,7 +1510,7 @@ Building everything..
过时的动态连接库可能会与新库冲突, 导致类似这样的警告消息:
-[source,bash]
+[source,shell]
....
/usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libtiff.so, may conflict with libz.so.5
/usr/bin/ld: warning: librpcsvc.so.4, needed by /usr/local/lib/libXext.so, may conflict with librpcsvc.so.5
@@ -1518,7 +1518,7 @@ Building everything..
要解决这样的问题, 需要确认安装这个库的 port:
-[source,bash]
+[source,shell]
....
# pkg_info -W /usr/local/lib/libtiff.so
/usr/local/lib/libtiff.so was installed by package tiff-3.9.4
@@ -1528,7 +1528,7 @@ Building everything..
接着卸载、 重新联编并安装 port。 您可以使用 package:ports-mgmt/portmaster[] 或 package:ports-mgmt/portupgrade[] 工具来自动完成这些操作。 在确认所有的 port 都重新联编, 并且不再使用旧库以后, 您就可以用下面的命令来删除它们了:
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
diff --git a/documentation/content/zh-cn/books/handbook/desktop/_index.adoc b/documentation/content/zh-cn/books/handbook/desktop/_index.adoc
index e56c8a7cf3..cf50b594f0 100644
--- a/documentation/content/zh-cn/books/handbook/desktop/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/desktop/_index.adoc
@@ -114,21 +114,21 @@ Firefox 是一个现代, 自由, 开放源代码稳定的浏览器, 并完
您可以通过输入下面的命令来安装预编译的包:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox
....
这将会安装 Firefox 7.0, 如果希望运行 Firefox 3.6, 则应使用下面的命令:
-[source,bash]
+[source,shell]
....
# pkg_add -r firefox36
....
如果你希望从源代码编译的话, 可以通过 Ports Collection 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -146,7 +146,7 @@ Firefox 是一个现代, 自由, 开放源代码稳定的浏览器, 并完
通过 Ports 套件来安装 OpenJDK 6, 输入下面的命令:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/openjdk6
# make install clean
@@ -154,7 +154,7 @@ Firefox 是一个现代, 自由, 开放源代码稳定的浏览器, 并完
接下来安装 package:java/icedtea-web[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/java/icedtea-web
# make install clean
@@ -166,7 +166,7 @@ Firefox 是一个现代, 自由, 开放源代码稳定的浏览器, 并完
如果浏览器找不到插件, 则用户可能必须运行下面的命令, 并重启浏览器:
-[source,bash]
+[source,shell]
....
% ln -s /usr/local/lib/IcedTeaPlugin.so \
$HOME/.mozilla/plugins/
@@ -200,7 +200,7 @@ Adobe(R) Flash(TM) 插件并没有直接提供其 FreeBSD 版本。 不过,
+
这个版本需要创建一个符号链接:
+
-[source,bash]
+[source,shell]
....
# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
/usr/local/lib/browser_plugins/
@@ -211,14 +211,14 @@ Adobe(R) Flash(TM) 插件并没有直接提供其 FreeBSD 版本。 不过,
按照 FreeBSD 版本, 在安装了正确的 Flash(TM) port 之后, 插件必须由每个用户运行 `nspluginwrapper` 安装:
-[source,bash]
+[source,shell]
....
% nspluginwrapper -v -a -i
....
如果希望播放 Flash(TM) 动画的话,Linux(R) 的进程文件系统, man:linprocfs[5] 必须挂载于 [.filename]#/usr/compat/linux/proc#。 可以通过以下的命令实现:
-[source,bash]
+[source,shell]
....
# mount -t linprocfs linproc /usr/compat/linux/proc
....
@@ -239,14 +239,14 @@ Swfdec 是一个用以解码和渲染 Flash(TM) 动画的库。 Swfdec-Mozilla
如果你不能或者不想编译安装,可以通过网络安装二进制包:
-[source,bash]
+[source,shell]
....
# pkg_add -r swfdec-plugin
....
如果二进制包还不可用,你可以通过 Ports Collection 编译安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/swfdec-plugin
# make install clean
@@ -260,14 +260,14 @@ Opera 是一个功能齐全, 并符合标准的浏览器。 它还提供了内
要使用 Opera 的 FreeBSD 版本来浏览网页,安装以下的 package:
-[source,bash]
+[source,shell]
....
# pkg_add -r opera
....
有些 FTP 站点没有所有版本的 package, 但仍然可以通过 Ports 套件来安装 Opera:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -277,7 +277,7 @@ Opera 是一个功能齐全, 并符合标准的浏览器。 它还提供了内
Adobe(R) Flash(TM) 插件目前并没有提供 FreeBSD 专用的版本。 不过, 可以使用其 Linux(R) 版本的插件。 要安装这个版本, 需要安装 package:www/linux-f10-flashplugin10[] port, 以及 package:www/opera-linuxplugins[]:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/linux-f10-flashplugin10
# make install clean
@@ -346,14 +346,14 @@ KDE 社区提供了一套办公套件, 它能用在桌面环境。它包含四
使用 package 来安装 KOffice,安装细节如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r koffice
....
如果没有可用的 package,您可以使用 Ports Collection 安装。 安装 KDE3 的 KOffice 版本,如下:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/koffice-kde3
# make install clean
@@ -367,14 +367,14 @@ AbiWord 可以导入或输出很多文件格式, 包括一些象 Microsoft(R)
AbiWord 也有 package 的安装方式。您可以用以下方法安装:
-[source,bash]
+[source,shell]
....
# pkg_add -r abiword
....
如果没有可用的 package,它也可以从 Ports Collection 编译。ports collection 应该是最新的。它的安装方式如下:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -386,14 +386,14 @@ AbiWord 也有 package 的安装方式。您可以用以下方法安装:
您可以用下列命令安装:
-[source,bash]
+[source,shell]
....
# pkg_add -r gimp
....
如果您在 FTP 站点没有找到这个 package,您也可以使用 Ports Collection 的方法安装。ports 的 http://www.FreeBSD.org/ports/graphics.html[graphics] 目录也包含有 Gimp 手册。 以下是安装它们的方法:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -414,7 +414,7 @@ OpenOffice.org 的字处理程序使用 XML 文件格式使它增加了可移植
安装 OpenOffice.org 方法如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r openoffice.org
....
@@ -426,7 +426,7 @@ OpenOffice.org 的字处理程序使用 XML 文件格式使它增加了可移植
装好 package 之后, 您只需输入下面的命令就能运行 OpenOffice.org 了:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -438,7 +438,7 @@ OpenOffice.org 的字处理程序使用 XML 文件格式使它增加了可移植
如果没有可用的 OpenOffice.org package,您仍旧可以选择编译 port。然而, 您必须记住它的要求以及大量的磁盘空间和相当长的时间编译。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice.org-3
# make install clean
@@ -448,7 +448,7 @@ OpenOffice.org 的字处理程序使用 XML 文件格式使它增加了可移植
====
如果希望联编一套进行过本地化的版本, 将前述命令行改为:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -458,7 +458,7 @@ OpenOffice.org 的字处理程序使用 XML 文件格式使它增加了可移植
一旦完成上述操作, 就可以通过下面的命令来运行 OpenOffice.org 了:
-[source,bash]
+[source,shell]
....
% openoffice.org
....
@@ -471,7 +471,7 @@ LibreOffice 的字处理程序使用了内建的 XML 文件格式, 以期获
如果希望通过预编译的二进制包安装 LibreOffice, 执行:
-[source,bash]
+[source,shell]
....
# pkg_add -r libreoffice
....
@@ -483,7 +483,7 @@ LibreOffice 的字处理程序使用了内建的 XML 文件格式, 以期获
装好软件包之后, 需要用下面的命令来安装 LibreOffice:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -495,7 +495,7 @@ LibreOffice 的字处理程序使用了内建的 XML 文件格式, 以期获
如果 LibreOffice 软件包不可用, 您还是可以通过 port 安装。 不过, 请注意编译它需要相当多的磁盘空间和时间。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -505,7 +505,7 @@ LibreOffice 的字处理程序使用了内建的 XML 文件格式, 以期获
====
如果希望编译本地化的版本, 把前面的命令换成:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -515,7 +515,7 @@ LibreOffice 的字处理程序使用了内建的 XML 文件格式, 以期获
完成联编和安装之后, 就可以用下面的命令运行 LibreOffice 了:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -562,7 +562,7 @@ UNIX(R) 系统出现以来, 一些新的文档格式开始流行起来; 它
要从 Ports collection 安装 Acrobat Reader(R) 8, 只需:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/acroread8
# make install clean
@@ -576,14 +576,14 @@ gv 是 PostScript(R) 和 PDF 文件格式查看器。它源自 ghostview 因为
安装 gv package,如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r gv
....
如果您无法获取预编译的包, 则可以使用 Ports Collection:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -595,14 +595,14 @@ gv 是 PostScript(R) 和 PDF 文件格式查看器。它源自 ghostview 因为
安装 Xpdf package,使用如下命令:
-[source,bash]
+[source,shell]
....
# pkg_add -r xpdf
....
如果 package 不可用或者您宁愿使用 Ports Collection,如下:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -616,14 +616,14 @@ GQview 是一个图片管理器。 您可以单击鼠标来观看一个文件、
如果您想要安装 GQview package,如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r gqview
....
如果您没有可用的 package 或者您宁愿使用 Ports Collection,如下:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gqview
# make install clean
@@ -673,14 +673,14 @@ GnuCash 提供一个智能化的注册、帐户分级系统、 很多键盘快
在您的系统中安装 GnuCash 所需的命令如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnucash
....
如果 package 不可用,您可以使用 Ports Collection 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -692,14 +692,14 @@ Gnumeric 是一个电子表格程序, GNOME 桌面环境的一部分。 它以
以 package 方式安装 Gnumeric 的方法如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnumeric
....
如果 package 不可用,您可以使用 Ports Collection 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -711,14 +711,14 @@ Abacus 是一个小巧易用的电子表格程序。 它包含许多嵌入函数
以 package 的方式安装 Abacus 的方法如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r abacus
....
如果 package 不可用,您可以使用 Ports Collection 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/deskutils/abacus
# make install clean
@@ -730,14 +730,14 @@ KMyMoney 是一个 KDE环境下的个人财务管理软件。 KMyMoney 旨在提
以 package 的方式安装 KMyMoney 的方法如下:
-[source,bash]
+[source,shell]
....
# pkg_add -r kmymoney2
....
如果 package 不可用,您可以使用 Ports Collection 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney2
# make install clean
diff --git a/documentation/content/zh-cn/books/handbook/disks/_index.adoc b/documentation/content/zh-cn/books/handbook/disks/_index.adoc
index d7fb0febf4..d5fd9c14ba 100644
--- a/documentation/content/zh-cn/books/handbook/disks/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/disks/_index.adoc
@@ -152,7 +152,7 @@ sysinstall 的标签编辑器用 `e` 表示非 root 和非 swap 分区。在标
这步安装将允许磁盘与可能安装在您计算机上的其它操作系统一起 正确工作,而不会搞乱其它操作系统的分区。推荐使用这种方法来安装 新磁盘,除非您有更好的理由再使用 `dedicated` 模式!
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 #初始化新磁盘
@@ -170,7 +170,7 @@ sysinstall 的标签编辑器用 `e` 表示非 root 和非 swap 分区。在标
如果您并没有安装其它的操作系统,可以使用 `dedicated` 模式。记住这种模式可能会弄乱 Microsoft 的操作系统,但不会对它进行破坏。 它不识别找到的 IBM OS/2(R) 的 "appropriate" 分区。
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
@@ -183,7 +183,7 @@ sysinstall 的标签编辑器用 `e` 表示非 root 和非 swap 分区。在标
另一种方法:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
@@ -369,7 +369,7 @@ ar0: WARNING - mirror lost
使用 man:atacontrol[8],查看更多的信息:
-[source,bash]
+[source,shell]
....
# atacontrol list
ATA channel 0:
@@ -397,7 +397,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. 首先您应将包含故障盘的 ata 通道卸下, 以便安全地将其拆除:
+
-[source,bash]
+[source,shell]
....
# atacontrol detach ata3
....
@@ -405,7 +405,7 @@ ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
. 换上磁盘
. 重新挂接 ata 通道:
+
-[source,bash]
+[source,shell]
....
# atacontrol attach ata3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
@@ -414,21 +414,21 @@ Slave: no device present
+
. 将新盘作为热备盘加入阵列:
+
-[source,bash]
+[source,shell]
....
# atacontrol addspare ar0 ad6
....
+
. 重建阵列:
+
-[source,bash]
+[source,shell]
....
# atacontrol rebuild ar0
....
+
. 可以通过下面的命令来查看进度:
+
-[source,bash]
+[source,shell]
....
# dmesg | tail -10
[output removed]
@@ -482,7 +482,7 @@ device cd
配置好后准备进行测试:插入您的 USB 设备, 在系统信息中 (man:dmesg[8]), 应该会出现像下面的设备:
-[source,bash]
+[source,shell]
....
umass0: USB Solid state disk, rev 1.10/1.00, addr 2
GEOM: create disk da0 dp=0xc2d74850
@@ -496,7 +496,7 @@ da0: 126MB (258048 512 byte sectors: 64H 32S/T 126C)
因为 USB 设备被看作 SCSI 设备中的一个, `camcontrol` 命令也能够用来列出 USB 存储设备和系统的关联:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<Generic Traveling Disk 1.11> at scbus0 target 0 lun 0 (da0,pass0)
@@ -548,7 +548,7 @@ vfs.usermount=1
最后一步是创建将要挂接文件系统的目录。 这个目录必须是属于将要挂接文件系统的用户的。 以 `root` 身份为用户建立属于该用户的 [.filename]#/mnt/username# (此处 _username_ 应替换成用户的登录名, 并把 _usergroup_ 替换成用户所属的组):
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -556,14 +556,14 @@ vfs.usermount=1
假设已经插入了一个 USB 读卡设备, 并且系统将其识别为 [.filename]#/dev/da0s1#, 由于这些设备通常是 FAT 文件系统, 用户可以这样挂接它们:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
如果拔出设备 (必须首先将其对应的磁盘卷卸下), 则您会在系统消息缓冲区中看到类似下面的信息:
-[source,bash]
+[source,shell]
....
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
@@ -598,7 +598,7 @@ package:sysutils/[] port 包括了 man:mkisofs[8], 这是一个可以用来生
man:mkisofs[8] 程序作为 package:sysutils/cdrtools[] port 的一部分, 将生成 ISO 9660 文件系统,其中包含 UNIX(R) 命名空间中的文件名。 最简单的用法是:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -611,14 +611,14 @@ man:mkisofs[8] 程序作为 package:sysutils/cdrtools[] port 的一部分, 将
最后一个常用的选项是 `-b`。 它用来指定启动映像的位置, 用以生成 "El Torito" 启动 CD。 这个选项使用一个参数, 用以指定将写入 CD 的目录的根。 默认情况下, man:mkisofs[8] 会以常说的 "软盘模拟" 方式来创建 ISO, 因此它希望引导映像文件的尺寸恰好是 1200, 1440 或 2880 KB。 某些引导加载器, 例如 FreeBSD 发行版磁盘, 并不使用模拟模式; 这种情况下, 需要使用 `-no-emul-boot` 选项。 因此, 如果 [.filename]#/tmp/myboot# 是一个包含了启动映像文件 [.filename]#/tmp/myboot/boot/cdboot# 的可引导的 FreeBSD 系统, 您就可以使用下面的命令生成 ISO 9660 文件系统映像 [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
完成这些工作之后, 如果您的内核中配置了 [.filename]#md#, 就可以用下列命令来挂接文件系统了:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -633,7 +633,7 @@ man:mkisofs[8] 程序作为 package:sysutils/cdrtools[] port 的一部分, 将
如果用的是 ATAPI 的 CD 刻录机,可以使用 `burncd`  命令来刻录您的 CD ISO 映像文件。 `burncd` 命令是基本  系统的一部分,中以使用 [.filename]#/usr/sbin/burncd# 来安装。  用法如下:
-[source,bash]
+[source,shell]
....
# burncd -f cddevice data imagefile.iso fixate
....
@@ -647,14 +647,14 @@ man:mkisofs[8] 程序作为 package:sysutils/cdrtools[] port 的一部分, 将
`cdrecord` 有许多选项,基本用法与 `burncd` 相似。刻录一个 ISO 9660 映像文件只需这样做:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
使用 `cdrecord` 的比较巧妙的方法是找到使用的 `dev` 。要找到正确的设置,可以使用 `cdrecord` 的 `-scanbus` 标记,这会产生这样的结果:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jörg Schilling
@@ -692,14 +692,14 @@ scsibus1:
. 使用 `cdda2wav` 来解压缩音频。
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -D2,0 -B -Owav
....
+
. 使用 `cdrecord` 来写 [.filename]#.wav# 文件。
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -720,14 +720,14 @@ scsibus1:
+
请务必确认在 [.filename]#/dev# 中出现了对应的文件。 如果您发现有某些项目缺失, 则应强制系统重新识别介质:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=/dev/null count=1
....
+
. 使用 man:dd[1] 解压缩每个轨道。当解压缩文件的时候您也必须使用 一个特殊的块大小。
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0t01 of=track1.cdr bs=2352
# dd if=/dev/acd0t02 of=track2.cdr bs=2352
@@ -736,7 +736,7 @@ scsibus1:
+
. 使用 `burncd` 把解压缩的文件刻录到光盘上。您必须指定 这些文件是音频文件,这样 `burncd` 会在刻录完成时 结束光盘。
+
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd0 audio track1.cdr track2.cdr ... fixate
....
@@ -747,7 +747,7 @@ scsibus1:
您可以把数据 CD 复制成一个与之等价的映像文件, 可以使用 man:mkisofs[8] 创建这种文件, 或使用它来复制任何数据 CD。 这里给出的例子假定您的 CDROM 设备是 [.filename]#acd0#, 您应将其替换为您实际使用的 CDROM 设备。
-[source,bash]
+[source,shell]
....
# dd if=/dev/acd0 of=file.iso bs=2048
....
@@ -759,21 +759,21 @@ scsibus1:
现在您已经创建了一张标准的数据 CDROM,您或许想要 挂载来读取上面的设备。 默认情况下,man:mount[8] 假定文件系统是 `ufs` 类型的。如果您尝试下面的命令:
-[source,bash]
+[source,shell]
....
# mount /dev/cd0 /mnt
....
您会得到一条 `Incorrect super block` 的错误信息,没有挂载成功。CDROM 不是 `UFS` 文件系统,所以试图这样挂载它是 是不行的。您需要告诉 man:mount[8] 文件系统是 `ISO9660` 类型的,这样 就可以了。只需要指定 man:mount[8] 的 `-t cd9660` 选项。例如, 如果您想要挂载 CDROM 设备, [.filename]#/dev/cd0# 到 [.filename]#/mnt# 目录,您需要执行:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
注意您的设备名 (在这个例子中是 [.filename]#/dev/cd0#)可能 有所不同,取决于您的 CDROM 使用的接口。另外, `-t cd9660` 选项等同于执行 man:mount_cd9660[8]。上面的例子可以缩短 为:
-[source,bash]
+[source,shell]
....
# mount_cd9660 /dev/cd0 /mnt
....
@@ -808,14 +808,14 @@ options SCSI_DELAY=15000
您可以选择把一个文件目录刻录到 CD 上而不用 创建 ISO 9660 文件系统。有些人这么做是为了备份的 目的。这个运行的比刻录一个标准 CD 速度要快得多:
-[source,bash]
+[source,shell]
....
# burncd -f /dev/acd1 -s 12 data archive.tar.gz fixate
....
要重新找回这样刻录到 CD 上的数据, 您必须从原始设备节点读取数据:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/acd1
....
@@ -860,7 +860,7 @@ device pass
在引导过程中, 您的刻录机将会出现在内核的提示信息中, 就像这样:
-[source,bash]
+[source,shell]
....
acd0: CD-RW <MATSHITA CD-RW/DVD-ROM UJDA740> at ata1-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
@@ -871,14 +871,14 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
驱动器现在可以通过 [.filename]#/dev/cd0# 设备名访问了,例如要 挂载 CD-ROM 到 [.filename]#/mnt#,只需要键入下面的 命令:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
作为 `root`,您可以运行下面的 命令来得到刻录机的 SCSI 地址:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (pass0,cd0)
@@ -936,7 +936,7 @@ man:growisofs[1] 命令是 <<mkisofs,mkisofs>> 的前端,它会调用 man:mkis
要把 [.filename]#/path/to/data# 目录的数据刻录到 DVD+R 或者 DVD-R 上面,使用下面的命令:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -947,7 +947,7 @@ man:growisofs[1] 命令是 <<mkisofs,mkisofs>> 的前端,它会调用 man:mkis
也可以刻录成一个 pre-mastered 映像, 例如记录一个映像文件 _imagefile.iso_, 我们可以运行:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -960,14 +960,14 @@ man:growisofs[1] 命令是 <<mkisofs,mkisofs>> 的前端,它会调用 man:mkis
要创建这样的 ISO 文件:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
直接将文件刻录到光盘上:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -983,7 +983,7 @@ DVD-Video 是一种特殊的基于 ISO 9660 和 micro-UDF (M-UDF) 规范的文
如果您已经有了 DVD-Video 文件系统的映像, 就可以以同样的方式制作另一个映像,可以参看前面章节的例子。 如果您想制作 DVD 并想放在特定的目录中,如在目录 [.filename]#/path/to/video# 中, 可以使用下面的命令来刻录 DVD-Video:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -994,7 +994,7 @@ DVD-Video 是一种特殊的基于 ISO 9660 和 micro-UDF (M-UDF) 规范的文
不像 CD-RW, 一个空白的 DVD+RW 在每一次使用前必须先格式化。 man:growisofs[1] 程序将会适时的自动对其进行适当的处理, 这是 _recommended_ 的方式。您也可以使用 `dvd+rw-format` 来对 DVD+RW 进行格式化:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -1003,7 +1003,7 @@ DVD-Video 是一种特殊的基于 ISO 9660 和 micro-UDF (M-UDF) 规范的文
如果您想刻录新的数据 (刻录一个新的完整的文件系统 而不仅仅是追加一些数据) 到 DVD+RW,您不必再将其格式化成空白盘, 您只须要直接覆盖掉以前的记录即可。 (执行一个新的初始化对话), 像这样:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -1012,7 +1012,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
例如,我们想追加一些数据到到我们以前的 DVD+RW 上,我们可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1026,7 +1026,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
如果出于某种原因您真的想要空白介质盘, 可以执行下面的命令:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -1039,7 +1039,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
要格式化一张 DVD-RW 为顺序写入模式,运行:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1048,7 +1048,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
====
一次完全的格式化 (`-blank=full`) 在 1x 倍速的介质上将会花费大约 1 个小时。快速格式化可以使用 `-blank` 选项来进行,如果 DVD-RW 要以 Disk-At-Once (DAO) 模式刻录的话。要以 DAO 模式刻录 DVD-RW,使用命令:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -1060,7 +1060,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
在一张顺序 DVD-RW 上写入数据,使用和其他 DVD 格式相同的指令:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -1071,14 +1071,14 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
要把 DVD-RW 置于受限式覆写格式, 必须使用下面的命令:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
更改回顺序写入模式使用:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -1089,7 +1089,7 @@ DVD+RW 格式化程序为简单的向以前的记录追加数据提供了可能
在 DVD+R、DVD-R 或者 DVD-RW 的顺序写入格式下, 一次初始化 (未关闭) 区段之后使用下面的命令, 将会在光盘上添加一个新的区段:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -1128,7 +1128,7 @@ hw.ata.atapi_dma="1"
如本章前面的介绍所言, DVD-RAM 可以视为一移动硬盘。 与任何其它型号的移动硬盘类似, 首次使用它之前, 应首先 "初始化" DVD-RAM。 在下面的例子中, 我们将在全部空间上使用标准的 UFS2 文件系统:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -1141,7 +1141,7 @@ hw.ata.atapi_dma="1"
一旦您在 DVD-RAM 上完成了前面的操作, 就可以像普通的硬盘一样挂接它了:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -1173,7 +1173,7 @@ hw.ata.atapi_dma="1"
使用 [.filename]#/dev/fdN# 设备来格式化软盘。插入一张新的 3.5 英寸的软盘在你的设备中:
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -1186,7 +1186,7 @@ hw.ata.atapi_dma="1"
现在可以用下面的方法来使用 man:bsdlabel[8] 了:
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1199,7 +1199,7 @@ hw.ata.atapi_dma="1"
要制作新的文件系统在软盘上,可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1271,7 +1271,7 @@ AIT 是 Sony 开发的一种新格式,每个磁带最高可以存储 50 GB。
当在一块完全空白的磁带上尝试定入数据时,会得到类似下面这样的错误信息:
-[source,bash]
+[source,shell]
....
sa0(ncr1:4:0): NOT READY asc:4,1
sa0(ncr1:4:0): Logical unit is in process of becoming ready
@@ -1313,14 +1313,14 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready
要备份当前目录中所有的文件可以使用这个命令 (需要有 ``root``权限):
-[source,bash]
+[source,shell]
....
# tar Mcvf /dev/fd0 *
....
当第一张盘满的时候, man:tar[1] 会指示您插入下一张盘,插入第二张盘之后就按回车。
-[source,bash]
+[source,shell]
....
Prepare volume 2 for /dev/fd0 and hit return:
....
@@ -1337,14 +1337,14 @@ Prepare volume 2 for /dev/fd0 and hit return:
要恢复所有文件:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0
....
有两种方法来恢复软盘中的个别文件。首先,就要用第一张软盘启动:
-[source,bash]
+[source,shell]
....
# tar Mxvf /dev/fd0 filename
....
@@ -1393,7 +1393,7 @@ man:tar[1] 程序会提示您插入后面的软盘,直到它找到所需要的
`rdump` 和 `rrestore` 可以通过网络在另一台计算机的磁带机上备份数据。 这两个程序都是依靠 man:rcmd[3] 和 man:ruserok[3] 来访问远程的磁带机。 因此,运行备份的用户必须要有远程主机的 [.filename]#.rhosts# 访问权。 `rdump` 和 `rrestore` 的参数必须适用于远程主机 例如,当您从 FreeBSD 连到一台 SUN 工作站 knomodo 去使用磁带机时,使用:
-[source,bash]
+[source,shell]
....
# /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nsa8 /dev/da0a 2>&1
....
@@ -1406,7 +1406,7 @@ man:tar[1] 程序会提示您插入后面的软盘,直到它找到所需要的
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1420,7 +1420,7 @@ man:tar[1] 程序会提示您插入后面的软盘,直到它找到所需要的
[example]
====
-[source,bash]
+[source,shell]
....
# RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1433,7 +1433,7 @@ man:tar[1] 也同样是在第 6 版 AT&T UNIX (大约是 1975 前后) 出现的
要 `tar` 到连接在名为 `komodo` 的 Sun 机器上的 Exabyte 磁带机, 可以使用:
-[source,bash]
+[source,shell]
....
# tar cf - . | rsh komodo dd of=tape-device obs=20b
....
@@ -1446,7 +1446,7 @@ man:cpio[1] 是 UNIX(R) 最早用来作文件交换的磁带机程序。它有
`cpio` 不支持通过网络的备份方式。可以使用 pipeline 和 `rsh` 来传送数据给远程的磁带机。
-[source,bash]
+[source,shell]
....
# for f in directory_list; do
find $f >> backup.list
@@ -1541,7 +1541,7 @@ man:mdconfig[8] 命令支持三种类型的虚拟文件系统: 使用 man:mall
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f diskimage -u 0
# mount /dev/md0 /mnt
@@ -1555,7 +1555,7 @@ man:mdconfig[8] 命令支持三种类型的虚拟文件系统: 使用 man:mall
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1583,7 +1583,7 @@ man:mdconfig[8] 功能很强大, 但在将映像文件作为文件系统挂载
[example]
====
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1607,7 +1607,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1628,7 +1628,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
[example]
====
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md2 /mnt
# df /mnt
@@ -1644,7 +1644,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
例如, 要分离并释放所有 [.filename]#/dev/md4# 使用的资源, 应使用命令:
-[source,bash]
+[source,shell]
....
# mdconfig -d -u 4
....
@@ -1662,21 +1662,21 @@ FreeBSD 提供了一个和 crossref:cutting-edge[soft-updates,Soft Updates] 关
快照可以通过 man:mount[8] 命令创建。 将文件系统 [.filename]#/var# 的快照放到 [.filename]#/var/snapshot/snap# 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
作为选择,你也可以使用 man:mksnap_ffs[8] 来创建一个快照:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
可以查找文件系统中的快照文件 (例如 [.filename]#/var#), 方法是使用 man:find[1] 命令:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1688,7 +1688,7 @@ FreeBSD 提供了一个和 crossref:cutting-edge[soft-updates,Soft Updates] 关
* 在快照上运行 man:dump[8] 程序。 dump 将返回包含文件系统和快照的时间戳。man:dump[8] 也能够抓取快照,使用 `-L` 标志可以首先创建快照, 完成 dump 映像之后再自动删除它。
* 用 man:mount[8] 来挂接快照作为文件系统的一个冻结的镜像。 要 man:mount[8] 快照 [.filename]#/var/snapshot/snap# 运行:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1696,7 +1696,7 @@ FreeBSD 提供了一个和 crossref:cutting-edge[soft-updates,Soft Updates] 关
现在你就可以看到挂接在 [.filename]#/mnt# 目录下的 [.filename]#/var# 文件系统的快照。 每一样东西都保存的像它创建时的状态一样。 唯一例外的是更早的快照文件将表现为长度为 0 的文件。 用完快照文件之后可以把它卸下,使用:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1760,7 +1760,7 @@ check_quotas="NO"
一旦您配置好了启用配额的系统,可以检查一下它们是真的有用。 可以这样做:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1777,7 +1777,7 @@ check_quotas="NO"
下面是一个运行 man:edquota[8] 时看到的例子。当 man:edquota[8] 命令被调用时,会被转移进 `EDITOR` 环境变量指派的编辑 器中,允许编辑配额限制。如果环境变量没有设置,默认在 vi 编辑器上进行。
-[source,bash]
+[source,shell]
....
# edquota -u test
....
@@ -1809,7 +1809,7 @@ to:
有时,在 UIDs 的范围上设置配额限制是非常必要的。这可以通过在 man:edquota[8] 命令后面加上 `-p` 选项来完成。首先, 给用户分配所需要的配额限制,然后运行命令 `edquota -p protouser startuid-enduid`。例如,如果 用户 `test` 已经有了所需要的配额限制,下面的命令 可以被用来复制那些 UIDs 为10,000 到 19,999 的配额限制:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1847,7 +1847,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
现在重启 `inetd`:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd restart
....
@@ -1867,7 +1867,7 @@ FreeBSD 提供了极好的数据保护措施,防止未受权的数据访问。
+
配置 gbde 需要超级用户的权力。
+
-[source,bash]
+[source,shell]
....
% su -
Password:
@@ -1884,7 +1884,7 @@ Password:
重新引导进入新的内核。
. 另一种无需重新编译内核的方法, 是使用 `kldload` 来加载 man:gbde[4]:
+
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1901,7 +1901,7 @@ Password:
+
添加新的硬盘到系统中可以查看在 <<disks-adding>> 中的说明。 这个例子的目的是说明一个新的硬盘分区已经添加到系统中如: [.filename]#/dev/ad4s1c#。在例子中 [.filename]#/dev/ad0s1*# 设备代表系统中存在的标准 FreeBSD 分区。
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1911,7 +1911,7 @@ Password:
+
. 创建一个目录来保存 gbde Lock 文件
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1921,7 +1921,7 @@ gbde lock 文件包含了 gbde 需要访问的加密分区的信息。 没有 lo
+
一个 gbde 分区在使用前必须被初始化, 这个初始化过程只需要执行一次:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
....
@@ -1953,14 +1953,14 @@ gbde lock 文件 _必须_ 和加密分区上的内容同时备份。 如果发
+
. 把加密分区和内核进行关联
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
在加密分区的初始化过程中您将被要求提供一个密码短语。 新的加密设备将在 [.filename]#/dev# 中显示为 [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1972,7 +1972,7 @@ gbde lock 文件 _必须_ 和加密分区上的内容同时备份。 如果发
+
当加密设备和内核进行关联后, 您就可以使用 man:newfs[8] 在此设备上创建文件系统, 使用 man:newfs[8] 来初始化一个 UFS2 文件系统比初始化一个 UFS1 文件系统还要快,摧荐使用 `-O2` 选项。
+
-[source,bash]
+[source,shell]
....
# newfs -U -O2 /dev/ad4s1c.bde
....
@@ -1986,14 +1986,14 @@ man:newfs[8] 命令必须在一个 gbde 分区上执行, 这个分区通过一
+
为加密文件系统创建一个挂接点。
+
-[source,bash]
+[source,shell]
....
# mkdir /private
....
+
挂接加密文件系统。
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2002,7 +2002,7 @@ man:newfs[8] 命令必须在一个 gbde 分区上执行, 这个分区通过一
+
加密的文件系统现在对于 man:df[1] 应该可见并可以使用。
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2024,7 +2024,7 @@ Filesystem Size Used Avail Capacity Mounted on
. 关联 gbde 分区到内核
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
@@ -2034,14 +2034,14 @@ Filesystem Size Used Avail Capacity Mounted on
+
加密文件系统不能列在 [.filename]#/etc/fstab# 文件中进行自动加载, 在加载前必须手动运行 man:fsck[8] 命令对文件系统进行错误检测。
+
-[source,bash]
+[source,shell]
....
# fsck -p -t ffs /dev/ad4s1c.bde
....
+
. 挂接加密文件系统
+
-[source,bash]
+[source,shell]
....
# mount /dev/ad4s1c.bde /private
....
@@ -2072,7 +2072,7 @@ man:gbde[8] 采用 CBC 模式的 128-位 AES 来加密扇区数据。 磁盘上
man:sysinstall[8] 是和 gbde 加密设备不兼容的。 在启动 man:sysinstall[8] 时必须将 [.filename]#*.bde# 设备和内核进行分离,否则在初始化探测设备时将引起冲突。 与加密设备进行分离在我们的例子中使用如下的命令:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -2130,7 +2130,7 @@ man:geli[8] 现在应该已经为内核所支持了。
+
主密钥将由口令字保护, 而密钥文件的数据来源则将是 [.filename]#/dev/random#。 我们称之为 provider 的 [.filename]#/dev/da2.eli# 的扇区尺寸将是 4kB。
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -2142,14 +2142,14 @@ Reenter new passphrase:
+
如果密钥文件写作 "-", 则表示使用标准输入。 下面是关于如何使用多个密钥文件的例子:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
+
. 将 provider 与所生成的密钥关联
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -2157,7 +2157,7 @@ Enter passphrase:
+
新的明文设备将被命名为 [.filename]#/dev/da2.eli#。
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -2165,7 +2165,7 @@ Enter passphrase:
+
. 创建新的文件系统
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -2174,7 +2174,7 @@ Enter passphrase:
+
现在加密的文件系统应该已经可以被 man:df[1] 看到, 并处于可用状态了:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -2190,7 +2190,7 @@ Filesystem Size Used Avail Capacity Mounted on
+
一旦在加密分区上的工作完成, 并且不再需要 [.filename]#/private# 分区, 就应考虑将其卸下并将 `geli` 加密分区从内核上断开。
+
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -2233,7 +2233,7 @@ FreeBSD 提供了易于配置的交换区加密机制。 随所用的 FreeBSD
到目前为止, 交换区仍是未加密的。 很可能其中已经存有明文形式的口令或其他敏感数据。 要纠正这一问题, 首先应使用随机数来覆盖交换分区的数据:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ad0s1b bs=1m
....
@@ -2277,7 +2277,7 @@ geli_swap_flags="-e blowfish -l 128 -s 4096 -d"
如果使用了 man:gbde[8], 则:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2286,7 +2286,7 @@ Device 1K-blocks Used Avail Capacity
如果使用了 man:geli[8], 则:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -2404,7 +2404,7 @@ resource test {
现在在两个节点上都有同样的配置了, 接下来我们需要创建 HAST 存储池。 在两个节点上分别运行下面的命令来初始化本地此怕, 并启动 man:hastd[8] 服务:
-[source,bash]
+[source,shell]
....
# hastctl create test
# /etc/rc.d/hastd onestart
@@ -2417,14 +2417,14 @@ _没有_ 办法使用已经包含文件系统的 GEOM 设备来创建存储池 (
HAST 并不负责选择节点的角色 (`主` 或 `从`)。 节点的角色是由管理员手工, 或由类似 Heartbeat 这样的软件通过 man:hastctl[8] 来完成配置的。 在希望成为主节点的系统 (`hasta`) 上运行下面的命令令其成为主节点:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
类似地, 用下面的命令来指明从节点 (`hastb`):
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
@@ -2437,7 +2437,7 @@ HAST 并不负责选择节点的角色 (`主` 或 `从`)。 节点的角色是
接下来, 可以在两个节点上分别用 man:hastctl[8] 工具来验证节点身份是否正确:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -2446,7 +2446,7 @@ HAST 并不负责选择节点的角色 (`主` 或 `从`)。 节点的角色是
最后一步是在 GEOM 设备 [.filename]#/dev/hast/test# 上创建文件系统。 这项工作必须在 `主` 节点上进行 (因为 [.filename]#/dev/hast/test# 只在 `主` 节点上出现), 随硬盘尺寸的不同, 这可能需要花费数分钟的时间:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2491,7 +2491,7 @@ notify 30 {
为使编辑的配置生效, 需要在两个节点上执行下面的命令:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/devd restart
....
@@ -2626,7 +2626,7 @@ HAST 通常都能够无故障地运行, 不过, 和任何其他软件产品
从这种状态中恢复时, 管理员必须决定哪一个节点包含最重要的数据变动 (或者手工合并这些改动) 并让 HAST 进行一次完整的同步操作, 覆盖有问题的那个节点的数据。 要完成这个工作,在有问题的节点上执行下面的命令:
-[source,bash]
+[source,shell]
....
# hastctl role init <resource>
# hastctl create <resource>
diff --git a/documentation/content/zh-cn/books/handbook/dtrace/_index.adoc b/documentation/content/zh-cn/books/handbook/dtrace/_index.adoc
index 316f8fbf28..4d88ba5b81 100644
--- a/documentation/content/zh-cn/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/dtrace/_index.adoc
@@ -111,7 +111,7 @@ options KDTRACE_FRAME
所有的源代码都必须重新使用 CTF 选项编译安装。重新编译 FreeBSD 源代码可以通过以下的命令完成:
-[source,bash]
+[source,shell]
....
# cd /usr/src
@@ -129,14 +129,14 @@ options KDTRACE_FRAME
在使用 DTrace 的功能之前,DTrace 设备必须存在。 使用如下的命令装载此设备:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
DTrace 支持现在应该可以使用了。 管理员现在可以使用如下的命令查看所有的探测器:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -145,7 +145,7 @@ DTrace 支持现在应该可以使用了。 管理员现在可以使用如下的
工具包是实现写好的一堆脚本,与 DTrace 一起运行来收集系统信息。 有脚本用来检查已打开的文件,内存,CPU 使用率和许多东西。使用如下的命令解开脚本:
-[source,bash]
+[source,shell]
....
# gunzip -c DTraceToolkit* | tar xvf -
....
@@ -163,7 +163,7 @@ DTrace 支持现在应该可以使用了。 管理员现在可以使用如下的
[.filename]#hotkernel# 被设计成验明哪个函数占用了内核时间。 正常运行的话,它将生成类似以下的输出:
-[source,bash]
+[source,shell]
....
# ./hotkernel
Sampling... Hit Ctrl-C to end.
@@ -171,7 +171,7 @@ Sampling... Hit Ctrl-C to end.
系统管理员必须使用 kbd:[Ctrl+C] 组合键停止这个进程。 紧接着中止之后,脚本便会一张内核函数与测定时间的列表, 使用增量排序输出:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -203,7 +203,7 @@ kernel`sched_idletd 137 0.3%
这个脚本也能与内核模块一起工作。要使用此特性, 用 `-m` 标志运行脚本:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -225,7 +225,7 @@ kernel 874 0.4%
[.filename]#procsystime# 脚本捕捉并打印给定 PID 的系统调用时间。 在下面的例子中,新生成了一个 [.filename]#/bin/csh# 实例。[.filename]#procsystime# 执行后则等待在新运行的 `csh` 上键入一些命令。 这是测试的结果:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/zh-cn/books/handbook/filesystems/_index.adoc b/documentation/content/zh-cn/books/handbook/filesystems/_index.adoc
index 4dd2edd1e4..79d92526d5 100644
--- a/documentation/content/zh-cn/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/filesystems/_index.adoc
@@ -113,7 +113,7 @@ vfs.zfs.vdev.cache.size="5M"
FreeBSD 有一种启动机制能在系统初始化时挂载 ZFS 存储池。 可以通过以下的命令设置:
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
# /etc/rc.d/zfs start
@@ -125,14 +125,14 @@ FreeBSD 有一种启动机制能在系统初始化时挂载 ZFS 存储池。 可
在单个磁盘上创建一个简单, 非冗余的 ZFS, 使用 `zpool` 命令:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
可以通过 `df` 的输出查看新的存储池:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -144,7 +144,7 @@ example 17547136 0 17547136 0 /example
这份输出清楚的表明了 `example` 存储池不仅创建成功而且被 _挂载_ 了。 我们能像访问普通的文件系统那样访问它, 就像以下例子中演示的那样,用户能够在上面创建文件并浏览:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -158,7 +158,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
遗憾的是这个存储池并没有利用到 ZFS 的任何特性。 在这个存储池上创建一个文件系统,并启用压缩:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -168,14 +168,14 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
使用这个命令可以禁用压缩:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
使用如下的命令卸载这个文件系统,并用 `df` 工具确认:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -188,7 +188,7 @@ example 17547008 0 17547008 0 /example
重新挂在这个文件系统使之能被访问, 并用 `df` 确认:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -202,7 +202,7 @@ example/compressed 17547008 0 17547008 0 /example/compressed
存储池与文件系统也可通过 `mount` 的输出查看:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -215,7 +215,7 @@ example/compressed on /example/compressed (zfs, local)
正如前面所提到的,ZFS 文件系统, 在创建之后就能像普通的文件系统那样使用。然而, 还有很多其他的特性是可用的。在下面的例子中, 我们将创建一个新的文件系统,`data`。 并要在上面存储些重要的文件, 所以文件系统需要被设置成把每一个数据块都保存两份拷贝:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -223,7 +223,7 @@ example/compressed on /example/compressed (zfs, local)
现在可以再次使用 `df` 查看数据和空间的使用状况:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -237,7 +237,7 @@ example/data 17547008 0 17547008 0 /example/data
请注意存储池上的每一个文件系统都有着相同数量的可用空间。 这就是我们在这些例子中使用 `df` 的原因, 是为了文件系统都是从相同的存储池取得它们所需的空间。 ZFS 去掉了诸如卷和分区此类的概念, 并允许多个文件系统占用同一个存储池。 不再需要文件系统与存储池的时候能像这样销毁它们:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -250,7 +250,7 @@ example/data 17547008 0 17547008 0 /example/data
正如前文中所提到的,这一章节将假设存在 3 个 SCSI 设备, [.filename]#da0#, [.filename]#da1# 和 [.filename]#da2# (或者 [.filename]#ad0# 和超出此例使用了 IDE 磁盘)。 使用如下的命令创建一个 RAID-Z 存储池:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -262,14 +262,14 @@ Sun(TM) 推荐在一个 RAID-Z 配置中使用的磁盘数量为 3 至 9 块。
zpool `storage` 至此就创建好了。 可以如前文提到的那样使用 man:mount[8] 和 man:df[1] 确认。 如需配给更多的磁盘设备则把它们加这个列表的后面。 在存储池上创建一个叫 `home` 的文件系统, 用户的文件最终都将被保存在上面:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
像前文中提到的那样,用户的目录与文件也可启用压缩并保存多份拷贝, 可通过如下的命令完成:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -277,7 +277,7 @@ zpool `storage` 至此就创建好了。 可以如前文提到的那样使用 ma
把用户的数据都拷贝过来并创建一个符号链接, 让他们开始使用这个新的目录:
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -289,42 +289,42 @@ zpool `storage` 至此就创建好了。 可以如前文提到的那样使用 ma
尝试创建一个可日后用来回退的快照:
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
请注意快照选项将只会抓取一个真实的文件系统, 而不是某个用户目录或文件。`@` 字符为文件系统名或卷名的分隔符。 当用户目录被损坏时,可用如下命令恢复:
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
获得所有可用快照的列表,可使用 `ls` 命令查看文件系统的 [.filename]#.zfs/snapshot# 目录。例如,执行如下命令来查看之前抓取的快照:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
可以编写一个脚本来每月定期抓取用户数据的快照,久而久之, 快照可能消耗掉大量的磁盘空间。 之前创建的快照可用以下命令删除:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
在所有这些测试之后,我们没有理由再把 [.filename]#/store/home# 这样放置了。让它称为真正的 [.filename]#/home# 文件系统:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
使用 `df` 和 `mount` 命令将显示现在系统把我们的文件系统真正当作了 [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -344,7 +344,7 @@ storage/home 26320512 0 26320512 0 /home
这样就基本完成了 RAID-Z 的配置了。使用夜间 man:periodic[8] 获取有关文件系统创建之类的状态更新, 执行如下的命令:
-[source,bash]
+[source,shell]
....
# echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf
....
@@ -353,21 +353,21 @@ storage/home 26320512 0 26320512 0 /home
每一种软 RAID 都有监测它们 `状态` 的方法。 ZFS 也不例外。 可以使用如下的命令查看 RAID-Z 设备:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
如果所有的存储池处于健康状态并且一切正常的话, 将返回如下信息:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
如果存在问题,可能是一个磁盘设备下线了, 那么返回的存储池的状态将看上去是类似这个样子的:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -391,21 +391,21 @@ errors: No known data errors
在这个例子中,这是由管理员把此设备下线后的状态。 可以使用如下的命令将磁盘下线:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
现在切断系统电源之后就可以替换下 [.filename]#da1# 了。 当系统再次上线时,使用如下的命令替换磁盘:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
至此可用不带 `-x` 标志的命令再次检查状态:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -429,21 +429,21 @@ errors: No known data errors
正如前面所提到的,ZFS 使用 `校验和`(checksum) 来检查存储数据的完整性。 这时在文件系统创建时自动启用的,可使用以下的命令禁用:
-[source,bash]
+[source,shell]
....
# zfs set checksum=off storage/home
....
这不是个明智的选择,因为校验和 不仅非常有用而且只需占用少量的存储空间。 并且启用它们也不会明显的消耗过多资源。 启用后就可以让 ZFS 使用校验和校验来检查数据的完整。 这个过程通常称为 "scrubbing"。 可以使用以下的命令检查 `storage` 存储池里数据的完整性:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
这个过程需花费相当长的时间,取决于存储的数据量。 而且 I/O 非常密集, 所以在任何时间只能执行一个这样的操作。 在 scrub 完成之后,状态就会被更新, 可使用如下的命令查看:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
diff --git a/documentation/content/zh-cn/books/handbook/firewalls/_index.adoc b/documentation/content/zh-cn/books/handbook/firewalls/_index.adoc
index 82da4d7355..56f2a8b48c 100644
--- a/documentation/content/zh-cn/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/firewalls/_index.adoc
@@ -113,7 +113,7 @@ pf_enable="YES"
然后使用启动脚本来加载模块:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pf start
....
@@ -129,7 +129,7 @@ pf_rules="/path/to/pf.conf"
PF 模块也可以手工从命令行加载:
-[source,bash]
+[source,shell]
....
# kldload pf.ko
....
@@ -143,7 +143,7 @@ pflog_enable="YES"
然后使用启动脚本来加载模块:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/pflog start
....
@@ -333,7 +333,7 @@ ipnat_rules="/etc/ipnat.rules" # 用于 ipnat 的规则定义文件
man:ipf[8] 命令可以用来加载您自己的规则文件。 一般情况下, 您可以建立一个包括您自定义的规则的文件, 并使用这个命令来替换掉正在运行的防火墙中的内部规则:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -358,7 +358,7 @@ man:ipf[8] 命令假定规则文件是一个标准的文本文件。 它不能
默认的 man:ipfstat[8] 命令输出类似于下面的样子:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -387,7 +387,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
输出和下面的类似:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -400,7 +400,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
输出和下面的类似:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -433,7 +433,7 @@ ipmon_flags="-Ds" # D = 作为服务程序启动
Syslogd 使用特殊的方法对日志数据进行分类。 它使用称为 "facility" 和 "level" 的组。 以 `-Ds` 模式运行的 IPMON 采用 `local0` 作为默认的 "facility" 名。 如果需要, 可以用下列 levels 来进一步区分数据:
-[source,bash]
+[source,shell]
....
LOG_INFO - 使用 "log" 关键字指定的通过或阻止动作
LOG_NOTICE - 同时记录通过的那些数据包
@@ -443,7 +443,7 @@ LOG_ERR - 进一步记录含不完整的包头的数据包
要设置 IPFILTER 来将所有的数据记录到 [.filename]#/var/log/ipfilter.log#, 需要首先建立这个文件。 下面的命令可以完成这个工作:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -533,7 +533,7 @@ EOF
这就是所需的全部内容。 这个规则本身并不重要, 它们主要是用于体现如何使用符号代换字段, 以及如何完成值的替换。 如果上面的例子的名字是 [.filename]#/etc/ipf.rules.script#, 就可以通过输入下面的命令来重新加载规则:
-[source,bash]
+[source,shell]
....
# sh /etc/ipf.rules.script
....
@@ -557,7 +557,7 @@ sh /etc/ipf.rules.script
脚本文件必须设置为属于 `root`, 并且属主可读、 可写、 可执行。
+
-[source,bash]
+[source,shell]
....
# chmod 700 /usr/local/etc/rc.d/ipf.loadrules.sh
....
@@ -941,28 +941,28 @@ NAT 规则是通过 `ipnat` 命令加载的。 默认情况下, NAT 规则会
要重新加载 NAT 规则, 可以使用类似下面的命令:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
如果想要看看您系统上 NAT 的统计信息, 可以用下面的命令:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
要列出当前的 NAT 表的映射关系, 使用下面的命令:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
要显示详细的信息并显示与规则处理和当前的规则/表项:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1160,7 +1160,7 @@ IPFW 是基本的 FreeBSD 安装的一部分, 以单独的可加载内核模
如果将 `firewall_enable="YES"` 加入到 [.filename]#rc.conf# 中并重新启动系统, 则下列信息将在启动过程中, 以高亮的白色显示出来:
-[source,bash]
+[source,shell]
....
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to deny, logging disabled
....
@@ -1260,49 +1260,49 @@ add deny out
按顺序列出所有的规则:
-[source,bash]
+[source,shell]
....
# ipfw list
....
列出所有的规则, 同时给出最后一次匹配的时间戳:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
列出所有的记账信息、 匹配规则的包的数量, 以及规则本身。 第一列是规则的编号, 随后是发出包匹配的数量, 进入包的匹配数量, 最后是规则本身。
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
列出所有的动态规则和静态规则:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
同时显示已过期的动态规则:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
将计数器清零:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
只把规则号为 _NUM_ 的计数器清零:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1466,7 +1466,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
如果把上面的例子保存到 [.filename]#/etc/ipfw.rules# 文件中。 下面的命令来会重新加载规则。
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1475,7 +1475,7 @@ $cmd 00611 allow udp from any to $odns 53 out via $oif $ks
也可以手工执行下面的命令来达到类似的目的:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
diff --git a/documentation/content/zh-cn/books/handbook/geom/_index.adoc b/documentation/content/zh-cn/books/handbook/geom/_index.adoc
index f8f0c1bdae..7f48a3e3d7 100644
--- a/documentation/content/zh-cn/books/handbook/geom/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/geom/_index.adoc
@@ -84,21 +84,21 @@ image::striping.png[磁盘条带图]
. 加载 [.filename]#geom_stripe.ko# 模块:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
+
. 确信存在合适的挂接点 (mount point)。 如果这个卷将成为根分区, 那么暂时把它挂接到其他位置i, 如 [.filename]#/mnt#:
+
-[source,bash]
+[source,shell]
....
# mkdir /mnt
....
+
. 确定将被做成条带卷的磁盘的设备名, 并创建新的条带设备。 举例而言, 要将两个未用的、 尚未分区的 ATA 磁盘 [.filename]#/dev/ad2# 和 [.filename]#/dev/ad3# 做成一个条带设备:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -108,14 +108,14 @@ Done.
+
. 接着需要写标准的 label, 也就是通常所说的分区表到新卷上, 并安装标准的引导代码:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. 上述过程将在 [.filename]#/dev/stripe# 目录中的 [.filename]#st0# 设备基础上建立两个新设备。 这包括 [.filename]#st0a# 和 [.filename]#st0c#。 这时, 就可以在 [.filename]#st0a# 设备上用下述 `newfs` 命令来建立文件系统了:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -125,14 +125,14 @@ Done.
要挂接刚创建的条带盘:
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
要在启动过程中自动挂接这个条带上的文件系统, 需要把关于卷的信息放到 [.filename]#/etc/fstab# 文件中。为达到此目的, 需要创建一个叫 [.filename]#stripe# 的永久的挂载点:
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -141,7 +141,7 @@ Done.
此外, [.filename]#geom_stripe.ko# 模块也必须通过在 [.filename]#/boot/loader.conf# 中增加下述设置, 以便在系统初始化过程中自动加载:
-[source,bash]
+[source,shell]
....
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf
....
@@ -159,7 +159,7 @@ Done.
在开始构建镜像卷之前, 可以启用更多的调试信息, 并应开放对设备的完全访问。 这可以通过将 man:sysctl[8] 变量 `kern.geom.debugflags` 设置为下面的值来实现:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=17
....
@@ -172,14 +172,14 @@ Done.
在引导用的设备基础上新建镜像时, 有可能会导致保存在磁盘上最后一个扇区的数据丢失。 在新安装 FreeBSD 之后立即创建镜像可以减低此风险。 下面的操作与默认的 FreeBSD 9._X_ 安装过程不兼容, 因为它采用了新的 GPT 分区格式。 GEOM 会覆盖 GPT 元数据, 这会导致数据丢失, 并有可能导致系统无法引导。
====
-[source,bash]
+[source,shell]
....
# gmirror label -vb round-robin gm0 /dev/da0
....
系统应给出下面的回应:
-[source,bash]
+[source,shell]
....
Metadata value stored on /dev/da0.
Done.
@@ -187,7 +187,7 @@ Done.
初始化 GEOM, 这步操作会加载内核模块 [.filename]#/boot/kernel/geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# gmirror load
....
@@ -199,7 +199,7 @@ Done.
配置在系统初始化过程中自动加载 [.filename]#geom_mirror.ko#:
-[source,bash]
+[source,shell]
....
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf
....
@@ -210,7 +210,7 @@ Done.
====
如果 man:vi[1] 是你喜欢的编辑器, 以下则是完成此项任务的一个简便方法:
-[source,bash]
+[source,shell]
....
# vi /etc/fstab
....
@@ -234,14 +234,14 @@ Done.
重启系统:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
在系统初始化过程中, 新建的 [.filename]#gm0# 会代替 [.filename]#da0# 设备工作。 系统完成初始化之后, 可以通过检查 `mount` 命令的输出来查看效果:
-[source,bash]
+[source,shell]
....
# mount
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -255,21 +255,21 @@ devfs 1 1 0 100% /var/named/dev
这个输出是正常的。 最后, 使用下面的命令将 [.filename]#da1# 磁盘加到镜像卷中, 以开始同步过程:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
在构建镜像卷的过程中, 可以用下面的命令查看状态:
-[source,bash]
+[source,shell]
....
# gmirror status
....
一旦镜像卷的构建操作完成, 这个命令的输出就会变成这样:
-[source,bash]
+[source,shell]
....
Name Status Components
mirror/gm0 COMPLETE da0
@@ -293,7 +293,7 @@ mountroot>
这种情况应使用电源或复位按钮重启机器。 在引导菜单中, 选择第六 (6) 个选项。 这将让系统进入 man:loader[8] 提示符。 在此处手工加载内核模块:
-[source,bash]
+[source,shell]
....
OK? load geom_mirror
OK? boot
@@ -314,12 +314,12 @@ options GEOM_MIRROR
考虑前面的 RAID1 配置, 假设 [.filename]#da1# 出现了故障并需要替换, 要替换它, 首先确定哪个磁盘出现了故障, 并关闭系统。 此时, 可以用换上新的磁盘, 并重新启动系统。 这之后可以用下面的命令来完成磁盘的替换操作:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/da1
....
@@ -347,28 +347,28 @@ RAID3 是一种将多个磁盘组成一个卷的技术, 在这个配置中包
. 首先, 在引导加载器中用下面的命令加载 [.filename]#geom_raid3.ko# 内核模块:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
此外, 也可以通过命令行手工加载 [.filename]#geom_raid3.ko# 模块:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3.ko
....
+
. 创建用于挂载卷的挂点目录:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia/
....
+
. 确定将要加入阵列的磁盘设备名, 并创建新的 RAID3 设备。 最终, 这个设备将代表整个阵列。 下面的例子使用三个未经分区的 ATA 磁盘: [.filename]#ada1# 和 [.filename]#ada2# 保存数据, 而 [.filename]#ada3# 用于校验。
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -379,7 +379,7 @@ Done.
+
. 为新建的 [.filename]#gr0# 设备分区, 并在其上创建 UFS 文件系统:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -389,7 +389,7 @@ Done.
屏幕上会滚过许多数字, 这个过程需要一段时间才能完成。 此后, 您就完成了创建卷的全部操作, 可以挂载它了。
. 最后一步是挂载文件系统:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -432,14 +432,14 @@ geom_raid3_load="YES"
要导出这个设备, 首先请确认它没有被挂接, 然后是启动 man:ggated[8] 服务:
-[source,bash]
+[source,shell]
....
# ggated
....
现在我们将在客户机上 `mount` 该设备, 使用下面的命令:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -477,7 +477,7 @@ ggate0
要为一个 UFS2 文件系统创建永久性标签, 而不破坏其上的数据,可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -502,7 +502,7 @@ ggate0
现在可以像平时一样挂接文件系统了:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -513,7 +513,7 @@ ggate0
下列命令可以清除标签:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -527,7 +527,7 @@ ggate0
重启系统,在 man:loader[8] 提示符下键入 kbd:[4] 启动到单用户模式。 然后输入以下的命令:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -556,7 +556,7 @@ GEOM_LABEL: Label for provider /dev/ad0s1b is label/swap
现在可以重启系统了。 如果一切顺利的话, 系统可以正常启动并且 `mount` 命令显示:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -570,7 +570,7 @@ devfs on /dev (devfs, local)
从 FreeBSD 7.2 开始, man:glabel[8] class 新增了一种用于 UFS 文件系统唯一标识符, `ufsid` 的标签支持。 这些标签可以在 [.filename]#/dev/ufsid# 目录中找到, 它们会在系统引导时自动创建。 在 [.filename]#/etc/fstab# 机制中, 也可以使用 `ufsid` 标签。 您可以使用 `glabel status` 命令来获得与文件系统对应的 `ufsid` 标签列表:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -622,7 +622,7 @@ options GEOM_JOURNAL
现在, 可以为空闲的文件系统创建日志了。 对于新增的 SCSI 磁盘 [.filename]#da4#, 具体的操作步骤为:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -630,7 +630,7 @@ options GEOM_JOURNAL
这样, 就会出现一个与 [.filename]#/dev/da4# 设备节点对应的 [.filename]#/dev/da4.journal# 设备节点。 接下来, 可以在这个设备上建立文件系统:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
....
@@ -639,7 +639,7 @@ options GEOM_JOURNAL
然后就可以用 `mount` 命令来挂接设备了:
-[source,bash]
+[source,shell]
....
# mount /dev/da4.journal /mnt
....
diff --git a/documentation/content/zh-cn/books/handbook/install/_index.adoc b/documentation/content/zh-cn/books/handbook/install/_index.adoc
index 29552bb942..70e652e803 100644
--- a/documentation/content/zh-cn/books/handbook/install/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/install/_index.adoc
@@ -305,7 +305,7 @@ FreeBSD 的安装过程开始于将您的电脑开机进入 FreeBSD 安装环境
+
设置 `kern.geom.debugflags` sysctl 为允许写入目标设备的主引导记录。
+
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -314,7 +314,7 @@ FreeBSD 的安装过程开始于将您的电脑开机进入 FreeBSD 安装环境
+
[.filename]#.img# 文件 _不是_ 直接复制到记忆棒中的那种普通文件。 这个映像是一份包含启动盘全部内容的映像。 这意味着简单地从一个地方复制到另一个地方是 _不能_ 赋予其引导系统的能力的。 您必须使用 man:dd[1] 将映像文件直接写入磁盘:
+
-[source,bash,subs="attributes"]
+[source,shell,subs="attributes"]
....
# dd if=FreeBSD-{rel120-current}-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
....
@@ -358,7 +358,7 @@ FreeBSD 的安装过程开始于将您的电脑开机进入 FreeBSD 安装环境
+
如果您使用的是光盘,假设光盘的驱动器符号为 [.filename]#E:#,那么请执行下面的命令:
+
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\boot.flp A:
....
@@ -367,7 +367,7 @@ E:\> tools\fdimage floppies\boot.flp A:
+
如果您在 UNIX(R) 系统上制作软盘(例如其它 FreeBSD 机器), 您可以使用 man:dd[1] 命令来将映像文件写到软盘中。 如果您用 FreeBSD,可以执行下面的命令:
+
-[source,bash]
+[source,shell]
....
# dd if=boot.flp of=/dev/fd0
....
@@ -429,7 +429,7 @@ We can take no responsibility for lost disk contents!
. FreeBSD 即将启动。如果您是从光盘引导, 您会见到类似下面的画面:
+
-[source,bash]
+[source,shell]
....
Booting from CD-Rom...
645MB medium detected
@@ -456,7 +456,7 @@ Loading /boot/defaults/loader.conf
+
如果您从软盘启动, 则应看到类似下面的画面:
+
-[source,bash]
+[source,shell]
....
Booting from Floppy...
Uncompressing ... done
@@ -491,7 +491,7 @@ image::boot-loader-menu.png[]
要完成这项工作,首先需要重启系统,并等待出现引导消息。 具体的信息取决于您使用的型号,不过它应该会是类似下面这样:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -501,7 +501,7 @@ Ethernet address 0:3:ba:b:92:d4, Host ID: 830b92d4.
如果您的系统此时开始了从硬盘引导的过程,则需要按下 kbd:[L1+A] 或 kbd:[Stop+A], 或者在串口控制台上发送 `BREAK` (例如, 在 man:tip[1] 或 man:cu[1] 中是 `~#`) 以便进入 PROM 提示符。 它应该是类似下面这样:
-[source,bash]
+[source,shell]
....
ok <.>
ok {0} <.>
@@ -525,7 +525,7 @@ ok {0} <.>
[[install-dev-probe]]
.典型的设备探测结果
-[source,bash]
+[source,shell]
....
avail memory = 253050880 (247120K bytes)
Preloaded elf kernel "kernel" at 0xc0817000.
@@ -610,7 +610,7 @@ image::sysinstall-exit.png[]
在主界面使用方向键选择 [.guimenuitem]#Exit Install# 您会看到 如下的信息:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot
@@ -753,7 +753,7 @@ Fred 用了这新版本几天后,觉得它很适合用在工程部门... 是
当您在 sysinstall 主菜单选择使用标准安装后,您会看到下面的信息:
-[source,bash]
+[source,shell]
....
Message
In the next menu, you will need to set up a DOS-style ("fdisk")
@@ -918,7 +918,7 @@ kbd:[Tab] 键可以在您最后选择的硬盘、 btn:[OK] 以及 btn:[Cancel]
分区的配置完成后,您可以用sysinstall. 来建立它们了。您会看到下面的信息:
-[source,bash]
+[source,shell]
....
Message
Now, you need to create BSD partitions inside of the fdisk
@@ -1018,7 +1018,7 @@ image::dist-set.png[]
安装程序并不会检查您是否有足够的硬盘空间, 在选择这一项之前请先确定您有足够的硬盘空间。 目前 FreeBSD {rel120-current} 版本中, FreeBSD Ports Collection 大约占用 {ports-size} 大小的硬盘空间。 对于近期的版本您可能需要更多一些空间来安装他们。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to install the FreeBSD Ports Collection?
@@ -1087,7 +1087,7 @@ FTP 透过 HTTP 代理服务器: [.guimenuitem]#透过HTTP代理服务器,
到此为止,可以开始进行安装了, 这也是您避免更动到您的硬盘的最后机会。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Last Chance! Are you SURE you want to continue the installation?
@@ -1106,7 +1106,7 @@ FTP 透过 HTTP 代理服务器: [.guimenuitem]#透过HTTP代理服务器,
当您看到下面的信息表示已经安装完成了:
-[source,bash]
+[source,shell]
....
Message
@@ -1127,7 +1127,7 @@ do so by typing: /usr/sbin/sysinstall.
选择 btn:[no] 然后按 kbd:[Enter] 会取消安装,不会对您的系统造成更动。您会看到下面的信息:
-[source,bash]
+[source,shell]
....
Message
Installation complete with some errors. You may wish to scroll
@@ -1152,7 +1152,7 @@ installation menus to retry whichever operations have failed.
如果想更多的了解网卡或将FreeBSD配置为网关或路由器,请参考 crossref:advanced-networking[advanced-networking,Advanced Networking] 的相关文章。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to configure any Ethernet or PPP network devices?
@@ -1168,7 +1168,7 @@ image::ed0-conf.png[]
用方向键选择您要配置的网卡接口,然后按kbd:[Enter]。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try IPv6 configuration of the interface?
@@ -1180,7 +1180,7 @@ image::ed0-conf.png[]
如果想试试新的IP通信协议 IPv6 , 使用 RA 服务,请选择 btn:[yes] 然后按 kbd:[Enter]。 寻找 RA 服务器将会花费几秒的时间。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to try DHCP configuration of the interface?
@@ -1223,7 +1223,7 @@ ifconfig 额外参数设定::
使用 kbd:[Tab] 键选择 btn:[OK]然后按 kbd:[Enter]键。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to bring the ed0 interface up right now?
@@ -1236,7 +1236,7 @@ ifconfig 额外参数设定::
[[gateway]]
=== 配置网关
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want this machine to function as a network gateway?
@@ -1249,7 +1249,7 @@ ifconfig 额外参数设定::
[[inetd-services]]
=== 配置网络服务
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?
@@ -1263,7 +1263,7 @@ Do you want to configure inetd and the network services that it provides?
如果您想现在就配置这些网络服务,请选择 btn:[yes], 然后会看到下面的信息:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
@@ -1278,7 +1278,7 @@ With this in mind, do you wish to enable inetd?
选择 btn:[yes] 继续。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
@@ -1305,7 +1305,7 @@ image::edit-inetd-conf.png[]
[[ssh-login]]
=== 启用 SSH 登录
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable SSH login?
@@ -1317,7 +1317,7 @@ image::edit-inetd-conf.png[]
[[ftpanon]]
=== 匿名 FTP
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to have anonymous FTP access to this machine?
@@ -1337,7 +1337,7 @@ image::edit-inetd-conf.png[]
要启用FTP匿名访问,用方向键选择 btn:[yes] 并按 kbd:[Enter]键。 系统会给出进一步的确认信息:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Anonymous FTP permits un-authenticated users to connect to the system
@@ -1385,7 +1385,7 @@ Upload Subdirectory::
当您对一切配置都满意后,请按 kbd:[Enter] 键继续。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Create a welcome message file for anonymous FTP users?
@@ -1411,7 +1411,7 @@ image::ftp-anon2.png[]
[[nsf-server-options]]
==== NFS 服务器
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS server?
@@ -1423,7 +1423,7 @@ image::ftp-anon2.png[]
如果您选择 btn:[yes] 将会出现一个对话框提醒您必须先建立一个 [.filename]#exports# 文件。
-[source,bash]
+[source,shell]
....
Message
Operating as an NFS server means that you must first configure an
@@ -1448,7 +1448,7 @@ image::nfs-server-edit.png[]
NFS 客户端允许您的机器访问NFS服务器。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Do you want to configure this machine as an NFS client?
@@ -1463,7 +1463,7 @@ NFS 客户端允许您的机器访问NFS服务器。
系统提供了几个选项可以让您配置终端的表现方式。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to customize your system console settings?
@@ -1506,7 +1506,7 @@ image::console-saver4.png[]
例子中假设此台机器位于美国东部的时区。 请参考您所在的地理位置来配置。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to set this machine's time zone now?
@@ -1516,7 +1516,7 @@ image::console-saver4.png[]
选择 btn:[yes] 并按下 kbd:[Enter]键以配置时区。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Is this machine's CMOS clock set to UTC? If it is set to local time
@@ -1545,7 +1545,7 @@ image::timezone3.png[]
选择您所在的时区然后按 kbd:[Enter]。
-[source,bash]
+[source,shell]
....
Confirmation
Does the abbreviation 'EDT' look reasonable?
@@ -1563,7 +1563,7 @@ image::timezone3.png[]
这节内容只适用于 FreeBSD 7.X 安装过程, 如果您安装的是 FreeBSD 8.X 或更高版本, 系统不会给出这个提示。
====
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to enable Linux binary compatibility?
@@ -1580,7 +1580,7 @@ image::timezone3.png[]
此选项可以让您在终端上使用三键鼠标剪贴文字。 如果您用的鼠标是两个按钮,请参考手册 man:moused[8]; 以取得有关模拟三键鼠标的信息。范例中使用的鼠标不是USB接口。 (例如ps/2或com接口的鼠标):
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Does this system have a PS/2, serial, or bus mouse?
@@ -1635,7 +1635,7 @@ Package 是事先编译好的二进制文件, 因此, 这是安装软件的
在这里作为例子我们将给出安装一个 package 所需的过程。 如果需要, 还可以在这一阶段加入其他 package。 安装完成之后, `sysinstall` 依然可以用来安装其他 package。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
The FreeBSD package collection is a collection of hundreds of
@@ -1688,7 +1688,7 @@ image::pkg-confirm.png[]
在安装系统的过程中, 您应添加至少一个用户, 以避免直接以 `root` 用户的身份登录。 用以保存其用户数据的根分区通常很小, 因此用 `root` 身份运行程序可能将其迅速填满。 下面的提示信息介绍了这样做可能带来的更大隐患:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Would you like to add any initial user accounts to the system? Adding
@@ -1754,7 +1754,7 @@ image::adduser3.png[]
[[rootpass]]
=== 设置 `root` 密码
-[source,bash]
+[source,shell]
....
Message
Now you must set the system manager's password.
@@ -1769,7 +1769,7 @@ image::adduser3.png[]
密码必须正确地输入两次。 毋庸讳言, 您需要选择一个不容易忘记的口令。 请注意您输入的口令不会回显, 也不会显示星号。
-[source,bash]
+[source,shell]
....
New password:
Retype new password :
@@ -1782,7 +1782,7 @@ Retype new password :
如果您需要设置 <<network-services,其他网络设备>>, 或需要完成其他的配置工作, 可以在此时或者事后通过 `sysinstall` 来进行配置。
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Visit the general configuration menu for a chance to set any last
@@ -1799,7 +1799,7 @@ image::mainexit.png[]
选择 btn:[X Exit Install] 然后键入 kbd:[Enter]。您可能需要确认是否真的退出安装:
-[source,bash]
+[source,shell]
....
User Confirmation Requested
Are you sure you wish to exit? The system will reboot.
@@ -1809,7 +1809,7 @@ image::mainexit.png[]
选择 btn:[yes]。 如果您是从 CDROM 引导的系统, 则会出现下面的提示信息要求您取出光盘:
-[source,bash]
+[source,shell]
....
Message
Be sure to remove the media from the drive.
@@ -1841,7 +1841,7 @@ image::net-config-menu1.png[]
下一行是 [.guimenuitem]#AMD Flags# 的参数选项。 选择它之后,会弹出一个让您选择 AMD 参数的子菜单。 菜单中包含一系列的选项:
-[source,bash]
+[source,shell]
....
-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map
....
@@ -1912,7 +1912,7 @@ man:rpcbind[8], man:rpc.statd[8] 和 man:rpc.lockd[8] 这三个程序是用来
典型的启动信息:(忽略版本信息)
-[source,bash]
+[source,shell]
....
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
@@ -2051,7 +2051,7 @@ Password:
正确的关闭操作系统是很重要的。不要仅仅关闭电源。 首先,您需要成为一个超级用户,通过键入 `su` 命令来实现。然后输入 `root` 密码。这需要用户是 `wheel` 组的一名成员。然后, 以``root``键入 ``shutdown -h now``命令。
-[source,bash]
+[source,shell]
....
The operating system has halted.
Please press any key to reboot.
@@ -2103,7 +2103,7 @@ FreeBSD 可以支持基于 MS-DOS(R) 的文件系统 (有时被称为 FAT 文
一个使用 man:mount[8] 挂载 MS-DOS(R) 文件系统的例子:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/ad0s1 /mnt
....
@@ -2123,7 +2123,7 @@ NTFS 分区也可以通过类似 man:mount_ntfs[8] 命令挂接在FreeBSD上。
FreeBSD 在启动过程中广泛使用了 i386、 amd64 及 ia64 平台提供的 ACPI 服务来检测系统配置。 不幸的是, 在 ACPI 驱动和主板 BIOS 中存在一些 bug。 如果遇到这种情况, 可以在系统引导时禁用 ACPI, 其方法是在第三阶段引导加载器时使用 hint `hint.acpi.0.disabled`:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
@@ -2140,7 +2140,7 @@ FreeBSD 在启动过程中广泛使用了 i386、 amd64 及 ia64 平台提供的
FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是 2, 因此, 您应输入:
-[source,bash]
+[source,shell]
....
1:ad(2,a)kernel
....
@@ -2149,7 +2149,7 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
第二种情况是从 SCSI 磁盘启动,但系统中安装了一个或多个 IDE 硬盘。这时,FreeBSD 磁盘编号会比 BIOS 磁盘编号小。如果您有两块 IDE 硬盘, 以及一块 SCSI 硬盘,则 SCSI 硬盘将会是 BIOS 磁盘 2, 类型为 `da` 而 FreeBSD 磁盘编号是 0, 因此, 您应输入:
-[source,bash]
+[source,shell]
....
2:da(0,a)kernel
....
@@ -2200,7 +2200,7 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
+
如果使用刚刚制作的 USB 记忆棒引导系统, 则 FreeBSD 会进入正常的安装模式。 我们希望引导到串口控制台来完成安装。 为了做到这一点, 需要在 FreeBSD 中使用 man:mount[8] 挂载 USB 盘。
+
-[source,bash]
+[source,shell]
....
# mount /dev/da0a /mnt
....
@@ -2212,14 +2212,14 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
+
现在挂好了记忆棒, 您需要对其进行配置令其进入串口控制台。 为此, 需要在 USB 记忆棒中的 [.filename]#loader.conf# 文件中加入下面的这行配置:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /mnt/boot/loader.conf
....
+
这样就完成了对 USB 记忆棒的配置, 您应使用 man:umount[8] 命令将其卸下:
+
-[source,bash]
+[source,shell]
....
# umount /mnt
....
@@ -2231,7 +2231,7 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
+
在保存例如 [.filename]#FreeBSD-8.1-RELEASE-i386-disc1.iso# ISO 的 FreeBSD 系统上用 man:tar[1] 工具提取全部文件:
+
-[source,bash]
+[source,shell]
....
# mkdir /path/to/headless-iso
# tar -C /path/to/headless-iso -pxvf FreeBSD-8.1-RELEASE-i386-disc1.iso
@@ -2239,14 +2239,14 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
+
接下来需要对其进行配置令其进入串口控制台。 为此, 需要在从 ISO 映像中提取的 [.filename]#loader.conf# 文件中加入下面的这行配置:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /path/to/headless-iso/boot/loader.conf
....
+
最后, 从修改好的目录树中创建新的 ISO 映像。 这里我们使用通过 package:sysutils/cdrtools[] port 安装的 man:mkisofs[8] 工具来完成:
+
-[source,bash]
+[source,shell]
....
# mkisofs -v -b boot/cdboot -no-emul-boot -r -J -V "Headless_install" \
-o Headless-FreeBSD-8.1-RELEASE-i386-disc1.iso /path/to/headless-iso
@@ -2263,14 +2263,14 @@ FreeBSD 位于 BIOS 磁盘 1, 其类型是 `ad` 而 FreeBSD 磁盘编号则是
+
现在您已经通过man:cu[1]连接到了那台机器。
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuau0
....
+
在 FreeBSD 7.X 上应使用下面的命令:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuad0
....
@@ -2374,7 +2374,7 @@ FreeBSD 光盘的布局和 FTP 站点相同。 这样, 建立局域网 FTP 站
. 在要作为FTP站点的那台FreeBSD机器上, 确定FreeBSD磁盘放入光驱中并将它挂在 [.filename]#/cdrom# 目录中。
+
-[source,bash]
+[source,shell]
....
# mount /cdrom
....
@@ -2412,7 +2412,7 @@ _不要_ 指望厂家的预先格式化! 最好还是亲自进行格式化。
如果您在另外一台FreeBSD的机器上做了启动盘的话, 进行格式化是一个不错的主意。 虽然您不需要把每张盘都做成DOS文件系统。您也可以使用 `bsdlabel` 和 `newfs` 命令来创建一个UFS文件系统,具体操作按下面的顺序进行:
-[source,bash]
+[source,shell]
....
# fdformat -f 1440 fd0.1440
# bsdlabel -w fd0.1440 floppy3
@@ -2435,7 +2435,7 @@ _不要_ 指望厂家的预先格式化! 最好还是亲自进行格式化。
如果从 MS-DOS(R) 分区安装, 您需要将发布文件复制到该分区根目录下的 [.filename]#freebsd# 目录中。 例如: [.filename]#c:\freebsd#。 您必须复制一部分 CDROM 或 FTP 上的目录结构, 因此, 如果您从光盘进行复制, 建议使用 DOS 的 `xcopy` 命令。 下面是准备进行 FreeBSD 最小系统安装的例子:
-[source,bash]
+[source,shell]
....
C:\> md c:\freebsd
C:\> xcopy e:\bin c:\freebsd\bin\ /s
@@ -2452,7 +2452,7 @@ C:\> xcopy e:\manpages c:\freebsd\manpages\ /s
从磁带安装也许是最简单的方式, 比在线使用 FTP 安装或使用 CDROM 还快。安装的程序假设是简单地被压缩在磁带上。 在您得到所有配置文件后,简单地解开它们,用下面的命令:
-[source,bash]
+[source,shell]
....
# cd /freebsd/distdir
# tar cvf /dev/rwt0 dist1 ... dist2
diff --git a/documentation/content/zh-cn/books/handbook/jails/_index.adoc b/documentation/content/zh-cn/books/handbook/jails/_index.adoc
index 29f8267796..3fcd136ce6 100644
--- a/documentation/content/zh-cn/books/handbook/jails/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/jails/_index.adoc
@@ -111,7 +111,7 @@ jail 具有以下四项特点:
一些系统管理员喜欢将 jail 分为两类: "完整的" jail, 通常包含真正的 FreeBSD 系统, 以及 "服务" jail, 专用于执行一个可能使用特权的应用或服务。 这只是一种概念上的区分, 并不影响如何建立 jail 的过程。 在联机手册 man:jail[8] 中对如何创建 jail 进行了清晰的阐述:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -173,7 +173,7 @@ jail_www_devfs_ruleset="www_ruleset" # 在 jail 中应用的devfs 规则集
[.filename]#/etc/rc.d/jail# 脚本也可以用于手工启动或停止 [.filename]#rc.conf# 中配置的 jail:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail start www
# /etc/rc.d/jail stop www
@@ -181,7 +181,7 @@ jail_www_devfs_ruleset="www_ruleset" # 在 jail 中应用的devfs 规则集
目前, 尚没有一种方法来很干净地关闭 man:jail[8]。 这是因为通常用于正常关闭系统的命令, 目前尚不能在 jail 中使用。 目前, 关闭 jail 最好的方式, 是在 jail 外通过 man:jexec[8] 工具, 在 jail 中执行下列命令:
-[source,bash]
+[source,shell]
....
# sh /etc/rc.shutdown
....
@@ -217,7 +217,7 @@ FreeBSD 的基本系统包含一系列用于查看目前在使用的 jail 信息
* 从宿主系统中接入正在运行的 jail, 并在其中执行命令, 以完成一系列 jail 管理任务。 这在 `root` 希望干净地关闭 jail 时非常有用。 man:jexec[8] 工具也可以用于在 jail 中启动 shell 以便对其进行管理; 例如:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -290,7 +290,7 @@ jail 的一个主要问题是如何对它们进行升级和管理。 由于每
. 首先, 需要为将要存放只读的 FreeBSD 执行文件的文件系统建立一个目录, 接着进入 FreeBSD 源代码的目录, 并在其中安装 jail 模板:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -299,7 +299,7 @@ jail 的一个主要问题是如何对它们进行升级和管理。 由于每
+
. 接着, 准备一份 FreeBSD Ports 套件, 以及用于执行 mergemaster 的 FreeBSD 源代码:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -309,7 +309,7 @@ jail 的一个主要问题是如何对它们进行升级和管理。 由于每
+
. 创建系统中可读写部分的骨架:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -321,7 +321,7 @@ jail 的一个主要问题是如何对它们进行升级和管理。 由于每
+
. 使用 mergemaster 安装缺失的配置文件。 接下来, 删除 mergemaster 创建的多余目录:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -330,7 +330,7 @@ jail 的一个主要问题是如何对它们进行升级和管理。 由于每
+
. 现在, 将可读写文件系统连接到只读文件系统中。 请确保您在 [.filename]#s/# 目录中建立了适当的符号连接。 如果没有建立目录或建立的位置不正确, 可能会导致安装失败。
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -408,14 +408,14 @@ jail_www_devfs_enable="YES"
+
. 为每个 jail 创建所需的只读文件系统挂接点:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. 在 jail 中安装可读写的模板。 注意您需要使用 package:sysutils/cpdup[], 它能够帮助您确保每个目录都是正确地复制的:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -425,7 +425,7 @@ jail_www_devfs_enable="YES"
+
. 这样, 就完成了 jail 的制作, 可以运行了。 首先为 jail 挂接文件系统, 然后使用 [.filename]#/etc/rc.d/jail# 脚本来启动它们:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
@@ -434,7 +434,7 @@ jail_www_devfs_enable="YES"
现在 jail 应该就启动起来了。 要检查它们是否运行正常, 可以使用 man:jls[8] 命令。 它的输出应该类似这样:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -445,7 +445,7 @@ jail_www_devfs_enable="YES"
这时, 就可以登入 jail 并增加用户和配置服务了。 `JID` 列给出了正在运行的 jail 的标识编号。 您可以使用下面的命令来在 `JID` 编号为 3 的 jail 中执行管理任务:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -460,7 +460,7 @@ jail_www_devfs_enable="YES"
. 第一步是按通常的方法升级主机的系统。 接着, 在 [.filename]#/home/j/mroot2# 中建立一个新的临时模板:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -472,7 +472,7 @@ jail_www_devfs_enable="YES"
+
在运行 `installworld` 时会创建一些不需要的目录, 应将它们删除:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -480,7 +480,7 @@ jail_www_devfs_enable="YES"
+
. 重建到主系统中的可读写符号连接:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -493,14 +493,14 @@ jail_www_devfs_enable="YES"
+
. 现在是时候关闭 jail 了:
+
-[source,bash]
+[source,shell]
....
# /etc/rc.d/jail stop
....
+
. 卸下原先的文件系统:
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -517,7 +517,7 @@ jail_www_devfs_enable="YES"
+
. 将先前的只读文件系统挪走, 换成新的系统。 这样做也同时保留了先前系统的备份, 从而可以在出现问题时从中恢复。 这里我们根据新系统的创建时间来命名。 此外我们把先前的 FreeBSD Ports 套件直接移动到新的文件系统中, 以节省磁盘空间和 inode:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -527,7 +527,7 @@ jail_www_devfs_enable="YES"
+
. 现在新的只读模板就可以用了, 剩下的事情是重新挂接文件系统并启动 jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# /etc/rc.d/jail start
diff --git a/documentation/content/zh-cn/books/handbook/kernelconfig/_index.adoc b/documentation/content/zh-cn/books/handbook/kernelconfig/_index.adoc
index 0b651d8b5d..d14a138218 100644
--- a/documentation/content/zh-cn/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/kernelconfig/_index.adoc
@@ -114,7 +114,7 @@ ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01
还可以传给 man:man[1] 命令 `-k` 选项, 同样能获得有用的信息。例如:
-[source,bash]
+[source,shell]
....
# man -k Atheros
....
@@ -165,7 +165,7 @@ following line in man:loader.conf[5]:
====
如果您的系统中 _没有_[.filename]#/usr/src/sys# 这样一个目录, 则说明没有安装内核源代码。 安装它最简单的方法是通过以 root 身份运行 `sysinstall`, 选择 [.guimenuitem]#Configure#, 然后是 [.guimenuitem]#Distributions#、 [.guimenuitem]#src#, 选中其中的 [.guimenuitem]#base# 和 [.guimenuitem]#sys#。 如果您不喜欢 sysinstall 并且有一张 "官方的" FreeBSD CDROM, 也可以使用下列命令, 从命令行来安装源代码:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# mkdir -p /usr/src/sys
@@ -178,7 +178,7 @@ following line in man:loader.conf[5]:
接下来, 进入 [.filename]#arch/conf# 目录下面, 复制 [.filename]#GENERIC# 配置文件, 并给这个文件起一个容易辨认的名称, 它就是您的内核名称。例如:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
@@ -195,7 +195,7 @@ following line in man:loader.conf[5]:
例如:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf
# mkdir /root/kernels
@@ -227,21 +227,21 @@ following line in man:loader.conf[5]:
. 进入 [.filename]#/usr/src# 目录:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. 编译内核:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. 安装新内核:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -303,7 +303,7 @@ options IPDIVERT
====
如果您需要一份包含所有选项的文件, 例如用于测试目的, 则应以 `root` 身份执行下列命令:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/i386/conf && make LINT
....
@@ -1150,7 +1150,7 @@ PAE在FreeBSD下有如下的一些限制:
``config``失败:::
如果 man:config[8] 在给出您的内核描述时失败, 则可能在某些地方引入了一处小的错误。 幸运的是, man:config[8] 会显示出它遇到问题的行号, 这样您就能够迅速地定位错误。 例如, 如果您看到:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -1169,7 +1169,7 @@ config: line 17: syntax error
====
如果在编译内核时遇到麻烦, 请务必保留一个 [.filename]#GENERIC# 或已知可用的其他内核, 并命名为别的名字以免在下次启动时被覆盖。 不要依赖 [.filename]#kernel.old# 因为在安装新内核时, [.filename]#kernel.old# 会被上次安装的那个可能不正常的内核覆盖掉。 另外, 尽快把可用的内核挪到 [.filename]#/boot/kernel# 否则类似 man:ps[1] 这样的命令可能无法正常工作。 为了完成这一点, 需要修改目录的名字:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/zh-cn/books/handbook/l10n/_index.adoc b/documentation/content/zh-cn/books/handbook/l10n/_index.adoc
index 48730f03dc..40779fdf31 100644
--- a/documentation/content/zh-cn/books/handbook/l10n/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/l10n/_index.adoc
@@ -212,7 +212,7 @@ german|German Users Accounts:\
在修改用户的登入类型之前, 应首先执行下面的命令:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -235,14 +235,14 @@ user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh
* 在[.filename]##/etc/adduser.conf##里面设置``defaultclass = 语言``。应该记住,您必须为使用其它语言的所有用户设置 ``缺省``类别。
* 每一次使用man:adduser[8]的时候,一个特定语言的可选择性回答会像下面这样给出:
+
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
* 如果您打算给每一个用户使用另外一种语言,您应该这样:
+
-[source,bash]
+[source,shell]
....
# adduser -class language
....
@@ -251,7 +251,7 @@ Enter login class: default []:
如果您使用man:pw[8]来添加新用户,应该这样使用:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
diff --git a/documentation/content/zh-cn/books/handbook/linuxemu/_index.adoc b/documentation/content/zh-cn/books/handbook/linuxemu/_index.adoc
index 1ef6236dfa..bba3a6ced9 100644
--- a/documentation/content/zh-cn/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/linuxemu/_index.adoc
@@ -70,7 +70,7 @@ FreeBSD 提供了与 Linux(R) 32-bit 二进制兼容, 允许用户在 FreeBSD
安装 package:emulators/linux-base-f10[] 包或者 port 是最容易在 FreeBSD 系统上获得一套基本的 Linux(R) 库的方法。 使用如下方法安装 port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/linux_base-f10
# make install distclean
@@ -78,14 +78,14 @@ FreeBSD 提供了与 Linux(R) 32-bit 二进制兼容, 允许用户在 FreeBSD
安装完成以后, 加载 `linux` 模块启用 Linux(R) 二进制兼容模式:
-[source,bash]
+[source,shell]
....
# kldload linux
....
查看模块是否已经被加载:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -109,7 +109,7 @@ linux_enable="YES"
在 Linux(R) 系统上使用 `ldd` 找出应用程序所需的共享库文件。 比如, 在安装有 Doom 的 Linux(R) 系统上运行如下的命令列出 `linuxdoom` 所需用到的共享库文件:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -119,7 +119,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
然后把上面输出中最后一列中的所有文件从 Linux(R) 系统复制到 FreeBSD 上的 [.filename]#/compat/linux#。 复制完成之后, 建立指向第一栏中文件名的符号链接。 这样在 FreeBSD 系统上将会有如下的文件:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -133,7 +133,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
比如, FreeBSD 系统中现有这些共享库文件:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -141,14 +141,14 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
并且 `ldd` 指出某个二进制程序需要之后版本:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
既然现有文件最后的版本号只相差一到两个版本, 程序应该可以正常使用稍旧些的版本。 不管怎样, 使用新版本替换现有 [.filename]#libc.so# 都是安全的。
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -160,7 +160,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
ELF 二进制程序有时需要额外的步骤。 当未被标记的 ELF 二进制程序被执行的时候, 会生成如下的错误信息:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -169,7 +169,7 @@ Abort
为了帮助 FreeBSD 内核分辨 FreeBSD ELF 二进制程序和 Linux(R) 二进制程序, 请使用 man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -180,7 +180,7 @@ Abort
安装基于 Linux(R) RPM 的应用程序, 首先需要安装 package:archivers/rpm[] 包或者 port。 安装好之后 `root` 用户就能使用此命令安装 [.filename]#.rpm# 了:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -192,7 +192,7 @@ Abort
如果 DNS 不能正常工作或是出现以下的错误信息:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -227,7 +227,7 @@ FreeBSD 有一份加载器列表而不是一个单一的加载器, 并能回
要运行 Linux(R) 二进制程序, 必须先使用 man:brandelf[1] 命令 _标记_ 为 `Linux` 类型:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/zh-cn/books/handbook/mac/_index.adoc b/documentation/content/zh-cn/books/handbook/mac/_index.adoc
index f69c0211b4..a6359e57c4 100644
--- a/documentation/content/zh-cn/books/handbook/mac/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/mac/_index.adoc
@@ -156,14 +156,14 @@ __等一下, 这看起来很像 DAC! 但我认为 MAC 确实只将控制权
所有的配置都应该通过 man:setfmac[8] 及 man:setpmac[8] 组件实施。 `setfmac` 命令是用来对系统客体设置 MAC 标签的, 而 `setpmac` 则是用来对系统主体设置标签的。 例如:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
若以上命令不发生错误则会直接返回命令提示符, 只有当发生错误时, 这些命令才会给出提示, 这和 man:chmod[1] 和 man:chown[8] 命令类似。 某些情况下, 以上命令产生的错误可能是 `Permission denied`, 一般在受限客体上设置或修改设置时会产生此错误。 系统管理员可使用以下命令解决此问题:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -255,7 +255,7 @@ default:\
`maclabel` 可以作为 `ifconfig` 的参数用于设置网络接口的 MAC 标签。 例如:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -284,7 +284,7 @@ default:\
接下来的命令将在需要使用多个标签的文件系统上设置 `multilabel`。 这一操作只能在单用户模式下完成:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -359,7 +359,7 @@ man:mac_bsdextended[4] 模块能够强制文件系统防火墙策略。 这一
在加载了 man:mac_bsdextended[4] 模块之后, 下列命令可以用来列出当前的规则配置:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -367,14 +367,14 @@ man:mac_bsdextended[4] 模块能够强制文件系统防火墙策略。 这一
如希望的那样, 目前还没有定义任何规则。 这意味着一切都还可以访问。 要创建一个阻止所有用户, 而保持 `root` 不受影响的规则, 只需运行下面的命令:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
这本身可能是一个很糟糕的主意, 因为它会阻止所有用户执行哪怕最简单的命令, 例如 `ls`。 更富于爱心的规则可能是:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -443,7 +443,7 @@ man:mac_portacl[4] 模块可以用来通过一系列 `sysctl` 变量来限制绑
下面的例子更好地展示了前面讨论的内容:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0 net.inet.ip.portrange.reservedhigh=0
@@ -451,21 +451,21 @@ man:mac_portacl[4] 模块可以用来通过一系列 `sysctl` 变量来限制绑
首先我们需要设置使 man:mac_portacl[4] 管理标准的特权端口, 并禁用普通的 UNIX(R) 绑定限制。
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
您的 `root` 用户不应因此策略而失去特权, 因此请把 `security.mac.portacl.suser_exempt` 设置为一个非零的值。 现在您已经成功地配置了 man:mac_portacl[4] 模块, 并使其默认与 类-UNIX(R) 系统一样运行了。
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
允许 UID 为 80 的用户 (正常情况下, 应该是 `www` 用户) 绑定到 80 端口。 这样 `www` 用户就能够运行 web 服务器, 而不需要使用 `root` 权限了。
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -493,7 +493,7 @@ man:mac_partition[4] 策略将把进程基于其 MAC 标签放到特定的 "part
要设置或删除 partition 标签中的工具, 需要使用 `setpmac`:
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
@@ -504,14 +504,14 @@ man:mac_partition[4] 策略将把进程基于其 MAC 标签放到特定的 "part
下面的命令将显示 partition 标签以及进程列表:
-[source,bash]
+[source,shell]
....
# ps Zax
....
接下来的这个命令将允许察看其他用户的进程 partition 标签, 以及那个用户正在运行的进程:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -563,14 +563,14 @@ MLS 提供了:
要管理 MLS 标签, 可以使用 man:setfmac[8] 命令。 要在客体上指定标签, 需要使用下面的命令:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
下述命令用于取得文件 [.filename]#test# 上的 MLS 标签:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -619,7 +619,7 @@ Biba 提供了:
要操作系统客体上的 Biba 策略, 需要使用 `setfmac` 和 `getfmac` 命令:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -655,7 +655,7 @@ MAC LOMAC 策略依赖于系统客体上存在普适的标签, 这样就允许
与 Biba 和 MLS 策略类似; `setfmac` 和 `setpmac` 工具可以用来在系统客体上放置标签:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes
@@ -711,7 +711,7 @@ insecure:\
一旦完成上述操作, 就需要运行下面的命令来重建数据库:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -730,14 +730,14 @@ mac_seeotheruids_load="YES"
使用下面的命令将 `root` 设为属于默认的 class:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
所有非 `root` 或系统的用户, 现在需要一个登录 class。 登录 class 是必须的, 否则这些用户将被禁止使用类似 man:vi[1] 这样的命令。 下面的 `sh` 脚本应能完成这个工作:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
@@ -746,12 +746,12 @@ mac_seeotheruids_load="YES"
将 `nagios` 和 `www` 这两个用户归入不安全 class:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
....
-[source,bash]
+[source,shell]
....
# pw usermod www -L insecure
....
@@ -802,7 +802,7 @@ mac_seeotheruids_load="YES"
接下来可以用下面的命令将其读入系统:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
# setfsmac -ef /etc/policy.contexts /
@@ -845,7 +845,7 @@ maclabel biba/equal
如果一切正常, Nagios、 Apache, 以及 Sendmail 就可以按照适应安全策略的方式启动了。 下面的命令将完成此工作:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -858,7 +858,7 @@ setpmac biba/10\(10-10\) /usr/local/etc/rc.d/nagios.sh forcestart
====
`root` 用户可以放心大胆地修改安全强制措施, 并编辑配置文件。 下面的命令可以对安全策略进行降级, 并启动一个新的 shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/zh-cn/books/handbook/mail/_index.adoc b/documentation/content/zh-cn/books/handbook/mail/_index.adoc
index 220eea4f75..020720d98f 100644
--- a/documentation/content/zh-cn/books/handbook/mail/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/mail/_index.adoc
@@ -108,7 +108,7 @@ DNS 负责将主机名映射为 IP 地址, 同时, 也需要保存递送邮
您可以通过 man:host[1] 命令来查找任何域或主机名对应的 MX 记录, 如下面的例子所示:
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled (pri=10) by mx1.FreeBSD.org
@@ -325,7 +325,7 @@ sendmail_enable="NO"
可以向 [.filename]#/etc/rc.conf# 中加入配置项使新的 MTA 在系统启动时运行, 下面是一个 postfix 的例子:
-[source,bash]
+[source,shell]
....
# echo 'postfix_enable=“YES”' >> /etc/rc.conf
....
@@ -487,7 +487,7 @@ hostname.customer.com。只要为customer.com在 DNS
有很多方法可以避免这种现象。 最直截了当的方法是把您的 ISP 的地址放到 [.filename]#/etc/mail/relay-domains# 文件中。 完成这项工作的简单的方法是:
-[source,bash]
+[source,shell]
....
# echo "your.isp.example.com" > /etc/mail/relay-domains
....
@@ -526,7 +526,7 @@ www.example.org
试试这个:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -538,7 +538,7 @@ example.FreeBSD.org has address 204.216.27.XX
如果您看到这些:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -612,7 +612,7 @@ sendmail 的配置,在 FreeBSD 中已经配置好为您的站点直接的连
首先,您必须建立您自己的 [.filename]#.mc# 文件。 [.filename]#/usr/shared/sendmail/cf/cf# 目录包含一些例子。 假定您已经命名自己的文件叫做 [.filename]#foo.mc#, 您要做的只是把它转换成一个有效的 [.filename]#sendmail.cf#:
-[source,bash]
+[source,shell]
....
# cd /etc/mail
# make foo.cf
@@ -674,7 +674,7 @@ if-bus.UUCP uucp-dom:if-bus
最后提示:如果您不确定某个特定的路径可用, 记得把 `-bt` 选项加到 sendmail。这会将 sendmail 启动在 _地址检测模式_。只要按下 `3,0`,接着输入您希望测试的邮件路径位置。 最后一行告诉您使用邮件代理程序, 代理程序会通知目的主机以及 (可能转换) 地址。 要离开此模式请按 kbd:[Ctrl+D]。
-[source,bash]
+[source,shell]
....
% sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
@@ -700,7 +700,7 @@ parse returns: $# uucp-dom $@ your.uucp.relay $: foo < @ example . co
满足这些需要最简单的办法是安装 package:mail/ssmtp[] port。 以 `root` 身份执行下面的命令:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -806,7 +806,7 @@ saslauthd_enable="YES"
+
最后启用 saslauthd 服务:
+
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/saslauthd start
....
@@ -824,7 +824,7 @@ SENDMAIL_LDADD=-lsasl2
这些配置将告诉系统在联编 sendmail 时使用适当的配置选项来在编译过程中连入 package:cyrus-sasl2[]. 在重新编译 sendmail 之前, 请确认已经安装了 package:cyrus-sasl2[]。
. 重新编译 sendmail 运行如下命令:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -866,14 +866,14 @@ man:mail[1] 是 FreeBSD 中默认的邮件用户代理 (MUA)。 它是一个基
要收发邮件, 只需简单地使用 `mail` 命令, 如下所示:
-[source,bash]
+[source,shell]
....
% mail
....
用户保存在 [.filename]#/var/mail# 中的信箱的内容会被 `mail` 程序自动地读取。 如果信箱是空的, 程序会退出并给出一个消息表示没有邮件。 一旦读完了信箱, 将启动应用程序的界面, 并列出邮件。 所有的邮件会被自动编号, 类似下面的样子:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -884,7 +884,7 @@ Mail version 8.1 6/6/93. Type ? for help.
现在, 您通过使用 `mail` 的 kbd:[t] 命令, 并给出邮件的编号, 就可以看到邮件了。 在这个例子中, 我们将阅读第一封邮件:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -903,7 +903,7 @@ This is a test message, please reply if you receive it.
如果需要回复邮件, 也可以使用 ``mail`` 来完成, 方法是使用 kbd:[R] 或 kbd:[r] 这两个 ``mail``键。 kbd:[R] 键会要求 ``mail`` 只回复发送邮件的人, 而 kbd:[r] 不仅回复发送邮件的人, 而且也会将回复抄送给原来邮件的其他接收者。 如果需要, 也可以在这些命令后面指定邮件的编号。 做完这些之后, 就可以输入回复了, 在邮件的最后应该有一个只有一个 kbd:[.] 的行, 例如:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -916,7 +916,7 @@ EOT
要发出新邮件, 可以使用 kbd:[m], 后面接收件人的邮件地址。 多个收件人之间, 应该使用 kbd:[,] 隔开。 接下来需要输入邮件的主题, 然后是正文。 同样的, 在邮件最后需要一个只有 kbd:[.] 的空行表示结束。
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -948,7 +948,7 @@ mutt 是一个短小精悍的邮件用户代理, 它提供了许多卓越的
稳定版本的 mutt 可以通过 package:mail/mutt[] port 来安装, 而开发版本, 则可以通过使用 package:mail/mutt-devel[] port 安装。 通过 port 安装之后,可以通过下面的命令来启动 mutt:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -987,7 +987,7 @@ alpine 主要是针对初学者设计的, 但也提供了一些高级功能。
最新版本的 alpine 可以通过使用 package:mail/alpine[] port 来安装。 装好之后, alpine 可以通过下面的命令启动:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -1028,7 +1028,7 @@ fetchmail 是一个全功能的 IMAP 和 POP 客户程序, 它允许用户自
尽管介绍全部 fetchmail 的功能超出了本书的范围, 但这里仍然介绍了其基本的功能。 fetchmail 工具需要一个名为 [.filename]#.fetchmailrc# 的配置文件才能正常工作。 这个文件中包含了服务器信息, 以及登录使用的凭据。 由于这个文件包含敏感内容, 建议将其设置为只有属主所有, 使用下面的命令:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -1053,7 +1053,7 @@ user "john", with password "XXXXX", is "myth" here;
另外, fetchmail 也可以通过指定 `-d` 参数, 并给出 fetchmail 在轮询 [.filename]#.fetchmailrc# 文件中列出的服务器的时间间隔, 来以服务程序的方式运行。 下面的例子会让 fetchmail 每 600 秒轮询一次:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/zh-cn/books/handbook/mirrors/_index.adoc b/documentation/content/zh-cn/books/handbook/mirrors/_index.adoc
index d578514e7c..63695134b4 100644
--- a/documentation/content/zh-cn/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/mirrors/_index.adoc
@@ -545,7 +545,7 @@ SSH2 HostKey: 2048 53:1f:15:a3:72:5c:43:f6:44:0e:6a:e9:bb:f8:01:62 /etc/ssh/ssh_
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -560,7 +560,7 @@ SSH2 HostKey: 2048 53:1f:15:a3:72:5c:43:f6:44:0e:6a:e9:bb:f8:01:62 /etc/ssh/ssh_
[example]
====
-[source,bash]
+[source,shell]
....
% cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co src
The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't be established.
@@ -575,7 +575,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -590,7 +590,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -605,7 +605,7 @@ Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hos
[example]
====
-[source,bash]
+[source,shell]
....
% setenv CVSROOT :pserver:anoncvs@anoncvs.tw.FreeBSD.org:/home/ncvs
% cvs login
@@ -677,7 +677,7 @@ FTP 访问相关的目录并取得 [.filename]#README# 文件,从那里开始
要应用 deltas,简单的键入:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/the/stuff
# ctm -v -v /where/you/store/your/deltas/src-xxx.*
@@ -721,7 +721,7 @@ CTM 还有其他的一些参数, 查看手册页或者源代码了解更多信
例如,要从您保存的CTM deltas 集里解压缩出一个最新的 [.filename]#lib/libc/Makefile# 文件,运行这个命令:
-[source,bash]
+[source,shell]
....
# cd /where/ever/you/want/to/extract/it/
# ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*
@@ -929,7 +929,7 @@ src-all
[.filename]#refuse# 文件的格式很简单; 它仅仅包含您不希望下载的文件和目录名。 例如,如果您除了英语和德语之外不会讲其他语言, 而且也不打算阅读德文的文档翻译版本, 则可以把下面这些放在您的 [.filename]#refuse# 文件里:
-[source,bash]
+[source,shell]
....
doc/bn_*
doc/da_*
@@ -959,7 +959,7 @@ doc/zh_*
您现在准备尝试升级了。命令很简单:
-[source,bash]
+[source,shell]
....
# cvsup supfile
....
@@ -968,7 +968,7 @@ doc/zh_*
在这个例子里您将要升级您目前的 [.filename]#/usr/src# 树,您将需要 用 `root` 来运行程序,这样 `cvsup` 有需要的权限来更新您的文件。 刚刚创建了您的配置文件,又从来没有使用过这个程序, 紧张不安是可以理解的。有一个简单的方法不改变您当前的文件 来做一次试验性的运行。只要在方便的地方创建一个 空目录,并在命令行上作为一个额外的参数说明:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/dest
# cvsup supfile /var/tmp/dest
@@ -978,7 +978,7 @@ doc/zh_*
如果您没有运行 X11 或者不喜欢 GUI, 当您运行 `cvsup` 的时候需要在命令行添加 两个选项:
-[source,bash]
+[source,shell]
....
# cvsup -g -L 2 supfile
....
diff --git a/documentation/content/zh-cn/books/handbook/multimedia/_index.adoc b/documentation/content/zh-cn/books/handbook/multimedia/_index.adoc
index a011b4e45b..32110bbd15 100644
--- a/documentation/content/zh-cn/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/multimedia/_index.adoc
@@ -87,7 +87,7 @@ FreeBSD 广泛地支持各种声卡, 让您可以从容地享受来自您的
要使用声卡, 就应装载正确的驱动程序。完成的方式有两种: 最简单的是使用命令 man:kldload[8] 来装载一个内核模块,在命令行输入
-[source,bash]
+[source,shell]
....
# kldload snd_emu10k1
....
@@ -101,7 +101,7 @@ snd_emu10k1_load="YES"
上边实例用于 Creative SoundBlaster(R) Live! 声卡。 其它可装载的模块列在文件 [.filename]#/boot/defaults/loader.conf# 里边。 如果不知道应该使用哪个驱动, 您可以尝试加载 [.filename]#snd_driver# module:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -160,7 +160,7 @@ hint.sbc.0.flags="0x15"
用修改过的内核重起,或者加载了需要的模块之后, 声卡将会出现在您的系统消息缓存中 (man:dmesg[8]),就像这样:
-[source,bash]
+[source,shell]
....
pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
@@ -169,7 +169,7 @@ pcm0: <Cirrus Logic CS4205 AC97 Codec>
声卡的状态可以通过 [.filename]#/dev/sndstat# 文件来查询:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
@@ -182,7 +182,7 @@ kld snd_ich (1p/2r/0v channels duplex default)
如果一切正常,您现在应该拥有一个多功能声卡了。 如果您的 CD-ROM 或者 DVD-ROM 驱动器的音频输出线已经与声卡连在一起, 您可以把 CD 放入驱动器并用 man:cdcontrol[1] 来播放:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -191,7 +191,7 @@ kld snd_ich (1p/2r/0v channels duplex default)
另一种快速测试声卡的方法, 是将数据发送到 [.filename]#/dev/dsp#, 像这样做:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -260,7 +260,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
此处显卡 (`NVidia`) 先于真正的声卡 (`Realtek ALC889`) 被探测到。 要使用声卡作为默认的回放设备, 将 `hw.snd.default_unit` 改为对应的设备编号:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -281,7 +281,7 @@ FreeBSD 可以通过 _虚拟声道(Virtual Sound Channels)_ 来达到这样的
使用三条sysctl命令来设置虚拟声道的数目。 如果您是 `root` 用户, 执行下面的操作:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -326,7 +326,7 @@ package:audio/mpg123[] port 提供了一个命令行界面的 MP3 播放器。
mpg123 可以在执行时通过命令行指定声音设备和要播放的 MP3 文件, 假设你的声音设备是 [.filename]#/dev/dsp1.0# 并且你想要播放的 MP3 文件为 _Foobar-GreatestHits.mp3_ 你可以键入以下的命令:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
@@ -347,14 +347,14 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
把CD放到光驱里,下面的命令可以完成 (作为 `root`用户) 把整张 CD 分割成单个 (每个音轨) 的WAV文件:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
cdda2wav 支持 ATAPI (IDE)光驱。 从IDE光驱中抓取音轨, 需要用设备名称代替SCSI的单元号。 例如, 想从 IDE 光驱中抓取第7道音轨:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -363,14 +363,14 @@ cdda2wav 支持 ATAPI (IDE)光驱。 从IDE光驱中抓取音轨, 需要用设
抓取单轨,要使用选项 `-t`,如下所示:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
这个实例用于抓取第七个音轨。要抓取一定范围的音轨,如从1到7:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
@@ -384,7 +384,7 @@ cdda2wav 支持 ATAPI (IDE)光驱。 从IDE光驱中抓取音轨, 需要用设
利用抓取的WAV文件,下边的命令就可以把 [.filename]#audio01.wav# 转换成 [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 \
--tt "Foo Song Title" \
@@ -427,7 +427,7 @@ audio01.wav audio01.mp3
XMMS 输出的文件是波形(WAV)格式, 而 mpg123 则把MP3转换成无压缩的PCM 音频数据。两种格式都支持用 cdrecord 刻录成音乐CD。 使用 man:burncd[8] 您就必须使用无压缩的PCM。 如果选择波形格式, 就要注意在每道开始时的一小点杂音, 这段声音是波形文件的头部份。 可以使用工具 SoX 来轻松去除。 SoX 可从 package:audio/sox[] port 或包(package)中安装得到:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -443,7 +443,7 @@ XMMS 输出的文件是波形(WAV)格式, 而 mpg123 则把MP3转换成无压
为了评估各种播放器和设置,您需要有一小段用作测试的MPEG文件。 由于一些DVD播放器会默认地在 [.filename]#/dev/dvd# 里去找DVD文件, 因此, 您会发现建立符号链接到恰当的设备会很有用:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd
@@ -487,14 +487,14 @@ Xorg 有种扩展叫做 _XVideo_ (或称Xvideo, Xv, xv), 它可以通过一个
要了解这一扩展是否在正常工作, 使用 `xvinfo` 命令:
-[source,bash]
+[source,shell]
....
% xvinfo
....
如果显示结果如下,那您的显卡就支持XVideo:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -570,7 +570,7 @@ screen #0
如果结果看起来是这样:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -627,7 +627,7 @@ MPlayer 是近来开发的同时也正迅速发展着的一个视频播放器。
MPlayer 可以从 package:multimedia/mplayer[] 找到。 MPlayer 在联编过程中会进行许多硬件检测, 而得到的可执行文件因此将无法移植到其他系统中使用。 因此, 从 ports 完成联编而不是安装预编译的包就很重要。 另外, 在 `make` 命令行还可以指定许多选项, 在 [.filename]#Makefile# 中有所描述, 接下来我们开始联编:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mplayer
# make
@@ -655,7 +655,7 @@ MPlayer 的 HTML 文档提供了丰富的内容。 如果读者发现本章中
任何 MPlayer 用户必须在其用户主目录下建立一个叫 [.filename]#.mplayer# 的子目录。 输入下边的内容来建立这个必须的子目录:
-[source,bash]
+[source,shell]
....
% cd /usr/ports/multimedia/mplayer
% make install-user
@@ -665,27 +665,27 @@ MPlayer 的 HTML 文档提供了丰富的内容。 如果读者发现本章中
要播放一个文件,如 [.filename]#testfile.avi#, 可以通过各种视频接口当中的某一个去设置 `-vo` 选项:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -694,7 +694,7 @@ MPlayer 的 HTML 文档提供了丰富的内容。 如果读者发现本章中
要播放 DVD, 需要把 [.filename]#testfile.avi# 改为 `dvd://_N_ -dvd-device _DEVICE_`。 这里 _N_ 是要播放的节目编号, 而 [.filename]#DEVICE# 则是 DVD-ROM 的设备节点。 例如, 要播放 [.filename]#/dev/dvd# 的第三个节目:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -719,7 +719,7 @@ zoom=yes
最后,`mplayer` 可以把DVD题目(title)抓取成为 [.filename]#.vob# 文件。为了从DVD中导出第二个题目,请输入:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -731,7 +731,7 @@ zoom=yes
在使用 `mencoder` 之前, 首先熟悉其 HTML 文档中所介绍的选项是一个不错的主意。 它提供了联机手册, 但如果没有 HTML 文档则帮助不大。 有无数种方法来提高视频品质、 降低比特率、 修改格式, 而这些技巧可能会影响性能。 下面是几个例子, 第一个是简单地复制:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -740,7 +740,7 @@ zoom=yes
转换 [.filename]#input.avi# 成为带有MPEG3音频编码 (要求 package:audio/lame[] ) 的MPEG4编码:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -763,14 +763,14 @@ xine 播放器仍然很粗糙, 但这很显然与好开头无关。实际上 x
默认情况下,播放器 xine 启动的时候会使用图形界面。那么就可以使用菜单打开指定的文件:
-[source,bash]
+[source,shell]
....
% xine
....
另外,没有图形界面也可以使用如下命令立即打开播放文件:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -782,7 +782,7 @@ transcode 这个软件并不是播放器, 而是一系列用于对视频和音
在联编 package:multimedia/transcode[] port 时可以指定大量选项, 我们建议使用下面的命令行来构建 transcode:
-[source,bash]
+[source,shell]
....
# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes
@@ -792,7 +792,7 @@ WITH_MJPEG=yes -DWITH_XVID=yes
为了说明 `transcode` 的功能, 下面的例子展示了如何将 DivX 转换为 PAL MPEG-1 文件 (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -869,7 +869,7 @@ options OVERRIDE_TUNER=6
或者,您直接使用man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
....
@@ -929,14 +929,14 @@ device uscanner
使用正确的内核重新引导系统之后, 插入 USB 扫描仪。 系统消息缓冲区 (使用 man:dmesg[8] 查看) 中会出现下面的信息, 表示检测到了扫描仪:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
或者, 对于 FreeBSD 7.X 系统而言:
-[source,bash]
+[source,shell]
....
uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2
....
@@ -955,7 +955,7 @@ device pass
在正确地联编并安装了内核之后, 就应该可以在系统启动时, 从系统消息缓冲中看到这些设备:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -964,7 +964,7 @@ pass2: 3.300MB/s transfers
如果您的扫描仪没有在系统启动的时候加电, 很可能还需要强制手动检测一下,用 man:camcontrol[8] 命令执行一次 SCSI 总线扫描:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -975,7 +975,7 @@ Re-scan of bus 3 was successful
然后扫描仪就会出现在 SCSI 设备列表里:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -992,7 +992,7 @@ SANE 系统分为两部分: 后端 (package:graphics/sane-backends[]) 和前
要做的第一步就是安装 package:graphics/sane-backends[] port 或者 package。然后,使用 `sane-find-scanner` 命令来检查 SANE 系统做的扫描仪检测:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -1007,7 +1007,7 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
现在我们需要检查扫描仪是否可以被扫描前端识别。 默认情况下, SANE 后端自带一个叫做 man:sane[1] 的命令行工具。 这个命令允许您列出设备以及从命令行执行图片扫描。 `-L` 选项用来列出扫描仪设备:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -1015,7 +1015,7 @@ device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
或者, 如果使用的是 <<scanners-kernel-usb>> 中的 USB 扫描仪:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -1031,7 +1031,7 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
例如, 对于在 <<scanners-kernel-usb>>, 在 FreeBSD 8.X 中, 扫描仪已经被很好地识别并能够正常工作了; 而对于更早版本的 FreeBSD 而言 (使用 man:uscanner[4] 驱动程序) `sane-find-scanner` 则会给出这样的信息:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
@@ -1039,7 +1039,7 @@ found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
扫描仪被正确的探测到了,它使用 USB 接口,连接在 [.filename]#/dev/uscanner0# 设备节点上。 我们现在可以检查看看扫描仪是否被正确的识别:
-[source,bash]
+[source,shell]
....
# scanimage -L
No scanners were identified. If you were expecting something different,
@@ -1057,7 +1057,7 @@ usb /dev/uscanner0
请确保阅读后端配置文件提供的注释以及后端手册页了解更多细节, 并使用正确的语法。我们现在可以检验扫描仪是否被识别到了:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `epson:/dev/uscanner0' is a Epson GT-8200 flatbed scanner
@@ -1078,7 +1078,7 @@ Xsane (package:graphics/xsane[])是另一个流行的图形扫描前端。 这
这里作为示例, 我们将会使用名为 `_usb_` 的组。 第一步是借助 man:pw[8] 命令来创建它:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1111,7 +1111,7 @@ devfs_system_ruleset="system"
现在, 只需将用户添加到 `_usb_` 组, 就可以使用扫描仪了:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/zh-cn/books/handbook/network-servers/_index.adoc b/documentation/content/zh-cn/books/handbook/network-servers/_index.adoc
index 44f14fa2e2..a0a6b07a24 100644
--- a/documentation/content/zh-cn/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/network-servers/_index.adoc
@@ -100,7 +100,7 @@ inetd_enable="NO"
写入 [.filename]#/etc/rc.conf# 可以启用或禁用系统启动时 inetd 的自动启动。 命令:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd rcvar
....
@@ -144,7 +144,7 @@ inetd_enable="NO"
[example]
====
-[source,bash]
+[source,shell]
....
# /etc/rc.d/inetd reload
....
@@ -374,14 +374,14 @@ nfs_client_enable="YES"
在修改了 [.filename]#/etc/exports# 文件之后, 就必须让 mountd 服务重新检查它, 以便使修改生效。 一种方法是通过给正在运行的服务程序发送 HUP 信号来完成:
-[source,bash]
+[source,shell]
....
# kill -HUP `cat /var/run/mountd.pid`
....
或指定适当的参数来运行 `mountd` man:rc[8] 脚本:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/mountd onereload
....
@@ -392,7 +392,7 @@ nfs_client_enable="YES"
在 NFS 服务器端:
-[source,bash]
+[source,shell]
....
# rpcbind
# nfsd -u -t -n 4
@@ -401,14 +401,14 @@ nfs_client_enable="YES"
在 NFS 客户端:
-[source,bash]
+[source,shell]
....
# nfsiod -n 4
....
现在每件事情都应该就绪,以备挂载一个远端文件系统。 在这些例子里头, 服务器名字将是:`server` ,而客户端的名字将是: `client`。 如果您只打算临时挂载一个远端文件系统或者只是打算作测试配置正确与否, 只要在客户端以 `root` 身份执行下面的命令:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -436,7 +436,7 @@ rpc_statd_enable="YES"
然后使用下述命令启动该程序:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/lockd start
# /etc/rc.d/statd start
@@ -466,7 +466,7 @@ amd 通过将自己以 NFS 服务器的形式, 附加到 [.filename]#/host#
====
您可以通过使用 `showmount` 命令来查看远程主机上导出的文件系统。 例如, 要查看 `foobar` 上导出的文件系统, 可以用:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -519,7 +519,7 @@ fastws:/sharedfs /project nfs rw,-r=1024 0 0
在 `freebox` 上手工挂接:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -r=1024 fastws:/sharedfs /project
....
@@ -533,7 +533,7 @@ freebox:/sharedfs /project nfs rw,-w=1024 0 0
在 `fastws` 上手工挂接的命令是:
-[source,bash]
+[source,shell]
....
# mount -t nfs -o -w=1024 freebox:/sharedfs /project
....
@@ -694,7 +694,7 @@ nis_yppasswdd_enable="YES"
设置好前面这些配置之后, 需要以超级用户身份运行 `/etc/netstart` 命令。 它会根据 [.filename]#/etc/rc.conf# 的设置来配置系统中的其他部分。 最后, 在初始化 NIS 映射之前, 还需要手工启动 ypserv 服务程序:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ypserv start
....
@@ -703,7 +703,7 @@ nis_yppasswdd_enable="YES"
_NIS 映射_ 是一些数据库文件, 它们位于 [.filename]#/var/yp# 目录中。 这些文件基本上都是根据 NIS 主服务器的 [.filename]#/etc# 目录自动生成的, 唯一的例外是: [.filename]#/etc/master.passwd# 文件。 一般来说, 您会有非常充分的理由不将 `root` 以及其他管理帐号的口令发到所有 NIS 域上的服务器上。 因此, 在开始初始化 NIS 映射之前, 我们应该:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -719,7 +719,7 @@ _NIS 映射_ 是一些数据库文件, 它们位于 [.filename]#/var/yp# 目
完成这些工作之后, 就可以初始化 NIS 映射了! FreeBSD 提供了一个名为 `ypinit` 的脚本来帮助您完成这项工作 (详细信息, 请见其联机手册)。 请注意, 这个脚本在绝大多数 UNIX(R) 操作系统上都可以找到, 但并不是所有操作系统的都提供。 在 Digital UNIX/Compaq Tru64 UNIX 上它的名字是 `ypsetup`。 由于我们正在生成的是 NIS 主服务器的映射, 因此应该使用 `ypinit` 的 `-m` 参数。 如果已经完成了上述步骤, 要生成 NIS 映射, 只需执行:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -748,7 +748,7 @@ ellington has been setup as an YP master server without any errors.
`ypinit` 应该会根据 [.filename]#/var/yp/Makefile.dist# 来创建 [.filename]#/var/yp/Makefile# 文件。 创建完之后, 这个文件会假定您正在操作只有 FreeBSD 机器的单服务器 NIS 环境。 由于 `test-domain` 还有一个从服务器, 您必须编辑 [.filename]#/var/yp/Makefile#:
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/Makefile
....
@@ -766,7 +766,7 @@ NOPUSH = "True"
配置 NIS 从服务器, 甚至比配置主服务器还要简单。 登录到从服务器上, 并按照前面的方法, 编辑 [.filename]#/etc/rc.conf# 文件。 唯一的区别是, 在运行 `ypinit` 时需要使用 `-s` 参数。 这里的 `-s` 选项, 同时要求提供 NIS 主服务器的名字, 因此我们的命令行应该是:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -884,7 +884,7 @@ nis_client_enable="YES"
想要立即启动 NIS 客户端, 需要以超级用户身份运行执行下列命令:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# /etc/rc.d/ypbind start
@@ -935,7 +935,7 @@ nis_client_enable="YES"
有一种办法来禁止特定的用户登录机器, 即使他们身处 NIS 数据库之中。 要完成这一工作, 只需要在客户机的 [.filename]#/etc/master.passwd# 文件中加入一些 `-username` 这样的项, 其中, _username_ 是希望禁止登录的用户名。 一般推荐使用 `vipw` 来完成这个工作, 因为 `vipw` 会对您在 [.filename]#/etc/master.passwd# 文件上所作的修改进行合法性检查, 并在编辑结束时重新构建口令数据库。 例如, 如果希望禁止用户 `bill` 登录 `basie`, 我们应该:
-[source,bash]
+[source,shell]
....
basie# vipw
[在末尾加入 -bill, 并退出]
@@ -1020,7 +1020,7 @@ Netgroups 被设计用来处理大的、 复杂的包含数百用户和机器的
第一步是初始化 NIS 映射 netgroup。 FreeBSD 的 man:ypinit[8] 默认情况下并不创建这个映射, 但它的 NIS 实现能够在创建这个映射之后立即对其提供支持。 要创建空映射, 简单地输入
-[source,bash]
+[source,shell]
....
ellington# vi /var/yp/netgroup
....
@@ -1063,7 +1063,7 @@ BIGGROUP BIGGRP1 BIGGRP2 BIGGRP3
激活并分发新的 NIS 映射非常简单:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -1071,7 +1071,7 @@ ellington# make
这个操作会生成三个 NIS 映射, 即 [.filename]#netgroup#、 [.filename]#netgroup.byhost# 和 [.filename]#netgroup.byuser#。 用 man:ypcat[1] 可以检查这些 NIS 映射是否可用了:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1199,7 +1199,7 @@ TWO (,hotel,test-domain)
* 每次需要在实验室中增加新用户时, 必须 _只_ 在 NIS 服务器上加入用户, 而且 _一定要记得重建 NIS 映射_。 如果您忘记了这样做, 新用户将无法登录除 NIS 主服务器之外的任何其它机器。 例如, 如果要在实验室增加新用户 `jsmith`, 我们需要:
+
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -1250,7 +1250,7 @@ default:\
如果修改了 [.filename]#/etc/login.conf#, 就必须重建登录性能数据库, 这是通过以 `root` 身份运行下面的程序来完成的:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1425,7 +1425,7 @@ dhcpd_ifaces="dc0"
接下来, 可以用下面的命令来启动服务:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/isc-dhcpd start
....
@@ -1549,7 +1549,7 @@ FreeBSD 在默认情况下使用一个版本的 BIND (Berkeley Internet Name Dom
默认的 named 配置, 是在 man:chroot[8] 环境中提供基本的域名解析服务, 并且只限于监听本地 IPv4 回环地址 (127.0.0.1)。 如果希望启动这一配置, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/named onestart
....
@@ -2109,28 +2109,28 @@ FreeBSD 被用于运行许多全球最为繁忙的 web 站点。 大多数 Inter
与许多其它网络服务不同, Apache 并不依赖 inetd 超级服务器来运行。 一般情况下会把它配置为一个独立的服务器, 以期在客户的 web 浏览器连入 HTTP 请求时, 能够获得更好的性能。 它提供了一个 shell 脚本来使启动、 停止和重新启动服务器变得尽可能地简单。 首次启动 Apache, 只需执行:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl start
....
可以在任何时候使用下面的命令来停止服务:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl stop
....
当由于某种原因修改了配置文件之后, 需要重启服务器:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl restart
....
要在重启 Apache 服务器时不中断当前的连接, 则应运行:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/apachectl graceful
....
@@ -2173,7 +2173,7 @@ NameVirtualHost *
如果您的 web 服务器的名字是 `www.domain.tld`, 而您希望建立一个 `www.someotherdomain.tld` 的虚拟域, 则应在 [.filename]#httpd.conf# 中加入:
-[source,bash]
+[source,shell]
....
<VirtualHost *>
ServerName www.domain.tld
@@ -2219,7 +2219,7 @@ Django 依赖与 mod_python, Apache, 和一个可选的 SQL 数据库引擎。
[example]
====
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/py-django; make all install clean -DWITH_MOD_PYTHON3 -DWITH_POSTGRESQL
....
@@ -2234,7 +2234,7 @@ Django 依赖与 mod_python, Apache, 和一个可选的 SQL 数据库引擎。
====
你需要在 Apache 的配置文件 [.filename]#httpd.conf# 加入以下这几行, 把对某些 URL 的请求传给你的 web 应用程序:
-[source,bash]
+[source,shell]
....
<Location "/">
SetHandler python-program
@@ -2252,7 +2252,7 @@ Django 依赖与 mod_python, Apache, 和一个可选的 SQL 数据库引擎。
Ruby on Rails 是另外一个开源的 web framework, 提供了一个全面的开发框架,能帮助 web 开发者工作更有成效和快速写出强大的应用。 它能非常容易的从 posts 系统安装。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/rubygem-rails; make all install clean
....
@@ -2271,7 +2271,7 @@ PHP, 也称为 "PHP: Hypertext Preprocessor", 是一种特别适合于 Web
在首次安装 package:lang/php5[] port 的时候, 系统会自动显示可用的一系列 `OPTIONS` (配置选项)。 如果您没有看到菜单, 例如由于过去曾经安装过 package:lang/php5[] port 等等, 可以用下面的命令再次显示配置菜单, 在 port 的目录中执行:
-[source,bash]
+[source,shell]
....
# make config
....
@@ -2304,7 +2304,7 @@ AddModule mod_php5.c
这些工作完成之后, 还需要使用 `apachectl` 命令来完成一次 graceful restart 以便加载 PHP 模块:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2317,7 +2317,7 @@ AddModule mod_php5.c
安装完扩展之后, 必须重新启动 Apache 服务器, 来令其适应新的配置变更:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -2357,14 +2357,14 @@ ftpd_enable="YES"
在设置了上述变量之后,独立的服务将在下次系统重启的时候启动, 或者通过以 `root` 身份手动执行如下的命令启动:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/ftpd start
....
现在可以通过输入下面的命令来登录您的 FTP 服务器了:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2437,7 +2437,7 @@ Samba 提供了若干种不同的验证后端模型。 您可以通过 LDAP、 N
假设您使用的是默认的 `smbpasswd` 后端, 则必须首先创建一个 [.filename]#/usr/local/etc/samba/smbpasswd# 文件, 来允许 Samba 对客户进行身份验证。 如果您打算让 UNIX(R) 用户帐号能够从 Windows(R) 客户机上登录, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# smbpasswd -a username
....
@@ -2446,7 +2446,7 @@ Samba 提供了若干种不同的验证后端模型。 您可以通过 LDAP、 N
====
目前推荐使用的后端是 `tdbsam`, 您应使用下面的命令来添加用户帐号:
-[source,bash]
+[source,shell]
....
# pdbedit -a -u username
....
@@ -2483,7 +2483,7 @@ smbd_enable="YES"
配置好之后, 就可以在任何时候通过下面的命令来启动 Samba 了:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba start
Starting SAMBA: removing stale tdbs :
@@ -2497,7 +2497,7 @@ Samba 事实上包含了三个相互独立的服务程序。 您应该能够看
可以在任何时候通过下面的命令来停止运行 Samba:
-[source,bash]
+[source,shell]
....
# /usr/local/etc/rc.d/samba stop
....
@@ -2583,7 +2583,7 @@ restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
要在不重新启动机器的前提下启动服务器, 需要手工运行 `ntpd`, 并带上 [.filename]#/etc/rc.conf# 中的 `ntpd_flags` 所指定的参数。 例如:
-[source,bash]
+[source,shell]
....
# ntpd -p /var/run/ntpd.pid
....
@@ -2661,14 +2661,14 @@ syslogd_flags="-a logclient.example.com -v -v"
最后, 日志文件应该被创建。 不论你用何种方法创建, 比如 man:touch[1] 能很好的完成此类任务:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
此时, 应该重启并确认一下 `syslogd` 守护进程:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
# pgrep syslog
@@ -2707,14 +2707,14 @@ Facility 是描述某个消息由系统的哪部分生成的。 举例来说,
添加后, 必须重启 `syslogd` 使得上述修改生效:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
....
测试日志消息是否能通过网络发送, 在准备发出消息的客户机上用 man:logger[1] 来向 `syslogd` 发出信息:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -2732,14 +2732,14 @@ Facility 是描述某个消息由系统的哪部分生成的。 举例来说,
syslogd_flags="-d -a logclien.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
....
在重启服务之后, 屏幕上将立刻闪现类似这样的调试数据:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -2760,7 +2760,7 @@ syslogd_flags="-d -a logclien.example.com -v -v"
这行应该包涵有 `logclient`, 而不是 `logclien`。 在做了正确的修改并重启之后便能见到预期的效果了:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
diff --git a/documentation/content/zh-cn/books/handbook/ports/_index.adoc b/documentation/content/zh-cn/books/handbook/ports/_index.adoc
index 27299bae86..62f98d025c 100644
--- a/documentation/content/zh-cn/books/handbook/ports/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/ports/_index.adoc
@@ -128,7 +128,7 @@ FreeBSD中可用的应用程序正在不断地增长着。幸运的是, 有许
* 如果您不知道您想要的应用程序的名字,可以通过 (http://www.freshmeat.net/[http://www.freshmeat.net/]) 网站来查找, 如果找到了应用程序, 您可以回 FreeBSD 的主站去看一下这个应用程序是否已经被 port 进去了。
* 如果您知道一个port的准确名字, 但需要知道在哪个类别里面能找到它,您可以使用 man:whereis[1] 这个命令。简单地输入 `whereis file`, _file_ 就是您想安装的程序名字。 如果系统找到了它, 您将被告知在它在哪里, 例如:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -137,7 +137,7 @@ lsof: /usr/ports/sysutils/lsof
结果告诉我们这个命令``lsof`` (一个系统配置程序)可以在 [.filename]##/usr/ports/sysutils/lsof##目录中找到。
* 你可以使用简单的 man:echo[1] 语句来查找某个 port 是否存在于 ports 树中。 例如:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -148,7 +148,7 @@ Note that this will return any matched files downloaded into the [.filename]#/us
请注意这条命令将会返回下载到 [.filename]#/usr/ports/distfiles# 目录中所有符合条件的文件。
* 还有另外的一个寻找您需要的port的方法--是用ports collecton 内嵌的搜索机制。要使用这个搜索, 您需要先到 [.filename]##/usr/ports##目录下面。 在那个目录里面, 运行``make search name=program-name``, __program-name__ 就是您想寻找的程序名字。 举个例子, 如果您想找 `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -183,7 +183,7 @@ R-deps:
[example]
====
-[source,bash]
+[source,shell]
....
# ftp -a ftp2.FreeBSD.org
Connected to ftp2.FreeBSD.org.
@@ -214,7 +214,7 @@ ftp> exit
如果您没有本地package的安装盘 (如 FreeBSD CD-ROM), 可以执行 man:pkg_add[1] 命令并加上 `-r` 选项。 这将迫使程序自动决定目标文件的正确格式和版本, 然后自动从一个 FTP 站点寻找和安装 package。
-[source,bash]
+[source,shell]
....
# pkg_add -r lsof
....
@@ -234,7 +234,7 @@ ftp> exit
man:pkg_info[1] 是用于列出已安装的所有软件包列表和描述的程序。
-[source,bash]
+[source,shell]
....
# pkg_info
cvsup-16.1 A general network file distribution system optimized for CV
@@ -244,7 +244,7 @@ docbook-1.2 Meta-port for the different versions of the DocBook DTD
man:pkg_version[1]是一个用来统计所有安装的软件包版本的工具。 它可以用来比较本地 package 的版本与 ports 目录中的当前版本是否一致。
-[source,bash]
+[source,shell]
....
# pkg_version
cvsup =
@@ -283,14 +283,14 @@ docbook =
要删除先前安装的软件package,只要使用man:pkg_delete[1] 工具。
-[source,bash]
+[source,shell]
....
# pkg_delete xchat-1.7.1
....
需要注意的是, man:pkg_delete[1] 需要提供完整的包名; 如果您只是指定了类似 _xchat_ 而不是 _xchat-1.7.1_ 这样的名字, 则它将拒绝执行操作。 不过, 您可以使用 man:pkg_version[1] 来了解安装的 package 的版本。 除此之外, 也可以使用通配符:
-[source,bash]
+[source,shell]
....
# pkg_delete xchat\*
....
@@ -328,7 +328,7 @@ docbook =
. 运行 `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 -h cvsup.FreeBSD.org /usr/shared/examples/cvsup/ports-supfile
....
@@ -346,7 +346,7 @@ docbook =
.. 把 _CHANGE_THIS.FreeBSD.org_ 修改成离您较近的 CVSup 服务器。 可以参考 crossref:mirrors[cvsup-mirrors,CVSup 镜像] (crossref:mirrors[cvsup-mirrors,CVSup 站点]) 中的镜像站点完整列表。
.. 接下来按如下的方式运行 `csup`:
+
-[source,bash]
+[source,shell]
....
# csup -L 2 /root/ports-supfile
....
@@ -364,21 +364,21 @@ Portsnap 是用于发布 Ports 套件的另一套系统。 请参阅 crossref:cu
. 下载压缩的 Ports 套件快照到 [.filename]#/var/db/portsnap#。 您可以根据需要在这之后关闭 Internet 连接。
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. 假如您是首次运行 Portsnap, 则需要将快照释放到 [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
如果您已经有装好的 [.filename]#/usr/ports# 而您只想更新, 则应执行下面的命令:
+
-[source,bash]
+[source,shell]
....
# portsnap update
....
@@ -392,7 +392,7 @@ Portsnap 是用于发布 Ports 套件的另一套系统。 请参阅 crossref:cu
. 以 `root` 身份运行 `sysinstall`:
+
-[source,bash]
+[source,shell]
....
# sysinstall
....
@@ -440,14 +440,14 @@ Ports 套件假定您有可用的 Internet 连接。 如果您没有, 则需
要开始操作, 首先进入要安装 port 的目录:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
....
一旦进入了 [.filename]#lsof# 的目录,您将会看到这个port的结构。 下一步就是 make,或说 "联编" 这个 port。 只需在命令行简单地输入 `make` 命令就可轻松完成这一工作。 做好之后,您可以看到下面的信息:
-[source,bash]
+[source,shell]
....
# make
>> lsof_4.57D.freebsd.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -472,7 +472,7 @@ Ports 套件假定您有可用的 Internet 连接。 如果您没有, 则需
注意,一旦编译完成,您就会回到命令行。 下一步安装 port, 要安装它只需要在 `make` 命令后跟上一个单词 `install` 即可:
-[source,bash]
+[source,shell]
....
# make install
===> Installing for lsof-4.57
@@ -492,7 +492,7 @@ Ports 套件假定您有可用的 Internet 连接。 如果您没有, 则需
删除工作目录是个好主意, 这个目录中包含了全部在编译过程中用到的临时文件。 这些文件不仅会占用宝贵的磁盘空间, 而且可能会给升级新版本的 port 时带来麻烦。
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-4.57
@@ -527,7 +527,7 @@ ports 系统使用 man:fetch[1] 去下载文件, 它有很多可以设置的
在一些罕见的例子中, 用户可能需要在除了 `MASTER_SITES` 以外的一个站点(本地已经下载下来的文件)去获得一个文件包。 您可以用以下命令不使用 `MASTER_SITES`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -545,14 +545,14 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
有时, 使用不同的工作临时目录和目标目录可能很有用 (甚至是必要的)。 可以用 `WRKDIRPREFIX` 和 `PREFIX` 这两个变量来改变默认的目录。 例如:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
将在 [.filename]#/usr/home/example/ports# 中编译 port 并把所有的文件安装到 [.filename]#/usr/local#。
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
@@ -561,7 +561,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
当然,
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -583,7 +583,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
现在您已经了解了如何安装 ports, 并希望进一步了解如何卸载, 特别是在错误地安装了某个 port 之后。我们将卸载前面例子 (假如您没有注意的话, 是 `lsof`) 中安装的 port。 Ports 可以同 packages 以完全相同的方式 (在 <<packages-using,Packages 一节>> 中进行了介绍) 卸载, 方法是使用 man:pkg_delete[1] 命令:
-[source,bash]
+[source,shell]
....
# pkg_delete lsof-4.57
....
@@ -593,7 +593,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
首先, 使用 man:pkg_version[1] 命令来列出 Ports Collection 中提供了更新版本的那些 port:
-[source,bash]
+[source,shell]
....
# pkg_version -v
....
@@ -610,7 +610,7 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch
portupgrade 工具是设计来简化升级已安装的 port 的操作的。 它通过 package:ports-mgmt/portupgrade[] port 来提供。 您可以像其它 port 那样, 使用 `make install clean` 命令来安装它:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -620,21 +620,21 @@ portupgrade 工具是设计来简化升级已安装的 port 的操作的。 它
运行 `portupgrade -a` 时, portupgrade 将开始并升级系统中所安装的所有过时的 ports。 如果您希望在每个升级操作时得到确认, 应指定 `-i` 参数。
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
如果您只希望升级某个特定的应用程序, 而非全部可用的 port, 应使用 `portupgrade pkgname`。 如果 portupgrade 应首先升级指定应用程序的话, 则应指定 `-R` 参数。
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
要使用预编译的 package 而不是 ports 来进行安装, 需要指定 `-P`。 如果指定了这个选项, portupgrade 会搜索 `PKG_PATH` 中指定的本地目录, 如果没有找到, 则从远程站点下载。 如果本地没有找到, 而且远程站点也没有成功地下载预编译包, 则 portupgrade 将使用 ports。 要禁止使用 port, 可以指定 `-PP`。
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome2
....
@@ -646,7 +646,7 @@ portupgrade 工具是设计来简化升级已安装的 port 的操作的。 它
Portmanager 是另一个用以简化已安装 port 升级操作的工具。 它可以通过 package:ports-mgmt/portmanager[] port 安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmanager
# make install clean
@@ -654,21 +654,21 @@ Portmanager 是另一个用以简化已安装 port 升级操作的工具。 它
可以通过这个简单的命令来升级所有已安装的 port:
-[source,bash]
+[source,shell]
....
# portmanager -u
....
如果希望 Portmanager 在进行每步操作之前都给出提示, 应使用 `-ui` 参数。 Portmanager 也可以用来在系统中安装新的 ports。 与通常的 `make install clean` 命令不同,它会在联编和安装您所选择的 port 之前升级所有依赖包。
-[source,bash]
+[source,shell]
....
# portmanager x11/gnome2
....
如果关于所选 port 的依赖有任何问题, 可以用 Portmanager 来以正确的顺序重新构建它们。 完成之后, 有问题的 port 也将被重新构建。
-[source,bash]
+[source,shell]
....
# portmanager graphics/gimp -f
....
@@ -680,7 +680,7 @@ Portmanager 是另一个用以简化已安装 port 升级操作的工具。 它
Portmaster 是另外一个用来升级已安装的 ports 的工具。 Portmaster 被设计成尽可能使用 "基本" 系统中能找到的工具 (它不依赖于其他的 ports) 和 [.filename]#/var/db/pkg/# 中的信息来检测出需要升级的 ports。你可以在 package:ports-mgmt/portmaster[] 找到它:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -697,7 +697,7 @@ Portmaster 把 ports 分成4类:
你可以使用 `-L` 选项列出所有已安装的 ports 和查找存在更新的 ports:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -725,7 +725,7 @@ Portmaster 把 ports 分成4类:
可以使用这个简单的命令升级所有已安装的 ports:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -737,14 +737,14 @@ Portmaster 默认在删除一个现有的 port 前会做一个备份包。如果
如果你在升级的过程中发现了错误,你可以使用 `-f` 选项升级/重新编译所有的 ports:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
同样你也可以使用 Portmaster 往系统里安装新的 ports,升级所有的依赖关系之后并安装新的 port:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -756,21 +756,21 @@ Portmaster 默认在删除一个现有的 port 前会做一个备份包。如果
使用 Ports 套件会最终用完磁盘空间。 在通过 ports 联编和安装软件之后,您应记得清理临时的 [.filename]#work# 目录, 其方法是使用 `make clean` 命令。 您可以使用下面的命令来清理整个 Ports 套件:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
随着时间的推移, 您可能会在 [.filename]#distfiles# 目录中积累下大量源代码文件。 您可以手工删除这些文件, 也可以使用下面的命令来删除所有 port 都不引用的文件:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
除此之外, 也可以用下列命令删去目前安装的 port 没有使用的源码包文件:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
@@ -791,7 +791,7 @@ Portmaster 默认在删除一个现有的 port 前会做一个备份包。如果
* 使用 man:pkg_info[1] 命令,它能找到安装了哪些文件,以及装在哪里。 举个例子,如果您安装了 FooPackage version 1.0.0, 那么这个命令
+
-[source,bash]
+[source,shell]
....
# pkg_info -L foopackage-1.0.0 | less
....
@@ -800,7 +800,7 @@ Portmaster 默认在删除一个现有的 port 前会做一个备份包。如果
+
如果您不确定已经安装好的软件版本,您可以使用这样的命令
+
-[source,bash]
+[source,shell]
....
# pkg_info | grep -i foopackage
....
@@ -809,7 +809,7 @@ Portmaster 默认在删除一个现有的 port 前会做一个备份包。如果
* 一旦一些软件手册已被您确认安装,您可以使用 man:man[1] 查看它。 同样的,如果有的话,您还可以完整的查看一遍配置文件的示例,以及任何额外的文档。
* 如果应用软件有网站, 您还可以从网站上找到文档,常见问题的解答,或其他更多。 如果您不知道它们的网站地址,请使用下面的命令
+
-[source,bash]
+[source,shell]
....
# pkg_info foopackage-1.0.0
....
diff --git a/documentation/content/zh-cn/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/zh-cn/books/handbook/ppp-and-slip/_index.adoc
index c096e790f0..1793d2ca0e 100644
--- a/documentation/content/zh-cn/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/ppp-and-slip/_index.adoc
@@ -195,7 +195,7 @@ set log phase tun
+
登录命令是的语法是chat类型的。 在这个例子中是这样的:
+
-[source,bash]
+[source,shell]
....
J. Random Provider
login: foo
@@ -310,7 +310,7 @@ exec /usr/sbin/ppp -direct $IDENT
这个脚本要有可执行属性。 然后通过如下命令创建一个指向此脚本且名为 [.filename]##ppp-dialup##的符号链接:
-[source,bash]
+[source,shell]
....
# ln -s ppp-shell /etc/ppp/ppp-dialup
....
@@ -324,7 +324,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
创建一个名为 [.filename]#/home/ppp# 的目录作为拨入用户的主目录, 其中包含以下这些空文件:
-[source,bash]
+[source,shell]
....
-r--r--r-- 1 root wheel 0 May 27 02:23 .hushlogin
-r--r--r-- 1 root wheel 0 May 27 02:22 .rhosts
@@ -338,7 +338,7 @@ pchilds:*:1011:300:Peter Childs PPP:/home/ppp:/etc/ppp/ppp-dialup
例如, 如果您希望为三个拨号用户, `fred`, `sam`, 和 `mary` 路由 /24 CIDR 的网络, 则需要键入以下内容:
-[source,bash]
+[source,shell]
....
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-fred
# ln -s /etc/ppp/ppp-shell /etc/ppp/ppp-sam
@@ -603,7 +603,7 @@ sendmail_flags="-bd"
替代的做法是当每次 PPP 连接建立时您必须通过键入以下命令强制 `sendmail` 重新检查邮件队列:
-[source,bash]
+[source,shell]
....
# /usr/sbin/sendmail -q
....
@@ -622,14 +622,14 @@ sendmail_flags="-bd"
现在您唯一要做的事是重新启动计算机。 重启之后,可以输入:
-[source,bash]
+[source,shell]
....
# ppp
....
然后是``dial provider``以开启 PPP会话。 或者如果您想让``ppp``自动建立会话, 因为您有一条广域网连接 (且没有创建 [.filename]#start_if.tun0# 脚本), 键入:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -716,7 +716,7 @@ defaultroute # put this if you want that PPP server will be your
. 退出 Kermit (并不挂断连接)。
. 键入下面这行:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/pppd /dev/tty01 19200
....
@@ -861,7 +861,7 @@ ABORT BUSY ABORT 'NO CARRIER' "" AT OK ATDTphone.number
一旦这些被安装且修改正确, 您所要做的就是运行``pppd``, 就像这样:
-[source,bash]
+[source,shell]
....
# pppd
....
@@ -1108,7 +1108,7 @@ device uart
默认的 `GENERIC` 内核中包含了 [.filename]#uart# 设备, 因此如果您使用的是它的话, 就不需要担心了。 只要查看 `dmesg` 输出中是否有 modem 设备:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -1119,35 +1119,35 @@ device uart
通过手动控制``ppp``来连接Internet 是诊断连接及获知ISP处理PPP客户端方式的一个快速, 简单的方法。 让我们从PPP 命令行开始, 在所有的例子中我们使用 _example_ 表示运行 PPP 服务的主机名。 键入``ppp`` 命令打开 ``ppp``:
-[source,bash]
+[source,shell]
....
# ppp
....
现在我们已经打开了``ppp``。
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
设置modem设备, 在本例子中是 [.filename]#cuau1#。
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
设置连接速度, 在本例中我们使用15,200 kbps。
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
使``ppp``配置域名服务, 在文件[.filename]##/etc/resolv.conf##中添加域名服务器行。 如果 ``ppp``不能确定我们的主机名, 可以在稍后设置。
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -1160,7 +1160,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -1169,56 +1169,56 @@ atdt123456789
使用命令``at``初始化modem, 然后使用``atdt``和ISP给您的号码进行拨号。
-[source,bash]
+[source,shell]
....
CONNECT
....
连接配置, 如果我们遇到了与硬件无关的连接问题, 可以在这里尝试解决。
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
这里提示您输入用户名, 输入ISP提供的用户名然后按回车。
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
这时提示我们输入密码, 输入 ISP提供的密码。 如同登录入FreeBSD, 密码不会显示。
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
由于ISP的不同, 这个提示符可能不会出现。 这里我们需要考虑: 是使用运行于提供商端的 Shell, 还是启动 `ppp`? 这本例中, 我们选择使用 `ppp`, 因为我们希望得到 Internet 连接。
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
注意在这个例子中, 第一个 ``p``已经大写。 这表示我们已经成功地连接上了 ISP。
-[source,bash]
+[source,shell]
....
PPp ON example>
....
我们已经成功通过了 ISP的验证, 正在等待分配IP地址。
-[source,bash]
+[source,shell]
....
PPP ON example>
....
我们得到了一个 IP 地址, 成功地完成了连接。
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -1237,14 +1237,14 @@ PPP 可能并不返回命令模式, 这通常是 ISP 等待您这一端发起
如果您没有看到登录提示, 则很可能需要使用 PAP 或 CHAP 验证来代替前面例子中的 UNIX(R) 风格验证。 要使用 PAP 或 CHAP 只需在进入终端模式之前把下面的选项加入 PPP:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
此处 _myusername_ 应改为您的 ISP 分配给您的用户名。
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -1304,7 +1304,7 @@ name_of_service_provider:
以 `root` 身份执行:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -1359,7 +1359,7 @@ net.graph.nonstandard_pppoe=1
或者, 也可以直接执行下面的命令:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -1461,14 +1461,14 @@ adsl:
初始化连接:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
您可以通过以下命令查看连接状态:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -1504,7 +1504,7 @@ adsl:
由于您必须将帐号密码以明文的方式放入[.filename]##ppp.conf## 您应该确保没有任何人能看到此文件的内容。 以下一系列命令将会确保此文件只对 ``root``用户可读。 请参见 man:chmod[1] 和 man:chown[8] 的联机手册以了解有关如何操作的进一步信息。
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -1514,7 +1514,7 @@ adsl:
以下将为到 DSL 路由器的会话打开一个 tunnel。 以太网DSL modem有一个设置的局域网IP地址。 以 Alcatel SpeedTouch(TM) Home 为例, 这个地址是 `10.0.0.138`。 路由器的文档应该会告诉您它使用的地址。 执行以下命令以打开 tunnel 并开始会话:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -1527,7 +1527,7 @@ adsl:
要创建一个 [.filename]##tun##虚拟设备用于进程pptp 和ppp 之间的交互。 一旦您回到了命令行, 或者 pptp 进程确认了一个连接, 您可以这样检查tunnel设备:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
@@ -1656,7 +1656,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
+
. 在这里退出 Kermit (也可以用 kbd:[Ctrl+z] 将其挂起), 以 `root` 用户键入:
+
-[source,bash]
+[source,shell]
....
# slattach -h -c -s 115200 /dev/modem
....
@@ -1668,7 +1668,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
按下面的步骤做:
-[source,bash]
+[source,shell]
....
# kill -INT `cat /var/run/slattach.modem.pid`
....
@@ -1687,7 +1687,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a
* 使用``s10``替换 ``sl0`` (在一些字体下很难看出不同)。
* 试试``ifconfig sl0``来查看您的接口状态。 例如, 您可以这样做:
+
-[source,bash]
+[source,shell]
....
# ifconfig sl0
sl0: flags=10<POINTOPOINT>
@@ -1696,7 +1696,7 @@ sl0: flags=10<POINTOPOINT>
* 如果在使用 man:ping[8] 时得到了 `no route to host` 这样的提示, 则说明您的路由表可能有问题。 可以用 `netstat -r` 命令来显示当前的路由:
+
-[source,bash]
+[source,shell]
....
# netstat -r
Routing tables
@@ -1770,7 +1770,7 @@ device sl
要立即应用这些配置, 可以 `root` 的身份运行:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/routing start
....
@@ -1858,7 +1858,7 @@ Shelmerg dc-slip sl-helmerg 0xfffffc00 autocomp
当使用以上的例子时, 一定要将 以太网MAC地址 (``00:11:22:33:44:55``) 替换成您系统网卡的MAC地址, 否则"ARP代理" 将完全无法工作! 您可以查看 ``netstat -i`` 输出结果以取得以太网 MAC 地址; 输出的第二行应该是这样:
-[source,bash]
+[source,shell]
....
ed0 1500 <Link>0.2.c1.28.5f.4a 191923 0 129457 0 116
....
diff --git a/documentation/content/zh-cn/books/handbook/preface/_index.adoc b/documentation/content/zh-cn/books/handbook/preface/_index.adoc
index 1731627e1b..949c29505a 100644
--- a/documentation/content/zh-cn/books/handbook/preface/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/preface/_index.adoc
@@ -231,21 +231,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
以 [.filename]#E:\># 开头的例子代表一个 MS-DOS(R) 命令。除非另有说明,这些命令都可以在一个现代的 Microsoft(R) Windows(R) "命令行"窗口环境被执行。
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
以 # 开头的例子代表必须以 FreeBSD 超级用户身份执行的命令。您可以用 `root` 身份登录来输入这些命令,或者以普通账号登录然后用 man:su[1] 来获得超级用户权限。
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
以 % 开头的例子代表命令应该被普通账号执行。 除非另有说明, 在设置环境变量和使用的其他 shell 命令均为 C-shell 语法。
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/zh-cn/books/handbook/printing/_index.adoc b/documentation/content/zh-cn/books/handbook/printing/_index.adoc
index 51c10bafb2..b09ff30d0b 100644
--- a/documentation/content/zh-cn/books/handbook/printing/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/printing/_index.adoc
@@ -188,14 +188,14 @@ PostScript(R) 任务事实上由程序发送给打印机; 但它并不进行
要想知道您现在使用的内核是否支持串口, 输入:
-[source,bash]
+[source,shell]
....
# grep sioN /var/run/dmesg.boot
....
其中 _N_ 是串口的 编号, 从0开始。 如果您看到 类似下面的输出:
-[source,bash]
+[source,shell]
....
sio2 at port 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
@@ -205,14 +205,14 @@ sio2: type 16550A
要想知道您现在使用的内核是否支持并口, 输入:
-[source,bash]
+[source,shell]
....
# grep ppcN /var/run/dmesg.boot
....
其中 _N_ 是并口的 编号, 同样从0开始。 如果得到类似 下面的输出:
-[source,bash]
+[source,shell]
....
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
@@ -253,7 +253,7 @@ hint.ppc.0.irq="N"
+
它在 [.filename]#/boot/device.hints# 这个文件中, 其中 _N_ 用正确的中断 编号代替。 同时, 核心配置文件也必须 包括 man:ppc[4] 的驱动:
+
-[source,bash]
+[source,shell]
....
device ppc
....
@@ -277,7 +277,7 @@ _使用_ man:lptcontrol[8] _设置通讯模式_:
. 输入:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -i -d /dev/lptN
....
@@ -285,7 +285,7 @@ _使用_ man:lptcontrol[8] _设置通讯模式_:
将 `lptN` 设置成中断方式。
. 输入:
+
-[source,bash]
+[source,shell]
....
# lptcontrol -p -d /dev/lptN
....
@@ -335,7 +335,7 @@ _要测试并口上的打印机:_
+
** 如果打印机可以直接打印纯文本, 可以用 man:lptest[1]。 输入:
+
-[source,bash]
+[source,shell]
....
# lptest > /dev/lptN
....
@@ -343,7 +343,7 @@ _要测试并口上的打印机:_
其中 _N_ 是并口的编号, 从0开始。
** 如果打印机支持 PostScript(R) 或其他打印机语言, 可以发送一段小程序到打印机。 输入:
+
-[source,bash]
+[source,shell]
....
# cat > /dev/lptN
....
@@ -352,7 +352,7 @@ _要测试并口上的打印机:_
+
另外一种办法, 您可以把这段程序写在一个文件里, 并输入:
+
-[source,bash]
+[source,shell]
....
# cat file > /dev/lptN
....
@@ -391,7 +391,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
. 用 man:tip[1] 连接打印机。 输入:
+
-[source,bash]
+[source,shell]
....
# tip printer
....
@@ -401,7 +401,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
** 如果打印机可以直接打印纯文本, 则用 man:lptest[1]。 输入:
+
-[source,bash]
+[source,shell]
....
% $lptest
....
@@ -410,7 +410,7 @@ printer:dv=/dev/ttyu2:br#19200:pa=none
+
或者, 您同样也可以把程序存储在一个文件里 并输入:
+
-[source,bash]
+[source,shell]
....
% >file
....
@@ -504,14 +504,14 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
通常, 我们习惯将目录名起成和 打印机一样的名字, 像下面 这样:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/printer-name
....
然而, 如果您有很多网络打印机, 您可能想要把这些后台打印的队列目录目录放在一个单独的专为使用 LPD 打印而准备的目录里。 我们将用我们的两台打印机 `rattan` 和 `bamboo` 作为例子:
-[source,bash]
+[source,shell]
....
# mkdir /var/spool/lpd
# mkdir /var/spool/lpd/rattan
@@ -522,7 +522,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
====
如果担心用户任务的保密性, 可能会希望保护相应的后台打印队列目录, 使之不能被其他用户访问。 后台打印的队列目录的属主应该是 daemon 用户, 而 `daemon` 用户和 `daemon` 组拥有读写和搜索的权限,但其他用户没有。 接下来用我们的两台打印机作为例子:
-[source,bash]
+[source,shell]
....
# chown daemon:daemon /var/spool/lpd/rattan
# chown daemon:daemon /var/spool/lpd/bamboo
@@ -628,7 +628,7 @@ exit 2
使这个文件可以被执行:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/if-simple
....
@@ -666,7 +666,7 @@ lpd_enable="YES"
到 [.filename]#/etc/rc.conf# 文件当中, 然后既可以重启您的 机器, 也可以直接运行 man:lpd[8]。
-[source,bash]
+[source,shell]
....
# lpd
....
@@ -682,7 +682,7 @@ _要测试简单 LPD 设置:_
输入:
-[source,bash]
+[source,shell]
....
# lptest 20 5 | lpr -Pprinter-name
....
@@ -691,7 +691,7 @@ _要测试简单 LPD 设置:_
对于一台 PostScript(R) 打印机, 您应该得到那段程序的 结果。 而如果您使用的 man:lptest[1], 则您得到的 结果应该看起来像下面这样:
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
@@ -918,7 +918,7 @@ exit 2
转换过滤器使打印众多格式的文件变得很容易。 比如, 假设我们大量使用 TeX 排版系统, 并且有一台 PostScript(R) 打印机。 每次从 TeX 生成一个 DVI 文件, 我们都不能直接打印它直到我们将 DVI 文件转换成 PostScript(R)。 转换的命令应该是下面的样子:
-[source,bash]
+[source,shell]
....
% dvips seaweed-analysis.dvi
% lpr seaweed-analysis.ps
@@ -926,7 +926,7 @@ exit 2
通过安装 DVI 文件的转换过滤器, 我们可以跳过每次手动转换这一步, 而让 LPD 来完成这个步骤。 现在, 每次要打印 DVI 文件, 我们只需要一步就可以打印它:
-[source,bash]
+[source,shell]
....
% lpr -d seaweed-analysis.dvi
....
@@ -1291,7 +1291,7 @@ LPD 在报头页之后发出一个换纸字符。 如果您的打印机使用一
通过启用报头页, LPD 将生成出一个 _长报头_, 一整页的大字母, 标着用户, 主机和任务名。 下面是一个例子 (`kelly` 从主机 `rose` 打印了一个叫做 "outline" 的任务):
-[source,bash]
+[source,shell]
....
k ll ll
k l l
@@ -1331,7 +1331,7 @@ LPD 会附加一个换页符在这段文本之后, 所以任务会在新的一
如果您喜欢, LPD 可以生成一个 _短报头_; 指定 `sb` (短 banner) 在文件 [.filename]#/etc/printcap# 中。 报头页就会看起来像下面这样:
-[source,bash]
+[source,shell]
....
rose:kelly Job: outline Date: Sun Sep 17 11:07:51 1995
....
@@ -1562,7 +1562,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
然后, 我们只需要在主机 `orchid` 上建立一个后台打印队列目录:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/rattan /var/spool/lpd/bamboo
# chmod 770 /var/spool/lpd/rattan /var/spool/lpd/bamboo
@@ -1571,7 +1571,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
现在, 主机 `orchid` 上的用户可以打印到 `rattan` 和 `bamboo` 了。 如果, 比如, 一个用户在主机 `orchid` 上输入了:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d sushi-review.dvi
....
@@ -1638,7 +1638,7 @@ LPD 系统能够简化用户在打印多份副本时的工作。 用户可以用
如果您感觉多份副本会对打印机造成不必要的磨损和损耗, 您可以屏蔽掉 man:lpr[1] 的 `-\#` 选项, 这可以通过在 [.filename]##/etc/printcap## 文件中增加 `sc` 变量来完成。 当用户用 `-#` 选项提交任务时, 他们将看到:
-[source,bash]
+[source,shell]
....
lpr: multiple copies are not allowed
....
@@ -1686,7 +1686,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
通过使用 `sc` 变量, 我们阻止了 `lpr -#` 命令的使用, 但仍然没有禁止用户多次运行 man:lpr[1] , 或者多次提交任务中同样的文件, 像下面这样:
-[source,bash]
+[source,shell]
....
% lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign
....
@@ -1700,7 +1700,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
如果这组以外的用户 (包括 `root`) 试图打印到被限制的打印机,将会得到这样的提示:
-[source,bash]
+[source,shell]
....
lpr: Not a member of the restricted group
....
@@ -1816,7 +1816,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
+
后台打印队列目录在 `sd` 变量中给出。 我们设置 3 兆字节 (6144 磁盘块) 为文件系统上必须存在的总共剩余空间, 让 LPD 可以接受远程任务:
+
-[source,bash]
+[source,shell]
....
# echo 6144 > /var/spool/lpd/bamboo/minfree
....
@@ -1863,7 +1863,7 @@ LPD 启动 `lpf` 带着页宽和页长的参数 (通过 `pw` 和 `pl` 变量)。
当您准备对用户的打印进行收费时, 运行 man:pac[8] 程序。 只要转换到要收集信息的这台打印机的后台打印队列目录, 然后输入 `pac`。 您将会得到一个美元计费的摘要像下面这样:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
orchid:kelly 5.00 1 $ 0.10
@@ -1902,7 +1902,7 @@ _名字 ..._::
在 man:pac[8] 默认产生的摘要中, 可以看到在不同主机上的每个用户打印了多少页。 如果在您这里, 主机不考虑 (因为用户可以使用任何主机), 运行 `pac -m`, 来得到下面的摘要:
-[source,bash]
+[source,shell]
....
Login pages/feet runs price
andy 2.00 1 $ 0.04
@@ -1916,7 +1916,7 @@ total 337.00 154 $ 6.74
要以美元计算应付钱数, man:pac[8] 指定 `pc` 变量在 [.filename]#/etc/printcap# 文件中 (默认是 200, 或者 2 分每页). 这个参数的单位是百分之一分, 在这个变量中指定每页或者每尺的价格。 您可以覆盖这个值当运行 man:pac[8] 带着参数 `-p` 的时候。 参数 `-p` 的单位是美元, 而不是百分之一分。 例如,
-[source,bash]
+[source,shell]
....
# pac -p1.50
....
@@ -1970,28 +1970,28 @@ man:lpr[1], man:lprm[1], and man:lpq[1] 这三个命令都接受 `-P _printer-na
要打印文件, 输入:
-[source,bash]
+[source,shell]
....
% lpr filename ...
....
这个命令会打印所有列出的文件到默认打印机。 如果没有列出文件, man:lpr[1] 会从标准输入读取打印数据。 比如, 这个命令打印一些重要的系统文件:
-[source,bash]
+[source,shell]
....
% lpr /etc/host.conf /etc/hosts.equiv
....
要选择一个指定的打印机, 输入:
-[source,bash]
+[source,shell]
....
% lpr -P printer-name filename ...
....
这个例子打印一个当前目录的长长的列表到叫做 `rattan` 的这台打印机:
-[source,bash]
+[source,shell]
....
% ls -l | lpr -P rattan
....
@@ -2007,13 +2007,13 @@ man:lpr[1] 命令同样可以接受多种控制格式的选项, 应用文件
要显示默认打印机的队列, 输入 man:lpq[1]。 要指定打印机, 使用 `-P` 选项。 例如, 命令
-[source,bash]
+[source,shell]
....
% lpq -P bamboo
....
会显示打印机 `bamboo` 的队列。 下面是命令 `lpq` 输出的一个例子:
-[source,bash]
+[source,shell]
....
bamboo is ready and printing
Rank Owner Job Files Total Size
@@ -2030,7 +2030,7 @@ man:lpq[1] 输出的头一行也很有用: 它告诉我们打印机正在做
man:lpq[1] 命令同样支持 `-l` 选项来生成一个详细的长列表。 下面是一个 `lpq -l` 命令的例子:
-[source,bash]
+[source,shell]
....
waiting for bamboo to become ready (offline ?)
kelly: 1st [job 009rose]
@@ -2051,14 +2051,14 @@ mary: 3rd [job 011rose]
要从默认打印机中移除一个任务, 首先使用 man:lpq[1] 找到任务编号。 然后输入:
-[source,bash]
+[source,shell]
....
% lprm job-number
....
要从指定打印机中删除任务, 增加 `-P` 选项。 下面的命令会删除编号为 10 的任务从 `bamboo` 这台打印机:
-[source,bash]
+[source,shell]
....
% lprm -P bamboo 10
....
@@ -2076,7 +2076,7 @@ lprm::
使用参数 `-P` 和上面的快捷方式来用指定打印机替代默认打印机。 例如, 下面的命令会删除当前用户在打印机 `rattan` 队列中的所有任务:
-[source,bash]
+[source,shell]
....
% lprm -P rattan -
....
@@ -2085,7 +2085,7 @@ lprm::
====
如果您正工作在一个网络环境中, man:lprm[1] 将只允许在提交任务的主机上删除任务, 甚至是同一台打印机也可以在其他主机上使用时。 下面的命令证明了这个:
-[source,bash]
+[source,shell]
....
% lpr -P rattan myfile
% rlogin orchid
@@ -2117,7 +2117,7 @@ man:lpr[1] 支持许多控制文本格式的参数, 转换图形和其他格
例如, 下面的命令打印一个 DVI 文件 (来自 TeX 排版系统) 文件名为 [.filename]#fish-report.dvi# 到打印 `bamboo`:
-[source,bash]
+[source,shell]
....
% lpr -P bamboo -d fish-report.dvi
....
@@ -2170,7 +2170,7 @@ man:lpr[1] 支持许多控制文本格式的参数, 转换图形和其他格
下面是一个例子: 这个命令打印了一个很好的 man:ls[1] 联机手册到默认打印机:
-[source,bash]
+[source,shell]
....
% zcat /usr/shared/man/man1/ls.1.gz | troff -t -man | lpr -t
....
@@ -2187,7 +2187,7 @@ man:zcat[1] 命令解压缩 man:ls[1] 的手册并且将内容传给 man:troff[1
+
这个例子打印三份副本的文件 [.filename]#parser.c# 跟着三份副本的文件 [.filename]#parser.h# 到默认打印机:
+
-[source,bash]
+[source,shell]
....
% lpr -#3 parser.c parser.h
....
@@ -2332,7 +2332,7 @@ exit 2
它的输出产生了 "楼梯效果"。::
您可能在纸上得到下面这些:
+
-[source,bash]
+[source,shell]
....
!"#$%&'()*+,-./01234
"#$%&'()*+,-./012345
diff --git a/documentation/content/zh-cn/books/handbook/security/_index.adoc b/documentation/content/zh-cn/books/handbook/security/_index.adoc
index 463e08ce18..9ddf9c9992 100644
--- a/documentation/content/zh-cn/books/handbook/security/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/security/_index.adoc
@@ -125,7 +125,7 @@ FreeBSD 提供了一系列工具和机制来保证您的系统和网络的完整
可以使用 man:pw[8] 命令来完全禁止某一个帐号:
-[source,bash]
+[source,shell]
....
# pw lock staff
....
@@ -181,7 +181,7 @@ FreeBSD 现在默认在沙盒中运行 ntalkd, comsat, 以及 finger。此外,
内核的安全级别可以通过多种方式来设置。 最简单的设置正在运行的内核安全级的方法, 是使用 `sysctl` 来设置内核变量 `kern.securelevel`:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel=1
....
@@ -293,7 +293,7 @@ UNIX(R) 系统上的每个用户都有一个与其帐户关联的口令。 很
第一次初始化 OPIE 时, 可以使用 `opiepasswd` 命令:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
[grimreaper] ~ $ opiepasswd -f -c
@@ -314,7 +314,7 @@ MOS MALL GOAT ARM AVID COED
如果您需要通过一个不安全的连接来初始化, 则应首先在安全连接上执行过一次 `opiekey`; 您可能希望在可信的机器的 shell 提示符下完成。 此外还需要指定一个迭代轮数 (100 也许是一个较好的选择) 也可以选择一个自己的种子, 或让计算机随机生成一个。 在不安全的连接上 (当然是连到您希望初始化的机器上),使用 `opiepasswd` 命令:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -333,7 +333,7 @@ LINE PAP MILK NELL BUOY TROY
为了接受默认的种子, 按下 kbd:[Return] (回车)。 在输入访问口令之前, 到一个有安全连接的机器上, 并给它同样的参数:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -348,7 +348,7 @@ GAME GAG WELT OUT DOWN CHAT
一旦初始化过 OPIE, 当您登录时将看到类似这样的提示:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -368,7 +368,7 @@ Password:
在可信的系统上:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -383,7 +383,7 @@ GAME GAG WELT OUT DOWN CHAT
有时,会需要到不能访问可信的机器或安全连接的地方。 这种情形下, 可以使用 `opiekey` 命令来一次生成许多一次性口令。 例如:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -611,7 +611,7 @@ _kerberos IN TXT EXAMPLE.ORG
典型的数据库创建过程如下:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxx
@@ -630,7 +630,7 @@ Verifying password - Password: xxxxxxxx
现在是启动 KDC 服务的时候了。 运行 `/etc/rc.d/kerberos start` 以及 `/etc/rc.d/kadmind start` 来启动这些服务。 尽管此时还没有任何正在运行的 Kerberos 服务, 但您仍然可以通过获取并列出您刚刚创建的那个 principal (用户) 的 ticket 来验证 KDC 确实在正常工作, 使用 KDC 本身的功能:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -645,7 +645,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
完成所需的操作之后, 可以撤消这一 ticket:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -662,7 +662,7 @@ Aug 27 15:37:58 Aug 28 01:37:58 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
安装了 [.filename]#/etc/krb5.conf# 文件之后, 您就可以使用 Kerberos 上的 `kadmin` 了。 `add --random-key` 命令可以用于添加主机 principal, 而 `ext` 命令则允许导出服务器的主机 principal 到它的 keytab 中。 例如:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -677,7 +677,7 @@ kadmin> exit
如果您由于没有在 KDC 上运行 `kadmind` (例如基于安全理由) 因而无法远程地使用 `kadmin` 您可以直接在 KDC 上添加主机 principal (`host/myserver.EXAMPLE.ORG`) 随后将其导出到一个临时文件中 (以免覆盖 KDC 上的 [.filename]#/etc/krb5.keytab#), 方法是使用下面的命令:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext --keytab=/tmp/example.keytab host/myserver.example.org
@@ -715,7 +715,7 @@ Heimdal port 则提供了一些默认不安装的客户应用程序, 例如启
用户 home 目录中的 [.filename]#.k5login# 和 [.filename]#.k5users# 这两个文件可以配合 [.filename]#.hosts# 和 [.filename]#.rhosts# 来有效地解决这个问题。 例如, 如果 [.filename]#.k5login# 中有如下内容:
-[source,bash]
+[source,shell]
....
tillman@example.org
jdoe@example.org
@@ -824,7 +824,7 @@ FreeBSD 中附带的 OpenSSL 版本能够支持 安全套接字层 v2/v3 (SSLv2/
为了生成证书, 需要使用下面的命令:
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.pem
Generating a 1024 bit RSA private key
@@ -859,21 +859,21 @@ An optional company name []:Another Name
如果不需要来自 CA 的签名, 也可以创建自行签名的证书。 首先, 需要生成 RSA 密钥:
-[source,bash]
+[source,shell]
....
# openssl dsaparam -rand -genkey -out myRSA.key 1024
....
接下来, 生成 CA 密钥:
-[source,bash]
+[source,shell]
....
# openssl gendsa -des3 -out myca.key myRSA.key
....
然后用这个密钥来创建证书:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key myca.key -out new.crt
....
@@ -907,7 +907,7 @@ define(`confTLS_SRV_OPTIONS', `V')dnl
做一个简单的测试, 使用 man:telnet[1] 来连接邮件服务器:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -955,7 +955,7 @@ IPsec 既可以用来直接加密主机之间的网络通讯 (也就是 _传输
要把 IPsec 支持放进内核, 应该在配置文件中加入下面的选项:
-[source,bash]
+[source,shell]
....
options IPSEC IP security
device crypto
@@ -963,7 +963,7 @@ device crypto
如果需要 IPsec 的调试支持, 还应增加:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -988,17 +988,17 @@ options IPSEC_DEBUG debug for IP security
下一步是创建两个 man:gif[4] 伪设备用来在两个网络间传输数据包的 "隧道"。 使用 `root` 身份运行以下命令, 并用真实的内部外部网关替换命令中的 _internal_ 和 _external_ 项:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 internal1 internal2
....
-[source,bash]
+[source,shell]
....
# ifconfig gif0 tunnel external1 external2
....
@@ -1052,22 +1052,22 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
正如预期的那样,两边都有从私有地址发送和接受 ICMP 数据包的能力。下面, 两个网关都必须配置路由规则以正确传输两边的网络流量。 下面的命令可以实现这个:
-[source,bash]
+[source,shell]
....
# corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# corp-net# route add net 10.0.0.0: gateway 10.0.0.5
....
-[source,bash]
+[source,shell]
....
# priv-net# route add 10.246.38.0 10.246.38.1 255.255.255.0
....
-[source,bash]
+[source,shell]
....
# priv-net# route add host 10.246.38.0: gateway 10.246.38.1
....
@@ -1179,7 +1179,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
一旦完成后,便使用下面的命令在两边的网关上都启动 racoon:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1204,7 +1204,7 @@ Foreground mode.
确认一下 "隧道" 能正常工作, 切换到另外一个控制台用如下的 man:tcpdump[1] 命令查看网络流量。根据需要替换掉下面的 `em0` 网卡界面。
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1274,7 +1274,7 @@ OpenSSH 由 OpenBSD project 维护, 它基于 SSH v1.2.12 并包含了最新
sshd 的启用是作为 FreeBSD 安装中 `Standard` 安装过程中的一步来进行的。 要查看 sshd 是否已被启用, 请检查 [.filename]#rc.conf# 文件中的:
-[source,bash]
+[source,shell]
....
sshd_enable="YES"
....
@@ -1290,7 +1290,7 @@ sshd_enable="YES"
man:ssh[1] 的工作方式和 man:rlogin[1] 非常类似。
-[source,bash]
+[source,shell]
....
# ssh user@example.com
Host key not found from the list of known hosts.
@@ -1307,7 +1307,7 @@ user@example.com's password: *******
man:scp[1] 命令和 man:rcp[1]; 的用法类似, 它用于将文件复制到远程的机器上, 或复制过来, 区别是它是安全的。
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
user@example.com's password: *******
@@ -1333,7 +1333,7 @@ man:scp[1] 使用的参数同 man:cp[1] 类似。 第一个参数是一个或一
用于取代口令的一种方法是使用 man:ssh-keygen[1] 来生成 DSA 或 RSA 密钥对用于验证用户的身份:
-[source,bash]
+[source,shell]
....
% ssh-keygen -t dsa
Generating public/private dsa key pair.
@@ -1378,7 +1378,7 @@ man:ssh-agent[1] 工具能够使用加载到其中的私钥来处理验证过程
要在 shell 中使用 man:ssh-agent[1], 首先应把 shell 作为参数来启动它。 随后, 应通过 man:ssh-add[1] 并输入通行字, 来向它提供身份验证信息。 一旦这些步骤都做完了, 用户就应该能够 man:ssh[1] 到任何一个安装了对应公钥的机器了。 例如:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1403,7 +1403,7 @@ OpenSSH 能够创建隧道以便用加密的会话来封装其他协议。
下面的命令告诉 man:ssh[1] 为 telnet 创建一个隧道:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1436,7 +1436,7 @@ SSH 隧道通过监听 `localhost` 上面指定端口来完成工作。 它将
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1455,7 +1455,7 @@ Escape character is '^]'.
工作时, 有一个允许外来连接的 SSH 服务器。 同一个办公网络中有一个邮件服务器提供 POP3 服务。 这个网络, 或从您家到办公室的网络可能不, 或不完全可信。 基于这样的原因, 您需要以安全的方式来查看邮件。 解决方法是创建一个到办公室 SSH 服务器的连接, 并通过这个连接来访问 POP3 服务:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1471,7 +1471,7 @@ user@ssh-server.example.com's password: ******
解决方法是建立一个到您的网络的防火墙之外的网络上的 SSH 服务器, 并通过它提供的通道连接到 Ogg Vorbis 服务器上。
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1509,7 +1509,7 @@ AllowUsers root@192.168.1.32 admin
在完成对 [.filename]#/etc/ssh/sshd_config# 的修改之后您必须告诉 man:sshd[8] 重新加载其配置文件, 方法是执行:
-[source,bash]
+[source,shell]
....
# /etc/rc.d/sshd reload
....
@@ -1570,7 +1570,7 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
文件系统 ACL 可以使用 man:getfacl[1] 工具来查看。 例如, 如果想查看 [.filename]#test# 的 ACL 设置, 所用的命令是:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:
@@ -1583,14 +1583,14 @@ drwxr-xr-x 2 robert robert 512 Nov 10 11:54 public_html
要修改这个文件上的 ACL 设置, 则需要使用 man:setfacl[1] 工具。 例如:
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
`-k` 参数将把所有当前定义的 ACL 从文件或文件系统中删除。 一般来说应该使用 `-b` 因为它会保持让 ACL 正常工作的那些项不变。
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1608,7 +1608,7 @@ package:ports-mgmt/portaudit[] port 会下载一个数据库, 这一数据库
要开始使用 Portaudit, 需要首先从 Ports Collection 安装它:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portaudit && make install clean
....
@@ -1617,7 +1617,7 @@ package:ports-mgmt/portaudit[] port 会下载一个数据库, 这一数据库
安装完成之后, 管理员可以通过下面的命令来更新数据库, 并查看目前安装的软件包中所存在的已知安全漏洞:
-[source,bash]
+[source,shell]
....
# portaudit -Fda
....
@@ -1629,7 +1629,7 @@ package:ports-mgmt/portaudit[] port 会下载一个数据库, 这一数据库
在任何时候, 如果希望对通过 Ports Collection 安装的第三方软件工具进行审计, 管理员都可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# portaudit -a
....
@@ -1745,7 +1745,7 @@ VII. References<.>
在使用进程记帐之前, 必须先启用它。 要完成这项工作, 需要运行下面的命令:
-[source,bash]
+[source,shell]
....
# touch /var/account/acct
@@ -1758,7 +1758,7 @@ VII. References<.>
要显示关于刚刚发出的命令的相关信息, 则应使用 man:lastcomm[1] 工具。 `lastcomm` 命令可以用来显示在某一 man:ttys[5] 上的用户信息, 例如:
-[source,bash]
+[source,shell]
....
# lastcomm ls
trhodes ttyp1
diff --git a/documentation/content/zh-cn/books/handbook/serialcomms/_index.adoc b/documentation/content/zh-cn/books/handbook/serialcomms/_index.adoc
index d7ef9e3260..4887be42da 100644
--- a/documentation/content/zh-cn/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/serialcomms/_index.adoc
@@ -347,7 +347,7 @@ FreeBSD默认支持4个串口。 在MS-DOS(R)下,这些是 [.filename]#COM1#
如果想只察看包含 `sio` 一词的消息, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
# /sbin/dmesg | grep 'sio'
....
@@ -356,7 +356,7 @@ FreeBSD默认支持4个串口。 在MS-DOS(R)下,这些是 [.filename]#COM1#
例如,在一个带有4个串口的系统上,这些是串口特定的内核启动信息:
-[source,bash]
+[source,shell]
....
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
@@ -386,14 +386,14 @@ sio3: type 16550A
[.filename]#ttyuN# (或 [.filename]#cuauN#) 设备是您将要打开的应用程序的一般设备。 当进程打开某个设备时, 它将有一个终端 I/O 设置的默认配置。 您可以在命令行看看这些设置:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
当您修改了这个设备的设置,这个设置会生效,除非设备被关闭。 当它被重新打开时,它将回到默认设置。 要修改默认设置,您可以打开和调整 "初始状态" 设备的设置。例如, 要为[.filename]##ttyu5## 打开 `CLOCAL` 模式,8位通讯和默认的 `XON/XOFF` 流控制, 输入:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
@@ -402,7 +402,7 @@ sio3: type 16550A
为了防止应用程序修改某些设置, 应修改 "lock state"(锁状态) 设备。 例如, 要把 [.filename]#ttyu5# 的速率锁定为 57600 bps, 输入:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -459,7 +459,7 @@ sio3: type 16550A
如果要从运行 FreeBSD 的计算机上通过串口连接到另一系统, 可以使用:
-[source,bash]
+[source,shell]
....
# cu -l 串口设备
....
@@ -537,7 +537,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
对[.filename]##/etc/ttys##文件做一个必要的修改后,您必须发送一个 SIGHUP 信号给初始化进程来迫使它重新读取配置文件,例如:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -564,14 +564,14 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
确定一个 `getty` 进程正在运行和服务终端。 例如, 可以用``ps`` 命令得到运行 `getty` 程序的列表,键入:
-[source,bash]
+[source,shell]
....
# ps -axww|grep getty
....
您将看到一个终端的记录。例如,下面的显示表明一个``getty`` 正在第二个串口 [.filename]#ttyu1# 运行, 正在 [.filename]#/etc/gettytab# 中使用 `std.38400` 的记录:
-[source,bash]
+[source,shell]
....
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
....
@@ -653,7 +653,7 @@ FreeBSD支持基于 NS8250, NS16450, NS16550 和 NS16550A 的EIA RS-232C通
对于终端, `init` 会在每个配置串口上为每个拨入连接产生一个 `getty` 进程。 例如, 如果一个 modem 被附带在 [.filename]#/dev/ttyu0# 中,用命令``ps ax``可以显示下面这些:
-[source,bash]
+[source,shell]
....
4850 ?? I 0:00.09 /usr/libexec/getty V19200 ttyu0
....
@@ -758,7 +758,7 @@ ttyu0 "/usr/libexec/getty xxx" dialup on
您对[.filename]##/etc/ttys##作修改之后,您可以发送 `init` 进程给一个 HUP 信号来重读文件。您可以使用下面的命令来发送信号:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -871,7 +871,7 @@ AT&B2&W
如果DTR指示灯不亮, 通过控制台登录到 FreeBSD系统,然后执行一个 ``ps ax`` 命令来看 FreeBSD 是否正在正确的端口运行 ``getty``进程。 您将在进程显示中看到像这样的一行:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
115 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu1
@@ -879,7 +879,7 @@ AT&B2&W
如果您看到是这样的:
-[source,bash]
+[source,shell]
....
114 d0 I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -940,7 +940,7 @@ cuau0:dv=/dev/cuau0:br#19200:pa=none
此外, 也可以 `root` 身份执行 `cu` 命令:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -972,7 +972,7 @@ tip57600|Dial any phone number at 57600 bps:\
然后, 可以执行:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -987,7 +987,7 @@ cu115200|Use cu to dial any number at 115200bps:\
然后键入:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -1114,7 +1114,7 @@ FreeBSD可以通过一个串口只使用一个哑 (dumb) 终端就可以启动
. 使用串口电缆连接 [.filename]#COM1# 和控制终端。
. 要在串口控制台上显示所有的引导信息, 需要以超级用户的身份执行下面的命令:
+
-[source,bash]
+[source,shell]
....
# echo 'console="comconsole"' >> /boot/loader.conf
....
@@ -1205,7 +1205,7 @@ device sio0 flags 0x10
+
当您启动您的FreeBSD时,引导块将把 [.filename]#/boot.config# 的内容发给控制台。例如:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -1242,7 +1242,7 @@ Keyboard: no
+
在控制台上按 kbd:[Enter] 以外的任意键就能打断启动进程。 引导块将进入命令行模式。 您将看到:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -1409,7 +1409,7 @@ device sio1 flags 0x30
其他端口的控制台标记也不要设。
. 重新编译和安装引导块:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/zh-cn/books/handbook/users/_index.adoc b/documentation/content/zh-cn/books/handbook/users/_index.adoc
index d4423f09c9..696c914f45 100644
--- a/documentation/content/zh-cn/books/handbook/users/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/users/_index.adoc
@@ -167,7 +167,7 @@ man:adduser[8] 是一个简单的添加新用户的命令. 它为用户创建 [.
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -236,7 +236,7 @@ man:rmuser[8] 不能用来删除超级用户的帐户, 因为那样做是对系
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru Matching password entry:
jru:*:1001:1001::0:0:J. Random User:/home/jru:/usr/local/bin/zsh Is this the entry you wish to remove? y Remove user's home directory (/home/jru)? y Updating password file, updating databases, done.
@@ -268,7 +268,7 @@ man:chpass[1] 可以改变用户的口令, shells, 和包括个人信息在内
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -295,7 +295,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -327,7 +327,7 @@ man:passwd[1] 是改变您自己作为一个普通用户口令或者作为超级
[example]
====
-[source,bash]
+[source,shell]
....
% passwd Changing local password for jru.
Old password:
@@ -343,7 +343,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru Changing local password for jru.
New password:
@@ -379,7 +379,7 @@ man:pw[8] 是一个用来创建、删除、修改、显示用户和组的命令
====
系统并不直接读取 [.filename]#/etc/login.conf# 中的配置, 而是采用数据库文件 [.filename]#/etc/login.conf.db# 以提供更快的查找能力。 要从 [.filename]#/etc/login.conf# 文件生成 [.filename]#/etc/login.conf.db#, 应使用下面的命令:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -444,7 +444,7 @@ man:pw[8] 是一个用来创建、删除、修改、显示用户和组的命令
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -459,7 +459,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -474,7 +474,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -489,7 +489,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
diff --git a/documentation/content/zh-cn/books/handbook/vinum/_index.adoc b/documentation/content/zh-cn/books/handbook/vinum/_index.adoc
index 68beda92e2..48203be389 100644
--- a/documentation/content/zh-cn/books/handbook/vinum/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/vinum/_index.adoc
@@ -425,7 +425,7 @@ Vinum 对象会在 [.filename]#/dev/gvinum# 之下生成设备节点。 前述
要在这个卷上创建文件系统, 则需要使用 man:newfs[8]:
-[source,bash]
+[source,shell]
....
# newfs /dev/gvinum/concat
....
@@ -513,7 +513,7 @@ geom_vinum_load="YES"
. 使用下面的命令来了解根卷成员子盘的位置 (从设备开始的偏移量) 和尺寸:
+
-[source,bash]
+[source,shell]
....
# gvinum l -rv root
....
@@ -521,7 +521,7 @@ geom_vinum_load="YES"
需要注意的是, Vinum 偏移量和尺寸的单位是字节。 它们必须是 512 的整数倍, 才能得到 `bsdlabel` 命令所需的块号。
. 在每一个根卷成员设备上, 执行命令:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -e devname
....
@@ -535,7 +535,7 @@ geom_vinum_load="YES"
这样, 新的 `"a"` 分区, 将创建并覆盖这一设备上的 Vinum 分区的范围。 注意, `bsdlabel` 只有在 Vinum 分区的 fstype 被标记为 `"vinum"` 时, 才允许这样做。
. 这就成了! 所有的 `"a"` 分区现在都已存在, 而且是根卷的一份副本。 强烈建议您再次验证其结果, 方法是:
+
-[source,bash]
+[source,shell]
....
# fsck -n /dev/devnamea
....
@@ -545,7 +545,7 @@ geom_vinum_load="YES"
在下次重启时, 引导程序需要从新的基于 Vinum 的根文件系统中获取适当的控制信息, 并据此工作。 在内核初始化过程的结尾部分, 在所有的设备都被宣示之后, 如果显示了下面的信息, 则表示配置成功:
-[source,bash]
+[source,shell]
....
Mounting root from ufs:/dev/gvinum/root
....
@@ -554,7 +554,7 @@ Mounting root from ufs:/dev/gvinum/root
在 Vinum 根卷配置好之后, `gvinum l -rv root` 的输出可能类似下面的样子:
-[source,bash]
+[source,shell]
....
...
Subdisk root.p0.s0:
@@ -574,7 +574,7 @@ Subdisk root.p1.s0:
这些设备的 bsdlabel 类似下面的样子:
-[source,bash]
+[source,shell]
....
...
8 partitions:
diff --git a/documentation/content/zh-cn/books/handbook/virtualization/_index.adoc b/documentation/content/zh-cn/books/handbook/virtualization/_index.adoc
index b6d4e031a4..8290ae9952 100644
--- a/documentation/content/zh-cn/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/virtualization/_index.adoc
@@ -321,7 +321,7 @@ VirtualBox(TM) 是一个开发非常活跃, 完全虚拟化的软件, 并且
VirtualBox(TM) 已作为一个 FreeBSD port 提供, 位于 package:emulators/virtualbox-ose[], 可使用如下的命令安装:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -331,7 +331,7 @@ VirtualBox(TM) 已作为一个 FreeBSD port 提供, 位于 package:emulators/v
在第一次运行 VirtualBox(TM) 之前还需要做一些配置上的修改。port 会安装一个内核模块至 [.filename]#/boot/modules# 目录, 此模块需要事先加载:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -347,7 +347,7 @@ vboxdrv_load="YES"
当使用旧版本的 port 时, 需要使用下面的步骤来挂载 [.filename]#proc#:
-[source,bash]
+[source,shell]
....
# mount -t procfs proc /proc
....
@@ -363,7 +363,7 @@ proc /proc procfs rw 0 0
====
如果在运行 VirtualBox(TM) 的终端中发现了类似如下的错误消息:
-[source,bash]
+[source,shell]
....
VirtualBox: supR3HardenedExecDir: couldn't read "", errno=2 cchLink=-1
....
@@ -373,14 +373,14 @@ VirtualBox: supR3HardenedExecDir: couldn't read "", errno=2 cchLink=-1
在安装 VirtualBox(TM) 时会自动创建 `vboxusers` 组。 所有需要使用 VirtualBox(TM) 的用户必须被添加为此组中的成员。 可以使用 `pw` 命令添加新的成员:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
运行 VirtualBox(TM), 可以通过选择你当前图形环境中的 [.guimenuitem]#Sun VirtualBox#, 也可以在虚拟终端中键入以下的命令:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
diff --git a/documentation/content/zh-cn/books/handbook/x11/_index.adoc b/documentation/content/zh-cn/books/handbook/x11/_index.adoc
index a221aeb120..e15a822a9b 100644
--- a/documentation/content/zh-cn/books/handbook/x11/_index.adoc
+++ b/documentation/content/zh-cn/books/handbook/x11/_index.adoc
@@ -143,7 +143,7 @@ Xorg 是 FreeBSD 上的默认 X11 实现。 Xorg 是由 X.Org 基金会发行的
如果需要从 Ports Collection 编译和安装 Xorg:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -158,7 +158,7 @@ Xorg 是 FreeBSD 上的默认 X11 实现。 Xorg 是由 X.Org 基金会发行的
想要从 package 安装 Xorg, 简单地输入下面的命令:
-[source,bash]
+[source,shell]
....
# pkg_add -r xorg
....
@@ -193,7 +193,7 @@ Xorg 是 FreeBSD 上的默认 X11 实现。 Xorg 是由 X.Org 基金会发行的
对于 Xorg 7.3 这个版本, 可以不需要任何的配置文件就能运行,在提示符下键如下命令:
-[source,bash]
+[source,shell]
....
% startx
....
@@ -217,7 +217,7 @@ dbus_enable="YES"
配置 X11 需要一些步骤。 第一步是以超级用户的身份建立初始的配置文件:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
@@ -226,14 +226,14 @@ dbus_enable="YES"
下一步是测试现存的配置文件, 以确认 Xorg 能够同系统上的图形设备正常工作。 对于 Xorg 7.3 或者之前的版本, 键入:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new
....
从 Xorg 7.4 和更高的版本开始, 这个测试将显示出一个黑色的屏幕,对于判断 X11 是否能正常工作会造成一些困扰。 可以通过 `retro` 选项使用旧的模式:
-[source,bash]
+[source,shell]
....
# Xorg -config xorg.conf.new -retro
....
@@ -244,7 +244,7 @@ dbus_enable="YES"
====
在Xorg 7.3 以及更早期的版本中, 应使用 kbd:[Ctrl+Alt+Backspace] 组合键来强制退出 Xorg。 如果需要在 7.4 和之后的版本中启用这个组合键, 可以在任意 X 终端模拟器中输入下面的命令:
-[source,bash]
+[source,shell]
....
% setxkbmap -option terminate:ctrl_alt_bksp
....
@@ -308,7 +308,7 @@ Option "AutoAddDevices" "false"
也可以在 X 模拟终端或一个脚本中使用以下的命令达到相同的效果:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -367,7 +367,7 @@ EndSection
如果一切准备妥当, 就可以把配置文件放到公共的目录中了。 您可以在 man:Xorg[1] 里面找到具体位置。 这个位置通常是 [.filename]#/etc/X11/xorg.conf# 或 [.filename]#/usr/local/etc/X11/xorg.conf#。
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -456,7 +456,7 @@ X11 使用的默认字体不是很理想。 大型的字体显得参差不齐,
如果希望使用 Ports Collection 来安装上面的 Type1 字体, 只需运行下面的命令:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -471,7 +471,7 @@ FontPath "/usr/local/lib/X11/fonts/URW/"
或者,也可以在命令行运行:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
@@ -491,7 +491,7 @@ Load "freetype"
现在,为 TrueType(R) 字体创建一个目录 (比如, [.filename]#/usr/local/lib/X11/fonts/TrueType#) 然后把所有的 TrueType(R) 字体复制到这个目录。记住您不能直接从 Macintosh(R) 计算机中提取 TrueType(R) 字体; 能被 X11 使用的必须是 UNIX(R)/MS-DOS(R)/Windows(R) 格式的。 一旦您已经将这些文件复制到了这个目录, 就可以用 ttmkfdir 来创建 [.filename]#fonts.dir# 文件, 以便让X字体引擎知道您已经安装了这些新文件。 `ttmkfdir` 可以在 FreeBSD Ports 套件中的 package:x11-fonts/ttmkfdir[] 中找到。
-[source,bash]
+[source,shell]
....
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
@@ -499,7 +499,7 @@ Load "freetype"
现在把 TrueType(R) 字体目录添加到字体路径中。 这和上面 <<type1,Type1>> 字体的步骤是一样的, 那就是,使用
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
@@ -535,7 +535,7 @@ Load "freetype"
添加了新的字体,尤其是添加了新的字体目录后, 您应该运行下面的命令重建字体缓存:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -649,7 +649,7 @@ X 显示管理器(XDM) 是一个X视窗系统用于进行登录会话管理的
如果希望使用 XDM 来启动, 首先需要安装 package:x11/xdm[] port (在较新版本的 Xorg 中它并不是默认安装的)。 XDM 服务程序位于 [.filename]#/usr/local/bin/xdm#。 任何时候都可以 `root` 用户的身份来运行它, 以令其管理本地系统的 X 显示。 如果希望让 XDM 在系统每次启动过程中自动运行, 比较方便的做法是把它写到 [.filename]#/etc/ttys# 的配置中。 有关这个文件的具体格式和使用方法请参阅 crossref:serialcomms[term-etcttys,添加一个记录到/etc/ttys]。 在默认的 [.filename]#/etc/ttys# 文件中已经包含了在虚拟终端上运行 XDM 服务的示范配置:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -727,7 +727,7 @@ XDM 的配置目录是在 [.filename]##/usr/local/lib/X11/xdm##中。在这个
对于其他客户端来说, 如果希望它们能连接到显示服务器,您就必须编辑访问控制规则, 并启用连接侦听。 默认情况下, 这些都预设为比较保守的值。 要让 XDM 能侦听连接, 首先要在 [.filename]#xdm-config# 文件中注释掉一行:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests ! Comment out this line if you want to manage X terminals with xdm
DisplayManager.requestPort: 0
@@ -759,14 +759,14 @@ GNOME 是一个用户界面友好的桌面环境, 能够使用户很容易地
要从网络安装GNOME, 只要键入:
-[source,bash]
+[source,shell]
....
# pkg_add -r gnome2
....
从源代码编译GNOME,可以使用 ports树:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome2
# make install clean
@@ -801,7 +801,7 @@ gnome_enable="YES"
GNOME 也可以通过适当地配置名为 [.filename]#.xinitrc# 的文件来启动。 如果已经有了自定义的 [.filename]#.xinitrc#, 将启动当前窗口管理器的那一行改为启动 /usr/local/bin/gnome-session 就可以了。 如果还没有, 那么只需简单地:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
....
@@ -813,7 +813,7 @@ GNOME 也可以通过适当地配置名为 [.filename]#.xinitrc# 的文件来启
如果之前使用了一些旧式的显示管理器, 例如 XDM, 则这样做是没用的。 此时应建立一个可执行的 [.filename]#.xsession# 文件, 其中包含同样的命令。 要完成这项工作, 需要用 /usr/local/bin/gnome-session 取代现有的窗口管理器:
====
-[source,bash]
+[source,shell]
....
% echo "#!/bin/sh" > ~/.xsession
% echo "/usr/local/bin/gnome-session" >> ~/.xsession
@@ -850,14 +850,14 @@ FreeBSD 上提供了两种版本的 KDE。 版本 3 已经推出了很长时间
要从网络安装 KDE3 只需要:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde
....
要从网络安装 KDE4 则需要:
-[source,bash]
+[source,shell]
....
# pkg_add -r kde4
....
@@ -866,7 +866,7 @@ man:pkg_add[1] 就会自动的下载最新版本的应用程序。
要从源代码编译 KDE3, 可以使用 ports 树:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde3
# make install clean
@@ -874,7 +874,7 @@ man:pkg_add[1] 就会自动的下载最新版本的应用程序。
而从 ports 提供的源代码编译 KDE4, 对应的操作则是:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde4
# make install clean
@@ -884,14 +884,14 @@ man:pkg_add[1] 就会自动的下载最新版本的应用程序。
对于 KDE3:
-[source,bash]
+[source,shell]
....
% echo "exec startkde" > ~/.xinitrc
....
对于 KDE4:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/kde4/bin/startkde" > ~/.xinitrc
....
@@ -951,14 +951,14 @@ Xfce是以被GNOME 使用的 GTK+ 工具包为基础的桌面环境, 但是更
有一个二进制的Xfce 软件包存在(在写作的时候)。要安装的话,执行下面的命令:
-[source,bash]
+[source,shell]
....
# pkg_add -r xfce4
....
另外, 也可以使用 Ports Collection 从源代码联编:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -966,7 +966,7 @@ Xfce是以被GNOME 使用的 GTK+ 工具包为基础的桌面环境, 但是更
现在,要告诉X服务器在下次X启动时执行 Xfce。 只要执行下面的命令:
-[source,bash]
+[source,shell]
....
% echo "/usr/local/bin/startxfce4" > ~/.xinitrc
....
diff --git a/documentation/content/zh-cn/books/porters-handbook/plist/chapter.adoc b/documentation/content/zh-cn/books/porters-handbook/plist/chapter.adoc
index 4c013f8e9c..ce7378c451 100644
--- a/documentation/content/zh-cn/books/porters-handbook/plist/chapter.adoc
+++ b/documentation/content/zh-cn/books/porters-handbook/plist/chapter.adoc
@@ -157,7 +157,7 @@ _动态装箱单_ 是指在 port 编译并安装时生成的装箱单。 在下
接下来, 建立一个用于安装您的 port 的临时目录, 并在其中安装它所依赖的所有其他软件包:
-[source,bash]
+[source,shell]
....
# mkdir /var/tmp/`make -V PORTNAME`
# mtree -U -f `make -V MTREE_FILE` -d -e -p /var/tmp/`make -V PORTNAME`
@@ -166,21 +166,21 @@ _动态装箱单_ 是指在 port 编译并安装时生成的装箱单。 在下
将目录结构保存到一新文件中。
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/`make -V PORTNAME` && find -d * -type d) | sort > OLD-DIRS
....
建立一空白 [.filename]#pkg-plist# 文件:
-[source,bash]
+[source,shell]
....
# :>pkg-plist
....
如果您的 port 遵循 `PREFIX` (应该如此) 则接下来应安装该 port 并创建装箱单。
-[source,bash]
+[source,shell]
....
# make install PREFIX=/var/tmp/`make -V PORTNAME`
# (cd /var/tmp/`make -V PORTNAME` && find -d * \! -type d) | sort > pkg-plist
@@ -188,7 +188,7 @@ _动态装箱单_ 是指在 port 编译并安装时生成的装箱单。 在下
此外还应把新建立的目录加入装箱单。
-[source,bash]
+[source,shell]
....
# (cd /var/tmp/`make -V PORTNAME` && find -d * -type d) | sort | comm -13 OLD-DIRS - | sort -r | sed -e 's#^#@dirrm #' >> pkg-plist
....
@@ -199,14 +199,14 @@ _动态装箱单_ 是指在 port 编译并安装时生成的装箱单。 在下
开始的步骤和上面的前三行一样, 也就是 `mkdir`, `mtree` 并 `make depends`。 然后联编和安装 port:
-[source,bash]
+[source,shell]
....
# make install PREFIX=/var/tmp/`make -V PORTNAME`
....
然后让 `plist` 生成 [.filename]#pkg-plist# 文件:
-[source,bash]
+[source,shell]
....
# /usr/ports/Tools/scripts/plist -Md -m `make -V MTREE_FILE` /var/tmp/`make -V PORTNAME` > pkg-plist
....
diff --git a/documentation/content/zh-cn/books/porters-handbook/port-upgrading/chapter.adoc b/documentation/content/zh-cn/books/porters-handbook/port-upgrading/chapter.adoc
index 6b2c7b0b9c..b5fb7f9070 100644
--- a/documentation/content/zh-cn/books/porters-handbook/port-upgrading/chapter.adoc
+++ b/documentation/content/zh-cn/books/porters-handbook/port-upgrading/chapter.adoc
@@ -44,7 +44,7 @@ toc::[]
如果只修改一个文件, 可以直接使用 `diff` 来生成补丁, 将需要修改的文件复制成 _something.orig_, 并将改动放进 _something_, 接着生成补丁:
-[source,bash]
+[source,shell]
....
% /usr/bin/diff something.orig something > something.diff
....
@@ -76,7 +76,7 @@ toc::[]
如果可能的话, 请提交man:cvs[1] diff; 这种情形要比直接比较 "新、旧" 目录要容易处理。 此外, 这种方法也让您更容易看出到底改了什么, 并在其他人更新了 Ports Collection 时容易合并这些改动, 在提交之前, 这可以减少维护补丁所需的工作。
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% cvs -d R_CVSROOT co pdnsd <.> <.>
@@ -91,7 +91,7 @@ toc::[]
在工作目录中, 您可以像往常一样进行任何更改。 如果您添加或删除了文件, 则需要告诉 `cvs` 来追踪这些改动:
-[source,bash]
+[source,shell]
....
% cvs add new_file
% cvs remove deleted_file
@@ -99,7 +99,7 @@ toc::[]
请反复检查 <<porting-testing>> 列出的事项并使用 <<porting-portlint>> 进行检查。
-[source,bash]
+[source,shell]
....
% cvs status
% cvs update <.>
@@ -128,7 +128,7 @@ toc::[]
最后一步是以 CVS 中的文件为基础生成 unified man:diff[1]:
-[source,bash]
+[source,shell]
....
% cvs diff -uN > ../`basename ${PWD}`.diff
....
diff --git a/documentation/content/zh-cn/books/porters-handbook/security/chapter.adoc b/documentation/content/zh-cn/books/porters-handbook/security/chapter.adoc
index 01373f94b2..a2f0b6bbf7 100644
--- a/documentation/content/zh-cn/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/zh-cn/books/porters-handbook/security/chapter.adoc
@@ -188,7 +188,7 @@ XML 是一个复杂的语言, 它远远超越了这本书的范围。 不过
首先, 检查一下是否已经有了关于这个漏洞的描述。 如果已经有过这样的记录, 那么它将匹配较早版本的 package, `0.65_6`:
-[source,bash]
+[source,shell]
....
% packaudit
% portaudit clamav-0.65_6
@@ -196,7 +196,7 @@ XML 是一个复杂的语言, 它远远超越了这本书的范围。 不过
如果什么都没有发现, 您就可以考虑写一个新的记录来描述这个漏洞了。 现在可以生成一个新的 UUID (假设它是 `74a9541d-5d6c-11d8-80e3-0020ed76ef5a`), 然后将您的新记录加入到 VuXML 数据库中。 接下来, 用下面的命令来检查它是否符合语法:
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml && make validate
....
@@ -208,14 +208,14 @@ XML 是一个复杂的语言, 它远远超越了这本书的范围。 不过
接下来从 VuXML 文件重构 `portaudit` 数据库:
-[source,bash]
+[source,shell]
....
% packaudit
....
要验证您新加入的项的 `<affected>` 小节能够正确地匹配希望的 package, 可以使用下面的命令:
-[source,bash]
+[source,shell]
....
% portaudit -f /usr/ports/INDEX -r 74a9541d-5d6c-11d8-80e3-0020ed76ef5a
....
@@ -229,7 +229,7 @@ XML 是一个复杂的语言, 它远远超越了这本书的范围。 不过
现在检查您添加的记录所匹配的版本是否正确:
-[source,bash]
+[source,shell]
....
% portaudit clamav-0.65_6 clamav-0.65_7
Affected package: clamav-0.65_6 (matched by clamav<0.65_7)
@@ -243,7 +243,7 @@ Reference: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-0020e
最后, 验证您从 VuXML 数据库中能够正确地得到预期的网页效果:
-[source,bash]
+[source,shell]
....
% mkdir -p ~/public_html/portaudit
% packaudit
diff --git a/documentation/content/zh-cn/books/porters-handbook/testing/chapter.adoc b/documentation/content/zh-cn/books/porters-handbook/testing/chapter.adoc
index fdb4582f88..f515d6b1cd 100644
--- a/documentation/content/zh-cn/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/zh-cn/books/porters-handbook/testing/chapter.adoc
@@ -60,7 +60,7 @@ toc::[]
`port` 是一个能够帮助您简化测试工具的前端脚本。 如果希望对新增的 port 或更新 port 时进行测试, 可以用 `port test` 来完成这些测试工作, 这也包含了 <<testing-portlint,`portlint`>> 检查。 这个命令会检测并列出没有在 [.filename]#pkg-plist# 中列出的文件。 具体用法请参见下面的例子:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -78,7 +78,7 @@ toc::[]
一定要避免让您的 port 在 [.filename]#/usr/local# 而不是正确的 `PREFIX` 中安装文件。 简单的测试方法是:
-[source,bash]
+[source,shell]
....
# make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
diff --git a/documentation/content/zh-tw/articles/contributing/_index.adoc b/documentation/content/zh-tw/articles/contributing/_index.adoc
index 5e112db1ee..7c58c41366 100644
--- a/documentation/content/zh-tw/articles/contributing/_index.adoc
+++ b/documentation/content/zh-tw/articles/contributing/_index.adoc
@@ -117,14 +117,14 @@ link:https://www.FreeBSD.org/projects/ideas/[FreeBSD list of projects and ideas
例如:
-[source,bash]
+[source,shell]
....
% diff -c oldfile newfile
....
-[source,bash]
+[source,shell]
....
% diff -c -r olddir newdir
....
@@ -133,14 +133,14 @@ link:https://www.FreeBSD.org/projects/ideas/[FreeBSD list of projects and ideas
或者像是...
-[source,bash]
+[source,shell]
....
% diff -u oldfile newfile
....
-[source,bash]
+[source,shell]
....
% diff -u -r olddir newdir
....
diff --git a/documentation/content/zh-tw/articles/freebsd-questions/_index.adoc b/documentation/content/zh-tw/articles/freebsd-questions/_index.adoc
index 8f71ff28f3..91bb198fa1 100644
--- a/documentation/content/zh-tw/articles/freebsd-questions/_index.adoc
+++ b/documentation/content/zh-tw/articles/freebsd-questions/_index.adoc
@@ -169,7 +169,7 @@ There is a judgement call here, of course, but the output of the man:dmesg[8] co
* A lot of the information you need to supply is the output of programs, such as man:dmesg[8], or console messages, which usually appear in [.filename]#/var/log/messages#. Do not try to copy this information by typing it in again; it is a real pain, and you are bound to make a mistake. To send log file contents, either make a copy of the file and use an editor to trim the information to what is relevant, or cut and paste into your message. For the output of programs like man:dmesg[8], redirect the output to a file and include that. For example,
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/zh-tw/articles/hubs/_index.adoc b/documentation/content/zh-tw/articles/hubs/_index.adoc
index 5942ce32a7..c461be0051 100644
--- a/documentation/content/zh-tw/articles/hubs/_index.adoc
+++ b/documentation/content/zh-tw/articles/hubs/_index.adoc
@@ -143,7 +143,7 @@ The best way to mirror the FTP area is rsync. You can install the port package:n
一個需要mirror FreeBSD官網的指令如下:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://ftp4.de.FreeBSD.org/FreeBSD/ /pub/FreeBSD/
....
@@ -157,7 +157,7 @@ FreeBSD 網站應只能透過 rsync 指令來mirror.
一個 mirror FreeBSD 網站的指令應該看起像這樣:
-[source,bash]
+[source,shell]
....
% rsync -vaHz --delete rsync://bit0.us-west.freebsd.org/FreeBSD-www-data/ /usr/local/www/
....
@@ -167,14 +167,14 @@ FreeBSD 網站應只能透過 rsync 指令來mirror.
由於對頻寬,儲存空間和管理的要求非常高,FreeBSD 計畫決定不允許公眾 mirror 套件. 對於擁有大量伺服主機的網站,建議為 man:pkg[8] 使用 HTTP proxy 快取可能會有所幫助。或者,您可以使用以下指令獲得套件與相依套件:
-[source,bash]
+[source,shell]
....
% pkg fetch -d -o /usr/local/mirror vim
....
一旦這些套件包被下載,就必須執行以下命令來產生套件庫數據:
-[source,bash]
+[source,shell]
....
% pkg repo /usr/local/mirror
....
diff --git a/documentation/content/zh-tw/articles/leap-seconds/_index.adoc b/documentation/content/zh-tw/articles/leap-seconds/_index.adoc
index 2449f0b673..7c06fbe94e 100644
--- a/documentation/content/zh-tw/articles/leap-seconds/_index.adoc
+++ b/documentation/content/zh-tw/articles/leap-seconds/_index.adoc
@@ -66,7 +66,7 @@ __潤秒__是為了同步地球自轉,與原子鐘所做的特定一秒的修
測試是否有使用潤秒是有可能的。由於 NTP 的性質,測試可能要運作到潤秒前24小時。有些主要的參考時鐘來源只在潤秒前一個小時公告。詢問 NTP 行程:
-[source,bash]
+[source,shell]
....
% ntpq -c 'rv 0 leap'
....
diff --git a/documentation/content/zh-tw/articles/mailing-list-faq/_index.adoc b/documentation/content/zh-tw/articles/mailing-list-faq/_index.adoc
index d7fc256739..dfe33f0c65 100644
--- a/documentation/content/zh-tw/articles/mailing-list-faq/_index.adoc
+++ b/documentation/content/zh-tw/articles/mailing-list-faq/_index.adoc
@@ -117,7 +117,7 @@ FreeBSD mailing lists 主要是提供 FreeBSD 社群間的溝通管道,這裡
* 請確認:時間與時區設定是否正確。 這問題看起來有點蠢,因為你寄出的信還是會到達 mailing list 上, 但是呢,每位 mailing lists 上的訂戶每天都會看數百封的信, 他們通常會把信件以標題跟時間作為排序依據。 若你的信沒有在第一篇正解之前就先出現的話,他們就會假設可能是漏收你這封信, 然後就沒再去看你那封信了。
* 請提供程式出現的相關訊息,像是 man:dmesg[8] 或者 console messages 也就是通常會出現在 [.filename]#/var/log/messages# 出現的。 請不要用手打,因為這不僅很苦,而且也可能打錯字或亂掉原有格式。請直接把相關的 log 檔丟出來, 或是用編輯器來剪裁、或是用滑鼠複製/貼上來完成。舉個例子,如果是要把像是 `dmesg` 的程式訊息倒入到某個檔案去的話,那麼作法如下:
+
-[source,bash]
+[source,shell]
....
% dmesg > /tmp/dmesg.out
....
diff --git a/documentation/content/zh-tw/articles/nanobsd/_index.adoc b/documentation/content/zh-tw/articles/nanobsd/_index.adoc
index 61a92b17d5..c8cabd72de 100644
--- a/documentation/content/zh-tw/articles/nanobsd/_index.adoc
+++ b/documentation/content/zh-tw/articles/nanobsd/_index.adoc
@@ -70,7 +70,7 @@ NanoBSD 提供的功能包括:
[example]
====
-[source,bash]
+[source,shell]
....
# vi /etc/resolv.conf
[...]
@@ -94,7 +94,7 @@ NanoBSD 映像檔是透過使用非常簡單的 [.filename]#nanobsd.sh# shell sc
打造 NanoBSD 映像檔所需的指令是:
-[source,bash]
+[source,shell]
....
# cd /usr/src/tools/tools/nanobsd <.>
# sh nanobsd.sh <.>
@@ -116,7 +116,7 @@ NanoBSD 映像檔是透過使用非常簡單的 [.filename]#nanobsd.sh# shell sc
執行下面的指令將會 [.filename]#nanobsd.sh# 讀取目前所在目錄的 [.filename]#myconf.nano# 檔的設定:
-[source,bash]
+[source,shell]
....
# sh nanobsd.sh -c myconf.nano
....
@@ -249,7 +249,7 @@ customize_cmd cust_nobeastie
如果傳輸速度是第一要求的話,請採用下面例子:
-[source,bash]
+[source,shell]
....
# ftp myhost
get _.disk.image "| sh updatep1"
@@ -259,7 +259,7 @@ get _.disk.image "| sh updatep1"
如果想更安全的話,應參考下面例子:
-[source,bash]
+[source,shell]
....
# ssh myhost cat _.disk.image.gz | zcat | sh updatep1
....
@@ -271,7 +271,7 @@ get _.disk.image "| sh updatep1"
[.procedure]
. 首先,在提供映像檔的主機上開啟 TCP listen,並讓它把映像檔傳給 client:
+
-[source,bash]
+[source,shell]
....
myhost# nc -l 2222 < _.disk.image
....
@@ -282,7 +282,7 @@ myhost# nc -l 2222 < _.disk.image
====
. 連到提供新映像檔服務的主機,並執行 [.filename]#updatep1# 這支 script:
+
-[source,bash]
+[source,shell]
....
# nc myhost 2222 | sh updatep1
....
diff --git a/documentation/content/zh-tw/articles/pr-guidelines/_index.adoc b/documentation/content/zh-tw/articles/pr-guidelines/_index.adoc
index 34152a9a1e..a29acf5349 100644
--- a/documentation/content/zh-tw/articles/pr-guidelines/_index.adoc
+++ b/documentation/content/zh-tw/articles/pr-guidelines/_index.adoc
@@ -353,7 +353,7 @@ GNATS is picky about the format of a submitted bug report. This is why a lot of
When GNATS cannot deduce what to do with a problem report that reaches the database, it sets the responsible of the PR to `gnats-admin` and files it under the `pending` category. This is now a "misfiled" PR and will not appear in bug report listings, unless someone explicitly asks for a list of all the misfiled PRs. If you have access to the FreeBSD cluster machines, you can use `query-pr` to view a listing of PRs that have been misfiled:
-[source,bash]
+[source,shell]
....
% query-pr -x -q -r gnats-admin
52458 gnats-ad open serious medium Re: declaration clash f
@@ -394,14 +394,14 @@ from the body of this PR to kern/12345
Searching with `query-pr` for the original PR, of which a misfiled followup is a reply, is as easy as running:
-[source,bash]
+[source,shell]
....
% query-pr -q -y "some text"
....
After you locate the original PR and the misfiled followups, use the `-F` option of `query-pr` to save the full text of all the relevant PRs in a UNIX(R) mailbox file, i.e.:
-[source,bash]
+[source,shell]
....
% query-pr -F 52458 52474 > mbox
....
diff --git a/documentation/content/zh-tw/articles/problem-reports/_index.adoc b/documentation/content/zh-tw/articles/problem-reports/_index.adoc
index 11aae0f257..e559de5456 100644
--- a/documentation/content/zh-tw/articles/problem-reports/_index.adoc
+++ b/documentation/content/zh-tw/articles/problem-reports/_index.adoc
@@ -147,7 +147,7 @@ The following applies to submitting PRs via email:
The man:send-pr[1] program has provisions for attaching files to a problem report. You can attach as many files as you want provided that each has a unique base name (i.e. the name of the file proper, without the path). Just use the `-a` command-line option to specify the names of the files you wish to attach:
-[source,bash]
+[source,shell]
....
% send-pr -a /var/run/dmesg -a /tmp/errors
....
@@ -257,7 +257,7 @@ If you are using man:send-pr[1]:
Once you are done filling out the template, have saved it, and exit your editor, man:send-pr[1] will prompt you with [.prompt]#s)end, e)dit or a)bort?#. You can then hit `s` to go ahead and submit the problem report, `e` to restart the editor and make further modifications, or `a` to abort. If you choose the latter, your problem report will remain on disk (man:send-pr[1] will tell you the filename before it terminates), so you can edit it at your leisure, or maybe transfer it to a system with better net connectivity, before sending it with the `-F` to man:send-pr[1]:
-[source,bash]
+[source,shell]
....
% send-pr -f ~/my-problem-report
....
diff --git a/documentation/content/zh-tw/articles/remote-install/_index.adoc b/documentation/content/zh-tw/articles/remote-install/_index.adoc
index 40e5e15a25..69622b2544 100644
--- a/documentation/content/zh-tw/articles/remote-install/_index.adoc
+++ b/documentation/content/zh-tw/articles/remote-install/_index.adoc
@@ -78,7 +78,7 @@ toc::[]
首先下載最新的 mfsBSD 並解壓縮之, 然後切到解壓縮後的工作目錄,也就是 mfsBSD script 檔所在處:
-[source,bash]
+[source,shell]
....
# fetch http://people.freebsd.org/~mm/mfsbsd/mfsbsd-latest.tar.gz
# tar xvzf mfsbsd-1.0-beta1.tar.gz
@@ -130,7 +130,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
首先是把 FreeBSD 安裝光碟或者安裝用的 ISO image 檔丟到 [.filename]#/cdrom#。 為維持所有例子的一致,本文假設都是用 FreeBSD 7.0-RELEASE ISO。 而把 ISO image 檔掛載到 [.filename]#/cdrom# 目錄相當簡單, 就是用 man:mdconfig[8]:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -u 10 -f 7.0-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /cdrom
@@ -138,7 +138,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
接著就開始打造可開機的 mfsBSD image:
-[source,bash]
+[source,shell]
....
# make BASE=/cdrom/7.0-RELEASE
....
@@ -152,14 +152,14 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
現在 mfsBSD image 已經備妥, 要上傳到遠端機器的救急系統或者預先安裝的 Linux(R) distribution。 要完成這工作最適合的工具就是 scp:
-[source,bash]
+[source,shell]
....
# scp disk.img root@192.168.0.2:.
....
為了能順利啟動 mfsBSD image, 要把檔案放在欲安裝機器的第一顆(可開機)硬碟上。 假設例子的第一顆開機硬碟代號為 [.filename]#sda#, 那麼作法就類似下面這樣:
-[source,bash]
+[source,shell]
....
# dd if=/root/disk.img of=/dev/sda bs=1m
....
@@ -177,7 +177,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
首先先把各硬碟都先清空。 請對各硬碟作下列指令:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/ad0 count=2
....
@@ -186,7 +186,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
下面的例子會介紹如何建立 slice 以及 label、在每個分割區上啟用 man:gmirror[8]、如何在每個 mirrored 分割區上建立 UFS2 檔案系統:
-[source,bash]
+[source,shell]
....
# fdisk -BI /dev/ad0 <.>
# fdisk -BI /dev/ad1
@@ -221,7 +221,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
這裡是最重要的一環, 本節介紹實際上如何在先前一節所做好的硬碟安裝最小化的 FreeBSD, 為了完成此一目標,所有檔案系統都必須掛載妥當,才能讓 Sysinstall 可以把 FreeBSD 裝到硬碟內:
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/root /mnt
# mkdir /mnt/var /mnt/usr
@@ -253,7 +253,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
現在必須要用 man:chroot[8] 以切到剛剛新裝好的系統內。 指令如下:
-[source,bash]
+[source,shell]
....
# chroot /mnt
....
@@ -262,7 +262,7 @@ ifconfig_re0="inet 192.168.0.2 netmask 255.255.255.0"
* 把 `GENERIC` kernel 複製到 [.filename]#/boot/kernel# 目錄:
+
-[source,bash]
+[source,shell]
....
# cp -Rp /boot/GENERIC/* /boot/kernel
....
@@ -287,7 +287,7 @@ zfs_load="YES"
....
* 執行下列指令,以在下次開機時啟用 ZFS :
+
-[source,bash]
+[source,shell]
....
# echo 'zfs_enable="YES"' >> /etc/rc.conf
....
@@ -304,14 +304,14 @@ zfs_load="YES"
接下來只剩要調整 man:zpool[8] 以及建立 man:zfs[8] 檔案系統而已。 ZFS 的建立及管理是相當淺顯易懂。 首先, 建立 mirrored pool:
-[source,bash]
+[source,shell]
....
# zpool create tank mirror /dev/ad[01]s1f
....
接著,建立檔案系統:
-[source,bash]
+[source,shell]
....
# zfs create tank/ports
# zfs create tank/src
diff --git a/documentation/content/zh-tw/books/developers-handbook/ipv6/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/ipv6/chapter.adoc
index 3fbc61ede8..02f69a0f4d 100644
--- a/documentation/content/zh-tw/books/developers-handbook/ipv6/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/ipv6/chapter.adoc
@@ -169,7 +169,7 @@ Ordinary userland applications should use advanced API (RFC2292) to specify scop
In the kernel, an interface index for link-local scoped address is embedded into 2nd 16bit-word (3rd and 4th byte) in IPv6 address. For example, you may see something like:
-[source,bash]
+[source,shell]
....
fe80:1::200:f8ff:fe01:6317
....
@@ -195,7 +195,7 @@ IPv6 link-local address is generated from IEEE802 address (Ethernet MAC address)
Here is an output of netstat command:
-[source,bash]
+[source,shell]
....
Internet6:
Destination Gateway Flags Netif Expire
@@ -226,7 +226,7 @@ Therefore, this is unwise to enable net.inet6.ip6.accept_rtadv on routers, or mu
To summarize the sysctl knob:
-[source,bash]
+[source,shell]
....
accept_rtadv forwarding role of the node
--- --- ---
@@ -293,7 +293,7 @@ and recompile the new kernel.
Then you can test jumbo payloads by the man:ping6[8] command with -b and -s options. The -b option must be specified to enlarge the size of the socket buffer and the -s option specifies the length of the packet, which should be more than 65,535. For example, type as follows:
-[source,bash]
+[source,shell]
....
% ping6 -b 70000 -s 68000 ::1
....
@@ -302,7 +302,7 @@ The IPv6 specification requires that the Jumbo Payload option must not be used i
When an IPv6 packet is received, the frame length is checked and compared to the length specified in the payload length field of the IPv6 header or in the value of the Jumbo Payload option, if any. If the former is shorter than the latter, the packet is discarded and statistics are incremented. You can see the statistics as output of man:netstat[8] command with `-s -p ip6' option:
-[source,bash]
+[source,shell]
....
% netstat -s -p ip6
ip6:
@@ -350,7 +350,7 @@ To process IP6 header, extension headers and transport headers easily, network d
`netstat -s -p ip6` tells you whether or not your driver conforms such requirement. In the following example, "cce0" violates the requirement. (For more information, refer to Section 2.)
-[source,bash]
+[source,shell]
....
Mbuf statistics:
317 one mbuf
@@ -379,7 +379,7 @@ You can perform wildcard bind on both of the address families, on the same port.
The following table show the behavior of FreeBSD 4.x.
-[source,bash]
+[source,shell]
....
listening side initiating side
(AF_INET6 wildcard (connection to ::ffff:10.1.1.1)
@@ -632,7 +632,7 @@ Note that the behavior is configurable in per-node manner, not per-SA manner (dr
The behavior is summarized as follows (see source code for more detail):
-[source,bash]
+[source,shell]
....
encapsulate decapsulate
--- ---
diff --git a/documentation/content/zh-tw/books/developers-handbook/kernelbuild/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/kernelbuild/chapter.adoc
index 9025f15833..c01d4aa826 100644
--- a/documentation/content/zh-tw/books/developers-handbook/kernelbuild/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/kernelbuild/chapter.adoc
@@ -52,21 +52,21 @@ Building the kernel this way may be useful when working on the kernel code and i
====
. Run man:config[8] to generate the kernel source code:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/config MYKERNEL
....
. Change into the build directory. man:config[8] will print the name of this directory after being run as above.
+
-[source,bash]
+[source,shell]
....
# cd ../compile/MYKERNEL
....
. Compile the kernel:
+
-[source,bash]
+[source,shell]
....
# make depend
# make
@@ -74,7 +74,7 @@ Building the kernel this way may be useful when working on the kernel code and i
. Install the new kernel:
+
-[source,bash]
+[source,shell]
....
# make install
....
diff --git a/documentation/content/zh-tw/books/developers-handbook/kerneldebug/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/kerneldebug/chapter.adoc
index 7c85e75893..94cff71150 100644
--- a/documentation/content/zh-tw/books/developers-handbook/kerneldebug/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/kerneldebug/chapter.adoc
@@ -78,7 +78,7 @@ Check [.filename]#/etc/fstab# or man:swapinfo[8] for a list of swap devices.
====
Make sure the `dumpdir` specified in man:rc.conf[5] exists before a kernel crash!
-[source,bash]
+[source,shell]
....
# mkdir /var/crash
# chmod 700 /var/crash
@@ -101,7 +101,7 @@ The man:crashinfo[8] utility generates a text file containing a summary of infor
If you are testing a new kernel but need to boot a different one in order to get your system up and running again, boot it only into single user mode using the `-s` flag at the boot prompt, and then perform the following steps:
-[source,bash]
+[source,shell]
....
# fsck -p
# mount -a -t ufs # make sure /var/crash is writable
@@ -116,7 +116,7 @@ This instructs man:savecore[8] to extract a kernel dump from [.filename]#/dev/ad
The kernel includes a man:sysctl[8] node that requests a kernel panic. This can be used to verify that your system is properly configured to save kernel crash dumps. You may wish to remount existing file systems as read-only in single user mode before triggering the crash to avoid data loss.
-[source,bash]
+[source,shell]
....
# shutdown now
...
@@ -139,21 +139,21 @@ This section covers man:kgdb[1]. The latest version is included in the package:d
To enter into the debugger and begin getting information from the dump, start kgdb:
-[source,bash]
+[source,shell]
....
# kgdb -n N
....
Where _N_ is the suffix of the [.filename]#vmcore.N# to examine. To open the most recent dump use:
-[source,bash]
+[source,shell]
....
# kgdb -n last
....
Normally, man:kgdb[1] should be able to locate the kernel running at the time the dump was generated. If it is not able to locate the correct kernel, pass the pathname of the kernel and dump as two arguments to kgdb:
-[source,bash]
+[source,shell]
....
# kgdb /boot/kernel/kernel /var/crash/vmcore.0
....
@@ -162,7 +162,7 @@ You can debug the crash dump using the kernel sources just like you can for any
This dump is from a 5.2-BETA kernel and the crash comes from deep within the kernel. The output below has been modified to include line numbers on the left. This first trace inspects the instruction pointer and obtains a back trace. The address that is used on line 41 for the `list` command is the instruction pointer and can be found on line 17. Most developers will request having at least this information sent to them if you are unable to debug the problem yourself. If, however, you do solve the problem, make sure that your patch winds its way into the source tree via a problem report, mailing lists, or by being able to commit it!
-[source,bash]
+[source,shell]
....
1:# cd /usr/obj/usr/src/sys/KERNCONF
2:# kgdb kernel.debug /var/crash/vmcore.0
@@ -286,7 +286,7 @@ Once your DDB kernel is running, there are several ways to enter DDB. The first,
The second scenario is to drop to the debugger once the system has booted. There are two simple ways to accomplish this. If you would like to break to the debugger from the command prompt, simply type the command:
-[source,bash]
+[source,shell]
....
# sysctl debug.kdb.enter=1
....
@@ -306,7 +306,7 @@ to the kernel configuration file and rebuild/reinstall.
The DDB commands roughly resemble some `gdb` commands. The first thing you probably need to do is to set a breakpoint:
-[source,bash]
+[source,shell]
....
break function-name address
....
@@ -315,14 +315,14 @@ Numbers are taken hexadecimal by default, but to make them distinct from symbol
To exit the debugger and continue execution, type:
-[source,bash]
+[source,shell]
....
continue
....
To get a stack trace of the current thread, use:
-[source,bash]
+[source,shell]
....
trace
....
@@ -331,7 +331,7 @@ To get a stack trace of an arbitrary thread, specify a process ID or thread ID a
If you want to remove a breakpoint, use
-[source,bash]
+[source,shell]
....
del
del address-expression
@@ -339,28 +339,28 @@ If you want to remove a breakpoint, use
The first form will be accepted immediately after a breakpoint hit, and deletes the current breakpoint. The second form can remove any breakpoint, but you need to specify the exact address; this can be obtained from:
-[source,bash]
+[source,shell]
....
show b
....
or:
-[source,bash]
+[source,shell]
....
show break
....
To single-step the kernel, try:
-[source,bash]
+[source,shell]
....
s
....
This will step into functions, but you can make DDB trace them until the matching return statement is reached by:
-[source,bash]
+[source,shell]
....
n
....
@@ -372,7 +372,7 @@ This is different from ``gdb``'s `next` statement; it is like ``gdb``'s `finish`
To examine data from memory, use (for example):
-[source,bash]
+[source,shell]
....
x/wx 0xf0133fe0,40
x/hd db_symtab_space
@@ -382,14 +382,14 @@ To examine data from memory, use (for example):
for word/halfword/byte access, and hexadecimal/decimal/character/ string display. The number after the comma is the object count. To display the next 0x10 items, simply use:
-[source,bash]
+[source,shell]
....
x ,10
....
Similarly, use
-[source,bash]
+[source,shell]
....
x/ia foofunc,10
....
@@ -398,7 +398,7 @@ to disassemble the first 0x10 instructions of `foofunc`, and display them along
To modify memory, use the write command:
-[source,bash]
+[source,shell]
....
w/b termbuf 0xa 0xb 0
w/w 0xf0010030 0 0
@@ -408,28 +408,28 @@ The command modifier (`b`/`h`/`w`) specifies the size of the data to be written,
If you need to know the current registers, use:
-[source,bash]
+[source,shell]
....
show reg
....
Alternatively, you can display a single register value by e.g.
-[source,bash]
+[source,shell]
....
p $eax
....
and modify it by:
-[source,bash]
+[source,shell]
....
set $eax new-value
....
Should you need to call some kernel functions from DDB, simply say:
-[source,bash]
+[source,shell]
....
call func(arg1, arg2, ...)
....
@@ -438,28 +438,28 @@ The return value will be printed.
For a man:ps[1] style summary of all running processes, use:
-[source,bash]
+[source,shell]
....
ps
....
Now you have examined why your kernel failed, and you wish to reboot. Remember that, depending on the severity of previous malfunctioning, not all parts of the kernel might still be working as expected. Perform one of the following actions to shut down and reboot your system:
-[source,bash]
+[source,shell]
....
panic
....
This will cause your kernel to dump core and reboot, so you can later analyze the core on a higher level with man:kgdb[1].
-[source,bash]
+[source,shell]
....
call boot(0)
....
Might be a good way to cleanly shut down the running system, `sync()` all disks, and finally, in some cases, reboot. As long as the disk and filesystem interfaces of the kernel are not damaged, this could be a good way for an almost clean shutdown.
-[source,bash]
+[source,shell]
....
reset
....
@@ -468,7 +468,7 @@ This is the final way out of disaster and almost the same as hitting the Big Red
If you need a short command summary, simply type:
-[source,bash]
+[source,shell]
....
help
....
@@ -484,7 +484,7 @@ GDB has already supported _remote debugging_ for a long time. This is done using
You should configure the kernel in question with `config -g` if building the "traditional" way. If building the "new" way, make sure that `makeoptions DEBUG=-g` is in the configuration. In both cases, include `DDB` in the configuration, and compile it as usual. This gives a large binary, due to the debugging information. Copy this kernel to the target machine, strip the debugging symbols off with `strip -x`, and boot it using the `-d` boot option. Connect the serial line of the target machine that has "flags 080" set on its uart device to any serial line of the debugging host. See man:uart[4] for information on how to set the flags on an uart device. Now, on the debugging machine, go to the compile directory of the target kernel, and start `gdb`:
-[source,bash]
+[source,shell]
....
% kgdb kernel
GDB is free software and you are welcome to distribute copies of it
@@ -497,14 +497,14 @@ Copyright 1996 Free Software Foundation, Inc...
Initialize the remote debugging session (assuming the first serial port is being used) by:
-[source,bash]
+[source,shell]
....
(kgdb) target remote /dev/cuau0
....
Now, on the target host (the one that entered DDB right before even starting the device probe), type:
-[source,bash]
+[source,shell]
....
Debugger("Boot flags requested debugger")
Stopped at Debugger+0x35: movb $0, edata+0x51bc
@@ -513,14 +513,14 @@ db> gdb
DDB will respond with:
-[source,bash]
+[source,shell]
....
Next trap will enter GDB remote protocol mode
....
Every time you type `gdb`, the mode will be toggled between remote GDB and local DDB. In order to force a next trap immediately, simply type `s` (step). Your hosting GDB will now gain control over the target kernel:
-[source,bash]
+[source,shell]
....
Remote debugging using /dev/cuau0
Debugger (msg=0xf01b0383 "Boot flags requested debugger")
@@ -584,7 +584,7 @@ To enable FireWire(R) and Dcons support in man:loader[8] on i386 or amd64:
Add `LOADER_FIREWIRE_SUPPORT=YES` in [.filename]#/etc/make.conf# and rebuild man:loader[8]:
-[source,bash]
+[source,shell]
....
# cd /sys/boot/i386 && make clean && make && make install
....
@@ -593,7 +593,7 @@ To enable man:dcons[4] as an active low-level console, add `boot_multicons="YES"
Here are a few configuration examples. A sample kernel configuration file would contain:
-[source,bash]
+[source,shell]
....
device dcons
device dcons_crom
@@ -605,7 +605,7 @@ options ALT_BREAK_TO_DEBUGGER
And a sample [.filename]#/boot/loader.conf# would contain:
-[source,bash]
+[source,shell]
....
dcons_crom_load="YES"
dcons_gdb=1
@@ -618,7 +618,7 @@ hw.firewire.dcons_crom.force_console=1
To enable FireWire(R) support in the kernel on the _host machine_:
-[source,bash]
+[source,shell]
....
# kldload firewire
....
@@ -627,7 +627,7 @@ Find out the EUI64 (the unique 64 bit identifier) of the FireWire(R) host contro
Run man:dconschat[8], with:
-[source,bash]
+[source,shell]
....
# dconschat -e \# -br -G 12345 -t 00-11-22-33-44-55-66-77
....
@@ -653,7 +653,7 @@ The following key combinations can be used once man:dconschat[8] is running:
Attach remote GDB by starting man:kgdb[1] with a remote debugging session:
-[source,bash]
+[source,shell]
....
kgdb -r :12345 kernel
....
@@ -664,7 +664,7 @@ Here are some general tips:
To take full advantage of the speed of FireWire(R), disable other slow console drivers:
-[source,bash]
+[source,shell]
....
# conscontrol delete ttyd0 # serial console
# conscontrol delete consolectl # video/keyboard
@@ -672,7 +672,7 @@ To take full advantage of the speed of FireWire(R), disable other slow console d
There exists a GDB mode for man:emacs[1]; this is what you will need to add to your [.filename]#.emacs#:
-[source,bash]
+[source,shell]
....
(setq gud-gdba-command-name "kgdb -a -a -a -r :12345")
(setq gdb-many-windows t)
@@ -682,7 +682,7 @@ M-x gdba
And for DDD ([.filename]#devel/ddd#):
-[source,bash]
+[source,shell]
....
# remote serial protocol
LANG=C ddd --debugger kgdb -r :12345 kernel
@@ -700,21 +700,21 @@ To use man:dcons[4] with KVM:
Dump a man:dcons[4] buffer of a live system:
-[source,bash]
+[source,shell]
....
# dconschat -1
....
Dump a man:dcons[4] buffer of a crash dump:
-[source,bash]
+[source,shell]
....
# dconschat -1 -M vmcore.XX
....
Live core debugging can be done via:
-[source,bash]
+[source,shell]
....
# fwcontrol -m target_eui64
# kgdb kernel /dev/fwmem0.2
diff --git a/documentation/content/zh-tw/books/developers-handbook/policies/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/policies/chapter.adoc
index 3510741151..3fa6638788 100644
--- a/documentation/content/zh-tw/books/developers-handbook/policies/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/policies/chapter.adoc
@@ -95,7 +95,7 @@ If this is your first import after the switch to SVN, you will have to flatten a
+
During the conversion from CVS to SVN, vendor branches were imported with the same layout as the main tree. For example, the foo vendor sources ended up in [.filename]#vendor/foo/dist/contrib/foo#, but it is pointless and rather inconvenient. What we really want is to have the vendor source directly in [.filename]#vendor/foo/dist#, like this:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/dist/contrib/foo
% svn move $(svn list) ../..
@@ -114,7 +114,7 @@ You may want to flatten the tags as well. The procedure is exactly the same. If
+
Check the [.filename]#dist# tree and perform any cleanup that is deemed to be necessary. You may want to disable keyword expansion, as it makes no sense on unmodified vendor code. In some cases, it can be even be harmful.
+
-[source,bash]
+[source,shell]
....
% svn propdel svn:keywords -R .
% svn commit
@@ -122,7 +122,7 @@ Check the [.filename]#dist# tree and perform any cleanup that is deemed to be ne
+
Bootstrapping of `svn:mergeinfo` on the target directory (in the main tree) to the revision that corresponds to the last change was made to the vendor tree prior to importing new sources is also needed:
+
-[source,bash]
+[source,shell]
....
% cd head/contrib/foo
% svn merge --record-only ^/vendor/foo/dist@12345678 .
@@ -136,7 +136,7 @@ Prepare a full, clean tree of the vendor sources. With SVN, we can keep a full d
+
Note that you will need to add any files that were added since the last vendor import, and remove any that were removed. To facilitate this, you should prepare sorted lists of the contents of the vendor tree and of the sources you are about to import:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/dist
% svn list -R | grep -v '/$' | sort > ../old
@@ -146,21 +146,21 @@ Note that you will need to add any files that were added since the last vendor i
+
With these two files, the following command will list removed files (files only in [.filename]#old#):
+
-[source,bash]
+[source,shell]
....
% comm -23 ../old ../new
....
+
While the command below will list added files (files only in [.filename]#new#):
+
-[source,bash]
+[source,shell]
....
% comm -13 ../old ../new
....
+
Let us put this together:
+
-[source,bash]
+[source,shell]
....
% cd vendor/foo/foo-9.9
% tar cf - . | tar xf - -C ../dist
@@ -188,7 +188,7 @@ You are ready to commit, but you should first check the output of `svn stat` and
+
Once you have committed the new vendor release, you should tag it for future reference. The best and quickest way is to do it directly in the repository:
+
-[source,bash]
+[source,shell]
....
% svn copy ^/vendor/foo/dist svn_base/vendor/foo/9.9
....
@@ -204,7 +204,7 @@ If you choose to do the copy in the checkout instead, do not forget to remove th
+
After you have prepared your import, it is time to merge. Option `--accept=postpone` tells SVN not to handle merge conflicts yet, because they will be taken care of manually:
+
-[source,bash]
+[source,shell]
....
% cd head/contrib/foo
% svn update
@@ -213,7 +213,7 @@ After you have prepared your import, it is time to merge. Option `--accept=postp
+
Resolve any conflicts, and make sure that any files that were added or removed in the vendor tree have been properly added or removed in the main tree. It is always a good idea to check differences against the vendor branch:
+
-[source,bash]
+[source,shell]
....
% svn diff --no-diff-deleted --old=^/vendor/foo/dist --new=.
....
diff --git a/documentation/content/zh-tw/books/developers-handbook/sockets/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/sockets/chapter.adoc
index 97edb64caa..80e6284948 100644
--- a/documentation/content/zh-tw/books/developers-handbook/sockets/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/sockets/chapter.adoc
@@ -454,7 +454,7 @@ int main() {
Go ahead, enter it in your editor, save it as [.filename]#daytime.c#, then compile and run it:
-[source,bash]
+[source,shell]
....
% cc -O3 -o daytime daytime.c
% ./daytime
@@ -669,7 +669,7 @@ Not all protocols are that simple. Many receive a request from the client, reply
Now, go ahead, save the above source code as [.filename]#daytimed.c# (it is customary to end the names of daemons with the letter `d`). After you have compiled it, try running it:
-[source,bash]
+[source,shell]
....
% ./daytimed
bind: Permission denied
@@ -680,7 +680,7 @@ What happened here? As you will recall, the _daytime_ protocol uses port 13. But
Try again, this time as the superuser:
-[source,bash]
+[source,shell]
....
# ./daytimed
#
@@ -688,7 +688,7 @@ Try again, this time as the superuser:
What... Nothing? Let us try again:
-[source,bash]
+[source,shell]
....
# ./daytimed
@@ -700,7 +700,7 @@ Every port can only be bound by one program at a time. Our first attempt was ind
Fine, we know it is running in the background. But is it working? How do we know it is a proper _daytime_ server? Simple:
-[source,bash]
+[source,shell]
....
% telnet localhost 13
@@ -718,7 +718,7 @@ telnet tried the new IPv6, and failed. It retried with IPv4 and succeeded. The d
If you have access to another UNIX(R) system via telnet, you can use it to test accessing the server remotely. My computer does not have a static IP address, so this is what I did:
-[source,bash]
+[source,shell]
....
% who
@@ -736,7 +736,7 @@ Connection closed by foreign host.
Again, it worked. Will it work using the domain name?
-[source,bash]
+[source,shell]
....
% telnet r47.bfm.org 13
@@ -829,7 +829,7 @@ We now can type a domain name (or an IP address, it works both ways) on the comm
Since it takes virtually no time to get the time from your local server, you could run daytime twice in a row: First to get the time from `time.nist.gov`, the second time from your own system. You can then compare the results and see how exact your system clock is:
-[source,bash]
+[source,shell]
....
% daytime ; daytime localhost
diff --git a/documentation/content/zh-tw/books/developers-handbook/tools/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/tools/chapter.adoc
index 090737919e..ba8dcd4f44 100644
--- a/documentation/content/zh-tw/books/developers-handbook/tools/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/tools/chapter.adoc
@@ -153,14 +153,14 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
幸運的是,你可以不用理會以上細節,編譯器都會自動完成。 因為 `cc` 只是是個前端程式(front end),它會依照正確的參數來呼叫相關程式幫你處理。 只需打:
-[source,bash]
+[source,shell]
....
% cc foobar.c
....
上述指令會把 [.filename]#foobar.c# 開始編譯,並完成上述動作。 如果你有許多檔案需要編譯,那請打類似下列指令即可:
-[source,bash]
+[source,shell]
....
% cc foo.c bar.c
....
@@ -172,7 +172,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
`-o _檔名_`::
`-o` 編譯後的執行檔檔名,如果沒有使用這選項的話, 編譯好的程式預設檔名將會是 [.filename]#a.out#
+
-[source,bash]
+[source,shell]
....
% cc foobar.c 執行檔就是 a.out
% cc -o foobar foobar.c 執行檔就是 foobar
@@ -181,7 +181,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
`-c`::
使用 `-c` 時,只會編譯原始碼,而不作連結(linking)。 當只想確認語法是否正確或使用 Makefile 來編譯程式時,這個選項非常有用。
+
-[source,bash]
+[source,shell]
....
% cc -c foobar.c
....
@@ -191,7 +191,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
`-g`::
`-g` 將會把一些給 gdb 用的除錯訊息包進去執行檔裡面,所謂的除錯訊息例如: 程式在第幾行出錯、那個程式第幾行做什麼函式呼叫等等。除錯資訊__非常__好用。 但缺點就是:對於程式來說,額外的除錯訊息會讓編譯出來的程式比較肥些。 `-g` 的適用時機在於:當程式還在開發時使用就好, 而當你要釋出你的 "發行版本(release version)" 或者確認程式可運作正常的話,就不必用 `-g` 這選項了。
+
-[source,bash]
+[source,shell]
....
% cc -g foobar.c
....
@@ -203,7 +203,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
+
只有當要釋出發行版本、或者加速程式時,才需要使用最佳化選項。
+
-[source,bash]
+[source,shell]
....
% cc -O -o foobar foobar.c
....
@@ -225,7 +225,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
一般來說,在撰寫程式時就應要注意『移植性』。 否則。當想把程式拿到另外一台機器上跑的時候,就可能得需要重寫程式。
-[source,bash]
+[source,shell]
....
% cc -Wall -ansi -pedantic -o foobar foobar.c
....
@@ -239,7 +239,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
+
規則很簡單,如果有個函式庫叫做 [.filename]#libsomething.a#, 就必須在編譯時加上參數 `-l _something_` 才行。 舉例來說,數學函式庫叫做 [.filename]#libm.a#, 所以你必須給 `cc` 的參數就是 `-lm`。 一般情況下,通常會把這參數必須放在指令的最後。
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c -lm
....
@@ -248,7 +248,7 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
+
如果你正在編譯的程式是 C++ 程式碼,你還必須額外指定 {lg-plus-plus} 或者是 {lstdc-plus-plus}。 如果你的 FreeBSD 是 2.2(含)以後版本, 你可以用指令 {c-plus-plus-command} 來取代 `cc`。 在 FreeBSD 上 {c-plus-plus-command} 也可以用 {g-plus-plus-command} 取代。
+
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.cc -lg++ 適用 FreeBSD 2.1.6 或更早期的版本
% cc -o foobar foobar.cc -lstdc++ 適用 FreeBSD 2.2 及之後的版本
@@ -261,14 +261,14 @@ Tcl 許多的版本都可在 上運作,而最新的 Tcl 版本為 Tcl 8.4, P
==== 我用 sin() 函示撰寫我的程式, 但是有個錯誤訊息(如下),這代表著?
-[source,bash]
+[source,shell]
....
/var/tmp/cc0143941.o: Undefined symbol `_sin' referenced from text segment
....
當使用 `sin()` 這類的數學函示時, 你必須告訴 cc 要和數學函式庫作連結(linking),就像這樣:
-[source,bash]
+[source,shell]
....
% cc temp.c -lm
....
@@ -296,14 +296,14 @@ int main() {
編譯後執行程式,得到下面這結果:
-[source,bash]
+[source,shell]
....
% cc temp.c -lm
....
加了上述內容之後,再重新編譯,最後執行:
-[source,bash]
+[source,shell]
....
% ./a.out
2.1 ^ 6 = 85.766121
@@ -315,7 +315,7 @@ int main() {
記得,除非有指定編譯結果的執行檔檔名,否則預設的執行檔檔名是 a.out。 用 `-o _filename_` 參數, 就可以達到所想要的結果,比如:
-[source,bash]
+[source,shell]
....
% cc -o foobar foobar.c
....
@@ -324,7 +324,7 @@ int main() {
與 不同的是,除非有指定執行檔的路徑, 否則 系統並不會在目前的目錄下尋找你想執行的檔案。 在指令列下打 `./foobar` 代表 "執行在這個目錄底下名為 [.filename]#foobar# 的程式", 或者也可以更改 `PATH` 環境變數設定如下,以達成類似效果:
-[source,bash]
+[source,shell]
....
bin:/usr/bin:/usr/local/bin:.
....
@@ -335,7 +335,7 @@ bin:/usr/bin:/usr/local/bin:.
大多數的 系統都會在路徑 [.filename]#/usr/bin# 擺放執行檔。 除非有指定使用在目前目錄內的 [.filename]#test#,否則 shell 會優先選擇位在 [.filename]#/usr/bin# 的 [.filename]#test#, 要指定檔名的話,作法類似:
-[source,bash]
+[source,shell]
....
% ./test
....
@@ -417,14 +417,14 @@ No, fortunately not (unless of course you really do have a hardware problem...).
Yes, just go to another console or xterm, do
-[source,bash]
+[source,shell]
....
% ps
....
to find out the process ID of your program, and do
-[source,bash]
+[source,shell]
....
% kill -ABRT pid
....
@@ -444,7 +444,7 @@ If you want to create a core dump from outside your program, but do not want the
When you are working on a simple program with only one or two source files, typing in
-[source,bash]
+[source,shell]
....
% cc file1.c file2.c
....
@@ -453,7 +453,7 @@ is not too bad, but it quickly becomes very tedious when there are several files
One way to get around this is to use object files and only recompile the source file if the source code has changed. So we could have something like:
-[source,bash]
+[source,shell]
....
% cc file1.o file2.o … file37.c …
....
@@ -501,7 +501,7 @@ install:
We can tell make which target we want to make by typing:
-[source,bash]
+[source,shell]
....
% make target
....
@@ -591,7 +591,7 @@ If you want to have a look at these system makefiles, they are in [.filename]#/u
The version of make that comes with FreeBSD is the Berkeley make; there is a tutorial for it in [.filename]#/usr/shared/doc/psd/12.make#. To view it, do
-[source,bash]
+[source,shell]
....
% zmore paper.ascii.gz
....
@@ -635,7 +635,7 @@ Which one to use is largely a matter of taste. If familiar with one only, use th
Start up lldb by typing
-[source,bash]
+[source,shell]
....
% lldb -- progname
....
@@ -644,7 +644,7 @@ Start up lldb by typing
Compile the program with `-g` to get the most out of using `lldb`. It will work without, but will only display the name of the function currently running, instead of the source code. If it displays a line like:
-[source,bash]
+[source,shell]
....
Breakpoint 1: where = temp`main, address = …
....
@@ -687,7 +687,7 @@ This program sets i to be `5` and passes it to a function `bazz()` which prints
Compiling and running the program displays
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -697,7 +697,7 @@ anint = -5360
That is not what was expected! Time to see what is going on!
-[source,bash]
+[source,shell]
....
% lldb -- temp
(lldb) target create "temp"
@@ -745,7 +745,7 @@ Process 9992 stopped
Hang on a minute! How did anint get to be `-5360`? Was it not set to `5` in `main()`? Let us move up to `main()` and have a look.
-[source,bash]
+[source,shell]
....
(lldb) up Move up call stack
frame #1: 0x000000000020130b temp`main at temp.c:9:2 lldb displays stack frame
@@ -788,7 +788,7 @@ To examine a core file, specify the name of the core file in addition to the pro
The debugger will display something like this:
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
% lldb -c [.filename]#progname.core# -- [.filename]#progname#
(lldb) target create "[.filename]#progname#" --core "[.filename]#progname#.core"
@@ -798,7 +798,7 @@ Core file '/home/pauamma/tmp/[.filename]#progname.core#' (x86_64) was loaded.
In this case, the program was called [.filename]#progname#, so the core file is called [.filename]#progname.core#. The debugger does not display why the program crashed or where. For this, use `thread backtrace all`. This will also show how the function where the program dumped core was called.
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
(lldb) thread backtrace all
* thread #1, name = 'progname', stop reason = signal SIGSEGV
@@ -816,7 +816,7 @@ One of the neatest features about `lldb` is that it can attach to a program that
To do that, start up another `lldb`, use `ps` to find the process ID for the child, and do
-[source,bash]
+[source,shell]
....
(lldb) process attach -p pid
....
@@ -848,14 +848,14 @@ Now all that is needed is to attach to the child, set PauseMode to `0` with `exp
Start up gdb by typing
-[source,bash]
+[source,shell]
....
% gdb progname
....
although many people prefer to run it inside Emacs. To do this, type:
-[source,bash]
+[source,shell]
....
M-x gdb RET progname RET
....
@@ -866,7 +866,7 @@ Finally, for those finding its text-based command-prompt style off-putting, ther
Compile the program with `-g` to get the most out of using `gdb`. It will work without, but will only display the name of the function currently running, instead of the source code. A line like:
-[source,bash]
+[source,shell]
....
... (no debugging symbols found) ...
....
@@ -903,7 +903,7 @@ This program sets i to be `5` and passes it to a function `bazz()` which prints
Compiling and running the program displays
-[source,bash]
+[source,shell]
....
% cc -g -o temp temp.c
% ./temp
@@ -913,7 +913,7 @@ anint = 4231
That was not what we expected! Time to see what is going on!
-[source,bash]
+[source,shell]
....
% gdb temp
GDB is free software and you are welcome to distribute copies of it
@@ -935,7 +935,7 @@ bazz (anint=4231) at temp.c:17 gdb displays stack frame
Hang on a minute! How did anint get to be `4231`? Was it not set to `5` in `main()`? Let us move up to `main()` and have a look.
-[source,bash]
+[source,shell]
....
(gdb) up Move up call stack
#1 0x1625 in main () at temp.c:11 gdb displays stack frame
@@ -969,7 +969,7 @@ A core file is basically a file which contains the complete state of the process
To examine a core file, start up `gdb` in the usual way. Instead of typing `break` or `run`, type
-[source,bash]
+[source,shell]
....
(gdb) core progname.core
....
@@ -978,7 +978,7 @@ If the core file is not in the current directory, type `dir /path/to/core/file`
The debugger should display something like this:
-[source,bash,subs="verbatim,quotes"]
+[source,shell,subs="verbatim,quotes"]
....
% gdb [.filename]#progname#
GDB is free software and you are welcome to distribute copies of it
@@ -997,7 +997,7 @@ In this case, the program was called [.filename]#progname#, so the core file is
Sometimes it is useful to be able to see how a function was called, as the problem could have occurred a long way up the call stack in a complex program. `bt` causes `gdb` to print out a back-trace of the call stack:
-[source,bash]
+[source,shell]
....
(gdb) bt
#0 0x164a in bazz (anint=0x5) at temp.c:17
@@ -1014,7 +1014,7 @@ One of the neatest features about `gdb` is that it can attach to a program that
To do that, start up another `gdb`, use `ps` to find the process ID for the child, and do
-[source,bash]
+[source,shell]
....
(gdb) attach pid
....
@@ -1097,7 +1097,7 @@ Unfortunately, there is far too much here to explain it in detail; however there
* Emacs already has a pre-defined function called `next-error`. In a compilation output window, this allows you to move from one compilation error to the next by doing `M-n`; we define a complementary function, `previous-error`, that allows you to go to a previous error by doing `M-p`. The nicest feature of all is that `C-c C-c` will open up the source file in which the error occurred and jump to the appropriate line.
* We enable Emacs's ability to act as a server, so that if you are doing something outside Emacs and you want to edit a file, you can just type in
+
-[source,bash]
+[source,shell]
....
% emacsclient filename
....
@@ -1400,7 +1400,7 @@ Now, this is all very well if you only want to program in the languages already
The first thing to do is find out if whizbang comes with any files that tell Emacs about the language. These usually end in [.filename]#.el#, short for "Emacs Lisp". For example, if whizbang is a FreeBSD port, we can locate these files by doing
-[source,bash]
+[source,shell]
....
% find /usr/ports/lang/whizbang -name "*.el" -print
....
@@ -1409,14 +1409,14 @@ and install them by copying them into the Emacs site Lisp directory. On FreeBSD,
So for example, if the output from the find command was
-[source,bash]
+[source,shell]
....
/usr/ports/lang/whizbang/work/misc/whizbang.el
....
we would do
-[source,bash]
+[source,shell]
....
# cp /usr/ports/lang/whizbang/work/misc/whizbang.el /usr/local/shared/emacs/site-lisp
....
diff --git a/documentation/content/zh-tw/books/developers-handbook/x86/chapter.adoc b/documentation/content/zh-tw/books/developers-handbook/x86/chapter.adoc
index ceb9af91de..876f940252 100644
--- a/documentation/content/zh-tw/books/developers-handbook/x86/chapter.adoc
+++ b/documentation/content/zh-tw/books/developers-handbook/x86/chapter.adoc
@@ -139,7 +139,7 @@ This convention has a great disadvantage over the UNIX(R) way, at least as far a
If you do choose the Linux convention, you must let the system know about it. After your program is assembled and linked, you need to brand the executable:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux filename
....
@@ -505,7 +505,7 @@ Type the code (except the line numbers) in an editor, and save it in a file name
If you do not have nasm, type:
-[source,bash]
+[source,shell]
....
% su
Password:your root password
@@ -526,7 +526,7 @@ If your system is not FreeBSD, you need to get nasm from its https://sourceforge
Now you can assemble, link, and run the code:
-[source,bash]
+[source,shell]
....
% nasm -f elf hello.asm
% ld -s -o hello hello.o
@@ -604,7 +604,7 @@ Once there is no more input left, we ask the system to exit our program, returni
Go ahead, and save the code in a file named [.filename]#hex.asm#, then type the following (the `^D` means press the control key and type `D` while holding the control key down):
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -679,7 +679,7 @@ That means we only need to set `CL` once. We have, therefore, added a new label
Once you have changed [.filename]#hex.asm# to reflect these changes, type:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -807,7 +807,7 @@ We use `EDI` and `ESI` as pointers to the next byte to be read from or written t
Let us see how it works now:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -923,7 +923,7 @@ write:
Now, let us see how it works:
-[source,bash]
+[source,shell]
....
% nasm -f elf hex.asm
% ld -s -o hex hex.o
@@ -1461,7 +1461,7 @@ This code produces a 1,396-byte executable. Most of it is data, i.e., the HTML m
Assemble and link it as usual:
-[source,bash]
+[source,shell]
....
% nasm -f elf webvars.asm
% ld -s -o webvars webvars.o
@@ -1482,7 +1482,7 @@ One of the first programs I wrote for UNIX(R) was link:ftp://ftp.int80h.org/unix
I have used tuc extensively, but always only to convert from some other OS to UNIX(R), never the other way. I have always wished it would just overwrite the file instead of me having to send the output to a different file. Most of the time, I end up using it like this:
-[source,bash]
+[source,shell]
....
% tuc myfile tempfile
% mv tempfile myfile
@@ -1490,7 +1490,7 @@ I have used tuc extensively, but always only to convert from some other OS to UN
It would be nice to have a ftuc, i.e., _fast tuc_, and use it like this:
-[source,bash]
+[source,shell]
....
% ftuc myfile
....
@@ -2038,7 +2038,7 @@ This time I decided to let it do a little more work than a typical tutorial prog
Here is its usage message:
-[source,bash]
+[source,shell]
....
Usage: csv [-t<delim>] [-c<comma>] [-p] [-o <outfile>] [-i <infile>]
....
@@ -2057,7 +2057,7 @@ I made sure that both `-i filename` and `-ifilename` are accepted. I also made s
To get the 11th field of each record, I can now do:
-[source,bash]
+[source,shell]
....
% csv '-t;' data.csv | awk '-F;' '{print $11}'
....
@@ -2561,7 +2561,7 @@ But our pinhole program cannot just work with individual characters, it has to d
For example, if we want the program to calculate the pinhole diameter (and other values we will discuss later) at the focal lengths of `100 mm`, `150 mm`, and `210 mm`, we may want to enter something like this:
-[source,bash]
+[source,shell]
....
100, 150, 210
....
@@ -2576,7 +2576,7 @@ Personally, I like to keep it simple. Something either is a number, so I process
Plus, it allows me to break up the monotony of computing and type in a query instead of just a number:
-[source,bash]
+[source,shell]
....
What is the best pinhole diameter for the
focal length of 150?
@@ -2584,7 +2584,7 @@ What is the best pinhole diameter for the
There is no reason for the computer to spit out a number of complaints:
-[source,bash]
+[source,shell]
....
Syntax error: What
Syntax error: is
@@ -2675,7 +2675,7 @@ So, it makes perfect sense to start each line with the focal length as entered b
No, wait! Not as entered by the user. What if the user types in something like this:
-[source,bash]
+[source,shell]
....
00000000150
....
@@ -2688,7 +2688,7 @@ But...
What if the user types something like this:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423
....
@@ -2705,7 +2705,7 @@ What will we do?
We will slap him in the face, in a manner of speaking:
-[source,bash]
+[source,shell]
....
17459765723452353453534535353530530534563507309676764423 ??? ??? ??? ??? ???
....
@@ -2730,7 +2730,7 @@ That still leaves one possibility uncovered: If all the user enters is a zero (o
We can determine this has happened whenever our counter stays at `0`. In that case we need to send `0` to the output, and perform another "slap in the face":
-[source,bash]
+[source,shell]
....
0 ??? ??? ??? ??? ???
....
@@ -3657,7 +3657,7 @@ Suppose we want to build a pinhole camera to use the 4x5 inch film. The standard
Our session might look like this:
-[source,bash]
+[source,shell]
....
% pinhole
@@ -3726,7 +3726,7 @@ Because 120 is a medium size film, we may name this file medium.
We can set its permissions to execute, and run it as if it were a program:
-[source,bash]
+[source,shell]
....
% chmod 755 medium
% ./medium
@@ -3734,14 +3734,14 @@ We can set its permissions to execute, and run it as if it were a program:
UNIX(R) will interpret that last command as:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium
....
It will run that command and display:
-[source,bash]
+[source,shell]
....
80 358 224 256 1562 11
30 219 137 128 586 9
@@ -3756,21 +3756,21 @@ It will run that command and display:
Now, let us enter:
-[source,bash]
+[source,shell]
....
% ./medium -c
....
UNIX(R) will treat that as:
-[source,bash]
+[source,shell]
....
% /usr/local/bin/pinhole -b -i ./medium -c
....
That gives it two conflicting options: `-b` and `-c` (Use Bender's constant and use Connors' constant). We have programmed it so later options override early ones-our program will calculate everything using Connors' constant:
-[source,bash]
+[source,shell]
....
80 331 242 256 1826 11
30 203 148 128 685 9
@@ -3785,7 +3785,7 @@ That gives it two conflicting options: `-b` and `-c` (Use Bender's constant and
We decide we want to go with Bender's constant after all. We want to save its values as a comma-separated file:
-[source,bash]
+[source,shell]
....
% ./medium -b -e > bender
% cat bender
@@ -3829,7 +3829,7 @@ There is a major difference in the philosophy of design between MS-DOS(R) and UN
This is NEVER guaranteed under UNIX(R). It is quite common for a UNIX(R) user to pipe and redirect program input and output:
-[source,bash]
+[source,shell]
....
% program1 | program2 | program3 > file1
....
diff --git a/documentation/content/zh-tw/books/faq/_index.adoc b/documentation/content/zh-tw/books/faq/_index.adoc
index 2ea77f8d1b..59b4a7d274 100644
--- a/documentation/content/zh-tw/books/faq/_index.adoc
+++ b/documentation/content/zh-tw/books/faq/_index.adoc
@@ -336,7 +336,7 @@ FreeBSD 文件計畫已陸續發表了相當廣泛範圍的文件,可在 https
舉例來說,透過 man:bzip2[1] 壓縮的英文問與答的章節分割 HTML 版本,可以在 [.filename]#doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2# 中找到。若要下載並解壓縮這個檔案,請輸入
-[source,bash]
+[source,shell]
....
# fetch https://download.freebsd.org/ftp/doc/en_US.ISO8859-1/books/faq/book.html-split.tar.bz2
# tar xvf book.html-split.tar.bz2
@@ -436,14 +436,14 @@ FreeBSD 需要 486 以上的 PC,64 MB 以上的 RAM,和至少 1.1 GB 的硬
This depends upon the boot manager. The FreeBSD boot selection menu can be reinstalled using man:boot0cfg[8]. For example, to restore the boot menu onto the disk _ada0_:
-[source,bash]
+[source,shell]
....
# boot0cfg -B ada0
....
The non-interactive MBR bootloader can be installed using man:gpart[8]:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr ada0
....
@@ -576,7 +576,7 @@ FreeBSD also supports any SCSI CD-R or CD-RW drives. Install the package:sysutil
The default console driver, man:syscons[4], provides the ability to use a mouse pointer in text consoles to cut & paste text. Run the mouse daemon, man:moused[8], and turn on the mouse pointer in the virtual console:
-[source,bash]
+[source,shell]
....
# moused -p /dev/xxxx -t yyyy
# vidcontrol -m on
@@ -627,7 +627,7 @@ For more information, see http://www.ibb.net/~anne/keyboard.html[this page].
Some sound cards set their output volume to 0 at every boot. Run the following command every time the machine boots:
-[source,bash]
+[source,shell]
....
# mixer pcm 100 vol 100 cd 100
....
@@ -729,7 +729,7 @@ The computer has two or more clocks, and FreeBSD has chosen to use the wrong one
Run man:dmesg[8], and check for lines that contain `Timecounter`. The one with the highest quality value that FreeBSD chose.
-[source,bash]
+[source,shell]
....
# dmesg | grep Timecounter
Timecounter "i8254" frequency 1193182 Hz quality 0
@@ -740,7 +740,7 @@ Timecounters tick every 1.000 msec
Confirm this by checking the `kern.timecounter.hardware` man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware
kern.timecounter.hardware: ACPI-fast
@@ -757,7 +757,7 @@ Or the BIOS may modify the TSC clock--perhaps to change the speed of the process
In this example, the `i8254` clock is also available, and can be selected by writing its name to the `kern.timecounter.hardware` man:sysctl[3].
-[source,bash]
+[source,shell]
....
# sysctl kern.timecounter.hardware=i8254
kern.timecounter.hardware: TSC -> i8254
@@ -862,7 +862,7 @@ The existing implementation is our best effort at meeting as many of these requi
To create audio CDs from MIDI files, first install package:audio/timidity[] from ports then install manually the GUS patches set by Eric A. Welsh, available at http://alleg.sourceforge.net/digmid.html[http://alleg.sourceforge.net/digmid.html]. After TiMidity++ has been installed properly, MIDI files may be converted to WAV files with the following command line:
-[source,bash]
+[source,shell]
....
% timidity -Ow -s 44100 -o /tmp/juke/01.wav 01.mid
....
@@ -936,7 +936,7 @@ There are a number of possible causes for this problem:
The name of the scheduler currently being used is directly available as the value of the `kern.sched.name` sysctl:
-[source,bash]
+[source,shell]
....
% sysctl kern.sched.name
kern.sched.name: ULE
@@ -972,7 +972,7 @@ When the disks are formatted with UFS, never use anything but man:dump[8] and ma
For example, to move [.filename]#/dev/ada1s1a# with [.filename]#/mnt# as the temporary mount point, type:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -982,7 +982,7 @@ For example, to move [.filename]#/dev/ada1s1a# with [.filename]#/mnt# as the tem
Rearranging partitions with `dump` takes a bit more work. To merge a partition like [.filename]#/var# into its parent, create the new partition large enough for both, move the parent partition as described above, then move the child partition into the empty directory that the first move created:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# mount /dev/ada1s1a /mnt
@@ -994,7 +994,7 @@ Rearranging partitions with `dump` takes a bit more work. To merge a partition l
To split a directory from its parent, say putting [.filename]#/var# on its own partition when it was not before, create both partitions, then mount the child partition on the appropriate directory in the temporary mount point, then move the old single partition:
-[source,bash]
+[source,shell]
....
# newfs /dev/ada1s1a
# newfs /dev/ada1s1d
@@ -1050,7 +1050,7 @@ FreeBSD includes the Network File System NFS and the FreeBSD Ports Collection pr
The secondary DOS partitions are found after _all_ the primary partitions. For example, if `E` is the second DOS partition on the second SCSI drive, there will be a device file for "slice 5" in [.filename]#/dev#. To mount it:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da1s5 /dos/e
....
@@ -1086,14 +1086,14 @@ This cannot be accomplished with the standard boot manager without rewriting it.
If the drive already has a file system on it, use a command like this:
-[source,bash]
+[source,shell]
....
# mount -t msdosfs /dev/da0s1 /mnt
....
If the drive will only be used with FreeBSD systems, partition it with UFS or ZFS. This will provide long filename support, improvement in performance, and stability. If the drive will be used by other operating systems, a more portable choice, such as msdosfs, is better.
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/da0 count=2
# gpart create -s GPT /dev/da0
@@ -1102,14 +1102,14 @@ If the drive will only be used with FreeBSD systems, partition it with UFS or ZF
Finally, create a new file system:
-[source,bash]
+[source,shell]
....
# newfs /dev/da0p1
....
and mount it:
-[source,bash]
+[source,shell]
....
# mount /dev/da0s1 /mnt
....
@@ -1153,7 +1153,7 @@ By default, man:mount[8] will attempt to mount the last data track (session) of
As `root` set the sysctl variable `vfs.usermount` to `1`.
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
....
@@ -1173,7 +1173,7 @@ For example, to allow users to mount the first USB drive add:
All users can now mount devices they could read onto a directory that they own:
-[source,bash]
+[source,shell]
....
% mkdir ~/my-mount-point
% mount -t msdosfs /dev/da0 ~/my-mount-point
@@ -1181,7 +1181,7 @@ All users can now mount devices they could read onto a directory that they own:
Unmounting the device is simple:
-[source,bash]
+[source,shell]
....
% umount ~/my-mount-point
....
@@ -1251,7 +1251,7 @@ L2ARC 需要 ARC 的空間來為其製作索引,因此,有一種反常的情
這很有可能是該 pool 的空間使用率已達 100% 滿了,因 ZFS 需要儲存空間以將紀錄交易處理的輔助資料 (metadata) 寫入,為了讓該 pool 回復至可用狀態,必須用檔案切除的方法 (truncate 命令) 刪除不重要的檔案:
-[source,bash]
+[source,shell]
....
% truncate -s 0 unimportant-file
....
@@ -1287,7 +1287,7 @@ The primary configuration file is [.filename]#/etc/defaults/rc.conf# which is de
For example, if to start man:named[8], the included DNS server:
-[source,bash]
+[source,shell]
....
# echo 'named_enable="YES"' >> /etc/rc.conf
....
@@ -1306,7 +1306,7 @@ This is normally caused by editing the system crontab. This is not the correct w
To delete the extra, incorrect crontab:
-[source,bash]
+[source,shell]
....
# crontab -r
....
@@ -1317,7 +1317,7 @@ This is a security feature. In order to `su` to `root`, or any other account wit
To allow someone to `su` to `root`, put them in the `wheel` group using `pw`:
-[source,bash]
+[source,shell]
....
# pw groupmod wheel -m lisa
....
@@ -1412,7 +1412,7 @@ options SC_DISABLE_REBOOT
This can also be done by setting the following man:sysctl[8] which does not require a reboot or kernel recompile:
-[source,bash]
+[source,shell]
....
# sysctl hw.syscons.kbd_reboot=0
....
@@ -1426,7 +1426,7 @@ The above two methods are exclusive: The man:sysctl[8] does not exist if the ker
Use this man:perl[1] command:
-[source,bash]
+[source,shell]
....
% perl -i.bak -npe 's/\r\n/\n/g' file(s)
....
@@ -1435,7 +1435,7 @@ where _file(s)_ is one or more files to process. The modification is done in-pla
Alternatively, use man:tr[1]:
-[source,bash]
+[source,shell]
....
% tr -d '\r' < dos-text-file > unix-file
....
@@ -1448,7 +1448,7 @@ Yet another way to reformat DOS text files is to use the package:converters/dosu
Go into single-user mode and then back to multi-user mode:
-[source,bash]
+[source,shell]
....
# shutdown now
# return
@@ -1471,7 +1471,7 @@ Short answer: the security level is greater than 0. Reboot directly to single-us
Long answer: FreeBSD disallows changing system flags at security levels greater than 0. To check the current security level:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1484,7 +1484,7 @@ Short answer: the system is at a security level greater than 1. Reboot directly
Long answer: FreeBSD disallows changing the time by more that one second at security levels greater than 1. To check the security level:
-[source,bash]
+[source,shell]
....
# sysctl kern.securelevel
....
@@ -1529,7 +1529,7 @@ There are a couple of kinds of "free memory". One kind is the amount of memory i
To see what man:newsyslog[8] will do, use the following:
-[source,bash]
+[source,shell]
....
% newsyslog -nrvv
....
@@ -1556,7 +1556,7 @@ Use package:x11/xorg-minimal[], which builds and installs only the necessary Xor
Install Xorg from FreeBSD packages:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
@@ -1601,7 +1601,7 @@ link sysmouse mouse
This link can be created by restarting man:devfs[5] with the following command (as `root`):
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -1669,7 +1669,7 @@ For security reasons, the default setting is to not allow a machine to remotely
To enable this feature, start X with the optional `-listen_tcp` argument:
-[source,bash]
+[source,shell]
....
% startx -listen_tcp
....
@@ -1784,7 +1784,7 @@ Assuming all Windows keyboards are standard, the keycodes for these three keys a
To have the left kbd:[Windows] key print a comma, try this.
-[source,bash]
+[source,shell]
....
# xmodmap -e "keycode 115 = comma"
....
@@ -1864,14 +1864,14 @@ Yes. For instructions on how to use NAT over a PPP connection, see the link:{han
If the alias is on the same subnet as an address already configured on the interface, add `netmask 0xffffffff` to this command:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 192.0.2.2 netmask 0xffffffff
....
Otherwise, specify the network address and netmask as usual:
-[source,bash]
+[source,shell]
....
# ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00
....
@@ -1882,7 +1882,7 @@ More information can be found in the FreeBSD link:{handbook}#configtuning-virtua
Some versions of the Linux(TM) NFS code only accept mount requests from a privileged port; try to issue the following command:
-[source,bash]
+[source,shell]
....
# mount -o -P linuxbox:/blah /mnt
....
@@ -1905,7 +1905,7 @@ If the kernel is compiled with the `IPFIREWALL` option, be aware that the defaul
If the firewall is unintentionally misconfigured, restore network operability by typing the following as `root`:
-[source,bash]
+[source,shell]
....
# ipfw add 65534 allow all from any to any
....
@@ -1918,7 +1918,7 @@ For further information on configuring this firewall, see the link:{handbook}#fi
Possibly because network address translation (NAT) is needed instead of just forwarding packets. A "fwd" rule only forwards packets, it does not actually change the data inside the packet. Consider this rule:
-[source,bash]
+[source,shell]
....
01000 fwd 10.0.0.1 from any to foo 21
....
@@ -1964,14 +1964,14 @@ This kernel message indicates that some activity is provoking it to send a large
The first number in the message indicates how many packets the kernel would have sent if the limit was not in place, and the second indicates the limit. This limit is controlled using `net.inet.icmp.icmplim`. This example sets the limit to `300` packets per second:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim=300
....
To disable these messages without disabling response limiting, use `net.inet.icmp.icmplim_output` to disable the output:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.icmp.icmplim_output=0
....
@@ -1990,7 +1990,7 @@ Because a packet is coming from outside the network unexpectedly. To disable the
Configure your kernel with these settings:
-[source,bash]
+[source,shell]
....
include GENERIC
ident GENERIC-IPV6ONLY
@@ -2037,7 +2037,7 @@ A UNIX(TM) process is owned by a particular userid. If the user ID is not the `r
To check the status of the securelevel on a running system:
-[source,bash]
+[source,shell]
....
# sysctl -n kern.securelevel
....
@@ -2218,7 +2218,7 @@ If the ISP is helpful, they should be able to enable logging on their end, then
In this case, rebuild man:ppp[8] with debugging information, and then use man:gdb[1] to grab a stack trace from the ppp process that is stuck. To rebuild the ppp utility with debugging information, type:
-[source,bash]
+[source,shell]
....
# cd /usr/src/usr.sbin/ppp
# env DEBUG_FLAGS='-g' make clean
@@ -2227,7 +2227,7 @@ In this case, rebuild man:ppp[8] with debugging information, and then use man:gd
Then, restart ppp and wait until it hangs again. When the debug build of ppp hangs, start gdb on the stuck process by typing:
-[source,bash]
+[source,shell]
....
# gdb ppp `pgrep ppp`
....
@@ -2455,7 +2455,7 @@ See link:{handbook}#serialconsole-setup[this section of the Handbook].
As the FreeBSD kernel boots, it will probe for the serial ports for which the kernel is configured. Either watch the boot messages closely or run this command after the system is up and running:
-[source,bash]
+[source,shell]
....
% grep -E '^(sio|uart)[0-9]' < /var/run/dmesg.boot
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
@@ -2522,7 +2522,7 @@ The built-in man:tip[1] and man:cu[1] utilities can only access the [.filename]#
Alternatively, everyone can be configured to run man:tip[1] and man:cu[1] by typing:
-[source,bash]
+[source,shell]
....
# chmod 4511 /usr/bin/cu
# chmod 4511 /usr/bin/tip
@@ -2544,7 +2544,7 @@ The simple answer is that free memory is wasted memory. Any memory that programs
Symlinks do not have permissions, and by default, man:chmod[1] will follow symlinks to change the permissions on the source file, if possible. For the file, [.filename]#foo# with a symlink named [.filename]#bar#, this command will always succeed.
-[source,bash]
+[source,shell]
....
% chmod g-w bar
....
@@ -2558,7 +2558,7 @@ When changing modes of the file hierarchies rooted in the files instead of the f
`-R` does a _recursive_ man:chmod[1]. Be careful about specifying directories or symlinks to directories to man:chmod[1]. To change the permissions of a directory referenced by a symlink, use man:chmod[1] without any options and follow the symlink with a trailing slash ([.filename]#/#). For example, if [.filename]#foo# is a symlink to directory [.filename]#bar#, to change the permissions of [.filename]#foo# (actually [.filename]#bar#), do something like:
-[source,bash]
+[source,shell]
....
% chmod 555 foo/
....
@@ -2800,14 +2800,14 @@ To proceed:
. Write down the instruction pointer value. Note that the `0x8:` part at the beginning is not significant in this case: it is the `0xf0xxxxxx` part that we want.
. When the system reboots, do the following:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxxx
....
+
where `f0xxxxxx` is the instruction pointer value. The odds are you will not get an exact match since the symbols in the kernel symbol table are for the entry points of functions and the instruction pointer address will be somewhere inside a function, not at the start. If you do not get an exact match, omit the last digit from the instruction pointer value and try again:
+
-[source,bash]
+[source,shell]
....
% nm -n kernel.that.caused.the.panic | grep f0xxxxx
....
@@ -2830,21 +2830,21 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
+
. Change to the [.filename]#/usr/src# directory:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. Compile the kernel:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. Wait for man:make[1] to finish compiling.
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -2868,7 +2868,7 @@ FreeBSD crash dumps are usually the same size as physical RAM. Therefore, make s
Once the crash dump has been recovered , get a stack trace as follows:
-[source,bash]
+[source,shell]
....
% kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.0
(kgdb) backtrace
diff --git a/documentation/content/zh-tw/books/handbook/advanced-networking/_index.adoc b/documentation/content/zh-tw/books/handbook/advanced-networking/_index.adoc
index 2705040751..9c49175adf 100644
--- a/documentation/content/zh-tw/books/handbook/advanced-networking/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/advanced-networking/_index.adoc
@@ -81,7 +81,7 @@ This section provides an overview of routing basics. It then demonstrates how to
To view the routing table of a FreeBSD system, use man:netstat[1]:
-[source,bash]
+[source,shell]
....
% netstat -r
Routing tables
@@ -166,7 +166,7 @@ defaultrouter="10.20.30.1"
It is also possible to manually add the route using `route`:
-[source,bash]
+[source,shell]
....
# route add default 10.20.30.1
....
@@ -202,7 +202,7 @@ In this scenario, `RouterA` is a FreeBSD machine that is acting as a router to t
Before adding any static routes, the routing table on `RouterA` looks like this:
-[source,bash]
+[source,shell]
....
% netstat -nr
Routing tables
@@ -217,7 +217,7 @@ default 10.0.0.1 UGS 0 49378 xl0
With the current routing table, `RouterA` does not have a route to the `192.168.2.0/24` network. The following command adds the `Internal Net 2` network to ``RouterA``'s routing table using `192.168.1.2` as the next hop:
-[source,bash]
+[source,shell]
....
# route add -net 192.168.2.0/24 192.168.1.2
@@ -301,14 +301,14 @@ Connecting a computer to an existing wireless network is a very common situation
. Obtain the SSID (Service Set Identifier) and PSK (Pre-Shared Key) for the wireless network from the network administrator.
. Identify the wireless adapter. The FreeBSD [.filename]#GENERIC# kernel includes drivers for many common wireless adapters. If the wireless adapter is one of those models, it will be shown in the output from man:ifconfig[8]:
+
-[source,bash]
+[source,shell]
....
% ifconfig | grep -B3 -i wireless
....
+
On FreeBSD 11 or higher, use this command instead:
+
-[source,bash]
+[source,shell]
....
% sysctl net.wlan.devices
....
@@ -336,7 +336,7 @@ ifconfig_wlan0="WPA SYNCDHCP"
+
. Restart the computer, or restart the network service to connect to the network:
+
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -401,7 +401,7 @@ With this information in the kernel configuration file, recompile the kernel and
Information about the wireless device should appear in the boot messages, like this:
-[source,bash]
+[source,shell]
....
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0.0 on cardbus1
ath0: [ITHREAD]
@@ -414,14 +414,14 @@ Since the regulatory situation is different in various parts of the world, it is
The available region definitions can be found in [.filename]#/etc/regdomain.xml#. To set the data at runtime, use `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 regdomain ETSI country AT
....
To persist the settings, add it to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc create_args_wlan0="country AT regdomain ETSI"
....
@@ -436,7 +436,7 @@ Infrastructure (BSS) mode is the mode that is typically used. In this mode, a nu
To scan for available networks, use man:ifconfig[8]. This request may take a few moments to complete as it requires the system to switch to each available wireless frequency and probe for available access points. Only the superuser can initiate a scan:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -476,7 +476,7 @@ The output of a scan request lists each BSS/IBSS network found. Besides listing
One can also display the current list of known networks with:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 list scan
....
@@ -554,14 +554,14 @@ ifconfig_wlan0="DHCP"
The wireless interface is now ready to bring up:
-[source,bash]
+[source,shell]
....
# service netif start
....
Once the interface is running, use man:ifconfig[8] to see the status of the interface [.filename]#ath0#:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
@@ -627,7 +627,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -651,7 +651,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
Or, try to configure the interface manually using the information in [.filename]#/etc/wpa_supplicant.conf#:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:11:95:c3:0d:ac (SSID='freebsdap' freq=2412 MHz)
@@ -662,7 +662,7 @@ CTRL-EVENT-CONNECTED - Connection to 00:11:95:c3:0d:ac completed (auth) [id=0 id
The next operation is to launch man:dhclient[8] to get the IP address from the DHCP server:
-[source,bash]
+[source,shell]
....
# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
@@ -688,7 +688,7 @@ If [.filename]#/etc/rc.conf# has an `ifconfig_wlan0="DHCP"` entry, man:dhclient[
If DHCP is not possible or desired, set a static IP address after man:wpa_supplicant[8] has authenticated the station:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.100 netmask 255.255.255.0
# ifconfig wlan0
@@ -706,7 +706,7 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
When DHCP is not used, the default gateway and the nameserver also have to be manually set:
-[source,bash]
+[source,shell]
....
# route add default your_default_router
# echo "nameserver your_DNS_server" >> /etc/resolv.conf
@@ -766,7 +766,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -829,7 +829,7 @@ ifconfig_wlan0="WPA DHCP"
The next step is to bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -901,7 +901,7 @@ ifconfig_wlan0="WPA DHCP"
Then, bring up the interface:
-[source,bash]
+[source,shell]
....
# service netif start
Starting wpa_supplicant.
@@ -929,7 +929,7 @@ Wired Equivalent Privacy (WEP) is part of the original 802.11 standard. There is
WEP can be set up using man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 inet 192.168.1.100 netmask 255.255.255.0 \
@@ -960,7 +960,7 @@ network={
Then:
-[source,bash]
+[source,shell]
....
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:13:46:49:41:76 (SSID='dlinkap' freq=2437 MHz)
@@ -973,7 +973,7 @@ IBSS mode, also called ad-hoc mode, is designed for point to point connections.
On `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap
@@ -992,7 +992,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
`B` should now be able to detect `A`:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 up scan
@@ -1002,7 +1002,7 @@ The `adhoc` parameter indicates that the interface is running in IBSS mode.
The `I` in the output confirms that `A` is in ad-hoc mode. Now, configure `B` with a different IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1035,7 +1035,7 @@ The NDIS driver wrapper for Windows(TM) drivers does not currently support AP op
Once wireless networking support is loaded, check if the wireless device supports the host-based access point mode, also known as hostap mode:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 list caps
@@ -1047,14 +1047,14 @@ This output displays the card's capabilities. The `HOSTAP` word confirms that th
The wireless device can only be put into hostap mode during the creation of the network pseudo-device, so a previously created device must be destroyed first:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 destroy
....
then regenerated with the correct option before setting the other parameters:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1
@@ -1062,7 +1062,7 @@ then regenerated with the correct option before setting the other parameters:
Use man:ifconfig[8] again to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1092,7 +1092,7 @@ Although it is not recommended to run an AP without any authentication or encryp
Once the AP is configured, initiate a scan from another wireless machine to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1102,7 +1102,7 @@ freebsdap 00:11:95:c3:0d:ac 1 54M -66:-96 100 ES WME
The client machine found the AP and can be associated with it:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 inet 192.168.0.2 netmask 255.255.255.0 ssid freebsdap
# ifconfig wlan0
@@ -1172,12 +1172,12 @@ wpa_pairwise=CCMP <.>
The next step is to start man:hostapd[8]:
-[source,bash]
+[source,shell]
....
# service hostapd forcestart
....
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1202,7 +1202,7 @@ It is not recommended to use WEP for setting up an AP since there is no authenti
The wireless device can now be put into hostap mode and configured with the correct SSID and IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0 wlanmode hostap
# ifconfig wlan0 inet 192.168.0.1 netmask 255.255.255.0 \
@@ -1214,7 +1214,7 @@ The wireless device can now be put into hostap mode and configured with the corr
Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1229,7 +1229,7 @@ Use man:ifconfig[8] to see the status of the [.filename]#wlan0# interface:
From another wireless machine, it is now possible to initiate a scan to find the AP:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev ath0
# ifconfig wlan0 up scan
@@ -1258,7 +1258,7 @@ Debugging support is provided by man:wpa_supplicant[8]. Try running this utility
* Once the system can associate with the access point, diagnose the network configuration using tools like man:ping[8].
* There are many lower-level debugging tools. Debugging messages can be enabled in the 802.11 protocol support layer using man:wlandebug[8]. For example, to enable console messages related to scanning for access points and the 802.11 protocol handshakes required to arrange communication:
+
-[source,bash]
+[source,shell]
....
# wlandebug -i wlan0 +scan+auth+debug+assoc
net.wlan.0.debug: 0 => 0xc80000<assoc,auth,scan>
@@ -1279,7 +1279,7 @@ Many cellphones provide the option to share their data connection over USB (ofte
Before attaching a device, load the appropriate driver into the kernel:
-[source,bash]
+[source,shell]
....
# kldload if_urndis
# kldload if_cdce
@@ -1301,7 +1301,7 @@ The Bluetooth stack in FreeBSD is implemented using the man:netgraph[4] framewor
Before attaching a device, determine which of the above drivers it uses, then load the driver. For example, if the device uses the man:ng_ubt[4] driver:
-[source,bash]
+[source,shell]
....
# kldload ng_ubt
....
@@ -1315,7 +1315,7 @@ ng_ubt_load="YES"
Once the driver is loaded, plug in the USB dongle. If the driver load was successful, output similar to the following should appear on the console and in [.filename]#/var/log/messages#:
-[source,bash]
+[source,shell]
....
ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
@@ -1325,7 +1325,7 @@ ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3,
To start and stop the Bluetooth stack, use its startup script. It is a good idea to stop the stack before unplugging the device. Starting the bluetooth stack might require man:hcsecd[8] to be started. When starting the stack, the output should be similar to the following:
-[source,bash]
+[source,shell]
....
# service bluetooth start ubt0
BD_ADDR: 00:02:72:00:d4:1a
@@ -1347,7 +1347,7 @@ The Host Controller Interface (HCI) provides a uniform method for accessing Blue
One of the most common tasks is discovery of Bluetooth devices within RF proximity. This operation is called _inquiry_. Inquiry and other HCI related operations are done using man:hccontrol[8]. The example below shows how to find out which Bluetooth devices are in range. The list of devices should be displayed in a few seconds. Note that a remote device will only answer the inquiry if it is set to _discoverable_ mode.
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
@@ -1363,7 +1363,7 @@ Inquiry complete. Status: No error [00]
The `BD_ADDR` is the unique address of a Bluetooth device, similar to the MAC address of a network card. This address is needed for further communication with a device and it is possible to assign a human readable name to a `BD_ADDR`. Information regarding the known Bluetooth hosts is contained in [.filename]#/etc/bluetooth/hosts#. The following example shows how to obtain the human readable name that was assigned to the remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci remote_name_request 00:80:37:29:19:a4
BD_ADDR: 00:80:37:29:19:a4
@@ -1376,7 +1376,7 @@ Remote devices can be assigned aliases in [.filename]#/etc/bluetooth/hosts#. Mor
The Bluetooth system provides a point-to-point connection between two Bluetooth units, or a point-to-multipoint connection which is shared among several Bluetooth devices. The following example shows how to create a connection to a remote device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci create_connection BT_ADDR
....
@@ -1385,7 +1385,7 @@ The Bluetooth system provides a point-to-point connection between two Bluetooth
The following example shows how to obtain the list of active baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% hccontrol -n ubt0hci read_connection_list
Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
@@ -1394,7 +1394,7 @@ Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State
A _connection handle_ is useful when termination of the baseband connection is required, though it is normally not required to do this by hand. The stack will automatically terminate inactive baseband connections.
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci disconnect 41
Connection handle: 41
@@ -1450,7 +1450,7 @@ In FreeBSD, these profiles are implemented with man:ppp[8] and the man:rfcomm_pp
In this example, man:rfcomm_pppd[8] is used to open a connection to a remote device with a `BD_ADDR` of `00:80:37:29:19:a4` on a DUNRFCOMM channel:
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -a 00:80:37:29:19:a4 -c -C dun -l rfcomm-dialup
....
@@ -1459,7 +1459,7 @@ The actual channel number will be obtained from the remote device using the SDP
In order to provide network access with the PPPLAN service, man:sdpd[8] must be running and a new entry for LAN clients must be created in [.filename]#/etc/ppp/ppp.conf#. Consult man:rfcomm_pppd[8] for examples. Finally, start the RFCOMMPPP server on a valid RFCOMM channel number. The RFCOMMPPP server will automatically register the Bluetooth LAN service with the local SDP daemon. The example below shows how to start the RFCOMMPPP server.
-[source,bash]
+[source,shell]
....
# rfcomm_pppd -s -C 7 -l rfcomm-server
....
@@ -1478,7 +1478,7 @@ In FreeBSD, a netgraph L2CAP node is created for each Bluetooth device. This nod
A useful command is man:l2ping[8], which can be used to ping other devices. Some Bluetooth implementations might not return all of the data sent to them, so `0 bytes` in the following example is normal.
-[source,bash]
+[source,shell]
....
# l2ping -a 00:80:37:29:19:a4
0 bytes from 0:80:37:29:19:a4 seq_no=0 time=48.633 ms result=0
@@ -1489,7 +1489,7 @@ A useful command is man:l2ping[8], which can be used to ping other devices. Some
The man:l2control[8] utility is used to perform various operations on L2CAP nodes. This example shows how to obtain the list of logical connections (channels) and the list of baseband connections for the local device:
-[source,bash]
+[source,shell]
....
% l2control -a 00:02:72:00:d4:1a read_channel_list
L2CAP channels:
@@ -1503,7 +1503,7 @@ Remote BD_ADDR Handle Flags Pending State
Another diagnostic tool is man:btsockstat[1]. It is similar to man:netstat[1], but for Bluetooth network-related data structures. The example below shows the same logical connection as man:l2control[8] above.
-[source,bash]
+[source,shell]
....
% btsockstat
Active L2CAP sockets
@@ -1537,7 +1537,7 @@ Normally, a SDP client searches for services based on some desired characteristi
The Bluetooth SDP server, man:sdpd[8], and command line client, man:sdpcontrol[8], are included in the standard FreeBSD installation. The following example shows how to perform a SDP browse query.
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec browse
Record Handle: 00000000
@@ -1565,7 +1565,7 @@ Bluetooth Profile Descriptor List:
Note that each service has a list of attributes, such as the RFCOMM channel. Depending on the service, the user might need to make note of some of the attributes. Some Bluetooth implementations do not support service browsing and may return an empty list. In this case, it is possible to search for the specific service. The example below shows how to search for the OBEX Object Push (OPUSH) service:
-[source,bash]
+[source,shell]
....
% sdpcontrol -a 00:01:03:fc:6e:ec search OPUSH
....
@@ -1579,7 +1579,7 @@ sdpd_enable="YES"
Then the man:sdpd[8] daemon can be started with:
-[source,bash]
+[source,shell]
....
# service sdpd start
....
@@ -1588,7 +1588,7 @@ The local server application that wants to provide a Bluetooth service to remote
The list of services registered with the local SDP server can be obtained by issuing a SDP browse query via the local control channel:
-[source,bash]
+[source,shell]
....
# sdpcontrol -l browse
....
@@ -1601,7 +1601,7 @@ The OBEX server and client are implemented by obexapp, which can be installed us
The OBEX client is used to push and/or pull objects from the OBEX server. An example object is a business card or an appointment. The OBEX client can obtain the RFCOMM channel number from the remote device via SDP. This can be done by specifying the service name instead of the RFCOMM channel number. Supported service names are: `IrMC`, `FTRN`, and `OPUSH`. It is also possible to specify the RFCOMM channel as a number. Below is an example of an OBEX session where the device information object is pulled from the cellular phone, and a new object, the business card, is pushed into the phone's directory.
-[source,bash]
+[source,shell]
....
% obexapp -a 00:80:37:29:19:a4 -C IrMC
obex> get telecom/devinfo.txt devinfo-t39.txt
@@ -1614,7 +1614,7 @@ Success, response: OK, Success (0x20)
In order to provide the OPUSH service, man:sdpd[8] must be running and a root folder, where all incoming objects will be stored, must be created. The default path to the root folder is [.filename]#/var/spool/obex#. Finally, start the OBEX server on a valid RFCOMM channel number. The OBEX server will automatically register the OPUSH service with the local SDP daemon. The example below shows how to start the OBEX server.
-[source,bash]
+[source,shell]
....
# obexapp -s -C 10
....
@@ -1625,7 +1625,7 @@ The Serial Port Profile (SPP) allows Bluetooth devices to perform serial cable e
In FreeBSD, man:rfcomm_sppd[1] implements SPP and a pseudo tty is used as a virtual serial port abstraction. The example below shows how to connect to a remote device's serial port service. A RFCOMM channel does not have to be specified as man:rfcomm_sppd[1] can obtain it from the remote device via SDP. To override this, specify a RFCOMM channel on the command line.
-[source,bash]
+[source,shell]
....
# rfcomm_sppd -a 00:07:E0:00:0B:CA -t
rfcomm_sppd[94692]: Starting on /dev/pts/6...
@@ -1634,7 +1634,7 @@ rfcomm_sppd[94692]: Starting on /dev/pts/6...
Once connected, the pseudo tty can be used as serial port:
-[source,bash]
+[source,shell]
....
# cu -l /dev/pts/6
....
@@ -1651,7 +1651,7 @@ cu -l $PTS
By default, when FreeBSD is accepting a new connection, it tries to perform a role switch and become master. Some older Bluetooth devices which do not support role switching will not be able to connect. Since role switching is performed when a new connection is being established, it is not possible to ask the remote device if it supports role switching. However, there is a HCI option to disable role switching on the local side:
-[source,bash]
+[source,shell]
....
# hccontrol -n ubt0hci write_node_role_switch 0
....
@@ -1697,7 +1697,7 @@ In FreeBSD, man:if_bridge[4] is a kernel module which is automatically loaded by
The bridge is created using interface cloning. To create the bridge interface:
-[source,bash]
+[source,shell]
....
# ifconfig bridge create
bridge0
@@ -1713,7 +1713,7 @@ When a bridge interface is created, it is automatically assigned a randomly gene
Next, specify which network interfaces to add as members of the bridge. For the bridge to forward packets, all member interfaces and the bridge need to be up:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 up
# ifconfig fxp0 up
@@ -1732,7 +1732,7 @@ ifconfig_fxp1="up"
If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces. The address can be set statically or via DHCP. This example sets a static IP address:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 inet 192.168.0.1/24
....
@@ -1754,7 +1754,7 @@ The Rapid Spanning Tree Protocol (RSTP or 802.1w) provides backwards compatibili
STP can be enabled on member interfaces using man:ifconfig[8]. For a bridge with [.filename]#fxp0# and [.filename]#fxp1# as the current interfaces, enable STP with:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 stp fxp0 stp fxp1
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -1774,7 +1774,7 @@ This bridge has a spanning tree ID of `00:01:02:4b:d4:50` and a priority of `327
Another bridge on the network also has STP enabled:
-[source,bash]
+[source,shell]
....
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 96:3d:4b:f1:79:7a
@@ -1801,7 +1801,7 @@ A private interface does not forward any traffic to any other port that is also
span::
A span port transmits a copy of every Ethernet frame received by the bridge. The number of span ports configured on a bridge is unlimited, but if an interface is designated as a span port, it cannot also be used as a regular bridge port. This is most useful for snooping a bridged network passively on another host connected to one of the span ports of the bridge. For example, to send a copy of all frames out the interface named [.filename]#fxp4#:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 span fxp4
....
@@ -1811,7 +1811,7 @@ If a bridge member interface is marked as sticky, dynamically learned address en
+
An example of using sticky addresses is to combine the bridge with VLANs in order to isolate customer networks without wasting IP address space. Consider that `CustomerA` is on `vlan100`, `CustomerB` is on `vlan101`, and the bridge has the address `192.168.0.1`:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm vlan100 sticky vlan100 addm vlan101 sticky vlan101
# ifconfig bridge0 inet 192.168.0.1/24
@@ -1821,7 +1821,7 @@ In this example, both clients see `192.168.0.1` as their default gateway. Since
+
Any communication between the VLANs can be blocked using a firewall or, as seen in this example, private interfaces:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 private vlan100 private vlan101
....
@@ -1832,14 +1832,14 @@ The number of unique source MAC addresses behind an interface can be limited. On
+
The following example sets the maximum number of Ethernet devices for `CustomerA` on `vlan100` to 10:
+
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 ifmaxaddr vlan100 10
....
Bridge interfaces also support monitor mode, where the packets are discarded after man:bpf[4] processing and are not processed or forwarded further. This can be used to multiplex the input of two or more interfaces into a single man:bpf[4] stream. This is useful for reconstructing the traffic for network taps that transmit the RX/TX signals out through two separate interfaces. For example, to read the input from four network interfaces as one stream:
-[source,bash]
+[source,shell]
....
# ifconfig bridge0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 monitor up
# tcpdump -i bridge0
@@ -1865,7 +1865,7 @@ bsnmpd_enable="YES"
Then, start man:bsnmpd[1]:
-[source,bash]
+[source,shell]
....
# service bsnmpd start
....
@@ -1880,7 +1880,7 @@ mibs +BRIDGE-MIB:RSTP-MIB:BEGEMOT-MIB:BEGEMOT-BRIDGE-MIB
To monitor a single bridge using the IETF BRIDGE-MIB (RFC4188):
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com mib-2.dot1dBridge
BRIDGE-MIB::dot1dBaseBridgeAddress.0 = STRING: 66:fb:9b:6e:5c:44
@@ -1904,7 +1904,7 @@ The `dot1dStpTopChanges.0` value is two, indicating that the STP bridge topology
To monitor multiple bridge interfaces, the private BEGEMOT-BRIDGE-MIB can be used:
-[source,bash]
+[source,shell]
....
% snmpwalk -v 2c -c public bridge1.example.com
enterprises.fokus.begemot.begemotBridge
@@ -1925,7 +1925,7 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeStpDesignatedRoot."bridge2" = Hex-STRING: 80 00
To change the bridge interface being monitored via the `mib-2.dot1dBridge` subtree:
-[source,bash]
+[source,shell]
....
% snmpset -v 2c -c private bridge1.example.com
BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2
@@ -1966,7 +1966,7 @@ Frame ordering is mandatory on Ethernet links and any traffic between two statio
On the Cisco(TM) switch, add the _FastEthernet0/1_ and _FastEthernet0/2_ interfaces to channel group _1_:
-[source,bash]
+[source,shell]
....
interface FastEthernet0/1
channel-group 1 mode active
@@ -1979,7 +1979,7 @@ interface FastEthernet0/2
On the FreeBSD system, create the man:lagg[4] interface using the physical interfaces _fxp0_ and _fxp1_ and bring the interfaces up with an IP address of _10.0.0.3/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -1989,7 +1989,7 @@ On the FreeBSD system, create the man:lagg[4] interface using the physical inter
Next, verify the status of the virtual interface:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2007,7 +2007,7 @@ Ports marked as `ACTIVE` are part of the LAG that has been negotiated with the r
To see the port status on the Cisco(TM) switch:
-[source,bash]
+[source,shell]
....
switch# show lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
@@ -2044,7 +2044,7 @@ ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24"
====
Failover mode can be used to switch over to a secondary interface if the link is lost on the master interface. To configure failover, make sure that the underlying physical interfaces are up, then create the man:lagg[4] interface. In this example, _fxp0_ is the master interface, _fxp1_ is the secondary interface, and the virtual interface is assigned an IP address of _10.0.0.15/24_:
-[source,bash]
+[source,shell]
....
# ifconfig fxp0 up
# ifconfig fxp1 up
@@ -2054,7 +2054,7 @@ Failover mode can be used to switch over to a secondary interface if the link is
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2092,7 +2092,7 @@ This is achieved by overriding the physical wireless interface's MAC address wit
In this example, the Ethernet interface, _bge0_, is the master and the wireless interface, _wlan0_, is the failover. The _wlan0_ device was created from _iwn0_ wireless interface, which will be configured with the MAC address of the Ethernet interface. First, determine the MAC address of the Ethernet interface:
-[source,bash]
+[source,shell]
....
# ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2106,21 +2106,21 @@ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Replace _bge0_ to match the system's Ethernet interface name. The `ether` line will contain the MAC address of the specified interface. Now, change the MAC address of the underlying wireless interface:
-[source,bash]
+[source,shell]
....
# ifconfig iwn0 ether 00:21:70:da:ae:37
....
Bring the wireless interface up, but do not set an IP address:
-[source,bash]
+[source,shell]
....
# ifconfig wlan0 create wlandev iwn0 ssid my_router up
....
Make sure the _bge0_ interface is up, then create the man:lagg[4] interface with _bge0_ as master with failover to _wlan0_:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 up
# ifconfig lagg0 create
@@ -2129,7 +2129,7 @@ Make sure the _bge0_ interface is up, then create the man:lagg[4] interface with
The virtual interface should look something like this:
-[source,bash]
+[source,shell]
....
# ifconfig lagg0
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -2144,7 +2144,7 @@ lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
Then, start the DHCP client to obtain an IP address:
-[source,bash]
+[source,shell]
....
# dhclient lagg0
....
@@ -2194,7 +2194,7 @@ The steps shown in this section configure the built-in NFS and TFTP servers. The
. Create the root directory which will contain a FreeBSD installation to be NFS mounted:
+
-[source,bash]
+[source,shell]
....
# export NFSROOTDIR=/b/tftpboot/FreeBSD/install
# mkdir -p ${NFSROOTDIR}
@@ -2216,7 +2216,7 @@ nfs_server_enable="YES"
+
. Start the NFS server:
+
-[source,bash]
+[source,shell]
....
# service nfsd start
....
@@ -2241,7 +2241,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
+
. Start man:inetd[8]:
+
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -2249,7 +2249,7 @@ Some PXE versions require the TCP version of TFTP. In this case, uncomment the s
. Install the base system into [.filename]#${NFSROOTDIR}#, either by decompressing the official archives or by rebuilding the FreeBSD kernel and userland (refer to crossref:cutting-edge[makeworld,從原始碼更新 FreeBSD] for more detailed instructions, but do not forget to add `DESTDIR=_${NFSROOTDIR}_` when running the `make installkernel` and `make installworld` commands.
. Test that the TFTP server works and can download the boot loader which will be obtained via PXE:
+
-[source,bash]
+[source,shell]
....
# tftp localhost
tftp> get FreeBSD/install/boot/pxeboot
@@ -2267,7 +2267,7 @@ myhost.example.com:/b/tftpboot/FreeBSD/install / nfs ro
Replace _myhost.example.com_ with the hostname or IP address of the NFS server. In this example, the root file system is mounted read-only in order to prevent NFS clients from potentially deleting the contents of the root file system.
. Set the root password in the PXE environment for client machines which are PXE booting :
+
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# passwd
@@ -2279,7 +2279,7 @@ Replace _myhost.example.com_ with the hostname or IP address of the NFS server.
When booting from an NFS root volume, [.filename]#/etc/rc# detects the NFS boot and runs [.filename]#/etc/rc.initdiskless#. In this case, [.filename]#/etc# and [.filename]#/var# need to be memory backed file systems so that these directories are writable but the NFS root directory is read-only:
-[source,bash]
+[source,shell]
....
# chroot ${NFSROOTDIR}
# mkdir -p conf/base
@@ -2335,7 +2335,7 @@ dhcpd_enable="YES"
Then start the DHCP service:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -2356,7 +2356,7 @@ image::pxe-nfs.png[]
+
. On the TFTP server, read [.filename]#/var/log/xferlog# to ensure that [.filename]#pxeboot# is being retrieved from the correct location. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# tftp 192.168.0.1
tftp> get FreeBSD/install/boot/pxeboot
@@ -2366,7 +2366,7 @@ Received 264951 bytes in 0.1 seconds
The `BUGS` sections in man:tftpd[8] and man:tftp[1] document some limitations with TFTP.
. Make sure that the root file system can be mounted via NFS. To test this example configuration:
+
-[source,bash]
+[source,shell]
....
# mount -t nfs 192.168.0.1:/b/tftpboot/FreeBSD/install /mnt
....
@@ -2410,7 +2410,7 @@ A third form is to write the last 32 bits using the well known IPv4 notation. Fo
To view a FreeBSD system's IPv6 address, use man:ifconfig[8]:
-[source,bash]
+[source,shell]
....
# ifconfig
....
@@ -2623,7 +2623,7 @@ carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2669,7 +2669,7 @@ Having two CARPVHIDs configured means that `hostc.example.org` will notice if ei
====
If the original master server becomes available again, `hostc.example.org` will not release the virtual IP address back to it automatically. For this to happen, preemption has to be enabled. The feature is disabled by default, it is controlled via the man:sysctl[8] variable `net.inet.carp.preempt`. The administrator can force the backup server to return the IP address to the master:
-[source,bash]
+[source,shell]
....
# ifconfig em0 vhid 1 state backup
....
@@ -2694,7 +2694,7 @@ if_carp_load="YES"
To load the module now without rebooting:
-[source,bash]
+[source,shell]
....
# kldload carp
....
@@ -2708,7 +2708,7 @@ device carp
Next, on each host, create a CARP device:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 create
....
@@ -2748,7 +2748,7 @@ ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24"
====
Preemption is disabled in the [.filename]#GENERIC# FreeBSD kernel. If preemption has been enabled with a custom kernel, `hostc.example.org` may not release the IP address back to the original content server. The administrator can force the backup server to return the IP address to the master with the command:
-[source,bash]
+[source,shell]
....
# ifconfig carp0 down && ifconfig carp0 up
@@ -2770,7 +2770,7 @@ When configuring a VLAN, a couple pieces of information must be known. First, wh
To configure VLANs at run time, with a NIC of `em0` and a VLAN tag of `5` the command would look like this:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24
....
@@ -2794,14 +2794,14 @@ It is useful to assign a symbolic name to an interface so that when the associat
To configure VLAN `5`, on the NIC `em0`, assign the interface name `cameras`, and assign the interface an IP address of `_192.168.20.20_` with a `24`-bit prefix, use this command:
-[source,bash]
+[source,shell]
....
# ifconfig em0.5 create vlan 5 vlandev em0 name cameras inet 192.168.20.20/24
....
For an interface named `video`, use the following:
-[source,bash]
+[source,shell]
....
# ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24
....
diff --git a/documentation/content/zh-tw/books/handbook/audit/_index.adoc b/documentation/content/zh-tw/books/handbook/audit/_index.adoc
index d13d8214e0..1ad3ae721c 100644
--- a/documentation/content/zh-tw/books/handbook/audit/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/audit/_index.adoc
@@ -97,7 +97,7 @@ auditd_enable="YES"
Then, start the audit daemon:
-[source,bash]
+[source,shell]
....
# service auditd start
....
@@ -310,7 +310,7 @@ Since audit trails are stored in the BSM binary format, several built-in tools a
For example, to dump the entire contents of a specified audit log in plain text:
-[source,bash]
+[source,shell]
....
# praudit /var/audit/AUDITFILE
....
@@ -336,7 +336,7 @@ XML output format is also supported and can be selected by including `-x`.
Since audit logs may be very large, a subset of records can be selected using `auditreduce`. This example selects all audit records produced for the user `trhodes` stored in [.filename]#AUDITFILE#:
-[source,bash]
+[source,shell]
....
# auditreduce -u trhodes /var/audit/AUDITFILE | praudit
....
@@ -347,7 +347,7 @@ Members of the `audit` group have permission to read audit trails in [.filename]
Audit pipes are cloning pseudo-devices which allow applications to tap the live audit record stream. This is primarily of interest to authors of intrusion detection and system monitoring applications. However, the audit pipe device is a convenient way for the administrator to allow live monitoring without running into problems with audit trail file ownership or log rotation interrupting the event stream. To track the live audit event stream:
-[source,bash]
+[source,shell]
....
# praudit /dev/auditpipe
....
@@ -371,7 +371,7 @@ It is easy to produce audit event feedback cycles, in which the viewing of each
Audit trails are written to by the kernel and managed by the audit daemon, man:auditd[8]. Administrators should not attempt to use man:newsyslog.conf[5] or other tools to directly rotate audit logs. Instead, `audit` should be used to shut down auditing, reconfigure the audit system, and perform log rotation. The following command causes the audit daemon to create a new audit log and signal the kernel to switch to using the new log. The old log will be terminated and renamed, at which point it may then be manipulated by the administrator:
-[source,bash]
+[source,shell]
....
# audit -n
....
diff --git a/documentation/content/zh-tw/books/handbook/basics/_index.adoc b/documentation/content/zh-tw/books/handbook/basics/_index.adoc
index 84edf5135a..e27653b5c4 100644
--- a/documentation/content/zh-tw/books/handbook/basics/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/basics/_index.adoc
@@ -69,7 +69,7 @@ toc::[]
如果您沒有將 FreeBSD 設定成開機時自動進入圖形化模式,系統會進入指令登入提示像是這樣的東西:
-[source,bash]
+[source,shell]
....
FreeBSD/amd64 (pc3.example.org) (ttyv0)
@@ -147,21 +147,21 @@ _請審慎考慮是否要改為_ `_insecure_`! 因為萬一忘記 ``root`` 密
FreeBSD Console 預設顯示大小可以調整為 1024x768、1280x1024 或其他顯示卡與螢幕有支援的解析度大小。 要使用不同的影像模式需載入 `VESA` 模組:
-[source,bash]
+[source,shell]
....
# kldload vesa
....
要偵測硬體支援的影像模式,可使用 man:vidcontrol[1]。 要取得支援的影像模式清單可輸入以下指令:
-[source,bash]
+[source,shell]
....
# vidcontrol -i mode
....
該指令會顯示硬體所支援的影像模式清單,要採用新的影像模式需以 `root` 使用者執行 man:vidcontrol[1] 指令:
-[source,bash]
+[source,shell]
....
# vidcontrol MODE_279
....
@@ -259,7 +259,7 @@ Shell 提供了使用者預設的環境來與系統互動。有數種不同類
[example]
====
-[source,bash]
+[source,shell]
....
% configure
% make
@@ -314,7 +314,7 @@ man:adduser[8] 工具採用互動的方式,只需幾個步驟便可建立新
[example]
====
-[source,bash]
+[source,shell]
....
# adduser
Username: jru
@@ -382,7 +382,7 @@ man:rmuser[8] 無法用來移除超級使用者帳號,因為這幾乎代表著
[example]
====
-[source,bash]
+[source,shell]
....
# rmuser jru
Matching password entry:
@@ -414,7 +414,7 @@ Removing user (jru): mailspool home passwd.
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Login: jru
@@ -440,7 +440,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
#Changing user database information for jru.
Shell: /usr/local/bin/zsh
@@ -467,7 +467,7 @@ Other information:
[example]
====
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for jru.
@@ -486,7 +486,7 @@ passwd: done
[example]
====
-[source,bash]
+[source,shell]
....
# passwd jru
Changing local password for jru.
@@ -521,7 +521,7 @@ man:pw[8] 工具可以建立、移除、修改以及顯示使用者與群組,
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupadd teamtwo
# pw groupshow teamtwo
@@ -536,7 +536,7 @@ teamtwo:*:1100:
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
@@ -551,7 +551,7 @@ teamtwo:*:1100:jru
[example]
====
-[source,bash]
+[source,shell]
....
# pw groupmod teamtwo -m db
# pw groupshow teamtwo
@@ -566,7 +566,7 @@ teamtwo:*:1100:jru,db
[example]
====
-[source,bash]
+[source,shell]
....
% id jru
uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
@@ -631,7 +631,7 @@ uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo)
使用 man:ls[1] 指令時,可以加上 `-l` 參數, 來檢視詳細的目錄清單。 清單中欄位的資訊包含檔案對所有者、群組及其他人的權限。 在任一個目錄底下執行 `ls -l`,會顯示如下的結果:
-[source,bash]
+[source,shell]
....
% ls -l
total 530
@@ -712,14 +712,14 @@ total 530
如先前同樣使用 man:chmod[1] 指令來設定,但使用的參數為這些字元。 例如,您可以使用下列指令禁止其他使用者存取檔案 _FILE_:
-[source,bash]
+[source,shell]
....
% chmod go= FILE
....
若有兩個以上的權限更改可以使用逗號 (,) 區隔。 例如,下列指令將會移除群組及全部人 ("world") 對檔案 _FILE_ 的寫入權限, 並使全部人對該檔有執行權限:
-[source,bash]
+[source,shell]
....
% chmod go-w,a+x FILE
....
@@ -730,21 +730,21 @@ total 530
修改的檔案 flag 僅需要使用擁有簡易的介面的 man:chflags[1] 工具。 例如,標示系統禁止刪除的旗標於檔案 [.filename]#file1#,使用下列指令:
-[source,bash]
+[source,shell]
....
# chflags sunlink file1
....
若要移除系統禁止刪除的旗標,只需要簡單在 `sunlink` 前加上 "no",例如:
-[source,bash]
+[source,shell]
....
# chflags nosunlink file1
....
使用 man:ls[1] 及參數 `-lo` 可檢視檔案目前的旗標:
-[source,bash]
+[source,shell]
....
# ls -lo file1
....
@@ -766,7 +766,7 @@ total 530
setuid 權限可以透過在權限集前加上數字 (4) 來設定,如下範例所示:
-[source,bash]
+[source,shell]
....
# chmod 4755 suidexample.sh
....
@@ -789,7 +789,7 @@ man:mount[8] 的 `nosuid` 選項會造成這類 Binary 執行失敗,但不會
於終端機 A:
-[source,bash]
+[source,shell]
....
Changing local password for trhodes
Old Password:
@@ -797,12 +797,12 @@ Old Password:
於終端機 B:
-[source,bash]
+[source,shell]
....
# ps aux | grep passwd
....
-[source,bash]
+[source,shell]
....
trhodes 5232 0.0 0.2 3420 1608 0 R+ 2:10AM 0:00.00 grep passwd
root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
@@ -814,14 +814,14 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
要在檔案設定 `setgid` 權限,需在 man:chmod[1] 的參數前加上 (2):
-[source,bash]
+[source,shell]
....
# chmod 2755 sgidexample.sh
....
注意以下清單中,`s` 現在位於指定群組權限設定的欄位:
-[source,bash]
+[source,shell]
....
-rwxr-sr-x 1 trhodes trhodes 44 Aug 31 01:49 sgidexample.sh
....
@@ -835,19 +835,19 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd
當在目錄上設定 `sticky bit`,將只允許由檔案擁有者刪除檔案。這對避免公開目錄,如 [.filename]#/tmp# 中的檔案被不擁有該檔案的人刪除非常有用。要使用這個權限,可在權限集前加上 (1):
-[source,bash]
+[source,shell]
....
# chmod 1777 /tmp
....
`sticky bit` 權限會以 `t` 顯示於權限集的最後:
-[source,bash]
+[source,shell]
....
# ls -al / | grep tmp
....
-[source,bash]
+[source,shell]
....
drwxrwxrwt 10 root wheel 512 Aug 31 01:49 tmp
....
@@ -1170,7 +1170,7 @@ man:dump[8] 由此項目決定那些檔案系統需要傾印。 如果這格空
man:mount[8] 指令是拿來掛載檔案系統用的。基本的操作指令格式如下:
-[source,bash]
+[source,shell]
....
# mount device mountpoint
....
@@ -1233,7 +1233,7 @@ FreeBSD 是一個多工的作業系統,也就是說在同一時間內可以跑
在預設的情況下,man:ps[1] 指令只會顯示使用者所擁有的的程序。 例如:
-[source,bash]
+[source,shell]
....
% ps
PID TT STAT TIME COMMAND
@@ -1247,7 +1247,7 @@ FreeBSD 是一個多工的作業系統,也就是說在同一時間內可以跑
man:top[1] 也有類似的輸出。 一般的情況看像是這樣:
-[source,bash]
+[source,shell]
....
% top
last pid: 9609; load averages: 0.56, 0.45, 0.36 up 0+00:20:03 10:21:46
@@ -1300,7 +1300,7 @@ top(1) 每隔 2 秒鐘會自動更新顯示內容,可用 `-s` 選項來改變
. 使用 man:pgrep[1] 來查詢要傳送信號的目標程序。 在這個例子中 man:inetd[8] 的 PID 為 198:
+
-[source,bash]
+[source,shell]
....
% pgrep -l inetd
198 inetd -wW
@@ -1308,7 +1308,7 @@ top(1) 每隔 2 秒鐘會自動更新顯示內容,可用 `-s` 選項來改變
+
. 使用 man:kill[1] 來發送信號。因為 man:inetd[8] 是 `root` 所有,因此必須先用 man:su[1] 切換成 `root` 先。
+
-[source,bash]
+[source,shell]
....
% su
Password:
@@ -1388,14 +1388,14 @@ Shell 的另一項特點是使用了環境變數。 環境變數是以變數與
在不同的 Shell 底下設定環境變數的方式也有所不同。 在 man:tcsh[1] 和 man:csh[1],使用 `setenv` 來設定環境變數。 在 man:sh[1] 和 `bash` 則使用 `export` 來設定目前環境的變數。 以下範例將 man:tcsh[1] Shell 下的 `EDITOR` 環境變數從預設值更改為 [.filename]#/usr/local/bin/emacs#:
-[source,bash]
+[source,shell]
....
% setenv EDITOR /usr/local/bin/emacs
....
相同功能的指令在 `bash` 下則是:
-[source,bash]
+[source,shell]
....
% export EDITOR="/usr/local/bin/emacs"
....
@@ -1413,7 +1413,7 @@ Shell 中有特殊字元用來表示特殊資料,我們將其稱作 Meta-chara
或者,使用 `chsh -s`, 來直接設定 Shell 而不開啟文字編輯器。 例如, 假設想把 Shell 更改為 `bash`:
-[source,bash]
+[source,shell]
....
% chsh -s /usr/local/bin/bash
....
@@ -1422,7 +1422,7 @@ Shell 中有特殊字元用來表示特殊資料,我們將其稱作 Meta-chara
====
新的 Shell __必須__已列於 [.filename]#/etc/shells# 裡頭。 若是依 crossref:ports[ports,安裝應用程式:套件與 Port] 說明由 Port 套件集來裝的 Shell, 那就會自動列入至該檔案裡。 若仍缺少,請使用以下指令加入檔案 (請將路徑替換為新的 Shell 的路徑):
-[source,bash]
+[source,shell]
....
# echo /usr/local/bin/bash >> /etc/shells
....
@@ -1436,21 +1436,21 @@ UNIX(TM) Shell 不只是指令的直譯器,它是一個強大的工具可讓
Shell 重新導向是將一個指令的輸出或輸入傳送給另一個指令或檔案。例如,要擷取 man:ls[1] 指令的輸出到一個檔案,可以重新導向輸出:
-[source,bash]
+[source,shell]
....
% ls > directory_listing.txt
....
目錄的內容現在會列到 [.filename]#directory_listing.txt# 中,部份指令可以讀取輸入,例如 man:sort[1]。要排序這個清單,可重新導向輸入:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt
....
輸入的內容會被排序後呈現在畫面上,要重新導向該輸入到另一個檔案,可以重新導向 man:sort[1] 的出輸:
-[source,bash]
+[source,shell]
....
% sort < directory_listing.txt > sorted.txt
....
@@ -1461,7 +1461,7 @@ Shell 重新導向是將一個指令的輸出或輸入傳送給另一個指令
UNIX(TM) 的管線運算子,即 "|",可允許指令的輸出可直接傳遞或導向到另一個程式。基本上,管線運算子允許指令的標準輸出以標準輸入傳遞給另一個指令,例如:
-[source,bash]
+[source,shell]
....
% cat directory_listing.txt | sort | less
....
@@ -1493,14 +1493,14 @@ FreeBSD 同時也內建功能強大的文字編輯器,像是man:vi[1]。 其
在 FreeBSD 中,最詳細的文件莫過於操作手冊。 幾乎在系統上所有程式都會有簡短的操作手冊來介紹該程式的基本操作以及可用的參數。 這些操作手冊可以使用 `man` 指令來檢視:
-[source,bash]
+[source,shell]
....
% man command
....
其中 _command_ 想要瞭解指令的名稱。 舉例,要知道 man:ls[1] 的詳細用法,就可以打:
-[source,bash]
+[source,shell]
....
% man ls
....
@@ -1519,7 +1519,7 @@ FreeBSD 同時也內建功能強大的文字編輯器,像是man:vi[1]。 其
有些情況會有同樣主題會同時出現在不同章節。 舉個例子,系統內會有 `chmod` 使用者指令,但同時也有 `chmod()` 系統呼叫。 在這種情況,要告訴 man:man[1] 要查詢的章節編號:
-[source,bash]
+[source,shell]
....
% man 1 chmod
....
@@ -1528,7 +1528,7 @@ FreeBSD 同時也內建功能強大的文字編輯器,像是man:vi[1]。 其
若不曉得操作手冊的名稱,可以使用 `man -k` 來以關鍵字查詢所有操作手冊的描述:
-[source,bash]
+[source,shell]
....
% man -k mail
....
@@ -1537,7 +1537,7 @@ FreeBSD 同時也內建功能強大的文字編輯器,像是man:vi[1]。 其
想要閱讀所有在 [.filename]#/usr/bin# 底下的指令說明則可輸入:
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% man -f * | more
@@ -1545,7 +1545,7 @@ FreeBSD 同時也內建功能強大的文字編輯器,像是man:vi[1]。 其
-[source,bash]
+[source,shell]
....
% cd /usr/bin
% whatis * |more
@@ -1558,7 +1558,7 @@ FreeBSD 有許多應用程式與工具來自自由軟體基金會 (Free Software
要使用 man:info[1] 指令,只需輸入:
-[source,bash]
+[source,shell]
....
% info
....
diff --git a/documentation/content/zh-tw/books/handbook/boot/_index.adoc b/documentation/content/zh-tw/books/handbook/boot/_index.adoc
index 1d93149764..74d620f13c 100644
--- a/documentation/content/zh-tw/books/handbook/boot/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/boot/_index.adoc
@@ -101,7 +101,7 @@ FreeBSD 在較舊的 MBR 標準與較新的 GUID 分割區表 (GUID Partition Ta
[example]
====
-[source,bash]
+[source,shell]
....
F1 Win
F2 FreeBSD
@@ -113,7 +113,7 @@ Default: F2
其作他作業統若在 FreeBSD 之後才安裝則會覆蓋現有的 MBR,若這件事發生了,或者要使用 FreeBSD MBR 取代現有的 MBR 可使用以下指令:
-[source,bash]
+[source,shell]
....
# fdisk -B -b /boot/boot0 device
....
@@ -136,7 +136,7 @@ Default: F2
[example]
====
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -147,7 +147,7 @@ boot:
要更換已安裝的 [.filename]#boot1# 與 [.filename]#boot2# 可使用 `bsdlabel`,其中 _diskslice_ 是要開機的磁碟與切割區,例如 [.filename]#ad0s1# 代表第一個 IDE 磁碟的第一個切割區:
-[source,bash]
+[source,shell]
....
# bsdlabel -B diskslice
....
@@ -220,14 +220,14 @@ loader 接著會讀取 [.filename]#/boot/loader.rc#,這個程式預設又會
這裡有一些 loader 用法的實務範例。要使用一般的核心開機進入單使用者模式 (Single-user mode) 可:
-[source,bash]
+[source,shell]
....
boot -s
....
要卸載一般的核心與模組,然後載入先前或另一個指定的核心可:
-[source,bash]
+[source,shell]
....
unload
load kernel.old
@@ -237,7 +237,7 @@ loader 接著會讀取 [.filename]#/boot/loader.rc#,這個程式預設又會
使用以下指令來使用另一個核心載入一般的模組:
-[source,bash]
+[source,shell]
....
unload
set kernel="kernel.old"
@@ -246,7 +246,7 @@ loader 接著會讀取 [.filename]#/boot/loader.rc#,這個程式預設又會
要載入一個已自動化的核心設置 Script 可:
-[source,bash]
+[source,shell]
....
load -t userconfig_script /boot/kernel.conf
....
@@ -388,14 +388,14 @@ vesa_load="YES"
[.filename]#/boot/device.hints# 的語法為一個變數一行,使用井字號 "#" 做為註解符號,每一行的結構如下:
-[source,bash]
+[source,shell]
....
hint.driver.unit.keyword="value"
....
在階段 3 開機載入程式的語法則為:
-[source,bash]
+[source,shell]
....
set hint.driver.unit.keyword=value
....
diff --git a/documentation/content/zh-tw/books/handbook/bsdinstall/_index.adoc b/documentation/content/zh-tw/books/handbook/bsdinstall/_index.adoc
index ebab3a803a..3af5550c37 100644
--- a/documentation/content/zh-tw/books/handbook/bsdinstall/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/bsdinstall/_index.adoc
@@ -207,7 +207,7 @@ FreeBSD 的安裝檔可於 https://www.FreeBSD.org/where/#download[www.freebsd.o
======
. man:dd[1] 指令列工具在 BSD, Linux(TM) 以及Mac OS(TM) 系統皆可使用。要使用 `dd` 燒錄映像檔需先插入 USB 隨身碟,然後確認隨身碟的裝置名稱。然後指定已下載的安裝檔名稱以及 USB 隨身碟的裝置名稱。本例示範在已有的 FreeBSD 系統燒錄 amd64 安裝映像檔到第一個 USB 裝置。
+
-[source,bash]
+[source,shell]
....
# dd if=FreeBSD-10.2-RELEASE-amd64-memstick.img of=/dev/da0 bs=1M conv=sync
....
@@ -269,7 +269,7 @@ commit your changes?
在大部份機型,可於開機時按住鍵盤上的 kbd:[C],便可從 CD 開機。若在非 Apple(TM) 的鍵盤則可按住 kbd:[Command+Option+O+F] 或 kbd:[Windows+Alt+O+F],出現 `0 >` 提示時,輸入
-[source,bash]
+[source,shell]
....
boot cd:,\ppc\loader cd:0
....
@@ -280,7 +280,7 @@ boot cd:,\ppc\loader cd:0
要進入 PROM,需重新開機系統然後等候開機訊息出現。訊息會依機型而有所不同,但大致結果會如:
-[source,bash]
+[source,shell]
....
Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 1998-2001 Sun Microsystems, Inc. All rights reserved.
@@ -946,7 +946,7 @@ FreeBSD 開機的過程會顯示許多可以參考的訊息,系統開機完成
若在 <<bsdinstall-config-serv>> 有開啟 sshd,因系統會產生 RSA 及 DSA 金鑰第一次開機可能會有點慢,之後的開機便會恢復正常速度。接著會顯示金鑰的指紋 (Fingerprint),如這個範例:
-[source,bash]
+[source,shell]
....
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
@@ -1007,7 +1007,7 @@ FreeBSD 預設並不會安裝圖型化介面,請參考 crossref:x11[x11,X Wind
若系統在開機偵測硬體時卡住或安裝時運作異常,可能主因為 ACPI,FreeBSD 在 i386, amd64 及 ia64 平台廣泛的使用了系統 ACPI 服務來協助設定系統組態,若在開機時有偵測到該功能。不幸的是,ACPI 驅動程式與系統主機板及 BIOS 韌體之間仍存在部份問題。可於開機載入程式的第三階段設定 `hint.acpi.0.disabled` Hint 來關閉 ACPI:
-[source,bash]
+[source,shell]
....
set hint.acpi.0.disabled="1"
....
diff --git a/documentation/content/zh-tw/books/handbook/config/_index.adoc b/documentation/content/zh-tw/books/handbook/config/_index.adoc
index 7644707450..babbd9fa67 100644
--- a/documentation/content/zh-tw/books/handbook/config/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/config/_index.adoc
@@ -159,7 +159,7 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <.>
要建立一個使用者 crontab 可使用編輯模式執行 `crontab`:
-[source,bash]
+[source,shell]
....
% crontab -e
....
@@ -198,7 +198,7 @@ env -i SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/home/dru LOGN
編輯完成 crontab 之後儲存檔案,編輯完的 crontab 會被自動安裝且 cron 會讀取該 crontab 並在其指定的時指執行其 cron job。要列出 crontab 中有那一些 cron job 可以使用此指令:
-[source,bash]
+[source,shell]
....
% crontab -l
0 14 * * * /usr/home/dru/bin/mycustomscript.sh
@@ -206,7 +206,7 @@ env -i SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/home/dru LOGN
要移除使用在使用者 crontab 中的 cron job 可:
-[source,bash]
+[source,shell]
....
% crontab -r
remove crontab for dru? y
@@ -217,7 +217,7 @@ remove crontab for dru? y
FreeBSD 在系統初始化時使用 man:rc[8] 系統的啟動 Script。列於 [.filename]#/etc/rc.d# 的 Script 提供了基本的服務可使用 man:service[8] 加上 `start`, `stop` 以及 `restart` 選項來控制。例如,使用以下指令可以重新啟動 man:sshd[8]:
-[source,bash]
+[source,shell]
....
# service sshd restart
....
@@ -233,14 +233,14 @@ natd_enable="YES"
由於 man:rc[8] 系統主要用於在系統開機與關機時啟動與停止服務,只有當有服務的變數設定在 [.filename]#/etc/rc.conf# 時 `start`, `stop` 以及 `restart` 才會有作用。例如 `sshd restart` 只會在 [.filename]#/etc/rc.conf# 中的 `sshd_enable` 設為 `YES` 時才會運作,若要不透過 [.filename]#/etc/rc.conf# 的設定來 `start`, `stop` 或 `restart` 一個服務則需要在指令前加上 "one",例如要不透過目前在 [.filename]#/etc/rc.conf# 的設定重新啟動 man:sshd[8] 可執行以下指令:
-[source,bash]
+[source,shell]
....
# service sshd onerestart
....
要檢查一個服務是否有在 [.filename]#/etc/rc.conf# 開啟,可執行服務的 man:rc[8] Script 加上 `rcvar`。這個例子會檢查 man:sshd[8] 是否在 [.filename]#/etc/rc.conf# 已經開啟:
-[source,bash]
+[source,shell]
....
# service sshd rcvar
# sshd
@@ -256,7 +256,7 @@ sshd_enable="YES"
要判斷是一個服務是否正在執行,可使用 `status`,例如要確認 man:sshd[8] 是否正常在執行:
-[source,bash]
+[source,shell]
....
# service sshd status
sshd is running as pid 433.
@@ -266,7 +266,7 @@ sshd is running as pid 433.
man:rc[8] 系統會用在網路服務及也應用在大多數的系統初化 。例如執行 [.filename]#/etc/rc.d/bgfsck# Script 會列印出以下訊息:
-[source,bash]
+[source,shell]
....
Starting background file system checks in 60 seconds.
....
@@ -335,7 +335,7 @@ ifconfig_fxp0="inet 10.1.1.1/8"
[.filename]#GENERIC# 核心已有內含常見 NIC 的驅動程式 ,意思是在開機時應該會偵測到 NIC。可以輸入 `more /var/run/dmesg.boot` 來檢視系統的開機訊息並使用空白鍵捲動文字。在此例中,兩個乙太網路 NIC 使用系統已有的 man:dc[4] 驅動程式:
-[source,bash]
+[source,shell]
....
dc0: <82c169 PNIC 10/100BaseTX> port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0
@@ -377,21 +377,21 @@ FreeBSD 對 Network Driver Interface Specification (NDIS) 有提供 "原生" 的
下個步驟是編譯驅動程式 Binary 成可載入的核心模組。以 `root` 身份使用 man:ndisgen[8]:
-[source,bash]
+[source,shell]
....
# ndisgen /path/to/W32DRIVER.INF /path/to/W32DRIVER.SYS
....
這個指令是互動式的,會提示輸入任何所需的額外資訊,新的核心模組會被產生在目前的目錄,使用 man:kldload[8] 來載入新的模組:
-[source,bash]
+[source,shell]
....
# kldload ./W32DRIVER_SYS.ko
....
除了產生的核心模組之外,[.filename]#ndis.ko# 以及 [.filename]#if_ndis.ko# 也必須載入,會在任何有相依 man:ndis[4] 的模組被載入時一併自動載入。若沒有自動載入,則需使用以下指令手動載入:
-[source,bash]
+[source,shell]
....
# kldload ndis
# kldload if_ndis
@@ -401,7 +401,7 @@ FreeBSD 對 Network Driver Interface Specification (NDIS) 有提供 "原生" 的
檢查 man:dmesg[8] 查看是否有任何載入錯誤,若一切正常,輸出結果應會如下所示:
-[source,bash]
+[source,shell]
....
ndis0: <Wireless-G PCI Adapter> mem 0xf4100000-0xf4101fff irq 3 at device 8.0 on pci1
ndis0: NDIS API version: 5.0
@@ -425,7 +425,7 @@ W32DRIVER_SYS_load="YES"
要查看 NIC 設定可輸入以下指令:
-[source,bash]
+[source,shell]
....
% ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
@@ -468,7 +468,7 @@ FreeBSD 會使用驅動程式名稱接著開機時所偵測到的介面卡順序
若 man:ifconfig[8] 的輸出結果如下:
-[source,bash]
+[source,shell]
....
dc0: flags=8843<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
@@ -511,7 +511,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
若沒有 DHCP 伺服器且需要存取網際網路,那麼需要手動設定預設閘道及名稱伺服器:
-[source,bash]
+[source,shell]
....
# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf
# echo 'nameserver your_DNS_server' >> /etc/resolv.conf
@@ -524,7 +524,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
必要的變更儲存到 [.filename]#/etc/rc.conf# 之後,需要重新啟動系統來測試網路設定並檢查系統重新啟動是否沒有任何設定錯誤。或者使用這個指令將設定套用到網路系統:
-[source,bash]
+[source,shell]
....
# service netif restart
....
@@ -533,7 +533,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
====
若預設的通訊閘已設定於 [.filename]#/etc/rc.conf# 也同樣要下這個指令:
-[source,bash]
+[source,shell]
....
# service routing restart
....
@@ -546,7 +546,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
要檢查乙太網路卡是否已正確設定可 man:ping[8] 介面卡自己,然後 man:ping[8] 其他於 LAN 上的主機:
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
@@ -561,7 +561,7 @@ PING 192.168.1.3 (192.168.1.3): 56 data bytes
round-trip min/avg/max/stddev = 0.074/0.083/0.108/0.013 ms
....
-[source,bash]
+[source,shell]
....
% ping -c5 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
@@ -804,14 +804,14 @@ Multiple `-a` options may be specified to allow logging from multiple clients. I
Finally, create the log file:
-[source,bash]
+[source,shell]
....
# touch /var/log/logclient.log
....
At this point, syslogd should be restarted and verified:
-[source,bash]
+[source,shell]
....
# service syslogd restart
# pgrep syslog
@@ -842,14 +842,14 @@ Next, define the logging server in the client's [.filename]#/etc/syslog.conf#. I
After saving the edit, restart syslogd for the changes to take effect:
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
To test that log messages are being sent across the network, use man:logger[1] on the client to send a message to syslogd:
-[source,bash]
+[source,shell]
....
# logger "Test message from logclient"
....
@@ -867,14 +867,14 @@ If the `ping` succeeds on both hosts but log messages are still not being receiv
syslogd_flags="-d -a logclient.example.com -v -v"
....
-[source,bash]
+[source,shell]
....
# service syslogd restart
....
Debugging data similar to the following will flash on the console immediately after the restart:
-[source,bash]
+[source,shell]
....
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
syslogd: restarted
@@ -888,7 +888,7 @@ rejected in rule 0 due to name mismatch.
In this example, the log messages are being rejected due to a typo which results in a hostname mismatch. The client's hostname should be `logclient`, not `logclien`. Fix the typo, issue a restart, and verify the results:
-[source,bash]
+[source,shell]
....
# service syslogd restart
logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart
@@ -1049,14 +1049,14 @@ man:sysctl[8] 主要提供兩個功能:讀取與修改系統設定。
檢視所有可讀取的變數:
-[source,bash]
+[source,shell]
....
% sysctl -a
....
要讀取特定變數只要指定其名稱:
-[source,bash]
+[source,shell]
....
% sysctl kern.maxproc
kern.maxproc: 1044
@@ -1064,7 +1064,7 @@ kern.maxproc: 1044
要設定特定變數可使用 _variable_=_value_ 語法:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxfiles=5000
kern.maxfiles: 2088 -> 5000
@@ -1098,7 +1098,7 @@ security.bsd.see_other_uids=0
例如,某些筆電型號的 man:cardbus[4] 裝置無法偵測到記憶體範圍而且會失效並有類似以下的錯誤:
-[source,bash]
+[source,shell]
....
cbb0: Could not map register memory
device_probe_and_attach: cbb0 attach returned 12
@@ -1146,7 +1146,7 @@ The `SCSI_DELAY` kernel configuration option may be used to reduce system boot t
To fine-tune a file system, use man:tunefs[8]. This program has many different options. To toggle Soft Updates on and off, use:
-[source,bash]
+[source,shell]
....
# tunefs -n enable /filesystem
# tunefs -n disable /filesystem
@@ -1232,7 +1232,7 @@ A vnode is the internal representation of a file or directory. Increasing the nu
To see the current number of vnodes in use:
-[source,bash]
+[source,shell]
....
# sysctl vfs.numvnodes
vfs.numvnodes: 91349
@@ -1240,7 +1240,7 @@ vfs.numvnodes: 91349
To see the maximum vnodes:
-[source,bash]
+[source,shell]
....
# sysctl kern.maxvnodes
kern.maxvnodes: 100000
@@ -1262,7 +1262,7 @@ If the current vnode usage is near the maximum, try increasing `kern.maxvnodes`
使用 `swapon` 來增加交換分割區到系統,例:
-[source,bash]
+[source,shell]
....
# swapon /dev/ada1s1b
....
@@ -1298,14 +1298,14 @@ If the current vnode usage is near the maximum, try increasing `kern.maxvnodes`
======
. 建立交換檔:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1m count=64
....
+
. 在新檔案設定適當的權限:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1320,7 +1320,7 @@ md99 none swap sw,file=/usr/swap0,late 0 0
已使用 man:md[4] 裝置的 [.filename]#md99#,保留較低的裝置編號供互動操作時使用。
. 交換空間會於系統啟動時增加。若要立即增加交換空間,請參考 man:swapon[8]:
+
-[source,bash]
+[source,shell]
....
# swapon -aL
....
@@ -1336,14 +1336,14 @@ md99 none swap sw,file=/usr/swap0,late 0 0
======
. 建立交換檔 [.filename]#/usr/swap0#:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/usr/swap0 bs=1m count=64
....
+
. 設定適當的權限於 [.filename]#/usr/swap0#:
+
-[source,bash]
+[source,shell]
....
# chmod 0600 /usr/swap0
....
@@ -1357,7 +1357,7 @@ swapfile="/usr/swap0" # Set to name of swap file
+
. 交換空間會於系統啟動時增加。若要立即增加交換空間,可指定一個未使用的記憶體裝置。請參考 crossref:disks[disks-virtual,記憶體磁碟] 取得更多有關記憶體裝置的資訊。
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0
....
@@ -1412,7 +1412,7 @@ ACPI has three suspend to RAM (STR) states, `S1`-`S3`, and one suspend to disk s
Use `sysctl hw.acpi` to check for the suspend-related items. These example results are from a Thinkpad:
-[source,bash]
+[source,shell]
....
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0
@@ -1424,7 +1424,7 @@ When testing suspend/resume, start with `S1`, if supported. This state is most l
A common problem with suspend/resume is that many device drivers do not save, restore, or reinitialize their firmware, registers, or device memory properly. As a first attempt at debugging the problem, try:
-[source,bash]
+[source,shell]
....
# sysctl debug.bootverbose=1
# sysctl debug.acpi.suspend_bounce=1
@@ -1464,7 +1464,7 @@ First, try setting `hw.acpi.disable_on_poweroff="0"` in [.filename]#/boot/loader
Some BIOS vendors provide incorrect or buggy bytecode. This is usually manifested by kernel console messages like this:
-[source,bash]
+[source,shell]
....
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC0.FIGD._STA] \\
(Node 0xc3f6d160), AE_NOT_FOUND
@@ -1480,7 +1480,7 @@ The goal of FreeBSD is for everyone to have working ACPI without any user interv
To help identify buggy behavior and possibly fix it manually, a copy can be made of the system's ASL. To copy the system's ASL to a specified file name, use `acpidump` with `-t`, to show the contents of the fixed tables, and `-d`, to disassemble the AML:
-[source,bash]
+[source,shell]
....
# acpidump -td > my.asl
....
@@ -1489,7 +1489,7 @@ Some AML versions assume the user is running Windows(TM). To override this, set
Other workarounds may require [.filename]#my.asl# to be customized. If this file is edited, compile the new ASL using the following command. Warnings can usually be ignored, but errors are bugs that will usually prevent ACPI from working correctly.
-[source,bash]
+[source,shell]
....
# iasl -f my.asl
....
@@ -1513,7 +1513,7 @@ The ACPI driver has a flexible debugging facility. A set of subsystems and the l
Debugging output is not enabled by default. To enable it, add `options ACPI_DEBUG` to the custom kernel configuration file if ACPI is compiled into the kernel. Add `ACPI_DEBUG=1` to [.filename]#/etc/make.conf# to enable it globally. If a module is used instead of a custom kernel, recompile just the [.filename]#acpi.ko# module as follows:
-[source,bash]
+[source,shell]
....
# cd /sys/modules/acpi/acpi && make clean && make ACPI_DEBUG=1
....
@@ -1543,7 +1543,7 @@ When submitting a problem report, include the following information:
* Output from `sysctl hw.acpi`. This lists which features the system offers.
* The URL to a pasted version of the system's ASL. Do _not_ send the ASL directly to the list as it can be very large. Generate a copy of the ASL by running this command:
+
-[source,bash]
+[source,shell]
....
# acpidump -dt > name-system.asl
....
diff --git a/documentation/content/zh-tw/books/handbook/cutting-edge/_index.adoc b/documentation/content/zh-tw/books/handbook/cutting-edge/_index.adoc
index bf142d5666..5b2db37acb 100644
--- a/documentation/content/zh-tw/books/handbook/cutting-edge/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/cutting-edge/_index.adoc
@@ -152,7 +152,7 @@ MergeChanges /etc/ /var/named/etc/ /boot/device.hints
FreeBSD 安全性修補可以使用以下指令下載並安裝。 第一個指令會偵測是否有可用的修補,如果有,將列出若執行修補後會變更的檔案清單。第二個指令將會套用修補。
-[source,bash]
+[source,shell]
....
# freebsd-update fetch
# freebsd-update install
@@ -171,7 +171,7 @@ FreeBSD 安全性修補可以使用以下指令下載並安裝。 第一個指
如果有發生任何錯誤,`freebsd-update` 可以使用以下指令還原最後所做的變更:
-[source,bash]
+[source,shell]
....
# freebsd-update rollback
Uninstalling updates... done.
@@ -202,14 +202,14 @@ Uninstalling updates... done.
在 FreeBSD 9.0 系統執行以下指令,將會把系統升級至 FreeBSD 9.1:
-[source,bash]
+[source,shell]
....
# freebsd-update -r 9.1-RELEASE upgrade
....
收到這個指令後,`freebsd-update` 會開始評估設定檔和目前的系統來收集升級所需的資訊。 螢幕會顯示偵測到或沒偵測到的元件清單。例如:
-[source,bash]
+[source,shell]
....
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update1.FreeBSD.org... done.
@@ -233,7 +233,7 @@ Does this look reasonable (y/n)? y
當使用自訂核心,上述的步驟將會產生如下的警告:
-[source,bash]
+[source,shell]
....
WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 9.0-RELEASE.
@@ -249,7 +249,7 @@ before running "/usr/sbin/freebsd-update install"
====
所有的修補與合併動作會在另一個目錄進行,並不會直接修改。當成功套用所有修補,所有設定檔已合併且過程順利,使用者可使用以下指令將變更安裝到磁碟:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -258,7 +258,7 @@ before running "/usr/sbin/freebsd-update install"
核心與核心模組會先修補,若系統正在執行自訂的核心,使用 man:nextboot[8] 來設定下次開機使用更新過的 [.filename]#/boot/GENERIC#:
-[source,bash]
+[source,shell]
....
# nextboot -k GENERIC
....
@@ -271,14 +271,14 @@ before running "/usr/sbin/freebsd-update install"
機器現在應使用更新過的核心重新開機:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
一旦系統重新上線,使用以下指令繼續 `freebsd-update`。 由於程序的狀態已被儲存,`freebsd-update` 不會重頭開始,但會進行下一個階段並移除所有舊的共用程式庫和目標檔。
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -297,7 +297,7 @@ before running "/usr/sbin/freebsd-update install"
若有編譯自訂核心過超過一次,或已經不曉得編譯自訂核心的次數,則需取得與目前作業系統版本相符的 `GENERIC` 核心複本。若可直接操作實體系統,則可以從安裝媒體取得 `GENERIC` 核心複本:
-[source,bash]
+[source,shell]
....
# mount /cdrom
# cd /cdrom/usr/freebsd-dist
@@ -306,7 +306,7 @@ before running "/usr/sbin/freebsd-update install"
或者,可以從原始碼重新編譯 `GENERIC` 核心:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make kernel __MAKE_CONF=/dev/null SRCCONF=/dev/null
@@ -323,14 +323,14 @@ before running "/usr/sbin/freebsd-update install"
強制升級所有已安裝的套件會使用檔案庫中新版本的套件來取得目前套件,即使該版號沒有增加。由於在升級 FreeBSD 主要版本時會變更 ABI 版本,因此這是必要動作。強制升級可以執行以下指令來完成:
-[source,bash]
+[source,shell]
....
# pkg-static upgrade -f
....
重新編譯所有已安裝的應用程式可以執行以下指令來完成:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
@@ -339,7 +339,7 @@ before running "/usr/sbin/freebsd-update install"
完成軟體升級後,最後需執行 `freebsd-update` 來完成最後的升級動作:
-[source,bash]
+[source,shell]
....
# freebsd-update install
....
@@ -361,7 +361,7 @@ before running "/usr/sbin/freebsd-update install"
要開始比對,需指定輸出的檔案來儲存結果:
-[source,bash]
+[source,shell]
....
# freebsd-update IDS >> outfile.ids
....
@@ -370,7 +370,7 @@ before running "/usr/sbin/freebsd-update install"
清單中的項目會相當的多,但輸出的格式可以很簡單的用來分析。例如,要取得與發佈版本不同的檔案清單,可使用以下指令:
-[source,bash]
+[source,shell]
....
# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
@@ -397,7 +397,7 @@ before running "/usr/sbin/freebsd-update install"
安裝完成之後,可使用 svnlite 來取得乾淨的文件原始碼複本:
-[source,bash]
+[source,shell]
....
# svnlite checkout https://svn.FreeBSD.org/doc/head /usr/doc
....
@@ -406,7 +406,7 @@ before running "/usr/sbin/freebsd-update install"
往後更新文件原始碼可執行:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/doc
....
@@ -415,7 +415,7 @@ before running "/usr/sbin/freebsd-update install"
完整更新所有可用的語言可以執行:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make install clean
@@ -423,7 +423,7 @@ before running "/usr/sbin/freebsd-update install"
若只想要更新特定語言,可對 [.filename]#/usr/doc# 中特定語言的子目錄執行 `make`:
-[source,bash]
+[source,shell]
....
# cd /usr/doc/en_US.ISO8859-1
# make install clean
@@ -431,14 +431,14 @@ before running "/usr/sbin/freebsd-update install"
另一個更新文件的方式是在 [.filename]#/usr/doc# 或特定的語言子目錄下執行此指令:
-[source,bash]
+[source,shell]
....
# make update
....
要指定安裝的輸出格式可使用 `FORMATS` 來設定:
-[source,bash]
+[source,shell]
....
# cd /usr/doc
# make FORMATS='html html-split' install clean
@@ -477,7 +477,7 @@ before running "/usr/sbin/freebsd-update install"
當使用 Binary 套件時,會安裝指定語言 FreeBSD 文件的所有可用格式。例如以下指令會安裝最新的匈牙利語文件套件:
-[source,bash]
+[source,shell]
....
# pkg install hu-freebsd-doc
....
@@ -489,7 +489,7 @@ before running "/usr/sbin/freebsd-update install"
要指定文件的格式,需以編譯 Port 來代替安裝套件。例如要編譯並安裝英語文件:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-en
# make install clean
@@ -510,7 +510,7 @@ Port 提供設定選單來指定要編譯與安裝的格式,預設會選擇分
以下範例使用變數來安裝 PDF 的匈牙利語文件到特定目錄:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/misc/freebsd-doc-hu
# make -DWITH_PDF DOCBASE=share/doc/freebsd/hu install clean
@@ -518,7 +518,7 @@ Port 提供設定選單來指定要編譯與安裝的格式,預設會選擇分
文件套件或 Port 可以依 crossref:ports[ports,安裝應用程式:套件與 Port] 的說明更新。例如以下指令會使用 package:ports-mgmt/portmaster[] 更新已安裝的匈牙利語文件:
-[source,bash]
+[source,shell]
....
# portmaster -PP hu-freebsd-doc
....
@@ -594,7 +594,7 @@ FreeBSD-STABLE 是一個開發分支,會在主要的版本更新後產生,
. 更新並編譯
+
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src <.>
check /usr/src/UPDATING <.>
@@ -639,7 +639,7 @@ check /usr/src/UPDATING <.>
FreeBSD 的原始碼位於 [.filename]#/usr/src/#,較建議透過 Subversion 版本控制系統來更新這份原始碼,要確認原始碼已在版本控制系統的管控下可:
-[source,bash]
+[source,shell]
....
# svnlite info /usr/src
Path: /usr/src
@@ -649,7 +649,7 @@ Working Copy Root Path: /usr/src
此結果代表 [.filename]#/usr/src/# 已在版本控制系統的管控下並且可以使用 man:svnlite[1] 來更新:
-[source,bash]
+[source,shell]
....
# svnlite update /usr/src
....
@@ -688,7 +688,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
查看 FreeBSD 目前使用的版本可使用 man:uname[1]:
-[source,bash]
+[source,shell]
....
# uname -r
10.3-RELEASE
@@ -696,7 +696,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
根據 <<updating-src-obtaining-src-repopath>>,要更新 `10.3-RELEASE` 需使用的原始碼檔案庫路徑為 `base/releng/10.3`,在取出 (checkout) 原始碼時便要使用這個路徑:
-[source,bash]
+[source,shell]
....
# mv /usr/src /usr/src.bak <.>
# svnlite checkout https://svn.freebsd.org/base/releng/10.3 /usr/src <.>
@@ -712,7 +712,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
編譯世界 (_world_) 即編譯整個作業系統除了核心 (Kernel),要先做這個動作以便提供最新的工具來編譯核心,接著便可編譯核心:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildworld
@@ -728,7 +728,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
部份 FreeBSD 編譯系統版本會保留先前編譯的程式於暫存的物件目錄 [.filename]#/usr/obj#,避免重新編譯那些尚未更動過的程式碼可加速後續的編譯動作,若要強制重新編譯所有東西可在開始編譯前使用 `cleanworld`:
-[source,bash]
+[source,shell]
....
# make cleanworld
....
@@ -744,7 +744,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
====
使用四個工作來編譯世界與核心:
-[source,bash]
+[source,shell]
....
# make -j4 buildworld buildkernel
....
@@ -756,7 +756,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
若原始碼有更動,便須執行 `buildworld`,完成之後,便可隨時執行 `buildkernel` 來編譯核心,若要只編譯核心可:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make buildkernel
@@ -779,7 +779,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
自訂設定檔可由複製 [.filename]#GENERIC# 設定檔來建立,在此範例,新的自訂核心要用在儲存伺服器,所以將其命名為 [.filename]#STORAGESERVER#:
-[source,bash]
+[source,shell]
....
# cp /usr/src/sys/amd64/conf/GENERIC /root/STORAGESERVER
# cd /usr/src/sys/amd64/conf
@@ -790,7 +790,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
自訂核心要在指令列設定 `KERNCONF` 為核心設定檔來編譯:
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=STORAGESERVER
....
@@ -800,7 +800,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
在完成 `buildworld` 與 `buildkernel` 兩個步驟之後,便可安裝新的核心與世界:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel
@@ -812,7 +812,7 @@ STABLE 分支偶爾也會有錯誤或無法相容的問題會影響使用者,
若使用自訂核心,則同樣須設定 `KERNCONF` 來使用新的自訂核心:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make installkernel KERNCONF=STORAGESERVER
@@ -834,7 +834,7 @@ man:mergemaster[8] 可簡單的將修改過的系統設定檔與新版設定檔
使用 `-Ui`,man:mergemaster[8] 會自動更新那些未被使用者修改過的設定檔並安裝尚不存在的檔案:
-[source,bash]
+[source,shell]
....
# mergemaster -Ui
....
@@ -846,28 +846,28 @@ man:mergemaster[8] 可簡單的將修改過的系統設定檔與新版設定檔
部份廢棄的檔案或目錄可以在更新之後保留,可使用以下指令找出這些檔案:
-[source,bash]
+[source,shell]
....
# make check-old
....
並用以下指令刪除:
-[source,bash]
+[source,shell]
....
# make delete-old
....
部份廢棄的程式庫也可以保留下來,可使用以下指令來偵測這些程式庫:
-[source,bash]
+[source,shell]
....
# make check-old-libs
....
並使用以下指令刪除
-[source,bash]
+[source,shell]
....
# make delete-old-libs
....
@@ -879,7 +879,7 @@ man:mergemaster[8] 可簡單的將修改過的系統設定檔與新版設定檔
當確認所有舊檔案或目錄可安全的刪除時,要避免刪除每一個檔案時均需按下 kbd:[y] 與 kbd:[Enter] 鍵可在指令設定 `BATCH_DELETE_OLD_FILES`,例如:
-[source,bash]
+[source,shell]
....
# make BATCH_DELETE_OLD_FILES=yes delete-old-libs
....
@@ -891,7 +891,7 @@ man:mergemaster[8] 可簡單的將修改過的系統設定檔與新版設定檔
更新之後的最後一個步驟便是重新啟動電腦,來讓所有的變更生效:
-[source,bash]
+[source,shell]
....
# shutdown -r now
....
diff --git a/documentation/content/zh-tw/books/handbook/desktop/_index.adoc b/documentation/content/zh-tw/books/handbook/desktop/_index.adoc
index 6746fe8250..ee388acd4f 100644
--- a/documentation/content/zh-tw/books/handbook/desktop/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/desktop/_index.adoc
@@ -108,14 +108,14 @@ Firefox 是一套開放源始碼的瀏覽器,它具備符合 HTML 標準的顯
要安裝最新釋出版本的 Firefox 套件可輸入:
-[source,bash]
+[source,shell]
....
# pkg install firefox
....
要安裝延長支援發佈 (Extended Support Release, ESR) 版本的 Firefox,可使用:
-[source,bash]
+[source,shell]
....
# pkg install firefox-esr
....
@@ -124,7 +124,7 @@ Firefox 是一套開放源始碼的瀏覽器,它具備符合 HTML 標準的顯
使用 Port 套件地可以用原始碼編譯成您想要的 Firefox 版本。此範例編譯 package:www/firefox[],其中 `firefox` 可替換為 ESR 或在地化版本來安裝。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/firefox
# make install clean
@@ -136,14 +136,14 @@ Opera 是個具備完整功能、符合標準且輕量、執行速度快的瀏
以下指令可安裝 FreeBSD Binary 套件版本的 Opera,替換 `opera` 為 `linux-opera` 則可改安裝 Linux(TM) 版本。
-[source,bash]
+[source,shell]
....
# pkg install opera
....
或者,可安裝 Port 套件集中的版本,以下範例會編譯原生的版本:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/opera
# make install clean
@@ -153,7 +153,7 @@ Opera 是個具備完整功能、符合標準且輕量、執行速度快的瀏
要安裝 Adobe(TM)Flash(TM) 附加元件,需先編譯 package:www/linux-flashplayer[] Port,因受到授權條款限制無法事先編譯為 Binary 套件。然後再安裝 package:www/opera-linuxplugins[]。以下範例示範如何編譯 Port 中的這兩個應用程式:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/linux-flashplayer
# make install clean
@@ -171,14 +171,14 @@ Konqueror 不只是個網頁瀏覽器, 它同時也是檔案管理器和多媒
Konqueror 使用支援 WebKit 以及它自有的 KTHML。WebKit 是一套被許多現代瀏覽器所使用的繪圖引擎,包含 Chromium。要在 FreeBSD 的 Konqueror 使用 WebKit 需安裝 package:www/kwebkitpart[] 套件或 Port。此範例示範使用 Binary 套件安裝:
-[source,bash]
+[source,shell]
....
# pkg install kwebkitpart
....
從 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/kwebkitpart
# make install clean
@@ -194,14 +194,14 @@ Chromium 是一個開放源始碼的瀏覽器計劃,該計劃的目標是要
Chromium 可以使用套件來安裝,只要輸入:
-[source,bash]
+[source,shell]
....
# pkg install chromium
....
或者可從 Port 套件集的原始碼編譯 Chromium:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/www/chromium
# make install clean
@@ -259,14 +259,14 @@ KDE 桌面環境中內含辦公軟體可以與 KDE 分開安裝。Calligra 中
在 FreeBSD 中 package:editors/calligra[] 可以使用套件或 Port 的方式安裝,要使用套件安裝:
-[source,bash]
+[source,shell]
....
# pkg install calligra
....
若沒有可用的套件,可改使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/calligra
# make install clean
@@ -280,14 +280,14 @@ AbiWord 可以輸入或輸出許多檔案格式, 包括一些有專用的格
要安裝 AbiWord Binary 套件,可使用下列指令:
-[source,bash]
+[source,shell]
....
# pkg install abiword
....
若沒有 Binary 套件版本,也可以從 Port 套件集中編譯安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/abiword
# make install clean
@@ -299,14 +299,14 @@ AbiWord 可以輸入或輸出許多檔案格式, 包括一些有專用的格
要安裝套件可:
-[source,bash]
+[source,shell]
....
# pkg install gimp
....
或使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/gimp
# make install clean
@@ -322,14 +322,14 @@ Apache OpenOffice 的文字處理器使用原生的 XML 檔案格式來增加移
要安裝 Apache OpenOffice 套件:
-[source,bash]
+[source,shell]
....
# pkg install apache-openoffice
....
當套件安裝完成之後,只要輸入下面的指令就能執行 Apache OpenOffice:
-[source,bash]
+[source,shell]
....
% openoffice-X.Y.Z
....
@@ -338,7 +338,7 @@ Apache OpenOffice 的文字處理器使用原生的 XML 檔案格式來增加移
若無法由套件取得想要的 Apache OpenOffice,仍可選擇從 Port 編譯。 不過必須注意:編譯的過程會需要大量的磁碟空間與時間:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/openoffice-4
# make install clean
@@ -348,7 +348,7 @@ Apache OpenOffice 的文字處理器使用原生的 XML 檔案格式來增加移
====
如果想要編譯在地化的版本,將前面的指令替換成為:
-[source,bash]
+[source,shell]
....
# make LOCALIZED_LANG=your_language install clean
....
@@ -364,7 +364,7 @@ LibreOffice 的文件處理程式使用了原生的 XML 檔案格式來增加可
要安裝英文版本的 LibreOffice 套件:
-[source,bash]
+[source,shell]
....
# pkg install libreoffice
....
@@ -373,7 +373,7 @@ Port 套件集的編輯器分類 (https://www.FreeBSD.org/ports/[freebsd.org/por
套件安裝之後,輸入以下指令來執行 LibreOffice:
-[source,bash]
+[source,shell]
....
% libreoffice
....
@@ -382,7 +382,7 @@ Port 套件集的編輯器分類 (https://www.FreeBSD.org/ports/[freebsd.org/por
若找不到想使用的 LibreOffice 套件,也可從 Port 編譯,但這會要大量的磁碟空間及漫長的時間編譯。以下例子示範編譯英文版本:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/editors/libreoffice
# make install clean
@@ -438,14 +438,14 @@ UNIX(TM) 出現之後,有一些新的文件格式才越來越熱門,這些
安裝 Xpdf 套件:
-[source,bash]
+[source,shell]
....
# pkg install xpdf
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/xpdf
# make install clean
@@ -459,14 +459,14 @@ gv 是 PostScript(TM) 和 PDF 的閱覽器。 它建構於 ghostview 的基礎
安裝 gv 套件:
-[source,bash]
+[source,shell]
....
# pkg install gv
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/print/gv
# make install clean
@@ -478,14 +478,14 @@ Geeqie 是由已經停止維護的 GQView 專案所衍伸出來的分支,並
安裝 Geeqie 套件:
-[source,bash]
+[source,shell]
....
# pkg install geeqie
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/geeqie
# make install clean
@@ -497,14 +497,14 @@ ePDFView 是一套小巧的 PDF 文件檢視程式,只使用了 Gtk+ 與 Poppl
要以套件安裝 ePDFView:
-[source,bash]
+[source,shell]
....
# pkg install epdfview
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/epdfview
# make install clean
@@ -516,14 +516,14 @@ Okular 是一套通用的文件檢視程式,以 KDE 的 KPDF 為基礎。它
要以套件安裝 Okular:
-[source,bash]
+[source,shell]
....
# pkg install okular
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/okular
# make install clean
@@ -568,14 +568,14 @@ GnuCash 提供了智慧的計數器、多階層帳戶系統以及快速鍵及自
安裝 GnuCash 套件:
-[source,bash]
+[source,shell]
....
# pkg install gnucash
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/gnucash
# make install clean
@@ -587,14 +587,14 @@ Gnumeric 是 GNOME 社群所開發的試算表程式。 它的特點是擁有能
安裝 Gnumeric 套件:
-[source,bash]
+[source,shell]
....
# pkg install gnumeric
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/math/gnumeric
# make install clean
@@ -606,14 +606,14 @@ KMyMoney 是一套個人財務應用程式,由 KDE 社群所開發。KMyMoney
要以套件安裝 KMyMoney:
-[source,bash]
+[source,shell]
....
# pkg install kmymoney-kde4
....
若沒有可用的套件版本,可使用 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/finance/kmymoney-kde4
# make install clean
diff --git a/documentation/content/zh-tw/books/handbook/disks/_index.adoc b/documentation/content/zh-tw/books/handbook/disks/_index.adoc
index 39e2a650d6..576534b016 100644
--- a/documentation/content/zh-tw/books/handbook/disks/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/disks/_index.adoc
@@ -83,7 +83,7 @@ toc::[]
建立完分割表格式後接著加入一個分割區,要在新的磁碟增進效能可使用較大的硬體區塊大小 (Block size),此分割區會對齊 1 MB 的邊界:
-[source,bash]
+[source,shell]
....
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
@@ -93,7 +93,7 @@ toc::[]
磁碟分割區資訊可以使用 `gpart show` 檢視:
-[source,bash]
+[source,shell]
....
% gpart show ada1
=> 34 1465146988 ada1 GPT (699G)
@@ -104,14 +104,14 @@ toc::[]
在新磁碟的新分割區上建立檔案系統:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ada1p1
....
建立一個空的目錄做來做為__掛載點 (mountpoint)__,一個在原有磁碟的檔案系統上可用來掛載新磁碟的位置:
-[source,bash]
+[source,shell]
....
# mkdir /newdisk
....
@@ -125,7 +125,7 @@ toc::[]
新的磁碟也可手動掛載,無須重新啟動系統:
-[source,bash]
+[source,shell]
....
# mount /newdisk
....
@@ -139,7 +139,7 @@ toc::[]
列出在磁碟上的分割區來查看目前的設定:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 83886013 ada0 GPT (48G) [CORRUPT]
@@ -153,7 +153,7 @@ toc::[]
====
若磁碟已使用 http://en.wikipedia.org/wiki/GUID_Partition_Table[ GPT] 分割表格式做格式化,可能會顯示為 "已損壞 (corrupted)" 因為 GPT 備份分割區已不存在於磁碟結尾。 使用 `gpart` 來修正備份分割區:
-[source,bash]
+[source,shell]
....
# gpart recover ada0
ada0 recovered
@@ -163,7 +163,7 @@ ada0 recovered
現在在磁碟上的額外空間已經可以被新的分割區使用,或者可以拿來擴充既有的分割區:
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 34 102399933 ada0 GPT (48G)
@@ -177,14 +177,14 @@ ada0 recovered
停用交換分割區:
-[source,bash]
+[source,shell]
....
# swapoff /dev/ada0p3
....
刪除 _ada0_ 磁碟上的第三個分割區,可使用 `-i` 參數來指定分割區。
-[source,bash]
+[source,shell]
....
# gpart delete -i 3 ada0
ada0p3 deleted
@@ -200,7 +200,7 @@ ada0p3 deleted
在掛載的檔案系統上修改分割區表可能會造成資料遺失。最好的方式是在未掛載檔案系統的情況下 (使用 Live CD-ROM 或 USB 裝置) 執行以下步驟。雖然如此,若仍要這樣做的話,在關閉 GEOM 安全性功能之後可以在掛載的檔案系統上修改分割區表:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.debugflags=16
....
@@ -209,7 +209,7 @@ ada0p3 deleted
重設分割區大小並保留要用來重建交換分割區的空間,要重設大小的分割區可以用 `-i` 來指定,而要重設的大小可用 `-s` 來指定,若要對齊分割區可以使用 `-a`。這個動作只會修改分割區大小,分割區中的檔案系統需在另一個步驟擴增。
-[source,bash]
+[source,shell]
....
# gpart resize -i 2 -s 47G -a 4k ada0
ada0p2 resized
@@ -222,7 +222,7 @@ ada0p2 resized
重建交換分割區並且啟動,若不使用 `-s` 指定大小則會使用所有剩餘的空間:
-[source,bash]
+[source,shell]
....
# gpart add -t freebsd-swap -a 4k ada0
ada0p3 added
@@ -236,7 +236,7 @@ ada0p3 added
擴增 UFS 檔案系統來使用重設分割區大小之後的新容量:
-[source,bash]
+[source,shell]
....
# growfs /dev/ada0p2
Device is mounted read-write; resizing will result in temporary write suspension for /.
@@ -249,7 +249,7 @@ super-block backups (for fsck -b #) at:
若檔案系統使用 ZFS,重設大小需執行 `online` 子指令並使用 `-e` 來觸發動作:
-[source,bash]
+[source,shell]
....
# zpool online -e zroot /dev/ada0p2
....
@@ -290,7 +290,7 @@ FreeBSD 使用 man:umass[4] 驅動程式透過 SCSI 子系統來存取 USB 儲
要測試 USB 設定,請先插入 USB 裝置,然後使用 `dmesg` 來確認系統訊息緩衝區中有出現該磁碟機,該訊息如下:
-[source,bash]
+[source,shell]
....
umass0: <STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x0100
@@ -307,7 +307,7 @@ da0: quirks=0x2<NO_6_BYTE>
當 USB 裝置可以做為 SCSI 檢視時,便可使用 `camcontrol` 來列出連接到系統的 USB 儲存裝置:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<STECH Simple Drive 1.04> at scbus4 target 0 lun 0 (pass3,da0)
@@ -315,7 +315,7 @@ da0: quirks=0x2<NO_6_BYTE>
或者,可以使用 `usbconfig` 來列出裝置,請參考 man:usbconfig[8] 來取得更多有關此指令的資訊。
-[source,bash]
+[source,shell]
....
# usbconfig
ugen0.3: <Simple Drive STECH> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)
@@ -365,7 +365,7 @@ vfs.usermount=1
這樣只會在下次重新開機時生效,可使用 `sysctl` 來立即設定這個變數:
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -373,7 +373,7 @@ vfs.usermount: 0 -> 1
最後一個步驟是建立要掛載檔案系統要的目錄,要掛載檔案系統的使用者需要擁有這個目錄。其中一個辦法是讓 `root` 建立由該使用者擁有的子目錄 [.filename]#/mnt/username#。在下面的例子,將 _username_ 替換為該使用者的登入名稱並將 _usergroup_ 替換為該使用者的主要群組:
-[source,bash]
+[source,shell]
....
# mkdir /mnt/username
# chown username:usergroup /mnt/username
@@ -381,21 +381,21 @@ vfs.usermount: 0 -> 1
假如已經插入 USB 隨身碟,且已出現 [.filename]#/dev/da0s1# 裝置。若裝置使用 FAT 格式的檔案系統,則使用者可使用以下指令掛載該檔案系統:
-[source,bash]
+[source,shell]
....
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username
....
在裝置可以被拔除前,__必須__先卸載:
-[source,bash]
+[source,shell]
....
% umount /mnt/username
....
裝置移除之後,系統訊息緩衝區會顯示如下的訊息:
-[source,bash]
+[source,shell]
....
umass0: at uhub3, port 2, addr 3 (disconnected)
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
@@ -407,14 +407,14 @@ da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
可以取消註解在 [.filename]#/etc/auto_master# 中的下行來自動掛載 USB 裝置:
-[source,bash]
+[source,shell]
....
/media -media -nosuid
....
然後加入這些行到 [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "GEOM";
@@ -425,7 +425,7 @@ notify 100 {
若 man:autofs[5] 以及 man:devd[8] 已經正在執行,則需重新載入設定:
-[source,bash]
+[source,shell]
....
# service automount restart
# service devd restart
@@ -442,7 +442,7 @@ man:autofs[5] 需要開啟 man:devd[8],預設已經開啟。
立即啟動服務:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -454,7 +454,7 @@ man:autofs[5] 需要開啟 man:devd[8],預設已經開啟。
檔案系統會在第一次存取時自動掛載,並在一段時間未使用後自動卸載。自動掛載的磁碟也可手動卸載:
-[source,bash]
+[source,shell]
....
# automount -fu
....
@@ -530,7 +530,7 @@ This will require a reboot of the system as this driver can only be loaded at bo
To verify that FreeBSD recognizes the device, run `dmesg` and look for an entry for the device. On systems prior to 10.x, the device name in the first line of the output will be [.filename]#acd0# instead of [.filename]#cd0#.
-[source,bash]
+[source,shell]
....
% dmesg | grep cd
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
@@ -547,14 +547,14 @@ In FreeBSD, `cdrecord` can be used to burn CDs. This command is installed with t
While `cdrecord` has many options, basic usage is simple. Specify the name of the ISO file to burn and, if the system has multiple burner devices, specify the name of the device to use:
-[source,bash]
+[source,shell]
....
# cdrecord dev=device imagefile.iso
....
To determine the device name of the burner, use `-scanbus` which might produce results like this:
-[source,bash]
+[source,shell]
....
# cdrecord -scanbus
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 Jörg Schilling
@@ -583,7 +583,7 @@ Locate the entry for the CD burner and use the three numbers separated by commas
Alternately, run the following command to get the device address of the burner:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<MATSHITA CDRW/DVD UJDA740 1.00> at scbus1 target 0 lun 0 (cd0,pass0)
@@ -596,7 +596,7 @@ Use the numeric values for `scbus`, `target`, and `lun`. For this example, `1,0,
In order to produce a data CD, the data files that are going to make up the tracks on the CD must be prepared before they can be burned to the CD. In FreeBSD, package:sysutils/cdrtools[] installs `mkisofs`, which can be used to produce an ISO 9660 file system that is an image of a directory tree within a UNIX(TM) file system. The simplest usage is to specify the name of the ISO file to create and the path to the files to place into the ISO 9660 file system:
-[source,bash]
+[source,shell]
....
# mkisofs -o imagefile.iso /path/to/tree
....
@@ -609,14 +609,14 @@ For CDs that are going to be used only on FreeBSD systems, `-U` can be used to d
The last option of general use is `-b`. This is used to specify the location of a boot image for use in producing an "El Torito" bootable CD. This option takes an argument which is the path to a boot image from the top of the tree being written to the CD. By default, `mkisofs` creates an ISO image in "floppy disk emulation" mode, and thus expects the boot image to be exactly 1200, 1440 or 2880 KB in size. Some boot loaders, like the one used by the FreeBSD distribution media, do not use emulation mode. In this case, `-no-emul-boot` should be used. So, if [.filename]#/tmp/myboot# holds a bootable FreeBSD system with the boot image in [.filename]#/tmp/myboot/boot/cdboot#, this command would produce [.filename]#/tmp/bootable.iso#:
-[source,bash]
+[source,shell]
....
# mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot
....
The resulting ISO image can be mounted as a memory disk with:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -f /tmp/bootable.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -630,7 +630,7 @@ There are many other options available for `mkisofs` to fine-tune its behavior.
====
It is possible to copy a data CD to an image file that is functionally equivalent to the image file created with `mkisofs`. To do so, use [.filename]#dd# with the device name as the input file and the name of the ISO to create as the output file:
-[source,bash]
+[source,shell]
....
# dd if=/dev/cd0 of=file.iso bs=2048
....
@@ -643,7 +643,7 @@ The resulting image file can be burned to CD as described in <<cdrecord>>.
Once an ISO has been burned to a CD, it can be mounted by specifying the file system type, the name of the device containing the CD, and an existing mount point:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/cd0 /mnt
....
@@ -681,7 +681,7 @@ It is possible to burn a file directly to CD, without creating an ISO 9660 file
This type of disk can not be mounted as a normal data CD. In order to retrieve the data burned to such a CD, the data must be read from the raw device node. For example, this command will extract a compressed tar file located on the second CD device into the current working directory:
-[source,bash]
+[source,shell]
....
# tar xzvf /dev/cd1
....
@@ -703,7 +703,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
. The package:sysutils/cdrtools[] package or port installs `cdda2wav`. This command can be used to extract all of the audio tracks, with each track written to a separate WAV file in the current working directory:
+
-[source,bash]
+[source,shell]
....
% cdda2wav -vall -B -Owav
....
@@ -711,7 +711,7 @@ To duplicate an audio CD, extract the audio data from the CD to a series of file
A device name does not need to be specified if there is only one CD device on the system. Refer to the `cdda2wav` manual page for instructions on how to specify a device and to learn more about the other options available for this command.
. Use `cdrecord` to write the [.filename]#.wav# files:
+
-[source,bash]
+[source,shell]
....
% cdrecord -v dev=2,0 -dao -useinfo *.wav
....
@@ -765,7 +765,7 @@ Since man:growisofs[1] is a front-end to <<mkisofs,mkisofs>>, it will invoke man
To burn to a DVD+R or a DVD-R the data in [.filename]#/path/to/data#, use the following command:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data
....
@@ -776,7 +776,7 @@ For the initial session recording, `-Z` is used for both single and multiple ses
To burn a pre-mastered image, such as _imagefile.iso_, use:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso
....
@@ -789,14 +789,14 @@ In order to support working files larger than 4.38GB, an UDF/ISO-9660 hybrid fil
To create this type of ISO file:
-[source,bash]
+[source,shell]
....
% mkisofs -R -J -udf -iso-level 3 -o imagefile.iso /path/to/data
....
To burn files directly to a disk:
-[source,bash]
+[source,shell]
....
# growisofs -dvd-compat -udf -iso-level 3 -Z /dev/cd0 -J -R /path/to/data
....
@@ -812,7 +812,7 @@ A DVD-Video is a specific file layout based on the ISO 9660 and micro-UDF (M-UDF
If an image of the DVD-Video file system already exists, it can be burned in the same way as any other image. If `dvdauthor` was used to make the DVD and the result is in [.filename]#/path/to/video#, the following command should be used to burn the DVD-Video:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -dvd-video /path/to/video
....
@@ -823,7 +823,7 @@ If an image of the DVD-Video file system already exists, it can be burned in the
Unlike CD-RW, a virgin DVD+RW needs to be formatted before first use. It is _recommended_ to let man:growisofs[1] take care of this automatically whenever appropriate. However, it is possible to use `dvd+rw-format` to format the DVD+RW:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
@@ -832,7 +832,7 @@ Only perform this operation once and keep in mind that only virgin DVD+RW medias
To burn a totally new file system and not just append some data onto a DVD+RW, the media does not need to be blanked first. Instead, write over the previous recording like this:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/newdata
....
@@ -841,7 +841,7 @@ The DVD+RW format supports appending data to a previous recording. This operatio
For example, to append data to a DVD+RW, use the following:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -855,7 +855,7 @@ Use `-dvd-compat` for better media compatibility with DVD-ROM drives. When using
To blank the media, use:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0=/dev/zero
....
@@ -868,7 +868,7 @@ A virgin DVD-RW can be directly written without being formatted. However, a non-
To blank a DVD-RW in sequential mode:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -877,7 +877,7 @@ To blank a DVD-RW in sequential mode:
====
A full blanking using `-blank=full` will take about one hour on a 1x media. A fast blanking can be performed using `-blank`, if the DVD-RW will be recorded in Disk-At-Once (DAO) mode. To burn the DVD-RW in DAO mode, use the command:
-[source,bash]
+[source,shell]
....
# growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso
....
@@ -889,7 +889,7 @@ One should instead use restricted overwrite mode with any DVD-RW as this format
To write data on a sequential DVD-RW, use the same instructions as for the other DVD formats:
-[source,bash]
+[source,shell]
....
# growisofs -Z /dev/cd0 -J -R /path/to/data
....
@@ -900,14 +900,14 @@ A DVD-RW in restricted overwrite format does not need to be blanked before a new
To put a DVD-RW in restricted overwrite format, the following command must be used:
-[source,bash]
+[source,shell]
....
# dvd+rw-format /dev/cd0
....
To change back to sequential format, use:
-[source,bash]
+[source,shell]
....
# dvd+rw-format -blank=full /dev/cd0
....
@@ -918,7 +918,7 @@ Few DVD-ROM drives support multi-session DVDs and most of the time only read the
Using the following command after an initial non-closed session on a DVD+R, DVD-R, or DVD-RW in sequential format, will add a new session to the disc:
-[source,bash]
+[source,shell]
....
# growisofs -M /dev/cd0 -J -R /path/to/nextdata
....
@@ -953,7 +953,7 @@ hw.ata.atapi_dma="1"
A DVD-RAM can be seen as a removable hard drive. Like any other hard drive, the DVD-RAM must be formatted before it can be used. In this example, the whole disk space will be formatted with a standard UFS2 file system:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=/dev/acd0 bs=2k count=1
# bsdlabel -Bw acd0
@@ -964,7 +964,7 @@ The DVD device, [.filename]#acd0#, must be changed according to the configuratio
Once the DVD-RAM has been formatted, it can be mounted as a normal hard drive:
-[source,bash]
+[source,shell]
....
# mount /dev/acd0 /mnt
....
@@ -984,7 +984,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
. To format the floppy, insert a new 3.5 inch floppy disk into the first floppy drive and issue:
+
-[source,bash]
+[source,shell]
....
# /usr/sbin/fdformat -f 1440 /dev/fd0
....
@@ -993,7 +993,7 @@ A floppy disk needs to be low-level formatted before it can be used. This is usu
+
To write the disk label, use man:bsdlabel[8]:
+
-[source,bash]
+[source,shell]
....
# /sbin/bsdlabel -B -w /dev/fd0 fd1440
....
@@ -1002,7 +1002,7 @@ To write the disk label, use man:bsdlabel[8]:
+
To format the floppy with FAT, issue:
+
-[source,bash]
+[source,shell]
....
# /sbin/newfs_msdos /dev/fd0
....
@@ -1047,7 +1047,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
@@ -1061,7 +1061,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# env RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr
....
@@ -1080,7 +1080,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# tar czvf /tmp/mybackup.tgz .
....
@@ -1093,7 +1093,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# tar xzvf /tmp/mybackup.tgz
....
@@ -1110,7 +1110,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# ls -R | cpio -ovF /tmp/mybackup.cpio
....
@@ -1125,7 +1125,7 @@ The disk is now ready for use. To use the floppy, mount it with man:mount_msdosf
[example]
====
-[source,bash]
+[source,shell]
....
# pax -wf /tmp/mybackup.pax .
....
@@ -1141,7 +1141,7 @@ SCSI 磁帶機在 FreeBSD 會使用 man:sa[4] 驅動程式以及 [.filename]#/de
在 FreeBSD 中會使用 `mt` 來做磁帶機的控制操作,例如在磁帶中搜尋檔案或寫入磁帶控制記號到磁帶。例如,要保留磁帶上的前三個檔案,可以在寫入新檔案前跳過這些檔案:
-[source,bash]
+[source,shell]
....
# mt -f /dev/nsa0 fsf 3
....
@@ -1150,28 +1150,28 @@ SCSI 磁帶機在 FreeBSD 會使用 man:sa[4] 驅動程式以及 [.filename]#/de
要使用 `tar` 寫入單一檔案到磁帶,可指定磁帶裝置的名稱以及要備份的檔案:
-[source,bash]
+[source,shell]
....
# tar cvf /dev/sa0 file
....
要從磁帶上的 `tar` 封存檔還原檔案到目前的目錄可:
-[source,bash]
+[source,shell]
....
# tar xvf /dev/sa0
....
要備份一個 UFS 檔案系統可使用 `dump`。以下例子會備份 [.filename]#/usr# 並在完成時不做倒帶:
-[source,bash]
+[source,shell]
....
# dump -0aL -b64 -f /dev/nsa0 /usr
....
要以互動的方式從磁帶上的 `dump` 檔案還原到目前目錄:
-[source,bash]
+[source,shell]
....
# restore -i -f /dev/nsa0
....
@@ -1221,7 +1221,7 @@ device md
To mount an existing file system image, use `mdconfig` to specify the name of the ISO file and a free unit number. Then, refer to that unit number to mount it on an existing mount point. Once mounted, the files in the ISO will appear in the mount point. This example attaches _diskimage.iso_ to the memory device [.filename]#/dev/md0# then mounts that memory device on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mdconfig -f diskimage.iso -u 0
# mount -t cd9660 /dev/md0 /mnt
@@ -1231,7 +1231,7 @@ Notice that `-t cd9660` was used to mount an ISO format. If a unit number is not
When a memory disk is no longer in use, its resources should be released back to the system. First, unmount the file system, then use `mdconfig` to detach the disk from the system and release its resources. To continue this example:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 0
@@ -1246,7 +1246,7 @@ FreeBSD also supports memory disks where the storage to use is allocated from ei
To create a new memory-backed file system, specify a type of `swap` and the size of the memory disk to create. Then, format the memory disk with a file system and mount as usual. This example creates a 5M memory disk on unit `1`. That memory disk is then formatted with the UFS file system before it is mounted:
-[source,bash]
+[source,shell]
....
# mdconfig -a -t swap -s 5m -u 1
# newfs -U md1
@@ -1263,7 +1263,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
To create a new file-backed memory disk, first allocate an area of disk to use. This example creates an empty 5MB file named [.filename]#newimage#:
-[source,bash]
+[source,shell]
....
# dd if=/dev/zero of=newimage bs=1k count=5k
5120+0 records in
@@ -1272,7 +1272,7 @@ To create a new file-backed memory disk, first allocate an area of disk to use.
Next, attach that file to a memory disk, label the memory disk and format it with the UFS file system, mount the memory disk, and verify the size of the file-backed disk:
-[source,bash]
+[source,shell]
....
# mdconfig -f newimage -u 0
# bsdlabel -w md0 auto
@@ -1289,14 +1289,14 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
It takes several commands to create a file- or memory-backed file system using `mdconfig`. FreeBSD also comes with `mdmfs` which automatically configures a memory disk, formats it with the UFS file system, and mounts it. For example, after creating _newimage_ with `dd`, this one command is equivalent to running the `bsdlabel`, `newfs`, and `mount` commands shown above:
-[source,bash]
+[source,shell]
....
# mdmfs -F newimage -s 5m md0 /mnt
....
To instead create a new memory-based memory disk with `mdmfs`, use this one command:
-[source,bash]
+[source,shell]
....
# mdmfs -s 5m md1 /mnt
....
@@ -1314,21 +1314,21 @@ The un-alterable `snapshot` file flag is set by man:mksnap_ffs[8] after initial
Snapshots are created using man:mount[8]. To place a snapshot of [.filename]#/var# in the file [.filename]#/var/snapshot/snap#, use the following command:
-[source,bash]
+[source,shell]
....
# mount -u -o snapshot /var/snapshot/snap /var
....
Alternatively, use man:mksnap_ffs[8] to create the snapshot:
-[source,bash]
+[source,shell]
....
# mksnap_ffs /var /var/snapshot/snap
....
One can find snapshot files on a file system, such as [.filename]#/var#, using man:find[1]:
-[source,bash]
+[source,shell]
....
# find /var -flags snapshot
....
@@ -1340,7 +1340,7 @@ Once a snapshot has been created, it has several uses:
* Running man:dump[8] on the snapshot will produce a dump file that is consistent with the file system and the timestamp of the snapshot. man:dump[8] can also take a snapshot, create a dump image, and then remove the snapshot in one command by using `-L`.
* The snapshot can be mounted as a frozen image of the file system. To man:mount[8] the snapshot [.filename]#/var/snapshot/snap# run:
+
-[source,bash]
+[source,shell]
....
# mdconfig -a -t vnode -o readonly -f /var/snapshot/snap -u 4
# mount -r /dev/md4 /mnt
@@ -1348,7 +1348,7 @@ Once a snapshot has been created, it has several uses:
The frozen [.filename]#/var# is now available through [.filename]#/mnt#. Everything will initially be in the same state it was during the snapshot creation time. The only exception is that any earlier snapshots will appear as zero length files. To unmount the snapshot, use:
-[source,bash]
+[source,shell]
....
# umount /mnt
# mdconfig -d -u 4
@@ -1367,7 +1367,7 @@ For more information about `softupdates` and file system snapshots, including te
查看 FreeBSD 核心是否支援磁碟配額:
-[source,bash]
+[source,shell]
....
% sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
@@ -1418,7 +1418,7 @@ check_quotas="NO"
要確認配額已經開啟,可執行:
-[source,bash]
+[source,shell]
....
# quota -v
....
@@ -1435,7 +1435,7 @@ check_quotas="NO"
在下面的例子中,會編輯 `test` 的配額。當執行 `edquota` 時,將會使用 `EDITOR` 指定的編輯器來編輯配額限制。預設的編輯器為 vi。
-[source,bash]
+[source,shell]
....
# edquota -u test
Quotas for user test:
@@ -1456,7 +1456,7 @@ Quotas for user test:
有時會想要針對一群使用者設定配額限,這時可以透過指定想要的配額給第一個使用者,若然後使用 `-p` 來複製配額到指定範圍的使用者 ID (UID)。以下指定將複製配額限制給 UID `10,000` 到 `19,999` 的使用者:
-[source,bash]
+[source,shell]
....
# edquota -p test 10000-19999
....
@@ -1492,7 +1492,7 @@ rquotad/1 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
然後重新啟動 `inetd`:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -1514,7 +1514,7 @@ This facility provides several barriers to protect the data stored in each disk
FreeBSD provides a kernel module for gbde which can be loaded with this command:
-[source,bash]
+[source,shell]
....
# kldload geom_bde
....
@@ -1533,7 +1533,7 @@ The following example demonstrates adding a new hard drive to a system that will
+
Install the new drive to the system as explained in <<disks-adding>>. For the purposes of this example, a new hard drive partition has been added as [.filename]#/dev/ad4s1c# and [.filename]#/dev/ad0s1*# represents the existing standard FreeBSD partitions.
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1543,7 +1543,7 @@ Install the new drive to the system as explained in <<disks-adding>>. For the pu
+
. Create a Directory to Hold `gbde` Lock Files
+
-[source,bash]
+[source,shell]
....
# mkdir /etc/gbde
....
@@ -1553,7 +1553,7 @@ The gbde lock file contains information that gbde requires to access encrypted p
+
A gbde partition must be initialized before it can be used. This initialization needs to be performed only once. This command will open the default editor, in order to set various configuration options in a template. For use with the UFS file system, set the sector_size to 2048:
+
-[source,bash]
+[source,shell]
....
# gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock
# $FreeBSD: head/zh_TW.UTF-8/books/handbook/book.xml 53653 2019-12-03 17:05:41Z rcyu $
@@ -1571,14 +1571,14 @@ Lock files _must_ be backed up together with the contents of any encrypted parti
+
. Attach the Encrypted Partition to the Kernel
+
-[source,bash]
+[source,shell]
....
# gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock
....
+
This command will prompt to input the passphrase that was selected during the initialization of the encrypted partition. The new encrypted device will appear in [.filename]#/dev# as [.filename]#/dev/device_name.bde#:
+
-[source,bash]
+[source,shell]
....
# ls /dev/ad*
/dev/ad0 /dev/ad0s1b /dev/ad0s1e /dev/ad4s1
@@ -1590,7 +1590,7 @@ This command will prompt to input the passphrase that was selected during the in
+
Once the encrypted device has been attached to the kernel, a file system can be created on the device. This example creates a UFS file system with soft updates enabled. Be sure to specify the partition which has a [.filename]#*.bde# extension:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/ad4s1c.bde
....
@@ -1599,7 +1599,7 @@ Once the encrypted device has been attached to the kernel, a file system can be
+
Create a mount point and mount the encrypted file system:
+
-[source,bash]
+[source,shell]
....
# mkdir /private
# mount /dev/ad4s1c.bde /private
@@ -1609,7 +1609,7 @@ Create a mount point and mount the encrypted file system:
+
The encrypted file system should now be visible and available for use:
+
-[source,bash]
+[source,shell]
....
% df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1637,7 +1637,7 @@ This requires that the passphrase be entered at the console at boot time. After
====
sysinstall is incompatible with gbde-encrypted devices. All [.filename]#*.bde# devices must be detached from the kernel before starting sysinstall or it will crash during its initial probing for devices. To detach the encrypted device used in the example, use the following command:
-[source,bash]
+[source,shell]
....
# gbde detach /dev/ad4s1c
....
@@ -1676,7 +1676,7 @@ geom_eli_load="YES"
+
To load the kernel module now:
+
-[source,bash]
+[source,shell]
....
# kldload geom_eli
....
@@ -1693,7 +1693,7 @@ device crypto
+
The following commands generate a master key ([.filename]#/root/da2.key#) that is protected with a passphrase. The data source for the key file is [.filename]#/dev/random# and the sector size of the provider ([.filename]#/dev/da2.eli#) is 4kB as a bigger sector size provides better performance:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/root/da2.key bs=64 count=1
# geli init -s 4096 -K /root/da2.key /dev/da2
@@ -1705,7 +1705,7 @@ It is not mandatory to use both a passphrase and a key file as either method of
+
If the key file is given as "-", standard input will be used. For example, this command generates three key files:
+
-[source,bash]
+[source,shell]
....
# cat keyfile1 keyfile2 keyfile3 | geli init -K - /dev/da2
....
@@ -1714,7 +1714,7 @@ If the key file is given as "-", standard input will be used. For example, this
+
To attach the provider, specify the key file, the name of the disk, and the passphrase:
+
-[source,bash]
+[source,shell]
....
# geli attach -k /root/da2.key /dev/da2
Enter passphrase:
@@ -1722,7 +1722,7 @@ Enter passphrase:
+
This creates a new device with an [.filename]#.eli# extension:
+
-[source,bash]
+[source,shell]
....
# ls /dev/da2*
/dev/da2 /dev/da2.eli
@@ -1732,7 +1732,7 @@ This creates a new device with an [.filename]#.eli# extension:
+
Next, format the device with the UFS file system and mount it on an existing mount point:
+
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/da2.eli bs=1m
# newfs /dev/da2.eli
@@ -1741,7 +1741,7 @@ Next, format the device with the UFS file system and mount it on an existing mou
+
The encrypted file system should now be available for use:
+
-[source,bash]
+[source,shell]
....
# df -H
Filesystem Size Used Avail Capacity Mounted on
@@ -1756,7 +1756,7 @@ Filesystem Size Used Avail Capacity Mounted on
Once the work on the encrypted partition is done, and the [.filename]#/private# partition is no longer needed, it is prudent to put the device into cold storage by unmounting and detaching the `geli` encrypted partition from the kernel:
-[source,bash]
+[source,shell]
....
# umount /private
# geli detach da2.eli
@@ -1783,7 +1783,7 @@ This section demonstrates how to configure an encrypted swap partition using man
Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. To overwrite the current swap partition with random garbage, execute the following command:
-[source,bash]
+[source,shell]
....
# dd if=/dev/random of=/dev/ada0s1b bs=1m
....
@@ -1832,7 +1832,7 @@ Once the system has rebooted, proper operation of the encrypted swap can be veri
If man:gbde[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1841,7 +1841,7 @@ Device 1K-blocks Used Avail Capacity
If man:geli[8] is being used:
-[source,bash]
+[source,shell]
....
% swapinfo
Device 1K-blocks Used Avail Capacity
@@ -1938,7 +1938,7 @@ It is also possible to use host names in the `remote` statements if the hosts ar
Once the configuration exists on both nodes, the HAST pool can be created. Run these commands on both nodes to place the initial metadata onto the local disk and to start man:hastd[8]:
-[source,bash]
+[source,shell]
....
# hastctl create test
# service hastd onestart
@@ -1951,21 +1951,21 @@ It is _not_ possible to use GEOM providers with an existing file system or to co
A HAST node's `primary` or `secondary` role is selected by an administrator, or software like Heartbeat, using man:hastctl[8]. On the primary node, `hasta`, issue this command:
-[source,bash]
+[source,shell]
....
# hastctl role primary test
....
Run this command on the secondary node, `hastb`:
-[source,bash]
+[source,shell]
....
# hastctl role secondary test
....
Verify the result by running `hastctl` on each node:
-[source,bash]
+[source,shell]
....
# hastctl status test
....
@@ -1974,7 +1974,7 @@ Check the `status` line in the output. If it says `degraded`, something is wrong
The next step is to create a file system on the GEOM provider and mount it. This must be done on the `primary` node. Creating the file system can take a few minutes, depending on the size of the hard drive. This example creates a UFS file system on [.filename]#/dev/hast/test#:
-[source,bash]
+[source,shell]
....
# newfs -U /dev/hast/test
# mkdir /hast/test
@@ -2024,7 +2024,7 @@ If the systems are running FreeBSD 10 or higher, replace [.filename]#carp0# with
Restart man:devd[8] on both nodes to put the new configuration into effect:
-[source,bash]
+[source,shell]
....
# service devd restart
....
@@ -2157,7 +2157,7 @@ _Split-brain_ occurs when the nodes of the cluster are unable to communicate wit
The administrator must either decide which node has more important changes, or perform the merge manually. Then, let HAST perform full synchronization of the node which has the broken data. To do this, issue these commands on the node which needs to be resynchronized:
-[source,bash]
+[source,shell]
....
# hastctl role init test
# hastctl create test
diff --git a/documentation/content/zh-tw/books/handbook/dtrace/_index.adoc b/documentation/content/zh-tw/books/handbook/dtrace/_index.adoc
index 896511449f..70f8e2e5ee 100644
--- a/documentation/content/zh-tw/books/handbook/dtrace/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/dtrace/_index.adoc
@@ -72,7 +72,7 @@ The official guide to DTrace is maintained by the Illumos project at http://dtra
While the DTrace in FreeBSD is similar to that found in Solaris(TM), differences do exist. The primary difference is that in FreeBSD, DTrace is implemented as a set of kernel modules and DTrace can not be used until the modules are loaded. To load all of the necessary modules:
-[source,bash]
+[source,shell]
....
# kldload dtraceall
....
@@ -127,7 +127,7 @@ DTrace scripts consist of a list of one or more _probes_, or instrumentation poi
To view all probes, the administrator can execute the following command:
-[source,bash]
+[source,shell]
....
# dtrace -l | more
....
@@ -138,7 +138,7 @@ The examples in this section provide an overview of how to use two of the fully
The [.filename]#hotkernel# script is designed to identify which function is using the most kernel time. It will produce output similar to the following:
-[source,bash]
+[source,shell]
....
# cd /usr/shared/dtrace/toolkit
# ./hotkernel
@@ -147,7 +147,7 @@ Sampling... Hit Ctrl-C to end.
As instructed, use the kbd:[Ctrl+C] key combination to stop the process. Upon termination, the script will display a list of kernel functions and timing information, sorting the output in increasing order of time:
-[source,bash]
+[source,shell]
....
kernel`_thread_lock_flags 2 0.0%
0xc1097063 2 0.0%
@@ -179,7 +179,7 @@ kernel`sched_idletd 137 0.3%
This script will also work with kernel modules. To use this feature, run the script with `-m`:
-[source,bash]
+[source,shell]
....
# ./hotkernel -m
Sampling... Hit Ctrl-C to end.
@@ -201,7 +201,7 @@ kernel 874 0.4%
The [.filename]#procsystime# script captures and prints the system call time usage for a given process ID (PID) or process name. In the following example, a new instance of [.filename]#/bin/csh# was spawned. Then, [.filename]#procsystime# was executed and remained waiting while a few commands were typed on the other incarnation of `csh`. These are the results of this test:
-[source,bash]
+[source,shell]
....
# ./procsystime -n csh
Tracing... Hit Ctrl-C to end...
diff --git a/documentation/content/zh-tw/books/handbook/filesystems/_index.adoc b/documentation/content/zh-tw/books/handbook/filesystems/_index.adoc
index 7973f47622..f6cd8f9cbc 100644
--- a/documentation/content/zh-tw/books/handbook/filesystems/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/filesystems/_index.adoc
@@ -85,14 +85,14 @@ This driver can also be used to access ext3 and ext4 file systems. The man:ext2f
To access an ext file system, first load the kernel loadable module:
-[source,bash]
+[source,shell]
....
# kldload ext2fs
....
Then, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. This example mounts [.filename]#/dev/ad1s1# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# mount -t ext2fs /dev/ad1s1 /mnt
....
diff --git a/documentation/content/zh-tw/books/handbook/firewalls/_index.adoc b/documentation/content/zh-tw/books/handbook/firewalls/_index.adoc
index 5b62ead484..b0107b060d 100644
--- a/documentation/content/zh-tw/books/handbook/firewalls/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/firewalls/_index.adoc
@@ -144,7 +144,7 @@ To use PF, its kernel module must be first loaded. This section describes the en
Start by adding `pf_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pf_enable=yes
....
@@ -165,7 +165,7 @@ pf_rules="/path/to/pf.conf"
Logging support for PF is provided by man:pflog[4]. To enable logging support, add `pflog_enable=yes` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc pflog_enable=yes
....
@@ -187,7 +187,7 @@ gateway_enable="YES" # Enable as LAN gateway
After saving the needed edits, PF can be started with logging support by typing:
-[source,bash]
+[source,shell]
....
# service pf start
# service pflog start
@@ -242,7 +242,7 @@ pass out all keep state
The first rule denies all incoming traffic by default. The second rule allows connections created by this system to pass out, while retaining state information on those connections. This state information allows return traffic for those connections to pass back and should only be used on machines that can be trusted. The ruleset can be loaded with:
-[source,bash]
+[source,shell]
....
# pfctl -e ; pfctl -f /etc/pf.conf
....
@@ -270,14 +270,14 @@ Even though UDP is considered to be a stateless protocol, PF is able to track so
Whenever an edit is made to a ruleset, the new rules must be loaded so they can be used:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
If there are no syntax errors, `pfctl` will not output any messages during the rule load. Rules can also be tested before attempting to load them:
-[source,bash]
+[source,shell]
....
# pfctl -nf /etc/pf.conf
....
@@ -297,21 +297,21 @@ This section demonstrates how to configure a FreeBSD system running PF to act as
First, enable the gateway to let the machine forward the network traffic it receives on one interface to another interface. This sysctl setting will forward IPv4 packets:
-[source,bash]
+[source,shell]
....
# sysctl net.inet.ip.forwarding=1
....
To forward IPv6 traffic, use:
-[source,bash]
+[source,shell]
....
# sysctl net.inet6.ip6.forwarding=1
....
To enable these settings at system boot, use man:sysrc[8] to add them to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc gateway_enable=yes
# sysrc ipv6_gateway_enable=yes
@@ -452,7 +452,7 @@ where `$proxy` expands to the address the proxy daemon is bound to.
Save [.filename]#/etc/pf.conf#, load the new rules, and verify from a client that FTP connections are working:
-[source,bash]
+[source,shell]
....
# pfctl -f /etc/pf.conf
....
@@ -564,14 +564,14 @@ pass inet proto tcp from <clients> to any port $client_out flags S/SA keep state
A table's contents can be manipulated live, using `pfctl`. This example adds another network to the table:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T add 192.168.1.0/16
....
Note that any changes made this way will take affect now, making them ideal for testing, but will not survive a power failure or reboot. To make the changes permanent, modify the definition of the table in the ruleset or edit the file that the table refers to. One can maintain the on-disk copy of the table using a man:cron[8] job which dumps the table's contents to disk at regular intervals, using a command such as `pfctl -t clients -T show >/etc/clients`. Alternatively, [.filename]#/etc/clients# can be updated with the in-memory table contents:
-[source,bash]
+[source,shell]
....
# pfctl -t clients -T replace -f /etc/clients
....
@@ -650,7 +650,7 @@ Over time, tables will be filled by overload rules and their size will grow incr
For situations like these, pfctl provides the ability to expire table entries. For example, this command will remove `<bruteforce>` table entries which have not been referenced for `86400` seconds:
-[source,bash]
+[source,shell]
....
# pfctl -t bruteforce -T expire 86400
....
@@ -903,14 +903,14 @@ For those users who wish to statically compile IPFW support into a custom kernel
To configure the system to enable IPFW at boot time, add `firewall_enable="YES"` to [.filename]#/etc/rc.conf#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_enable="YES"
....
To use one of the default firewall types provided by FreeBSD, add another line which specifies the type:
-[source,bash]
+[source,shell]
....
# sysrc firewall_type="open"
....
@@ -931,14 +931,14 @@ Note that the `filename` type is used to load a custom ruleset.
An alternate way to load a custom ruleset is to set the `firewall_script` variable to the absolute path of an _executable script_ that includes IPFW commands. The examples used in this section assume that the `firewall_script` is set to [.filename]#/etc/ipfw.rules#:
-[source,bash]
+[source,shell]
....
# sysrc firewall_script="/etc/ipfw.rules"
....
To enable logging through man:syslogd[8], include this line:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logging="YES"
....
@@ -951,21 +951,21 @@ Only firewall rules with the `log` option will be logged. The default rules do n
There is no [.filename]#/etc/rc.conf# variable to set logging limits. To limit the number of times a rule is logged per connection attempt, specify the number using this line in [.filename]#/etc/sysctl.conf#:
-[source,bash]
+[source,shell]
....
# echo "net.inet.ip.fw.verbose_limit=5" >> /etc/sysctl.conf
....
To enable logging through a dedicated interface named `ipfw0`, add this line to [.filename]#/etc/rc.conf# instead:
-[source,bash]
+[source,shell]
....
# sysrc firewall_logif="YES"
....
Then use tcpdump to see what is being logged:
-[source,bash]
+[source,shell]
....
# tcpdump -t -n -i ipfw0
....
@@ -978,7 +978,7 @@ There is no overhead due to logging unless tcpdump is attached.
After saving the needed edits, start the firewall. To enable logging limits now, also set the `sysctl` value specified above:
-[source,bash]
+[source,shell]
....
# service ipfw start
# sysctl net.inet.ip.fw.verbose_limit=5
@@ -1399,49 +1399,49 @@ redirect_address 192.168.0.3 128.1.1.3
To list all the running rules in sequence:
-[source,bash]
+[source,shell]
....
# ipfw list
....
To list all the running rules with a time stamp of when the last time the rule was matched:
-[source,bash]
+[source,shell]
....
# ipfw -t list
....
The next example lists accounting information and the packet count for matched rules along with the rules themselves. The first column is the rule number, followed by the number of matched packets and bytes, followed by the rule itself.
-[source,bash]
+[source,shell]
....
# ipfw -a list
....
To list dynamic rules in addition to static rules:
-[source,bash]
+[source,shell]
....
# ipfw -d list
....
To also show the expired dynamic rules:
-[source,bash]
+[source,shell]
....
# ipfw -d -e list
....
To zero the counters:
-[source,bash]
+[source,shell]
....
# ipfw zero
....
To zero the counters for just the rule with number _NUM_:
-[source,bash]
+[source,shell]
....
# ipfw zero NUM
....
@@ -1493,7 +1493,7 @@ The rules are not important as the focus of this example is how the symbolic sub
If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be reloaded by the following command:
-[source,bash]
+[source,shell]
....
# sh /etc/ipfw.rules
....
@@ -1502,7 +1502,7 @@ If the above example was in [.filename]#/etc/ipfw.rules#, the rules could be rel
The same thing could be accomplished by running these commands by hand:
-[source,bash]
+[source,shell]
....
# ipfw -q -f flush
# ipfw -q add check-state
@@ -1596,7 +1596,7 @@ Then, to start IPF now:
To load the firewall rules, specify the name of the ruleset file using `ipf`. The following command can be used to replace the currently running firewall rules:
-[source,bash]
+[source,shell]
....
# ipf -Fa -f /etc/ipf.rules
....
@@ -1920,28 +1920,28 @@ pass in quick on rl0 proto tcp from any to any port = 20 flags S keep state
Whenever the file containing the NAT rules is edited, run `ipnat` with `-CF` to delete the current NAT rules and flush the contents of the dynamic translation table. Include `-f` and specify the name of the NAT ruleset to load:
-[source,bash]
+[source,shell]
....
# ipnat -CF -f /etc/ipnat.rules
....
To display the NAT statistics:
-[source,bash]
+[source,shell]
....
# ipnat -s
....
To list the NAT table's current mappings:
-[source,bash]
+[source,shell]
....
# ipnat -l
....
To turn verbose mode on and display information relating to rule processing and active rules and table entries:
-[source,bash]
+[source,shell]
....
# ipnat -v
....
@@ -1952,7 +1952,7 @@ IPF includes man:ipfstat[8] which can be used to retrieve and display statistics
The default `ipfstat` output looks like this:
-[source,bash]
+[source,shell]
....
input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
output packets: blocked 4200 passed 1284345 nomatch 14687 counted 0
@@ -1975,7 +1975,7 @@ input packets: blocked 99286 passed 1255609 nomatch 14686 counted 0
Several options are available. When supplied with either `-i` for inbound or `-o` for outbound, the command will retrieve and display the appropriate list of filter rules currently installed and in use by the kernel. To also see the rule numbers, include `-n`. For example, `ipfstat -on` displays the outbound rules table with rule numbers:
-[source,bash]
+[source,shell]
....
@1 pass out on xl0 from any to any
@2 block out on dc0 from any to any
@@ -1984,7 +1984,7 @@ Several options are available. When supplied with either `-i` for inbound or `-o
Include `-h` to prefix each rule with a count of how many times the rule was matched. For example, `ipfstat -oh` displays the outbound internal rules table, prefixing each rule with its usage count:
-[source,bash]
+[source,shell]
....
2451423 pass out on xl0 from any to any
354727 block out on dc0 from any to any
@@ -2013,7 +2013,7 @@ Once the logging facility is enabled in [.filename]#rc.conf# and started with `s
By default, `ipmon -Ds` mode uses `local0` as the logging facility. The following logging levels can be used to further segregate the logged data:
-[source,bash]
+[source,shell]
....
LOG_INFO - packets logged using the "log" keyword as the action rather than pass or block.
LOG_NOTICE - packets logged which are also passed
@@ -2023,7 +2023,7 @@ LOG_ERR - packets which have been logged and which can be considered short due t
In order to setup IPF to log all data to [.filename]#/var/log/ipfilter.log#, first create the empty file:
-[source,bash]
+[source,shell]
....
# touch /var/log/ipfilter.log
....
@@ -2065,14 +2065,14 @@ This chapter describes how to set up blacklistd, configure it, and provides exam
The main configuration for blacklistd is stored in man:blacklistd.conf[5]. Various command line options are also available to change blacklistd's run-time behavior. Persistent configuration across reboots should be stored in [.filename]#/etc/blacklistd.conf#. To enable the daemon during system boot, add a `blacklistd_enable` line to [.filename]#/etc/rc.conf# like this:
-[source,bash]
+[source,shell]
....
# sysrc blacklistd_enable=yes
....
To start the service manually, run this command:
-[source,bash]
+[source,shell]
....
# service blacklistd start
....
@@ -2188,7 +2188,7 @@ That is all that is needed to make these programs talk to blacklistd.
Blacklistd provides the user with a management utility called man:blacklistctl[8]. It displays blocked addresses and networks that are blacklisted by the rules defined in man:blacklistd.conf[5]. To see the list of currently blocked hosts, use `dump` combined with `-b` like this.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -b
address/ma:port id nfail last access
@@ -2199,7 +2199,7 @@ This example shows that there were 6 out of three permitted attempts on port 22
To see the remaining time that this host will be on the blacklist, add `-r` to the previous command.
-[source,bash]
+[source,shell]
....
# blacklistctl dump -br
address/ma:port id nfail remaining time
@@ -2212,7 +2212,7 @@ In this example, there are 36s seconds left until this host will not be blocked
Sometimes it is necessary to remove a host from the block list before the remaining time expires. Unfortunately, there is no functionality in blacklistd to do that. However, it is possible to remove the address from the PF table using pfctl. For each blocked port, there is a child anchor inside the blacklistd anchor defined in [.filename]#/etc/pf.conf#. For example, if there is a child anchor for blocking port 22 it is called `blacklistd/22`. There is a table inside that child anchor that contains the blocked addresses. This table is called port followed by the port number. In this example, it would be called `port22`. With that information at hand, it is now possible to use man:pfctl[8] to display all addresses listed like this:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -t port22 -T show
...
@@ -2222,7 +2222,7 @@ Sometimes it is necessary to remove a host from the block list before the remain
After identifying the address to be unblocked from the list, the following command removes it from the list:
-[source,bash]
+[source,shell]
....
# pfctl -a blacklistd/22 -T delete 213.0.123.128/25
....
diff --git a/documentation/content/zh-tw/books/handbook/geom/_index.adoc b/documentation/content/zh-tw/books/handbook/geom/_index.adoc
index eccfbb2954..0bc8f410c5 100644
--- a/documentation/content/zh-tw/books/handbook/geom/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/geom/_index.adoc
@@ -88,7 +88,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Load the [.filename]#geom_stripe.ko# module:
+
-[source,bash]
+[source,shell]
....
# kldload geom_stripe
....
@@ -96,7 +96,7 @@ The process for creating a software, GEOM-based RAID0 on a FreeBSD system using
. Ensure that a suitable mount point exists. If this volume will become a root partition, then temporarily use another mount point such as [.filename]#/mnt#.
. Determine the device names for the disks which will be striped, and create the new stripe device. For example, to stripe two unused and unpartitioned ATA disks with device names of [.filename]#/dev/ad2# and [.filename]#/dev/ad3#:
+
-[source,bash]
+[source,shell]
....
# gstripe label -v st0 /dev/ad2 /dev/ad3
Metadata value stored on /dev/ad2.
@@ -106,14 +106,14 @@ Done.
+
. Write a standard label, also known as a partition table, on the new volume and install the default bootstrap code:
+
-[source,bash]
+[source,shell]
....
# bsdlabel -wB /dev/stripe/st0
....
+
. This process should create two other devices in [.filename]#/dev/stripe# in addition to [.filename]#st0#. Those include [.filename]#st0a# and [.filename]#st0c#. At this point, a UFS file system can be created on [.filename]#st0a# using `newfs`:
+
-[source,bash]
+[source,shell]
....
# newfs -U /dev/stripe/st0a
....
@@ -121,14 +121,14 @@ Done.
Many numbers will glide across the screen, and after a few seconds, the process will be complete. The volume has been created and is ready to be mounted.
. To manually mount the created disk stripe:
+
-[source,bash]
+[source,shell]
....
# mount /dev/stripe/st0a /mnt
....
+
. To mount this striped file system automatically during the boot process, place the volume information in [.filename]#/etc/fstab#. In this example, a permanent mount point, named [.filename]#stripe#, is created:
+
-[source,bash]
+[source,shell]
....
# mkdir /stripe
# echo "/dev/stripe/st0a /stripe ufs rw 2 2" \
@@ -137,7 +137,7 @@ Many numbers will glide across the screen, and after a few seconds, the process
+
. The [.filename]#geom_stripe.ko# module must also be automatically loaded during system initialization, by adding a line to [.filename]#/boot/loader.conf#:
+
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf geom_stripe_load=YES
....
@@ -171,21 +171,21 @@ Many disk systems store metadata at the end of each disk. Old metadata should be
GPT metadata can be erased with man:gpart[8]. This example erases both primary and backup GPT partition tables from disk [.filename]#ada8#:
-[source,bash]
+[source,shell]
....
# gpart destroy -F ada8
....
A disk can be removed from an active mirror and the metadata erased in one step using man:gmirror[8]. Here, the example disk [.filename]#ada8# is removed from the active mirror [.filename]#gm4#:
-[source,bash]
+[source,shell]
....
# gmirror remove gm4 ada8
....
If the mirror is not running, but old mirror metadata is still on the disk, use `gmirror clear` to remove it:
-[source,bash]
+[source,shell]
....
# gmirror clear ada8
....
@@ -199,14 +199,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
The [.filename]#geom_mirror.ko# kernel module must either be built into the kernel or loaded at boot- or run-time. Manually load the kernel module now:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Create the mirror with the two new drives:
-[source,bash]
+[source,shell]
....
# gmirror label -v gm0 /dev/ada1 /dev/ada2
....
@@ -217,7 +217,7 @@ MBR and bsdlabel partition tables can now be created on the mirror with man:gpar
Partitions on the mirror do not have to be the same size as those on the existing disk, but they must be large enough to hold all the data already present on [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# gpart create -s MBR mirror/gm0
# gpart add -t freebsd -a 4k mirror/gm0
@@ -228,7 +228,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
156301425 61 - free - (30k)
....
-[source,bash]
+[source,shell]
....
# gpart create -s BSD mirror/gm0s1
# gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1
@@ -249,7 +249,7 @@ Partitions on the mirror do not have to be the same size as those on the existin
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -258,7 +258,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Format the file systems on the new mirror, enabling soft-updates.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -268,7 +268,7 @@ Format the file systems on the new mirror, enabling soft-updates.
File systems from the original [.filename]#ada0# disk can now be copied onto the mirror with man:dump[8] and man:restore[8].
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -312,14 +312,14 @@ In this example, FreeBSD has already been installed on a single disk, [.filename
Load the [.filename]#geom_mirror.ko# kernel module:
-[source,bash]
+[source,shell]
....
# gmirror load
....
Check the media size of the original disk with `diskinfo`:
-[source,bash]
+[source,shell]
....
# diskinfo -v ada0 | head -n3
/dev/ada0
@@ -329,7 +329,7 @@ Check the media size of the original disk with `diskinfo`:
Create a mirror on the new disk. To make certain that the mirror capacity is not any larger than the original [.filename]#ada0# drive, man:gnop[8] is used to create a fake drive of the exact same size. This drive does not store any data, but is used only to limit the size of the mirror. When man:gmirror[8] creates the mirror, it will restrict the capacity to the size of [.filename]#gzero.nop#, even if the new [.filename]#ada1# drive has more space. Note that the _1000204821504_ in the second line is equal to [.filename]#ada0#'s media size as shown by `diskinfo` above.
-[source,bash]
+[source,shell]
....
# geom zero load
# gnop create -s 1000204821504 gzero
@@ -343,7 +343,7 @@ After creating [.filename]#gm0#, view the partition table on [.filename]#ada0#.
However, if the output shows that all of the space on the disk is allocated, as in the following listing, there is no space available for the 512-byte mirror metadata at the end of the disk.
-[source,bash]
+[source,shell]
....
# gpart show ada0
=> 63 1953525105 ada0 MBR (931G)
@@ -354,7 +354,7 @@ In this case, the partition table must be edited to reduce the capacity by one s
In either case, partition tables on the primary disk should be first copied using `gpart backup` and `gpart restore`.
-[source,bash]
+[source,shell]
....
# gpart backup ada0 > table.ada0
# gpart backup ada0s1 > table.ada0s1
@@ -362,14 +362,14 @@ In either case, partition tables on the primary disk should be first copied usin
These commands create two files, [.filename]#table.ada0# and [.filename]#table.ada0s1#. This example is from a 1 TB drive:
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525105 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -383,14 +383,14 @@ BSD 8
If no free space is shown at the end of the disk, the size of both the slice and the last partition must be reduced by one sector. Edit the two files, reducing the size of both the slice and last partition by one. These are the last numbers in each listing.
-[source,bash]
+[source,shell]
....
# cat table.ada0
MBR 4
1 freebsd 63 1953525104 [active]
....
-[source,bash]
+[source,shell]
....
# cat table.ada0s1
BSD 8
@@ -406,7 +406,7 @@ If at least one sector was unallocated at the end of the disk, these two files c
Now restore the partition table into [.filename]#mirror/gm0#:
-[source,bash]
+[source,shell]
....
# gpart restore mirror/gm0 < table.ada0
# gpart restore mirror/gm0s1 < table.ada0s1
@@ -414,7 +414,7 @@ Now restore the partition table into [.filename]#mirror/gm0#:
Check the partition table with `gpart show`. This example has [.filename]#gm0s1a# for [.filename]#/#, [.filename]#gm0s1d# for [.filename]#/var#, [.filename]#gm0s1e# for [.filename]#/usr#, [.filename]#gm0s1f# for [.filename]#/data1#, and [.filename]#gm0s1g# for [.filename]#/data2#.
-[source,bash]
+[source,shell]
....
# gpart show mirror/gm0
=> 63 1953525104 mirror/gm0 MBR (931G)
@@ -436,7 +436,7 @@ Both the slice and the last partition must have at least one free block at the e
Create file systems on these new partitions. The number of partitions will vary to match the original disk, [.filename]#ada0#.
-[source,bash]
+[source,shell]
....
# newfs -U /dev/mirror/gm0s1a
# newfs -U /dev/mirror/gm0s1d
@@ -447,7 +447,7 @@ Create file systems on these new partitions. The number of partitions will vary
Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/mbr mirror/gm0
# gpart set -a active -i 1 mirror/gm0
@@ -456,7 +456,7 @@ Make the mirror bootable by installing bootcode in the MBR and bsdlabel and sett
Adjust [.filename]#/etc/fstab# to use the new partitions on the mirror. Back up this file first by copying it to [.filename]#/etc/fstab.orig#.
-[source,bash]
+[source,shell]
....
# cp /etc/fstab /etc/fstab.orig
....
@@ -483,7 +483,7 @@ geom_mirror_load="YES"
File systems from the original disk can now be copied onto the mirror with man:dump[8] and man:restore[8]. Each file system dumped with `dump -L` will create a snapshot first, which can take some time.
-[source,bash]
+[source,shell]
....
# mount /dev/mirror/gm0s1a /mnt
# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
@@ -508,7 +508,7 @@ After booting from [.filename]#mirror/gm0# successfully, the final step is inser
When [.filename]#ada0# is inserted into the mirror, its former contents will be overwritten by data from the mirror. Make certain that [.filename]#mirror/gm0# has the same contents as [.filename]#ada0# before adding [.filename]#ada0# to the mirror. If the contents previously copied by man:dump[8] and man:restore[8] are not identical to what was on [.filename]#ada0#, revert [.filename]#/etc/fstab# to mount the file systems on [.filename]#ada0#, reboot, and start the whole procedure again.
====
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 ada0
GEOM_MIRROR: Device gm0: rebuilding provider ada0
@@ -516,7 +516,7 @@ GEOM_MIRROR: Device gm0: rebuilding provider ada0
Synchronization between the two disks will start immediately. Use `gmirror status` to view the progress.
-[source,bash]
+[source,shell]
....
# gmirror status
Name Status Components
@@ -526,7 +526,7 @@ mirror/gm0 DEGRADED ada1 (ACTIVE)
After a while, synchronization will finish.
-[source,bash]
+[source,shell]
....
GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished.
# gmirror status
@@ -544,7 +544,7 @@ If the system no longer boots, BIOS settings may have to be changed to boot from
If the boot stops with this message, something is wrong with the mirror device:
-[source,bash]
+[source,shell]
....
Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.
@@ -571,7 +571,7 @@ mountroot>
Forgetting to load the [.filename]#geom_mirror.ko# module in [.filename]#/boot/loader.conf# can cause this problem. To fix it, boot from a FreeBSD installation media and choose `Shell` at the first prompt. Then load the mirror module and mount the mirror device:
-[source,bash]
+[source,shell]
....
# gmirror load
# mount /dev/mirror/gm0s1a /mnt
@@ -588,7 +588,7 @@ Save the file and reboot.
Other problems that cause `error 19` require more effort to fix. Although the system should boot from [.filename]#ada0#, another prompt to select a shell will appear if [.filename]#/etc/fstab# is incorrect. Enter `ufs:/dev/ada0s1a` at the boot loader prompt and press kbd:[Enter]. Undo the edits in [.filename]#/etc/fstab# then mount the file systems from the original disk ([.filename]#ada0#) instead of the mirror. Reboot the system and try the procedure again.
-[source,bash]
+[source,shell]
....
Enter full pathname of shell or RETURN for /bin/sh:
# cp /etc/fstab.orig /etc/fstab
@@ -603,14 +603,14 @@ To replace the failed drive, shut down the system and physically replace the fai
After the computer is powered back up, the mirror will be running in a "degraded" mode with only one drive. The mirror is told to forget drives that are not currently connected:
-[source,bash]
+[source,shell]
....
# gmirror forget gm0
....
Any old metadata should be cleared from the replacement disk using the instructions in <<geom-mirror-metadata>>. Then the replacement disk, [.filename]#ada4# for this example, is inserted into the mirror:
-[source,bash]
+[source,shell]
....
# gmirror insert gm0 /dev/ada4
....
@@ -642,28 +642,28 @@ In FreeBSD, support for RAID3 is implemented by the man:graid3[8]GEOM class. Cre
. First, load the [.filename]#geom_raid3.ko# kernel module by issuing one of the following commands:
+
-[source,bash]
+[source,shell]
....
# graid3 load
....
+
or:
+
-[source,bash]
+[source,shell]
....
# kldload geom_raid3
....
+
. Ensure that a suitable mount point exists. This command creates a new directory to use as the mount point:
+
-[source,bash]
+[source,shell]
....
# mkdir /multimedia
....
+
. Determine the device names for the disks which will be added to the array, and create the new RAID3 device. The final device listed will act as the dedicated parity disk. This example uses three unpartitioned ATA drives: [.filename]#ada1# and [.filename]#ada2# for data, and [.filename]#ada3# for parity.
+
-[source,bash]
+[source,shell]
....
# graid3 label -v gr0 /dev/ada1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada1.
@@ -674,7 +674,7 @@ Done.
+
. Partition the newly created [.filename]#gr0# device and put a UFS file system on it:
+
-[source,bash]
+[source,shell]
....
# gpart create -s GPT /dev/raid3/gr0
# gpart add -t freebsd-ufs /dev/raid3/gr0
@@ -683,7 +683,7 @@ Done.
+
Many numbers will glide across the screen, and after a bit of time, the process will be complete. The volume has been created and is ready to be mounted:
+
-[source,bash]
+[source,shell]
....
# mount /dev/raid3/gr0p1 /multimedia/
....
@@ -733,7 +733,7 @@ Software RAID devices often have a menu that can be entered by pressing special
Some space on the drives will be overwritten when they are made into a new array. Back up existing data first!
====
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 ada1
GEOM_RAID: Intel-a29ea104: Array Intel-a29ea104 created.
@@ -749,7 +749,7 @@ GEOM_RAID: Intel-a29ea104: Provider raid/r0 for volume gm0 created.
A status check shows the new mirror is ready for use:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -761,7 +761,7 @@ The array device appears in [.filename]#/dev/raid/#. The first array is called [
The BIOS menu on some of these devices can create arrays with special characters in their names. To avoid problems with those special characters, arrays are given simple numbered names like [.filename]#r0#. To show the actual labels, like [.filename]#gm0# in the example above, use man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl kern.geom.raid.name_format=1
....
@@ -771,7 +771,7 @@ The BIOS menu on some of these devices can create arrays with special characters
Some software RAID devices support more than one _volume_ on an array. Volumes work like partitions, allowing space on the physical drives to be split and used in different ways. For example, Intel software RAID devices support two volumes. This example creates a 40 G mirror for safely storing the operating system, followed by a 20 G RAID0 (stripe) volume for fast temporary storage:
-[source,bash]
+[source,shell]
....
# graid label -S 40G Intel gm0 RAID1 ada0 ada1
# graid add -S 20G gm0 RAID0
@@ -791,14 +791,14 @@ Under certain specific conditions, it is possible to convert an existing single
If the drive meets these requirements, start by making a full backup. Then create a single-drive mirror with that drive:
-[source,bash]
+[source,shell]
....
# graid label Intel gm0 RAID1 ada0 NONE
....
man:graid[8] metadata was written to the end of the drive in the unused space. A second drive can now be inserted into the mirror:
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
....
@@ -812,7 +812,7 @@ Drives can be inserted into an array as replacements for drives that have failed
In the example mirror array, data immediately begins to be copied to the newly-inserted drive. Any existing information on the new drive will be overwritten.
-[source,bash]
+[source,shell]
....
# graid insert raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from NONE to ACTIVE.
@@ -826,7 +826,7 @@ GEOM_RAID: Intel-a29ea104: Subdisk gm0:1-ada1 rebuild start at 0.
Individual drives can be permanently removed from a from an array and their metadata erased:
-[source,bash]
+[source,shell]
....
# graid remove raid/r0 ada1
GEOM_RAID: Intel-a29ea104: Disk ada1 state changed from ACTIVE to OFFLINE.
@@ -839,7 +839,7 @@ GEOM_RAID: Intel-a29ea104: Volume gm0 state changed from OPTIMAL to DEGRADED.
An array can be stopped without removing metadata from the drives. The array will be restarted when the system is booted.
-[source,bash]
+[source,shell]
....
# graid stop raid/r0
....
@@ -849,7 +849,7 @@ An array can be stopped without removing metadata from the drives. The array wil
Array status can be checked at any time. After a drive was added to the mirror in the example above, data is being copied from the original drive to the new drive:
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -859,7 +859,7 @@ raid/r0 DEGRADED ada0 (ACTIVE (ACTIVE))
Some types of arrays, like `RAID0` or `CONCAT`, may not be shown in the status report if disks have failed. To see these partially-failed arrays, add `-ga`:
-[source,bash]
+[source,shell]
....
# graid status -ga
Name Status Components
@@ -871,7 +871,7 @@ Intel-e2d07d9a BROKEN ada6 (ACTIVE (ACTIVE))
Arrays are destroyed by deleting all of the volumes from them. When the last volume present is deleted, the array is stopped and metadata is removed from the drives:
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -886,7 +886,7 @@ Drives may unexpectedly contain man:graid[8] metadata, either from previous use
. Boot the system. At the boot menu, select `2` for the loader prompt. Enter:
+
-[source,bash]
+[source,shell]
....
OK set kern.geom.raid.enable=0
OK boot
@@ -905,7 +905,7 @@ to [.filename]#/boot/loader.conf#.
+
To permanently remove the man:graid[8] metadata from the affected drive, boot a FreeBSD installation CD-ROM or memory stick, and select `Shell`. Use `status` to find the name of the array, typically `raid/r0`:
+
-[source,bash]
+[source,shell]
....
# graid status
Name Status Components
@@ -915,7 +915,7 @@ raid/r0 OPTIMAL ada0 (ACTIVE (ACTIVE))
+
Delete the volume by name:
+
-[source,bash]
+[source,shell]
....
# graid delete raid/r0
....
@@ -939,7 +939,7 @@ Similar to NFS, which is discussed in crossref:network-servers[network-nfs,網
Before exporting the device, ensure it is not currently mounted. Then, start ggated:
-[source,bash]
+[source,shell]
....
# ggated
....
@@ -948,7 +948,7 @@ Several options are available for specifying an alternate listening port or chan
To access the exported device on the client machine, first use `ggatec` to specify the IP address of the server and the device name of the exported device. If successful, this command will display a `ggate` device name to mount. Mount that specified device name on a free mount point. This example connects to the [.filename]#/dev/da0s4d# partition on `192.168.1.1`, then mounts [.filename]#/dev/ggate0# on [.filename]#/mnt#:
-[source,bash]
+[source,shell]
....
# ggatec create -o rw 192.168.1.1 /dev/da0s4d
ggate0
@@ -986,7 +986,7 @@ Temporary labels are destroyed at the next reboot. These labels are created in [
To create a permanent label for a UFS2 file system without destroying any data, issue the following command:
-[source,bash]
+[source,shell]
....
# tunefs -L home /dev/da3
....
@@ -1005,7 +1005,7 @@ The file system must not be mounted while attempting to run `tunefs`.
Now the file system may be mounted:
-[source,bash]
+[source,shell]
....
# mount /home
....
@@ -1016,7 +1016,7 @@ File systems may also be created with a default label by using the `-L` flag wit
The following command can be used to destroy the label:
-[source,bash]
+[source,shell]
....
# glabel destroy home
....
@@ -1030,7 +1030,7 @@ By permanently labeling the partitions on the boot disk, the system should be ab
Reboot the system, and at the man:loader[8] prompt, press kbd:[4] to boot into single user mode. Then enter the following commands:
-[source,bash]
+[source,shell]
....
# glabel label rootfs /dev/ad0s1a
GEOM_LABEL: Label for provider /dev/ad0s1a is label/rootfs
@@ -1059,7 +1059,7 @@ The system will continue with multi-user boot. After the boot completes, edit [.
The system can now be rebooted. If everything went well, it will come up normally and `mount` will show:
-[source,bash]
+[source,shell]
....
# mount
/dev/label/rootfs on / (ufs, local)
@@ -1073,7 +1073,7 @@ devfs on /dev (devfs, local)
The man:glabel[8] class supports a label type for UFS file systems, based on the unique file system id, `ufsid`. These labels may be found in [.filename]#/dev/ufsid# and are created automatically during system startup. It is possible to use `ufsid` labels to mount partitions using [.filename]#/etc/fstab#. Use `glabel status` to receive a list of file systems and their corresponding `ufsid` labels:
-[source,bash]
+[source,shell]
....
% glabel status
Name Status Components
@@ -1116,7 +1116,7 @@ options GEOM_JOURNAL
Once the module is loaded, a journal can be created on a new file system using the following steps. In this example, [.filename]#da4# is a new SCSI disk:
-[source,bash]
+[source,shell]
....
# gjournal load
# gjournal label /dev/da4
@@ -1126,7 +1126,7 @@ This will load the module and create a [.filename]#/dev/da4.journal# device node
A UFS file system may now be created on the journaled device, then mounted on an existing mount point:
-[source,bash]
+[source,shell]
....
# newfs -O 2 -J /dev/da4.journal
# mount /dev/da4.journal /mnt
diff --git a/documentation/content/zh-tw/books/handbook/jails/_index.adoc b/documentation/content/zh-tw/books/handbook/jails/_index.adoc
index 8e91c7f3f0..009ca198c7 100644
--- a/documentation/content/zh-tw/books/handbook/jails/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/jails/_index.adoc
@@ -107,7 +107,7 @@ Jail 環境的控制系統。 主機系統可以存取所有可用的硬體資
啟動 Shell 並定義 `DESTDIR`:
-[source,bash]
+[source,shell]
....
# sh
# export DESTDIR=/here/is/the/jail
@@ -115,7 +115,7 @@ Jail 環境的控制系統。 主機系統可以存取所有可用的硬體資
當使用安裝 ISO 時,可依 man:mdconfig[8] 中的說明掛載安裝媒體:
-[source,bash]
+[source,shell]
....
# mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
# cd /mnt/usr/freebsd-dist/
@@ -123,7 +123,7 @@ Jail 環境的控制系統。 主機系統可以存取所有可用的硬體資
或者自鏡像站下載 Tarball 壓縮檔:
-[source,bash]
+[source,shell]
....
# sh
# export DESTRELEASE=12.0-RELEASE
@@ -136,21 +136,21 @@ Jail 環境的控制系統。 主機系統可以存取所有可用的硬體資
只安裝基礎系統 (Base system):
-[source,bash]
+[source,shell]
....
# tar -xf base.txz -C $DESTDIR
....
安裝全部不含核心:
-[source,bash]
+[source,shell]
....
# for set in base ports; do tar -xf $set.txz -C $DESTDIR ; done
....
依 man:jail[8] 操作手冊說明的程序建置 Jail:
-[source,bash]
+[source,shell]
....
# setenv D /here/is/the/jail
# mkdir -p $D <.>
@@ -210,7 +210,7 @@ jail_enable="YES" # Set to NO to disable starting of any jails
若 Jail 項目已經在 [.filename]#jail.conf# 中設定好,可以手動用 man:service[8] 來啟動或停止某個 Jail 項目:
-[source,bash]
+[source,shell]
....
# service jail start www
# service jail stop www
@@ -218,7 +218,7 @@ jail_enable="YES" # Set to NO to disable starting of any jails
Jail 可以使用 man:jexec[8] 來關機。先使用 man:jls[8] 來辦識 Jail 的 `JID`,然後使用 man:jexec[8] 在該 Jail 中執行關機 Script。
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -256,7 +256,7 @@ The base system of FreeBSD contains a basic set of tools for viewing information
* Print a list of active jails and their corresponding jail identifier (JID), IP address, hostname and path.
* Attach to a running jail, from its host system, and run a command inside the jail or perform administrative tasks inside the jail itself. This is especially useful when the `root` user wants to cleanly shut down a jail. The man:jexec[8] utility can also be used to start a shell in a jail to do administration in it; for example:
+
-[source,bash]
+[source,shell]
....
# jexec 1 tcsh
....
@@ -271,7 +271,7 @@ Among the many third-party utilities for jail administration, one of the most co
Jails should be kept up to date from the host operating system as attempting to patch userland from within the jail may likely fail as the default behavior in FreeBSD is to disallow the use of man:chflags[1] in a jail which prevents the replacement of some files. It is possible to change this behavior but it is recommended to use man:freebsd-update[8] to maintain jails instead. Use `-b` to specify the path of the jail to be updated.
-[source,bash]
+[source,shell]
....
# freebsd-update -b /here/is/the/jail fetch
# freebsd-update -b /here/is/the/jail install
@@ -322,7 +322,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
. First, create a directory structure for the read-only file system which will contain the FreeBSD binaries for the jails. Then, change directory to the FreeBSD source tree and install the read-only file system to the jail template:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j /home/j/mroot
# cd /usr/src
@@ -331,7 +331,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
+
. Next, prepare a FreeBSD Ports Collection for the jails as well as a FreeBSD source tree, which is required for mergemaster:
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir usr/ports
@@ -341,7 +341,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
+
. Create a skeleton for the read-write portion of the system:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/skel /home/j/skel/home /home/j/skel/usr-X11R6 /home/j/skel/distfiles
# mv etc /home/j/skel
@@ -353,7 +353,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
+
. Use mergemaster to install missing configuration files. Then, remove the extra directories that mergemaster creates:
+
-[source,bash]
+[source,shell]
....
# mergemaster -t /home/j/skel/var/tmp/temproot -D /home/j/skel -i
# cd /home/j/skel
@@ -362,7 +362,7 @@ It is recommended to first update the host FreeBSD system to the latest -RELEASE
+
. Now, symlink the read-write file system to the read-only file system. Ensure that the symlinks are created in the correct [.filename]#s/# locations as the creation of directories in the wrong locations will cause the installation to fail.
+
-[source,bash]
+[source,shell]
....
# cd /home/j/mroot
# mkdir s
@@ -431,14 +431,14 @@ jail_www_devfs_enable="YES"
The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [.filename]#/home# because the physical path of [.filename]#/home# on a default FreeBSD installation is [.filename]#/usr/home#. The `jail__name__rootdir` variable must _not_ be set to a path which includes a symbolic link, otherwise the jails will refuse to start.
. Create the required mount points for the read-only file system of each jail:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/ns /home/j/mail /home/j/www
....
+
. Install the read-write template into each jail using package:sysutils/cpdup[]:
+
-[source,bash]
+[source,shell]
....
# mkdir /home/js
# cpdup /home/j/skel /home/js/ns
@@ -448,7 +448,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
+
. In this phase, the jails are built and prepared to run. First, mount the required file systems for each jail, and then start them:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -457,7 +457,7 @@ The `jail__name__rootdir` variable is set to [.filename]#/usr/home# instead of [
The jails should be running now. To check if they have started correctly, use `jls`. Its output should be similar to the following:
-[source,bash]
+[source,shell]
....
# jls
JID IP Address Hostname Path
@@ -468,7 +468,7 @@ The jails should be running now. To check if they have started correctly, use `j
At this point, it should be possible to log onto each jail, add new users, or configure daemons. The `JID` column indicates the jail identification number of each running jail. Use the following command to perform administrative tasks in the jail whose JID is `3`:
-[source,bash]
+[source,shell]
....
# jexec 3 tcsh
....
@@ -483,7 +483,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
. The first step is to upgrade the host system. Then, create a new temporary read-only template in [.filename]#/home/j/mroot2#.
+
-[source,bash]
+[source,shell]
....
# mkdir /home/j/mroot2
# cd /usr/src
@@ -495,7 +495,7 @@ The design of this setup provides an easy way to upgrade existing jails while mi
+
The `installworld` creates a few unnecessary directories, which should be removed:
+
-[source,bash]
+[source,shell]
....
# chflags -R 0 var
# rm -R etc var root usr/local tmp
@@ -503,7 +503,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
+
. Recreate the read-write symlinks for the master file system:
+
-[source,bash]
+[source,shell]
....
# ln -s s/etc etc
# ln -s s/root root
@@ -516,14 +516,14 @@ The `installworld` creates a few unnecessary directories, which should be remove
+
. Next, stop the jails:
+
-[source,bash]
+[source,shell]
....
# service jail stop
....
+
. Unmount the original file systems as the read-write systems are attached to the read-only system ([.filename]#/s#):
+
-[source,bash]
+[source,shell]
....
# umount /home/j/ns/s
# umount /home/j/ns
@@ -535,7 +535,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
+
. Move the old read-only file system and replace it with the new one. This will serve as a backup and archive of the old read-only file system should something go wrong. The naming convention used here corresponds to when a new read-only file system has been created. Move the original FreeBSD Ports Collection over to the new file system to save some space and inodes:
+
-[source,bash]
+[source,shell]
....
# cd /home/j
# mv mroot mroot.20060601
@@ -545,7 +545,7 @@ The `installworld` creates a few unnecessary directories, which should be remove
+
. At this point the new read-only template is ready, so the only remaining task is to remount the file systems and start the jails:
+
-[source,bash]
+[source,shell]
....
# mount -a
# service jail start
@@ -579,7 +579,7 @@ cloned_interfaces="lo1"
+
The second loopback interface `lo1` will be created when the system starts. It can also be created manually without a restart:
+
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -592,7 +592,7 @@ Inside a jail, access to the loopback address `127.0.0.1` is redirected to the f
Give each jail a unique loopback address in the `127.0.0.0/8` netblock.
. Install package:sysutils/ezjail[]:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/ezjail
# make install clean
@@ -607,7 +607,7 @@ ezjail_enable="YES"
+
. The service will automatically start on system boot. It can be started immediately for the current session:
+
-[source,bash]
+[source,shell]
....
# service ezjail start
....
@@ -627,7 +627,7 @@ In both of these examples, `-p` causes the ports tree to be retrieved with man:p
+
For a basejail based on the FreeBSD RELEASE matching that of the host computer, use `install`. For example, on a host computer running FreeBSD 10-STABLE, the latest RELEASE version of FreeBSD -10 will be installed in the jail):
+
-[source,bash]
+[source,shell]
....
# ezjail-admin install -p
....
@@ -638,7 +638,7 @@ The basejail can be installed from binaries created by `buildworld` on the host
+
In this example, FreeBSD 10-STABLE has been built from source. The jail directories are created. Then `installworld` is executed, installing the host's [.filename]#/usr/obj# into the basejail.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i -p
....
@@ -677,7 +677,7 @@ New jails are created with `ezjail-admin create`. In these examples, the `lo1` l
. Create the jail, specifying a name and the loopback and network interfaces to use, along with their IP addresses. In this example, the jail is named `dnsjail`.
+
-[source,bash]
+[source,shell]
....
# ezjail-admin create dnsjail 'lo1|127.0.1.1,em0|192.168.1.50'
....
@@ -699,14 +699,14 @@ Do not enable raw network sockets unless services in the jail actually require t
+
. Start the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin start dnsjail
....
+
. Use a console on the jail:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
....
@@ -721,7 +721,7 @@ The jail is operating and additional configuration can be completed. Typical set
+
Connect to the jail and set the `root` user's password:
+
-[source,bash]
+[source,shell]
....
# ezjail-admin console dnsjail
# passwd
@@ -762,14 +762,14 @@ Because the basejail's copy of the userland is shared by the other jails, updati
To build the world from source on the host, then install it in the basejail, use:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -b
....
If the world has already been compiled on the host, install it in the basejail with:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -i
....
@@ -778,14 +778,14 @@ Binary updates use man:freebsd-update[8]. These updates have the same limitation
Update the basejail to the latest patched release of the version of FreeBSD on the host. For example, updating from RELEASE-p1 to RELEASE-p2.
-[source,bash]
+[source,shell]
....
# ezjail-admin update -u
....
To upgrade the basejail to a new version, first upgrade the host system as described in crossref:cutting-edge[freebsdupdate-upgrade,執行主要及次要版號升級]. Once the host has been upgraded and rebooted, the basejail can then be upgraded. man:freebsd-update[8] has no way of determining which version is currently installed in the basejail, so the original version must be specified. Use man:file[1] to determine the original version in the basejail:
-[source,bash]
+[source,shell]
....
# file /usr/jails/basejail/bin/sh
/usr/jails/basejail/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 9.3, stripped
@@ -793,7 +793,7 @@ To upgrade the basejail to a new version, first upgrade the host system as descr
Now use this information to perform the upgrade from `9.3-RELEASE` to the current version of the host system:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -U -s 9.3-RELEASE
....
@@ -808,7 +808,7 @@ How to use man:mergemaster[8] depends on the purpose and trustworthiness of a ja
====
Delete the link from the jail's [.filename]#/usr/src# into the basejail and create a new [.filename]#/usr/src# in the jail as a mountpoint. Mount the host computer's [.filename]#/usr/src# read-only on the jail's new [.filename]#/usr/src# mountpoint:
-[source,bash]
+[source,shell]
....
# rm /usr/jails/jailname/usr/src
# mkdir /usr/jails/jailname/usr/src
@@ -817,14 +817,14 @@ Delete the link from the jail's [.filename]#/usr/src# into the basejail and crea
Get a console in the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin console jailname
....
Inside the jail, run `mergemaster`. Then exit the jail console:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# mergemaster -U
@@ -833,7 +833,7 @@ Inside the jail, run `mergemaster`. Then exit the jail console:
Finally, unmount the jail's [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# umount /usr/jails/jailname/usr/src
....
@@ -846,7 +846,7 @@ Finally, unmount the jail's [.filename]#/usr/src#:
====
If the users and services in a jail are trusted, man:mergemaster[8] can be run from the host:
-[source,bash]
+[source,shell]
....
# mergemaster -U -D /usr/jails/jailname
....
@@ -860,7 +860,7 @@ The ports tree in the basejail is shared by the other jails. Updating that copy
The basejail ports tree is updated with man:portsnap[8]:
-[source,bash]
+[source,shell]
....
# ezjail-admin update -P
....
@@ -873,7 +873,7 @@ The basejail ports tree is updated with man:portsnap[8]:
ezjail automatically starts jails when the computer is started. Jails can be manually stopped and restarted with `stop` and `start`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop sambajail
Stopping jails: sambajail.
@@ -881,7 +881,7 @@ Stopping jails: sambajail.
By default, jails are started automatically when the host computer starts. Autostarting can be disabled with `config`:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r norun seldomjail
....
@@ -890,7 +890,7 @@ This takes effect the next time the host computer is started. A jail that is alr
Enabling autostart is very similar:
-[source,bash]
+[source,shell]
....
# ezjail-admin config -r run oftenjail
....
@@ -904,7 +904,7 @@ The archive file can be copied elsewhere as a backup, or an existing jail can be
Stop and archive a jail named `wwwserver`:
-[source,bash]
+[source,shell]
....
# ezjail-admin stop wwwserver
Stopping jails: wwwserver.
@@ -915,7 +915,7 @@ wwwserver-201407271153.13.tar.gz
Create a new jail named `wwwserver-clone` from the archive created in the previous step. Use the [.filename]#em1# interface and assign a new IP address to avoid conflict with the original:
-[source,bash]
+[source,shell]
....
# ezjail-admin create -a /usr/jails/ezjail_archives/wwwserver-201407271153.13.tar.gz wwwserver-clone 'lo1|127.0.3.1,em1|192.168.1.51'
....
@@ -943,7 +943,7 @@ cloned_interfaces="lo1"
Immediately create the new loopback interface:
-[source,bash]
+[source,shell]
....
# service netif cloneup
Created clone interfaces: lo1.
@@ -951,14 +951,14 @@ Created clone interfaces: lo1.
Create the jail:
-[source,bash]
+[source,shell]
....
# ezjail-admin create dns1 'lo1|127.0.2.1,re0|192.168.1.240'
....
Start the jail, connect to a console running on it, and perform some basic configuration:
-[source,bash]
+[source,shell]
....
# ezjail-admin start dns1
# ezjail-admin console dns1
@@ -981,7 +981,7 @@ nameserver 10.0.0.61
Still using the jail console, install package:dns/bind99[].
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/dns/bind99 install clean
....
@@ -1046,7 +1046,7 @@ named_enable="YES"
Start and test the name server:
-[source,bash]
+[source,shell]
....
# service named start
wrote key file "/usr/local/etc/namedb/rndc.key"
@@ -1056,14 +1056,14 @@ Starting named.
A response that includes
-[source,bash]
+[source,shell]
....
;; Got answer;
....
shows that the new DNS server is working. A long delay followed by a response including
-[source,bash]
+[source,shell]
....
;; connection timed out; no servers could be reached
....
diff --git a/documentation/content/zh-tw/books/handbook/kernelconfig/_index.adoc b/documentation/content/zh-tw/books/handbook/kernelconfig/_index.adoc
index b08cbd0d8b..462ad9dfcf 100644
--- a/documentation/content/zh-tw/books/handbook/kernelconfig/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/kernelconfig/_index.adoc
@@ -80,7 +80,7 @@ toc::[]
核心模組會放在 [.filename]#/boot/kernel# 並且可使用 man:kldload[8] 動態載入到執行中的核心。大部份的核心驅動程式都有可載入的模組與操作手冊。例如 man:ath[4] 無線乙太網路驅動程式在其操作手冊有以下資訊:
-[source,bash]
+[source,shell]
....
Alternatively, to load the driver as a module at boot time, place the
following line in loader.conf(5):
@@ -104,7 +104,7 @@ following line in loader.conf(5):
若 FreeBSD 是唯一安裝的作業系統,則可使用 man:dmesg[8] 來查看開時時系統偵測到的硬體資訊 。FreeBSD 上大多硬體驅動程式都有操作手冊會列出支援的硬體。例如,以下幾行是說 man:psm[4] 驅動程式偵測到了一隻滑鼠:
-[source,bash]
+[source,shell]
....
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
@@ -118,7 +118,7 @@ psm0: model Generic PS/2 mouse, device ID 0
另外,也可以透過 man:pciconf[8] 工具可用來查詢硬體資訊,該工具會列出更詳細的硬體資訊如:
-[source,bash]
+[source,shell]
....
% pciconf -lv
ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01 hdr=0x00
@@ -132,7 +132,7 @@ ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c rev=0x01
在 man:man[1] 指令加上 `-k` 旗標可提供有用的資訊,例如,這可列出有包含指定裝置品牌或名稱的手冊頁面清單:
-[source,bash]
+[source,shell]
....
# man -k Atheros
ath(4) - Atheros IEEE 802.11 wireless network driver
@@ -152,7 +152,7 @@ ath_hal(4) - Atheros Hardware Access Layer (HAL)
請不要直接對 [.filename]#GENERIC# 檔案做編輯。複製該檔案為另一個名稱,並對複製出來的檔案做編輯,習慣上檔名會全部使用大寫字元。當維護多台安裝不同的硬體的 FreeBSD 機器時,將檔名後方加上機器的主機名稱 (Host name) 是個不錯的方法。以下範例使用 `amd64` 架構的 [.filename]#GENERIC# 設定檔建立了一個複本名稱為 [.filename]#MYKERNEL#:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
@@ -177,7 +177,7 @@ ath_hal(4) - Atheros Hardware Access Layer (HAL)
或者,將核心設定檔放在其他地方,然後建立一個符號連結 (Symbolic link) 至該檔案:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernels
@@ -206,7 +206,7 @@ options IPDIVERT
====
要產生含有所有可用選項的設定檔,可以 `root` 執行以下指令:
-[source,bash]
+[source,shell]
....
# cd /usr/src/sys/arch/conf && make LINT
....
@@ -224,21 +224,21 @@ options IPDIVERT
. 切換至此目錄:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src
....
+
. 指定自訂核心設定檔的名稱來編譯新的核心:
+
-[source,bash]
+[source,shell]
....
# make buildkernel KERNCONF=MYKERNEL
....
+
. 安裝使用指定核心設定檔所編譯的新核心。此指令將會複製新核心到 [.filename]#/boot/kernel/kernel# 並將舊核心備份到 [.filename]#/boot/kernel.old/kernel#:
+
-[source,bash]
+[source,shell]
....
# make installkernel KERNCONF=MYKERNEL
....
@@ -272,7 +272,7 @@ WITHOUT_MODULES = linux acpi sound
`config` 失敗::
若 `config` 失敗,會列出不正確的行號。使用以下訊息為例子,需要與 [.filename]#GENERIC# 或 [.filename]#NOTES# 比對來確認第 17 行輸入的內容正確:
+
-[source,bash]
+[source,shell]
....
config: line 17: syntax error
....
@@ -290,7 +290,7 @@ config: line 17: syntax error
====
在排除核心問題時,請確定留有 [.filename]#GENERIC# 的複本,或者其他已知可以運作的核心,並使用不同的名稱來確保下次編譯時不會被刪除,這很重要,因此每當新的核心被安裝之後,[.filename]#kernel.old# 都會被最後安裝的核心覆寫,有可能會無法開機。盡快,透過重新命名將可運作的核心目錄移動到目前運作的核心目錄:
-[source,bash]
+[source,shell]
....
# mv /boot/kernel /boot/kernel.bad
# mv /boot/kernel.good /boot/kernel
diff --git a/documentation/content/zh-tw/books/handbook/l10n/_index.adoc b/documentation/content/zh-tw/books/handbook/l10n/_index.adoc
index ac37bb6351..74f28a455a 100644
--- a/documentation/content/zh-tw/books/handbook/l10n/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/l10n/_index.adoc
@@ -96,14 +96,14 @@ _LanguageCode_ 與 _CountryCode_ 用來表示城市及特定語言。<<locale-la
完整可用的語系清單可用以下指令查詢:
-[source,bash]
+[source,shell]
....
% locale -a | more
....
查詢目前使用的語系設定:
-[source,bash]
+[source,shell]
....
% locale
....
@@ -184,7 +184,7 @@ german|German Users Accounts:\
每次編輯 [.filename]#/etc/login.conf# 之後,請記得要執行以下指令來更新登入類別的能力資料庫(Capability database):
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -206,28 +206,28 @@ user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh
要在建立使用者時覆蓋預設的設定,可在出現此提示時輸入需要的語系:
-[source,bash]
+[source,shell]
....
Enter login class: default []:
....
或執行 `adduser` 時指定語系:
-[source,bash]
+[source,shell]
....
# adduser -class language
....
若使用 `pw` 來新增使用者,則可指定語系如下:
-[source,bash]
+[source,shell]
....
# pw useradd user_name -L language
....
To change the login class of an existing user, `chpass` can be used. Invoke it as superuser and provide the username to edit as the argument.
-[source,bash]
+[source,shell]
....
# chpass user_name
....
diff --git a/documentation/content/zh-tw/books/handbook/linuxemu/_index.adoc b/documentation/content/zh-tw/books/handbook/linuxemu/_index.adoc
index f726e27a06..18db640d73 100644
--- a/documentation/content/zh-tw/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/linuxemu/_index.adoc
@@ -75,21 +75,21 @@ Linux(TM) 程式庫預設並不會安裝,且並不會開啟 Linux(TM) Binary
在嘗試編譯 Port 前,要載入 Linux(TM) 核心模組,否則編譯會失敗:
-[source,bash]
+[source,shell]
....
# kldload linux
....
對 64-位元的相容性:
-[source,bash]
+[source,shell]
....
# kldload linux64
....
確認模組已載入:
-[source,bash]
+[source,shell]
....
% kldstat
Id Refs Address Size Name
@@ -99,7 +99,7 @@ Linux(TM) 程式庫預設並不會安裝,且並不會開啟 Linux(TM) Binary
在 FreeBSD 安裝基本的 Linux(TM) 程式庫和 Binary 最簡單的方式是安裝 package:emulators/linux_base-c6[] 套件或是 Port 。要安裝 Port:
-[source,bash]
+[source,shell]
....
# pkg install emulators/linux_base-c6
....
@@ -122,7 +122,7 @@ Since the Linux(TM) binary compatibility layer has gained support for running bo
在 Linux(TM) 系統,可使用 `ldd` 來找出應用程式需要哪個共用程式庫。 例如,檢查 `linuxdoom` 需要哪個共用程式庫,在有安裝 Doom 的 Linux(TM) 系統執行這個指令:
-[source,bash]
+[source,shell]
....
% ldd linuxdoom
libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0
@@ -132,7 +132,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
然後,複製所有 Linux(TM) 系統輸出結果中最後一欄的檔案到 FreeBSD 系統的 [.filename]#/compat/linux#。 複製完後,建立符號連結 (Symbolic link) 至輸出結果第一欄的名稱。以這個例子會在 FreeBSD 系統產生以下檔案:
-[source,bash]
+[source,shell]
....
/compat/linux/usr/X11/lib/libXt.so.3.1.0
/compat/linux/usr/X11/lib/libXt.so.3 -> libXt.so.3.1.0
@@ -146,7 +146,7 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
例如,以下程式庫已存在 FreeBSD 系統:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.27
/compat/linux/lib/libc.so.4 -> libc.so.4.6.27
@@ -154,14 +154,14 @@ libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29
且 `ldd` 顯示 Binary 需要使用較新的版本:
-[source,bash]
+[source,shell]
....
libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
....
雖然既有的程式庫只有在最後一碼過時一或兩個版本,程式應該仍可使用稍微舊的版本執行,雖然如此,保險起見還替換既有的 [.filename]#libc.so# 為較新的版本:
-[source,bash]
+[source,shell]
....
/compat/linux/lib/libc.so.4.6.29
/compat/linux/lib/libc.so.4 -> libc.so.4.6.29
@@ -173,7 +173,7 @@ libc.so.4 (DLL Jump 4.5pl26) -> libc.so.4.6.29
ELF Binary 有時候需要額外的步驟。當執行無商標 (Unbranded) 的 ELF Binary,會產生錯誤訊息:
-[source,bash]
+[source,shell]
....
% ./my-linux-elf-binary
ELF binary type not known
@@ -182,7 +182,7 @@ Abort
要協助 FreeBSD 核心區別是 FreeBSD ELF Binary 還是 Linux(TM) Binary,可使用 man:brandelf[1]:
-[source,bash]
+[source,shell]
....
% brandelf -t Linux my-linux-elf-binary
....
@@ -193,7 +193,7 @@ Abort
要安裝 Linux(TM)RPM 為基礎的應用程式,需先安裝 package:archivers/rpm4[] 套件或 Port。安裝完成之後,`root` 可以使用這個指令安裝 [.filename]#.rpm#:
-[source,bash]
+[source,shell]
....
# cd /compat/linux
# rpm2cpio < /path/to/linux.archive.rpm | cpio -id
@@ -205,7 +205,7 @@ Abort
如果 DNS 無法運作或出現這個錯誤:
-[source,bash]
+[source,shell]
....
resolv+: "bind" is an invalid keyword resolv+:
"hosts" is an invalid keyword
@@ -240,7 +240,7 @@ For the Linux(TM)ABI support, FreeBSD sees the magic number as an ELF binary. Th
For Linux(TM) binaries to function, they must be _branded_ as type `Linux` using man:brandelf[1]:
-[source,bash]
+[source,shell]
....
# brandelf -t Linux file
....
diff --git a/documentation/content/zh-tw/books/handbook/mac/_index.adoc b/documentation/content/zh-tw/books/handbook/mac/_index.adoc
index 3ba2a9caaa..16fd90a81e 100644
--- a/documentation/content/zh-tw/books/handbook/mac/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/mac/_index.adoc
@@ -113,7 +113,7 @@ Using a multi label policy on a partition and establishing a multi label securit
The following command will set `multilabel` on the specified UFS file system. This may only be done in single-user mode and is not a requirement for the swap file system:
-[source,bash]
+[source,shell]
....
# tunefs -l enable /
....
@@ -131,7 +131,7 @@ Virtually all aspects of label policy module configuration will be performed usi
All configuration may be done using `setfmac`, which is used to set MAC labels on system objects, and `setpmac`, which is used to set the labels on system subjects. For example, to set the `biba` MAC label to `high` on [.filename]#test#:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
....
@@ -140,7 +140,7 @@ If the configuration is successful, the prompt will be returned without error. A
The system administrator may use `setpmac` to override the policy module's settings by assigning a different label to the invoked process:
-[source,bash]
+[source,shell]
....
# setfmac biba/high test
Permission denied
@@ -223,7 +223,7 @@ Labels may be set on network interfaces to help control the flow of data across
When setting the MAC label on network interfaces, `maclabel` may be passed to `ifconfig`:
-[source,bash]
+[source,shell]
....
# ifconfig bge0 maclabel biba/equal
....
@@ -302,7 +302,7 @@ The rule list may be entered using man:ugidfw[8] which has a syntax similar to m
After the man:mac_bsdextended[4] module has been loaded, the following command may be used to list the current rule configuration:
-[source,bash]
+[source,shell]
....
# ugidfw list
0 slots, 0 rules
@@ -310,14 +310,14 @@ After the man:mac_bsdextended[4] module has been loaded, the following command m
By default, no rules are defined and everything is completely accessible. To create a rule which blocks all access by users but leaves `root` unaffected:
-[source,bash]
+[source,shell]
....
# ugidfw add subject not uid root new object not uid root mode n
....
While this rule is simple to implement, it is a very bad idea as it blocks all users from issuing any commands. A more realistic example blocks `user1` all access, including directory listings, to ``_user2_``'s home directory:
-[source,bash]
+[source,shell]
....
# ugidfw set 2 subject uid user1 object uid user2 mode n
# ugidfw set 3 subject uid user1 object gid user2 mode n
@@ -369,7 +369,7 @@ Once loaded, this module enables the MAC policy on all sockets. The following tu
By default, ports below 1024 can only be used by privileged processes which run as `root`. For man:mac_portacl[4] to allow non-privileged processes to bind to ports below 1024, set the following tunables as follows:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.port_high=1023
# sysctl net.inet.ip.portrange.reservedlow=0
@@ -378,21 +378,21 @@ By default, ports below 1024 can only be used by privileged processes which run
To prevent the `root` user from being affected by this policy, set `security.mac.portacl.suser_exempt` to a non-zero value.
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.suser_exempt=1
....
To allow the `www` user with UID 80 to bind to port 80 without ever needing `root` privilege:
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:80:tcp:80
....
This next example permits the user with the UID of 1001 to bind to TCP ports 110 (POP3) and 995 (POP3s):
-[source,bash]
+[source,shell]
....
# sysctl security.mac.portacl.rules=uid:1001:tcp:110,uid:1001:tcp:995
....
@@ -414,21 +414,21 @@ When this policy is enabled, users will only be permitted to see their processes
This example adds `top` to the label set on users in the `insecure` class. All processes spawned by users in the `insecure` class will stay in the `partition/13` label.
-[source,bash]
+[source,shell]
....
# setpmac partition/13 top
....
This command displays the partition label and the process list:
-[source,bash]
+[source,shell]
....
# ps Zax
....
This command displays another user's process partition label and that user's currently running processes:
-[source,bash]
+[source,shell]
....
# ps -ZU trhodes
....
@@ -471,14 +471,14 @@ The following `sysctl` tunables are available:
To manipulate MLS labels, use man:setfmac[8]. To assign a label to an object:
-[source,bash]
+[source,shell]
....
# setfmac mls/5 test
....
To get the MLS label for the file [.filename]#test#:
-[source,bash]
+[source,shell]
....
# getfmac test
....
@@ -525,7 +525,7 @@ The following tunables can be used to manipulate the Biba policy:
To access the Biba policy setting on system objects, use `setfmac` and `getfmac`:
-[source,bash]
+[source,shell]
....
# setfmac biba/low test
# getfmac test
@@ -555,7 +555,7 @@ This policy relies on the ubiquitous labeling of all system objects with integri
Like the Biba and MLS policies, `setfmac` and `setpmac` are used to place labels on system objects:
-[source,bash]
+[source,shell]
....
# setfmac /usr/home/trhodes lomac/high[low]
# getfmac /usr/home/trhodes lomac/high[low]
@@ -642,7 +642,7 @@ Then, add the following line to the default user class section:
Save the edits and issue the following command to rebuild the database:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -651,14 +651,14 @@ Save the edits and issue the following command to rebuild the database:
Set the `root` user to the default class using:
-[source,bash]
+[source,shell]
....
# pw usermod root -L default
....
All user accounts that are not `root` will now require a login class. The login class is required, otherwise users will be refused access to common commands. The following `sh` script should do the trick:
-[source,bash]
+[source,shell]
....
# for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' \
/etc/passwd`; do pw usermod $x -L default; done;
@@ -666,7 +666,7 @@ All user accounts that are not `root` will now require a login class. The login
Next, drop the `nagios` and `www` accounts into the insecure class:
-[source,bash]
+[source,shell]
....
# pw usermod nagios -L insecure
# pw usermod www -L insecure
@@ -709,7 +709,7 @@ This policy enforces security by setting restrictions on the flow of information
This file will be read after running `setfsmac` on every file system. This example sets the policy on the root file system:
-[source,bash]
+[source,shell]
....
# setfsmac -ef /etc/policy.contexts /
....
@@ -748,7 +748,7 @@ First, ensure that the web server and Nagios will not be started on system initi
If all seems well, Nagios, Apache, and Sendmail can now be started:
-[source,bash]
+[source,shell]
....
# cd /etc/mail && make stop && \
setpmac biba/equal make start && setpmac biba/10\(10-10\) apachectl start && \
@@ -761,7 +761,7 @@ Double check to ensure that everything is working properly. If not, check the lo
====
The `root` user can still change the security enforcement and edit its configuration files. The following command will permit the degradation of the security policy to a lower grade for a newly spawned shell:
-[source,bash]
+[source,shell]
....
# setpmac biba/10 csh
....
diff --git a/documentation/content/zh-tw/books/handbook/mail/_index.adoc b/documentation/content/zh-tw/books/handbook/mail/_index.adoc
index 1fe498898f..b344860205 100644
--- a/documentation/content/zh-tw/books/handbook/mail/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/mail/_index.adoc
@@ -102,7 +102,7 @@ In addition to mapping hostnames to IP addresses, DNS is responsible for storing
+
To view the MX records for a domain, specify the type of record. Refer to man:host[1], for more details about this command:
+
-[source,bash]
+[source,shell]
....
% host -t mx FreeBSD.org
FreeBSD.org mail is handled by 10 mx1.FreeBSD.org
@@ -146,7 +146,7 @@ To configure the access database, use the format shown in the sample to make ent
+
Whenever this file is updated, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
@@ -188,7 +188,7 @@ postmaster@example.com postmaster@noc.example.net
+
This file is processed in a first match order. When an email address matches the address on the left, it is mapped to the local mailbox listed on the right. The format of the first entry in this example maps a specific email address to a local mailbox, whereas the format of the second entry maps a specific email address to a remote mailbox. Finally, any email address from `example.com` which has not matched any of the previous entries will match the last mapping and be sent to the local mailbox `joe`. When creating custom entries, use this format and add them to [.filename]#/etc/mail/virtusertable#. Whenever this file is edited, update its database and restart Sendmail:
+
-[source,bash]
+[source,shell]
....
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
# service sendmail restart
@@ -252,7 +252,7 @@ More information on Sendmail's startup options is available in man:rc.sendmail[8
When a new MTA is installed using the Ports Collection, its startup script is also installed and startup instructions are mentioned in its package message. Before starting the new MTA, stop the running Sendmail processes. This example stops all of these services, then starts the Postfix service:
-[source,bash]
+[source,shell]
....
# service sendmail stop
# service postfix start
@@ -432,7 +432,7 @@ Either of the above will allow mail to be received directly at the host.
Try this:
-[source,bash]
+[source,shell]
....
# hostname
example.FreeBSD.org
@@ -444,7 +444,7 @@ In this example, mail sent directly to mailto:yourlogin@example.FreeBSD.org[your
For this example:
-[source,bash]
+[source,shell]
....
# host example.FreeBSD.org
example.FreeBSD.org has address 204.216.27.XX
@@ -516,7 +516,7 @@ Additionally, a typical Internet access service agreement may forbid one from ru
The easiest way to fulfill those needs is to install the package:mail/ssmtp[] port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/mail/ssmtp
# make install replace clean
@@ -622,7 +622,7 @@ saslauthd_enable="YES"
+
Finally, start the saslauthd daemon:
+
-[source,bash]
+[source,shell]
....
# service saslauthd start
....
@@ -640,7 +640,7 @@ SENDMAIL_LDADD=-lsasl2
These lines provide Sendmail the proper configuration options for linking to package:cyrus-sasl2[] at compile time. Make sure that package:cyrus-sasl2[] has been installed before recompiling Sendmail.
. Recompile Sendmail by executing the following commands:
+
-[source,bash]
+[source,shell]
....
# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
@@ -682,14 +682,14 @@ Although `mail` does not natively support interaction with POP or IMAP servers,
In order to send and receive email, run `mail`:
-[source,bash]
+[source,shell]
....
% mail
....
The contents of the user's mailbox in [.filename]#/var/mail# are automatically read by `mail`. Should the mailbox be empty, the utility exits with a message indicating that no mail could be found. If mail exists, the application interface starts, and a list of messages will be displayed. Messages are automatically numbered, as can be seen in the following example:
-[source,bash]
+[source,shell]
....
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/marcs": 3 messages 3 new
@@ -700,7 +700,7 @@ Mail version 8.1 6/6/93. Type ? for help.
Messages can now be read by typing kbd:[t] followed by the message number. This example reads the first email:
-[source,bash]
+[source,shell]
....
& t 1
Message 1:
@@ -719,7 +719,7 @@ As seen in this example, the message will be displayed with full headers. To dis
If the email requires a reply, press either kbd:[R] or kbd:[r]`mail` keys. kbd:[R] instructs `mail` to reply only to the sender of the email, while kbd:[r] replies to all other recipients of the message. These commands can be suffixed with the mail number of the message to reply to. After typing the response, the end of the message should be marked by a single kbd:[.] on its own line. An example can be seen below:
-[source,bash]
+[source,shell]
....
& R 1
To: root@localhost
@@ -732,7 +732,7 @@ EOT
In order to send a new email, press kbd:[m], followed by the recipient email address. Multiple recipients may be specified by separating each address with the kbd:[,] delimiter. The subject of the message may then be entered, followed by the message contents. The end of the message should be specified by putting a single kbd:[.] on its own line.
-[source,bash]
+[source,shell]
....
& mail root@localhost
Subject: I mastered mail
@@ -764,7 +764,7 @@ Refer to http://www.mutt.org[http://www.mutt.org] for more information on mutt.
mutt may be installed using the package:mail/mutt[] port. After the port has been installed, mutt can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% mutt
....
@@ -803,7 +803,7 @@ alpine has had several remote vulnerabilities discovered in the past, which allo
The current version of alpine may be installed using the package:mail/alpine[] port. Once the port has installed, alpine can be started by issuing the following command:
-[source,bash]
+[source,shell]
....
% alpine
....
@@ -844,7 +844,7 @@ fetchmail is a full-featured IMAP and POP client. It allows users to automatical
This section explains some of the basic features of fetchmail. This utility requires a [.filename]#.fetchmailrc# configuration in the user's home directory in order to run correctly. This file includes server information as well as login credentials. Due to the sensitive nature of the contents of this file, it is advisable to make it readable only by the user, with the following command:
-[source,bash]
+[source,shell]
....
% chmod 600 .fetchmailrc
....
@@ -869,7 +869,7 @@ user "john", with password "XXXXX", is "myth" here;
fetchmail can be run in daemon mode by running it with `-d`, followed by the interval (in seconds) that fetchmail should poll servers listed in [.filename]#.fetchmailrc#. The following example configures fetchmail to poll every 600 seconds:
-[source,bash]
+[source,shell]
....
% fetchmail -d 600
....
diff --git a/documentation/content/zh-tw/books/handbook/mirrors/_index.adoc b/documentation/content/zh-tw/books/handbook/mirrors/_index.adoc
index dcec65100e..0e16954cc1 100644
--- a/documentation/content/zh-tw/books/handbook/mirrors/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/mirrors/_index.adoc
@@ -410,7 +410,7 @@ Subversion 只是一套開發人員工具。一般使用者可能會較喜歡使
安裝 package:security/ca_root_nss[] 可讓 Subversion 能夠驗証 HTTPS 檔案庫伺服器的身份。root SSL 憑証可從 Port 安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/security/ca_root_nss
# make install clean
@@ -418,7 +418,7 @@ Subversion 只是一套開發人員工具。一般使用者可能會較喜歡使
或從套件:
-[source,bash]
+[source,shell]
....
# pkg install ca_root_nss
....
@@ -437,7 +437,7 @@ Subversion 只是一套開發人員工具。一般使用者可能會較喜歡使
Subversion 可從 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -445,7 +445,7 @@ Subversion 可從 Port 套件集安裝:
Subversion 也可以以套件安裝:
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
@@ -467,7 +467,7 @@ Subversion 使用 URL 來指定檔案庫,使用的格式為 _protocol://hostna
使用指令從指定的檔案庫取出 (Checkout) 原始碼如下:
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/repository/branch lwcdir
....
@@ -480,7 +480,7 @@ where:
以下範例會使用 HTTPS 協定從 FreeBSD 的檔案庫取出 Port 套件集,並將本地工作複本放置於 [.filename]#/usr/ports#。若 [.filename]#/usr/ports# 已存在,且不是由 `svn` 所建立的,記得要在取出之前重新命名或刪除。
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
@@ -489,14 +489,14 @@ where:
首次取出之後,往後要更新本地工作複本可以執行:
-[source,bash]
+[source,shell]
....
# svn update lwcdir
....
要更新上述範例所建立的 [.filename]#/usr/ports# 可執行:
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -505,7 +505,7 @@ where:
另一種在取出之後更新本地工作複本的方式是透過 [.filename]#/usr/ports#, [.filename]#/usr/src# 以及 [.filename]#/usr/doc# 目錄所提供的 [.filename]#Makefile#。設定 `SVN_UPDATE` 並使用 `update` 目標。例如要更新 [.filename]#/usr/src#:
-[source,bash]
+[source,shell]
....
# cd /usr/src
# make update SVN_UPDATE=yes
diff --git a/documentation/content/zh-tw/books/handbook/multimedia/_index.adoc b/documentation/content/zh-tw/books/handbook/multimedia/_index.adoc
index f9d494bcf6..54046b3cc0 100644
--- a/documentation/content/zh-tw/books/handbook/multimedia/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/multimedia/_index.adoc
@@ -78,7 +78,7 @@ FreeBSD 也能播放一般的視訊檔和 DVD。 FreeBSD Port 套件集中含有
要使用音效裝置,必須要載入正確的驅動程式才行。最簡單方式就是以 man:kldload[8] 來載入核心模組。以下範例示範載入 Intel 規格內建的音效晶片驅動程式:
-[source,bash]
+[source,shell]
....
# kldload snd_hda
....
@@ -92,7 +92,7 @@ snd_hda_load="YES"
其他可用的音效卡模組清單列於 [.filename]#/boot/defaults/loader.conf#。當不確認要使用何種驅動程式時,可載入 [.filename]#snd_driver# 模組:
-[source,bash]
+[source,shell]
....
# kldload snd_driver
....
@@ -149,7 +149,7 @@ The settings shown above are the defaults. In some cases, the IRQ or other setti
After loading the required module or rebooting into the custom kernel, the sound card should be detected. To confirm, run `dmesg | grep pcm`. This example is from a system with a built-in Conexant CX20590 chipset:
-[source,bash]
+[source,shell]
....
pcm0: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x001c) (HDMI/DP 8ch)> at nid 6 on hdaa0
@@ -158,7 +158,7 @@ pcm2: <Conexant CX20590 (Analog 2.0+HP/2.0)> at nid 31,25 and 35,27 on hdaa1
The status of the sound card may also be checked using this command:
-[source,bash]
+[source,shell]
....
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
@@ -172,7 +172,7 @@ The output will vary depending upon the sound card. If no [.filename]#pcm# devic
If all goes well, the sound card should now work in FreeBSD. If the CD or DVD drive is properly connected to the sound card, one can insert an audio CD in the drive and play it with man:cdcontrol[1]:
-[source,bash]
+[source,shell]
....
% cdcontrol -f /dev/acd0 play 1
....
@@ -187,7 +187,7 @@ Various applications, such as package:audio/workman[], provide a friendlier inte
Another quick way to test the card is to send data to [.filename]#/dev/dsp#:
-[source,bash]
+[source,shell]
....
% cat filename > /dev/dsp
....
@@ -206,28 +206,28 @@ Connecting to a Bluetooth device is out of scope for this chapter. Refer to cros
To get Bluetooth sound sink working with FreeBSD's sound system, users have to install package:audio/virtual_oss[] first:
-[source,bash]
+[source,shell]
....
# pkg install virtual_oss
....
package:audio/virtual_oss[] requires `cuse` to be loaded into the kernel:
-[source,bash]
+[source,shell]
....
# kldload cuse
....
To load `cuse` during system startup, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf cuse_load=yes
....
To use headphones as a sound sink with package:audio/virtual_oss[], users need to create a virtual device after connecting to a Bluetooth audio device:
-[source,bash]
+[source,shell]
....
# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
....
@@ -297,7 +297,7 @@ pcm7: <HDA Realtek ALC889 PCM #3 Digital> at cad 2 nid 1 on hdac1
In this example, the graphics card (`NVidia`) has been enumerated before the sound card (`Realtek ALC889`). To use the sound card as the default playback device, change `hw.snd.default_unit` to the unit that should be used for playback:
-[source,bash]
+[source,shell]
....
# sysctl hw.snd.default_unit=n
....
@@ -316,7 +316,7 @@ It is often desirable to have multiple sources of sound that are able to play si
Three man:sysctl[8] knobs are available for configuring virtual channels:
-[source,bash]
+[source,shell]
....
# sysctl dev.pcm.0.play.vchans=4
# sysctl dev.pcm.0.rec.vchans=4
@@ -355,7 +355,7 @@ A popular graphical MP3 player is Audacious. It supports Winamp skins and additi
The package:audio/mpg123[] package or port provides an alternative, command-line MP3 player. Once installed, specify the MP3 file to play on the command line. If the system has multiple audio devices, the sound device can also be specified:
-[source,bash]
+[source,shell]
....
# mpg123 -a /dev/dsp1.0 Foobar-GreatestHits.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
@@ -377,7 +377,7 @@ The `cdda2wav` tool, which is installed with the package:sysutils/cdrtools[] sui
With the audio CD in the drive, the following command can be issued as `root` to rip an entire CD into individual, per track, WAV files:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -B
....
@@ -386,21 +386,21 @@ In this example, the `-D _0,1,0_` indicates the SCSI device [.filename]#0,1,0# c
To rip individual tracks, use `-t` to specify the track:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 7
....
To rip a range of tracks, such as track one to seven, specify a range:
-[source,bash]
+[source,shell]
....
# cdda2wav -D 0,1,0 -t 1+7
....
To rip from an ATAPI (IDE) CDROM drive, specify the device name in place of the SCSI unit numbers. For example, to rip track 7 from an IDE drive:
-[source,bash]
+[source,shell]
....
# cdda2wav -D /dev/acd0 -t 7
....
@@ -414,7 +414,7 @@ Lame is a popular MP3 encoder which can be installed from the package:audio/lame
The following command will convert the ripped WAV file [.filename]#audio01.wav# to [.filename]#audio01.mp3#:
-[source,bash]
+[source,shell]
....
# lame -h -b 128 --tt "Foo Song Title" --ta "FooBar Artist" --tl "FooBar Album" \
--ty "2014" --tc "Ripped and encoded by Foo" --tg "Genre" audio01.wav audio01.mp3
@@ -426,7 +426,7 @@ In order to burn an audio CD from MP3s, they must first be converted to a non-co
To convert [.filename]#audio01.mp3# using mpg123, specify the name of the PCM file:
-[source,bash]
+[source,shell]
....
# mpg123 -s audio01.mp3 > audio01.pcm
....
@@ -449,7 +449,7 @@ To use XMMS to convert a MP3 to WAV format, use these steps:
Both the WAV and PCM formats can be used with cdrecord. When using WAV files, there will be a small tick sound at the beginning of each track. This sound is the header of the WAV file. The package:audio/sox[] port or package can be used to remove the header:
-[source,bash]
+[source,shell]
....
% sox -t wav -r 44100 -s -w -c 2 track.wav track.raw
....
@@ -463,7 +463,7 @@ Before configuring video playback, determine the model and chipset of the video
It is a good idea to have a short MPEG test file for evaluating various players and options. Since some DVD applications look for DVD media in [.filename]#/dev/dvd# by default, or have this device name hardcoded in them, it might be useful to make a symbolic link to the proper device:
-[source,bash]
+[source,shell]
....
# ln -sf /dev/cd0 /dev/dvd
....
@@ -503,14 +503,14 @@ Common video interfaces include:
To check whether this extension is running, use `xvinfo`:
-[source,bash]
+[source,shell]
....
% xvinfo
....
XVideo is supported for the card if the result is similar to:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -586,7 +586,7 @@ The formats listed, such as YUV2 and YUV12, are not present with every implement
If the result instead looks like:
-[source,bash]
+[source,shell]
....
X-Video Extension version 2.2
screen #0
@@ -617,27 +617,27 @@ This section describes only a few common uses. Refer to mplayer(1) for a complet
To play the file [.filename]#testfile.avi#, specify the video interfaces with `-vo`, as seen in the following examples:
-[source,bash]
+[source,shell]
....
% mplayer -vo xv testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo sdl testfile.avi
....
-[source,bash]
+[source,shell]
....
% mplayer -vo x11 testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo dga testfile.avi
....
-[source,bash]
+[source,shell]
....
# mplayer -vo 'sdl:dga' testfile.avi
....
@@ -646,7 +646,7 @@ It is worth trying all of these options, as their relative performance depends o
To play a DVD, replace [.filename]#testfile.avi# with `dvd://_N_ -dvd-device _DEVICE_`, where _N_ is the title number to play and _DEVICE_ is the device node for the DVD. For example, to play title 3 from [.filename]#/dev/dvd#:
-[source,bash]
+[source,shell]
....
# mplayer -vo xv dvd://3 -dvd-device /dev/dvd
....
@@ -671,7 +671,7 @@ zoom=yes
`mplayer` can be used to rip a DVD title to a [.filename]#.vob#. To dump the second title from a DVD:
-[source,bash]
+[source,shell]
....
# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd
....
@@ -684,7 +684,7 @@ Before using `mencoder`, it is a good idea to become familiar with the options d
Here is an example of a simple copy:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac copy -ovc copy -o output.avi
....
@@ -693,7 +693,7 @@ To rip to a file, use `-dumpfile` with `mplayer`.
To convert [.filename]#input.avi# to the MPEG4 codec with MPEG3 audio encoding, first install the package:audio/lame[] port. Due to licensing restrictions, a package is not available. Once installed, type:
-[source,bash]
+[source,shell]
....
% mencoder input.avi -oac mp3lame -lameopts br=192 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi
@@ -714,7 +714,7 @@ By default, the xine player starts a graphical user interface. The menus can the
Alternatively, xine may be invoked from the command line by specifying the name of the file to play:
-[source,bash]
+[source,shell]
....
% xine -g -p mymovie.avi
....
@@ -730,7 +730,7 @@ In FreeBSD, Transcode can be installed using the package:multimedia/transcode[]
This example demonstrates how to convert a DivX file into a PAL MPEG-1 file (PAL VCD):
-[source,bash]
+[source,shell]
....
% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa
@@ -789,7 +789,7 @@ options OVERRIDE_TUNER=6
或使用 man:sysctl[8]:
-[source,bash]
+[source,shell]
....
# sysctl hw.bt848.tuner=6
@@ -832,14 +832,14 @@ The https://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] page contains a list of
要使用 Binary 套件安裝 MythTV 可:
-[source,bash]
+[source,shell]
....
# pkg install mythtv
....
或從 Port 套件集安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/multimedia/mythtv
# make install
@@ -847,21 +847,21 @@ The https://wiki.freebsd.org/HTPC[wiki.freebsd.org/HTPC] page contains a list of
Once installed, set up the MythTV database:
-[source,bash]
+[source,shell]
....
# mysql -uroot -p < /usr/local/shared/mythtv/database/mc.sql
....
Then, configure the backend:
-[source,bash]
+[source,shell]
....
# mythtv-setup
....
Finally, start the backend:
-[source,bash]
+[source,shell]
....
# sysrc mythbackend_enable=yes
# service mythbackend start
@@ -891,7 +891,7 @@ device ehci
To determine if the USB scanner is detected, plug it in and use `dmesg` to determine whether the scanner appears in the system message buffer. If it does, it should display a message similar to this:
-[source,bash]
+[source,shell]
....
ugen0.2: <EPSON> at usbus0
....
@@ -908,7 +908,7 @@ device pass
Verify that the device is displayed in the system message buffer:
-[source,bash]
+[source,shell]
....
pass2 at aic0 bus 0 target 2 lun 0
pass2: <AGFA SNAPSCAN 600 1.10> Fixed Scanner SCSI-2 device
@@ -917,7 +917,7 @@ pass2: 3.300MB/s transfers
If the scanner was not powered-on at system boot, it is still possible to manually force detection by performing a SCSI bus scan with `camcontrol`:
-[source,bash]
+[source,shell]
....
# camcontrol rescan all
Re-scan of bus 0 was successful
@@ -928,7 +928,7 @@ Re-scan of bus 3 was successful
The scanner should now appear in the SCSI devices list:
-[source,bash]
+[source,shell]
....
# camcontrol devlist
<IBM DDRS-34560 S97B> at scbus0 target 5 lun 0 (pass0,da0)
@@ -945,14 +945,14 @@ The SANE system is split in two parts: the backends (package:graphics/sane-backe
要由 Binary 套件安裝這兩個部份可:
-[source,bash]
+[source,shell]
....
# pkg install xsane sane-frontends
....
或由 Port 套件集安裝
-[source,bash]
+[source,shell]
....
# cd /usr/ports/graphics/sane-frontends
# make install clean
@@ -962,7 +962,7 @@ The SANE system is split in two parts: the backends (package:graphics/sane-backe
After installing the package:graphics/sane-backends[] port or package, use `sane-find-scanner` to check the scanner detection by the SANE system:
-[source,bash]
+[source,shell]
....
# sane-find-scanner -q
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
@@ -977,7 +977,7 @@ Some USB scanners require firmware to be loaded. Refer to sane-find-scanner(1) a
Next, check if the scanner will be identified by a scanning frontend. The SANE backends include `scanimage` which can be used to list the devices and perform an image acquisition. Use `-L` to list the scanner devices. The first example is for a SCSI scanner and the second is for a USB scanner:
-[source,bash]
+[source,shell]
....
# scanimage -L
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
@@ -989,7 +989,7 @@ In this second example, `'epson2:libusb:/dev/usb:/dev/ugen0.2'` is the backend n
If `scanimage` is unable to identify the scanner, this message will appear:
-[source,bash]
+[source,shell]
....
# scanimage -L
@@ -1008,7 +1008,7 @@ usb /dev/ugen0.2
Save the edits and verify that the scanner is identified with the right backend name and the device node:
-[source,bash]
+[source,shell]
....
# scanimage -L
device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner
@@ -1026,7 +1026,7 @@ In order to have access to the scanner, a user needs read and write permissions
This example creates a group called `_usb_`:
-[source,bash]
+[source,shell]
....
# pw groupadd usb
....
@@ -1042,7 +1042,7 @@ add path usb/0.2.0 mode 0666 group usb
Finally, add the users to `_usb_` in order to allow access to the scanner:
-[source,bash]
+[source,shell]
....
# pw groupmod usb -m joe
....
diff --git a/documentation/content/zh-tw/books/handbook/network-servers/_index.adoc b/documentation/content/zh-tw/books/handbook/network-servers/_index.adoc
index 2ea94d9cfc..c7b67b941d 100644
--- a/documentation/content/zh-tw/books/handbook/network-servers/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/network-servers/_index.adoc
@@ -93,7 +93,7 @@ inetd_enable="YES"
To start inetd now, so that it listens for the service you configured, type:
-[source,bash]
+[source,shell]
....
# service inetd start
....
@@ -105,7 +105,7 @@ Once inetd is started, it needs to be notified whenever a modification is made t
[example]
====
-[source,bash]
+[source,shell]
....
# service inetd reload
....
@@ -332,14 +332,14 @@ mountd_flags="-r"
The server can be started now by running this command:
-[source,bash]
+[source,shell]
....
# service nfsd start
....
Whenever the NFS server is started, mountd also starts automatically. However, mountd only reads [.filename]#/etc/exports# when it is started. To make subsequent [.filename]#/etc/exports# edits take effect immediately, force mountd to reread it:
-[source,bash]
+[source,shell]
....
# service mountd reload
....
@@ -355,14 +355,14 @@ nfs_client_enable="YES"
Then, run this command on each NFS client:
-[source,bash]
+[source,shell]
....
# service nfsclient start
....
The client now has everything it needs to mount a remote file system. In these examples, the server's name is `server` and the client's name is `client`. To mount [.filename]#/home# on `server` to the [.filename]#/mnt# mount point on `client`:
-[source,bash]
+[source,shell]
....
# mount server:/home /mnt
....
@@ -390,7 +390,7 @@ rpc_statd_enable="YES"
Then start the applications:
-[source,bash]
+[source,shell]
....
# service lockd start
# service statd start
@@ -410,7 +410,7 @@ This daemon provides an alternative to modifying [.filename]#/etc/fstab# to list
====
In this example, `showmount -e` shows the exported file systems that can be mounted from the NFS server, `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -432,7 +432,7 @@ amd_enable="YES"
To start amd now:
-[source,bash]
+[source,shell]
....
# service amd start
....
@@ -471,7 +471,7 @@ There is a special automounter map mounted on [.filename]#/net#. When a file is
====
In this example, `showmount -e` shows the exported file systems that can be mounted from the NFS server, `foobar`:
-[source,bash]
+[source,shell]
....
% showmount -e foobar
Exports list on foobar:
@@ -493,7 +493,7 @@ autofs_enable="YES"
Then man:autofs[5] can be started by running:
-[source,bash]
+[source,shell]
....
# service automount start
# service automountd start
@@ -636,7 +636,7 @@ nis_client_flags="-S NIS domain,server"
After saving the edits, type `/etc/netstart` to restart the network and apply the values defined in [.filename]#/etc/rc.conf#. Before initializing the NIS maps, start man:ypserv[8]:
-[source,bash]
+[source,shell]
....
# service ypserv start
....
@@ -645,7 +645,7 @@ After saving the edits, type `/etc/netstart` to restart the network and apply th
NIS maps are generated from the configuration files in [.filename]#/etc# on the NIS master, with one exception: [.filename]#/etc/master.passwd#. This is to prevent the propagation of passwords to all the servers in the NIS domain. Therefore, before the NIS maps are initialized, configure the primary password files:
-[source,bash]
+[source,shell]
....
# cp /etc/master.passwd /var/yp/master.passwd
# cd /var/yp
@@ -661,7 +661,7 @@ Ensure that the [.filename]#/var/yp/master.passwd# is neither group or world rea
After completing this task, initialize the NIS maps. FreeBSD includes the man:ypinit[8] script to do this. When generating maps for the master server, include `-m` and specify the NIS domain name:
-[source,bash]
+[source,shell]
....
ellington# ypinit -m test-domain
Server Type: MASTER Domain: test-domain
@@ -699,7 +699,7 @@ NOPUSH = "True"
Every time a new user is created, the user account must be added to the master NIS server and the NIS maps rebuilt. Until this occurs, the new user will not be able to login anywhere except on the NIS master. For example, to add the new user `jsmith` to the `test-domain` domain, run these commands on the master server:
-[source,bash]
+[source,shell]
....
# pw useradd jsmith
# cd /var/yp
@@ -712,7 +712,7 @@ The user could also be added using `adduser jsmith` instead of `pw useradd smith
To set up an NIS slave server, log on to the slave server and edit [.filename]#/etc/rc.conf# as for the master server. Do not generate any NIS maps, as these already exist on the master server. When running `ypinit` on the slave server, use `-s` (for slave) instead of `-m` (for master). This option requires the name of the NIS master in addition to the domain name, as seen in this example:
-[source,bash]
+[source,shell]
....
coltrane# ypinit -s ellington test-domain
@@ -820,7 +820,7 @@ This line configures the client to provide anyone with a valid account in the NI
To start the NIS client immediately, execute the following commands as the superuser:
-[source,bash]
+[source,shell]
....
# /etc/netstart
# service ypbind start
@@ -859,7 +859,7 @@ In this example, the `basie` system is a faculty workstation within the NIS doma
To prevent specified users from logging on to a system, even if they are present in the NIS database, use `vipw` to add `-_username_` with the correct number of colons towards the end of [.filename]#/etc/master.passwd# on the client, where _username_ is the username of a user to bar from logging in. The line with the blocked user must be before the `+` line that allows NIS users. In this example, `bill` is barred from logging on to `basie`:
-[source,bash]
+[source,shell]
....
basie# cat /etc/master.passwd
root:[password]:0:0::0:0:The super-user:/root:/bin/csh
@@ -969,7 +969,7 @@ Repeat this process if more than 225 (15 times 15) users exist within a single n
To activate and distribute the new NIS map:
-[source,bash]
+[source,shell]
....
ellington# cd /var/yp
ellington# make
@@ -977,7 +977,7 @@ ellington# make
This will generate the three NIS maps [.filename]#netgroup#, [.filename]#netgroup.byhost# and [.filename]#netgroup.byuser#. Use the map key option of man:ypcat[1] to check if the new NIS maps are available:
-[source,bash]
+[source,shell]
....
ellington% ypcat -k netgroup
ellington% ypcat -k netgroup.byhost
@@ -1111,7 +1111,7 @@ In this example, the system is using the DES format. Other possible values are `
If the format on a host needs to be edited to match the one being used in the NIS domain, the login capability database must be rebuilt after saving the change:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1134,7 +1134,7 @@ LDAP 使用了數個術語在開始設置之前必須先了解。所有的目錄
LDAP 項目的例子如下。這個例子會搜尋指定使用者帳號 (`uid`)、組織單位 (`ou`) 及組織的項目 (`o`):
-[source,bash]
+[source,shell]
....
% ldapsearch -xb "uid=trhodes,ou=users,o=example.com"
# extended LDIF
@@ -1169,7 +1169,7 @@ result: 0 Success
FreeBSD 並未提供內建的 LDAP 伺服器,要開始設定前請先安裝 package:net/openldap-server[] 套件或 Port:
-[source,bash]
+[source,shell]
....
# pkg install openldap-server
....
@@ -1178,14 +1178,14 @@ FreeBSD 並未提供內建的 LDAP 伺服器,要開始設定前請先安裝 pa
安裝程序會建立目錄 [.filename]#/var/db/openldap-data# 來儲存資料,同時需要建立儲存憑證的目錄:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/private
....
接下來是設定憑証機構 (Certificate authority)。以下指令必須在 [.filename]#/usr/local/etc/openldap/private# 下執行,這很重要是由於檔案權限須要被限制且其他使用者不應有這些檔案的存取權限,更多有關憑証的詳細資訊以及相關的參數可在 crossref:security[openssl,OpenSSL] 中找到。要建立憑証授權,需先輸人這個指令並依提示操作:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt
....
@@ -1194,21 +1194,21 @@ FreeBSD 並未提供內建的 LDAP 伺服器,要開始設定前請先安裝 pa
接下來的工作是建立一個伺服器的憑証簽署請求與一個私鑰。請輸入以下指令然後依提示操作:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout server.key -out server.csr
....
在憑証產生程序的過程中請確認 `Common Name` 屬性設定正確。憑証簽署請求 (Certificate Signing Request) 必須經過憑証機構簽署後才會成為有效的憑証:
-[source,bash]
+[source,shell]
....
# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial
....
在憑証產生程序的最後一步是產生並簽署客戶端憑証:
-[source,bash]
+[source,shell]
....
# openssl req -days 365 -nodes -new -keyout client.key -out client.csr
# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CA ../ca.crt -CAkey ca.key
@@ -1361,28 +1361,28 @@ olcDbIndex: objectClass eq
當設定完成之後,需將 [.filename]#slapd.ldif# 放在一個空的目錄當中,建議如以下方式建立:
-[source,bash]
+[source,shell]
....
# mkdir /usr/local/etc/openldap/slapd.d/
....
匯入設定資料庫:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif
....
啟動 [.filename]#slapd# Daemon:
-[source,bash]
+[source,shell]
....
# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/
....
選項 `-d` 可以用來除錯使用,如同 slapd(8) 中所說明的,若要檢驗伺服器是否正常執行與運作可以:
-[source,bash]
+[source,shell]
....
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
@@ -1407,21 +1407,21 @@ result: 0 Success
伺服器端仍必須受到信任,若在此之前未做過這個動作,請依照以下指示操作。安裝 OpenSSL 套件或 Port:
-[source,bash]
+[source,shell]
....
# pkg install openssl
....
進入 [.filename]#ca.crt# 所在的目錄 (以這邊使用的例子來說則是 [.filename]#/usr/local/etc/openldap#),執行:
-[source,bash]
+[source,shell]
....
# c_rehash .
....
現在 CA 與伺服器憑証可以依其用途被辨識,可進入 [.filename]#server.crt# 所在的目錄執行以下指令來檢查:
-[source,bash]
+[source,shell]
....
# openssl verify -verbose -CApath . server.crt
....
@@ -1441,7 +1441,7 @@ slapd_cn_config="YES"
以下範例會新增群組 `team` 及使用者 `john` 到 `domain.example` LDAP 資料庫,而該資料庫目前是空的。首先要先建立 [.filename]#domain.ldif# 檔:
-[source,bash]
+[source,shell]
....
# cat domain.ldif
dn: dc=domain,dc=example
@@ -1482,14 +1482,14 @@ userPassword: secret
請查看 OpenLDAP 說明文件取得更詳細的資訊,使用 [.filename]#slappasswd# 來將純文字的密碼 `secret` 更改為已編碼的型式來填寫 `userPassword` 欄位。在 `loginShell` 所指定的路徑,必須在所有可讓 `john` 登入的系統中存在。最後是使用 `mdb` 管理者修改資料庫:
-[source,bash]
+[source,shell]
....
# ldapadd -W -D "cn=mdbadmin,dc=domain,dc=example" -f domain.ldif
....
要修改__全域設定__只能使用全域的超及使用者。例如,假設一開始採用了 `olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` 選項,但最後想要把它移除,可以建立一個有以下內容的檔案:
-[source,bash]
+[source,shell]
....
# cat global_mod
dn: cn=config
@@ -1499,7 +1499,7 @@ delete: olcTLSCipherSuite
然後套用修改內容:
-[source,bash]
+[source,shell]
....
# ldapmodify -f global_mod -x -D "cn=config" -W
....
@@ -1508,7 +1508,7 @@ delete: olcTLSCipherSuite
若有問題無法正常執行,或是全域的超級使用者無法存取後端的設定,可以刪除並重建整個後端設定:
-[source,bash]
+[source,shell]
....
# rm -rf /usr/local/etc/openldap/slapd.d/
....
@@ -1638,7 +1638,7 @@ dhcpd_ifaces="dc0"
執行以下指令來啟動伺服器:
-[source,bash]
+[source,shell]
....
# service isc-dhcpd start
....
@@ -1736,21 +1736,21 @@ local_unbound_enable="YES"
若任一個列在清單中的名稱伺服器不支援 DNSSEC,則本地的 DNS 解析便會失敗,請確認有測試每一台名稱伺服器並移除所有測試失敗的項目。以下指令會顯示出信認樹或在 `192.168.1.1` 上執行失敗的名稱伺服器:
====
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org @192.168.1.1
....
確認完每一台名稱伺服器都支援 DNSSEC 後啟動 Unbound:
-[source,bash]
+[source,shell]
....
# service local_unbound onestart
....
這將會更新 [.filename]#/etc/resolv.conf# 來讓查詢已用 DNSSEC 確保安全的網域現在可以運作,例如,執行以下指令來檢驗 FreeBSD.org DNSSEC 信任樹:
-[source,bash]
+[source,shell]
....
% drill -S FreeBSD.org
;; Number of trusted keys: 1
@@ -1814,7 +1814,7 @@ apache24_flags=""
若 apachectl 未回報設定錯,則可啟動 `httpd`:
-[source,bash]
+[source,shell]
....
# service apache24 start
....
@@ -1823,7 +1823,7 @@ apache24_flags=""
後續若有在 `httpd` 執行中時修改 Apache 設定檔可使用以下指令來測試是否有誤:
-[source,bash]
+[source,shell]
....
# service apache24 configtest
....
@@ -1887,7 +1887,7 @@ LoadModule php5_module libexec/apache24/libphp5.so
接著,執行 graceful 重新啟動來載入 PHP 模組:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -1898,7 +1898,7 @@ LoadModule php5_module libexec/apache24/libphp5.so
在安裝完擴充套件之後,必須重新載入 Apache 伺服器來使用新的設定值:
-[source,bash]
+[source,shell]
....
# apachectl graceful
....
@@ -1963,14 +1963,14 @@ ftpd_enable="YES"
要立即啟動服務可:
-[source,bash]
+[source,shell]
....
# service ftpd start
....
要測試到 FTP 伺服器的連線可輸入:
-[source,bash]
+[source,shell]
....
% ftp localhost
....
@@ -2057,7 +2057,7 @@ Samba 支援數種不同的後端認証模式,客戶端可以使用 LDAP, NIS+
FreeBSD 使用者帳號必須對應 `SambaSAMAccount` 資料庫, 才能讓 Windows(TM) 客戶端存取共享資源,要對應既有的 FreeBSD 使用者帳號可使用 man:pdbedit[8]:
-[source,bash]
+[source,shell]
....
# pdbedit -a username
....
@@ -2075,7 +2075,7 @@ samba_server_enable="YES"
要立即啟動 Samba:
-[source,bash]
+[source,shell]
....
# service samba_server start
Performing sanity check on Samba configuration: OK
@@ -2092,7 +2092,7 @@ winbindd_enable="YES"
Samba 可以隨時停止,要停止可輸入:
-[source,bash]
+[source,shell]
....
# service samba_server stop
....
@@ -2159,7 +2159,7 @@ leapfile "/var/db/ntpd.leap-seconds.list"
設定 `ntpd_enable="YES"` 可讓開機時會啟動 ntpd。將 `ntpd_enable=YES` 加到 [.filename]#/etc/rc.conf# 之後,可輸入以下指令讓 ntpd 不需重新開機立即啟動:
-[source,bash]
+[source,shell]
....
# service ntpd start
....
@@ -2282,14 +2282,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#. If this file is edited after the daemon starts, use this command so that the changes take effect immediately:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
@@ -2355,7 +2355,7 @@ iscsid_enable="YES"
To start man:iscsid[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service iscsid start
....
@@ -2366,7 +2366,7 @@ Connecting to a target can be done with or without an [.filename]#/etc/iscsi.con
To connect an initiator to a single target, specify the IP address of the portal and the name of the target:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0
....
@@ -2381,7 +2381,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Connected: da0
In this example, the iSCSI session was successfully established, with [.filename]#/dev/da0# representing the attached LUN. If the `iqn.2012-06.com.example:target0` target exports more than one LUN, multiple device nodes will be shown in that section of the output:
-[source,bash]
+[source,shell]
....
Connected: da0 da1 da2.
....
@@ -2420,7 +2420,7 @@ iqn.2012-06.com.example:target0 10.10.10.10 Authentication f
To specify a CHAP username and secret, use this syntax:
-[source,bash]
+[source,shell]
....
# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret
....
@@ -2444,14 +2444,14 @@ The `t0` specifies a nickname for the configuration file section. It will be use
To connect to the defined target, specify the nickname:
-[source,bash]
+[source,shell]
....
# iscsictl -An t0
....
Alternately, to connect to all targets defined in the configuration file, use:
-[source,bash]
+[source,shell]
....
# iscsictl -Aa
....
diff --git a/documentation/content/zh-tw/books/handbook/ports/_index.adoc b/documentation/content/zh-tw/books/handbook/ports/_index.adoc
index e767ec5137..537c083d4b 100644
--- a/documentation/content/zh-tw/books/handbook/ports/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/ports/_index.adoc
@@ -127,7 +127,7 @@ FreeBSD 上可安裝的軟體清單不斷在增加, 有幾種方式可以來
+
要搜尋 Binary 套件檔案庫中的應用程式可:
+
-[source,bash]
+[source,shell]
....
# pkg search subversion
git-subversion-1.9.2
@@ -145,7 +145,7 @@ subversion17-1.7.16_2
+
套件名稱包含版本編號,且若 Port 使用 Python 為基礎,也會包含用來編譯該套件的 Python 版本。有些 Port 會有多個版本可使用,如 Subversion ,因編譯選項不同,有多個版本可用,這個例子中即指靜態連結版本的 Subversion。在指定要安裝的套件時,最好使用 Port 來源來指定該應用程式,Port 來源是指應用程式在 Port 樹中的路徑。再輸入一次 `pkg search` 並加上 `-o` 來列出每個套件來源:
+
-[source,bash]
+[source,shell]
....
# pkg search -o subversion
devel/git-subversion
@@ -164,7 +164,7 @@ devel/subversion-static
`pkg search` 支援使用 Shell 萬手字元 (globs)、正規表示法、描述或檔案庫中的其他其他內容。在安裝 package:ports-mgmt/pkg[] 或 package:ports-mgmt/pkg-devel[] 之後,可參考 man:pkg-search[8] 以取得更多詳細資訊。
* 若 Port 套件集已安裝,有數個方法可以查詢 Port 樹中的本地版本。要找到 Port 所在的分類,可輸入 `whereis _file_`,其中 _file_ 是要安裝的程式:
+
-[source,bash]
+[source,shell]
....
# whereis lsof
lsof: /usr/ports/sysutils/lsof
@@ -172,7 +172,7 @@ lsof: /usr/ports/sysutils/lsof
+
或者,也可使用 man:echo[1]:
+
-[source,bash]
+[source,shell]
....
# echo /usr/ports/*/*lsof*
/usr/ports/sysutils/lsof
@@ -181,7 +181,7 @@ lsof: /usr/ports/sysutils/lsof
請注意,這也會顯示已下載至 [.filename]#/usr/ports/distfiles# 目錄中任何已符合條件的檔案。
* 另一個方法是使用 Port 套件集內建的搜尋機制來找軟體。要使用搜尋的功能需先 cd 到 [.filename]#/usr/ports# 然後執行 `make search name=program-name`,其中 _program-name_ 代表軟體的名稱。舉例搜尋 `lsof`:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make search name=lsof
@@ -204,7 +204,7 @@ R-deps:
+
若不要接受這麼多資訊,可使用 `quicksearch` 功能:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports
# make quicksearch name=lsof
@@ -240,7 +240,7 @@ FreeBSD 內建啟動 (Bootstrap) 工具可用來下載並安裝 pkg 及其操作
要啟動 (Bootstrap) 系統請執行:
-[source,bash]
+[source,shell]
....
# /usr/sbin/pkg
....
@@ -249,7 +249,7 @@ FreeBSD 內建啟動 (Bootstrap) 工具可用來下載並安裝 pkg 及其操作
否則,要安裝 Port 套件,則須執行:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/pkg
# make
@@ -258,7 +258,7 @@ FreeBSD 內建啟動 (Bootstrap) 工具可用來下載並安裝 pkg 及其操作
當升級原使用舊版 pkg_* 工具的既有系統時,必須將資料庫轉換成新的格式,如此新的工具才會知道有那些已安裝過的套件。pkg 安裝完後,必須執行以下指令將套件資料庫從舊版格式轉換到新版格式:
-[source,bash]
+[source,shell]
....
# pkg2ng
....
@@ -293,12 +293,12 @@ pkg 的用法資訊可在 man:pkg[8] 操作手冊或不加任何參數執行 `pk
每個 pkg 指令參數皆記庫在指令操件手冊。要閱讀 `pkg install` 的操作手冊,可執行以下指令:
-[source,bash]
+[source,shell]
....
# pkg help install
....
-[source,bash]
+[source,shell]
....
# man pkg-install
....
@@ -312,7 +312,7 @@ pkg 的用法資訊可在 man:pkg[8] 操作手冊或不加任何參數執行 `pk
例如,要查看已安裝的 pkg 版本可執行:
-[source,bash]
+[source,shell]
....
# pkg info pkg
pkg-1.1.4_1
@@ -323,14 +323,14 @@ pkg-1.1.4_1
要安裝 Binary 套件可使用以下指令,其中 _packagename_ 為要安裝的套件名稱:
-[source,bash]
+[source,shell]
....
# pkg install packagename
....
這個指令會使用檔案庫的資料來決定要安裝的軟體版本以及是否有任何未安裝的相依。例如,要安裝 curl:
-[source,bash]
+[source,shell]
....
# pkg install curl
Updating repository catalogue
@@ -357,7 +357,7 @@ Cleaning up cache files...Done
新的套件以及任何做為相依安裝的額外套件可在已安裝的套件清單中看到:
-[source,bash]
+[source,shell]
....
# pkg info
ca_root_nss-3.15.1_1 The root certificate bundle from the Mozilla Project
@@ -367,7 +367,7 @@ pkg-1.1.4_6 New generation package manager
不再需要的套件可以使用 `pkg delete` 來移除,例如:
-[source,bash]
+[source,shell]
....
# pkg delete curl
The following packages will be deleted:
@@ -385,7 +385,7 @@ Proceed with deleting packages [y/N]: y
執行以下指令,可將已安裝的套件升級到最新版本:
-[source,bash]
+[source,shell]
....
# pkg upgrade
....
@@ -397,7 +397,7 @@ Proceed with deleting packages [y/N]: y
在第三方的應用程式中偶爾可能會發現軟體漏洞,要找出這些程式,可使用 pkg 內建的稽查機制。要查詢已安裝在系統上的軟體是否有任何已知的漏洞可執行:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -407,7 +407,7 @@ Proceed with deleting packages [y/N]: y
移除一個套件可能會留下不再需要使用的相依套件。不再需要的相依套件是當初隨著其套件所安裝的套件 (枝葉套件),可以使用以下指令自動偵測並移除:
-[source,bash]
+[source,shell]
....
# pkg autoremove
Packages to be autoremoved:
@@ -421,7 +421,7 @@ Deinstalling ca_root_nss-3.15.1_1... done
因為相依所安裝的套件稱作 _自動 (Automatic)_ 套件,而非自動套件即套件被安裝的原因不是因為其他套件所相依,可以使用以下方式查詢:
-[source,bash]
+[source,shell]
....
# pkg prime-list
nginx
@@ -431,7 +431,7 @@ sudo
`pkg prime-list` 是一個別名指令,定義在 [.filename]#/usr/local/etc/pkg.conf#,尚還有許多其他相關指令可以用來查詢系統的套件資料庫,例如,指令 `pkg prime-origins` 可用來取得上述清單的來源 Port 目錄:
-[source,bash]
+[source,shell]
....
# pkg prime-origins
www/nginx
@@ -443,7 +443,7 @@ security/sudo
要將一個安裝好的套件註記成為 "自動" 可以用:
-[source,bash]
+[source,shell]
....
# pkg set -A 1 devel/cmake
....
@@ -452,7 +452,7 @@ security/sudo
要註記一個安裝好的套件為 "__非__自動" 可以用:
-[source,bash]
+[source,shell]
....
# pkg set -A 0 devel/cmake
....
@@ -470,7 +470,7 @@ security/sudo
要還原先前套件資料庫的備份,可執行以下指令並將 _/path/to/pkg.sql_ 替換為備份的位置:
-[source,bash]
+[source,shell]
....
# pkg backup -r /path/to/pkg.sql
....
@@ -482,7 +482,7 @@ security/sudo
要手動備份 pkg 資料庫,可執行以下指令,並替換 _/path/to/pkg.sql_ 為適當的檔案名稱與位置:
-[source,bash]
+[source,shell]
....
# pkg backup -d /path/to/pkg.sql
....
@@ -492,14 +492,14 @@ security/sudo
預設 pkg 會儲存 Binary 套件在快取目錄定義在 man:pkg.conf[5] 中的 `PKG_CACHEDIR`,只會保留最後安裝的套件複本。較舊版的 pkg 會保留所有先前的套件,若要移除這些過時的 Binary 套件,可執行:
-[source,bash]
+[source,shell]
....
# pkg clean
....
使用以下指令可清空全部的快取:
-[source,bash]
+[source,shell]
....
# pkg clean -a
....
@@ -511,21 +511,21 @@ security/sudo
要更改上述例子中的套件來源,可執行:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/php5:lang/php53
....
再一個例子,要更新 package:lang/ruby18[] 為 package:lang/ruby19[],可執行:
-[source,bash]
+[source,shell]
....
# pkg set -o lang/ruby18:lang/ruby19
....
最後一個例子,要更改 [.filename]#libglut# 共用程式庫的來源從 package:graphics/libglut[] 改成 package:graphics/freeglut[] 可執行:
-[source,bash]
+[source,shell]
....
# pkg set -o graphics/libglut:graphics/freeglut
....
@@ -534,7 +534,7 @@ security/sudo
====
在更改套件來源之後,很重要的一件事是要重新安裝套件,來讓相依的套件也同時使用修改後的來源。要強制重新安裝相依套件,可執行:
-[source,bash]
+[source,shell]
....
# pkg install -Rf graphics/freeglut
....
@@ -559,21 +559,21 @@ FreeBSD 的基礎系統內含 Portsnap,這是一個可用來取得 Port 套件
. 要下載壓縮後的 Port 套件集快照 (Snapshot) 到 [.filename]#/var/db/portsnap#:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
....
+
. 當第一次執行 Portsnap 時,要先解壓縮快照到 [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# portsnap extract
....
+
. 在完成上述第一次使用 Portsnap 的動作之後,往後可隨需要執行以下指令來更新 [.filename]#/usr/ports# :
+
-[source,bash]
+[source,shell]
....
# portsnap fetch
# portsnap update
@@ -581,7 +581,7 @@ FreeBSD 的基礎系統內含 Portsnap,這是一個可用來取得 Port 套件
+
當使用 `fetch` 時也可同時執行 `extract` 或 `update` 如:
+
-[source,bash]
+[source,shell]
....
# portsnap fetch update
....
@@ -597,7 +597,7 @@ FreeBSD 的基礎系統內含 Portsnap,這是一個可用來取得 Port 套件
. 必須安裝 Subversion 才可用來取出 (Check out) Port 樹。若已存在 Port 樹的複本,可使用此方式安裝 Subversion:
+
-[source,bash]
+[source,shell]
....
# cd /usr/ports/devel/subversion
# make install clean
@@ -605,21 +605,21 @@ FreeBSD 的基礎系統內含 Portsnap,這是一個可用來取得 Port 套件
+
若尚無法使用 Port 樹,或已經使用 pkg 來管理套件,可使用套件來安裝 Subversion:
+
-[source,bash]
+[source,shell]
....
# pkg install subversion
....
+
. 取出 Port 樹的複本:
+
-[source,bash]
+[source,shell]
....
# svn checkout https://svn.FreeBSD.org/ports/head /usr/ports
....
+
. 若需要,在第一次 Subversion 取出後可使用以下指令更新 [.filename]#/usr/ports#:
+
-[source,bash]
+[source,shell]
....
# svn update /usr/ports
....
@@ -652,7 +652,7 @@ Port 中並不含實際的原始碼,即為 [.filename]#distfile#,在編譯 P
要編譯並安裝 Port,需切換目錄到要安裝的 Port 底下,然後輸入 `make install`,訊息中會顯示安裝的進度:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
# make install
@@ -694,7 +694,7 @@ Port 中並不含實際的原始碼,即為 [.filename]#distfile#,在編譯 P
安裝過程中會建立工作用的子目錄用來儲存編譯時暫存的檔案。可移除此目錄來節省磁碟空間並漸少往後升級新版 Port 時造成問題:
-[source,bash]
+[source,shell]
....
# make clean
===> Cleaning for lsof-88.d,8
@@ -724,7 +724,7 @@ Port 系統使用 man:fetch[1] 來下載檔案,它支援許多的環境變數
在部份少數情況,例如當公司或組織有自己的本地 distfiles 檔案庫,可使用 `MASTER_SITES` 變數來覆蓋在 [.filename]#Makefile# 中指定的下載位址。當要指定替代的位址時可:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
@@ -733,21 +733,21 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
也可使用 `WRKDIRPREFIX` 及 `PREFIX` 變數來覆蓋預設的工作及目標目錄。例如:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=/usr/home/example/ports install
....
會編譯在 [.filename]#/usr/home/example/ports# 的 Port 並安裝所有東西到 [.filename]#/usr/local# 下。
-[source,bash]
+[source,shell]
....
# make PREFIX=/usr/home/example/local install
....
會編譯在 [.filename]#/usr/ports# Port 並安裝到 [.filename]#/usr/home/example/local#。然後:
-[source,bash]
+[source,shell]
....
# make WRKDIRPREFIX=../ports PREFIX=../local install
....
@@ -763,7 +763,7 @@ ftp://ftp.organization.org/pub/FreeBSD/ports/distfiles/ fetch
或者,可在 Port 的目錄下執行 `make deinstall`:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/sysutils/lsof
make deinstall
@@ -786,14 +786,14 @@ The deinstallation will free 229 kB
要檢查已安裝 Port 是否有新版可用,請先確定已安裝最新版本的 Port 樹,使用 <<ports-using-portsnap-method,Procedure: Portsnap 方法>> 或 <<ports-using-subversion-method,Procedure: Subversion 方法>> 中說明的指令來更新。在 FreeBSD 10 與更新的版本,或若套件系統已轉換為 pkg,可以使用下列指令列出已經安裝的 Port 中有那些已過時:
-[source,bash]
+[source,shell]
....
# pkg version -l "<"
....
在 FreeBSD 9._X_ 與較舊的版本,可以使用下列指令列出已經安裝的 Port 中有那些已過時:
-[source,bash]
+[source,shell]
....
# pkg_version -l "<"
....
@@ -820,7 +820,7 @@ Port 套件集含有數個工具可以進行升級,每一種工具都有其優
package:ports-mgmt/portmaster[] 是可用來升級已安裝 Port 的小巧工具,它只使用了隨 FreeBSD 基礎系統安裝的工具,不需要相依其他 Port 或資料庫便可在 FreeBSD 使用,要使用 Port 安裝此工具可:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
@@ -835,7 +835,7 @@ Portmaster 將 Port 定義成四種類型:
要列出這幾個分類並搜尋是否有新版:
-[source,bash]
+[source,shell]
....
# portmaster -L
===>>> Root ports (No dependencies, not depended on)
@@ -862,7 +862,7 @@ Portmaster 將 Port 定義成四種類型:
此指令用來升級所有過時的 Port:
-[source,bash]
+[source,shell]
....
# portmaster -a
....
@@ -874,14 +874,14 @@ Portmaster 將 Port 定義成四種類型:
若升級的過程發生錯誤,可加入 `-f` 來升級並重新編譯所有 Port:
-[source,bash]
+[source,shell]
....
# portmaster -af
....
Portmaster 也可用來安裝新的 Port 到系統,在編譯及安裝新 Port 前升級所有相依模組。要使用這個功能,要指定 Port 位於 Port 套件集中的位置:
-[source,bash]
+[source,shell]
....
# portmaster shells/bash
....
@@ -893,7 +893,7 @@ Portmaster 也可用來安裝新的 Port 到系統,在編譯及安裝新 Port
package:ports-mgmt/portupgrade[] 是另一個可以用來升級 Port 的工具,此工具會安裝一套可以用來管理 Port 的應用程式,它需要相依 Ruby。要安裝該 Port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
@@ -903,21 +903,21 @@ package:ports-mgmt/portupgrade[] 是另一個可以用來升級 Port 的工具
要升級所有安裝在系統上過時的 Port,可使用 `portupgrade -a`,或者加上 `-i` 會在每個套件升級時詢問確認:
-[source,bash]
+[source,shell]
....
# portupgrade -ai
....
要升級指定的應用程式而非所有可用 Port 可使用 `portupgrade _pkgname_`,非常重要的是,要加上 `-R` 來先升級指定應用程式所有相依的 Port:
-[source,bash]
+[source,shell]
....
# portupgrade -R firefox
....
若使用 `-P`,Portupgrade 會先在 `PKG_PATH` 清單中的本地目錄中搜尋可用的套件。若本地沒有可用的套件,則會從遠端下載。若套件無法在本地或遠端找到,Portupgrade 則會使用 Port 來安裝。要避免完全使用 Port 安裝,可使用 `-PP`,這個選項會告訴 Portupgrade 若沒有套件可用時放棄安裝:
-[source,bash]
+[source,shell]
....
# portupgrade -PP gnome3
....
@@ -931,28 +931,28 @@ package:ports-mgmt/portupgrade[] 是另一個可以用來升級 Port 的工具
使用 Port 套件集會隨著時間消耗磁碟空間。在編譯與安裝 Port 完之後,在 Port Skeleton 中執行 `make clean` 可清除暫存的 [.filename]#work# 目錄。若使用 Portmaster 來安裝 Port,則會自動移除該目錄,除非使用 `-K`。若有安裝 Portupgrade,此指令將會移除所有在 Port 套件集的本地複本中找到的 [.filename]#work# 目錄:
-[source,bash]
+[source,shell]
....
# portsclean -C
....
除此之外,許多過時的原始碼發行檔案會儲存在 [.filename]#/usr/ports/distfiles#。使用 Portupgrade 刪除所有不再被任何 Port 所引用的 distfiles:
-[source,bash]
+[source,shell]
....
# portsclean -D
....
Portupgrade 可以移除所有未被任何安裝在系統上的 Port 所引用的 distfiles:
-[source,bash]
+[source,shell]
....
# portsclean -DD
....
若有安裝 Portmaster,則可使用:
-[source,bash]
+[source,shell]
....
# portmaster --clean-distfiles
....
@@ -977,7 +977,7 @@ Poudriere 可使用 package:ports-mgmt/poudriere[] 套件或 Port 安裝。安
在設定之後,初始化 poudriere 來安裝 Jail 及其所需的 FreeBSD 樹與 Port 樹。使用 `-j` 來指定 Jail 的名稱以及 `-v` 來指定 FreeBSD 的版本。在執行 FreeBSD/amd64 的系統上可使用 `-a` 來設定要使用的架構為 `i386` 或 `amd64`,預設會採用使用 `uname` 所顯示的架構。
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 10amd64 -v 10.0-RELEASE
====>> Creating 10amd64 fs... done
@@ -997,7 +997,7 @@ Poudriere 可使用 package:ports-mgmt/poudriere[] 套件或 Port 安裝。安
====>> Jail 10amd64 10.0-RELEASE amd64 is ready to be used
....
-[source,bash]
+[source,shell]
....
# poudriere ports -c -p local
====>> Creating local fs... done
@@ -1046,14 +1046,14 @@ ports-mgmt/pkg
可使用以下方式設定選項及相依:
-[source,bash]
+[source,shell]
....
# poudriere options -j 10amd64 -p local -z workstation -f 10amd64-local-workstation-pkglist
....
最後,編譯套件並建立套件檔案庫:
-[source,bash]
+[source,shell]
....
# poudriere bulk -j 10amd64 -p local -z workstation -f 10amd64-local-workstation-pkglist
....
diff --git a/documentation/content/zh-tw/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/zh-tw/books/handbook/ppp-and-slip/_index.adoc
index 8a3b9f2ae2..1875b79581 100644
--- a/documentation/content/zh-tw/books/handbook/ppp-and-slip/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/ppp-and-slip/_index.adoc
@@ -361,14 +361,14 @@ An alternative is to set up a "dfilter" to block SMTP traffic. Refer to the samp
All that is left is to reboot the machine. After rebooting, either type:
-[source,bash]
+[source,shell]
....
# ppp
....
and then `dial provider` to start the PPP session, or, to configure `ppp` to establish sessions automatically when there is outbound traffic and [.filename]#start_if.tun0# does not exist, type:
-[source,bash]
+[source,shell]
....
# ppp -auto provider
....
@@ -453,7 +453,7 @@ device uart
The [.filename]#uart# device is already included in the `GENERIC` kernel, so no additional steps are necessary in this case. Just check the `dmesg` output for the modem device with:
-[source,bash]
+[source,shell]
....
# dmesg | grep uart
....
@@ -464,33 +464,33 @@ This should display some pertinent output about the [.filename]#uart# devices. T
Connecting to the Internet by manually controlling `ppp` is quick, easy, and a great way to debug a connection or just get information on how the ISP treats `ppp` client connections. Lets start PPP from the command line. Note that in all of our examples we will use _example_ as the hostname of the machine running PPP. To start `ppp`:
-[source,bash]
+[source,shell]
....
# ppp
....
-[source,bash]
+[source,shell]
....
ppp ON example> set device /dev/cuau1
....
This second command sets the modem device to [.filename]#cuau1#.
-[source,bash]
+[source,shell]
....
ppp ON example> set speed 115200
....
This sets the connection speed to 115,200 kbps.
-[source,bash]
+[source,shell]
....
ppp ON example> enable dns
....
This tells `ppp` to configure the resolver and add the nameserver lines to [.filename]#/etc/resolv.conf#. If `ppp` cannot determine the hostname, it can manually be set later.
-[source,bash]
+[source,shell]
....
ppp ON example> term
....
@@ -503,7 +503,7 @@ deflink: Entering terminal mode on /dev/cuau1
type '~h' for help
....
-[source,bash]
+[source,shell]
....
at
OK
@@ -512,56 +512,56 @@ atdt123456789
Use `at` to initialize the modem, then use `atdt` and the number for the ISP to begin the dial in process.
-[source,bash]
+[source,shell]
....
CONNECT
....
Confirmation of the connection, if we are going to have any connection problems, unrelated to hardware, here is where we will attempt to resolve them.
-[source,bash]
+[source,shell]
....
ISP Login:myusername
....
At this prompt, return the prompt with the username that was provided by the ISP.
-[source,bash]
+[source,shell]
....
ISP Pass:mypassword
....
At this prompt, reply with the password that was provided by the ISP. Just like logging into FreeBSD, the password will not echo.
-[source,bash]
+[source,shell]
....
Shell or PPP:ppp
....
Depending on the ISP, this prompt might not appear. If it does, it is asking whether to use a shell on the provider or to start `ppp`. In this example, `ppp` was selected in order to establish an Internet connection.
-[source,bash]
+[source,shell]
....
Ppp ON example>
....
Notice that in this example the first `p` has been capitalized. This shows that we have successfully connected to the ISP.
-[source,bash]
+[source,shell]
....
PPp ON example>
....
We have successfully authenticated with our ISP and are waiting for the assigned IP address.
-[source,bash]
+[source,shell]
....
PPP ON example>
....
We have made an agreement on an IP address and successfully completed our connection.
-[source,bash]
+[source,shell]
....
PPP ON example>add default HISADDR
....
@@ -580,14 +580,14 @@ PPP may not return to the command mode, which is usually a negotiation error whe
If a login prompt never appears, PAP or CHAP authentication is most likely required. To use PAP or CHAP, add the following options to PPP before going into terminal mode:
-[source,bash]
+[source,shell]
....
ppp ON example> set authname myusername
....
Where _myusername_ should be replaced with the username that was assigned by the ISP.
-[source,bash]
+[source,shell]
....
ppp ON example> set authkey mypassword
....
@@ -637,7 +637,7 @@ name_of_service_provider:
以 `root` 身份執行:
-[source,bash]
+[source,shell]
....
# ppp -ddial name_of_service_provider
....
@@ -687,7 +687,7 @@ net.graph.nonstandard_pppoe=1
或可以執行以下指令立即更改:
-[source,bash]
+[source,shell]
....
# sysctl net.graph.nonstandard_pppoe=1
....
@@ -759,14 +759,14 @@ adsl:
It is possible to initialize the connection easily by issuing the following command as `root`:
-[source,bash]
+[source,shell]
....
# mpd -b adsl
....
To view the status of the connection:
-[source,bash]
+[source,shell]
....
% ifconfig ng0
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
@@ -802,7 +802,7 @@ adsl:
Since the account's password is added to [.filename]#ppp.conf# in plain text form, make sure nobody can read the contents of this file:
-[source,bash]
+[source,shell]
....
# chown root:wheel /etc/ppp/ppp.conf
# chmod 600 /etc/ppp/ppp.conf
@@ -812,7 +812,7 @@ Since the account's password is added to [.filename]#ppp.conf# in plain text for
This will open a tunnel for a PPP session to the DSL router. Ethernet DSL modems have a preconfigured LAN IP address to connect to. In the case of the Alcatel SpeedTouch(TM) Home, this address is `10.0.0.138`. The router's documentation should list the address the device uses. To open the tunnel and start a PPP session:
-[source,bash]
+[source,shell]
....
# pptp address adsl
....
@@ -825,7 +825,7 @@ If an ampersand ("&") is added to the end of this command, pptp will return the
A [.filename]#tun# virtual tunnel device will be created for interaction between the pptp and ppp processes. Once the prompt is returned, or the pptp process has confirmed a connection, examine the tunnel:
-[source,bash]
+[source,shell]
....
% ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
diff --git a/documentation/content/zh-tw/books/handbook/preface/_index.adoc b/documentation/content/zh-tw/books/handbook/preface/_index.adoc
index e43423a9fe..feccf55614 100644
--- a/documentation/content/zh-tw/books/handbook/preface/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/preface/_index.adoc
@@ -223,21 +223,21 @@ kbd:[Ctrl+X], kbd:[Ctrl+S]
範例以 [.filename]#C:\># 為開頭代表 MS-DOS(TM) 的指令。 若沒有特殊情況的話,這些指令應該是在 Microsoft(TM) Windows(TM) 環境的 "指令提示字元 (Command Prompt)" 視窗內執行。
-[source,bash]
+[source,shell]
....
E:\> tools\fdimage floppies\kern.flp A:
....
範例以 `#` 為開頭代表在 FreeBSD 中以超級使用者權限來執行的指令。 你可以先以 `root` 登入系統並下指令,或是以你自己的帳號登入再使用 man:su[1] 來取得超級使用者權限。
-[source,bash]
+[source,shell]
....
# dd if=kern.flp of=/dev/fd0
....
範例以 `%` 為開頭代表在 FreeBSD 中以一般使用者帳號執行的指令。 除非有提到其他用法,否則都是預設為 C-shell 語法,用來設定環境變數以及下其他指令的意思。
-[source,bash]
+[source,shell]
....
% top
....
diff --git a/documentation/content/zh-tw/books/handbook/printing/_index.adoc b/documentation/content/zh-tw/books/handbook/printing/_index.adoc
index e32bdc059f..c5fdd88e87 100644
--- a/documentation/content/zh-tw/books/handbook/printing/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/printing/_index.adoc
@@ -56,7 +56,7 @@ toc::[]
====
. 建立一個目錄來儲存要被列印的檔案:
+
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -85,7 +85,7 @@ lpd_enable="YES"
+
啟動服務:
+
-[source,bash]
+[source,shell]
....
# service lpd start
Starting lpd.
@@ -93,7 +93,7 @@ Starting lpd.
+
. 測試列印:
+
-[source,bash]
+[source,shell]
....
# printf "1. This printer can print.\n2. This is the second line.\n" | lpr
....
@@ -106,7 +106,7 @@ Starting lpd.
+
現在可以使用 `lpr` 來列印文字檔,只要在指令列給序檔案名稱,或者將輸出使用管線符號 (Pipe) 傳送給 `lpr`。
+
-[source,bash]
+[source,shell]
....
% lpr textfile.txt
% ls -lh | lpr
@@ -228,14 +228,14 @@ Port 套件集與 FreeBSD 工具集有許多可以處理 PostScript(TM) 輸出
對於偶爾列印,檔案可以直接傳送到印表機裝置,無需做任何設定。例如,要傳送一個名稱為 [.filename]#sample.txt# 的檔案到 USB 印表機:
-[source,bash]
+[source,shell]
....
# cp sample.txt /dev/unlpt0
....
要直接使用網路印表機列印需看該印表機支援的功能,但大多數會接受埠號 9100 的列印作業,可使用 man:nc[1] 來完成。要使用 DNS 主機名稱為 _netlaser_ 的印表機列印與上述相同的檔案可:
-[source,bash]
+[source,shell]
....
# nc netlaser 9100 < sample.txt
....
@@ -252,7 +252,7 @@ FreeBSD 內含的緩衝程式 (Spooler) 稱作 man:lpd[8],而列印工作會
建立要用來儲存列印工作的目錄、設定擁有關係以及權限來避免其他使用者可以檢視這些檔案的內容:
-[source,bash]
+[source,shell]
....
# mkdir -p /var/spool/lpd/lp
# chown daemon:daemon /var/spool/lpd/lp
@@ -280,7 +280,7 @@ lp:\ <.>
在建立 [.filename]#/etc/printcap# 之後,使用 man:chkprintcap[8] 測試印表機是否有錯誤:
-[source,bash]
+[source,shell]
....
# chkprintcap
....
@@ -296,7 +296,7 @@ lpd_enable="YES"
啟動服務:
-[source,bash]
+[source,shell]
....
# service lpd start
....
@@ -306,7 +306,7 @@ lpd_enable="YES"
Documents are sent to the printer with `lpr`. A file to be printed can be named on the command line or piped into `lpr`. These two commands are equivalent, sending the contents of [.filename]#doc.txt# to the default printer:
-[source,bash]
+[source,shell]
....
% lpr doc.txt
% cat doc.txt | lpr
@@ -314,7 +314,7 @@ Documents are sent to the printer with `lpr`. A file to be printed can be named
Printers can be selected with `-P`. To print to a printer called _laser_:
-[source,bash]
+[source,shell]
....
% lpr -Plaser doc.txt
....
@@ -380,7 +380,7 @@ CR=$'\r'
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/lf2crlf
....
@@ -409,7 +409,7 @@ Create [.filename]#/usr/local/libexec/enscript# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/enscript
....
@@ -440,7 +440,7 @@ Create [.filename]#/usr/local/libexec/ps2pcl# with these contents:
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/ps2pcl
....
@@ -456,7 +456,7 @@ Modify [.filename]#/etc/printcap# to use this new input filter:
Test the filter by sending a small PostScript(TM) program to it:
-[source,bash]
+[source,shell]
....
% printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \
72 432 moveto (PostScript printing successful.) show showpage \004" | lpr
@@ -492,7 +492,7 @@ esac
Set the permissions and make it executable:
-[source,bash]
+[source,shell]
....
# chmod 555 /usr/local/libexec/psif
....
@@ -552,7 +552,7 @@ man:lpq[1] shows the status of a user's print jobs. Print jobs from other users
Show the current user's pending jobs on a single printer:
-[source,bash]
+[source,shell]
....
% lpq -Plp
Rank Owner Job Files Total Size
@@ -561,7 +561,7 @@ Rank Owner Job Files Total Size
Show the current user's pending jobs on all printers:
-[source,bash]
+[source,shell]
....
% lpq -a
lp:
@@ -580,7 +580,7 @@ man:lprm[1] is used to remove print jobs. Normal users are only allowed to remov
Remove all pending jobs from a printer:
-[source,bash]
+[source,shell]
....
# lprm -Plp -
dfA002smithy dequeued
@@ -593,7 +593,7 @@ cfA004smithy dequeued
Remove a single job from a printer. man:lpq[1] is used to find the job number.
-[source,bash]
+[source,shell]
....
% lpq
Rank Owner Job Files Total Size
@@ -610,7 +610,7 @@ man:lpc[8] is used to check and modify printer status. `lpc` is followed by a co
Show the status of all printers:
-[source,bash]
+[source,shell]
....
% lpc status all
lp:
@@ -627,7 +627,7 @@ laser:
Prevent a printer from accepting new jobs, then begin accepting new jobs again:
-[source,bash]
+[source,shell]
....
# lpc disable lp
lp:
@@ -639,7 +639,7 @@ lp:
Stop printing, but continue to accept new jobs. Then begin printing again:
-[source,bash]
+[source,shell]
....
# lpc stop lp
lp:
@@ -652,7 +652,7 @@ lp:
Restart a printer after some error condition:
-[source,bash]
+[source,shell]
....
# lpc restart lp
lp:
@@ -663,7 +663,7 @@ lp:
Turn the print queue off and disable printing, with a message to explain the problem to users:
-[source,bash]
+[source,shell]
....
# lpc down lp Repair parts will arrive on Monday
lp:
@@ -673,7 +673,7 @@ lp:
Re-enable a printer that is down:
-[source,bash]
+[source,shell]
....
# lpc up lp
lp:
@@ -700,14 +700,14 @@ lp|repairsprinter|salesprinter:\
Aliases can be used in place of the printer name. For example, users in the Sales department print to their printer with
-[source,bash]
+[source,shell]
....
% lpr -Psalesprinter sales-report.txt
....
Users in the Repairs department print to _their_ printer with
-[source,bash]
+[source,shell]
....
% lpr -Prepairsprinter repairs-report.txt
....
diff --git a/documentation/content/zh-tw/books/handbook/security/_index.adoc b/documentation/content/zh-tw/books/handbook/security/_index.adoc
index e092c01f8d..fc639315b1 100644
--- a/documentation/content/zh-tw/books/handbook/security/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/security/_index.adoc
@@ -97,14 +97,14 @@ CIA 三字訣是電腦安全的基石,就如同客戶與使用者期望他們
要防止登入存取帳號有兩種方法,第一種是鎖定帳號,以下範例會鎖定 `toor` 帳號:
-[source,bash]
+[source,shell]
....
# pw lock toor
....
第二種防止登入存取的方式是狀 Shell 更改為 [.filename]#/usr/sbin/nologin#,只有超級使用者可以更改其他使用者的 Shell:
-[source,bash]
+[source,shell]
....
# chsh -s /usr/sbin/nologin toor
....
@@ -120,7 +120,7 @@ CIA 三字訣是電腦安全的基石,就如同客戶與使用者期望他們
在安裝之後,使用 `visudo` 來編輯 [.filename]#/usr/local/etc/sudoers#。這個範例會建立新 `webadmin` 群組,並加入 `trhodes` 帳號到該群組,然後設定該群組可重新啟動 package:apache24[] 的存取權:
-[source,bash]
+[source,shell]
....
# pw groupadd webadmin -M trhodes -g 6000
# visudo
@@ -139,7 +139,7 @@ Blowfish 不是 AES 的一部份且不符合任何聯邦資訊處理標準 (Fede
要知道目前用何種雜湊演算法來加密某位使用者密碼,超級使用者可以檢視在 FreeBSD 密碼資料庫中該使用者的雜湊,每個雜湊的一開始便會以符號標示其用來加密密碼所使用的雜湊機制。若使用 DES 則開始不會有任何符號,而 MD5 的符號則是 `$`,SHA256 及 SHA512 的符號是 `$6$`,Blowfish 的符號是 `$2a$`。在以下例子中 `dru` 的密碼使以預設的 SHA512 演算法加密,因為其雜湊的開始為 `$6$`。注意,該加密過的雜湊,不是原來的密碼,會儲存於密碼資料庫中:
-[source,bash]
+[source,shell]
....
# grep dru /etc/master.passwd
dru:$6$pzIjSvCAn.PBYQBA$PXpSeWPx3g5kscj3IMiM7tUEUSPmGexxta.8Lt9TGSi2lNQqYGKszsBPuGME0:1001:1001::0:0:dru:/usr/home/dru:/bin/csh
@@ -183,7 +183,7 @@ password requisite pam_passwdqc.so min=disabled,disabled,di
一這個檔案儲存之後,更改密碼的使用者將會看到如下的訊息:
-[source,bash]
+[source,shell]
....
% passwd
Changing local password for trhodes
@@ -214,7 +214,7 @@ Enter new password:
要在個別使用者設定期限,可將有效日期或到期的天數與使用者名稱傳給 `pw`:
-[source,bash]
+[source,shell]
....
# pw usermod -p 30-apr-2015 -n trhodes
....
@@ -230,7 +230,7 @@ rootkit 對管理者而言唯一有幫助的是:一但偵測到,便代表某
安裝此套件或 Port 之後,系統便可使用以下指令檢查。該指令提供許多資訊且會需要手動按下 kbd:[ENTER] 確認:
-[source,bash]
+[source,shell]
....
# rkhunter -c
....
@@ -248,7 +248,7 @@ FreeBSD 原生提供了基礎的 IDS 系統,雖然每天晚上會有安全性
內建 `mtree` 工具可以對一個目錄中的內容產生一個規格檔,產生規格檔會用到一個種子碼 (Seed) 或常數,然後在檢查規格是否有更改過時會也會需要使用這個種子碼或常數。這讓檢查一個檔案或 Binary 是否被修改變成可能的一件事。由於攻擊者並不知道種子碼,要仿冒或檢查檔案的校驗碼 (Checksum) 數值是幾乎不可能的。以下例子會產生一組 SHA256 雜湊,每一個在 [.filename]#/bin# 的系統 Binary 都會有一個,並姐會將這些值以隱藏黨儲存在 `root` 的家目錄,[.filename]#/root/.bin_chksum_mtree#:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree
# mtree: /bin checksum: 3427012225
@@ -286,7 +286,7 @@ _3483151339707503_ 代表種子碼,這個值應要記錄下來且不可給其
要檢驗 Binary 簽名是否有被變更過,可使用先前產生的規格檔比對目前目錄的內容,然後儲存結果到檔案。這個指令需要當初產生原規格檔所使用的種子碼:
-[source,bash]
+[source,shell]
....
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
# mtree: /bin checksum: 3427012225
@@ -294,7 +294,7 @@ _3483151339707503_ 代表種子碼,這個值應要記錄下來且不可給其
這個動作應會產生與上次建立 [.filename]#/bin# 規格檔時產生的校驗碼相同,若在此目錄的 Binary 沒有被變更過,那麼 [.filename]#/root/.bin_chksum_output# 這個輸出檔將會是空的。要模擬變更,可以使用 `touch` 更改 [.filename]#/root/.bin_chksum_output# 的日期然後再執行檢驗指令一次:
-[source,bash]
+[source,shell]
....
# touch /bin/cat
# mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output
@@ -352,7 +352,7 @@ OPIE 使用了三種不同類型的密碼,第一種是一般的 UNIX(TM) 或 K
第一次要初始化 OPIE,要在安全的場所執行以下指令:
-[source,bash]
+[source,shell]
....
% opiepasswd -c
Adding unfurl:
@@ -377,7 +377,7 @@ MOS MALL GOAT ARM AVID COED
要在不安全的系統上初始化或更改秘密密碼會需要某個可使用安全的連線的地方執行 `opiekey`,這可能是在某一台信任的主機上的 Shell。初始化需要設定疊代次數,100 可能是不錯的數字,種子碼可以自行指定或隨機產生,在不安全連線下要被初始化主機須使用 man:opiepasswd[1]:
-[source,bash]
+[source,shell]
....
% opiepasswd
@@ -396,7 +396,7 @@ LINE PAP MILK NELL BUOY TROY
要採用預設的種子碼,可直接按下 kbd:[Return] 做初始化。接著在輸入回應之前移到安全的連線然後給予相同的加密參數產生密碼:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -411,7 +411,7 @@ GAME GAG WELT OUT DOWN CHAT
在初始化 OPIE 之後進行登入會顯示如下的提示訊息:
-[source,bash]
+[source,shell]
....
% telnet example.com
Trying 10.0.0.1...
@@ -431,7 +431,7 @@ OPIE 的提示提供了一個很有用的功能,若在密碼提示時按下 kb
在信任的系統上執行:
-[source,bash]
+[source,shell]
....
% opiekey 498 to4268
Using the MD5 algorithm to compute response.
@@ -446,7 +446,7 @@ GAME GAG WELT OUT DOWN CHAT
有時會無法存取信任的主機或沒有安全的連線,在這種情況下,可以使用 man:opiekey[1] 來預先產生多個一次性密碼,例如:
-[source,bash]
+[source,shell]
....
% opiekey -n 5 30 zz99999
Using the MD5 algorithm to compute response.
@@ -514,7 +514,7 @@ qpopper : ALL : allow
Whenever this file is edited, restart inetd:
-[source,bash]
+[source,shell]
....
# service inetd restart
....
@@ -657,7 +657,7 @@ In order for clients to be able to find the Kerberos services, they _must_ have
Next, create the Kerberos database which contains the keys of all principals (users and hosts) encrypted with a master password. It is not required to remember this password as it will be stored in [.filename]#/var/heimdal/m-key#; it would be reasonable to use a 45-character random password for this purpose. To create the master key, run `kstash` and enter a password:
-[source,bash]
+[source,shell]
....
# kstash
Master key: xxxxxxxxxxxxxxxxxxxxxxx
@@ -666,7 +666,7 @@ Verifying password - Master key: xxxxxxxxxxxxxxxxxxxxxxx
Once the master key has been created, the database should be initialized. The Kerberos administrative tool man:kadmin[8] can be used on the KDC in a mode that operates directly on the database, without using the man:kadmind[8] network service, as `kadmin -l`. This resolves the chicken-and-egg problem of trying to connect to the database before it is created. At the `kadmin` prompt, use `init` to create the realm's initial database:
-[source,bash]
+[source,shell]
....
# kadmin -l
kadmin> init EXAMPLE.ORG
@@ -675,7 +675,7 @@ Realm max ticket life [unlimited]:
Lastly, while still in `kadmin`, create the first principal using `add`. Stick to the default options for the principal for now, as these can be changed later with `modify`. Type `?` at the prompt to see the available options.
-[source,bash]
+[source,shell]
....
kadmin> add tillman
Max ticket life [unlimited]:
@@ -687,7 +687,7 @@ Verifying password - Password: xxxxxxxx
Next, start the KDC services by running `service kdc start` and `service kadmind start`. While there will not be any kerberized daemons running at this point, it is possible to confirm that the KDC is functioning by obtaining a ticket for the principal that was just created:
-[source,bash]
+[source,shell]
....
% kinit tillman
tillman@EXAMPLE.ORG's Password:
@@ -695,7 +695,7 @@ tillman@EXAMPLE.ORG's Password:
Confirm that a ticket was successfully obtained using `klist`:
-[source,bash]
+[source,shell]
....
% klist
Credentials cache: FILE:/tmp/krb5cc_1001
@@ -707,7 +707,7 @@ Aug 27 15:37:58 2013 Aug 28 01:37:58 2013 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
The temporary ticket can be destroyed when the test is finished:
-[source,bash]
+[source,shell]
....
% kdestroy
....
@@ -722,7 +722,7 @@ Of course, `kadmin` is a kerberized service; a Kerberos ticket is needed to auth
After installing [.filename]#/etc/krb5.conf#, use `add --random-key` in `kadmin`. This adds the server's host principal to the database, but does not extract a copy of the host principal key to a keytab. To generate the keytab, use `ext` to extract the server's host principal key to its own keytab:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> add --random-key host/myserver.example.org
@@ -737,7 +737,7 @@ kadmin> exit
Note that `ext_keytab` stores the extracted key in [.filename]#/etc/krb5.keytab# by default. This is good when being run on the server being kerberized, but the `--keytab _path/to/file_` argument should be used when the keytab is being extracted elsewhere:
-[source,bash]
+[source,shell]
....
# kadmin
kadmin> ext_keytab --keytab=/tmp/example.keytab host/myserver.example.org
@@ -852,7 +852,7 @@ For more information about SSL, read the free https://www.feistyduck.com/books/o
To generate a certificate that will be signed by an external CA, issue the following command and input the information requested at the prompts. This input information will be written to the certificate. At the `Common Name` prompt, input the fully qualified name for the system that will use the certificate. If this name does not match the server, the application verifying the certificate will issue a warning to the user, rendering the verification provided by the certificate as useless.
-[source,bash]
+[source,shell]
....
# openssl req -new -nodes -out req.pem -keyout cert.key -sha256 -newkey rsa:2048
Generating a 2048 bit RSA private key
@@ -887,7 +887,7 @@ This command will create two files in the current directory. The certificate req
Alternately, if a signature from a CA is not required, a self-signed certificate can be created. First, generate the RSA key:
-[source,bash]
+[source,shell]
....
# openssl genrsa -rand -genkey -out cert.key 2048
0 semi-random bytes loaded
@@ -899,7 +899,7 @@ e is 65537 (0x10001)
Use this key to create a self-signed certificate. Follow the usual prompts for creating a certificate:
-[source,bash]
+[source,shell]
....
# openssl req -new -x509 -days 365 -key cert.key -out cert.crt -sha256
You are about to be asked to enter information that will be incorporated
@@ -940,14 +940,14 @@ sendmail_cert_cn="localhost.example.org"
This will automatically create a self-signed certificate, [.filename]#/etc/mail/certs/host.cert#, a signing key, [.filename]#/etc/mail/certs/host.key#, and a CA certificate, [.filename]#/etc/mail/certs/cacert.pem#. The certificate will use the `Common Name` specified in `sendmail_cert_cn`. After saving the edits, restart Sendmail:
-[source,bash]
+[source,shell]
....
# service sendmail restart
....
If all went well, there will be no error messages in [.filename]#/var/log/maillog#. For a simple test, connect to the mail server's listening port using `telnet`:
-[source,bash]
+[source,shell]
....
# telnet example.com 25
Trying 192.0.34.166...
@@ -990,7 +990,7 @@ IPsec supports two modes of operation. The first mode, _Transport Mode_, protect
在 FreeBSD 11 與之後的版本預設會開啟 IPsec 功能,先前版本的 FreeBSD 可在自訂核心設定檔中加入以下選項然後依 crossref:kernelconfig[kernelconfig,設定 FreeBSD 核心] 的指示來重新編譯核心:
-[source,bash]
+[source,shell]
....
options IPSEC #IP security
device crypto
@@ -998,7 +998,7 @@ device crypto
If IPsec debugging support is desired, the following kernel option should also be added:
-[source,bash]
+[source,shell]
....
options IPSEC_DEBUG debug for IP security
....
@@ -1015,7 +1015,7 @@ To begin, package:security/ipsec-tools[] must be installed from the Ports Collec
The next requirement is to create two man:gif[4] pseudo-devices which will be used to tunnel packets and allow both networks to communicate properly. As `root`, run the following commands, replacing _internal_ and _external_ with the real IP addresses of the internal and external interfaces of the two gateways:
-[source,bash]
+[source,shell]
....
# ifconfig gif0 create
# ifconfig gif0 internal1 internal2
@@ -1070,7 +1070,7 @@ round-trip min/avg/max/stddev = 28.106/94.594/154.524/49.814 ms
As expected, both sides have the ability to send and receive ICMP packets from the privately configured addresses. Next, both gateways must be told how to route packets in order to correctly send traffic from either network. The following commands will achieve this goal:
-[source,bash]
+[source,shell]
....
corp-net# route add 10.0.0.0 10.0.0.5 255.255.255.0
corp-net# route add net 10.0.0.0: gateway 10.0.0.5
@@ -1185,7 +1185,7 @@ spdadd 10.0.0.0/24 10.246.38.0/24 any -P in ipsec esp/tunnel/192.168.1.12-172.16
Once in place, racoon may be started on both gateways using the following command:
-[source,bash]
+[source,shell]
....
# /usr/local/sbin/racoon -F -f /usr/local/etc/racoon/racoon.conf -l /var/log/racoon.log
....
@@ -1210,7 +1210,7 @@ Foreground mode.
To ensure the tunnel is working properly, switch to another console and use man:tcpdump[1] to view network traffic using the following command. Replace `em0` with the network interface card as required:
-[source,bash]
+[source,shell]
....
# tcpdump -i em0 host 172.16.5.4 and dst 192.168.1.12
....
@@ -1280,7 +1280,7 @@ OpenSSH 由 OpenBSD 專案所維護且在 FreeBSD 預設會安裝,它可同時
要登入一台 SSH 伺服器,可使用 `ssh` 然後指定在伺服器上存在的使用者名稱與 IP 位址或伺服器的主機名稱。若這是第一次連線到指定的伺服器,會提示該使用者伺服器的指紋做第一次檢驗:
-[source,bash]
+[source,shell]
....
# ssh user@example.com
The authenticity of host 'example.com (10.0.0.1)' can't be established.
@@ -1296,7 +1296,7 @@ SSH 會在客戶端連線時利用金鑰指紋 (Key fingerprint) 系統來驗證
使用 man:scp[1] 可從遠端主機安全的複製一個檔案,以下範例會複製在遠端主機的 [.filename]#COPYRIGHT# 到本地主機的目前目錄:
-[source,bash]
+[source,shell]
....
# scp user@example.com:/COPYRIGHT COPYRIGHT
Password for user@example.com: *******
@@ -1316,7 +1316,7 @@ COPYRIGHT 100% |*****************************| 4735
除了使用密碼之外,客戶端可以設定成使用金鑰來連線到遠端的主機。要產生 RSA 認証金鑰可使用 `ssh-keygen`。要產生成對的公鑰與私鑰,可指定金鑰的類型並依提示操作。建議使用容易記住但較難猜出的密碼來保護這個金鑰。
-[source,bash]
+[source,shell]
....
% ssh-keygen -t rsa
Generating public/private rsa key pair.
@@ -1361,7 +1361,7 @@ The key's randomart image is:
要在 Shell 使用 `ssh-agent`,使用 Shell 做為參數來啟動 `ssh-agent`。執行 `ssh-add` 來加入識別碼,然後輸入私鑰的密碼。使用者將可使用 `ssh` 連線到任何有安裝對應公鑰的主機,例如:
-[source,bash]
+[source,shell]
....
% ssh-agent csh
% ssh-add
@@ -1388,7 +1388,7 @@ OpenSSH 可以建立一個通道 (Tunnel) 來封裝其他通訊協定到一個
以下指令會告訴 `ssh` 建立一個供 telnet 使用的通道:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5023:localhost:23 user@foo.example.com
%
@@ -1419,7 +1419,7 @@ SSH 通道會建立一個傾聽 `localhost` 指定 `localport` 的 Socket ,然
[example]
====
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 5025:localhost:25 user@mailserver.example.com
user@mailserver.example.com's password: *****
@@ -1438,7 +1438,7 @@ Escape character is '^]'.
====
在這個例子中有一個 SSH 伺服器會接受來自外部的連線,在同個網段下有一個郵件伺服器執行 POP3 伺服器。要使用較安全的方式檢查有沒有新郵件可建立一個 SSH 連線到 SSH 伺服器然後透過通道連線到郵件伺服器:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 2110:mail.example.com:110 user@ssh-server.example.com
user@ssh-server.example.com's password: ******
@@ -1454,7 +1454,7 @@ user@ssh-server.example.com's password: ******
這問題的解決方法是建立一個 SSH 連線到在防火牆防護之外主機然後使用該連線的通道連到想要使用的服務:
-[source,bash]
+[source,shell]
....
% ssh -2 -N -f -L 8888:music.example.com:8000 user@unfirewalled-system.example.org
user@unfirewalled-system.example.org's password: *******
@@ -1469,7 +1469,7 @@ user@unfirewalled-system.example.org's password: *******
要查看 sshd 是否正在運作,可使用 man:service[8] 指令:
-[source,bash]
+[source,shell]
....
# service sshd status
....
@@ -1483,7 +1483,7 @@ sshd_enable="YES"
這會讓下次系統開機時啟動 OpenSSH 的 Daemon 程式 sshd。若要立即啟動:
-[source,bash]
+[source,shell]
....
# service sshd start
....
@@ -1521,7 +1521,7 @@ AllowUsers root@192.168.1.32 admin
在對 [.filename]#/etc/ssh/sshd_config# 做完變更後,執行以下指令告訴 sshd 重新載入設定檔:
-[source,bash]
+[source,shell]
....
# service sshd reload
....
@@ -1589,7 +1589,7 @@ In this example, [.filename]#directory1#, [.filename]#directory2#, and [.filenam
File system ACLs can be viewed using `getfacl`. For instance, to view the ACL settings on [.filename]#test#:
-[source,bash]
+[source,shell]
....
% getfacl test
#file:test
@@ -1602,14 +1602,14 @@ File system ACLs can be viewed using `getfacl`. For instance, to view the ACL se
To change the ACL settings on this file, use `setfacl`. To remove all of the currently defined ACLs from a file or file system, include `-k`. However, the preferred method is to use `-b` as it leaves the basic fields required for ACLs to work.
-[source,bash]
+[source,shell]
....
% setfacl -k test
....
To modify the default ACL entries, use `-m`:
-[source,bash]
+[source,shell]
....
% setfacl -m u:trhodes:rwx,group:web:r--,o::--- test
....
@@ -1633,7 +1633,7 @@ Installation provides man:periodic[8] configuration files for maintaining the pk
After installation, and to audit third party utilities as part of the Ports Collection at any time, an administrator may choose to update the database and view known vulnerabilities of installed packages by invoking:
-[source,bash]
+[source,shell]
....
# pkg audit -F
....
@@ -1849,7 +1849,7 @@ If more fine-grained accounting is needed, refer to crossref:audit[audit,安全
Before using process accounting, it must be enabled using the following commands:
-[source,bash]
+[source,shell]
....
# sysrc accounting_enable=yes
# service accounting start
@@ -1861,7 +1861,7 @@ Once enabled, accounting will begin to track information such as CPU statistics
To display the commands issued by users, use `lastcomm`. For example, this command prints out all usage of `ls` by `trhodes` on the `ttyp1` terminal:
-[source,bash]
+[source,shell]
....
# lastcomm ls trhodes ttyp1
....
@@ -1888,7 +1888,7 @@ In the traditional method, login classes and the resource limits to apply to a l
====
Whenever [.filename]#/etc/login.conf# is edited, the [.filename]#/etc/login.conf.db# must be updated by executing the following command:
-[source,bash]
+[source,shell]
....
# cap_mkdb /etc/login.conf
....
@@ -1965,7 +1965,7 @@ In this rule, the subject is `user`, the subject-id is `trhodes`, the resource,
Some care must be taken when adding rules. Since this user is constrained to `10` processes, this example will prevent the user from performing other tasks after logging in and executing a `screen` session. Once a resource limit has been hit, an error will be printed, as in this example:
-[source,bash]
+[source,shell]
....
% man test
/usr/bin/man: Cannot fork: Resource temporarily unavailable
@@ -1974,7 +1974,7 @@ eval: Cannot fork: Resource temporarily unavailable
As another example, a jail can be prevented from exceeding a memory limit. This rule could be written as:
-[source,bash]
+[source,shell]
....
# rctl -a jail:httpd:memoryuse:deny=2G/jail
....
@@ -1989,14 +1989,14 @@ jail:httpd:memoryuse:deny=2G/jail
To remove a rule, use `rctl` to remove it from the list:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes:maxproc:deny=10/user
....
A method for removing all rules is documented in man:rctl[8]. However, if removing all rules for a single user is required, this command may be issued:
-[source,bash]
+[source,shell]
....
# rctl -r user:trhodes
....
@@ -2012,7 +2012,7 @@ Many other resources exist which can be used to exert additional control over va
Sudo 讓管理者可以對系統指令的存取設下更嚴格的限制並提供進階的記錄功能。如同其他工具,它可自 Port 套件集取得,於其中的 package:security/sudo[],或使用 man:pkg[8] 工具取得,若要使用 man:pkg[8] 工具可:
-[source,bash]
+[source,shell]
....
# pkg install sudo
....
@@ -2028,21 +2028,21 @@ user1 ALL=(ALL) /usr/sbin/service webservice *
現在使用者可使用此指令來啟動 _webservice_:
-[source,bash]
+[source,shell]
....
% sudo /usr/sbin/service webservice start
....
雖然這項設定可以讓一位使用者存取 webservice 服務,但在大部份組織中會有一整個網站小組負責管理該服務,因此也可以一行來授予整個群組存取權,以下步驟會建立一個網站群組、加入使用者到這個群組,然後讓該群組中的所有成員能夠管理服務:
-[source,bash]
+[source,shell]
....
# pw groupadd -g 6001 -n webteam
....
同樣使用 man:pw[8] 指令來加入該使用到 webteam 群組:
-[source,bash]
+[source,shell]
....
# pw groupmod -m user1 -n webteam
....
@@ -2095,14 +2095,14 @@ Defaults iolog_dir=/var/log/sudo-io/%{user}
從此之後,所有 _webteam_ 修改 _webservice_ 應用程式狀態的成員將會被記錄下來。要列出先前與目前連線階段的記錄可:
-[source,bash]
+[source,shell]
....
# sudoreplay -l
....
在輸出結果中要重播指定連線階段的記錄可搜尋 `TSID=` 項目,然後傳送給 sudoreplay 且不加其他選項便可以一般速度重播連線階段,例如:
-[source,bash]
+[source,shell]
....
# sudoreplay user1/00/00/02
....
diff --git a/documentation/content/zh-tw/books/handbook/serialcomms/_index.adoc b/documentation/content/zh-tw/books/handbook/serialcomms/_index.adoc
index f09bd13ab6..a3db1b2e1a 100644
--- a/documentation/content/zh-tw/books/handbook/serialcomms/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/serialcomms/_index.adoc
@@ -344,7 +344,7 @@ By default, FreeBSD supports four serial ports which are commonly known as [.fil
To see if the system recognizes the serial ports, look for system boot messages that start with `uart`:
-[source,bash]
+[source,shell]
....
# grep uart /var/run/dmesg.boot
....
@@ -353,21 +353,21 @@ If the system does not recognize all of the needed serial ports, additional entr
To determine the default set of terminal I/O settings used by the port, specify its device name. This example determines the settings for the call-in port on [.filename]#COM2#:
-[source,bash]
+[source,shell]
....
# stty -a -f /dev/ttyu1
....
System-wide initialization of serial devices is controlled by [.filename]#/etc/rc.d/serial#. This file affects the default settings of serial devices. To change the settings for a device, use `stty`. By default, the changed settings are in effect until the device is closed and when the device is reopened, it goes back to the default set. To permanently change the default set, open and adjust the settings of the initialization device. For example, to turn on `CLOCAL` mode, 8 bit communication, and `XON/XOFF` flow control for [.filename]#ttyu5#, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.init clocal cs8 ixon ixoff
....
To prevent certain settings from being changed by an application, make adjustments to the locking device. For example, to lock the speed of [.filename]#ttyu5# to 57600 bps, type:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu5.lock 57600
....
@@ -403,7 +403,7 @@ There are at least two utilities in the base-system of FreeBSD that can be used
+
For example, to connect from a client system that runs FreeBSD to the serial connection of another system:
+
-[source,bash]
+[source,shell]
....
# cu -l /dev/cuauN
....
@@ -461,7 +461,7 @@ ttyu5 "/usr/libexec/getty std.19200" vt100 on insecure
After making any changes to [.filename]#/etc/ttys#, send a SIGHUP (hangup) signal to the `init` process to force it to re-read its configuration file:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
@@ -483,7 +483,7 @@ Make sure the terminal and FreeBSD agree on the bps rate and parity settings. Fo
Use `ps` to make sure that a `getty` process is running and serving the terminal. For example, the following listing shows that a `getty` is running on the second serial port, [.filename]#ttyu1#, and is using the `std.38400` entry in [.filename]#/etc/gettytab#:
-[source,bash]
+[source,shell]
....
# ps -axww|grep ttyu
22189 d1 Is+ 0:00.03 /usr/libexec/getty std.38400 ttyu1
@@ -591,14 +591,14 @@ ttyu0 "/usr/libexec/getty V19200" dialup on
After editing [.filename]#/etc/ttys#, wait until the modem is properly configured and connected before signaling `init`:
-[source,bash]
+[source,shell]
....
# kill -HUP 1
....
High-speed modems, like V.32, V.32bis, and V.34 modems, use hardware (`RTS/CTS`) flow control. Use `stty` to set the hardware flow control flag for the modem port. This example sets the `crtscts` flag on [.filename]#COM2#'s dial-in and dial-out initialization devices:
-[source,bash]
+[source,shell]
....
# stty -f /dev/ttyu1.init crtscts
# stty -f /dev/cuau1.init crtscts
@@ -612,7 +612,7 @@ Hook up the modem to the FreeBSD system and boot the system. If the modem has st
If the DTR indicator does not light, login to the FreeBSD system through the console and type `ps ax` to see if FreeBSD is running a `getty` process on the correct port:
-[source,bash]
+[source,shell]
....
114 ?? I 0:00.10 /usr/libexec/getty V19200 ttyu0
....
@@ -663,7 +663,7 @@ Use the highest bps rate the modem supports in the `br` capability. Then, type `
Or, use `cu` as `root` with the following command:
-[source,bash]
+[source,shell]
....
# cu -lline -sspeed
....
@@ -695,7 +695,7 @@ tip57600|Dial any phone number at 57600 bps:\
This should now work:
-[source,bash]
+[source,shell]
....
# tip -115200 5551234
....
@@ -710,7 +710,7 @@ cu115200|Use cu to dial any number at 115200bps:\
and type:
-[source,bash]
+[source,shell]
....
# cu 5551234 -s 115200
....
@@ -830,7 +830,7 @@ This section provides a fast overview of setting up the serial console. This pro
. Connect the serial cable to [.filename]#COM1# and the controlling terminal.
. To configure boot messages to display on the serial console, issue the following command as the superuser:
+
-[source,bash]
+[source,shell]
....
sysrc -f /boot/loader.conf console=comconsole
....
@@ -902,7 +902,7 @@ The options, except for `-P`, are passed to the boot loader. The boot loader wil
+
When FreeBSD starts, the boot blocks echo the contents of [.filename]#/boot.config# to the console. For example:
+
-[source,bash]
+[source,shell]
....
/boot.config: -P
Keyboard: no
@@ -939,7 +939,7 @@ After the message, there will be a small pause before the boot blocks continue l
+
Press any key, other than kbd:[Enter], at the console to interrupt the boot process. The boot blocks will then prompt for further action:
+
-[source,bash]
+[source,shell]
....
>> FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
@@ -981,7 +981,7 @@ By default, the serial port settings are 9600 baud, 8 bits, no parity, and 1 sto
* Edit [.filename]#/etc/make.conf# and set `BOOT_COMCONSOLE_SPEED` to the new console speed. Then, recompile and install the boot blocks and the boot loader:
+
-[source,bash]
+[source,shell]
....
# cd /sys/boot
# make clean
diff --git a/documentation/content/zh-tw/books/handbook/usb-device-mode/_index.adoc b/documentation/content/zh-tw/books/handbook/usb-device-mode/_index.adoc
index f35fb89691..025db8ab8e 100644
--- a/documentation/content/zh-tw/books/handbook/usb-device-mode/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/usb-device-mode/_index.adoc
@@ -75,7 +75,7 @@ Virtual serial port support is provided by templates number 3, 8, and 10. Note t
To enable USB device mode serial ports, add those lines to [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
@@ -83,7 +83,7 @@ ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
然後加入這些行到 [.filename]#/etc/devd.conf#:
-[source,bash]
+[source,shell]
....
notify 100 {
match "system" "DEVFS";
@@ -96,14 +96,14 @@ notify 100 {
Reload the configuration if man:devd[8] is already running:
-[source,bash]
+[source,shell]
....
# service devd restart
....
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
-[source,bash]
+[source,shell]
....
umodem_load="YES"
hw.usb.template=3
@@ -111,7 +111,7 @@ hw.usb.template=3
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload umodem
# sysctl hw.usb.template=3
@@ -121,7 +121,7 @@ To load the module and set the template without rebooting use:
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. Use `pstat -t` on the host to list the terminal lines. Near the end of the list you should see a USB serial port, eg "ttyU0". To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/ttyU0
....
@@ -132,7 +132,7 @@ After pressing the Enter key a few times you will see a login prompt.
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# cu -l /dev/cu.usbmodemFreeBSD1
....
@@ -141,7 +141,7 @@ To connect to a board configured to provide USB device mode serial ports, connec
To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, to the boards USB OTG or USB client port. To open the connection, use:
-[source,bash]
+[source,shell]
....
# minicom -D /dev/ttyACM0
....
@@ -157,7 +157,7 @@ Virtual network interfaces support is provided by templates number 1, 8, and 10.
Make sure the necessary modules are loaded and the correct template is set at boot by adding those lines to [.filename]#/boot/loader.conf#, creating it if it does not already exist:
-[source,bash]
+[source,shell]
....
if_cdce_load="YES"
hw.usb.template=1
@@ -165,7 +165,7 @@ hw.usb.template=1
To load the module and set the template without rebooting use:
-[source,bash]
+[source,shell]
....
# kldload if_cdce
# sysctl hw.usb.template=1
@@ -192,7 +192,7 @@ cfumass_enable="YES"
To configure the target without restarting, run this command:
-[source,bash]
+[source,shell]
....
# service cfumass start
....
@@ -205,7 +205,7 @@ The rest of this chapter provides detailed description of setting the target wit
USB Mass Storage does not require the man:ctld[8] daemon to be running, although it can be used if desired. This is different from iSCSI. Thus, there are two ways to configure the target: man:ctladm[8], or man:ctld[8]. Both require the [.filename]#cfumass.ko# kernel module to be loaded. The module can be loaded manually:
-[source,bash]
+[source,shell]
....
# kldload cfumass
....
@@ -219,7 +219,7 @@ cfumass_load="YES"
A LUN can be created without the man:ctld[8] daemon:
-[source,bash]
+[source,shell]
....
# ctladm create -b block -o file=/data/target0
....
@@ -251,14 +251,14 @@ ctld_enable="YES"
To start man:ctld[8] now, run this command:
-[source,bash]
+[source,shell]
....
# service ctld start
....
當 man:ctld[8] Daemon 啟動後,它會讀取 [.filename]#/etc/ctl.conf#,若這個檔案在 Daemon 啟動之後才做修改,要重新載入變更的內容才能立即生效:
-[source,bash]
+[source,shell]
....
# service ctld reload
....
diff --git a/documentation/content/zh-tw/books/handbook/virtualization/_index.adoc b/documentation/content/zh-tw/books/handbook/virtualization/_index.adoc
index 0944e64749..1a0801a8a1 100644
--- a/documentation/content/zh-tw/books/handbook/virtualization/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/virtualization/_index.adoc
@@ -328,7 +328,7 @@ VirtualBox(TM) guest additions 支援以下功能:
首先,在 FreeBSD 客端安裝 package:emulators/virtualbox-ose-additions[] 套件或 Port,以下指令會安裝 Port:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
....
@@ -410,14 +410,14 @@ HAL 的使用者應建立以下 [.filename]#/usr/local/etc/hal/fdi/policy/90-vbo
Shared folders for file transfers between host and VM are accessible by mounting them using `mount_vboxvfs`. A shared folder can be created on the host using the VirtualBox GUI or via `vboxmanage`. For example, to create a shared folder called _myshare_ under [.filename]#/mnt/bsdboxshare# for the VM named _BSDBox_, run:
-[source,bash]
+[source,shell]
....
# vboxmanage sharedfolder add 'BSDBox' --name myshare --hostpath /mnt/bsdboxshare
....
Note that the shared folder name must not contain spaces. Mount the shared folder from within the guest system like this:
-[source,bash]
+[source,shell]
....
# mount_vboxvfs -w myshare /mnt
....
@@ -432,7 +432,7 @@ VirtualBox(TM) 是一套積極開發、完整的虛擬化套件,適用大多
VirtualBox(TM) 可於 package:emulators/virtualbox-ose[] 以 FreeBSD 套件或 Port 的方式取得。要安裝 Port 可使用以下指令:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/emulators/virtualbox-ose
# make install clean
@@ -442,7 +442,7 @@ VirtualBox(TM) 可於 package:emulators/virtualbox-ose[] 以 FreeBSD 套件或 P
還有一些設定需要在 VirtualBox(TM) 第一次啟動端做修改,Port 會安裝一個核心模組在 [.filename]#/boot/modules#,該模組必須在核心中載入:
-[source,bash]
+[source,shell]
....
# kldload vboxdrv
....
@@ -463,14 +463,14 @@ vboxnet_enable="YES"
在安裝 VirtualBox(TM) 的過程中會建立 `vboxusers` 群組,所有需要存取 VirtualBox(TM) 的使用者均需要加入成為此群組的成員,`pw` 可用來加入新的成員:
-[source,bash]
+[source,shell]
....
# pw groupmod vboxusers -m yourusername
....
[.filename]#/dev/vboxnetctl# 的預設權限是受限的,需要更改後才可使用橋接網路:
-[source,bash]
+[source,shell]
....
# chown root:vboxusers /dev/vboxnetctl
# chmod 0660 /dev/vboxnetctl
@@ -486,7 +486,7 @@ perm vboxnetctl 0660
要執行 VirtualBox(TM),可在 Xorg 工作階段輸入:
-[source,bash]
+[source,shell]
....
% VirtualBox
....
@@ -500,7 +500,7 @@ VirtualBox(TM) can be configured to pass USB devices through to the guest operat
For VirtualBox(TM) to be aware of USB devices attached to the machine, the user needs to be a member of the `operator` group.
-[source,bash]
+[source,shell]
....
# pw groupmod operator -m yourusername
....
@@ -522,7 +522,7 @@ devfs_system_ruleset="system"
然後重新啟動 devfs:
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -541,7 +541,7 @@ VirtualBox(TM)DVD/CD 功能要能運作需要執行 HAL,因此需在 [.filenam
hald_enable="YES"
....
-[source,bash]
+[source,shell]
....
# service hald start
....
@@ -555,7 +555,7 @@ perm xpt0 0660
perm pass* 0660
....
-[source,bash]
+[source,shell]
....
# service devfs restart
....
@@ -572,14 +572,14 @@ The bhyve design requires a processor that supports Intel(TM) Extended Page Tabl
The first step to creating a virtual machine in bhyve is configuring the host system. First, load the bhyve kernel module:
-[source,bash]
+[source,shell]
....
# kldload vmm
....
Then, create a [.filename]#tap# interface for the network device in the virtual machine to attach to. In order for the network device to participate in the network, also create a bridge interface containing the [.filename]#tap# interface and the physical interface as members. In this example, the physical interface is _igb0_:
-[source,bash]
+[source,shell]
....
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
@@ -594,14 +594,14 @@ net.link.tap.up_on_open: 0 -> 1
Create a file to use as the virtual disk for the guest machine. Specify the size and name of the virtual disk:
-[source,bash]
+[source,shell]
....
# truncate -s 16G guest.img
....
Download an installation image of FreeBSD to install:
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.3/FreeBSD-10.3-RELEASE-amd64-bootonly.iso
FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
@@ -609,7 +609,7 @@ FreeBSD-10.3-RELEASE-amd64-bootonly.iso 100% of 230 MB 570 kBps 06m17s
FreeBSD comes with an example script for running a virtual machine in bhyve. The script will start the virtual machine and run it in a loop, so it will automatically restart if it crashes. The script takes a number of options to control the configuration of the machine: `-c` controls the number of virtual CPUs, `-m` limits the amount of memory available to the guest, `-t` defines which [.filename]#tap# device to use, `-d` indicates which disk image to use, `-i` tells bhyve to boot from the CD image instead of the disk, and `-I` defines which CD image to use. The last parameter is the name of the virtual machine, used to track the running machines. This example starts the virtual machine in installation mode:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 1 -m 1024M -t tap0 -d guest.img -i -I FreeBSD-10.3-RELEASE-amd64-bootonly.iso guestname
....
@@ -618,7 +618,7 @@ The virtual machine will boot and start the installer. After installing a system
Reboot the virtual machine. While rebooting the virtual machine causes bhyve to exit, the [.filename]#vmrun.sh# script runs `bhyve` in a loop and will automatically restart it. When this happens, choose the reboot option from the boot loader menu in order to escape the loop. Now the guest can be started from the virtual disk:
-[source,bash]
+[source,shell]
....
# sh /usr/shared/examples/bhyve/vmrun.sh -c 4 -m 1024M -t tap0 -d guest.img guestname
....
@@ -630,7 +630,7 @@ In order to boot operating systems other than FreeBSD, the package:sysutils/grub
Next, create a file to use as the virtual disk for the guest machine:
-[source,bash]
+[source,shell]
....
# truncate -s 16G linux.img
....
@@ -645,14 +645,14 @@ Starting a virtual machine with bhyve is a two step process. First a kernel must
Use package:sysutils/grub2-bhyve[] to load the Linux(TM) kernel from the ISO image:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
....
This will start grub. If the installation CD contains a [.filename]#grub.cfg#, a menu will be displayed. If not, the `vmlinuz` and `initrd` files must be located and loaded manually:
-[source,bash]
+[source,shell]
....
grub> ls
(hd0) (cd0) (cd0,msdos1) (host)
@@ -666,7 +666,7 @@ grub> boot
Now that the Linux(TM) kernel is loaded, the guest can be started:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
-s 4:0,ahci-cd,./somelinux.iso -l com1,stdio -c 4 -m 1024M linuxguest
@@ -674,14 +674,14 @@ Now that the Linux(TM) kernel is loaded, the guest can be started:
The system will boot and start the installer. After installing a system in the virtual machine, reboot the virtual machine. This will cause bhyve to exit. The instance of the virtual machine needs to be destroyed before it can be started again:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
Now the guest can be started directly from the virtual disk. Load the kernel:
-[source,bash]
+[source,shell]
....
# grub-bhyve -m device.map -r hd0,msdos1 -M 1024M linuxguest
grub> ls
@@ -698,7 +698,7 @@ grub> boot
Boot the virtual machine:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \
-s 3:0,virtio-blk,./linux.img -l com1,stdio -c 4 -m 1024M linuxguest
@@ -706,7 +706,7 @@ Boot the virtual machine:
Linux(TM) will now boot in the virtual machine and eventually present you with the login prompt. Login and use the virtual machine. When you are finished, reboot the virtual machine to exit bhyve. Destroy the virtual machine instance:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=linuxguest
....
@@ -720,7 +720,7 @@ In order to make use of the UEFI support in bhyve, first obtain the UEFI firmwar
With the firmware in place, add the flags `-l bootrom,_/path/to/firmware_` to your bhyve command line. The actual bhyve command may look like this:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -731,7 +731,7 @@ guest
package:sysutils/bhyve-firmware[] also contains a CSM-enabled firmware, to boot guests with no UEFI support in legacy BIOS mode:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -749,7 +749,7 @@ Support for the UEFI-GOP framebuffer may also be enabled with the `-s 29,fbuf,tc
bhyve 指令的結果會如下:
-[source,bash]
+[source,shell]
....
# bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
@@ -766,14 +766,14 @@ Note, in BIOS emulation mode, the framebuffer will cease receiving updates once
If ZFS is available on the host machine, using ZFS volumes instead of disk image files can provide significant performance benefits for the guest VMs. A ZFS volume can be created by:
-[source,bash]
+[source,shell]
....
# zfs create -V16G -o volmode=dev zroot/linuxdisk0
....
When starting the VM, specify the ZFS volume as the disk drive:
-[source,bash]
+[source,shell]
....
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s3:0,virtio-blk,/dev/zvol/zroot/linuxdisk0 \
-l com1,stdio -c 4 -m 1024M linuxguest
@@ -784,7 +784,7 @@ When starting the VM, specify the ZFS volume as the disk drive:
It is advantageous to wrap the bhyve console in a session management tool such as package:sysutils/tmux[] or package:sysutils/screen[] in order to detach and reattach to the console. It is also possible to have the console of bhyve be a null modem device that can be accessed with `cu`. To do this, load the [.filename]#nmdm# kernel module and replace `-l com1,stdio` with `-l com1,/dev/nmdm0A`. The [.filename]#/dev/nmdm# devices are created automatically as needed, where each is a pair, corresponding to the two ends of the null modem cable ([.filename]#/dev/nmdm0A# and [.filename]#/dev/nmdm0B#). See man:nmdm[4] for more information.
-[source,bash]
+[source,shell]
....
# kldload nmdm
# bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img \
@@ -802,7 +802,7 @@ handbook login:
A device node is created in [.filename]#/dev/vmm# for each virtual machine. This allows the administrator to easily see a list of the running virtual machines:
-[source,bash]
+[source,shell]
....
# ls -al /dev/vmm
total 1
@@ -815,7 +815,7 @@ crw------- 1 root wheel 0x1a1 Mar 17 12:19 otherguest
A specified virtual machine can be destroyed using `bhyvectl`:
-[source,bash]
+[source,shell]
....
# bhyvectl --destroy --vm=guestname
....
@@ -871,14 +871,14 @@ Users of FreeBSD 11 should install the package:emulators/xen-kernel47[] and pack
Configuration files must be edited to prepare the host for the Dom0 integration after the Xen packages are installed. An entry to [.filename]#/etc/sysctl.conf# disables the limit on how many pages of memory are allowed to be wired. Otherwise, DomU VMs with higher memory requirements will not run.
-[source,bash]
+[source,shell]
....
# echo 'vm.max_wired=-1' >> /etc/sysctl.conf
....
Another memory-related setting involves changing [.filename]#/etc/login.conf#, setting the `memorylocked` option to `unlimited`. Otherwise, creating DomU domains may fail with `Cannot allocate memory` errors. After making the change to [.filename]#/etc/login.conf#, run `cap_mkdb` to update the capability database. See crossref:security[security-resourcelimits,限制資源] for details.
-[source,bash]
+[source,shell]
....
# sed -i '' -e 's/memorylocked=64K/memorylocked=unlimited/' /etc/login.conf
# cap_mkdb /etc/login.conf
@@ -886,7 +886,7 @@ Another memory-related setting involves changing [.filename]#/etc/login.conf#, s
Add an entry for the Xen(TM) console to [.filename]#/etc/ttys#:
-[source,bash]
+[source,shell]
....
# echo 'xc0 "/usr/libexec/getty Pc" xterm onifconsole secure' >> /etc/ttys
....
@@ -895,7 +895,7 @@ Selecting a Xen(TM) kernel in [.filename]#/boot/loader.conf# activates the Dom0.
The following command is used for Xen 4.7 packages:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf hw.pci.mcfg=0
# sysrc -f /boot/loader.conf if_tap_load="YES"
@@ -905,7 +905,7 @@ The following command is used for Xen 4.7 packages:
For Xen versions 4.11 and higher, the following command should be used instead:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf if_tap_load="YES"
# sysrc -f /boot/loader.conf xen_kernel="/boot/xen"
@@ -920,14 +920,14 @@ Log files that Xen(TM) creates for the DomU VMs are stored in [.filename]#/var/l
Activate the xencommons service during system startup:
-[source,bash]
+[source,shell]
....
# sysrc xencommons_enable=yes
....
These settings are enough to start a Dom0-enabled system. However, it lacks network functionality for the DomU machines. To fix that, define a bridged interface with the main NIC of the system which the DomU VMs can use to connect to the network. Replace _em0_ with the host network interface name.
-[source,bash]
+[source,shell]
....
# sysrc cloned_interfaces="bridge0"
# sysrc ifconfig_bridge0="addm em0 SYNCDHCP"
@@ -936,14 +936,14 @@ These settings are enough to start a Dom0-enabled system. However, it lacks netw
Restart the host to load the Xen(TM) kernel and start the Dom0.
-[source,bash]
+[source,shell]
....
# reboot
....
After successfully booting the Xen(TM) kernel and logging into the system again, the Xen(TM) management tool `xl` is used to show information about the domains.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -957,21 +957,21 @@ The output confirms that the Dom0 (called `Domain-0`) has the ID `0` and is runn
Unprivileged domains consist of a configuration file and virtual or physical hard disks. Virtual disk storage for the DomU can be files created by man:truncate[1] or ZFS volumes as described in crossref:zfs[zfs-zfs-volume,建立與摧毀磁碟區]. In this example, a 20 GB volume is used. A VM is created with the ZFS volume, a FreeBSD ISO image, 1 GB of RAM and two virtual CPUs. The ISO installation file is retrieved with man:fetch[1] and saved locally in a file called [.filename]#freebsd.iso#.
-[source,bash]
+[source,shell]
....
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-bootonly.iso -o freebsd.iso
....
A ZFS volume of 20 GB called [.filename]#xendisk0# is created to serve as the disk space for the VM.
-[source,bash]
+[source,shell]
....
# zfs create -V20G -o volmode=dev zroot/xendisk0
....
The new DomU guest VM is defined in a file. Some specific definitions like name, keymap, and VNC connection details are also defined. The following [.filename]#freebsd.cfg# contains a minimum DomU configuration for this example:
-[source,bash]
+[source,shell]
....
# cat freebsd.cfg
builder = "hvm" <.>
@@ -1009,7 +1009,7 @@ These lines are explained in more detail:
After the file has been created with all the necessary options, the DomU is created by passing it to `xl create` as a parameter.
-[source,bash]
+[source,shell]
....
# xl create freebsd.cfg
....
@@ -1021,7 +1021,7 @@ Each time the Dom0 is restarted, the configuration file must be passed to `xl cr
The output of `xl list` confirms that the DomU has been created.
-[source,bash]
+[source,shell]
....
# xl list
Name ID Mem VCPUs State Time(s)
@@ -1031,7 +1031,7 @@ freebsd 1 1024 1 -b---- 663.9
To begin the installation of the base operating system, start the VNC client, directing it to the main network address of the host or to the IP address defined on the `vnclisten` line of [.filename]#freebsd.cfg#. After the operating system has been installed, shut down the DomU and disconnect the VNC viewer. Edit [.filename]#freebsd.cfg#, removing the line with the `cdrom` definition or commenting it out by inserting a `#` character at the beginning of the line. To load this new configuration, it is necessary to remove the old DomU with `xl destroy`, passing either the name or the id as the parameter. Afterwards, recreate it using the modified [.filename]##freebsd.cfg##.
-[source,bash]
+[source,shell]
....
# xl destroy freebsd
# xl create freebsd.cfg
@@ -1057,7 +1057,7 @@ In order to troubleshoot host boot issues you will likely need a serial cable, o
FreeBSD should also be booted in verbose mode in order to identify any issues. To activate verbose booting, run this command:
-[source,bash]
+[source,shell]
....
# sysrc -f /boot/loader.conf boot_verbose="YES"
....
@@ -1071,7 +1071,7 @@ Issues can also arise when creating guests, the following attempts to provide so
The most common cause of guest creation failures is the `xl` command spitting some error and exiting with a return code different than 0. If the error provided is not enough to help identify the issue, more verbose output can also be obtained from `xl` by using the `v` option repeatedly.
-[source,bash]
+[source,shell]
....
# xl -vvv create freebsd.cfg
Parsing config from freebsd.cfg
diff --git a/documentation/content/zh-tw/books/handbook/x11/_index.adoc b/documentation/content/zh-tw/books/handbook/x11/_index.adoc
index 359bf554a2..bd6cf8473a 100644
--- a/documentation/content/zh-tw/books/handbook/x11/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/x11/_index.adoc
@@ -107,14 +107,14 @@ KDE 與 GNOME 會被稱作桌面環境是因為包含了完整常用桌面作業
使用 Binary 套件的安裝速度較快,但可用的自訂選項較少:
-[source,bash]
+[source,shell]
....
# pkg install xorg
....
要從 Port 套件集編譯與安裝:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/xorg
# make install clean
@@ -143,7 +143,7 @@ Xorg 支援大多數常見的顯示卡、鍵盤以及指標裝置。
. 若 Xorg 曾經在電腦使用過,可先將現有的設定檔重新命名或移除:
+
-[source,bash]
+[source,shell]
....
# mv /etc/X11/xorg.conf ~/xorg.conf.etc
# mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
@@ -151,14 +151,14 @@ Xorg 支援大多數常見的顯示卡、鍵盤以及指標裝置。
+
. 加入要執行 Xorg 的使用者到 `video` 或 `wheel` 群組,以便在可用時能開啟 3D 加速。要加入使用者 _jru_ 到任一個可用的群組:
+
-[source,bash]
+[source,shell]
....
# pw groupmod video -m jru || pw groupmod wheel -m jru
....
+
. 預設內含 TWM 視窗管理程式,啟動 Xorg 時便會啟動該視窗管理程式:
+
-[source,bash]
+[source,shell]
....
% startx
....
@@ -171,7 +171,7 @@ Xorg 支援大多數常見的顯示卡、鍵盤以及指標裝置。
要存取 [.filename]#/dev/dri# 需要允許顯示卡的 3D 加速功能,這通常只需要將要執行 X 的使用者加入 `video` 或 `wheel` 群組。此處使用 man:pw[8] 來將使用者 _slurms_ 加入 `video` 群組,若沒有 `video` 則會加入 `wheel` 群組:
-[source,bash]
+[source,shell]
....
# pw groupmod video -m slurms || pw groupmod wheel -m slurms
....
@@ -357,7 +357,7 @@ EndSection
使用 man:xrandr[1]::
執行 man:xrandr[1] 不加任何參數可檢查影像輸出及已偵測到的顯示器模式清單:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 3000 x 1920, maximum 8192 x 8192
@@ -380,7 +380,7 @@ HDMI-0 disconnected (normal left inverted right x axis y axis)
+
可使用 man:xrandr[1] 來選擇任何其他的顯示模式。例如要切換為 1280x1024 於 60 Hz:
+
-[source,bash]
+[source,shell]
....
% xrandr --mode 1280x1024 --rate 60
....
@@ -389,7 +389,7 @@ HDMI-0 disconnected (normal left inverted right x axis y axis)
+
不同裝置間輸出接頭的類型與數量也不同,給每個輸出的名稱在不同驅動程式間也不同。在某些驅動程式稱為 `HDMI-1` 的輸出在其他驅動程式則可能稱為 `HDMI1`。因此第一個步驟是執行 man:xrandr[1] 列出所有可用的輸出:
+
-[source,bash]
+[source,shell]
....
% xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
@@ -415,7 +415,7 @@ DP1 disconnected (normal left inverted right x axis y axis)
+
投影機已連接至 `VGA1` 輸出,現在使用 man:xrandr[1] 來設定該輸出到投影機 (原始解析度) 並加入額外的空間到桌面的右側:
+
-[source,bash]
+[source,shell]
....
% xrandr --output VGA1 --auto --right-of LVDS1
....
@@ -574,14 +574,14 @@ EndSection
產生 [.filename]#xorg.conf#:
-[source,bash]
+[source,shell]
....
# Xorg -configure
....
設定檔會儲存至 [.filename]#/root/xorg.conf.new#,做任何需要的更改,然後使用以下指令測試該檔案:
-[source,bash]
+[source,shell]
....
# Xorg -config /root/xorg.conf.new
....
@@ -598,14 +598,14 @@ EndSection
要由 Binary 套件安裝上述的 Type1 字型集可執行以下指令:
-[source,bash]
+[source,shell]
....
# pkg install urwfonts
....
或由 Port 套件集編譯,可執行以下指令:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
@@ -620,7 +620,7 @@ FontPath "/usr/local/shared/fonts/urwfonts/"
或者在 X session 的指令列執行:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/urwfonts
% xset fp rehash
@@ -640,14 +640,14 @@ Load "freetype"
現在要建立一個儲存 TrueType(TM) 字型的目錄 (例如,[.filename]#/usr/local/shared/fonts/TrueType#) 然後複製所有 TrueType(TM) 字型到這個目錄。要注意 TrueType(TM) 字型並無法直接取自 Apple(TM)Mac(TM),Xorg 使用的字型必須為 UNIX(TM)/MS-DOS(TM)/Windows(TM) 的格式。檔案複製到讓目錄之後,使用 mkfontscale 來建立 [.filename]#fonts.dir# 來讓 X 字型繪製程式知道安裝了新的檔案。`mkfontscale` 可用套件的方式安裝:
-[source,bash]
+[source,shell]
....
# pkg install mkfontscale
....
然後在目錄中建立 X 字型檔的索引:
-[source,bash]
+[source,shell]
....
# cd /usr/local/shared/fonts/TrueType
# mkfontscale
@@ -655,7 +655,7 @@ Load "freetype"
接著加入 TrueType(TM) 目錄到字型路徑。這個動作與 <<type1>> 中所介紹的方式相同:
-[source,bash]
+[source,shell]
....
% xset fp+ /usr/local/shared/fonts/TrueType
% xset fp rehash
@@ -690,7 +690,7 @@ Load "freetype"
加入新字型及額外的新字型目錄之後,需重新建立字型快取:
-[source,bash]
+[source,shell]
....
# fc-cache -f
....
@@ -801,7 +801,7 @@ Xorg 提供了 X 顯示管理程式 (X Display Manager, XDM),可用來做登
要安裝 XDM 可使用 package:x11/xdm[] 套件或 Port。安裝完成之後,可設定 XDM 在開機時執行,只需編輯 [.filename]#/etc/ttys# 中的此項目:
-[source,bash]
+[source,shell]
....
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
....
@@ -848,7 +848,7 @@ XDM 的設定目錄位於 [.filename]#/usr/local/etc/X11/xdm#。此目錄中包
要設定 XDM 傾聽任何遠端的連線,在 [.filename]#/usr/local/etc/X11/xdm/xdm-config# 中的 `DisplayManager.requestPort` 行前加上 `!` 來註解該行:
-[source,bash]
+[source,shell]
....
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
@@ -869,14 +869,14 @@ GNOME 是一個擁有友善使用者介面的的桌面環境,它包括用於
這套桌面環境可以從套件安裝:
-[source,bash]
+[source,shell]
....
# pkg install gnome3
....
也可使用以下指令從 Port 編譯 GNOME,GNOME 是一套大型的應用程式,即使在速度較快的電腦上,也會需要花費一些時間編譯。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/gnome3
# make install clean
@@ -915,14 +915,14 @@ GDM 則會在系統開機時自動啟動。
第二種啟動 GNOME 的方法是在設定完 [.filename]#~/.xinitrc# 後在指令列輸入 `startx`。若這個檔案已經存在,替換啟動目前視窗管理程式的那一行,改為啟動 [.filename]#/usr/local/bin/gnome-session#。若檔案不存在,則使用以下指令建立一個:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc
....
第三種方法是使用 XDM 做為顯示管理程式,在這個方法需要建立一個可執行的 [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo "exec /usr/local/bin/gnome-session" > ~/.xsession
....
@@ -934,14 +934,14 @@ KDE 是另一套易於使用的桌面環境。這個桌面環境提供了一致
要安裝 KDE 套件,請輸入:
-[source,bash]
+[source,shell]
....
# pkg install x11/kde5
....
或者要使用 KDE Port 編譯,可使用以下指令,採用 Port 方式安裝會有選單可以選擇要安裝的元件。KDE 是一個大型的應用程式,即使在較快的電腦上仍需要花費一段時間來編譯。
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11/kde5
# make install clean
@@ -964,7 +964,7 @@ hald_enable="YES"
自 KDE Plasma 5 開始,KDE Display Manager, KDM 便停止開發,可能的替代方案為 SDDM,要安裝該套件可輸入:
-[source,bash]
+[source,shell]
....
# pkg install x11/sddm
....
@@ -985,7 +985,7 @@ exec ck-launch-session startkde
第三種啟動 KDE 的方式是透過 XDM,要使用這個方法需要建立一個可執行的 [.filename]#~/.xsession# 如下:
-[source,bash]
+[source,shell]
....
% echo "exec ck-launch-session startkde" > ~/.xsession
....
@@ -999,14 +999,14 @@ Xfce 是以 GNOME 使用的 GTK +工具包做為基礎所開發的桌面環境
要安裝 Xfce 套件:
-[source,bash]
+[source,shell]
....
# pkg install xfce
....
或者使用 Port 編譯:
-[source,bash]
+[source,shell]
....
# cd /usr/ports/x11-wm/xfce4
# make install clean
@@ -1021,14 +1021,14 @@ dbus_enable="YES"
不像 GNOME 或 KDE,Xfce 並沒有自己的登入管理程式,要能用 `startx` 指令列啟動 Xfce 之前需先加入其項目到 [.filename]#~/.xinitrc#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
....
另一種方式是使用 XDM,要設定這個方式需建立一個可執行的 [.filename]#~/.xsession#:
-[source,bash]
+[source,shell]
....
% echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
....
@@ -1051,7 +1051,7 @@ dbus_enable="YES"
例如,要安裝最新的驅動程式:
-[source,bash]
+[source,shell]
....
# pkg install x11/nvidia-driver
....
@@ -1152,7 +1152,7 @@ Section "Module"
前面所述的動作可以執行 package:x11/nvidia-xconfig[] 來自動完成 (使用 root):
-[source,bash]
+[source,shell]
....
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
@@ -1164,14 +1164,14 @@ Section "Module"
安裝 Compiz Fusion 如同安裝其他套件一樣簡單:
-[source,bash]
+[source,shell]
....
# pkg install x11-wm/compiz-fusion
....
安裝完成之後,開啟您的圖型化桌面,然後在終端機的畫面輸入以下指令 (使用一般使用者):
-[source,bash]
+[source,shell]
....
% compiz --replace --sm-disable --ignore-desktop-hints ccp &
% emerald --replace &
@@ -1190,7 +1190,7 @@ emerald --replace &
儲存這個 Script 到您的家目錄所在位置,例如 [.filename]#start-compiz#,然後讓該檔案可以執行:
-[source,bash]
+[source,shell]
....
% chmod +x ~/start-compiz
....
@@ -1199,7 +1199,7 @@ emerald --replace &
要選擇所想使用的特效與相關設定,可執行 (一樣使用一般使用者) Compiz Config 設定管理程式 Compiz Config Settings Manager:
-[source,bash]
+[source,shell]
....
% ccsm
....
@@ -1248,7 +1248,7 @@ Option "AutoAddDevices" "false"
也是可以從 X 終端機或 Script 下指令來做同樣的設定:
-[source,bash]
+[source,shell]
....
% setxkbmap -model pc102 -layout fr
....
@@ -1306,7 +1306,7 @@ EndSection
若一且運作正常,設定檔需要安裝到 man:Xorg[1] 會尋找的常用設定檔位置,通常是 [.filename]#/etc/X11/xorg.conf# 或 [.filename]#/usr/local/etc/X11/xorg.conf#。
-[source,bash]
+[source,shell]
....
# cp xorg.conf.new /etc/X11/xorg.conf
....
@@ -1394,7 +1394,7 @@ EndSection
若您檢查 [.filename]#/var/log/Xorg.0.log#,您可能可以找到當 X 啟動時所發生的錯誤訊息。最常發生的錯誤會是:
-[source,bash]
+[source,shell]
....
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
diff --git a/documentation/content/zh-tw/books/handbook/zfs/_index.adoc b/documentation/content/zh-tw/books/handbook/zfs/_index.adoc
index 09d411e3a2..03771200a6 100644
--- a/documentation/content/zh-tw/books/handbook/zfs/_index.adoc
+++ b/documentation/content/zh-tw/books/handbook/zfs/_index.adoc
@@ -74,7 +74,7 @@ zfs_enable="YES"
然後啟動服務:
-[source,bash]
+[source,shell]
....
# service zfs start
....
@@ -86,14 +86,14 @@ zfs_enable="YES"
要使用一個磁碟裝置建立一個簡單、無備援的儲存池可:
-[source,bash]
+[source,shell]
....
# zpool create example /dev/da0
....
要檢視這個新的儲存池,可查看 `df` 的輸出結果:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -105,7 +105,7 @@ example 17547136 0 17547136 0% /example
這個輸出結果說明 `example` 儲存池已建立且被掛載,現在已經可以作為檔案系統存取,可以在上面建立檔案且使用者可以瀏覽:
-[source,bash]
+[source,shell]
....
# cd /example
# ls
@@ -119,7 +119,7 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
但是,這個儲存池並未運用到任何 ZFS 功能,若要在這個儲存池上建立一個有開啟壓縮功能的資料集:
-[source,bash]
+[source,shell]
....
# zfs create example/compressed
# zfs set compression=gzip example/compressed
@@ -129,14 +129,14 @@ drwxr-xr-x 21 root wheel 512 Aug 29 23:12 ..
壓縮功能也可以使用以下指令關閉:
-[source,bash]
+[source,shell]
....
# zfs set compression=off example/compressed
....
要卸載檔案系統,使用 `zfs umount` 然後再使用 `df` 確認:
-[source,bash]
+[source,shell]
....
# zfs umount example/compressed
# df
@@ -149,7 +149,7 @@ example 17547008 0 17547008 0% /example
要重新掛載檔案系統以便再次使用,使用 `zfs mount` 然後以 `df` 檢查:
-[source,bash]
+[source,shell]
....
# zfs mount example/compressed
# df
@@ -163,7 +163,7 @@ example/compressed 17547008 0 17547008 0% /example/compressed
儲存池與檔案系統也可以從 `mount` 的結果查詢到:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -175,7 +175,7 @@ example/compressed on /example/compressed (zfs, local)
在建立之後,ZFS 的資料集可如同其他檔案系統一般使用,且有許多額外功能可在每個資料集上設定。例如,建立一個預計存放重要的資料的新檔案系統 `data`,要設定每個資料區塊 (Data block) 要保留兩份備份:
-[source,bash]
+[source,shell]
....
# zfs create example/data
# zfs set copies=2 example/data
@@ -183,7 +183,7 @@ example/compressed on /example/compressed (zfs, local)
現在,可以使用 `df` 指令來查看資料與空間的使用率:
-[source,bash]
+[source,shell]
....
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
@@ -199,7 +199,7 @@ example/data 17547008 0 17547008 0% /example/data
不需要使用時可摧毀檔案系統後再摧毀儲存池:
-[source,bash]
+[source,shell]
....
# zfs destroy example/compressed
# zfs destroy example/data
@@ -213,7 +213,7 @@ example/data 17547008 0 17547008 0% /example/data
這個例子會建立一個 RAID-Z 儲存池,並指定要加入這個儲存池的磁碟:
-[source,bash]
+[source,shell]
....
# zpool create storage raidz da0 da1 da2
....
@@ -225,14 +225,14 @@ Sun(TM) 建議用在 RAID-Z 設定的裝置數在三到九個之間。若需要
先前的例子已經建立了 `storage` 儲存池 (zpool),現在這個例子會在該儲存池中建立一個新的檔案系統,名稱為 `home`:
-[source,bash]
+[source,shell]
....
# zfs create storage/home
....
可以設定開啟壓縮及保留目錄及檔案額外備份的功能:
-[source,bash]
+[source,shell]
....
# zfs set copies=2 storage/home
# zfs set compression=gzip storage/home
@@ -240,7 +240,7 @@ Sun(TM) 建議用在 RAID-Z 設定的裝置數在三到九個之間。若需要
要讓這個空間作為使用者的新家目錄位置,需複製使用者資料到這個目錄並建立適合的符號連結 (Symbolic link):
-[source,bash]
+[source,shell]
....
# cp -rp /home/* /storage/home
# rm -rf /home /usr/home
@@ -252,7 +252,7 @@ Sun(TM) 建議用在 RAID-Z 設定的裝置數在三到九個之間。若需要
試著建立檔案系統快照 (Snapshot),稍後可用來還原 (Rollback):
-[source,bash]
+[source,shell]
....
# zfs snapshot storage/home@08-30-08
....
@@ -261,35 +261,35 @@ Sun(TM) 建議用在 RAID-Z 設定的裝置數在三到九個之間。若需要
`@` 字元用來區隔檔案系統名稱 (File system) 或磁碟區 (Volume) 名稱,若有重要的目錄意外被刪除,檔案系統可以備份然後還原到先前目錄還存在時的快照 (Snapshot):
-[source,bash]
+[source,shell]
....
# zfs rollback storage/home@08-30-08
....
要列出所有可用的快照,可在檔案系統的 [.filename]#.zfs/snapshot# 目錄執行 `ls`,舉例來說,要查看先前已做的快照:
-[source,bash]
+[source,shell]
....
# ls /storage/home/.zfs/snapshot
....
也可以寫一個 Script 來對使用者資料做例行性的快照,但隨著時間快照可能消耗大量的磁碟空間。先前的快照可以使用指令移除:
-[source,bash]
+[source,shell]
....
# zfs destroy storage/home@08-30-08
....
在測試之後,便可讓 [.filename]#/storage/home# 成為真正的 [.filename]#/home# 使用此指令:
-[source,bash]
+[source,shell]
....
# zfs set mountpoint=/home storage/home
....
執行 `df` 興 `mount` 來確認系統現在是否以把檔案系統做為真正的 [.filename]#/home#:
-[source,bash]
+[source,shell]
....
# mount
/dev/ad0s1a on / (ufs, local)
@@ -318,21 +318,21 @@ daily_status_zfs_enable="YES"
每個軟體 RAID 都有監控其狀態 (`state`) 的方式,而 RAID-Z 裝置的狀態可以使用這個指令來查看:
-[source,bash]
+[source,shell]
....
# zpool status -x
....
如果所有儲存池為上線 (<<zfs-term-online,Online>>) 且正常,則訊息會顯示:
-[source,bash]
+[source,shell]
....
all pools are healthy
....
如果有發生問題,可能磁碟會呈現離線 (<<zfs-term-offline,Offline>>) 的狀態,此時儲存池的狀態會是:
-[source,bash]
+[source,shell]
....
pool: storage
state: DEGRADED
@@ -356,21 +356,21 @@ errors: No known data errors
這代表著裝置在之前被管理者使用此指令拿下線:
-[source,bash]
+[source,shell]
....
# zpool offline storage da1
....
現在系統可以關機然後更換 [.filename]#da1#,當系統恢復上線,則可以替換掉儲存池中故障的磁碟:
-[source,bash]
+[source,shell]
....
# zpool replace storage da1
....
到這裡,可以再檢查狀態一次,這時不需使用 `-x` 參數來顯示所有的儲存池:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -403,14 +403,14 @@ ZFS 使用校驗碼 (Checksum) 來檢驗資料的完整性 (Integrity),會在
檢驗校驗碼這個動作即所謂的__清潔 (Scrub)__,可以使用以下指令來檢驗 `storage` 儲存池的資料完整性:
-[source,bash]
+[source,shell]
....
# zpool scrub storage
....
清潔所需要的時間依儲存的資料量而定,較大的資料量相對會需要花費較長的時間來檢驗。清潔會對 I/O 有非常密集的操作且一次只能進行一個清潔動作。在清潔完成之後,可以使用 `status` 來查看狀態:
-[source,bash]
+[source,shell]
....
# zpool status storage
pool: storage
@@ -444,7 +444,7 @@ ZFS 管理分成兩個主要的工具。`zpool` 工具用來控制儲存池的
建立一個簡單的鏡像儲存池:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2
# zpool status
@@ -464,7 +464,7 @@ errors: No known data errors
可以一次建立數個 vdev,磁碟群組間使用 vdev 型態關鍵字來區隔,在這個例子使用 `mirror`:
-[source,bash]
+[source,shell]
....
# zpool create mypool mirror /dev/ada1 /dev/ada2 mirror /dev/ada3 /dev/ada4
pool: mypool
@@ -488,7 +488,7 @@ errors: No known data errors
使用分割區建立一個 <<zfs-term-vdev-raidz,RAID-Z2>> 儲存池:
-[source,bash]
+[source,shell]
....
# zpool create mypool raidz2 /dev/ada0p3 /dev/ada1p3 /dev/ada2p3 /dev/ada3p3 /dev/ada4p3 /dev/ada5p3
# zpool status
@@ -521,7 +521,7 @@ errors: No known data errors
加入 _ada1p3_ 來升級單一磁碟串連 (stripe) vdev _ada0p3_ 採用鏡像型態 (mirror):
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -587,7 +587,7 @@ errors: No known data errors
連接第二個 mirror 群組 ([.filename]#ada2p3# 及 [.filename]#ada3p3#) 到既有的 mirror:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -629,7 +629,7 @@ errors: No known data errors
從一個三方 mirror 群組移除一個磁碟:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -666,7 +666,7 @@ errors: No known data errors
儲存池的狀態很重要,若有磁碟機離線或偵測到讀取、寫入或校驗碼 (Checksum) 錯誤,對應的錯誤計數便會增加。`status` 會顯示儲存池中每一個磁碟機的設定與狀態及整個儲存池的狀態。需要處置的方式與有關最近清潔 (<<zfs-zpool-scrub,`Scrub`>>) 的詳細資訊也會一併顯示。
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -699,7 +699,7 @@ errors: No known data errors
更換儲存池中正在運作的狀置:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -771,7 +771,7 @@ errors: No known data errors
使用 `zpool replace` 更換故障的磁碟:
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -831,7 +831,7 @@ errors: No known data errors
建議儲存池要定期清潔 (<<zfs-term-scrub,Scrub>>),最好是每一個月清潔一次。 `scrub` 作業對磁碟操作非常的密集,在執行時會降低磁碟的效能。在排程 `scrub` 時避免在使用高峰的時期,或使用 <<zfs-advanced-tuning-scrub_delay,`vfs.zfs.scrub_delay`>> 來調整 `scrub` 的相對優先權來避免影響其他的工作。
-[source,bash]
+[source,shell]
....
# zpool scrub mypool
# zpool status
@@ -864,7 +864,7 @@ errors: No known data errors
接下來的例子會示範自我修復會如何運作。建立一個使用磁碟 [.filename]#/dev/ada0# 及 [.filename]#/dev/ada1# 做鏡像的儲存池。
-[source,bash]
+[source,shell]
....
# zpool create healer mirror /dev/ada0 /dev/ada1
# zpool status healer
@@ -887,7 +887,7 @@ healer 960M 92.5K 960M - - 0% 0% 1.00x ONLINE -
將部份需要使用自我修復功能來保護的重要資料複製到該儲存池,建立一個儲存池的校驗碼供稍後做比較時使用。
-[source,bash]
+[source,shell]
....
# cp /some/important/data /healer
# zfs list
@@ -906,7 +906,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
這是一個危險的操作,會破壞重要的資料。在這裡使用僅為了示範用,不應在儲存池正常運作時嘗試使用,也不應將這個故意損壞資料的例子用在任何其他的檔案系統上,所以請勿使用任何不屬於該儲存池的其他磁碟裝置名稱並確定在執行指令前已對儲存池做正確的備份!
====
-[source,bash]
+[source,shell]
....
# zpool export healer
# dd if=/dev/random of=/dev/ada1 bs=1m count=200
@@ -918,7 +918,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
儲存池的狀態顯示有一個裝置發生了錯誤。注意,應用程式從儲存池讀取的資料中並沒有任何的錯誤資料,ZFS 會自 [.filename]#ada0# 裝置提供有正確校驗碼的資料。結果裡面 `CKSUM` 欄位含有非零值便是有錯誤校驗碼的裝置。
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -942,7 +942,7 @@ errors: No known data errors
錯誤已經被偵測到並且由未被影響的 [.filename]#ada0# 鏡像磁碟上的備援提供資料。可與原來的校驗碼做比較來看儲存池是否已修復為一致。
-[source,bash]
+[source,shell]
....
# sha1 /healer >> checksum.txt
# cat checksum.txt
@@ -952,7 +952,7 @@ SHA1 (/healer) = 2753eff56d77d9a536ece6694bf0a82740344d1f
儲存池在故意竄改資料前與後的兩個校驗碼仍相符顯示了 ZFS 在校驗碼不同時偵測與自動修正錯誤的能力。注意,這只在當儲存池中有足夠的備援時才可做到,由單一裝置組成的儲存池並沒有自我修復的能力。這也是為什麼在 ZFS 中校驗碼如此重要,任何原因都不該關閉。不需要 man:fsck[8] 或類似的檔案系統一致性檢查程式便能夠偵測與修正問題,且儲存儲存池在發生問題時仍可正常運作。接著需要做清潔作業來覆蓋在 [.filename]#ada1# 上的錯誤資料。
-[source,bash]
+[source,shell]
....
# zpool scrub healer
# zpool status healer
@@ -979,7 +979,7 @@ errors: No known data errors
清潔作業會從 [.filename]#ada0# 讀取資料並重新寫入任何在 [.filename]#ada1# 上有錯誤校驗碼的資料。這個操作可以由 `zpool status` 的輸出中呈現修復中 `(repairing)` 的項目來辨識。這個作業完成後,儲存池的狀態會更改為:
-[source,bash]
+[source,shell]
....
# zpool status healer
pool: healer
@@ -1003,7 +1003,7 @@ errors: No known data errors
清潔操作完成便同步了 [.filename]#ada0# 到 [.filename]#ada1# 間的所有資料。執行 `zpool clear` 可以清除 (<<zfs-zpool-clear,Clear>>) 儲存池狀態的錯誤訊息。
-[source,bash]
+[source,shell]
....
# zpool clear healer
# zpool status healer
@@ -1037,7 +1037,7 @@ errors: No known data errors
匯出未使用的儲存池:
-[source,bash]
+[source,shell]
....
# zpool export mypool
....
@@ -1046,7 +1046,7 @@ errors: No known data errors
列出所有可以匯入的儲存池:
-[source,bash]
+[source,shell]
....
# zpool import
pool: mypool
@@ -1061,7 +1061,7 @@ errors: No known data errors
使用替代的根目錄匯入儲存池:
-[source,bash]
+[source,shell]
....
# zpool import -o altroot=/mnt mypool
# zfs list
@@ -1077,7 +1077,7 @@ mypool 110K 47.0G 31K /mnt/mypool
升級一個 v28 的儲存以支援功能旗標 (`Feature Flags`):
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1126,7 +1126,7 @@ ZFS 的新功能在 `zpool upgrade` 尚未完成之前無法使用。可以用 `
升級儲存池支援新版的功能旗標 (Feature flags):
-[source,bash]
+[source,shell]
....
# zpool status
pool: mypool
@@ -1184,14 +1184,14 @@ Enabled the following features on 'mypool':
針對傳統使用 GPT 開機的系統,可以使用以下指令:
-[source,bash]
+[source,shell]
....
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
....
針對使用 EFI 開機的系統可以執行以下指令:
-[source,bash]
+[source,shell]
....
# gpart bootcode -p /boot/boot1.efifat -i 1 ada1
....
@@ -1204,7 +1204,7 @@ Enabled the following features on 'mypool':
修改儲存池的指令會被記錄下來,會記錄的動作包含資料集的建立,屬性更改或更換磁碟。這個歷史記錄用來查看儲存池是如何建立、由誰執行、什麼動作及何時。歷史記錄並非儲存在日誌檔 (Log file),而是儲存在儲存池。查看這個歷史記錄的指令名稱為 `zpool history`:
-[source,bash]
+[source,shell]
....
# zpool history
History for 'tank':
@@ -1218,7 +1218,7 @@ History for 'tank':
在提供選項 `-i` 或 `-l` 時 `zpool history` 可以顯更多詳細資訊。`-i` 會顯示使用者觸發的事件外,也會顯示內部記錄的 ZFS 事件。
-[source,bash]
+[source,shell]
....
# zpool history -i
History for 'tank':
@@ -1233,7 +1233,7 @@ History for 'tank':
更多詳細的資訊可加上 `-l` 來取得,歷史記錄會以較長的格式顯示,包含的資訊有執行指令的使用者名稱、主機名稱以及更改的項目。
-[source,bash]
+[source,shell]
....
# zpool history -l
History for 'tank':
@@ -1252,7 +1252,7 @@ History for 'tank':
內建的監視系統可以即時顯示儲存池的 I/O 統計資訊。它會顯示儲存池剩餘的空間與使用的空間,每秒執行了多少讀取與寫入的操作,有多少 I/O 頻寬被使用。預設會監視所有在系統中的儲存池都並顯示出來,可以提供儲存池名稱來只顯示該儲存池的監視資訊。舉一個簡單的例子:
-[source,bash]
+[source,shell]
....
# zpool iostat
capacity operations bandwidth
@@ -1265,7 +1265,7 @@ data 288G 1.53T 2 11 11.3K 57.1K
使用 `-v` 可以顯示更詳細的 I/O 統計資訊。每個在儲存池中的裝置會以一行統計資訊顯示。這可以幫助了解每一個裝置做了多少讀取與寫入的操作,並可協助確認是否有各別裝置拖慢了整個儲存池的速度。以下範例會顯示有兩個裝置的鏡像儲存池:
-[source,bash]
+[source,shell]
....
# zpool iostat -v
capacity operations bandwidth
@@ -1295,7 +1295,7 @@ data 288G 1.53T 2 12 9.23K 61.5K
建立一個新資料集並開啟 <<zfs-term-compression-lz4,LZ4 壓縮>>:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1335,7 +1335,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
摧毀先前建立的資料集:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1380,7 +1380,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
磁碟區可以被格式化成任何檔案系統,或不使用檔案系統來儲存原始資料。對一般使用者,磁碟區就像是一般的磁碟,可以放置一般的檔案系統在這些 _zvols_ 上,並提供一般磁碟或檔案系統一般所沒有的功能。例如,使用壓縮屬性在一個 250 MB 的磁碟區可建立一個壓縮的 FAT 檔案系統。
-[source,bash]
+[source,shell]
....
# zfs create -V 250m -o compression=on tank/fat32
# zfs list tank
@@ -1404,7 +1404,7 @@ Filesystem Size Used Avail Capacity Mounted on
重新命名一個資料集並移動該資料集到另一個父資料集:
-[source,bash]
+[source,shell]
....
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
@@ -1443,7 +1443,7 @@ mypool/var/tmp 152K 93.2G 152K /var/tmp
快照也可以像這樣重新命名,由於快照的本質使其無法被重新命名到另一個父資料集。要遞迴重新命名快照可指定 `-r`,然後在子資料集中所有同名的快照也會一併被重新命名。
-[source,bash]
+[source,shell]
....
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
@@ -1461,7 +1461,7 @@ mypool/var/newname@new_snapshot_name 0 - 87.5K -
也可設定使用者自訂的屬性。這些屬性也會成為資料集設定的一部份,且可以被用來提供資料集或其內容的額外資訊。要別分自訂屬性與 ZFS 提供的屬性,會使用冒號 (`:`) 建立一個自訂命名空間供自訂屬性使用。
-[source,bash]
+[source,shell]
....
# zfs set custom:costcenter=1234 tank
# zfs get custom:costcenter tank
@@ -1471,7 +1471,7 @@ tank custom:costcenter 1234 local
要移除自訂屬性,可用 `zfs inherit` 加上 `-r`。若父資料集未定義任何自訂屬性,將會將該屬性完全移除 (更改動作仍會記錄於儲存池的歷史記錄)。
-[source,bash]
+[source,shell]
....
# zfs inherit -r custom:costcenter tank
# zfs get custom:costcenter tank
@@ -1486,7 +1486,7 @@ tank custom:costcenter - -
Two commonly used and useful dataset properties are the NFS and SMB share options. Setting these define if and how ZFS datasets may be shared on the network. At present, only setting sharing via NFS is supported on FreeBSD. To get the current status of a share, enter:
-[source,bash]
+[source,shell]
....
# zfs get sharenfs mypool/usr/home
NAME PROPERTY VALUE SOURCE
@@ -1498,14 +1498,14 @@ mypool/usr/home sharesmb off local
To enable sharing of a dataset, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs=on mypool/usr/home
....
It is also possible to set additional options for sharing datasets through NFS, such as `-alldirs`, `-maproot` and `-network`. To set additional options to a dataset shared through NFS, enter:
-[source,bash]
+[source,shell]
....
# zfs set sharenfs="-alldirs,-maproot=root,-network=192.168.1.0/24" mypool/usr/home
....
@@ -1524,7 +1524,7 @@ ZFS 中的快照提供了多種功能,即使是在其他缺乏快照功能的
建立一個整個儲存池的遞迴快照:
-[source,bash]
+[source,shell]
....
# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
@@ -1567,7 +1567,7 @@ mypool/var/tmp@my_recursive_snapshot 0 - 152K -
快照並不會直接掛載,因此 `MOUNTPOINT` 欄位的路徑如此顯示。在 `AVAIL` 欄位不會有可用的磁碟空間,因為快照建立之後便無法再寫入。比較快照與其原來建立時的資料集:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/usr/home
NAME USED AVAIL REFER MOUNTPOINT
@@ -1577,7 +1577,7 @@ mypool/usr/home@my_recursive_snapshot 0 - 184K -
同時顯示資料集與快照可以了解快照如何使用 <<zfs-term-cow,COW>> 技術來運作。快照只會保存有更動 (_差異_) 的資料,並非整個檔案系統的內容,這個意思是說,快照只會在有做更動時使用一小部份的空間,複製一個檔案到該資料集,可以讓空間使用量變的更明顯,然後再做第二個快照:
-[source,bash]
+[source,shell]
....
# cp /etc/passwd /var/tmp
# zfs snapshot mypool/var/tmp@after_cp
@@ -1595,7 +1595,7 @@ mypool/var/tmp@after_cp 0 - 118K -
ZFS 提供了內建指令可以用來比對兩個快照 (Snapshot) 之間的差異,在使用者想要查看一段時間之間檔案系統所的變更時非常有用。例如 `zfs diff` 可以讓使用者在最後一次快照中找到意外刪除的檔案。對前面一節所做的兩個快照使用這個指令會產生以下結果:
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1632,7 +1632,7 @@ M /var/tmp/
比對兩個快照需要提供兩個資料集的完整資料集名稱與快照名稱:
-[source,bash]
+[source,shell]
....
# cp /var/tmp/passwd /var/tmp/passwd.copy
# zfs snapshot mypool/var/tmp@diff_snapshot
@@ -1654,7 +1654,7 @@ M /var/tmp/
在第一個範例中,因為 `rm` 操作不小心移除了預期外的資料,要還原到快照。
-[source,bash]
+[source,shell]
....
# zfs list -rt all mypool/var/tmp
NAME USED AVAIL REFER MOUNTPOINT
@@ -1671,7 +1671,7 @@ vi.recover
在此時,使用者發現到刪除了太多檔案並希望能夠還原。ZFS 提供了簡單的方可以取回檔案,便是使用還原 (Rollback),但這只在有定期對重要的資料使用快照時可用。要拿回檔案並從最後一次快照重新開始,可執行以下指令:
-[source,bash]
+[source,shell]
....
# zfs rollback mypool/var/tmp@diff_snapshot
# ls /var/tmp
@@ -1680,7 +1680,7 @@ passwd passwd.copy vi.recover
還原操作會將資料集還原為最後一次快照的狀態。這也可以還原到更早之前,有其他在其之後建立的快照。要這麼做時,ZFS 會發出這個警告:
-[source,bash]
+[source,shell]
....
# zfs list -rt snapshot mypool/var/tmp
AME USED AVAIL REFER MOUNTPOINT
@@ -1696,7 +1696,7 @@ mypool/var/tmp@diff_snapshot
這個警告是因在該快照與資料集的目前狀態之間有其他快照存在,然而使用者想要還原到該快照。要完成這樣的還原動作,必須刪除在這之間的快照,因為 ZFS 無法追蹤不同資料集狀態間的變更。在使用者未指定 `-r` 來確認這個動作前,ZFS 不會刪除受影響的快照。若確定要這麼做,那麼必須要知道會遺失所有在這之間的快照,然後可執行以下指令:
-[source,bash]
+[source,shell]
....
# zfs rollback -r mypool/var/tmp@my_recursive_snapshot
# zfs list -rt snapshot mypool/var/tmp
@@ -1713,7 +1713,7 @@ vi.recover
快照會掛載在父資料集下的隱藏目錄:[.filename]#.zfs/snapshots/snapshotname#。預設不會顯示這些目錄,即使是用 `ls -a` 指令。雖然該目錄不會顯示,但該目錄實際存在,而且可以像一般的目錄一樣存取。一個名稱為 `snapdir` 的屬性可以控制是否在目錄清單中顯示這些隱藏目錄,設定該屬性為可見 (`visible`) 可以讓這些目錄出現在 `ls` 以及其他處理目錄內容的指令中。
-[source,bash]
+[source,shell]
....
# zfs get snapdir mypool/var/tmp
NAME PROPERTY VALUE SOURCE
@@ -1727,7 +1727,7 @@ mypool/var/tmp snapdir hidden default
要還原個別檔案到先前的狀態非常簡單,只要從快照中複製檔案到父資料集。在 [.filename]#.zfs/snapshot# 目錄結構下有一個與先前所做的快照名稱相同的目錄,可以很容易的找到。在下個範例中,我們會示範從隱藏的 [.filename]#.zfs# 目錄還原一個檔案,透過從含有該檔案的最新版快照複製:
-[source,bash]
+[source,shell]
....
# rm /var/tmp/passwd
# ls -a /var/tmp
@@ -1741,7 +1741,7 @@ passwd vi.recover
執行 `ls .zfs/snapshot` 時,雖然 `snapdir` 可能已經設為隱藏,但仍可能可以顯示該目錄中的內容,這取決於管理者是否要顯示這些目錄,可以只顯示特定的資料集,而其他的則不顯示。從這個隱藏的 [.filename]#.zfs/snapshot# 複製檔案或目錄非常簡單,除此之外,嘗試其他的動作則會出現以下錯誤:
-[source,bash]
+[source,shell]
....
# cp /etc/rc.conf /var/tmp/.zfs/snapshot/after_cp/
cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
@@ -1760,7 +1760,7 @@ cp: /var/tmp/.zfs/snapshot/after_cp/rc.conf: Read-only file system
要示範複本功能會用到這個範例資料集:
-[source,bash]
+[source,shell]
....
# zfs list -rt all camino/home/joe
NAME USED AVAIL REFER MOUNTPOINT
@@ -1771,7 +1771,7 @@ camino/home/joe@backup 0K - 87K -
會使用到複本一般是要在可以保留快照以便出錯時可還原的情況下使用指定的資料集做實驗,由於快照並無法做更改,所以會建立一個可以讀/寫的快照複本。當在複本中做完想要執行的動作後,便可以提升複本成資料集,然後移除舊的檔案系統。嚴格來說這並非必要,因為複本與資料集可同時存在,不會有任何問題。
-[source,bash]
+[source,shell]
....
# zfs clone camino/home/joe@backup camino/home/joenew
# ls /usr/home/joe*
@@ -1788,7 +1788,7 @@ usr/home/joenew 1.3G 31k 1.3G 0% /usr/home/joenew
建立完的複本便有與建立快照時狀態相同的資料集,現在複本可以獨立於原來的資料集來做更改。剩下唯一與資料集之間的關係便是快照,ZFS 會在屬性 `origin` 記錄這個關係,一旦在快照與複本之間的相依關係因為使用 `zfs promote` 提升而移除時,複本的 `origin` 也會因為成為一個完全獨立的資料集而移除。以下範例會示範這個動作:
-[source,bash]
+[source,shell]
....
# zfs get origin camino/home/joenew
NAME PROPERTY VALUE SOURCE
@@ -1801,7 +1801,7 @@ camino/home/joenew origin - -
做為部份更改之後,例如複製 [.filename]#loader.conf# 到提升後的複本,這個例子中的舊目錄便無須保留,取而代之的是提升後的複本,這個動作可以用兩個連續的指令來完成:在舊資料集上執行 `zfs destroy` 並在與舊資料相似名稱 (也可能用完全不同的名稱) 的複本上執行 `zfs rename`。
-[source,bash]
+[source,shell]
....
# cp /boot/defaults/loader.conf /usr/home/joenew
# zfs destroy -f camino/home/joe
@@ -1822,7 +1822,7 @@ usr/home/joe 1.3G 128k 1.3G 0% /usr/home/joe
以下例子將示範使用兩個儲存池來做 ZFS 備份:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -1832,7 +1832,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
名為 _mypool_ 的儲存池為主要的儲存池,資料會定期寫入與讀取的位置。第二個儲存池 _backup_ 用來待命 (Standby),萬一主要儲存池無法使用時可替換。注意,ZFS 並不會自動做容錯移轉 (Fail-over),必須要由系統管理者在需要的時候手動完成。快照會用來提供一個與檔系統一致的版本來做備份,_mypool_ 的快照建立之後,便可以複製到 _backup_ 儲存池,只有快照可以做備份,最近一次快照之後所做的變更不會含在內容裡面。
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@backup1
# zfs list -t snapshot
@@ -1842,7 +1842,7 @@ mypool@backup1 0 - 43.6M -
快照存在以後,便可以使用 `zfs send` 來建立一個代表快照內容的串流,這個串流可以儲存成檔案或由其他儲存池接收。串流會寫入到標準輸出,但是必須要重新導向到一個檔案或轉接到其他地方,否則會錯誤:
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1
Error: Stream can not be written to a terminal.
@@ -1851,7 +1851,7 @@ You must redirect standard output.
要使用 `zfs send` 備份一個資料集,可重新導向到一個位於在已掛載到備份儲存池上的檔案。確定該儲存池有足夠的空間容納要傳送的快照,這裡指的是該快照中內含的所有資料,並非只有上次快照到該快照間的變更。
-[source,bash]
+[source,shell]
....
# zfs send mypool@backup1 > /backup/backup1
# zpool list
@@ -1864,7 +1864,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
若不想將備份以封存檔案儲存,ZFS 可用實際的檔案系統來接收資料,讓備份的資料可以直接被存取。要取得實際包含在串流中的資料可以用 `zfs receive` 將串流轉換回檔案與目錄。以下例子會以管線符號連接 `zfs send` 及 `zfs receive`,將資料從一個儲存池複製到另一個,傳輸完成後可以直接使用接收儲存池上的資料。一個資料集只可以被複製到另一個空的資料集。
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica1
# zfs send -v mypool@replica1 | zfs receive backup/mypool
@@ -1883,7 +1883,7 @@ mypool 984M 43.7M 940M - - 0% 4% 1.00x ONLINE -
`zfs send` 也可以比較兩個快照之間的差異,並且只傳送兩者之間的差異,這麼做可以節省磁碟空間及傳輸時間。例如:
-[source,bash]
+[source,shell]
....
# zfs snapshot mypool@replica2
# zfs list -t snapshot
@@ -1898,7 +1898,7 @@ mypool 960M 50.2M 910M - - 0% 5% 1.00x ONLINE -
會建立一個名為 _replica2_ 的第二個快照,這個快照只中只會含有目前與前次快照 _replica1_ 之間檔案系統所做的變更。使用 `zfs send -i` 並指定要用來產生漸進備份串流的快照,串流中只會含有做過更改的資料。這個動作只在接收端已經有初始快照時才可用。
-[source,bash]
+[source,shell]
....
# zfs send -v -i mypool@replica1 mypool@replica2 | zfs receive /backup/mypool
send from @replica1 to mypool@replica2 estimated size is 5.02M
@@ -1941,14 +1941,14 @@ mypool@replica2 0 - 55.0M -
* 正常會需要 `root` 的權限來傳送與接收串流,這需要可以 `root` 登入到接收端系統。但是,預設因安全性考慮會關閉以 `root` 登入。ZFS 委託 (<<zfs-zfs-allow,ZFS Delegation>>) 系統可以用來允許一個非 `root` 使用者在每個系統上執行各自的發送與接收操作。
* 在傳送端系統上:
+
-[source,bash]
+[source,shell]
....
# zfs allow -u someuser send,snapshot mypool
....
* 要掛載儲存池,無權限的使用者必須擁有該目錄且必須允許一般的使用者掛載檔案系統。在接收端系統上:
+
-[source,bash]
+[source,shell]
....
# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1
@@ -1960,7 +1960,7 @@ vfs.usermount: 0 -> 1
無權限的使用者現在有能力可以接收並掛載資料集,且 _home_ 資料集可以被複製到遠端系統:
-[source,bash]
+[source,shell]
....
% zfs snapshot -r mypool/home@monday
% zfs send -R mypool/home@monday | ssh someuser@backuphost zfs recv -dvu recvpool/backup
@@ -1975,21 +1975,21 @@ vfs.usermount: 0 -> 1
要設定 [.filename]#storage/home/bob# 的資料集配額為 10 GB:
-[source,bash]
+[source,shell]
....
# zfs set quota=10G storage/home/bob
....
要設定 [.filename]#storage/home/bob# 的參考配額為 10 GB:
-[source,bash]
+[source,shell]
....
# zfs set refquota=10G storage/home/bob
....
要移除 [.filename]#storage/home/bob# 的 10 GB 配額:
-[source,bash]
+[source,shell]
....
# zfs set quota=none storage/home/bob
....
@@ -2003,14 +2003,14 @@ vfs.usermount: 0 -> 1
例如,要設定使用者名為 _joe_ 的使用者配額為 50 GB:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=50G
....
要移除所有配額:
-[source,bash]
+[source,shell]
....
# zfs set userquota@joe=none
....
@@ -2024,14 +2024,14 @@ vfs.usermount: 0 -> 1
要設定群組 _firstgroup_ 的配額為 50 GB 可使用:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=50G
....
要移除群組 _firstgroup_ 的配額,或確保該群組未設定配額可使用:
-[source,bash]
+[source,shell]
....
# zfs set groupquota@firstgroup=none
....
@@ -2042,7 +2042,7 @@ vfs.usermount: 0 -> 1
有足夠權限的使用者及 `root` 可以使用以下指令列出 [.filename]#storage/home/bob# 的配額:
-[source,bash]
+[source,shell]
....
# zfs get quota storage/home/bob
....
@@ -2054,14 +2054,14 @@ vfs.usermount: 0 -> 1
`reservation` 屬性的一般格式為 `reservation=_size_`,所以要在 [.filename]#storage/home/bob# 設定保留 10 GB 的空間可以用:
-[source,bash]
+[source,shell]
....
# zfs set reservation=10G storage/home/bob
....
要清除任何保留空間:
-[source,bash]
+[source,shell]
....
# zfs set reservation=none storage/home/bob
....
@@ -2070,7 +2070,7 @@ vfs.usermount: 0 -> 1
這個指令會顯示任何已設定於 [.filename]#storage/home/bob# 的 reservation 或 refreservation:
-[source,bash]
+[source,shell]
....
# zfs get reservation storage/home/bob
# zfs get refreservation storage/home/bob
@@ -2085,7 +2085,7 @@ ZFS 提了多種不同的壓縮演算法,每一種都有不同的優缺點,
管理者可以使用資料集的屬性來監視壓縮的效果。
-[source,bash]
+[source,shell]
....
# zfs get used,compressratio,compression,logicalused mypool/compressed_dataset
NAME PROPERTY VALUE SOURCE
@@ -2108,14 +2108,14 @@ mypool/compressed_dataset logicalused 496G -
要開啟去重複功能,需在目標儲存池設定 `dedup` 屬性:
-[source,bash]
+[source,shell]
....
# zfs set dedup=on pool
....
只有要被寫入到儲存池的新資料才會做去重複的動作,先前已被寫入到儲存池的資料不會因此啟動了這個選項而做去重複。查看已開啟去重複屬性的儲存池會如下:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2124,7 +2124,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
`DEDUP` 欄位會顯示儲存池的實際去重複率,數值為 `1.00x` 代表資料尚未被去重複。在下一個例子會在前面所建立的去重複儲存池中複製三份 Port 樹到不同的目錄中。
-[source,bash]
+[source,shell]
....
# for d in dir1 dir2 dir3; do
> mkdir $d && cp -R /usr/ports $d &
@@ -2133,7 +2133,7 @@ pool 2.84G 2.19M 2.83G - - 0% 0% 1.00x ONLINE -
已經偵測到重複的資料並做去重複:
-[source,bash]
+[source,shell]
....
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
@@ -2144,7 +2144,7 @@ pool 2.84G 20.9M 2.82G - - 0% 0% 3.00x ONLINE -
去重複並非總是有效益的,特別是當儲存池中的資料本身並沒有重複時。ZFS 可以透過在現有儲存池上模擬開啟去重複功能來顯示可能節省的空間:
-[source,bash]
+[source,shell]
....
# zdb -S pool
Simulated DDT histogram:
diff --git a/documentation/content/zh-tw/books/porters-handbook/makefiles/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/makefiles/chapter.adoc
index 33ae230732..1ef7a4d813 100644
--- a/documentation/content/zh-tw/books/porters-handbook/makefiles/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/makefiles/chapter.adoc
@@ -87,7 +87,7 @@ When updating a port, it is possible to use man:pkg-version[8]'s `-t` argument t
====
`pkg version -t` takes two versions as arguments, it will respond with `<`, `=` or `>` if the first version is less, equal, or more than the second version, respectively.
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.3
< <.>
@@ -219,7 +219,7 @@ DISTVERSION= 1.2p4
Both will generate a `PORTVERSION` of `1.2.p4` which is before than 1.2. man:pkg-version[8] can be used to check that fact:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2.p4 1.2
<
@@ -241,7 +241,7 @@ PORTVERSION= 1.2p4
In this case, using `DISTVERSION` is not possible because it would generate a version of `1.2.p4` which would be before `1.2` and not after. man:pkg-version[8] will verify this:
-[source,bash]
+[source,shell]
....
% pkg version -t 1.2 1.2.p4
> <.>
@@ -297,7 +297,7 @@ From time to time a software vendor or FreeBSD porter will do something silly an
The results of version number comparisons are not always obvious. `pkg version` (see man:pkg-version[8]) can be used to test the comparison of two version number strings. For example:
-[source,bash]
+[source,shell]
....
% pkg version -t 0.031 0.29
>
@@ -1021,7 +1021,7 @@ BIND9 uses a version scheme that is not compatible with the ports versions (it h
The order into which the ports framework, and pkg, will sort versions is checked using the `-t` argument of man:pkg-version[8]:
-[source,bash]
+[source,shell]
....
% pkg version -t 9.9.9 9.9.9.p1
> <.>
@@ -1440,7 +1440,7 @@ GH_TAGNAME= c472d66b
This creates a versioning scheme that increases over time, and that is still before version `0` (see <<makefile-versions-ex-pkg-version>> for details on man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t g20140411 0
<
@@ -1456,7 +1456,7 @@ Which means using `PORTEPOCH` will not be needed in case upstream decides to cut
If the current version of the software uses a Git tag, and the port needs to be updated to a newer, intermediate version, without a tag, use man:git-describe[1] to find out the version to use:
-[source,bash]
+[source,shell]
....
% git describe --tags f0038b1
v0.7.3-14-gf0038b1
@@ -1485,7 +1485,7 @@ USE_GITHUB= yes
This creates a versioning scheme that increases over time (well, over commits), and does not conflict with the creation of a `0.7.4` version. (See <<makefile-versions-ex-pkg-version>> for details on man:pkg-version[8]):
-[source,bash]
+[source,shell]
....
% pkg version -t 0.7.3 0.7.3.14
<
@@ -1497,7 +1497,7 @@ This creates a versioning scheme that increases over time (well, over commits),
****
If the requested commit is the same as a tag, a shorter description is shown by default. The longer version is equivalent:
-[source,bash]
+[source,shell]
....
% git describe --tags c66c71d
v0.7.3
@@ -1635,7 +1635,7 @@ Using package:finance/moneymanagerex[] as an example, its GitHub repository is h
The only information missing from that file is the commit hash or tag to use as a version. This information is found after cloning the repository:
-[source,bash]
+[source,shell]
....
% git clone --recurse-submodules https://github.com/moneymanagerex/moneymanagerex.git
Cloning into 'moneymanagerex'...
@@ -4588,7 +4588,7 @@ The most common content of one of these variable is the package base of another
package:dns/bind99[] cannot be installed if package:dns/bind910[] is present because they install same files. First gather the package base to use:
-[source,bash]
+[source,shell]
....
% make -C dns/bind99 -V PKGBASE
bind99
diff --git a/documentation/content/zh-tw/books/porters-handbook/quick-porting/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/quick-porting/chapter.adoc
index 9776848c5f..6e9f487c6d 100644
--- a/documentation/content/zh-tw/books/porters-handbook/quick-porting/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/quick-porting/chapter.adoc
@@ -47,7 +47,7 @@ toc::[]
====
It is recommended to set the `DEVELOPER` man:make[1] variable in [.filename]#/etc/make.conf# before getting into porting.
-[source,bash]
+[source,shell]
....
# echo DEVELOPER=yes >> /etc/make.conf
diff --git a/documentation/content/zh-tw/books/porters-handbook/security/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/security/chapter.adoc
index da787a5553..9e42934945 100644
--- a/documentation/content/zh-tw/books/porters-handbook/security/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/security/chapter.adoc
@@ -183,14 +183,14 @@ As a prerequisite, install a fresh version of package:security/vuxml[] port.
First, check whether there already is an entry for this vulnerability. If there were such an entry, it would match the previous version of the package, `2013.58`:
-[source,bash]
+[source,shell]
....
% pkg audit dropbear-2013.58
....
If there is none found, add a new entry for this vulnerability.
-[source,bash]
+[source,shell]
....
% cd ${PORTSDIR}/security/vuxml
% make newentry
@@ -198,7 +198,7 @@ If there is none found, add a new entry for this vulnerability.
Verify its syntax and formatting:
-[source,bash]
+[source,shell]
....
% make validate
....
@@ -210,7 +210,7 @@ At least one of these packages needs to be installed: package:textproc/libxml2[]
Verify that the `<affected>` section of the entry will match the correct packages:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln.xml dropbear-2013.58
....
@@ -219,7 +219,7 @@ Make sure that the entry produces no spurious matches in the output.
Now check whether the right package versions are matched by the entry:
-[source,bash]
+[source,shell]
....
% pkg audit -f ${PORTSDIR}/security/vuxml/vuln.xml dropbear-2013.58 dropbear-2013.59
dropbear-2012.58 is vulnerable:
diff --git a/documentation/content/zh-tw/books/porters-handbook/slow-porting/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/slow-porting/chapter.adoc
index 5c3b12612d..6c8b2ab3bc 100644
--- a/documentation/content/zh-tw/books/porters-handbook/slow-porting/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/slow-porting/chapter.adoc
@@ -103,7 +103,7 @@ Unless explicitly stated, patch files, scripts, and other files created and cont
In the preparation of the port, files that have been added or changed can be recorded with man:diff[1] for later feeding to man:patch[1]. Doing this with a typical file involves saving a copy of the original file before making any changes using a [.filename]#.orig# suffix.
-[source,bash]
+[source,shell]
....
% cp file file.orig
....
@@ -142,14 +142,14 @@ Patches are saved into files named [.filename]#patch-*# where * indicates the pa
After the file has been modified, man:diff[1] is used to record the differences between the original and the modified version. `-u` causes man:diff[1] to produce "unified" diffs, the preferred form.
-[source,bash]
+[source,shell]
....
% diff -u file.orig file > patch-pathname-file
....
When generating patches for new, added files, `-N` is used to tell man:diff[1] to treat the non-existent original file as if it existed but was empty:
-[source,bash]
+[source,shell]
....
% diff -u -N newfile.orig newfile > patch-pathname-newfile
....
@@ -260,7 +260,7 @@ Sometime, there are many patches that are needed for a feature, in this case, it
Create a subdirectory in [.filename]#${PATCHDIR}#, and move the patches in it. For example:
-[source,bash]
+[source,shell]
....
% ls -l files/foo-patches
-rw-r--r-- 1 root wheel 350 Jan 16 01:27 patch-Makefile.in
diff --git a/documentation/content/zh-tw/books/porters-handbook/special/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/special/chapter.adoc
index afe0abef08..77032655af 100644
--- a/documentation/content/zh-tw/books/porters-handbook/special/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/special/chapter.adoc
@@ -86,7 +86,7 @@ ${RLN} ${STAGEDIR}${PREFIX}/lib/libfoo.so.42 ${STAGEDIR}${PREFIX}/lib/libfoo.so
Will generate:
-[source,bash]
+[source,shell]
....
% ls -lF ${STAGEDIR}${PREFIX}/lib
lrwxr-xr-x 1 nobody nobody 181 Aug 3 11:27 libfoo.so@ -> libfoo.so.42
@@ -102,7 +102,7 @@ ${RLN} ${STAGEDIR}${PREFIX}/libexec/foo/bar ${STAGEDIR}${PREFIX}/bin/bar
Will automatically generate the relative symbolic links:
-[source,bash]
+[source,shell]
....
% ls -lF ${STAGEDIR}${PREFIX}/bin
lrwxr-xr-x 1 nobody nobody 181 Aug 3 11:27 bar@ -> ../libexec/foo/bar
@@ -124,7 +124,7 @@ ${LN} -sf /var/cache/${PORTNAME} ${STAGEDIR}${PREFIX}/shared/${PORTNAME}
Will generate:
-[source,bash]
+[source,shell]
....
% ls -lF ${STAGEDIRDIR}${PREFIX}/share
lrwxr-xr-x 1 nobody nobody 181 Aug 3 11:27 foo@ -> /var/cache/foo
@@ -568,7 +568,7 @@ GH_ACCOUNT= Aaronepower
Generate an initial [.filename]#distinfo#:
-[source,bash]
+[source,shell]
....
% make makesum
=> Aaronepower-tokei-v7.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -579,7 +579,7 @@ Aaronepower-tokei-v7.0.2_GH0.tar.gz 45 kB 239 kBps 00m00s
Now the distribution file is ready to use and we can go ahead and extract crate dependencies from the bundled [.filename]#Cargo.lock#:
-[source,bash]
+[source,shell]
....
% make cargo-crates
CARGO_CRATES= aho-corasick-0.6.4 \
@@ -620,7 +620,7 @@ CARGO_CRATES= aho-corasick-0.6.4 \
[.filename]#distinfo# needs to be regenerated to contain all the crate distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> rust/crates/aho-corasick-0.6.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -696,7 +696,7 @@ PULSEAUDIO_VARS= CARGO_FEATURES+=pulseaudio_backend
Crates have their own licenses. It is important to know what they are when adding a `LICENSE` block to the port (see <<licenses>>). The helper target `cargo-crates-licenses` will try to list all the licenses of all crates defined in `CARGO_CRATES`.
-[source,bash]
+[source,shell]
....
% make cargo-crates-licenses
aho-corasick-0.6.4 Unlicense/MIT
@@ -780,7 +780,7 @@ GH_ACCOUNT= motemen
Generate an initial [.filename]#distinfo#:
-[source,bash]
+[source,shell]
....
% make makesum
===> License MIT accepted by the user
@@ -792,7 +792,7 @@ motemen-ghq-v0.12.5_GH0.tar.gz 32 kB 177 kBps 00s
Now the distribution file is ready to use and we can extract the required Go module dependencies. This step requires having package:ports-mgmt/modules2tuple[] installed:
-[source,bash]
+[source,shell]
....
% make gomod-vendor
[...]
@@ -836,7 +836,7 @@ GH_TUPLE= Songmu:gitconfig:v0.0.2:songmu_gitconfig/vendor/github.com/Songmu/gitc
[.filename]#distinfo# needs to be regenerated to contain all the distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> Songmu-gitconfig-v0.0.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
@@ -905,7 +905,7 @@ USES= cabal
This minimal Makefile allows us to fetch the distribution file:
-[source,bash]
+[source,shell]
....
% make cabal-extract
[...]
@@ -918,7 +918,7 @@ Unpacking to ShellCheck-0.6.0/
Now we have ShellCheck.cabal package description file, which allows us to fetch all package's dependencies, including transitive ones:
-[source,bash]
+[source,shell]
....
% make cabal-extract-deps
[...]
@@ -935,7 +935,7 @@ Downloading dlist-0.8.0.7
As a side effect, the package's dependencies are also compiled, so the command may take some time. Once done, a list of required dependencies can generated:
-[source,bash]
+[source,shell]
....
% make make-use-cabal
USE_CABAL=QuickCheck-2.12.6.1 \
@@ -946,7 +946,7 @@ integer-logarithms-1.0.3 \
Haskell packages may contain revisions, just like FreeBSD ports. Revisions can affect only [.filename]#.cabal# files, but it is still important to pull them in. To check `USE_CABAL` items for available revision updates, run following command:
-[source,bash]
+[source,shell]
....
% make make-use-cabal-revs
USE_CABAL=QuickCheck-2.12.6.1_1 \
@@ -959,7 +959,7 @@ Note additional version numbers after `_` symbol. Put newly generated `USE_CABAL
Finally, [.filename]#distinfo# needs to be regenerated to contain all the distribution files:
-[source,bash]
+[source,shell]
....
% make makesum
=> ShellCheck-0.6.0.tar.gz doesn't seem to exist in /usr/local/poudriere/ports/git/distfiles/cabal.
@@ -4161,7 +4161,7 @@ The package:devel/rclint[] port can check for most of these, but it is not a sub
. Make sure there is no `KEYWORD: FreeBSD` present. This has not been necessary nor desirable for years. It is also an indication that the new script was copy/pasted from an old script, so extra caution must be given to the review.
. If the script uses an interpreted language like `perl`, `python`, or `ruby`, make certain that `command_interpreter` is set appropriately, for example, for Perl, by adding `PERL=${PERL}` to `SUB_LIST` and using `%%PERL%%`. Otherwise,
+
-[source,bash]
+[source,shell]
....
# service name stop
....
diff --git a/documentation/content/zh-tw/books/porters-handbook/testing/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/testing/chapter.adoc
index 5389a38c66..d96624b2d4 100644
--- a/documentation/content/zh-tw/books/porters-handbook/testing/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/testing/chapter.adoc
@@ -62,7 +62,7 @@ The package:ports-mgmt/porttools[] program is part of the Ports Collection.
`port` is the front-end script, which can help simplify the testing job. Whenever a new port or an update to an existing one needs testing, use `port test` to test the port, including the <<testing-portlint,`portlint`>> checking. This command also detects and lists any files that are not listed in [.filename]#pkg-plist#. For example:
-[source,bash]
+[source,shell]
....
# port test /usr/ports/net/csup
....
@@ -80,7 +80,7 @@ Avoiding hard-coded [.filename]#/usr/local# paths in the source makes the port m
Make sure the application is not installing things in [.filename]#/usr/local# instead of `PREFIX`. A quick test for such hard-coded paths is:
-[source,bash]
+[source,shell]
....
% make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`
....
@@ -89,7 +89,7 @@ If anything is installed outside of `PREFIX`, the package creation process will
In addition, it is worth checking the same with the stage directory support (see <<staging>>):
-[source,bash]
+[source,shell]
....
% make stage && make check-plist && make stage-qa && make package
....
@@ -143,14 +143,14 @@ The examples in this section show a default file layout, as standard in FreeBSD.
Poudriere is available in the ports tree in package:ports-mgmt/poudriere[]. It can be installed using man:pkg[8] or from ports:
-[source,bash]
+[source,shell]
....
# pkg install poudriere
....
or
-[source,bash]
+[source,shell]
....
# make -C /usr/ports/ports-mgmt/poudriere install clean
....
@@ -199,14 +199,14 @@ The server from where jails are installed and updated when using Subversion. Als
Create the base jails which Poudriere will use for building:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 113Ramd64 -v 11.3-RELEASE -a amd64
....
Fetch a `11.3-RELEASE` for `amd64` from the FTP server given by `FREEBSD_HOST` in [.filename]#poudriere.conf#, create the zfs file system `tank/poudriere/jails/113Ramd64`, mount it on [.filename]#/poudriere/jails/113Ramd64# and extract the `11.3-RELEASE` tarballs into this file system.
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11 -a i386 -m svn+https
....
@@ -218,7 +218,7 @@ Create `tank/poudriere/jails/11i386`, mount it on [.filename]#/poudriere/jails/1
If a specific Subversion revision is needed, append it to the version string. For example:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 11i386 -v stable/11@123456 -a i386 -m svn+https
....
@@ -234,7 +234,7 @@ While it is possible to build a newer version of FreeBSD on an older version, mo
====
To create a Poudriere jail for `13.0-CURRENT`:
-[source,bash]
+[source,shell]
....
# poudriere jail -c -j 13amd64 -v head -a amd64 -m svn+https
....
@@ -250,7 +250,7 @@ The default `svn` protocol works but is not very secure. Using `svn+https` along
A list of jails currently known to Poudriere can be shown with `poudriere jail -l`:
-[source,bash]
+[source,shell]
....
# poudriere jail -l
JAILNAME VERSION ARCH METHOD
@@ -263,7 +263,7 @@ JAILNAME VERSION ARCH METHOD
Managing updates is very straightforward. The command:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -j JAILNAME
....
@@ -275,7 +275,7 @@ updates the specified jail to the latest version available. For FreeBSD releases
For jails employing a `svn+*` method, it is helpful to add `-J _NumberOfParallelBuildJobs_` to speed up the build by increasing the number of parallel compile jobs used. For example, if the building machine has 6 CPUs, use:
-[source,bash]
+[source,shell]
....
# poudriere jail -u -J 6 -j JAILNAME
....
@@ -287,21 +287,21 @@ For jails employing a `svn+*` method, it is helpful to add `-J _NumberOfParallel
There are multiple ways to use ports trees in Poudriere. The most straightforward way is to have Poudriere create a default ports tree for itself, using either man:portsnap[8] (if running FreeBSD {rel121-current} or {rel114-current}) or Subversion (if running FreeBSD-CURRENT):
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m portsnap
....
or
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m svn+https
....
These commands create `tank/poudriere/ports/default`, mount it on [.filename]#/poudriere/ports/default#, and populate it using either man:portsnap[8] or Subversion. Afterward it is included in the list of known ports trees:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -333,21 +333,21 @@ Depending on the workflow, it can be extremely helpful to use ports trees which
* For Poudriere older than version 3.1.20:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -F -f none -M /work/ports -p development
....
* For Poudriere version 3.1.20 and later:
+
-[source,bash]
+[source,shell]
....
# poudriere ports -c -m null -M /work/ports -p development
....
This will be listed in the table of known trees:
-[source,bash]
+[source,shell]
....
# poudriere ports -l
PORTSTREE METHOD TIMESTAMP PATH
@@ -364,7 +364,7 @@ The dash or `null` in the `METHOD` column means that Poudriere will not update o
As straightforward as with jails described earlier:
-[source,bash]
+[source,shell]
....
# poudriere ports -u -p PORTSTREE
....
@@ -383,7 +383,7 @@ After jails and ports trees have been set up, the result of a contributor's modi
For example, local modifications to the package:www/firefox[] port located in [.filename]#/work/ports/www/firefox# can be tested in the previously created 11.3-RELEASE jail:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -o www/firefox
....
@@ -396,14 +396,14 @@ The directory name `113Ri386-development` is derived from the arguments to `-j`
By default, Poudriere cleans up the jails and leaves log files in the directories mentioned above. To ease investigation, jails can be kept running after the build by adding `-i` to `testport`:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -i -o www/firefox
....
After the build completes, and regardless of whether it was successful, a shell is provided within the jail. The shell is used to investigate further. Poudriere can be told to leave the jail running after the build finishes with `-I`. Poudriere will show the command to run when the jail is no longer needed. It is then possible to man:jexec[8] into it:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -I -o www/firefox
[...]
@@ -420,7 +420,7 @@ After the build completes, and regardless of whether it was successful, a shell
An integral part of the FreeBSD ports build infrastructure is the ability to tweak ports to personal preferences with options. These can be tested with Poudriere as well. Adding the `-c`:
-[source,bash]
+[source,shell]
....
# poudriere testport -c -o www/firefox
....
@@ -440,7 +440,7 @@ For all actions involving builds, a so-called _set_ can be specified using `-z _
To use sets, Poudriere expects an existing directory structure similar to `PORT_DBDIR`, defaults to [.filename]#/var/db/ports# in its configuration directory. This directory is then man:nullfs[5]-mounted into the jails where the ports and their dependencies are built. Usually a suitable starting point can be obtained by recursively copying the existing `PORT_DBDIR` to [.filename]#/usr/local/etc/poudriere.d/jailname-portname-setname-options#. This is described in detail in man:poudriere[8]. For instance, testing package:www/firefox[] in a specific set named `devset`, add the `-z devset` parameter to the testport command:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -459,7 +459,7 @@ From this list, Poudriere man:nullfs[5]-mounts the _first existing_ directory tr
After the directory structure for a set is provided, the options for a particular port can be altered. For example:
-[source,bash]
+[source,shell]
....
# poudriere options -c www/firefox -z devset
....
@@ -476,7 +476,7 @@ Poudriere is very flexible in the option configuration. They can be set for part
Similar to using sets, Poudriere will also use a custom [.filename]#make.conf# if it is provided. No special command line argument is necessary. Instead, Poudriere looks for existing files matching a name scheme derived from the command line. For instance:
-[source,bash]
+[source,shell]
....
# poudriere testport -j 113Ramd64 -p development -z devset -o www/firefox
....
@@ -516,14 +516,14 @@ Note the use of `+=` so that if the variable is already set in the default [.fil
Poudriere comes with a built-in mechanism to remove outdated distfiles that are no longer used by any port of a given tree. The command
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree
....
will scan the distfiles folder, `DISTFILES_CACHE` in [.filename]#poudriere.conf#, versus the ports tree given by the `-p _portstree_` argument and prompt for removal of those distfiles. To skip the prompt and remove all unused files unconditionally, the `-y` argument can be added:
-[source,bash]
+[source,shell]
....
# poudriere distclean -p portstree -y
....
diff --git a/documentation/content/zh-tw/books/porters-handbook/upgrading/chapter.adoc b/documentation/content/zh-tw/books/porters-handbook/upgrading/chapter.adoc
index ccb386d246..fc39415577 100644
--- a/documentation/content/zh-tw/books/porters-handbook/upgrading/chapter.adoc
+++ b/documentation/content/zh-tw/books/porters-handbook/upgrading/chapter.adoc
@@ -48,7 +48,7 @@ If the maintainer asks you to do the upgrade or there is no maintainer, then hel
To create a suitable `diff` for a single patch, copy the file that needs patching to [.filename]#something.orig#, save the changes to [.filename]#something# and then create the patch:
-[source,bash]
+[source,shell]
....
% diff -u something.orig something > something.diff
....
@@ -85,7 +85,7 @@ Now that all of that is done, read about how to keep up-to-date in <<keeping-up>
When possible, please submit a man:svn[1] diff. They are easier to handle than diffs between "new and old" directories. It is easier to see what has changed, and to update the diff if something was modified in the Ports Collection since the work on it began, or if the committer asks for something to be fixed. Also, a patch generated with `svn diff` can be easily applied with `svn patch` and will save some time to the committer.
-[source,bash]
+[source,shell]
....
% cd ~/my_wrkdir <.>
% svn co https://svn.FreeBSD.org/ports/head/dns/pdnsd <.>
@@ -98,7 +98,7 @@ When possible, please submit a man:svn[1] diff. They are easier to handle than d
While in the port directory, make any changes that are needed. If adding, copying, moving, or removing a file, use `svn` to track these changes:
-[source,bash]
+[source,shell]
....
% svn add new_file
% svn copy some_file file_copy
@@ -108,7 +108,7 @@ While in the port directory, make any changes that are needed. If adding, copyin
Make sure to check the port using the checklist in <<porting-testing>> and <<porting-portlint>>.
-[source,bash]
+[source,shell]
....
% svn status
% svn update <.>
@@ -137,7 +137,7 @@ If `C` is displayed as a result of `svn update`, it means something changed in t
The last step is to make a unified man:diff[1] of the changes:
-[source,bash]
+[source,shell]
....
% svn diff > ../`make -VPKGNAME`.diff
....
@@ -171,14 +171,14 @@ YYYYMMDD:
When including exact portmaster, portupgrade, and/or pkg instructions, please make sure to get the shell escaping right. For example, do _not_ use:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml* docbook-sk* docbook[2345]??-* docbook-4*
....
As shown, the command will only work with bourne shells. Instead, use the form shown below, which will work with both bourne shell and c-shell:
-[source,bash]
+[source,shell]
....
# pkg delete -g -f docbook-xml\* docbook-sk\* docbook\[2345\]\?\?-\* docbook-4\*
....
@@ -212,7 +212,7 @@ Any changes must be validated with `Tools/scripts/MOVEDlint.awk`.
If using a ports directory other than [.filename]#/usr/ports#, use:
-[source,bash]
+[source,shell]
....
% cd /home/user/ports
% env PORTSDIR=$PWD Tools/scripts/MOVEDlint.awk
diff --git a/website/content/en/releases/9.1R/hardware.adoc b/website/content/en/releases/9.1R/hardware.adoc
index 5e698c21bc..c45a41fc1d 100644
--- a/website/content/en/releases/9.1R/hardware.adoc
+++ b/website/content/en/releases/9.1R/hardware.adoc
@@ -92,7 +92,7 @@ FreeBSD will generally run on i386-based laptops, albeit with varying levels of
Most modern laptops (as well as many desktops) use the Advanced Configuration and Power Management (ACPI) standard. FreeBSD supports ACPI via the ACPI Component Architecture reference implementation from Intel, as described in the man:acpi[4] manual page. The use of ACPI causes instabilities on some machines and it may be necessary to disable the ACPI driver, which is normally loaded via a kernel module. This may be accomplished by adding the following line to `/boot/device.hints`:
-[source,bash]
+[source,shell]
----
hint.acpi.0.disabled="1"
----